00e92543 by lxs

数据定价更新

1 parent db3e259e
...@@ -380,7 +380,7 @@ const setBuildInFormItems = (buildList) => { ...@@ -380,7 +380,7 @@ const setBuildInFormItems = (buildList) => {
380 type: 'input', 380 type: 'input',
381 placeholder: '', 381 placeholder: '',
382 field: buildField, 382 field: buildField,
383 default: '', 383 default: b.isInputParameter != 'Y' ? changeNum(b.defaultValue, 2) : b.defaultValue != '' && b.defaultValue != null ? parseFloat(b.defaultValue).toFixed(2) : '',
384 inputType: 'moneyNumber', 384 inputType: 'moneyNumber',
385 maxlength: 18, 385 maxlength: 18,
386 clearable: true, 386 clearable: true,
...@@ -491,11 +491,9 @@ const setTableData = (dataArr) => { ...@@ -491,11 +491,9 @@ const setTableData = (dataArr) => {
491 if ((item.demandTableGuid || item.guid)) { 491 if ((item.demandTableGuid || item.guid)) {
492 const rGuid = item.demandTableGuid || item.guid; 492 const rGuid = item.demandTableGuid || item.guid;
493 const rIndex = i; 493 const rIndex = i;
494 if (!guid || (guid && rGuid != (demInfo?.demandTableGuid || ''))) { 494 (() => {
495 (() => { 495 getDemandField(rGuid, rIndex);
496 getDemandField(rGuid, rIndex); 496 })()
497 })()
498 }
499 } 497 }
500 }) 498 })
501 resourceTableFieldAllNum.value = tableData.value.reduce((accumulator, currentValue) => { 499 resourceTableFieldAllNum.value = tableData.value.reduce((accumulator, currentValue) => {
...@@ -866,8 +864,8 @@ const getCalculateParams = (baseConfigFormObj, baseConfigFormInfo) => { ...@@ -866,8 +864,8 @@ const getCalculateParams = (baseConfigFormObj, baseConfigFormInfo) => {
866 } 864 }
867 buildInData.value.map(item => { 865 buildInData.value.map(item => {
868 let targetValue = baseConfigFormInfo[`build_${item.guid}`]; 866 let targetValue = baseConfigFormInfo[`build_${item.guid}`];
869 if(typeof targetValue === 'string'){ 867 if (typeof targetValue === 'string') {
870 if(/^[+-]?\d{1,3}(,\d{3})*(\.\d{2})?$/.test(targetValue)){ 868 if (/^[+-]?\d{1,3}(,\d{3})*(\.\d{2})?$/.test(targetValue)) {
871 targetValue = parseFloat(targetValue.replace(/,/g, '')) 869 targetValue = parseFloat(targetValue.replace(/,/g, ''))
872 } 870 }
873 } 871 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!