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 || []