6d85f6b6 by lxs

数据定价对接计算接口

1 parent ffe5da2f
...@@ -990,12 +990,12 @@ const checkForm = (type) => { ...@@ -990,12 +990,12 @@ const checkForm = (type) => {
990 const baseConfigFormInfo = baseConfigFormObj.formInline; 990 const baseConfigFormInfo = baseConfigFormObj.formInline;
991 baseConfigFormEl.validate(async (valid, errorItem) => { 991 baseConfigFormEl.validate(async (valid, errorItem) => {
992 if (valid) { 992 if (valid) {
993 const params = getCalculateParams(baseConfigFormObj, baseConfigFormInfo); 993 const paramsInfo = getCalculateParams(baseConfigFormObj, baseConfigFormInfo);
994 loading.value = true; 994 loading.value = true;
995 // 先获取计算结果 995 // 先获取计算结果
996 const priceData = await getCalculatPrice(params); 996 const priceData = await getCalculatPrice(paramsInfo);
997 // 显示结果 997 // 显示结果
998 dataTransactionPrice.value = priceData.transactionPrice; 998 dataTransactionPrice.value = priceData.transactionPrice.toFixed(2);
999 999
1000 if (type == 'calculate') { 1000 if (type == 'calculate') {
1001 // const { signatoryData, resultInfo } = reporting(baseConfigFormInfo); 1001 // const { signatoryData, resultInfo } = reporting(baseConfigFormInfo);
...@@ -1084,7 +1084,10 @@ const checkForm = (type) => { ...@@ -1084,7 +1084,10 @@ const checkForm = (type) => {
1084 // const { signatoryData, resultInfo } = reporting(baseConfigFormInfo); 1084 // const { signatoryData, resultInfo } = reporting(baseConfigFormInfo);
1085 // exportData.value = resultInfo; 1085 // exportData.value = resultInfo;
1086 // !dataTransactionPrice.value && calculatePrice(signatoryData); 1086 // !dataTransactionPrice.value && calculatePrice(signatoryData);
1087 1087 let params = {
1088 ...paramsInfo,
1089 dataTransactionPrice: dataTransactionPrice.value,
1090 }
1088 loading.value = true; 1091 loading.value = true;
1089 savePrice(params).then((res: any) => { 1092 savePrice(params).then((res: any) => {
1090 loading.value = false; 1093 loading.value = false;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!