Ver Fonte

春节期间企业人员情况明细表

yanliming há 4 anos atrás
pai
commit
1ac6655dfd

+ 4 - 1
src/api/base/personHealthLedger.js

@@ -73,7 +73,10 @@ function exportXlsTWYC(formData) {
 function exportXlsZZYC(formData) {
   return request.post(constant.serverUrl + "/base/personHealthLedger/exportXlsZZYC", formData);
 }
+function healthLedgerDateCompanyNumExportXls() {
+  return request.post(constant.serverUrl + "/base/personHealthLedger/healthLedgerDateCompanyNumExportXls");
+}
 
 export default {
-  pageList, create, edit, add, update, remove, batchRemove, exportXls, pageListAll,exportXlsAll,gpsHistoryList,exportXlsWC,exportXlsTWYC,exportXlsZZYC,healthLedgerDateExportXls
+  pageList, create, edit, add, update, remove, batchRemove, exportXls, pageListAll,exportXlsAll,gpsHistoryList,exportXlsWC,exportXlsTWYC,exportXlsZZYC,healthLedgerDateExportXls,healthLedgerDateCompanyNumExportXls
 }

+ 38 - 0
src/views/base/personHealthLedger-list.vue

@@ -100,6 +100,14 @@
       <el-button type="warning" size="small" plain icon="el-icon-download" :loading="downloadLoading" @click="exportXlsWC">导出外出信息台账</el-button>
       <el-button type="danger" size="small" plain icon="el-icon-download" :loading="downloadLoading" @click="exportXlsTWYC">导出体温异常信息台账</el-button>
       <el-button type="danger" size="small" plain icon="el-icon-download" :loading="downloadLoading" @click="exportXlsZZYC">导出症状异常信息台账</el-button>
+      <el-button
+        type="success"
+        size="small"
+        plain
+        icon="el-icon-download"
+        :loading="downloadLoading"
+        @click="exportXlsQYMXB"
+      >导出春节期间企业人员情况明细表</el-button>
     </el-row>
     <el-table
       ref="formTable"
@@ -619,6 +627,36 @@ export default {
           });
         }
       });
+    },
+    exportXlsQYMXB(){
+      var self = this;
+      //导出
+
+      self.downloadLoading = true;
+      self.loading = true;
+
+      personHealthLedgerApi.healthLedgerDateCompanyNumExportXls().then(function(response) {
+        var jsonData = response.data;
+
+        self.downloadLoading = false;
+        self.loading = false;
+
+        if (jsonData.result) {
+          self.$message({
+            type: "success",
+            showClose: true,
+            message: `报表已生成,<a href="${jsonData.data}">请点击链接下载</a>`,
+            dangerouslyUseHTMLString: true,
+            duration: 30000
+          });
+        } else {
+          self.$message({
+            type: "warning",
+            message: jsonData.message
+          });
+        }
+      });
+
     }
   },
   mounted: function() {