From 1ed9c3f11cf10830d6e7697a5fcced9182c5263b Mon Sep 17 00:00:00 2001 From: x_z Date: Wed, 18 May 2022 11:28:23 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A2=9E=E5=8A=A0=E6=8F=90=E4=BA=A4=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=E5=88=B0=E7=AC=AC=E4=B8=89=E6=96=B9=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inout/stockOrder.js | 8 +++++ src/views/business/stockOrderDelSearch.vue | 37 +++++++++++++++------- 2 files changed, 33 insertions(+), 12 deletions(-) diff --git a/src/api/inout/stockOrder.js b/src/api/inout/stockOrder.js index 54f075e..df51082 100644 --- a/src/api/inout/stockOrder.js +++ b/src/api/inout/stockOrder.js @@ -278,4 +278,12 @@ export function stockOrderChange(query) { }); } +export function submitStockOrderToThirdSys(params) { + return axios({ + url: "/udiwms/stock/order/error/submitStockOrderToThirdSys", + method: "get", + params: params + }) +} + diff --git a/src/views/business/stockOrderDelSearch.vue b/src/views/business/stockOrderDelSearch.vue index 411ef71..fb3cc67 100644 --- a/src/views/business/stockOrderDelSearch.vue +++ b/src/views/business/stockOrderDelSearch.vue @@ -333,10 +333,8 @@ import { stockOrderList, stockOrderDetail, deleteStockOrderById, deleteStockOrderDetailById, - copyStockOrderDetail, submitStockOrder, - uploadStockOrderDetail, uploadStockOrderDetailCount, - generateStockOrderQRCodeText, supplementOrder, - updateStockOrderDetail + copyStockOrderDetail, uploadStockOrderDetail,supplementOrder, + updateStockOrderDetail, submitStockOrderToThirdSys } from "../../api/inout/stockOrder"; import stockOrderDistribution from "./stockOrderDistribution"; import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail"; @@ -882,10 +880,15 @@ export default { type: "warning", center: true }).then(() => { - this.$message({ - type: "success", - message: "提交成功!" - }) + let params = {id: row.id}; + submitStockOrderToThirdSys(params).then((res) => { + this.$message({ + type: "success", + message: "提交成功!" + }) + }).catch((error) => { + this.$message.error("提交失败"); + }); }).catch(() => { this.$message({ type: "info", @@ -893,10 +896,20 @@ export default { }) }) } else { - this.$message({ - type: "success", - message: "提交成功!" - }) + let params = {id: row.id}; + submitStockOrderToThirdSys(params).then((res) => { + if (res.code == 20000) { + this.$message({ + type: "success", + message: "提交成功!" + }); + this.getList(); + } else { + this.$message.error("提交失败"); + } + }).catch((error) => { + this.$message.error("提交失败"); + }); } } },