From c4a45492ed4f99ab6a8d7173ac5c31bb1b2c7ba9 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 21 Dec 2023 18:36:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=A4=96=E5=87=BA=E5=85=A5?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/request2.js | 6 +++--- pages/unPlanned/record/issueRecord.vue | 28 +++++++++++++++----------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/api/request2.js b/api/request2.js index 9d8a3a71..b1088156 100644 --- a/api/request2.js +++ b/api/request2.js @@ -1376,7 +1376,7 @@ export function unPlannedReceiptRequestHandle(id) { * 计划外入库记录 提交 * @param {*} params */ -export function unPlannedReceiptRecordbSubmit(id, params) { +export function unPlannedReceiptRecordbSubmit(params) { return request({ url: baseApi + "/wms/unplannedreceipt-record-main/create", method: "post", @@ -1531,8 +1531,8 @@ export function unPlannedIssueRequestHandle(id) { */ export function unPlannedIssueRecordSubmit(params) { return request({ - url: baseApi + "/magic-api/pda/job/purchasereturn/jobSubmit", - method: "put", + url: baseApi + "/wms/unplannedissue-record-main/create", + method: "post", data: params, }); } diff --git a/pages/unPlanned/record/issueRecord.vue b/pages/unPlanned/record/issueRecord.vue index 5f038671..c134f140 100644 --- a/pages/unPlanned/record/issueRecord.vue +++ b/pages/unPlanned/record/issueRecord.vue @@ -218,21 +218,22 @@ } var params =this.setParams() console.log("提交" + JSON.stringify(params)) - // unPlannedIssueRecordSubmit(params).then(res => { - // uni.hideLoading() - // if (res.data) { - // this.showCommitSuccessMessage("提交成功
生成采购收货记录" + res.data, ) - // } else { - // this.showErrorMessage("提交失败[" + res.msg + "]") - // } - // }).catch(error => { - // uni.hideLoading() - // this.showErrorMessage(error) - // }) + unPlannedIssueRecordSubmit(params).then(res => { + uni.hideLoading() + if (res.data) { + this.showCommitSuccessMessage("提交成功
生成采购收货记录
" + res.data ) + } else { + this.showErrorMessage("提交失败[" + res.msg + "]") + } + }).catch(error => { + uni.hideLoading() + this.showErrorMessage(error) + }) }, setParams() { var subList = [] + var creator = this.$store.state.user.id this.detailSource.forEach(item => { item.subList.forEach(detail => { if (detail.scaned) { @@ -260,7 +261,10 @@ } }) }) - return subList; + + this.dataContent.subList = subList; + this.dataContent.creator = creator; + return this.dataContent; }, reasonChange(e) {