lxf před 1 rokem
rodič
revize
4ee4470d76
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      src/views/group/finance/check-bill/printSKU.vue

+ 4 - 1
src/views/group/finance/check-bill/printSKU.vue

@@ -29,6 +29,7 @@
       </div>
       <div style="padding: 8px; text-align: center">
         <el-button @click="clickCancel" size="large">关 闭</el-button>
+        <el-button type="primary" @click="deriveExcel()" size="large" v-preReClick>导 出</el-button>
       </div>
     </el-card>
   </div>
@@ -276,6 +277,9 @@ const getTotal = (label) => {
 };
 const emit = defineEmits(["clickCancel"]);
 const clickCancel = () => {
+  emit("clickCancel", "");
+};
+const deriveExcel = () => {
   $("#tableId").table2excel({
     exclude: ".noExl",
     sheetName: "SKU对账单",
@@ -284,7 +288,6 @@ const clickCancel = () => {
     exclude_links: false,
     exclude_inputs: true,
   });
-  //   emit("clickCancel", "");
 };
 </script>