From 3fda8a557eae09096684526a4a6c12deab7dc8d1 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Wed, 5 Jul 2023 14:25:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/modules/lettering/lettering-load.vue | 12 ++++++++++-- .../modules/lettering/temporary-lettering-load.vue | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) 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 () {