diff --git a/src/api/haianAutoWarehouse/palletSpecialEdit.js b/src/api/haianAutoWarehouse/palletSpecialEdit.js index 6ea0a69..a39f7b4 100644 --- a/src/api/haianAutoWarehouse/palletSpecialEdit.js +++ b/src/api/haianAutoWarehouse/palletSpecialEdit.js @@ -9,5 +9,5 @@ export const savePalletSpecialEdit = data => createAPI(`/haiAnWcsIntegration/sav // 海安栈板特殊修改:沿用既有接口路径执行强制置空,清空位置并将任务标记置N;货架占用由后端拒绝 - rqrq export const forceRemovePalletSpecialEdit = data => createAPI(`/haiAnWcsIntegration/forceRemovePalletSpecialEdit`, 'post', data) -// 海安栈板特殊修改:非立库区域查询全部地面站点,供所在位置下拉 - rqrq +// 海安栈板特殊修改:非立库查地面站点;立库由后端固定返回4个手工分拣位,供所在位置下拉 - rqrq export const listStationsForSpecialEdit = data => createAPI(`/haiAnWcsIntegration/listStationsForSpecialEdit`, 'post', data) diff --git a/src/views/modules/haianAutoWarehouse/haianPalletChangeStation.vue b/src/views/modules/haianAutoWarehouse/haianPalletChangeStation.vue index 8c2f484..1288a26 100644 --- a/src/views/modules/haianAutoWarehouse/haianPalletChangeStation.vue +++ b/src/views/modules/haianAutoWarehouse/haianPalletChangeStation.vue @@ -397,7 +397,7 @@ export default { palletId: this.palletCode, startStation: this.palletInfo.currentStationCode, targetArea: this.selectedArea, - targetStation: this.selectedStation || '' // 空表示自动分配 - rqrq + targetStation: this.selectedStation || '' // 空表示不传目标站点,由WCS按区域分配 - rqrq }; this.$confirm('确定下达任务?', '提示', { diff --git a/src/views/modules/haianAutoWarehouse/haianPalletSpecialEdit.vue b/src/views/modules/haianAutoWarehouse/haianPalletSpecialEdit.vue index 4eefead..5dff306 100644 --- a/src/views/modules/haianAutoWarehouse/haianPalletSpecialEdit.vue +++ b/src/views/modules/haianAutoWarehouse/haianPalletSpecialEdit.vue @@ -52,19 +52,10 @@
- - + item && item.areaId === this.form.areaId) return !!(area && area.stockArea) @@ -191,11 +182,11 @@ export default { } return area.areaDesc }, - // 换成立库时保留输入框里的位置,是否在货架可再选;换成其它区域时固定为否并清空位置,再拉该区域全部站点 - rqrq + // 换成立库时保留当前位置并拉取固定分拣位;换成其它区域时固定为否并清空位置,再拉该区域全部站点 - rqrq handleAreaChange () { if (this.isStockArea) { - this.stationOptions = [] this.form.batchWcsFlag = null + this.loadStations(true) return } this.form.onShelfFlag = 'N' @@ -261,18 +252,19 @@ export default { this.palletCode = this.form.palletId this.scanned = true if (this.isStockArea) { - this.stationOptions = [] + // 立库位置候选是后端固定的4个分拣位,保留扫描回显的货架点位 - rqrq + this.loadStations(true) } else { // 非立库没有货架占用,即使原来wcs_location有值也按否回显,并且下拉禁用 - rqrq this.form.onShelfFlag = 'N' this.loadStations(true) } }, - // 非立库区域拉取全部站点。keepCurrent为真时保留扫描回显的位置,清单里没有也补进候选;失败时仍允许手输位置 - rqrq + // 按当前区域拉位置候选。立库拿固定分拣位,其它区域拿地面站点;keepCurrent为真时,清单里没有的当前位置也补进候选,失败仍允许手输 - rqrq loadStations (keepCurrent) { const areaId = this.form.areaId const currentLocation = keepCurrent ? (this.form.locationCode || '').trim() : '' - if (!areaId || this.isStockArea) { + if (!areaId) { this.stationOptions = [] this.stationLoading = false return