diff --git a/src/views/modules/haianAutoWarehouse/haianEmptyPalletAssembly.vue b/src/views/modules/haianAutoWarehouse/haianEmptyPalletAssembly.vue
index 760c073..2edbde7 100644
--- a/src/views/modules/haianAutoWarehouse/haianEmptyPalletAssembly.vue
+++ b/src/views/modules/haianAutoWarehouse/haianEmptyPalletAssembly.vue
@@ -49,7 +49,7 @@
-
+
@@ -272,6 +272,21 @@ export default {
});
},
+ // 通知入库前置校验:仅允许“外部回库”空托盘(area和location_code都为空)继续操作 - rqrq
+ validateNotifyInboundPalletStatus() {
+ const areaCode = this.palletInfo && this.palletInfo.area ? String(this.palletInfo.area).trim() : ''
+ const locationCode = this.palletInfo && this.palletInfo.locationCode
+ ? String(this.palletInfo.locationCode).trim()
+ : (this.palletInfo && this.palletInfo.currentStationCode ? String(this.palletInfo.currentStationCode).trim() : '')
+ if (areaCode || locationCode) {
+ this.$alert('通知入库仅允许未绑定站点的空托盘', '提示', {
+ confirmButtonText: '确定'
+ })
+ return false
+ }
+ return true
+ },
+
// 通知入库 - rqrq
handleNotifyInbound() {
if (!this.currentPalletType) {
@@ -280,6 +295,9 @@ export default {
});
return;
}
+ if (!this.validateNotifyInboundPalletStatus()) {
+ return;
+ }
// 左按钮“通知入库”必须先选入库口,后端再把入库口映射为固定站点号 - rqrq
this.selectedInboundPort = '';
this.inboundPortDialogVisible = true;
@@ -299,6 +317,9 @@ export default {
});
return;
}
+ if (!this.validateNotifyInboundPalletStatus()) {
+ return;
+ }
this.inboundPortDialogVisible = false;
this.$confirm('确定要执行通知入库操作吗?', '确认操作', {
confirmButtonText: '确定',