Commit 14577566 authored by 张海景's avatar 张海景

update:修改刀模板具的判断逻辑

parent b994daba
...@@ -909,11 +909,11 @@ export default { ...@@ -909,11 +909,11 @@ export default {
const records = await this.$u.api.dModel.getRecordsByProcessIdAndArrangeCode(params) const records = await this.$u.api.dModel.getRecordsByProcessIdAndArrangeCode(params)
// 如果有数据 // 如果有数据
if (records?.data && records.data.length) { if (records?.data && records.data.length) {
return this.$u.toast('该刀模版具不属于该工单')
} else {
this.dModelData = records.data this.dModelData = records.data
this.knifeTempVisible = true this.knifeTempVisible = true
return return
} else {
return this.$u.toast('该刀模版具不属于该工单')
} }
this.addDModelRecord(params) this.addDModelRecord(params)
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment