diff --git a/src/api/invoicing.js b/src/api/invoicing.js index ba6e78c..06432bc 100644 --- a/src/api/invoicing.js +++ b/src/api/invoicing.js @@ -360,3 +360,37 @@ export function tbConCheckGet(data) { } }); } + +/** + * 耗材导出 + * @returns + */ +export function tbConsInfodownload(data) { + return request({ + url: "/api/tbConsInfo/download", + method: "get", + params: { + shopId: localStorage.getItem("shopId"), + ...data + }, + responseType: "blob" + }); +} + +/** + * 导入耗材 + * @returns + */ +export function tbConsInfoinputStock(file) { + const formData = new FormData(); + formData.append("file", file); + formData.append("shopId", localStorage.getItem("shopId")); + return request({ + url: "/api/tbConsInfo/inputStock", + method: "post", + data: formData, + Headers: { + "Content-Type": "multipart/form-data" + } + }); +} diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue index 06e9172..358dd15 100644 --- a/src/views/invoicing/consumable/information.vue +++ b/src/views/invoicing/consumable/information.vue @@ -2,90 +2,39 @@