|
|
@ -302,6 +302,20 @@ |
|
|
|
} else { |
|
|
|
throw new Error("提交失败") |
|
|
|
} |
|
|
|
|
|
|
|
//创建上架申请 |
|
|
|
if(this.dataContent.putAwayRequestSwitch){ |
|
|
|
if(list.length>0&&list[0].requestNumber){ |
|
|
|
createPutawayRequestByPlan(list[0].requestNumber) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//创建检验申请 |
|
|
|
if(this.dataContent.putAwayInspectSwitch){ |
|
|
|
if(list.length>0&&list[0].requestNumber){ |
|
|
|
createInspectRequestByPlan(list[0].requestNumber) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
var queryParams = { |
|
|
|
filters: [{ |
|
|
@ -333,9 +347,7 @@ |
|
|
|
this.index = 1 |
|
|
|
} |
|
|
|
} |
|
|
|
// else { |
|
|
|
// throw new Error("未查找到单据信息") |
|
|
|
// } |
|
|
|
|
|
|
|
uni.hideLoading() |
|
|
|
if (isAllSubmit) { |
|
|
|
this.clearData() |
|
|
@ -352,20 +364,6 @@ |
|
|
|
nextTick(() => { |
|
|
|
this.showCommitSuccessMessage(hintMsg, list) |
|
|
|
}) |
|
|
|
|
|
|
|
//创建上架申请 |
|
|
|
if(this.dataContent.putAwayRequestSwitch){ |
|
|
|
if(list.length>0&&list[0].requestNumber){ |
|
|
|
createPutawayRequestByPlan(list[0].requestNumber) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//创建检验申请 |
|
|
|
if(this.dataContent.putAwayInspectSwitch){ |
|
|
|
if(list.length>0&&list[0].requestNumber){ |
|
|
|
createInspectRequestByPlan(list[0].requestNumber) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
uni.hideLoading() |
|
|
|