|
|
@ -49,7 +49,7 @@ |
|
|
|
|
|
|
|
|
<div class="input-group"> |
|
|
<div class="input-group"> |
|
|
<label class="input-label">空托数量</label> |
|
|
<label class="input-label">空托数量</label> |
|
|
<el-select v-model="count"> |
|
|
|
|
|
|
|
|
<el-select v-model="count" disabled> |
|
|
<el-option value=1 label=1></el-option> |
|
|
<el-option value=1 label=1></el-option> |
|
|
<el-option value=2 label=2></el-option> |
|
|
<el-option value=2 label=2></el-option> |
|
|
<el-option value=3 label=3></el-option> |
|
|
<el-option value=3 label=3></el-option> |
|
|
@ -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 |
|
|
// 通知入库 - rqrq |
|
|
handleNotifyInbound() { |
|
|
handleNotifyInbound() { |
|
|
if (!this.currentPalletType) { |
|
|
if (!this.currentPalletType) { |
|
|
@ -280,6 +295,9 @@ export default { |
|
|
}); |
|
|
}); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
if (!this.validateNotifyInboundPalletStatus()) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
// 左按钮“通知入库”必须先选入库口,后端再把入库口映射为固定站点号 - rqrq |
|
|
// 左按钮“通知入库”必须先选入库口,后端再把入库口映射为固定站点号 - rqrq |
|
|
this.selectedInboundPort = ''; |
|
|
this.selectedInboundPort = ''; |
|
|
this.inboundPortDialogVisible = true; |
|
|
this.inboundPortDialogVisible = true; |
|
|
@ -299,6 +317,9 @@ export default { |
|
|
}); |
|
|
}); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
if (!this.validateNotifyInboundPalletStatus()) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
this.inboundPortDialogVisible = false; |
|
|
this.inboundPortDialogVisible = false; |
|
|
this.$confirm('确定要执行通知入库操作吗?', '确认操作', { |
|
|
this.$confirm('确定要执行通知入库操作吗?', '确认操作', { |
|
|
confirmButtonText: '确定', |
|
|
confirmButtonText: '确定', |
|
|
|