|
|
@ -304,30 +304,6 @@ |
|
|
<button class="action-btn secondary" style="margin-left: 8px;" @click="callEmptyModalVisible = false" :disabled="interfaceBusy || callEmptyLoading">取消</button> |
|
|
<button class="action-btn secondary" style="margin-left: 8px;" @click="callEmptyModalVisible = false" :disabled="interfaceBusy || callEmptyLoading">取消</button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 直接组盘推送弹窗:必须选择入库口1/入库口2(待确认站点实际编码,当前仍用旧值) - rqrq --> |
|
|
|
|
|
<el-dialog |
|
|
|
|
|
title="请选择入库口" |
|
|
|
|
|
:visible.sync="pushAssemblyDialogVisible" |
|
|
|
|
|
width="90%" |
|
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
|
:show-close="false" |
|
|
|
|
|
:append-to-body="true" |
|
|
|
|
|
> |
|
|
|
|
|
<div class="input-group"> |
|
|
|
|
|
<label class="input-label">入库口</label> |
|
|
|
|
|
<el-select v-model="selectedInboundPort" placeholder="请选择入库口" style="width: 100%;"> |
|
|
|
|
|
<el-option label="入库口1" value="INBOUND_PORT_1"></el-option> |
|
|
|
|
|
<el-option label="入库口2" value="INBOUND_PORT_2"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
|
|
<button class="action-btn primary" @click="submitPushAssembly" :disabled="interfaceBusy || !selectedInboundPort"> |
|
|
|
|
|
{{ pushAssemblyLoading ? '处理中...' : '确认推送' }} |
|
|
|
|
|
</button> |
|
|
|
|
|
<button class="action-btn secondary" style="margin-left: 8px;" @click="closePushAssemblyDialog" :disabled="interfaceBusy">取消</button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -397,9 +373,6 @@ export default { |
|
|
stationCode: '', |
|
|
stationCode: '', |
|
|
palletType: '' |
|
|
palletType: '' |
|
|
}, |
|
|
}, |
|
|
// 推送组盘弹窗状态 - rqrq |
|
|
|
|
|
pushAssemblyDialogVisible: false, |
|
|
|
|
|
selectedInboundPort: '', |
|
|
|
|
|
// 接口锁状态:推送组盘时要禁用页面所有按钮 - rqrq |
|
|
// 接口锁状态:推送组盘时要禁用页面所有按钮 - rqrq |
|
|
palletScanLoading: false, |
|
|
palletScanLoading: false, |
|
|
palletConfigLoading: false, |
|
|
palletConfigLoading: false, |
|
|
@ -514,8 +487,6 @@ export default { |
|
|
stationCode: '', |
|
|
stationCode: '', |
|
|
palletType: '' |
|
|
palletType: '' |
|
|
} |
|
|
} |
|
|
this.pushAssemblyDialogVisible = false |
|
|
|
|
|
this.selectedInboundPort = '' |
|
|
|
|
|
this.palletScanLoading = false |
|
|
this.palletScanLoading = false |
|
|
this.palletConfigLoading = false |
|
|
this.palletConfigLoading = false |
|
|
this.scanRequestLoading = false |
|
|
this.scanRequestLoading = false |
|
|
@ -983,7 +954,7 @@ export default { |
|
|
this.callEmptyLoading = false |
|
|
this.callEmptyLoading = false |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 推送组盘前校验:area/location任何一个有值都必须阻断 - rqrq |
|
|
|
|
|
|
|
|
// 推送组盘:海安只有一个入库口,后端固定下发,页面只做确认 - rqrq |
|
|
openPushAssemblyDialog() { |
|
|
openPushAssemblyDialog() { |
|
|
if (!this.ensureSite() || this.interfaceBusy) { |
|
|
if (!this.ensureSite() || this.interfaceBusy) { |
|
|
return |
|
|
return |
|
|
@ -1000,48 +971,34 @@ export default { |
|
|
this.$alert('推送组盘仅允许未绑定站点的栈板,当前栈板area或location_code存在值', '提示', { confirmButtonText: '确定' }) |
|
|
this.$alert('推送组盘仅允许未绑定站点的栈板,当前栈板area或location_code存在值', '提示', { confirmButtonText: '确定' }) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.selectedInboundPort = '' |
|
|
|
|
|
this.pushAssemblyDialogVisible = true |
|
|
|
|
|
}, |
|
|
|
|
|
closePushAssemblyDialog() { |
|
|
|
|
|
if (this.interfaceBusy) { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.pushAssemblyDialogVisible = false |
|
|
|
|
|
this.selectedInboundPort = '' |
|
|
|
|
|
}, |
|
|
|
|
|
// 推送组盘:确认入库口后调用海安专用后端方法,调用期间保持全页面按钮锁定 - rqrq |
|
|
|
|
|
submitPushAssembly() { |
|
|
|
|
|
if (!this.selectedInboundPort) { |
|
|
|
|
|
this.$alert('请选择入库口', '提示', { confirmButtonText: '确定' }) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.$confirm('确认推送组盘数据吗?', '提示', { |
|
|
|
|
|
|
|
|
this.$confirm('确认推送组盘到入库口吗?', '提示', { |
|
|
confirmButtonText: '确认', |
|
|
confirmButtonText: '确认', |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.pushAssemblyLoading = true |
|
|
|
|
|
pushPalletAssemblyToInboundPort({ |
|
|
|
|
|
site: this.site, |
|
|
|
|
|
palletId: this.palletCode, |
|
|
|
|
|
inboundPort: this.selectedInboundPort |
|
|
|
|
|
}).then(({ data }) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.$message.success('推送组盘成功') |
|
|
|
|
|
this.pushAssemblyDialogVisible = false |
|
|
|
|
|
this.resetPage(true) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert((data && data.msg) || '推送组盘失败', '错误', { confirmButtonText: '确定' }) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch((error) => { |
|
|
|
|
|
this.$alert(error.message || '推送组盘失败', '错误', { confirmButtonText: '确定' }) |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.pushAssemblyLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.submitPushAssembly() |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
// 用户取消确认时不清空数据,便于继续核对后再提交 - rqrq |
|
|
// 用户取消确认时不清空数据,便于继续核对后再提交 - rqrq |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 推送组盘:调用海安专用后端方法,调用期间保持全页面按钮锁定 - rqrq |
|
|
|
|
|
submitPushAssembly() { |
|
|
|
|
|
this.pushAssemblyLoading = true |
|
|
|
|
|
pushPalletAssemblyToInboundPort({ |
|
|
|
|
|
site: this.site, |
|
|
|
|
|
palletId: this.palletCode |
|
|
|
|
|
}).then(({ data }) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.$message.success('推送组盘成功') |
|
|
|
|
|
this.resetPage(true) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert((data && data.msg) || '推送组盘失败', '错误', { confirmButtonText: '确定' }) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch((error) => { |
|
|
|
|
|
this.$alert(error.message || '推送组盘失败', '错误', { confirmButtonText: '确定' }) |
|
|
|
|
|
}).finally(() => { |
|
|
|
|
|
this.pushAssemblyLoading = false |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
activated() { |
|
|
activated() { |
|
|
|