diff --git a/src/views/modules/production-withdrawal/order-list.vue b/src/views/modules/production-withdrawal/order-list.vue index 56d80f9..a47edbc 100644 --- a/src/views/modules/production-withdrawal/order-list.vue +++ b/src/views/modules/production-withdrawal/order-list.vue @@ -164,6 +164,7 @@ export default { path: '/productionWithdrawalScan', query: { site: item.contract, + contract: item.contract, orderNo: item.sourceRef1, releaseNo: item.sourceRef2, sequenceNo: item.sourceRef3, diff --git a/src/views/modules/production-withdrawal/scan-hu.vue b/src/views/modules/production-withdrawal/scan-hu.vue index a1d6d93..467587f 100644 --- a/src/views/modules/production-withdrawal/scan-hu.vue +++ b/src/views/modules/production-withdrawal/scan-hu.vue @@ -153,6 +153,7 @@ export default { // 工单信息 orderInfo: { site: '', + contract: '', orderNo: '', releaseNo: '', sequenceNo: '', @@ -203,6 +204,7 @@ export default { // 从路由参数获取工单信息 this.orderInfo = { site: this.$route.query.site || '', + contract: this.$route.query.contract || '', orderNo: this.$route.query.orderNo || '', releaseNo: this.$route.query.releaseNo || '', sequenceNo: this.$route.query.sequenceNo || '', @@ -350,9 +352,15 @@ export default { */ submitWithdrawalData() { const unitIds = this.scannedHus.map(hu => hu.unitId) + // 退库记在选中接收记录的工厂上,登录站点可能只是上级站点。 + const site = this.orderInfo.contract + if (!site) { + this.$message.error('选中数据缺少工厂编码') + return + } const params = { - site: this.orderInfo.site, + site: site, orderNo: this.orderInfo.orderNo, releaseNo: this.orderInfo.releaseNo, sequenceNo: this.orderInfo.sequenceNo,