diff --git a/src/pages/modules/lettering/lettering-load.vue b/src/pages/modules/lettering/lettering-load.vue index 85fd6cb..89d3634 100644 --- a/src/pages/modules/lettering/lettering-load.vue +++ b/src/pages/modules/lettering/lettering-load.vue @@ -65,12 +65,20 @@ export default { // 设备下拉框 async _devicelist () { let res = await devicelist('1535144682756116480') - this.options2 = [...res.data] + if (res.code === 200) { + this.options2 = [...res.content] + } else { + this.toast(res.msg) + } }, // 车间下拉框 async _dictDetailByCode () { let res = await dictDetailByCode('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/temporary-lettering-load.vue b/src/pages/modules/lettering/temporary-lettering-load.vue index a511288..ace910c 100644 --- a/src/pages/modules/lettering/temporary-lettering-load.vue +++ b/src/pages/modules/lettering/temporary-lettering-load.vue @@ -65,12 +65,20 @@ export default { // 设备下拉框 async _devicelist () { let res = await devicelist('1535144682756116480') - this.options2 = [...res.data] + if (res.code === 200) { + this.options2 = [...res.content] + } else { + this.toast(res.msg) + } }, // 车间下拉框 async _dictDetailByCode () { let res = await dictDetailByCode('product_area') - this.options1 = [...res.data] + if (res.code === 200) { + this.options1 = [...res.content] + } else { + this.toast(res.msg) + } }, // 空框搬回 async toSure () {