diff --git a/src/pages/modules/lettering/lettering-process.vue b/src/pages/modules/lettering/lettering-process.vue index 6aeed2f..7c85f98 100644 --- a/src/pages/modules/lettering/lettering-process.vue +++ b/src/pages/modules/lettering/lettering-process.vue @@ -64,12 +64,20 @@ export default { // 设备下拉框 async _letterDeviceList () { let res = await letterDeviceList('1535144682756116480') - this.options2 = [...res.data] + if (res.code === 200) { + this.options2 = [...res.content] + } else { + this.toast(res.msg) + } }, // 车间下拉框 async _pourDictList () { let res = await pourDictList('product_area') - this.options1 = [...res.data] + if (res.code === 200) { + this.options1 = [...res.content] + } else { + this.toast(res.msg) + } }, // 确认入库 async toSure () { diff --git a/src/pages/modules/lettering/man-pouring.vue b/src/pages/modules/lettering/man-pouring.vue index 8bac7e5..173671f 100644 --- a/src/pages/modules/lettering/man-pouring.vue +++ b/src/pages/modules/lettering/man-pouring.vue @@ -63,12 +63,20 @@ export default { // 设备下拉框 async _pourDeviceList () { let res = await pourDeviceList() - this.options2 = [...res.data] + if (res.code === 200) { + this.options2 = [...res.content] + } else { + this.toast(res.msg) + } }, // 车间下拉框 async _pourDictList () { let res = await pourDictList('product_area') - this.options1 = [...res.data] + if (res.code === 200) { + this.options1 = [...res.content] + } else { + this.toast(res.msg) + } }, // 确认入库 async toSure () {