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 + }); +}