diff --git a/src/views/mtm/route_form.vue b/src/views/mtm/route_form.vue index 025f77fa..368556a8 100644 --- a/src/views/mtm/route_form.vue +++ b/src/views/mtm/route_form.vue @@ -474,8 +474,6 @@ export default { setData(data) { let that = this; 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.addTemplate.route = data.id; that.params_json=that.form.params_json; @@ -487,11 +485,13 @@ export default { } if(data.process_name=='排一次棒'){ that.params_json=that.form.params_json; - let fileurl = JSON.parse(that.params_json.fileurl); - fileurl.forEach((item)=>{ - item.url = item.path; - that.fileurl.push(item); - }) + if(that.params_json.fileurl){ + let fileurl = JSON.parse(that.params_json.fileurl); + fileurl.forEach((item)=>{ + item.url = item.path; + that.fileurl.push(item); + }) + } } setTimeout(() => { that.options.forEach((item) => {