Browse Source

Merge remote-tracking branch 'origin/master'

csg6 6 months ago
parent
commit
b0e26e8d10

+ 26 - 0
src/api/allApi/index.js

@@ -132,6 +132,23 @@ export function postCheckListAdd(data) {
132
   })
132
   })
133
 }
133
 }
134
 
134
 
135
+// 岗位责任制清单 -> 提交审核 
136
+export function postCheckListsubmitApprove(params) {
137
+  return request({
138
+    url: `/postCheck/postCheckListsubmitApprove`,
139
+    method: 'get',
140
+    params: params
141
+  })
142
+}
143
+// 岗检表 -> 提交审核 
144
+export function submitApprove(params) {
145
+  return request({
146
+    url: `postCheck/postChecked/submitApprove`,
147
+    method: 'get',
148
+    params: params
149
+  })
150
+}
151
+
135
 // 导出岗位责任制清单列表
152
 // 导出岗位责任制清单列表
136
 export function exportFun(data) {
153
 export function exportFun(data) {
137
   return request({
154
   return request({
@@ -616,3 +633,12 @@ export function approveTypeUserList1() {
616
   });
633
   });
617
 }
634
 }
618
 
635
 
636
+// 台账导出
637
+export function batchExportTaiZhang(params) {
638
+  return request({
639
+    url: "/postCheck/postCheckedProblem/batchExportTaiZhang",
640
+    method: "get",
641
+    params
642
+  });
643
+}
644
+

+ 18 - 3
src/views/jobinspectionHistory/jobinspectionProblem/index.vue

@@ -38,9 +38,12 @@
38
         <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
38
         <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
39
       </el-form-item>
39
       </el-form-item>
40
 
40
 
41
+      <el-button type="primary" @click="batchExport" style="float: right;">批量导出</el-button>
42
+
41
     </el-form>
43
     </el-form>
42
 
44
 
43
-    <el-table border v-loading="loading" :data="tableData" height="calc(100% - 100px)">
45
+    <el-table border v-loading="loading" :data="tableData" height="calc(100% - 100px)" @selection-change="handleSelectionChange">
46
+      <el-table-column type="selection" width="55" align="center" />
44
       <el-table-column label="序号" align="center" width="80">
47
       <el-table-column label="序号" align="center" width="80">
45
         <template slot-scope="scope">
48
         <template slot-scope="scope">
46
           <span>{{
49
           <span>{{
@@ -480,14 +483,17 @@
480
 <script>
483
 <script>
481
 import {
484
 import {
482
   postCheckedProblemList,
485
   postCheckedProblemList,
483
-  postCheckedProblemDetail
486
+  postCheckedProblemDetail,
487
+  batchExportTaiZhang
484
 } from '@/api/allApi/index.js'
488
 } from '@/api/allApi/index.js'
489
+import download from "@/plugins/download.js";
485
 import { getBase64 } from '@/api/postInspectionPlanning/projectManagement.js'
490
 import { getBase64 } from '@/api/postInspectionPlanning/projectManagement.js'
486
 export default {
491
 export default {
487
   name: 'PostResponsibilityMeun',
492
   name: 'PostResponsibilityMeun',
488
 
493
 
489
   data() {
494
   data() {
490
     return {
495
     return {
496
+      ids:[],
491
       valueYear: '',
497
       valueYear: '',
492
       queryParams: {
498
       queryParams: {
493
         dutyType: '',
499
         dutyType: '',
@@ -605,6 +611,10 @@ export default {
605
   },
611
   },
606
 
612
 
607
   methods: {
613
   methods: {
614
+    // 多选框选中数据
615
+    handleSelectionChange(selection) {
616
+      this.ids = selection.map((item) => item.id);
617
+    },
608
     initYear() {
618
     initYear() {
609
       let _now = new Date()
619
       let _now = new Date()
610
       let currentYear = _now.getFullYear()
620
       let currentYear = _now.getFullYear()
@@ -662,7 +672,12 @@ export default {
662
           }
672
           }
663
         )
673
         )
664
       }
674
       }
665
-    }
675
+    },
676
+    batchExport() {
677
+      batchExportTaiZhang({ ids: this.ids.join(",") }).then((res) => {
678
+        download.resource(res.msg);
679
+      });
680
+    },
666
   }
681
   }
667
 }
682
 }
668
 </script>
683
 </script>

+ 29 - 0
src/views/postInspectionPlanning/tableManagement/index.vue

@@ -105,6 +105,9 @@
105
       </el-table-column>
105
       </el-table-column>
106
       <el-table-column label="操作" align="center" width="140">
106
       <el-table-column label="操作" align="center" width="140">
107
         <template slot-scope="scope">
107
         <template slot-scope="scope">
108
+          <el-button type="text" @click="doShen(scope.row)"
109
+            >提交审核</el-button
110
+          >
108
           <el-button
111
           <el-button
109
             type="text"
112
             type="text"
110
             @click="handleCheck('edit', '修改', scope.row)"
113
             @click="handleCheck('edit', '修改', scope.row)"
@@ -319,6 +322,9 @@ import {
319
   preview,
322
   preview,
320
 } from "@/api/postInspectionPlanning/tableManagement.js";
323
 } from "@/api/postInspectionPlanning/tableManagement.js";
321
 import {
324
 import {
325
+  submitApprove
326
+} from '@/api/allApi/index.js'
327
+import {
322
   listGroupList,
328
   listGroupList,
323
   getDeptTree,
329
   getDeptTree,
324
   getOptionselect,
330
   getOptionselect,
@@ -496,6 +502,29 @@ export default {
496
         }
502
         }
497
       }
503
       }
498
     },
504
     },
505
+    // 提交审核
506
+    doShen(row) {
507
+      this.$confirm('确认提交审核?', '提示', {
508
+        confirmButtonText: '确定',
509
+        cancelButtonText: '取消',
510
+        type: 'warning'
511
+      })
512
+      .then(async () => {
513
+        const res = await submitApprove({id:row.id})
514
+        if (res.code !== 200) return this.$message.error(res.msg)
515
+        this.$message({
516
+          type: 'success',
517
+          message: '提交审核成功!'
518
+        })
519
+        this.getList()
520
+      })
521
+      .catch(() => {
522
+        this.$message({
523
+          type: 'info',
524
+          message: '已取消'
525
+        })
526
+      })
527
+    },
499
     getGroupList() {
528
     getGroupList() {
500
       listGroupList().then((data) => {
529
       listGroupList().then((data) => {
501
         this.groupList = data.data;
530
         this.groupList = data.data;

+ 27 - 1
src/views/postResponsibility/postResponsibilityOrganization/index.vue

@@ -152,9 +152,12 @@
152
         label="操作"
152
         label="操作"
153
         align="center"
153
         align="center"
154
         class-name="small-padding fixed-width"
154
         class-name="small-padding fixed-width"
155
-        width="150"
155
+        width="200"
156
       >
156
       >
157
         <template slot-scope="scope">
157
         <template slot-scope="scope">
158
+          <el-button type="text" @click="doShen(scope.row)"
159
+            >提交审核</el-button
160
+          >
158
           <el-button
161
           <el-button
159
             type="text"
162
             type="text"
160
             @click="
163
             @click="
@@ -397,6 +400,29 @@ export default {
397
           })
400
           })
398
         })
401
         })
399
     },
402
     },
403
+    // 提交审核
404
+    doShen(row) {
405
+      this.$confirm('确认提交审核?', '提示', {
406
+        confirmButtonText: '确定',
407
+        cancelButtonText: '取消',
408
+        type: 'warning'
409
+      })
410
+        .then(async () => {
411
+          const res = await postCheckListsubmitApprove({id:row.id})
412
+          if (res.code !== 200) return this.$message.error(res.msg)
413
+          this.$message({
414
+            type: 'success',
415
+            message: '提交审核成功!'
416
+          })
417
+          this.getList()
418
+        })
419
+        .catch(() => {
420
+          this.$message({
421
+            type: 'info',
422
+            message: '已取消'
423
+          })
424
+        })
425
+    },
400
     // 导入证件文件取消按钮
426
     // 导入证件文件取消按钮
401
     cancelCredent() {
427
     cancelCredent() {
402
       this.importWen = false
428
       this.importWen = false