Commit 413b7f8f by Sweet Zhang

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

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