gyj 2 лет назад
Родитель
Сommit
2336d6d7d2

+ 48
- 0
src/api/batchManagement/batchManagement.js Просмотреть файл

@@ -55,4 +55,52 @@ export function confirmBatch(data) {
55 55
       method: 'post',
56 56
       data: data
57 57
   })
58
+}
59
+//批量组庭审核
60
+export function pendTralCheckBatch(data) {
61
+  return request({
62
+      url: '/caseApplication/pendTralCheckBatch',
63
+      method: 'post',
64
+      data: data
65
+  })
66
+}
67
+// 批量组庭确认
68
+export function pendTralSureBatch(data) {
69
+  return request({
70
+      url: '/caseApplication/pendTralSureBatch',
71
+      method: 'post',
72
+      data: data
73
+  })
74
+}
75
+//秘书批量审核文书
76
+export function verificationArbitrateRecordBatch(data) {
77
+  return request({
78
+      url: '/caseApplication/verificationArbitrateRecordBatch',
79
+      method: 'post',
80
+      data: data
81
+  })
82
+}
83
+//仲裁员批量审核
84
+export function checkArbitrateRecordBatch(data) {
85
+  return request({
86
+      url: '/caseApplication/arbitrator/checkArbitrateRecordBatch',
87
+      method: 'post',
88
+      data: data
89
+  })
90
+}
91
+// 部门长批量审核
92
+export function checkArbitrateRecordBatchs(data) {
93
+  return request({
94
+      url: '/caseApplication/checkArbitrateRecordBatch',
95
+      method: 'post',
96
+      data: data
97
+  })
98
+}
99
+//审核仲裁方式
100
+export function methodBatch(data) {
101
+  return request({
102
+      url: '/arbitrate/methodBatch',
103
+      method: 'post',
104
+      data: data
105
+  })
58 106
 }

+ 28
- 14
src/views/batchManagement/batchManagList.vue Просмотреть файл

@@ -59,25 +59,25 @@
59 59
         <!-- 缴费确认 -->
60 60
         <paymentConfirmation :caseVisablePayment="caseVisablePayment" @cancelCasePayment="cancelCasePayment" :confirmPaymen="confirmPaymen" :queryParams="queryParams" @getList="getList" :totalFeeConfir="totalFeeConfir"></paymentConfirmation>
61 61
         <!-- 组庭审核 -->
62
-        <courtReview :caseVisableReview="caseVisableReview" @cancelCaseReview="cancelCaseReview"></courtReview>
62
+        <courtReview :caseVisableReview="caseVisableReview" @cancelCaseReview="cancelCaseReview" :formateCourtData="formateCourtData" :queryParams="queryParams" @getList="getList"></courtReview>
63 63
         <!-- 查看案件列表 -->
64 64
         <!-- <viewingCases :caseVisableViewing="caseVisableViewing" @cancelCaseViewing="cancelCaseViewing"></viewingCases> -->
65 65
         <!-- 组庭确认 -->
66
-        <courtConfirmation :showcourtReview="showcourtReview" @cancelcourtReview="cancelcourtReview"></courtConfirmation>
66
+        <courtConfirmation :showcourtReview="showcourtReview" @cancelcourtReview="cancelcourtReview" :courtConfirmationData="courtConfirmationData" :queryParams="queryParams" @getList="getList"></courtConfirmation>
67 67
         <!-- 审核仲裁方式 -->
68
-        <reviewArbitrationMethod :caseVisableReviewl="caseVisableReviewl" @cancelCaseReviewl="cancelCaseReviewl"></reviewArbitrationMethod>
68
+        <reviewArbitrationMethod :caseVisableReviewl="caseVisableReviewl" @cancelCaseReviewl="cancelCaseReviewl" :queryParams="queryParams" @getList="getList" :reviewMethod="reviewMethod"></reviewArbitrationMethod>
69 69
         <!-- 签名 -->
70
-        <batchSignature :caseVisableSignature="caseVisableSignature" @cancelCaseSignature="cancelCaseSignature"></batchSignature>
70
+        <batchSignature :caseVisableSignature="caseVisableSignature" @cancelCaseSignature="cancelCaseSignature" :queryParams="queryParams" @getList="getList"></batchSignature>
71 71
         <!-- 用印 -->
72
-        <batchPrinting :caseVisablePrinting="caseVisablePrinting" @cancelCasePrinting="cancelCasePrinting"></batchPrinting>
72
+        <batchPrinting :caseVisablePrinting="caseVisablePrinting" @cancelCasePrinting="cancelCasePrinting" :queryParams="queryParams" @getList="getList"></batchPrinting>
73 73
         <!-- 立案审查 -->
74 74
         <filingReview :caseVisableReviewF="caseVisableReviewF" @cancelCaseReviewF="cancelCaseReviewF" :filingFeviewbatchNumber="filingFeviewbatchNumber" :queryParams="queryParams" @getList="getList"></filingReview>
75 75
         <!-- 秘书审核仲裁文书 -->
76
-        <arbitratorsDocuments :caseVisableSecretary="caseVisableSecretary" @cancelCaseSecretary="cancelCaseSecretary"></arbitratorsDocuments>
76
+        <arbitratorsDocuments :caseVisableSecretary="caseVisableSecretary" @cancelCaseSecretary="cancelCaseSecretary" :queryParams="queryParams" @getList="getList" :secretaryArb="secretaryArb"></arbitratorsDocuments>
77 77
         <!-- 仲裁员审核仲裁文书 -->
78
-        <arbitratorsvVerify :caseVisablearBitration="caseVisablearBitration" @cancelCaseBitration="cancelCaseBitration"></arbitratorsvVerify>
78
+        <arbitratorsvVerify :caseVisablearBitration="caseVisablearBitration" @cancelCaseBitration="cancelCaseBitration" :queryParams="queryParams" @getList="getList" :arbitratorDeter="arbitratorDeter"></arbitratorsvVerify>
79 79
         <!-- 部门长审核仲裁文书 -->
80
-        <departmentReviews :caseVisablearHead="caseVisablearHead" @cancelCaseHead="cancelCaseHead"></departmentReviews>
80
+        <departmentReviews :caseVisablearHead="caseVisablearHead" @cancelCaseHead="cancelCaseHead" :queryParams="queryParams" @getList="getList" :departmentDoc="departmentDoc"></departmentReviews>
81 81
     </div>    
82 82
 </template>
83 83
   
@@ -127,6 +127,12 @@ export default {
127 127
             confirmPaymen:{},//批量确认缴费
128 128
             totalFees:{},//缴费总金额
129 129
             totalFeeConfir:{},//确认缴费总金额
130
+            formateCourtData:{},//组庭审核
131
+            courtConfirmationData:{},//组庭确认
132
+            secretaryArb:{},//秘书确认
133
+            arbitratorDeter:{},//仲裁员确认
134
+            departmentDoc:{}, //部门长确认
135
+            reviewMethod:{},//仲裁员审核仲裁方式
130 136
             caseVisablePay: false,//批量缴费弹窗
131 137
             caseVisablePayment:false,//批量缴费确认
132 138
             caseVisableReview:false,//批量组庭审核
@@ -215,7 +221,8 @@ export default {
215 221
             this.caseVisablePayment = false
216 222
         },
217 223
         // 批量组庭审核
218
-        courtReviews(){
224
+        courtReviews(row){
225
+            this.formateCourtData = row;
219 226
             this.caseVisableReview = true 
220 227
         },
221 228
         cancelCaseReview(){
@@ -229,14 +236,18 @@ export default {
229 236
            }
230 237
         },
231 238
         // 批量组庭确认
232
-        courtConfirmations(){
239
+        courtConfirmations(row){
240
+            this.courtConfirmationData = row
241
+            console.log(row)
233 242
             this.showcourtReview = true
234 243
         },
235 244
         cancelcourtReview(){
236 245
             this.showcourtReview = false
237 246
         },
238 247
         // 批量审核仲裁方式
239
-        reviewArbitrations(){
248
+        reviewArbitrations(row){
249
+            console.log(row)
250
+            this.reviewMethod = row
240 251
             this.caseVisableReviewl = true
241 252
         },
242 253
         cancelCaseReviewl(){
@@ -289,21 +300,24 @@ export default {
289 300
             }) 
290 301
         },
291 302
         // 秘书审核仲裁文书
292
-        secretaryArbitration(){
303
+        secretaryArbitration(row){
304
+            this.secretaryArb = row
293 305
             this.caseVisableSecretary = true
294 306
         },
295 307
         cancelCaseSecretary(){
296 308
             this.caseVisableSecretary = false
297 309
         },
298 310
         // 仲裁员审核文书
299
-        arbitratorsVerify(){
311
+        arbitratorsVerify(row){
312
+            this.arbitratorDeter = row
300 313
             this.caseVisablearBitration = true
301 314
         },
302 315
         cancelCaseBitration(){
303 316
             this.caseVisablearBitration = false
304 317
         },
305 318
         // 部门长审核仲裁文书
306
-        departmentDocuments(){
319
+        departmentDocuments(row){
320
+            this.departmentDoc =row
307 321
             this.caseVisablearHead = true
308 322
         },
309 323
         cancelCaseHead(){

+ 10
- 2
src/views/batchManagement/components/arbitratorsDocuments.vue Просмотреть файл

@@ -3,15 +3,16 @@
3 3
         <!-- 秘书批量审核 -->
4 4
         <el-dialog title="秘书批量审核" :visible="caseVisableSecretary" destroy-on-close width="30%"  @close="cancel" center>
5 5
             <div slot="footer" class="dialog-footer">
6
-                <el-button type="primary"  class="endbutton"><span>确认</span></el-button>
6
+                <el-button type="primary"  class="endbutton" @click="secretaryConfirmed"><span>确认</span></el-button>
7 7
                 <el-button  class="endbutton" @click="cancel"><span>取 消</span></el-button>
8 8
             </div>
9 9
         </el-dialog>
10 10
     </div>
11 11
 </template>
12 12
 <script>
13
+import {verificationArbitrateRecordBatch} from '@/api/batchManagement/batchManagement.js'
13 14
 export default {
14
-    props: ["caseVisableSecretary","queryParams"],
15
+    props: ["caseVisableSecretary","queryParams","secretaryArb"],
15 16
     dicts: ["manager_type"],
16 17
     data() {
17 18
         return {
@@ -30,6 +31,13 @@ export default {
30 31
 
31 32
     },
32 33
     methods: {
34
+        secretaryConfirmed(){
35
+            verificationArbitrateRecordBatch({batchNumber:this.secretaryArb.batchNumber}).then(res=>{
36
+              this.$modal.msgSuccess("确认成功");
37
+              this.cancel();
38
+              this.$emit("getList", this.queryParams);
39
+            }).catch((err) => {});
40
+        },
33 41
         cancel() {
34 42
             this.$emit("cancelCaseSecretary");
35 43
         },

+ 55
- 6
src/views/batchManagement/components/arbitratorsvVerify.vue Просмотреть файл

@@ -2,28 +2,47 @@
2 2
     <div>
3 3
         <!-- 仲裁员批量审核 -->
4 4
         <el-dialog title="仲裁员批量审核" :visible="caseVisablearBitration" destroy-on-close width="30%"  @close="cancel" center>
5
+            <div>
6
+                <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
7
+                <el-form-item label="审核意见" prop="checkOpinion">
8
+                    <el-input type="textarea" :rows="2" placeholder="请输入审核意见" v-model="ruleForm.checkOpinion"></el-input>
9
+                </el-form-item>
10
+                <el-form-item label="驳回原因">
11
+                    <el-input type="textarea" :rows="2" placeholder="请输入驳回原因" v-model="ruleForm.arbitrateReject"></el-input>
12
+                </el-form-item>
13
+                </el-form>
14
+            </div>
5 15
             <div slot="footer" class="dialog-footer">
6
-                <el-button type="primary"  class="endbutton"><span>同 意</span></el-button>
7
-                <el-button type="danger"  class="endbutton"><span>驳 回</span></el-button>
16
+                <el-button type="primary"  class="endbutton" @click="submitForm(1)"><span>同 意</span></el-button>
17
+                <el-button type="danger"  class="endbutton" @click="submitForm(2)"><span>驳 回</span></el-button>
8 18
                 <el-button  class="endbutton" @click="cancel"><span>取 消</span></el-button>
9 19
             </div>
10 20
         </el-dialog>
11 21
     </div>
12 22
 </template>
13 23
 <script>
24
+import {checkArbitrateRecordBatch} from '@/api/batchManagement/batchManagement.js'
14 25
 export default {
15
-    props: ["caseVisablearBitration","queryParams"],
16
-    dicts: ["manager_type"],
26
+    props: ["caseVisablearBitration","queryParams","arbitratorDeter"],
17 27
     data() {
18 28
         return {
19
-           
29
+            ruleForm: {},
30
+            rules: {
31
+                checkOpinion: [
32
+                    {
33
+                        required: true,
34
+                        message: "审核意见不能为空",
35
+                        trigger: "blur",
36
+                    },
37
+                ],
38
+            }  
20 39
            
21 40
         };
22 41
     },
23 42
     watch: {
24 43
         caseVisablearBitration(val) {
25 44
             if (val) {
26
-                this.ruleForm = {};
45
+                // this.ruleForm = {};
27 46
             }
28 47
         }
29 48
     },
@@ -31,7 +50,37 @@ export default {
31 50
 
32 51
     },
33 52
     methods: {
53
+        submitForm(val){
54
+           this.$refs["ruleForm"].validate((valid) => {
55
+               if(valid){
56
+                   if(val==1){
57
+                       let values = {
58
+                           batchNumber:this.arbitratorDeter.batchNumber,
59
+                           agreeOrNotCheck:1,
60
+                           arbitrateRecord:this.ruleForm
61
+                       }
62
+                      checkArbitrateRecordBatch(values).then(res=>{
63
+                            this.$modal.msgSuccess("确认成功");
64
+                            this.cancel();
65
+                            this.$emit("getList", this.queryParams);
66
+                      }).catch((err) => {}); 
67
+                   }else if(val==2){
68
+                       let values = {
69
+                           batchNumber:this.arbitratorDeter.batchNumber,
70
+                           agreeOrNotCheck:2,
71
+                           arbitrateRecord:this.ruleForm
72
+                       }
73
+                      checkArbitrateRecordBatch(values).then(res=>{
74
+                            this.$modal.msgSuccess("驳回成功");
75
+                            this.cancel();
76
+                            this.$emit("getList", this.queryParams);
77
+                      }).catch((err) => {}); 
78
+                   }
79
+               }
80
+           })
81
+        },
34 82
         cancel() {
83
+            
35 84
             this.$emit("cancelCaseBitration");
36 85
         },
37 86
     },

+ 30
- 17
src/views/batchManagement/components/courtConfirmation.vue Просмотреть файл

@@ -16,9 +16,9 @@
16 16
           </el-radio-group>
17 17
         </el-form-item>
18 18
         <!-- </el-form> -->
19
-        <el-tag type="warning" v-if="noArbitrator"
19
+        <!-- <el-tag type="warning" v-if="noArbitrator"
20 20
           >当前案件未指定仲裁员,请先指定仲裁员!</el-tag
21
-        >
21
+        > -->
22 22
         <div style="display: inline-flex; margin: 1% 9%">
23 23
           <div v-if="isAgreePendTral == 0">请选择仲裁员</div>
24 24
           <div v-if="isAgreePendTral == 1">
@@ -27,7 +27,7 @@
27 27
         </div>
28 28
         <div v-if="isAgreePendTral == 1" class="nowarbitrator">
29 29
           <el-tag size="medium">
30
-            <!-- {{ form.arbitratorName }} -->
30
+            {{ courtConfirmationData.arbitratorName }}
31 31
           </el-tag>
32 32
         </div>
33 33
         <!-- <div v-if="noArbitrator || isAgreePendTral == 0"> -->
@@ -73,11 +73,12 @@
73 73
 
74 74
 <script>
75 75
 import { pendTralSure } from "@/api/caseManagement/caseManagement.js";
76
-import { arbitrAtor, pendTralCheck } from "@/api/formationCourt/formationCourt";
76
+import { arbitrAtor} from "@/api/formationCourt/formationCourt";
77
+import {pendTralSureBatch} from '@/api/batchManagement/batchManagement.js'
77 78
 import moment from "moment";
78 79
 export default {
79 80
   name: "courtReviewDialog",
80
-  props: ["showcourtReview", "form", "queryParams"],
81
+  props: ["showcourtReview", "courtConfirmationData", "queryParams"],
81 82
   data() {
82 83
     return {
83 84
       dataList: [],
@@ -131,32 +132,44 @@ export default {
131 132
       });
132 133
     },
133 134
     submitForm() {
134
-      if (this.noArbitrator) {
135
-        this.paramsdata = {
136
-          id: this.form.id,
137
-          arbitrators: this.arbitrators,
138
-        };
139
-      } else {
140
-        if (this.isAgreePendTral == 0) {
135
+      // if (this.noArbitrator) {
136
+      //   this.paramsdata = {
137
+      //     id: this.form.id,
138
+      //     arbitrators: this.arbitrators,
139
+      //   };
140
+      // } else {
141
+      //   if (this.isAgreePendTral == 0) {
142
+      //     this.paramsdata = {
143
+      //       isAgreePendTral: 0,
144
+      //       id: this.form.id,
145
+      //       arbitrators: this.arbitrators,
146
+      //     };
147
+      //   } else {
148
+      //     this.paramsdata = {
149
+      //       isAgreePendTral: 1,
150
+      //       id: this.form.id,
151
+      //     };
152
+      //   }
153
+      // }
154
+      if (this.isAgreePendTral == 0) {
141 155
           this.paramsdata = {
142 156
             isAgreePendTral: 0,
143
-            id: this.form.id,
157
+            batchNumber: this.courtConfirmationData.batchNumber,
144 158
             arbitrators: this.arbitrators,
145 159
           };
146 160
         } else {
147 161
           this.paramsdata = {
148 162
             isAgreePendTral: 1,
149
-            id: this.form.id,
163
+            batchNumber: this.courtConfirmationData.batchNumber,
150 164
           };
151 165
         }
152
-      }
153 166
       this.$refs["courtReviewform"].validate((valid) => {
154 167
         if (valid) {
155
-          pendTralSure(this.paramsdata)
168
+          pendTralSureBatch(this.paramsdata)
156 169
             .then((res) => {
157 170
               this.$modal.msgSuccess("确认成功");
158 171
               this.cancel();
159
-              this.$emit("getcaseApply", this.queryParams);
172
+              this.$emit("getList", this.queryParams);
160 173
             })
161 174
             .catch((err) => {});
162 175
         }

+ 37
- 21
src/views/batchManagement/components/courtReview.vue Просмотреть файл

@@ -21,26 +21,26 @@
21 21
             <el-radio :label="0">否</el-radio>
22 22
           </el-radio-group>
23 23
         </el-form-item>
24
-        <el-tag type="warning" v-if="noArbitrator"
24
+        <!-- <el-tag type="warning" v-if="noArbitrator"
25 25
           >当前案件未指定仲裁员,请先指定仲裁员!</el-tag
26 26
         >
27
-        <p></p>
27
+        <p></p> -->
28 28
         <!-- <el-form ref="form"> -->
29 29
         <!-- v-if="isAgreePendTral == 0 || noArbitrator" -->
30 30
         <div style="display: inline-flex; margin-bottom: 8px">
31 31
           <div v-if="isAgreePendTral !== 1">请选择仲裁员</div>
32
-          <div v-if="isAgreePendTral == 1">
32
+          <!-- <div v-if="isAgreePendTral == 1">
33 33
             当前案件仲裁员
34
-          </div>
34
+          </div> -->
35 35
         </div>
36
-        <div
36
+        <!-- <div
37 37
           v-if="isAgreePendTral == 1"
38 38
           class="nowarbitrator"
39 39
         >
40 40
           <el-tag size="medium">
41
-            <!-- {{ formateCourtData.arbitratorName }} -->
41
+            
42 42
           </el-tag>
43
-        </div>
43
+        </div> -->
44 44
         <el-form-item
45 45
           label="仲裁员:"
46 46
           prop="Arbitor"
@@ -79,7 +79,8 @@
79 79
 </template>
80 80
 
81 81
 <script>
82
-import { arbitrAtor, pendTralCheck } from "@/api/formationCourt/formationCourt";
82
+import { arbitrAtor} from "@/api/formationCourt/formationCourt";
83
+import {pendTralCheckBatch} from '@/api/batchManagement/batchManagement.js'
83 84
 export default {
84 85
   props: ["caseVisableReview", "formateCourtData", "queryParams"],
85 86
   data() {
@@ -105,6 +106,7 @@ export default {
105 106
     },
106 107
     // formateCourtData: {
107 108
     //   handler(val) {
109
+    //     console.log(val)
108 110
     //     if (val.arbitratorName == null) {
109 111
     //       this.noArbitrator = true;
110 112
     //     } else {
@@ -131,35 +133,49 @@ export default {
131 133
           });
132 134
         }
133 135
       });
136
+      console.log(this.arbitratorss)
134 137
     },
135 138
     // 确认
136 139
     submitForm() {
137
-      if (this.noArbitrator) {
138
-        this.paramsdata = {
139
-          id: this.formateCourtData.id,
140
-          arbitrators: this.arbitrators,
141
-        };
142
-      } else {
143
-        if (this.isAgreePendTral == 0) {
140
+      // if (this.noArbitrator) {
141
+      //   this.paramsdata = {
142
+      //     id: this.formateCourtData.id,
143
+      //     arbitrators: this.arbitrators,
144
+      //   };
145
+      // } else {
146
+      //   if (this.isAgreePendTral == 0) {
147
+      //     this.paramsdata = {
148
+      //       isAgreePendTral: 0,
149
+      //       id: this.formateCourtData.id,
150
+      //       arbitrators: this.arbitrators,
151
+      //     };
152
+      //   } else {
153
+      //     this.paramsdata = {
154
+      //       isAgreePendTral: 1,
155
+      //       id: this.formateCourtData.id,
156
+      //     };
157
+      //   }
158
+      // }
159
+      if (this.isAgreePendTral == 0) {
144 160
           this.paramsdata = {
145 161
             isAgreePendTral: 0,
146
-            id: this.formateCourtData.id,
162
+            batchNumber: this.formateCourtData.batchNumber,
147 163
             arbitrators: this.arbitrators,
148 164
           };
149 165
         } else {
150 166
           this.paramsdata = {
151 167
             isAgreePendTral: 1,
152
-            id: this.formateCourtData.id,
168
+            batchNumber: this.formateCourtData.batchNumber,
169
+            arbitrators: this.arbitrators,
153 170
           };
154 171
         }
155
-      }
156 172
       this.$refs["formateCourtform"].validate((valid) => {
157 173
         if (valid) {
158
-          pendTralCheck(this.paramsdata).then((res) => {
159
-            
174
+          pendTralCheckBatch(this.paramsdata).then((res) => {
175
+            console.log(res)
160 176
             this.cancel();
161 177
             this.$modal.msgSuccess("组庭成功");
162
-            this.$emit("getcaseApply", this.queryParams);
178
+            this.$emit("getList", this.queryParams);
163 179
             // 初始化页面
164 180
             this.formateCourtform={}
165 181
           });

+ 55
- 6
src/views/batchManagement/components/departmentReviews.vue Просмотреть файл

@@ -2,28 +2,47 @@
2 2
     <div>
3 3
         <!-- 部门长批量审核 -->
4 4
         <el-dialog title="部门长批量审核" :visible="caseVisablearHead" destroy-on-close width="30%"  @close="cancel" center>
5
+            <div>
6
+                <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
7
+                <el-form-item label="审核意见" prop="checkOpinion">
8
+                    <el-input type="textarea" :rows="2" placeholder="请输入审核意见" v-model="ruleForm.checkOpinion"></el-input>
9
+                </el-form-item>
10
+                <el-form-item label="驳回原因">
11
+                    <el-input type="textarea" :rows="2" placeholder="请输入驳回原因" v-model="ruleForm.arbitrateReject"></el-input>
12
+                </el-form-item>
13
+                </el-form>
14
+            </div>
5 15
             <div slot="footer" class="dialog-footer">
6
-                <el-button type="primary"  class="endbutton"><span>同 意</span></el-button>
7
-                <el-button type="danger"  class="endbutton"><span>驳 回</span></el-button>
16
+                <el-button type="primary"  class="endbutton" @click="submitForm(1)"><span>同 意</span></el-button>
17
+                <el-button type="danger"  class="endbutton" @click="submitForm(2)"><span>驳 回</span></el-button>
8 18
                 <el-button  class="endbutton" @click="cancel"><span>取 消</span></el-button>
9 19
             </div>
10 20
         </el-dialog>
11 21
     </div>
12 22
 </template>
13 23
 <script>
24
+import {checkArbitrateRecordBatchs} from '@/api/batchManagement/batchManagement.js'
14 25
 export default {
15
-    props: ["caseVisablearHead","queryParams"],
16
-    dicts: ["manager_type"],
26
+    props: ["caseVisablearHead","queryParams","departmentDoc"],
17 27
     data() {
18 28
         return {
19
-           
29
+            ruleForm: {},
30
+            rules: {
31
+                checkOpinion: [
32
+                    {
33
+                        required: true,
34
+                        message: "审核意见不能为空",
35
+                        trigger: "blur",
36
+                    },
37
+                ],
38
+            }  
20 39
            
21 40
         };
22 41
     },
23 42
     watch: {
24 43
         caseVisablearHead(val) {
25 44
             if (val) {
26
-                this.ruleForm = {};
45
+                // this.ruleForm = {};
27 46
             }
28 47
         }
29 48
     },
@@ -31,7 +50,37 @@ export default {
31 50
 
32 51
     },
33 52
     methods: {
53
+        submitForm(val){
54
+           this.$refs["ruleForm"].validate((valid) => {
55
+               if(valid){
56
+                   if(val==1){
57
+                       let values = {
58
+                           batchNumber:this.departmentDoc.batchNumber,
59
+                           agreeOrNotCheck:1,
60
+                           arbitrateRecord:this.ruleForm
61
+                       }
62
+                      checkArbitrateRecordBatchs(values).then(res=>{
63
+                            this.$modal.msgSuccess("确认成功");
64
+                            this.cancel();
65
+                            this.$emit("getList", this.queryParams);
66
+                      }).catch((err) => {}); 
67
+                   }else if(val==2){
68
+                       let values = {
69
+                           batchNumber:this.departmentDoc.batchNumber,
70
+                           agreeOrNotCheck:2,
71
+                           arbitrateRecord:this.ruleForm
72
+                       }
73
+                      checkArbitrateRecordBatchs(values).then(res=>{
74
+                            this.$modal.msgSuccess("驳回成功");
75
+                            this.cancel();
76
+                            this.$emit("getList", this.queryParams);
77
+                      }).catch((err) => {}); 
78
+                   }
79
+               }
80
+           })
81
+        },
34 82
         cancel() {
83
+            
35 84
             this.$emit("cancelCaseHead");
36 85
         },
37 86
     },

+ 68
- 32
src/views/batchManagement/components/reviewArbitrationMethod.vue Просмотреть файл

@@ -1,43 +1,79 @@
1 1
 <template>
2
-    <div>
3
-        <!-- 批量审核仲裁方式 -->
4
-        <el-dialog title="批量审核仲裁方式" :visible="caseVisableReviewl" @close="cancel" width="600px" center>
5
-            <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>
8
-            </div>
9
-        </el-dialog>
10
-    </div>
2
+  <div>
3
+    <!-- 批量选择仲裁方式页面 -->
4
+    <el-dialog
5
+      title="批量审核仲裁方式"
6
+      :visible="caseVisableReviewl"
7
+      width="500px"
8
+      @close="cancel"
9
+      :destroy-on-close="true"
10
+    >
11
+        <div>
12
+          <el-form :model="form" :rules="rules" ref="form">
13
+            <el-form-item label="选择开庭方式:"  prop="arbitratMethod">
14
+                <el-radio-group v-model="form.arbitratMethod">
15
+                  <el-radio :label=2>书面审理</el-radio>
16
+                  <el-radio :label=1>开庭审理</el-radio>
17
+                </el-radio-group>
18
+            </el-form-item>
19
+          </el-form>
20
+        </div>
21
+        <div slot="footer" class="dialog-footer">
22
+            <el-button type="primary" class="endbutton"  @click="determine">确定</el-button>
23
+            <el-button @click="cancel" class="endbutton">取消</el-button>
24
+        </div>
25
+    </el-dialog>
26
+  </div>
11 27
 </template>
12
-<script>
13
-export default { 
14
-    props: ["caseVisableReviewl","queryParams"],
15
-    data() {
16
-        return {
17
-           
18
-           
19
-        };
20
-    },
21
-    watch: {
22
-        caseVisableReviewl(val) {
23
-            if (val) {
24
-                
25
-            }
26
-        }
27
-    },
28
-    created() {
29 28
 
29
+<script>
30
+import { arbitrateMethod } from "@/api/caseManagement/caseManagement.js";
31
+import {methodBatch} from '@/api/batchManagement/batchManagement.js'
32
+export default {
33
+  name: "showchoosetrialmethodDialog",
34
+  props: ["caseVisableReviewl", "reviewMethod", "queryParams"],
35
+  data() {
36
+    return {
37
+      form:{},
38
+      rules:{
39
+        arbitratMethod: [
40
+            { required: true, message: '请选择开庭方式', trigger: 'change' }
41
+          ]
42
+      }
43
+    };
44
+  },
45
+  methods: {
46
+    // 审核仲裁方式 arbitrateMethod
47
+    determine(val){
48
+       this.$refs["form"].validate((valid) => {
49
+          if (valid) {
50
+             let dates = {
51
+                batchNumber: this.reviewMethod.batchNumber,
52
+                arbitratMethod:this.form.arbitratMethod
53
+            };
54
+            console.log(dates)
55
+          methodBatch(dates).then((res) => {
56
+              this.$modal.msgSuccess("提交成功");
57
+              this.cancel();
58
+              this.$emit("getList", this.queryParams);
59
+            })
60
+            .catch((err) => {});
61
+          } else {
62
+            return false;
63
+          }
64
+        });
30 65
     },
31
-    methods: {
32
-        cancel() {
33
-            this.$emit("cancelCaseReviewl");
34
-        },
66
+    cancel() {
67
+     this.form.arbitratMethod=""
68
+      this.$emit("cancelCaseReviewl");
35 69
     },
70
+  },
36 71
 };
37 72
 </script>
38
-  
73
+
39 74
 <style lang="scss" scoped>
40 75
 ::v-deep .el-dialog {
41 76
   background: #ffffff;
42 77
   border-radius: 20px;
43
-}</style>
78
+}
79
+</style>