From 77c31ce9cabdcd434df8d45965a63992d851d0f6 Mon Sep 17 00:00:00 2001 From: x_z Date: Thu, 16 Feb 2023 23:58:30 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B7=BB=E5=8A=A0=E7=9B=98=E7=82=B9=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=E6=8E=A5=E5=8F=A3=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inventory/invCountCodes.js | 33 ++++++++++++ src/api/inventory/invCountOrder.js | 83 ++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) create mode 100644 src/api/inventory/invCountCodes.js create mode 100644 src/api/inventory/invCountOrder.js diff --git a/src/api/inventory/invCountCodes.js b/src/api/inventory/invCountCodes.js new file mode 100644 index 00000000..880f8ff5 --- /dev/null +++ b/src/api/inventory/invCountCodes.js @@ -0,0 +1,33 @@ +import axios from "../../utils/request"; + +export function getCountCodesList(params) { + return axios({ + url: "/inv/count/codes/filter", + method: "get", + params: params + }); +} + +export function deleteCode(data) { + return axios({ + url: "/inv/count/codes/deleteCode", + method: "post", + data: data + }); +} + +export function addCode(data) { + return axios({ + url: "/inv/count/codes/addCode", + method: "post", + data: data + }); +} + +export function getCodesNum(params) { + return axios({ + url: "/inv/count/codes/getCountOrderCodesNum", + method: "get", + params: params + }); +} diff --git a/src/api/inventory/invCountOrder.js b/src/api/inventory/invCountOrder.js new file mode 100644 index 00000000..05776d94 --- /dev/null +++ b/src/api/inventory/invCountOrder.js @@ -0,0 +1,83 @@ +import axios from "../../utils/request"; + +export function getCountOrderList(params) { + return axios({ + url: "/invCount/order/filter", + method: "get", + params: params + }); +} + +export function deleteCountOrder(data) { + return axios({ + url: "/invCount/order/delete", + method: "post", + data: data + }); +} + +export function getCountOrderDetailList(params) { + return axios({ + url: "/invCount/order/detail/filter", + method: "get", + params: params + }); +} + +export function saveCountOrder(data) { + return axios({ + url: "/invCount/order/saveCountOrder", + method: "post", + data: data + }); +} + +export function submitAudit(params) { + return axios({ + url: "/invCount/order/submitAudit", + method: "get", + params: params + }); +} + +export function deleteCountOrderDetail(data) { + return axios({ + url: "/inv/count/order/detail/deleteOrderDetail", + method: "post", + data: data + }); +} + +export function addCountOrderDetail(data) { + return axios({ + url: "/inv/count/order/detail/addCountOrderDetail", + method: "post", + data: data + }); +} + +export function updateCountOrderStatus(data) { + return axios({ + url: "/inv/count/order/updateCountOrderStatus", + method: "post", + data: data + }); +} + +export function verifyTemplateFile(data) { + return axios({ + url: "/inv/count/order/verifyTemplateFile", + method: "post", + data: data + }); +} + +export function printOrder(data) { + return axios({ + url: "/inv/count/order/printOrder", + method: "post", + data: data, + headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, + responseType: 'arraybuffer', //一定要设置响应类型,否则页面会是空白pdf + }); +}