chenrui  2 жил өмнө
parent
commit
804ba44d2c

+ 1 - 1
src/api/statistics/statistics.js

@@ -35,7 +35,7 @@ export function waybill(query) {
     params: query
   })
 }
-
+// 获取货物运单列表接口导出
 export function waybilleclex(query) {
   return request({
     url: '/system/waybill/pageexcle',

+ 37 - 37
src/views/system/securityCheck/views/waybillTable.vue

@@ -199,46 +199,46 @@ export default {
     window.removeEventListener('resize', this.setTableHeight)
   },
   methods: {
-    //导出
-    async exportex() {
-      let that = this
-      this.$confirm({
-        title: '是否确认导出',
-        content: '是否确认导出',
-        onOk() {
-          return waybilleclex(that.FormData).then((response) => {
-            that.download(response.msg)
-            that.$message.success('导出成功')
-          })
-        },
-      })
-      // this.downlodTable()
-    },
-    //导出
-    downlodTable() {
-      this.$confirm('是否需要导出xlsx文档, 是否继续?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning',
-      })
-        .then(() => {
-          // this.downFile()
-          this.$message({
-            type: 'success',
-            message: '导出成功!',
-          })
-        })
-        .catch(() => {
-          this.$message({
-            type: 'info',
-            message: '已取消导出',
-          })
-        })
-    },
     // //导出
     // async exportex() {
-    //   this.downFile()
+    //   let that = this
+    //   this.$confirm({
+    //     title: '是否确认导出',
+    //     content: '是否确认导出',
+    //     onOk() {
+    //       return waybilleclex(that.FormData).then((response) => {
+    //         that.download(response.msg)
+    //         that.$message.success('导出成功')
+    //       })
+    //     },
+    //   })
+    //   // this.downlodTable()
+    // },
+    // //导出
+    // downlodTable() {
+    //   this.$confirm('是否需要导出xlsx文档, 是否继续?', '提示', {
+    //     confirmButtonText: '确定',
+    //     cancelButtonText: '取消',
+    //     type: 'warning',
+    //   })
+    //     .then(() => {
+    //       // this.downFile()
+    //       this.$message({
+    //         type: 'success',
+    //         message: '导出成功!',
+    //       })
+    //     })
+    //     .catch(() => {
+    //       this.$message({
+    //         type: 'info',
+    //         message: '已取消导出',
+    //       })
+    //     })
     // },
+    //导出
+    async exportex() {
+      this.downFile()
+    },
     downFile() {
       var wb = XLSX.utils.table_to_book(document.querySelector('#table2'))
       var wbout = XLSX.write(wb, {