数据定价更新
Showing
1 changed file
with
3 additions
and
5 deletions
| ... | @@ -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,12 +491,10 @@ const setTableData = (dataArr) => { | ... | @@ -491,12 +491,10 @@ 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 || ''))) { | ||
| 495 | (() => { | 494 | (() => { |
| 496 | getDemandField(rGuid, rIndex); | 495 | getDemandField(rGuid, rIndex); |
| 497 | })() | 496 | })() |
| 498 | } | 497 | } |
| 499 | } | ||
| 500 | }) | 498 | }) |
| 501 | resourceTableFieldAllNum.value = tableData.value.reduce((accumulator, currentValue) => { | 499 | resourceTableFieldAllNum.value = tableData.value.reduce((accumulator, currentValue) => { |
| 502 | return accumulator + Number(currentValue.dataFieldsNum); | 500 | return accumulator + Number(currentValue.dataFieldsNum); |
| ... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment