02077601 by lxs Committed by lihua

数据定价更新

1 parent 1b733332
......@@ -380,7 +380,7 @@ const setBuildInFormItems = (buildList) => {
type: 'input',
placeholder: '',
field: buildField,
default: '',
default: b.isInputParameter != 'Y' ? changeNum(b.defaultValue, 2) : b.defaultValue != '' && b.defaultValue != null ? parseFloat(b.defaultValue).toFixed(2) : '',
inputType: 'moneyNumber',
maxlength: 18,
clearable: true,
......@@ -864,8 +864,8 @@ const getCalculateParams = (baseConfigFormObj, baseConfigFormInfo) => {
}
buildInData.value.map(item => {
let targetValue = baseConfigFormInfo[`build_${item.guid}`];
if(typeof targetValue === 'string'){
if(/^[+-]?\d{1,3}(,\d{3})*(\.\d{2})?$/.test(targetValue)){
if (typeof targetValue === 'string') {
if (/^[+-]?\d{1,3}(,\d{3})*(\.\d{2})?$/.test(targetValue)) {
targetValue = parseFloat(targetValue.replace(/,/g, ''))
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!