diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue index 9709c6e2..e68701c8 100644 --- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue +++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue @@ -645,21 +645,21 @@ ...this.deptObj } console.log("提交",params) - // inventoryMoveSubmit(params).then(res => { - // uni.hideLoading() - // if (res.data) { - // let showTitle = this.title - // if (this.title.indexOf('任务') == this.title.length - 2) { - // showTitle = this.title.replace('任务', '') - // } - // this.showCommitSuccessMessage("提交成功\n生成" + showTitle + "记录\n" + res.data) - // } else { - // this.showErrorMessage("提交失败[" + res.msg + "]") - // } - // }).catch(error => { - // uni.hideLoading() - // this.showErrorMessage(error) - // }) + inventoryMoveSubmit(params).then(res => { + uni.hideLoading() + if (res.data) { + let showTitle = this.title + if (this.title.indexOf('任务') == this.title.length - 2) { + showTitle = this.title.replace('任务', '') + } + this.showCommitSuccessMessage("提交成功\n生成" + showTitle + "记录\n" + res.data) + } else { + this.showErrorMessage("提交失败[" + res.msg + "]") + } + }).catch(error => { + uni.hideLoading() + this.showErrorMessage(error) + }) }, setPrecisionStrategParams() {