lxf 1 year ago
parent
commit
ebda07b4e4

+ 1 - 0
src/utils/request.js

@@ -266,6 +266,7 @@ export function postUploadFile(url, data = {}, method) {
       headers: {
         "Content-Type": "multipart/form-data",
       },
+      responseType: "blob",
     })
       .then((res) => {
         resolve(res);

+ 0 - 13
src/views/production/warehouse/finished-parts-storage/index.vue

@@ -305,19 +305,6 @@ const giveawayServerLog = (params) => {
     }
   );
 };
-const deriveExcel = () => {
-  ElMessageBox.confirm("你是否确认此操作", "提示", {
-    confirmButtonText: "确定",
-    cancelButtonText: "取消",
-    type: "warning",
-  })
-    .then(() => {
-      proxy.getFile("/inventoryFinishedOrder/excelExport", sourceListTwo.value.pagination).then((res) => {
-        proxy.downloadFile(res, "成品库明细-" + moment().format("yyyy-MM-DD") + ".xlsx");
-      });
-    })
-    .catch(() => {});
-};
 </script>
 
 <style lang="scss" scoped>