Commit 413b7f8f by Sweet Zhang

未完成-新单跟进迭代对接

parent 8b7c1013
......@@ -77,8 +77,8 @@ const router = useRouter()
const { proxy } = getCurrentInstance()
const loginForm = ref({
username: "zs",
password: "123",
username: "",
password: "",
rememberMe: false,
code: "",
uuid: ""
......
......@@ -296,6 +296,24 @@ proxy.useDictLists([
'receipt_status'
])
// ========== 6. Props & Emits(保留不变) ==========
const props = defineProps({
modelValue: {
type: Object,
default: () => ({})
},
mode: {
type: String,
default: 'viewDetail' // viewDetail=查看,edit=编辑
},
policyBizId: {
type: String,
default: ''
}
})
const emit = defineEmits(['update:modelValue', 'submit', 'cancel', 'saveSuccess'])
// ========== 4. ProductPlan组件所需的完整参数(完全匹配你的传参) ==========
const activeName = ref('productPlan') // 激活的子标签名
const formStatus = ref('edit') // 表单状态(edit/view)
......@@ -345,23 +363,7 @@ const tabDirty = ref({
policyAttachment: false
})
// ========== 6. Props & Emits(保留不变) ==========
const props = defineProps({
modelValue: {
type: Object,
default: () => ({})
},
mode: {
type: String,
default: 'viewDetail' // viewDetail=查看,edit=编辑
},
policyBizId: {
type: String,
default: ''
}
})
const emit = defineEmits(['update:modelValue', 'submit', 'cancel', 'saveSuccess'])
// ========== 7. 通用Tab表单数据(保留) ==========
const productPlanRef = ref(null)
......@@ -623,8 +625,10 @@ const handleTabClick = (tab) => {
// ========== 11. 产品计划数据加载(适配新参数) ==========
const loadProductPlanData = () => {
console.log('------------',props.policyBizId )
if (!props.policyBizId) return
getProductPlan({ policyBizId: props.policyBizId }).then(res => {
console.log()
getProductPlan(props.policyBizId).then(res => {
if (res.code === 200) {
// 适配policySummeryInfo的格式
policySummeryInfo.value.apiProductPlanInfoDto = res.data || {}
......
......@@ -180,14 +180,14 @@ const headerList = ref([
id: '1',
title: '总保费(HKD)',
icon: 'icon-zongbaofei',
count: '392.52',
count: '-',
url: '/todo'
},
{
id: '2',
title: '有效保单数',
icon: 'icon-youxiaobaodan',
count: '0.00',
count: '-',
url: '/todo'
},
......@@ -195,7 +195,7 @@ const headerList = ref([
id: '3',
title: '待来佣保单',
icon: 'icon-daijiesuan',
count: '10',
count: '-',
url: '/todo'
}
])
......@@ -275,7 +275,7 @@ const staticList = ref([
id: '1',
title: '财务需求分析数',
icon: 'icon-xiexian',
count: '3735',
count: '-',
unit: '条',
url: '/todo',
color: '#F53F3F'
......@@ -284,7 +284,7 @@ const staticList = ref([
id: '2',
title: '预约单数',
icon: 'icon-xiexian',
count: '12',
count: '-',
unit: '单',
url: '/todo',
color: '#0FC6C2'
......@@ -293,7 +293,7 @@ const staticList = ref([
id: '3',
title: '新单数',
icon: 'icon-xiexian',
count: '12',
count: '-',
unit: '单',
url: '/todo',
color: '#165DFF'
......@@ -302,7 +302,7 @@ const staticList = ref([
id: '4',
title: '续期保单数',
icon: 'icon-xiexian',
count: '13',
count: '-',
unit: '份',
url: '/todo',
color: '#0FC6C2'
......@@ -351,21 +351,21 @@ const workList = ref([
{
id: '1',
title: '新单跟进',
subTitle: '张三预约单待录入',
subTitle: '-',
unit: 'Q',
color: '#7BC616'
},
{
id: '2',
title: '续费提醒',
subTitle: 'bug fix',
subTitle: '-',
unit: 'Y',
color: '#14C9C9'
},
{
id: '3',
title: '预约单生成',
subTitle: '车险预约单已生成',
subTitle: '-',
unit: 'N',
color: '#168CFF'
}
......
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