lxf 1 vuosi sitten
vanhempi
commit
342704f27c

+ 15 - 4
src/views/production/warehouse/outbound/index.vue

@@ -36,10 +36,16 @@
             :searchConfig="searchConfigTwo"
             highlight-current-row
             :action-list="[
-              // {
-              //   text: '出库登记',
-              //   action: () => clickModal(),
-              // },
+              status
+                ? {
+                    text: '出库登记',
+                    action: () => clickModal(),
+                  }
+                : {},
+              {
+                text: '导出Excel',
+                action: () => deriveExcel(),
+              },
             ]"
             @get-list="getListTwo"
             @clickReset="clickResetTwo">
@@ -402,6 +408,11 @@ const clickModal = () => {
     },
   });
 };
+const deriveExcel = () => {
+  proxy.postFile("/inOutStorageBom/exportExcel", sourceList.value.pagination).then((res) => {
+    proxy.downloadFile(res, "出库明细.xlsx");
+  });
+};
 </script>
 
 <style lang="scss" scoped>

+ 9 - 0
src/views/production/warehouse/putInStorage/index.vue

@@ -38,6 +38,10 @@
                 text: '入库登记',
                 action: () => clickModal(),
               },
+              {
+                text: '导出Excel',
+                action: () => deriveExcel(),
+              },
             ]"
             @get-list="getListTwo"
             @clickReset="clickResetTwo">
@@ -399,6 +403,11 @@ const clickModal = () => {
     },
   });
 };
+const deriveExcel = () => {
+  proxy.postFile("/inOutStorageBom/exportExcel", sourceList.value.pagination).then((res) => {
+    proxy.downloadFile(res, "入库明细.xlsx");
+  });
+};
 </script>
 
 <style lang="scss" scoped>