From c5092feb652e27ff6ba736c5abd8dd1f40159bda Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Sun, 5 Jan 2025 17:18:54 +0800 Subject: [PATCH] uu --- common/api/order.js | 5 +++++ common/api/url.js | 1 + pages/warehousing/detail.vue | 40 ++++++++++++++++++++++++++++++------ 3 files changed, 40 insertions(+), 6 deletions(-) diff --git a/common/api/order.js b/common/api/order.js index dda143e..01e1219 100644 --- a/common/api/order.js +++ b/common/api/order.js @@ -129,3 +129,8 @@ export const getWarehouseInInfo = (data = {})=> { export const scanCheckBillCode = (data = {})=> { return coreRequest(url.scanCheckBillCode, data, {}) } + +// 进仓单异常反馈 +export const reportBatchWsInError = (data = {})=> { + return coreRequest(url.reportBatchWsInError, data, {}) +} diff --git a/common/api/url.js b/common/api/url.js index e4ec822..b4535ea 100644 --- a/common/api/url.js +++ b/common/api/url.js @@ -65,6 +65,7 @@ export default { cusConfirmWsIn: `/oms2c/emisWarehouseIn/cusConfirmWsIn`, // 确认进仓单 querySappNotifyTplList: `/oms2c/common/querySappNotifyTplList`, // 小程序订阅消息模板列表 getOnlineKefuH5Url: `/oms2c/common/getOnlineKefuH5Url`, // 获取客服消息链接 + reportBatchWsInError: `/oms2c/emisWarehouseIn/reportBatchWsInError`, // 进仓单异常反馈 } diff --git a/pages/warehousing/detail.vue b/pages/warehousing/detail.vue index e2f93bc..f09a24e 100644 --- a/pages/warehousing/detail.vue +++ b/pages/warehousing/detail.vue @@ -155,11 +155,18 @@ > + + + + 异常反馈备注: + {{item.abnormalDesc}} + + - 反馈异常 - + @@ -223,7 +230,12 @@ billInfo: {}, postInfo: {}, feedModal: { - show: false + show: false, + data: { + inNo: '', + serialNo: '', + abnormalDesc: '' + } } } }, @@ -261,8 +273,23 @@ } this.pageLoading = false }, - handleDialogClick(curModal){ - curModal.show = !curModal.show + async handleFeedDialogClick(item){ + this.feedModal.data = { } + let bl = await this.$refs.feedDialogRef.getConfirmResult() + if(bl) { + if(this.feedModal.data?.abnormalDesc) { + let params = { + inNo: this.billInfo.inNo, + serialNo: item.serialNo, + ...this.feedModal.data, + _loading: true, + } + await apiService.reportBatchWsInError(params) + this.showToast('操作成功') + } else { + this.showToast('请输入反馈内容') + } + } }, handleCopyWareHouse(){ let { intoWarehouseName, intoWarehouseContact,intoWarehousePhone, intoWarehouseAddress } = this.postInfo @@ -288,6 +315,7 @@ let res = await apiService.cusConfirmWsIn({ inNo, confirmStatus, _loading: true }) this.initData() }, + } }