数据定价更新
Showing
1 changed file
with
3 additions
and
3 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, |
| ... | @@ -864,8 +864,8 @@ const getCalculateParams = (baseConfigFormObj, baseConfigFormInfo) => { | ... | @@ -864,8 +864,8 @@ const getCalculateParams = (baseConfigFormObj, baseConfigFormInfo) => { |
| 864 | } | 864 | } |
| 865 | buildInData.value.map(item => { | 865 | buildInData.value.map(item => { |
| 866 | let targetValue = baseConfigFormInfo[`build_${item.guid}`]; | 866 | let targetValue = baseConfigFormInfo[`build_${item.guid}`]; |
| 867 | if(typeof targetValue === 'string'){ | 867 | if (typeof targetValue === 'string') { |
| 868 | if(/^[+-]?\d{1,3}(,\d{3})*(\.\d{2})?$/.test(targetValue)){ | 868 | if (/^[+-]?\d{1,3}(,\d{3})*(\.\d{2})?$/.test(targetValue)) { |
| 869 | targetValue = parseFloat(targetValue.replace(/,/g, '')) | 869 | targetValue = parseFloat(targetValue.replace(/,/g, '')) |
| 870 | } | 870 | } |
| 871 | } | 871 | } | ... | ... |
-
Please register or sign in to post a comment