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("提交失败"); + }); } } },