From 14baa9522e06ba0f0d77500b8a9e2c63b71a4f8b Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Wed, 2 Sep 2026 10:12:55 +0800 Subject: [PATCH] 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,