Browse Source

site使用contract

master
han\hanst 23 hours ago
parent
commit
7f65ed8970
  1. 1
      src/views/modules/production-withdrawal/order-list.vue
  2. 10
      src/views/modules/production-withdrawal/scan-hu.vue

1
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,

10
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,

Loading…
Cancel
Save