6d85f6b6 by lxs

数据定价对接计算接口

1 parent ffe5da2f
......@@ -990,12 +990,12 @@ const checkForm = (type) => {
const baseConfigFormInfo = baseConfigFormObj.formInline;
baseConfigFormEl.validate(async (valid, errorItem) => {
if (valid) {
const params = getCalculateParams(baseConfigFormObj, baseConfigFormInfo);
const paramsInfo = getCalculateParams(baseConfigFormObj, baseConfigFormInfo);
loading.value = true;
// 先获取计算结果
const priceData = await getCalculatPrice(params);
const priceData = await getCalculatPrice(paramsInfo);
// 显示结果
dataTransactionPrice.value = priceData.transactionPrice;
dataTransactionPrice.value = priceData.transactionPrice.toFixed(2);
if (type == 'calculate') {
// const { signatoryData, resultInfo } = reporting(baseConfigFormInfo);
......@@ -1084,7 +1084,10 @@ const checkForm = (type) => {
// const { signatoryData, resultInfo } = reporting(baseConfigFormInfo);
// exportData.value = resultInfo;
// !dataTransactionPrice.value && calculatePrice(signatoryData);
let params = {
...paramsInfo,
dataTransactionPrice: dataTransactionPrice.value,
}
loading.value = true;
savePrice(params).then((res: any) => {
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!