fix:排一次棒编辑时判断是否有工艺图片

This commit is contained in:
shijing 2026-01-12 10:56:16 +08:00
parent 3c96c48d2e
commit f7fc184630
1 changed files with 7 additions and 7 deletions

View File

@ -474,8 +474,6 @@ export default {
setData(data) { setData(data) {
let that = this; let that = this;
Object.assign(that.form, data); Object.assign(that.form, data);
console.log('that.form',that.form);
console.log('that.form.material_in_name',that.form.material_in_name);
that.routeId = data.id; that.routeId = data.id;
that.addTemplate.route = data.id; that.addTemplate.route = data.id;
that.params_json=that.form.params_json; that.params_json=that.form.params_json;
@ -487,11 +485,13 @@ export default {
} }
if(data.process_name=='排一次棒'){ if(data.process_name=='排一次棒'){
that.params_json=that.form.params_json; that.params_json=that.form.params_json;
let fileurl = JSON.parse(that.params_json.fileurl); if(that.params_json.fileurl){
fileurl.forEach((item)=>{ let fileurl = JSON.parse(that.params_json.fileurl);
item.url = item.path; fileurl.forEach((item)=>{
that.fileurl.push(item); item.url = item.path;
}) that.fileurl.push(item);
})
}
} }
setTimeout(() => { setTimeout(() => {
that.options.forEach((item) => { that.options.forEach((item) => {