From b4e378c14613ce3eec3696907bc3f68fc47dc31d Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 13 Jan 2025 09:59:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/wms/produceScreen/index.vue | 16 ++++++++++------ .../src/views/wms/produceScreen/mork.js | 4 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/lms/nladmin-ui/src/views/wms/produceScreen/index.vue b/lms/nladmin-ui/src/views/wms/produceScreen/index.vue index c754154..1152e9b 100644 --- a/lms/nladmin-ui/src/views/wms/produceScreen/index.vue +++ b/lms/nladmin-ui/src/views/wms/produceScreen/index.vue @@ -389,11 +389,13 @@ export default { } }, handleCurrentChange(val) { - this.currentRow = val - this.imgSrc = val.vehicle_path - crudProduceScreen.fabMaterial({ vehicle_code: this.currentRow.vehicle_code }).then(res => { - this.popSecList = [...res] - }) + if (val) { + this.currentRow = val + this.imgSrc = val.vehicle_path + crudProduceScreen.fabMaterial({ vehicle_code: this.currentRow.vehicle_code }).then(res => { + this.popSecList = [...res] + }) + } }, toSure() { this.disabled = true @@ -464,7 +466,9 @@ export default { rows.splice(index, 1) }, handleCurrentChange1(val) { - this.imgSrc = val.vehicle_path + if (val) { + this.imgSrc = val.vehicle_path + } } } } diff --git a/lms/nladmin-ui/src/views/wms/produceScreen/mork.js b/lms/nladmin-ui/src/views/wms/produceScreen/mork.js index 70492f1..0b9ef91 100644 --- a/lms/nladmin-ui/src/views/wms/produceScreen/mork.js +++ b/lms/nladmin-ui/src/views/wms/produceScreen/mork.js @@ -30,7 +30,7 @@ export function deviceInLogin() { // 4.根据工序查询订单 export function regionOrder(code) { const res = { - content: [{ vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11', vehicle_path: 'http://127.0.0.1:5500/src/assets/images/screen_bg.jpg.preview' }, { order_code: '1', vehicle_path: 'http://127.0.0.1:5500/src/assets/images/screen_bg.jpg.preview' }, { order_code: '2' }, { order_code: '3' }, { order_code: '4' }, { order_code: '5' }, { order_code: '6' }, { order_code: '7' }, { order_code: '8' }, { order_code: '9' }] + content: [{ vehicle_code: '123', order_code: '800034202869', region_code: '111-07', material_id: 'A7E0019008760_00', material_type: 'S39_SA01', custom: 'BBC支撑板后上', material_qty: '120', plan_date: '2024/8/11', vehicle_path: '' }, { order_code: '1', vehicle_path: '' }, { order_code: '2' }, { order_code: '3' }, { order_code: '4' }, { order_code: '5' }, { order_code: '6' }, { order_code: '7' }, { order_code: '8' }, { order_code: '9' }] } return new Promise((resolve, reject) => { resolve(res) @@ -40,7 +40,7 @@ export function regionOrder(code) { // 5.查询载具物料信息 export function fabMaterial() { const res = [ - { order_code: '111-02', material_qty: '', vehicle_path: 'http://127.0.0.1:5500/src/assets/images/screen_bg.jpg.preview' } + { order_code: '111-02', material_qty: '', vehicle_path: '' } ] return new Promise((resolve, reject) => { resolve(res)