From 211ac9cd531ffebcb9551f9300dcdc295b9cc238 Mon Sep 17 00:00:00 2001
From: zhang_li
Date: Wed, 16 Apr 2025 09:41:34 +0800
Subject: [PATCH] =?UTF-8?q?YT-2404=E7=9B=B4=E6=8E=A5=E5=8F=91=E6=96=99?=
=?UTF-8?q?=EF=BC=8C=E6=89=AB=E6=8F=8F=E7=9B=AE=E6=A0=87=E5=BA=93=E4=BD=8D?=
=?UTF-8?q?=EF=BC=8C=E5=BA=94=E4=B8=8D=E8=83=BD=E5=B8=A6=E5=87=BA=E7=A6=81?=
=?UTF-8?q?=E7=94=A8=E7=9A=84=E7=94=9F=E4=BA=A7=E7=BA=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/issue/record/directIssueByBatch.vue | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/pages/issue/record/directIssueByBatch.vue b/src/pages/issue/record/directIssueByBatch.vue
index 9315e08a..14c89857 100644
--- a/src/pages/issue/record/directIssueByBatch.vue
+++ b/src/pages/issue/record/directIssueByBatch.vue
@@ -436,8 +436,15 @@
const res = await workstationByLocation(params)
if(res.code == 0){
if(res.data&&res.data.list&&res.data.list.length>0){
- this.positionInfo = res.data.list[0].productionLineCode
- this.workStationCode = res.data.list[0].workshopCode
+ // const array = res.data.list.filter(item=>item.available == 'TRUE')
+ const array = []
+ console.log(array)
+ if(array.length>0){
+ this.positionInfo = array[0].productionLineCode
+ this.workStationCode = array[0].workshopCode
+ }else{
+ this.showErrorMessage("未查询到库位对应的生产线,请重新扫描。")
+ }
}else{
this.showErrorMessage("未查询到库位对应的生产线,请重新扫描。")
this.positionInfo = ''