02077601 by lxs Committed by lihua

数据定价更新

1 parent 1b733332
...@@ -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 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!