diff --git a/RuoYi-App-master/pages/in/bindMsg.vue b/RuoYi-App-master/pages/in/bindMsg.vue index dc504d9..0932c49 100644 --- a/RuoYi-App-master/pages/in/bindMsg.vue +++ b/RuoYi-App-master/pages/in/bindMsg.vue @@ -75,7 +75,7 @@ - + @@ -97,7 +97,7 @@ - + @@ -174,7 +174,7 @@ selectedEntrance: '', selectedEntranceId: '', selectedEntranceIndex: 0, - + } }, onReady() { @@ -183,8 +183,8 @@ this.$refs.trayCodeInput.onFocus() }) }, 100) - - + + }, methods: { // 根据仓库ID获取入口列表 @@ -193,7 +193,7 @@ this.selectedEntrance = '' this.selectedEntranceId = '' this.selectedEntranceIndex = 0 - + if (warehouseId === '02') { this.entranceList = [ { id: 'G1001', name: 'G1001' }, @@ -202,11 +202,13 @@ } else if (warehouseId === '13') { this.entranceList = [ { id: 'G3006', name: 'G3006' }, - { id: 'G1001', name: 'G1001' } + { id: 'G2007', name: 'G2007' }, + { id: 'G4006', name: 'G4006' }, + { id: 'G5006', name: 'G5006' } ] } }, - + // 处理货位选择 async handleRecommendCargoSpace() { // try { @@ -268,14 +270,14 @@ }) return } - + try { const response = await addInJob({ cargoSpaceId: this.cargoSpaceId, trayCode: this.trayCode, warehouseId: this.materialList[0].warehouseId }) - + if (response.code === 200) { uni.showToast({ title: this.$t('inbound.bindMsg.inboundSuccess'), @@ -324,7 +326,7 @@ async fetchTrayInfo(trayCode) { try { const response = await getTrayInfo(trayCode) - + if (response.code===200) { if(response.data.length>0){ @@ -332,7 +334,7 @@ }else{ this.materialList=[] } - + } else { uni.showToast({ title: response.msg || this.$t('inbound.bindMsg.getTrayInfoFailed'), @@ -362,7 +364,7 @@ if (warehouseType === '1') { // 显示货位选择弹出框 this.$refs.cargoSpacePopup.open() - + } else { // 非货位类型仓库,显示入口选择弹出框 this.getEntranceListByWarehouseId(warehouseId) @@ -428,7 +430,7 @@ trayCode: this.trayCode, warehouseId: this.materialList[0].warehouseId }) - + if (response.code === 200) { uni.showToast({ title: this.$t('inbound.bindMsg.inboundSuccess'), @@ -459,7 +461,7 @@ warehouseId: this.materialList[0].warehouseId, entranceId: this.selectedEntranceId }) - + if (response.code === 200) { uni.showToast({ title: this.$t('inbound.bindMsg.inboundSuccess'), @@ -503,7 +505,7 @@ if (this.subOrderInfo) { this.$refs.subOrderPopup.open() } - + } }, // 处理子单据清除事件 @@ -579,7 +581,7 @@ icon: 'none' }) } - + const response = await bindTray({ trayCode: this.trayCode, @@ -597,7 +599,7 @@ this.subOrderInfo = null this.inQuantity='' this.fetchTrayInfo(this.trayCode) - + } else { uni.showToast({ title: response.msg || this.$t('inbound.bindMsg.bindFailed'), @@ -621,7 +623,7 @@ trayCode: this.trayCode, stockinDetailId: stockinDetailId }) - + if (response.code === 200) { uni.showToast({ title: this.$t('inbound.bindMsg.unbindSuccess'), @@ -644,7 +646,7 @@ } } } - +