|
@ -243,6 +243,11 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
submit() { |
|
|
submit() { |
|
|
|
|
|
this.scanedQty = this.scanedQty + this.showList.length; |
|
|
|
|
|
this.showList = []; |
|
|
|
|
|
this.dataContent.handleQty = 0; |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
if (this.allList.length == 0) { |
|
|
if (this.allList.length == 0) { |
|
|
this.showErrorMessage("请先扫描唯一码") |
|
|
this.showErrorMessage("请先扫描唯一码") |
|
|
return; |
|
|
return; |
|
@ -292,17 +297,19 @@ |
|
|
requestNumber: item.requestNumber |
|
|
requestNumber: item.requestNumber |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} else { |
|
|
else { |
|
|
|
|
|
throw new Error("提交失败") |
|
|
throw new Error("提交失败") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
let createProductputawaySwitch = getSwitchInfoByCode( |
|
|
let createProductputawaySwitch = getSwitchInfoByCode( |
|
|
"CreateProductputawayRequestAfterProductreceiptRecordCreated") |
|
|
"CreateProductputawayRequestAfterProductreceiptRecordCreated") |
|
|
|
|
|
//创建上架申请和检验申请 |
|
|
if (createProductputawaySwitch) { |
|
|
if (createProductputawaySwitch) { |
|
|
createPutawayRequestByPlan(list[0].requestNumber).then(res => { |
|
|
createPutawayRequestByPlan(list[0].requestNumber).then(res => { |
|
|
createInspectRequestByPlan(list[0].requestNumber) |
|
|
createInspectRequestByPlan(list[0].requestNumber) |
|
|
}) |
|
|
}) |
|
|
|
|
|
} else { //创建检验申请 |
|
|
|
|
|
createInspectRequestByPlan(list[0].requestNumber) |
|
|
} |
|
|
} |
|
|
this.showCommitSuccessMessage("提交成功<br>生成装配收货记录<br>" + list[0].requestNumber, list) |
|
|
this.showCommitSuccessMessage("提交成功<br>生成装配收货记录<br>" + list[0].requestNumber, list) |
|
|
this.scanedQty = this.scanedQty + this.showList.length; |
|
|
this.scanedQty = this.scanedQty + this.showList.length; |
|
|