|
|
|
@ -462,10 +462,26 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
async receivePo() { |
|
|
|
const item = this.recvItem; |
|
|
|
if (item.transQty > item.qtyToReceive) { |
|
|
|
try { |
|
|
|
await this.$confirm( |
|
|
|
`本次入库数量(${item.transQty}) ,超过待收数量(${item.qtyToReceive}),是否继续?`, |
|
|
|
'数量超出提示', |
|
|
|
{ |
|
|
|
confirmButtonText: '继续', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
} |
|
|
|
); |
|
|
|
} catch (error) { |
|
|
|
// 用户取消 |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.fullscreenLoading) return; // 防止重复点 |
|
|
|
this.loadingText = '提交中...'; |
|
|
|
this.fullscreenLoading = true; |
|
|
|
const item = this.recvItem; |
|
|
|
if (!item.transQty || !item.locationNo || !item.batchNo) { |
|
|
|
this.fullscreenLoading = false; |
|
|
|
return this.$message.error("请填写完整信息"); |
|
|
|
|