1b733332 by lxs Committed by lihua

数据定价更新

1 parent 0acd4578
......@@ -274,10 +274,8 @@ const getDetail = () => {
typeMap.value.modelGuid.unshift(mtem);
baseConfigFormItems.value[0].options.unshift(mtem);
};
setTimeout(() => {
getModelInfo(flowDetail.value.modelGuid);
getDataTypeList()
}, 200)
}
}).catch(() => {
loading.value = false;
......@@ -374,7 +372,8 @@ const setBuildInFormItems = (buildList) => {
buildInData.value.push({
guid: b.guid,
targetName: buildName,
targetValue: b.defaultValue || ''
targetValue: b.defaultValue || '',
isInputParameter: b.isInputParameter,
})
baseConfigFormItems.value.push({
label: buildName,
......@@ -385,7 +384,8 @@ const setBuildInFormItems = (buildList) => {
inputType: 'moneyNumber',
maxlength: 18,
clearable: true,
disabled: b.isInputParameter != 'Y'
disabled: b.isInputParameter != 'Y',
required: true
});
baseConfigFormRules.value[buildField] = [
{ required: true, message: `请填写${buildName}`, trigger: 'blur' },
......@@ -863,9 +863,15 @@ 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)){
targetValue = parseFloat(targetValue.replace(/,/g, ''))
}
}
builtInTarget.push({
...item,
targetValue: baseConfigFormInfo[`build_${item.guid}`],
targetValue
})
})
params.dictionaryJson = Object.keys(dictionaryJson).length ? JSON.stringify(dictionaryJson) : '';
......@@ -1061,7 +1067,6 @@ onBeforeMount(() => {
}
})
onMounted(() => {
getModel()
})
</script>
<template>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!