diff --git a/src/views/modules/haianAutoWarehouse/haianCallOutToStation.vue b/src/views/modules/haianAutoWarehouse/haianCallOutToStation.vue
index 446c78d..161d0db 100644
--- a/src/views/modules/haianAutoWarehouse/haianCallOutToStation.vue
+++ b/src/views/modules/haianAutoWarehouse/haianCallOutToStation.vue
@@ -138,22 +138,16 @@
-
+
-
@@ -180,8 +174,7 @@ import {
getPalletList
} from '../../../api/haianAutoWarehouse/callOut'
import {
- getAreaOptionsForChange,
- getStationsByArea
+ getAreaOptionsForChange
} from '../../../api/haianAutoWarehouse/palletChangeStation'
import {
callOutToStation
@@ -383,7 +376,8 @@ export default {
return;
}
- // 加载区域选项并打开弹窗 - rqrq
+ // 打开弹窗前先把站点锁回自动分配,避免上次选择残留 - rqrq
+ this.selectedStation = '';
this.loadAreaOptions();
this.locationModalVisible = true;
},
@@ -394,9 +388,13 @@ export default {
site: this.site
}).then(({ data }) => {
if (data.code === 0) {
- // 过滤掉Z199区域,Call料到指定位置不允许选择Z199 - rqrq
+ // 立库取货不能叫到 Z199,也不能叫到边库暂存区 A11 - rqrq
const allOptions = data.rows || [];
- this.areaOptions = allOptions.filter(area => area.areaId !== 'Z199');
+ this.areaOptions = allOptions.filter(area => area && area.areaId !== 'Z199' && area.areaId !== 'A11');
+ if (this.selectedArea === 'Z199' || this.selectedArea === 'A11') {
+ this.selectedArea = '';
+ }
+ this.selectedStation = '';
} else {
this.areaOptions = [];
this.$alert('获取区域选项失败', '错误', {
@@ -409,31 +407,10 @@ export default {
});
},
- // 区域变化 - rqrq
- handleAreaChange(areaId) {
+ // 选了区域后站点固定自动分配,不再加载具体位置 - rqrq
+ handleAreaChange() {
this.selectedStation = '';
this.stationOptions = [];
-
- if (!areaId) {
- return;
- }
-
- getStationsByArea({
- site: this.site,
- areaId: areaId
- }).then(({ data }) => {
- if (data.code === 0) {
- this.stationOptions = data.rows || [];
- } else {
- this.stationOptions = [];
- this.$alert('获取站点选项失败', '错误', {
- confirmButtonText: '确定'
- });
- }
- }).catch(error => {
- console.error('获取站点选项失败:', error);
- this.stationOptions = [];
- });
},
// 确认位置选择 - rqrq
@@ -460,7 +437,8 @@ export default {
qty: this.selectedPallet.qty,
batchNo: this.selectedPallet.batchNo,
targetArea: this.selectedArea,
- targetStation: this.selectedStation || '', // 空表示自动分配 - rqrq
+ // 立库取货不接收具体站点,空值由后端按区域空闲点自动分配 - rqrq
+ targetStation: '',
username: this.username
};
diff --git a/src/views/modules/haianAutoWarehouse/haianEmptyPalletAssembly.vue b/src/views/modules/haianAutoWarehouse/haianEmptyPalletAssembly.vue
index b0a2c6d..c122f46 100644
--- a/src/views/modules/haianAutoWarehouse/haianEmptyPalletAssembly.vue
+++ b/src/views/modules/haianAutoWarehouse/haianEmptyPalletAssembly.vue
@@ -200,7 +200,9 @@ export default {
loadPalletTypes(palletFamily) {
getPalletTypes({
site: this.site,
- palletFamily: palletFamily || ''
+ palletFamily: palletFamily || '',
+ // 按当前托盘号收窄:G 只返回一宫格,J 只返回四宫格和九宫格 - rqrq
+ palletId: this.palletCode
}).then(({ data }) => {
if (data.code === 0) {
this.palletTypeOptions = data.rows || [];
diff --git a/src/views/modules/haianAutoWarehouse/haianPalletAssembly.vue b/src/views/modules/haianAutoWarehouse/haianPalletAssembly.vue
index 50cd49f..424fa1d 100644
--- a/src/views/modules/haianAutoWarehouse/haianPalletAssembly.vue
+++ b/src/views/modules/haianAutoWarehouse/haianPalletAssembly.vue
@@ -609,6 +609,8 @@ export default {
getPalletTypeList({
site: this.site,
palletFamily: this.currentPalletFamily || '',
+ // 按当前托盘号收窄:G 只返回一宫格,J 只返回四宫格和九宫格 - rqrq
+ palletId: this.palletCode,
active: 'Y'
}).then(({ data }) => {
if (data && data.code === 0) {
diff --git a/src/views/modules/haianAutoWarehouse/haianPalletPacking.vue b/src/views/modules/haianAutoWarehouse/haianPalletPacking.vue
index a385802..60ccf69 100644
--- a/src/views/modules/haianAutoWarehouse/haianPalletPacking.vue
+++ b/src/views/modules/haianAutoWarehouse/haianPalletPacking.vue
@@ -645,6 +645,8 @@ export default {
getPalletTypeList({
site: this.site,
palletFamily: this.currentPalletFamily || '',
+ // 按当前托盘号收窄:G 只返回一宫格,J 只返回四宫格和九宫格 - rqrq
+ palletId: this.palletCode,
active: 'Y'
}).then(({ data }) => {
if (data && data.code === 0) {
diff --git a/src/views/modules/haianAutoWarehouse/haianPalletSorting.vue b/src/views/modules/haianAutoWarehouse/haianPalletSorting.vue
index 9ce0b81..4b7a5b1 100644
--- a/src/views/modules/haianAutoWarehouse/haianPalletSorting.vue
+++ b/src/views/modules/haianAutoWarehouse/haianPalletSorting.vue
@@ -811,6 +811,8 @@ export default {
getPalletTypeList({
site: this.site,
palletFamily: '',
+ // 按当前托盘号收窄:G 只返回一宫格,J 只返回四宫格和九宫格 - rqrq
+ palletId: this.palletCode,
active: 'Y'
}).then(({ data }) => {
if (data && data.code === 0) {