From bed9fd03a1ae679a91aa2da23c1f58ba198f7a2f Mon Sep 17 00:00:00 2001 From: anthonywj Date: Tue, 28 Feb 2023 16:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E6=92=A4=E5=9B=9E=EF=BC=8C?= =?UTF-8?q?=E5=8D=95=E6=8D=AE=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inout/order.js | 24 ++++++---- src/api/inout/stockOrder.js | 37 ---------------- src/views/inout/DialogSelectRl.vue | 2 +- src/views/inout/IoAuditedOrder.vue | 32 ++++++++++++-- src/views/inout/IoCheckErrorOrder.vue | 2 +- src/views/inout/IoCheckSuccessOrder.vue | 58 +++++++++++++++++++------ src/views/inout/IoEditOrder.vue | 6 +-- src/views/inout/IoUnCheckedOrder.vue | 2 +- 8 files changed, 92 insertions(+), 71 deletions(-) diff --git a/src/api/inout/order.js b/src/api/inout/order.js index 4082b741..afdfc7e6 100644 --- a/src/api/inout/order.js +++ b/src/api/inout/order.js @@ -1,15 +1,6 @@ import axios from '@/utils/request' -export function getDraft(query) { - return axios({ - url: "/udiwms/inout/order/draft", - method: "get", - params: query - }); -} - - export function orderList(query) { return axios({ url: "/admin/warehouse/inout/order/list", @@ -457,5 +448,20 @@ export function deleteInvByCode(query) { }); } +export function rollbackOrder(params) { + return axios({ + url: "/udiwms/inout/order/received/rollback", + method: "get", + params: params + }); +} + +export function rollUnReceivebackOrder(params) { + return axios({ + url: "/udiwms/inout/order/unReceive/rollback", + method: "get", + params: params + }); +} diff --git a/src/api/inout/stockOrder.js b/src/api/inout/stockOrder.js index 259a8586..ebb75a48 100644 --- a/src/api/inout/stockOrder.js +++ b/src/api/inout/stockOrder.js @@ -274,13 +274,6 @@ export function supplementOrder(query) { }); } -export function updateStockOrderDetail(query) { - return axios({ - url: '/udiwms/stock/order/detail/update', - method: 'post', - data: query - }) -} export function stockOrderChange(query) { @@ -301,37 +294,7 @@ export function updateStatus(query) { }); } -export function submitStockOrderToThirdSys(params) { - return axios({ - url: "/udiwms/stock/order/error/submitStockOrderToThirdSys", - method: "get", - params: params - }) -} - -// export function findOrderByStockOrder(query) { -// return axios({ -// url: "/udiwms/inout/order/findOrderByStockOrder", -// method: 'get', -// params: query -// }); -// } - -export function rollbackOrder(params) { - return axios({ - url: "/udiwms/stock/order/received/rollback", - method: "get", - params: params - }); -} -export function rollUnReceivebackOrder(params) { - return axios({ - url: "/udiwms/stock/order/unReceive/rollback", - method: "get", - params: params - }); -} diff --git a/src/views/inout/DialogSelectRl.vue b/src/views/inout/DialogSelectRl.vue index 876835b5..bbeb7902 100644 --- a/src/views/inout/DialogSelectRl.vue +++ b/src/views/inout/DialogSelectRl.vue @@ -20,7 +20,7 @@ show-overflow-tooltip > diff --git a/src/views/inout/IoAuditedOrder.vue b/src/views/inout/IoAuditedOrder.vue index fda3e616..9c35bee3 100644 --- a/src/views/inout/IoAuditedOrder.vue +++ b/src/views/inout/IoAuditedOrder.vue @@ -131,6 +131,15 @@ >打印 + + 撤回 + + import { deleteByOrderId, deleteInvByBillNo, - getOrderList + getOrderList, rollbackOrder, rollUnReceivebackOrder } from "../../api/inout/order"; import {getLocalJoinByUser} from "@/api/basic/busType"; import {getInvListByUser} from "@/api/system/invWarehouse"; @@ -716,8 +725,25 @@ export default { this.resultTotal = 0; }); }, - editResultDialog(row) { - + //单据撤回 + rollback(row) { + this.$confirm('此操作将撤回单据至已校验未审核状态并删除对应库存信息, 是否继续?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + let param = {billNo: row.billNo}; + rollbackOrder(param).then((res) => { + if (res.code === 20000) { + this.$message.success("撤回成功"); + this.getList(); + } else { + this.$message.error(res.message); + } + }) + }).catch(() => { + // this.$message.info('回退失败'); + }); }, }, filters: { diff --git a/src/views/inout/IoCheckErrorOrder.vue b/src/views/inout/IoCheckErrorOrder.vue index 6cf29549..04714dc0 100644 --- a/src/views/inout/IoCheckErrorOrder.vue +++ b/src/views/inout/IoCheckErrorOrder.vue @@ -306,7 +306,7 @@ show-overflow-tooltip > diff --git a/src/views/inout/IoCheckSuccessOrder.vue b/src/views/inout/IoCheckSuccessOrder.vue index 2652b075..f3d689d1 100644 --- a/src/views/inout/IoCheckSuccessOrder.vue +++ b/src/views/inout/IoCheckSuccessOrder.vue @@ -122,7 +122,7 @@ - + @@ -314,7 +325,7 @@ show-overflow-tooltip > @@ -433,7 +444,7 @@