From facc2b176884703e19cd5c09114bffd1e7edc2d9 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Sat, 18 Oct 2025 15:54:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../production-inbound/inboundRegister.vue | 31 ++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/src/views/modules/production-inbound/inboundRegister.vue b/src/views/modules/production-inbound/inboundRegister.vue index b5fb619..029ad38 100644 --- a/src/views/modules/production-inbound/inboundRegister.vue +++ b/src/views/modules/production-inbound/inboundRegister.vue @@ -22,17 +22,17 @@
- - {{ orderDetail.orderNo }} + {{ orderDetail.partNo }} - {{ orderDetail.partNo }} + {{ orderDetail.releaseNo }}/{{ orderDetail.sequenceNo }} - 入库 @@ -253,15 +253,32 @@ export default { this.loadingText = '搜索中...'; this.fullscreenLoading = true; + // 解析工单号:支持 "3038851" 或 "3038851-1-2" 格式 + let orderNo = this.scanCode.trim(); + let releaseNo = "*"; + let sequenceNo = "*"; + + // 如果包含"-",则按照 orderNo-releaseNo-sequenceNo 格式解析 + const parts = orderNo.split('-'); + if (parts.length >= 2) { + orderNo = parts[0]; + releaseNo = parts[1]; + if (parts.length >= 3) { + sequenceNo = parts[2]; + } + } + const requestData = { ifsDBName: "IFST", domainUserID: "CCL_WMS", ifsSiteID: this.site, - ifsOrderNo: this.scanCode, - ifsReleaseNo: "*", - ifsSequenceNo: "*" + ifsOrderNo: orderNo, + ifsReleaseNo: releaseNo, + ifsSequenceNo: sequenceNo }; + console.log('工单查询参数:', requestData); + getShopOrderFromIfs(requestData).then(({ data }) => { if (data.code === 0) { this.shopOrderList = data.data || []