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