浏览代码

批量接口联调,用印,签名

gyj 2 年前
父节点
当前提交
80a02cce05

+ 40
- 0
src/api/batchManagement/batchManagement.js 查看文件

@@ -103,4 +103,44 @@ export function methodBatch(data) {
103 103
       method: 'post',
104 104
       data: data
105 105
   })
106
+}
107
+//批量书面审理
108
+export function writtenHearBatch(data) {
109
+  return request({
110
+      url: '/arbitrate/writtenHearBatch',
111
+      method: 'post',
112
+      data: data
113
+  })
114
+}
115
+// 根据批号批量签名
116
+export function getSignUrlBatch(data) {
117
+  return request({
118
+      url: '/adjudication/getSignUrlBatch',
119
+      method: 'post',
120
+      data: data
121
+  })
122
+}
123
+//根据批号批量用印
124
+export function getSealUrlBatch(data) {
125
+  return request({
126
+      url: '/adjudication/getSealUrlBatch',
127
+      method: 'post',
128
+      data: data
129
+  })
130
+}
131
+//批量归档
132
+export function caseFileBatch(data) {
133
+  return request({
134
+      url: '/adjudication/caseFileBatch',
135
+      method: 'post',
136
+      data: data
137
+  })
138
+}
139
+//仲裁文书送达
140
+export function serviceBatch(data) {
141
+  return request({
142
+      url: '/adjudication/serviceBatch',
143
+      method: 'post',
144
+      data: data
145
+  })
106 146
 }

+ 3
- 3
src/views/awardManagement/components/batchPrintings.vue 查看文件

@@ -11,7 +11,7 @@
11 11
                         {
12 12
                         required: true,
13 13
                         message: '查询机构不能为空',
14
-                        trigger: 'blur',
14
+                        trigger: 'change',
15 15
                         },
16 16
                 ]"
17 17
                 >
@@ -25,7 +25,7 @@
25 25
                      v-for="item in atoDataList"
26 26
                     :key="item.id"
27 27
                     :label="item.identifyName"
28
-                    :value="item.operPhone"
28
+                    :value="item.operPhone+item.id"
29 29
                     ></el-option>
30 30
                 </el-select>
31 31
                 </el-form-item>
@@ -132,7 +132,7 @@ export default {
132 132
         },
133 133
         // 下拉获取电话号码
134 134
         changeArbitor(val){
135
-            this.paramsdata.psnAccount = val
135
+            this.paramsdata.psnAccount = val.slice(0,11)
136 136
         },
137 137
         // 确认用印
138 138
         confirmSeals(){

+ 3
- 3
src/views/awardManagement/components/batchSignatures.vue 查看文件

@@ -10,7 +10,7 @@
10 10
                         {
11 11
                         required: true,
12 12
                         message: '仲裁员不能为空',
13
-                        trigger: 'blur',
13
+                        trigger: 'change',
14 14
                         },
15 15
                 ]"
16 16
                 >
@@ -24,7 +24,7 @@
24 24
                     v-for="item in atoDataList"
25 25
                     :key="item.value"
26 26
                     :label="item.nickName"
27
-                    :value="item.phonenumber"
27
+                    :value="item.phonenumber+item.userId"
28 28
                     ></el-option>
29 29
                 </el-select>
30 30
                 </el-form-item>
@@ -136,7 +136,7 @@ export default {
136 136
       });
137 137
     },
138 138
      changeArbitor(val) {
139
-         this.paramsdata.psnAccount =val
139
+         this.paramsdata.psnAccount = val.slice(0,11)
140 140
    
141 141
     },
142 142
     // 确认签名

+ 64
- 22
src/views/batchManagement/batchManagList.vue 查看文件

@@ -1,12 +1,13 @@
1 1
 <template>
2 2
     <div class="app-container">
3 3
             <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="70px">
4
-            <el-form-item label="批号:" prop="deptNameFirchar">
5
-                <el-input v-model="queryParams.deptNameFirchar" placeholder="请输入批号" clearable @keyup.enter.native="handleQuery" />
6
-            </el-form-item>
7
-            <el-form-item label="申请人:" prop="deptNameFirchar">
8
-                <el-input v-model="queryParams.deptNameFirchar" placeholder="请输入申请人" clearable @keyup.enter.native="handleQuery" />
4
+            <el-form-item label="批号:" prop="batchNumber">
5
+                <el-input v-model="queryParams.batchNumber" placeholder="请输入批号" clearable @keyup.enter.native="handleQuery" />
9 6
             </el-form-item>
7
+             <el-form-item label="申请人" prop="applicantName">
8
+            <el-cascader v-model="queryParams.nameId" :options="options" @change="changeDept" :props="{ checkStrictly: true }"
9
+          clearable></el-cascader>
10
+      </el-form-item>
10 11
             <el-form-item>
11 12
                 <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
12 13
                 <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@@ -21,7 +22,7 @@
21 22
                 </template>
22 23
             </el-table-column>
23 24
             <el-table-column label="批号" align="center" prop="batchNumber" :show-overflow-tooltip="true" />
24
-            <el-table-column label="申请人" align="center" prop="name" :show-overflow-tooltip="true" />
25
+            <el-table-column label="申请人" align="center" prop="applicantName" :show-overflow-tooltip="true" />
25 26
             <el-table-column label="仲裁方式" align="center" prop="arbitratMethodName" :show-overflow-tooltip="true" />
26 27
             <el-table-column label="仲裁员" align="center" prop="arbitratorName" :show-overflow-tooltip="true" />
27 28
             <el-table-column label="案件状态" align="center" prop="caseStatusName" :show-overflow-tooltip="true">
@@ -45,7 +46,7 @@
45 46
                     <el-button size="mini" type="text" @click="departmentDocuments(scope.row)">部门长审核仲裁文书</el-button>
46 47
                     <el-button size="mini" type="text" @click="batchSignatures(scope.row)">签名</el-button>
47 48
                     <el-button size="mini" type="text" @click="batchPrintings(scope.row)">用印</el-button>
48
-                    <el-button size="mini" type="text" @click="arbitrationAward(scope.row)">生成裁决书</el-button>
49
+                    <!-- <el-button size="mini" type="text" @click="arbitrationAward(scope.row)">生成裁决书</el-button> -->
49 50
                     <el-button size="mini" type="text" @click="servicearBitration(scope.row)">仲裁文书送达</el-button>
50 51
                     <el-button size="mini" type="text" @click="archive(scope.row)">归档</el-button>
51 52
                 </template>
@@ -67,9 +68,9 @@
67 68
         <!-- 审核仲裁方式 -->
68 69
         <reviewArbitrationMethod :caseVisableReviewl="caseVisableReviewl" @cancelCaseReviewl="cancelCaseReviewl" :queryParams="queryParams" @getList="getList" :reviewMethod="reviewMethod"></reviewArbitrationMethod>
69 70
         <!-- 签名 -->
70
-        <batchSignature :caseVisableSignature="caseVisableSignature" @cancelCaseSignature="cancelCaseSignature" :queryParams="queryParams" @getList="getList"></batchSignature>
71
+        <batchSignature :caseVisableSignature="caseVisableSignature" @cancelCaseSignature="cancelCaseSignature" :queryParams="queryParams" @getList="getList" :signatureData="signatureData"></batchSignature>
71 72
         <!-- 用印 -->
72
-        <batchPrinting :caseVisablePrinting="caseVisablePrinting" @cancelCasePrinting="cancelCasePrinting" :queryParams="queryParams" @getList="getList"></batchPrinting>
73
+        <batchPrinting :caseVisablePrinting="caseVisablePrinting" @cancelCasePrinting="cancelCasePrinting" :queryParams="queryParams" @getList="getList" :printingData="printingData"></batchPrinting>
73 74
         <!-- 立案审查 -->
74 75
         <filingReview :caseVisableReviewF="caseVisableReviewF" @cancelCaseReviewF="cancelCaseReviewF" :filingFeviewbatchNumber="filingFeviewbatchNumber" :queryParams="queryParams" @getList="getList"></filingReview>
75 76
         <!-- 秘书审核仲裁文书 -->
@@ -82,8 +83,8 @@
82 83
 </template>
83 84
   
84 85
 <script>
85
-import {listBatch,submitCaseApplicationBatch,payListBatch} from '@/api/batchManagement/batchManagement.js'
86
-import { caseApplicationDetail } from "@/api/pay/pay";
86
+import {listBatch,submitCaseApplicationBatch,payListBatch,batchWrittenReview,caseFileBatch,serviceBatch} from '@/api/batchManagement/batchManagement.js'
87
+import { listDept } from "@/api/system/dept";
87 88
 import batchPayment from './components/batchPayment.vue'
88 89
 import paymentConfirmation from './components/paymentConfirmation.vue'
89 90
 import courtReview from './components/courtReview.vue'
@@ -133,6 +134,8 @@ export default {
133 134
             arbitratorDeter:{},//仲裁员确认
134 135
             departmentDoc:{}, //部门长确认
135 136
             reviewMethod:{},//仲裁员审核仲裁方式
137
+            signatureData:{},//签名批号
138
+            printingData:{},//批量用印批号
136 139
             caseVisablePay: false,//批量缴费弹窗
137 140
             caseVisablePayment:false,//批量缴费确认
138 141
             caseVisableReview:false,//批量组庭审核
@@ -146,11 +149,13 @@ export default {
146 149
             caseVisablearBitration:false,//仲裁员核查文书
147 150
             caseVisablearHead:false,//部门长审核文书
148 151
             dataList: [],
149
-            editData:{}
152
+            editData:{},
153
+            options: [], //机构数据
150 154
         };
151 155
     },
152 156
     created() {
153 157
         this.getList(this.queryParams)
158
+        this.getInstitution();
154 159
     },
155 160
     methods: {
156 161
             /** 搜索按钮操作 */
@@ -161,13 +166,28 @@ export default {
161 166
             /** 重置按钮操作 */
162 167
         resetQuery() {
163 168
         this.resetForm("queryForm");
169
+        (this.queryParams.applicantName = ""),
170
+        (this.queryParams.nameId = ""),
164 171
         this.handleQuery();
172
+        },
173
+           // 机构发生变化
174
+        changeDept(data) {
175
+        this.queryParams.nameId = data[0];
176
+        },
177
+        // 获取机构数据
178
+        getInstitution() {
179
+        listDept().then((res) => {
180
+                res.data.forEach((item) => {
181
+                item.value = item.deptId;
182
+                item.label = item.deptName;
183
+                });
184
+            this.options = this.handleTree(res.data, "deptId");
185
+        });
165 186
         },
166 187
         // 查询列表
167 188
         getList(parm){
168 189
             this.loading = true;
169
-            listBatch(parm).then(res=>{   
170
-                console.log(res)        
190
+            listBatch(parm).then(res=>{         
171 191
                 this.dataList = res.rows;
172 192
                 this.total = res.total
173 193
                 this.loading = false;
@@ -254,30 +274,46 @@ export default {
254 274
             this.caseVisableReviewl = false
255 275
         },
256 276
         // 批量书面审理
257
-        batchWrittenReview(){
277
+        batchWrittenReview(row){
258 278
            this.$modal.confirm("你确定要批量书面审理吗?").then((res) => {
259
-                    // this.deleteSealFn({ id: row.id })
279
+                    this.batchWrittenReviews({ batchNumber: row.batchNumber })
260 280
                 }).catch(() =>{
261 281
                     
262 282
             }) 
263 283
         },
284
+        //批量书面审理接口
285
+        batchWrittenReviews(val){
286
+            batchWrittenReview(val).then(res=>{
287
+                this.$modal.msgSuccess("提交成功!");
288
+                this.getList(this.queryParams);
289
+            })
290
+        },
264 291
         // 批量归档
265
-        archive(){
292
+        archive(row){
266 293
             this.$modal.confirm("你确定要批量归档吗?").then((res) => {
267
-                    // this.deleteSealFn({ id: row.id })
294
+                     this.caseFileBatchs({ batchNumber: row.batchNumber})
268 295
                 }).catch(() =>{
269 296
                     
270 297
             }) 
271 298
         },
299
+        // 批量归档接口
300
+        caseFileBatchs(vals){
301
+            caseFileBatch(vals).then(res=>{
302
+                this.$modal.msgSuccess("归档成功!");
303
+                this.getList(this.queryParams);
304
+            })
305
+        },
272 306
         // 批量签名
273
-        batchSignatures(){
307
+        batchSignatures(row){
308
+            this.signatureData = row
274 309
             this.caseVisableSignature = true
275 310
         },
276 311
         cancelCaseSignature(){
277 312
             this.caseVisableSignature = false
278 313
         },
279 314
         // 批量签名
280
-        batchPrintings(){
315
+        batchPrintings(row){
316
+            this.printingData = row
281 317
             this.caseVisablePrinting = true
282 318
         },
283 319
         cancelCasePrinting(){
@@ -292,13 +328,19 @@ export default {
292 328
             }) 
293 329
         },
294 330
         //仲裁文书送达
295
-        servicearBitration(){
331
+        servicearBitration(row){
296 332
              this.$modal.confirm("你确定要批量仲裁文书批量送达吗?").then((res) => {
297
-                    // this.deleteSealFn({ id: row.id })
333
+                     this.serviceBatchs({ batchNumber: row.batchNumber})
298 334
                 }).catch(() =>{
299 335
                     
300 336
             }) 
301 337
         },
338
+        serviceBatchs(val){
339
+            serviceBatch(val).then(res=>{
340
+                this.$modal.msgSuccess("批量送达成功!");
341
+                this.getList(this.queryParams);
342
+            })
343
+        },
302 344
         // 秘书审核仲裁文书
303 345
         secretaryArbitration(row){
304 346
             this.secretaryArb = row

+ 74
- 9
src/views/batchManagement/components/batchPrinting.vue 查看文件

@@ -1,36 +1,101 @@
1 1
 <template>
2 2
     <div>
3 3
         <!-- 批量用印 -->
4
-        <el-dialog title="批量用印" :visible="caseVisablePrinting" destroy-on-close width="30%"  @close="cancel" center>
4
+        <el-dialog title="批量用印" :visible="caseVisablePrinting" destroy-on-close width="30%"  @close="cancel('courtReviewform')" center>
5
+            <!-- 查询机构信息 -->
6
+            <el-form ref="courtReviewform" :model="courtReviewform">
7
+                <el-form-item
8
+                    label="查询机构:"
9
+                    prop="Arbitor"
10
+                    :rules="[
11
+                        {
12
+                        required: true,
13
+                        message: '查询机构不能为空',
14
+                        trigger: 'change',
15
+                        },
16
+                ]"
17
+                >
18
+                <el-select
19
+                    placeholder="请选择查询机构"
20
+                    @change="changeArbitor"
21
+                    v-model="courtReviewform.Arbitor"
22
+                    clearable
23
+                >
24
+                    <el-option
25
+                     v-for="item in atoDataList"
26
+                    :key="item.id"
27
+                    :label="item.identifyName"
28
+                    :value="item.operPhone+item.id"
29
+                    ></el-option>
30
+                </el-select>
31
+                </el-form-item>
32
+            </el-form>
5 33
             <div slot="footer" class="dialog-footer">
6
-                <el-button type="primary"  class="endbutton"><span>确认</span></el-button>
7
-                <el-button  class="endbutton" @click="cancel"><span>取 消</span></el-button>
34
+                <el-button type="primary"  class="endbutton" @click="confirmSeals"><span>确认用印</span></el-button>
35
+                <el-button  class="endbutton" @click="cancel('courtReviewform')"><span>取 消</span></el-button>
8 36
             </div>
9 37
         </el-dialog>
10 38
     </div>
11 39
 </template>
12 40
 <script>
41
+import {deptIdentifyList} from '@/api/officialSeal/officialSeal'
42
+import {getSealUrlBatch} from '@/api/batchManagement/batchManagement.js'
13 43
 export default {
14
-    props: ["caseVisablePrinting","queryParams"],
44
+    props: ["caseVisablePrinting","queryParams","printingData"],
15 45
     dicts: ["manager_type"],
16 46
     data() {
17 47
         return {
18
-           
48
+            atoDataList:[],
49
+            courtReviewform: {},
50
+            Arbitor: "",
51
+            paramsdata:{
52
+                batchNumber:0,
53
+                psnAccount:""
54
+            },
19 55
            
20 56
         };
21 57
     },
22 58
     watch: {
23
-        caseVisablePayment(val) {
59
+        caseVisablePrinting(val) {
24 60
             if (val) {
25
-                this.ruleForm = {};
61
+                console.log(this.atoDataList)
26 62
             }
27 63
         }
28 64
     },
29 65
     created() {
30
-
66
+        this.getarbitrAtor()
31 67
     },
32 68
     methods: {
33
-        cancel() {
69
+         // 查询机构信息
70
+        getarbitrAtor() {
71
+                this.atoDataList =[]
72
+                deptIdentifyList({}).then((res) => {
73
+                    this.atoDataList = res.rows;
74
+                });
75
+        },
76
+       // 下拉获取电话号码
77
+        changeArbitor(val){
78
+            this.paramsdata.psnAccount = val.slice(0,11)
79
+        },
80
+        // 确认用印
81
+        confirmSeals(){
82
+            this.$refs["courtReviewform"].validate((valid) => {
83
+                if(valid){
84
+                    this.paramsdata.batchNumber= this.printingData.batchNumber
85
+                    console.log(this.paramsdata)
86
+                    getSealUrlBatch(this.paramsdata).then(res=>{
87
+                            this.$modal.msgSuccess("确认成功");
88
+                            this.cancel();
89
+                            this.$emit("getList", this.queryParams);
90
+                            window.open(res.data.signUrl)
91
+                     }).catch((err) => {
92
+                         
93
+                     });
94
+                }
95
+            })
96
+        },
97
+        cancel(formName) {
98
+            this.$refs[formName].resetFields(); //清空下拉列表的内容
34 99
             this.$emit("cancelCasePrinting");
35 100
         },
36 101
     },

+ 75
- 10
src/views/batchManagement/components/batchSignature.vue 查看文件

@@ -1,36 +1,101 @@
1 1
 <template>
2 2
     <div>
3 3
         <!-- 批量签名 -->
4
-        <el-dialog title="批量签名" :visible="caseVisableSignature" destroy-on-close width="30%"  @close="cancel" center>
4
+        <el-dialog title="批量签名" :visible="caseVisableSignature" destroy-on-close width="30%"  @close="cancel('courtReviewform')" center>
5
+            <el-form ref="courtReviewform" :model="courtReviewform">
6
+                <el-form-item
7
+                    label="仲裁员:"
8
+                     prop="Arbitor"
9
+                    :rules="[
10
+                        {
11
+                        required: true,
12
+                        message: '仲裁员不能为空',
13
+                        trigger: 'change'
14
+                        },
15
+                ]"
16
+                >
17
+                <el-select
18
+                    placeholder="请选择仲裁员"
19
+                     @change="changeArbitor"
20
+                    v-model="courtReviewform.Arbitor"
21
+                    clearable
22
+                >
23
+                    <el-option
24
+                    v-for="item in atoDataList"
25
+                    :key="item.value"
26
+                    :label="item.nickName"
27
+                    :value="item.phonenumber+item.deptId"
28
+                    ></el-option>
29
+                </el-select>
30
+                </el-form-item>
31
+            </el-form>
5 32
             <div slot="footer" class="dialog-footer">
6
-                <el-button type="primary"  class="endbutton"><span>确认</span></el-button>
7
-                <el-button  class="endbutton" @click="cancel"><span>取 消</span></el-button>
33
+                <el-button type="primary"  class="endbutton" @click="witnessing"><span>确认签名</span></el-button>
34
+                <el-button  class="endbutton" @click="cancel('courtReviewform')"><span>取 消</span></el-button>
8 35
             </div>
9 36
         </el-dialog>
10 37
     </div>
11 38
 </template>
12 39
 <script>
40
+import { arbitrAtor} from "@/api/formationCourt/formationCourt";
41
+import {getSignUrlBatch} from '@/api/batchManagement/batchManagement.js'
13 42
 export default {
14
-    props: ["caseVisableSignature","queryParams"],
43
+    props: ["caseVisableSignature","queryParams","signatureData"],
15 44
     dicts: ["manager_type"],
16 45
     data() {
17 46
         return {
18
-           
19
-           
47
+          courtReviewform: {
48
+            Arbitor: "",     
49
+          }, 
50
+          Arbitor: "", 
51
+          atoDataList:[],
52
+          paramsdata:{
53
+             batchNumber:0,
54
+             psnAccount:""
55
+            },
20 56
         };
21 57
     },
22 58
     watch: {
23
-        caseVisablePayment(val) {
59
+        caseVisableSignature(val) {
24 60
             if (val) {
25
-                this.ruleForm = {};
61
+                
62
+                console.log(this.atoDataList)
26 63
             }
27 64
         }
28 65
     },
29 66
     created() {
30
-
67
+        this.getarbitrAtor()
31 68
     },
32 69
     methods: {
33
-        cancel() {
70
+        // 获取仲裁员信息
71
+        getarbitrAtor() {
72
+            arbitrAtor({}).then((res) => {
73
+                this.atoDataList = res.rows;
74
+            });
75
+        },
76
+        changeArbitor(val) {
77
+            this.paramsdata.psnAccount =val.slice(0,11)
78
+    
79
+        },
80
+        // 确认签名提交
81
+        witnessing(){
82
+             this.$refs["courtReviewform"].validate((valid) => {
83
+                 if(valid){
84
+                    this.paramsdata.batchNumber= this.signatureData.batchNumber
85
+                    console.log(this.paramsdata)
86
+                     getSignUrlBatch(this.paramsdata).then(res=>{
87
+                            this.$modal.msgSuccess("确认成功");
88
+                            this.cancel();
89
+                            this.$emit("getList", this.queryParams);
90
+                            window.open(res.data.signUrl)
91
+                     }).catch((err) => {
92
+                         
93
+                     });
94
+                 }
95
+             })
96
+        },
97
+        cancel(formName) {
98
+            this.$refs[formName].resetFields();
34 99
             this.$emit("cancelCaseSignature");
35 100
         },
36 101
     },

+ 1
- 0
src/views/caseManagement/caseList.vue 查看文件

@@ -425,6 +425,7 @@ export default {
425 425
       if (params >= 0) {
426 426
         this.queryParams.caseStatus = params;
427 427
       }
428
+      // console.log(this.$route.params.batchNumber)
428 429
       this.getcaseApply(this.queryParams);
429 430
     })
430 431
     // this.getcaseApply(this.queryParams);

+ 1
- 1
src/views/caseManagement/components/caseentryDialog.vue 查看文件

@@ -111,7 +111,7 @@
111 111
             <el-form-item label="申请人案件证据资料上传:" prop="applicantEvidence" v-if="flag !== '0'">
112 112
               <el-upload class="upload-demo" ref="fileupload" accept=".png,.jpg,.doc,.docx,.txt,.pdf"
113 113
                 :action="UploadUrl()" :on-success="handlSuccess" :on-remove="handleRemove" :on-preview="handlePreview"
114
-                :before-remove="beforeRemove" :data="filedata" :headers="headers" multiple :limit="3"
114
+                :before-remove="beforeRemove" :data="filedata" :headers="headers" multiple :limit="50"
115 115
                 :on-exceed="handleExceed" :file-list="fileList">
116 116
                 <el-button size="small" type="primary">点击上传</el-button>
117 117
                 <div slot="tip" class="el-upload__tip">