From 14baa9522e06ba0f0d77500b8a9e2c63b71a4f8b Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Wed, 2 Sep 2026 10:12:55 +0800 Subject: [PATCH 1/3] contract -> site --- src/views/modules/recv/recv.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/modules/recv/recv.vue b/src/views/modules/recv/recv.vue index 8afb053..2cf5ec6 100644 --- a/src/views/modules/recv/recv.vue +++ b/src/views/modules/recv/recv.vue @@ -266,7 +266,10 @@ export default { const sourceRows = data.rows || []; const authorizedSubSiteCodeList = getAuthorizedSubSiteCodeList(this.$store.state.user.subSiteCodeList); // 接口按site前缀查询会返回同前缀下的所有子site,这里按当前用户授权子site做二次过滤 - this.poList = filterRowsByAuthorizedSubSite(sourceRows, authorizedSubSiteCodeList, ['contract']); + this.poList = filterRowsByAuthorizedSubSite(sourceRows, authorizedSubSiteCodeList, ['site']); + if (this.poList.length === 0) { + this.$message.warning('未找到匹配的采购订单或您没有权限查看'); + } } else { this.$message.error(data.msg || '操作失败'); } @@ -544,7 +547,7 @@ export default { // 构建符合服务端TransDetailDto结构的数据 const receiveData = { // 基本字段 - site: item.contract, + site: item.site, warehouseId: this.warehouseId, partNo: item.partNo, partDesc: item.description, From f5ac7c30a041c4add4a37d31aabd7126ac5e4ff6 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Wed, 2 Sep 2026 16:24:35 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=BA=93=E4=BD=8D=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=BC=A0=E7=88=B6site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/other-transaction/inventory-move.vue | 3 ++- src/views/modules/production-inbound/inboundRegister.vue | 1 + src/views/modules/recv/qualifiedStorage.vue | 1 + src/views/modules/recv/recv.vue | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/modules/other-transaction/inventory-move.vue b/src/views/modules/other-transaction/inventory-move.vue index ee56fdb..6f5781f 100644 --- a/src/views/modules/other-transaction/inventory-move.vue +++ b/src/views/modules/other-transaction/inventory-move.vue @@ -318,6 +318,7 @@ export default { const params = { site: this.site, + fuSite: localStorage.getItem('site'), moveReason: this.moveForm.moveReason, targetLocationId: this.moveForm.targetLocationId, handlingUnitIds: handlingUnitIds, @@ -362,7 +363,7 @@ export default { // 清空扫描框 this.scanCode = ''; - + this.site = ''; // 重置为添加模式 this.isRemoveMode = false; diff --git a/src/views/modules/production-inbound/inboundRegister.vue b/src/views/modules/production-inbound/inboundRegister.vue index 16a5ab7..caee66a 100644 --- a/src/views/modules/production-inbound/inboundRegister.vue +++ b/src/views/modules/production-inbound/inboundRegister.vue @@ -661,6 +661,7 @@ export default { const submitData = { // 基本字段 site: item.contract, + fuSite: localStorage.getItem('site'), warehouseId: this.warehouseId, orderNo: item.orderNo, releaseNo: item.releaseNo, diff --git a/src/views/modules/recv/qualifiedStorage.vue b/src/views/modules/recv/qualifiedStorage.vue index d397caa..751c42a 100644 --- a/src/views/modules/recv/qualifiedStorage.vue +++ b/src/views/modules/recv/qualifiedStorage.vue @@ -556,6 +556,7 @@ export default { const params = { site: this.selectedReceipt.contract, + fuSite: localStorage.getItem('site'), receiptSequence: this.selectedReceipt.receiptSequence, sourceRef1: this.selectedReceipt.sourceRef1, sourceRef2: this.selectedReceipt.sourceRef2, diff --git a/src/views/modules/recv/recv.vue b/src/views/modules/recv/recv.vue index 2cf5ec6..09c1550 100644 --- a/src/views/modules/recv/recv.vue +++ b/src/views/modules/recv/recv.vue @@ -548,6 +548,7 @@ export default { const receiveData = { // 基本字段 site: item.site, + fuSite: localStorage.getItem('site'), warehouseId: this.warehouseId, partNo: item.partNo, partDesc: item.description, From 4f2ac6770a569ce5beb7c69eb65e5f50d831e8e1 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Wed, 2 Sep 2026 16:29:42 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=BA=93=E4=BD=8D=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=BC=A0=E7=88=B6site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/other-transaction/other-inbound.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/modules/other-transaction/other-inbound.vue b/src/views/modules/other-transaction/other-inbound.vue index 24e5222..b78e828 100644 --- a/src/views/modules/other-transaction/other-inbound.vue +++ b/src/views/modules/other-transaction/other-inbound.vue @@ -145,7 +145,7 @@ export default { targetLocationId: '' }, scannedItems: [], - site: localStorage.getItem('site'), + site: '', loading: false // 加载状态 }; }, @@ -322,6 +322,7 @@ export default { const params = { site: this.site, + fuSite: localStorage.getItem('site'), inboundReason: this.inboundForm.inboundReason, targetLocationId: this.inboundForm.targetLocationId, handlingUnitIds: handlingUnitIds, @@ -382,6 +383,7 @@ export default { // 清空表单数据 clearFormData() { this.scanCode = ''; + this.site = ''; this.isRemoveMode = false; this.inboundForm = { inboundReason: '',