liuhj 4 weeks ago
parent
commit
b7f1294c8e
1 changed files with 34 additions and 0 deletions
  1. 34 0
      src/components/statistics/Groupreports.vue

+ 34 - 0
src/components/statistics/Groupreports.vue

@@ -108,6 +108,11 @@
                             size="mini"
                             title="详 细"
                             @click="handleView(scope.$index, scope.row)">详 细</el-button>
+                            <el-button Inquireclick
+                            type="primary"
+                            size="mini"
+                            title="详 细"
+                            @click="generate(scope.$index, scope.row)">生 成</el-button>
                         </template>
                       </el-table-column>
                 </el-table>
@@ -218,6 +223,35 @@ export default {
             this.currentPage=1;
             this.PostGroupPageList()
         },
+        //生成
+        generate(index,val){
+            var url = "/api/Statistics/PostGroupStatementExportExcel"
+            var that = this
+            this.$axios({
+                method: 'post',
+                url: url,
+                headers: {
+                    Authorization: 'Bearer '
+                },
+                data: {
+                    portType: 1,
+                    userId:that.userid,
+                    pageId:38,
+                    diId:val.id,
+                    isAudit: true
+                }
+            }).then(function (res) {
+                if (res.data.code == 200) {
+                    window.open(res.data.data)
+                    that.$message({
+                        message: res.data.msg,
+                        type: 'success'
+                    });
+                }else{
+                    that.$message.error(res.data.msg);
+                }
+            })
+        },
         //处理时间
         filteryear(val){
             let gstime=val.visitDate.split(' ')[0]