Commit 8857fdea by Sweet Zhang

新单跟进对接

parent 6b4dbc30
...@@ -251,7 +251,7 @@ export function batchSaveBrokers(data) { ...@@ -251,7 +251,7 @@ export function batchSaveBrokers(data) {
// 通过保险公司、险种查询产品列表及参数 // 通过保险公司、险种查询产品列表及参数
export function getProductList(data) { export function getProductList(data) {
return request({ return request({
url: '/prodcut/api/relProjectProductLaunch/parameter/page', url: '/product/api/relProjectProductLaunch/parameter/page',
method: 'post', method: 'post',
data: data data: data
}) })
......
...@@ -24,7 +24,11 @@ const appointmentInfo = [ ...@@ -24,7 +24,11 @@ const appointmentInfo = [
{ {
label: '签单日', label: '签单日',
key: 'signDate', key: 'signDate',
domType: 'DatePicker', domType: 'datetimePicker',
dateValue: '', //YYYY-MM-DD
timeValue: '', //HH:mm
compositionTime: true, //是否组合时间
finishTime: '',
required: true, required: true,
disabled: false, disabled: false,
placeholder: '请选择', placeholder: '请选择',
......
...@@ -32,6 +32,7 @@ export function useDict(...args) { ...@@ -32,6 +32,7 @@ export function useDict(...args) {
*/ */
export function useDictLists(typeLists) { export function useDictLists(typeLists) {
let params = { typeList: typeLists } let params = { typeList: typeLists }
console.log(params)
let dictArray = [] let dictArray = []
return (() => { return (() => {
getMoreDicts(params).then(resp => { getMoreDicts(params).then(resp => {
......
...@@ -914,9 +914,6 @@ const handleSubmit = async type => { ...@@ -914,9 +914,6 @@ const handleSubmit = async type => {
if (appointmentInfoRef.value) { if (appointmentInfoRef.value) {
const result = await appointmentInfoRef.value[0].handleFormValues() const result = await appointmentInfoRef.value[0].handleFormValues()
submitAppointmentObj.value.apiAppointmentInfoDto = result submitAppointmentObj.value.apiAppointmentInfoDto = result
console.log('====================================')
console.log('预约', result)
console.log('====================================')
if (!submitAppointmentObj.value.apiAppointmentInfoDto) return if (!submitAppointmentObj.value.apiAppointmentInfoDto) return
} }
if (productPlanRef.value) { if (productPlanRef.value) {
......
...@@ -302,6 +302,7 @@ import { getBankList } from '@/api/common' ...@@ -302,6 +302,7 @@ import { getBankList } from '@/api/common'
import useUserStore from '@/store/modules/user' import useUserStore from '@/store/modules/user'
import { loadDicts, getDictLabel } from '@/utils/useDict' import { loadDicts, getDictLabel } from '@/utils/useDict'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { getNowTime, formatToDate, formatToDateTime } from '@/utils/date'
const { proxy } = getCurrentInstance() const { proxy } = getCurrentInstance()
const userStore = useUserStore() const userStore = useUserStore()
// 分页相关 // 分页相关
...@@ -493,7 +494,7 @@ const affirmConfig = [ ...@@ -493,7 +494,7 @@ const affirmConfig = [
placeholder: '请选择', placeholder: '请选择',
maxDate: 'today', maxDate: 'today',
visible: formData => visible: formData =>
formData.remainingUnpaidAmount && Number(formData.remainingUnpaidAmount) <= 0, formData.remainingUnpaidAmount && Number(formData.remainingUnpaidAmount) < 0 || Number(formData.remainingUnpaidAmount) == 0,
rules: [{ required: true, message: '请输入', trigger: 'blur' }] rules: [{ required: true, message: '请输入', trigger: 'blur' }]
}, },
{ {
...@@ -504,7 +505,7 @@ const affirmConfig = [ ...@@ -504,7 +505,7 @@ const affirmConfig = [
maxDate: 'today', maxDate: 'today',
rules: [{ required: true, message: '请输入', trigger: 'blur' }], rules: [{ required: true, message: '请输入', trigger: 'blur' }],
visible: formData => visible: formData =>
formData.remainingUnpaidAmount && Number(formData.remainingUnpaidAmount) <= 0 formData.remainingUnpaidAmount && Number(formData.remainingUnpaidAmount) < 0 || Number(formData.remainingUnpaidAmount) == 0,
}, },
{ {
type: 'select', type: 'select',
...@@ -512,7 +513,7 @@ const affirmConfig = [ ...@@ -512,7 +513,7 @@ const affirmConfig = [
label: '保单状态', label: '保单状态',
dictType: 'csf_policy_status_new', dictType: 'csf_policy_status_new',
visible: formData => visible: formData =>
formData.remainingUnpaidAmount && Number(formData.remainingUnpaidAmount) <= 0 formData.remainingUnpaidAmount && Number(formData.remainingUnpaidAmount) < 0 || Number(formData.remainingUnpaidAmount) == 0,
} }
] ]
//计算待付金额 //计算待付金额
...@@ -534,6 +535,7 @@ const calculateAmount = async () => { ...@@ -534,6 +535,7 @@ const calculateAmount = async () => {
const confirmAffirm = async () => { const confirmAffirm = async () => {
try { try {
const formData = await affirmFormRef.value.validate() const formData = await affirmFormRef.value.validate()
console.log(formData.value)
let newObj = JSON.parse(JSON.stringify(formData)) let newObj = JSON.parse(JSON.stringify(formData))
for (const key in newObj) { for (const key in newObj) {
if (/Date/.test(key)) { if (/Date/.test(key)) {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<el-table-column prop="insured" label="受保人" width="150" sortable /> <el-table-column prop="insured" label="受保人" width="150" sortable />
<el-table-column prop="insuranceCompany" label="保险公司" width="200" sortable /> <el-table-column prop="insuranceCompany" label="保险公司" width="200" sortable />
<el-table-column prop="productName" label="产品计划" width="200" sortable /> <el-table-column prop="productName" label="产品计划" width="200" sortable />
<el-table-column prop="paymentTerm" label="缴费年期" width="120" sortable /> <el-table-column prop="issueNumber" label="缴费年期" width="120" sortable />
<el-table-column fixed="right" label="操作" min-width="80"> <el-table-column fixed="right" label="操作" min-width="80">
<template #default="{ row }"> <template #default="{ row }">
<el-popover placement="right" :width="200" trigger="click"> <el-popover placement="right" :width="200" trigger="click">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment