This commit is contained in:
xielue 2023-09-16 13:43:27 +08:00
parent b97fb716cd
commit cb89daa7d1
3 changed files with 15 additions and 3 deletions

View File

@ -32,7 +32,6 @@ export default {
}
data[saveField] = parseInt(value); // 转换为整数
}
}
else if (rule.dataRule.type == "number" || rule.dataRule.type == "float") { // 如果是整数
if(value == null){

View File

@ -61,6 +61,12 @@ export default {
data[rule.field] = new Date(value * 1000);
}
if(rule.dataRule.isSelect){
if(value == 0){
data[rule.field] =null;
}
}
}
});
};

View File

@ -288,6 +288,13 @@ export default {
this.detailsData = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].mold_scheme_components || []));
this.detailsData2 = JSON.parse(JSON.stringify(a.data[this.detailDataFieldName].mold_scheme_processes || []));
this.detailsData.forEach(item=>{
if(item.production_type === 0){
item.production_type = null;
}
})
this.detailsData = JSON.parse(JSON.stringify(this.detailsData))
this.detailsDataInit();