数据定价对接计算接口
Showing
1 changed file
with
7 additions
and
4 deletions
| ... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment