ソースを参照

1.开票信息导出

GouGengquan 10 ヶ月 前
コミット
76dc55839e
1 ファイル変更24 行追加0 行削除
  1. 24 0
      src/views/finance/invoiceCheck.vue

+ 24 - 0
src/views/finance/invoiceCheck.vue

@@ -36,6 +36,8 @@
             </el-button>
             <el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch1()">重置
             </el-button>
+            <el-button class="filter-item" round type="info" @click="exportList1()">导出
+            </el-button>
           </template>
           <el-table ref="table" size="medium" slot="table" :data="pageData1.records" show-summary  border
             :summary-method="getSummaries" fit stripe highlight-current-row
@@ -149,6 +151,8 @@
             </el-button>
             <el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch2()">重置
             </el-button>
+            <el-button class="filter-item" round type="info" @click="exportList2()">导出
+            </el-button>
           </template>
           <el-table ref="table" size="medium" slot="table" :data="pageData2.records" show-summary  border
             :summary-method="getSummaries" fit stripe highlight-current-row
@@ -262,6 +266,8 @@
             </el-button>
             <el-button class="filter-item" style="float: left;" round type="success" @click="resetSearch3()">重置
             </el-button>
+            <el-button class="filter-item" round type="info" @click="exportList3()">导出
+            </el-button>
           </template>
           <el-table ref="table" size="medium" slot="table" :data="pageData3.records" show-summary  border
             :summary-method="getSummaries" fit stripe highlight-current-row
@@ -780,6 +786,12 @@ export default {
         }
       })
     },
+    exportList1() {
+      this.$utils.exportUtil(
+            "/financeInvoice/export", this.listQuery1,
+            "导出"
+        );
+    },
     getList2() {
       this.$api.financeInvoice.list(Object.assign({}, this.listQuery2)).then(res=>{
         if (res.code ===200){
@@ -787,6 +799,12 @@ export default {
         }
       })
     },
+    exportList2() {
+      this.$utils.exportUtil(
+            "/financeInvoice/export", this.listQuery2,
+            "导出"
+        );
+    },
     getList3() {
       this.$api.financeInvoice.list(Object.assign({}, this.listQuery3)).then(res=>{
         if (res.code ===200){
@@ -794,6 +812,12 @@ export default {
         }
       })
     },
+    exportList3() {
+      this.$utils.exportUtil(
+            "/financeInvoice/export", this.listQuery3,
+            "导出"
+        );
+    },
 
     openMakeDialog(row){
       this.newInvoiceDialog= true;