From eead4de81fea1e52889502582f4bb1be15f1b3b9 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Thu, 11 Jul 2024 17:28:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=80=97=E6=9D=90=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/invoicing.js | 34 ++ .../invoicing/consumable/information.vue | 360 ++++++------------ 2 files changed, 154 insertions(+), 240 deletions(-) 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 @@