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,