|
@@ -142,20 +142,20 @@ const serivcesDataHandler=(cascaderRef)=>{
|
|
|
// 小套餐肯定选中了
|
|
|
hasFICCSmallChecked=true
|
|
|
// 真正拿取的是chart_permission_id
|
|
|
- if(serviceComposition.FICCSmallServiceId.includes(nodeData.service_template_id)) FICCSmallServiceIds.push(nodeData.chart_permission_id)
|
|
|
+ FICCSmallServiceIds.push(nodeData.chart_permission_id)
|
|
|
}else if(nodeData.service_template_id!=2){
|
|
|
- servicesParam.push({service_template_id:nodeData.service_template_id,title:nodeData.title,value:nodeData.value})
|
|
|
+ servicesParam.push({service_template_id:nodeData.service_template_id,title:nodeData.title,value:nodeData.value,product_id:1})
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
// 做去重->循环
|
|
|
Array.from(new Set(servicesParamId)).map(it =>{
|
|
|
if(it>10000) return
|
|
|
- servicesParam.push({service_template_id:it,title:servicesParamLabel[it]})
|
|
|
+ servicesParam.push({service_template_id:it,title:servicesParamLabel[it],product_id:2})
|
|
|
})
|
|
|
if(hasFICCSmallChecked){
|
|
|
// 将小套餐以及品种push进入
|
|
|
- servicesParam.push({service_template_id:2,
|
|
|
+ servicesParam.push({service_template_id:2,product_id:1,
|
|
|
title:'FICC小套餐',value:'',chart_permission_ids:FICCSmallServiceIds.join(',')})
|
|
|
}
|
|
|
return servicesParam
|
|
@@ -370,8 +370,20 @@ const submitForm=()=>{
|
|
|
list:dialog.registrationPreForm.IorPInfo,
|
|
|
services:dialog.hasServiceChange?serviceData:dialog.registrationPreForm.services,
|
|
|
del_invoice_ids:hasDeleteContractInvoiceIds,
|
|
|
- del_pre_register_ids:hasDeletePreRegisterIds
|
|
|
+ del_pre_register_ids:hasDeletePreRegisterIds,
|
|
|
+ product_ids:''
|
|
|
}
|
|
|
+ // 判断 product_ids
|
|
|
+ let hasFICCServe=params.services.some(serve => serve.product_id==1)
|
|
|
+ let hasQYServe=params.services.some(serve => serve.product_id==2)
|
|
|
+ if(hasFICCServe && hasQYServe){
|
|
|
+ params.product_ids="1,2"
|
|
|
+ }else if(hasFICCServe){
|
|
|
+ params.product_ids="1"
|
|
|
+ }else{
|
|
|
+ params.product_ids="2"
|
|
|
+ }
|
|
|
+
|
|
|
// 化''为0
|
|
|
params.list.forEach(item =>{
|
|
|
item.amount = parseFloat(item.amount)
|
|
@@ -545,7 +557,18 @@ const submitPreForm=()=>{
|
|
|
seller_id:preDialog.preForm.seller_id||0,
|
|
|
service_product_id:preDialog.preForm.service_product_id,
|
|
|
}],
|
|
|
- services:preDialog.preForm.services
|
|
|
+ services:preDialog.preForm.services,
|
|
|
+ product_ids:''
|
|
|
+ }
|
|
|
+ // 判断 product_ids
|
|
|
+ let hasFICCServe=params.services.some(serve => serve.product_id==1)
|
|
|
+ let hasQYServe=params.services.some(serve => serve.product_id==2)
|
|
|
+ if(hasFICCServe && hasQYServe){
|
|
|
+ params.product_ids="1,2"
|
|
|
+ }else if(hasFICCServe){
|
|
|
+ params.product_ids="1"
|
|
|
+ }else{
|
|
|
+ params.product_ids="2"
|
|
|
}
|
|
|
// console.log(params);
|
|
|
preRegistrationSave(params).then(res=>{
|