Explorar el Código

Merge branch 'hhl' of SH-Arbitrate/Arbitrate-Frontend into dev

hhlxayunmei hace 2 años
padre
commit
da4988f593

+ 8
- 0
src/api/caseManagement/caseManagement.js Ver fichero

@@ -18,3 +18,11 @@ export function writtenHear(data, id) {
18 18
     data: id,
19 19
   });
20 20
 }
21
+// 组庭确认
22
+export function pendTralSure(data) {
23
+  return request({
24
+    url: "/caseApplication/pendTralSure",
25
+    method: "post",
26
+    data: data,
27
+  });
28
+}

+ 7
- 7
src/views/caseManagement/caseList.vue Ver fichero

@@ -283,7 +283,9 @@
283 283
     <!-- 组庭审核--改组庭确认 -->
284 284
     <courtReviewDialog
285 285
       :showcourtReview="showcourtReview"
286
+      :form="form"
286 287
       @cancelcourtReview="cancelcourtReview"
288
+      @getcaseApply="getcaseApply"
287 289
     ></courtReviewDialog>
288 290
     <!-- 选择开庭方式 -->
289 291
     <choosetrialmethodDaiog
@@ -303,6 +305,8 @@
303 305
     <!-- 开庭审理 -->
304 306
     <trialincourtDialog
305 307
     :showtrialincourt="showtrialincourt"
308
+    :adjudicatename="adjudicatename"
309
+    :form="form"
306 310
     @canceltrialincourt="canceltrialincourt"
307 311
     ></trialincourtDialog>
308 312
   </div>
@@ -505,13 +509,7 @@ export default {
505 509
     courtconfirmationRow(row) {
506 510
       console.log(row, "组庭确认");
507 511
       this.showcourtReview = true;
508
-    //   this.$modal
509
-    //     .confirm("确定进行组庭吗?")
510
-    //     .then(function () {})
511
-    //     .then(() => {
512
-    //       this.$modal.msgSuccess("组庭成功");
513
-    //     })
514
-    //     .catch((err) => {});
512
+      this.form = row;
515 513
     },
516 514
     // 组庭审核
517 515
     courtreviewRow(row) {
@@ -546,6 +544,8 @@ export default {
546 544
     trialcourtRow(row) {
547 545
       console.log(row, "开庭审理");
548 546
       this.showtrialincourt = true;
547
+      this.form = row;
548
+      this.getInfo(row)
549 549
     },
550 550
     canceltrialincourt() {
551 551
         this.showtrialincourt = false;

+ 40
- 7
src/views/caseManagement/components/courtReviewDialog.vue Ver fichero

@@ -8,10 +8,24 @@
8 8
       @close="cancel"
9 9
       :destroy-on-close="true"
10 10
     >
11
-      <el-form ref="ktrq">
12
-        <el-form-item label="开庭日期:">
11
+      <el-form ref="courtReviewform" :model="courtReviewform">
12
+        <el-form-item
13
+          label="开庭日期:"
14
+          prop="hearDate"
15
+          :rules="[
16
+            {
17
+              required: true,
18
+              message: '请选择开庭日期',
19
+              trigger: 'blur',
20
+            },
21
+          ]"
22
+        >
13 23
           <div class="reviewbox">
14
-            <el-date-picker v-model="value1" type="date" placeholder="选择日期">
24
+            <el-date-picker
25
+              v-model="courtReviewform.hearDate"
26
+              type="datetime"
27
+              placeholder="选择日期"
28
+            >
15 29
             </el-date-picker>
16 30
           </div>
17 31
         </el-form-item>
@@ -25,17 +39,36 @@
25 39
 </template>
26 40
 
27 41
 <script>
42
+import { pendTralSure } from "@/api/caseManagement/caseManagement.js";
43
+import moment from "moment";
28 44
 export default {
29 45
   name: "courtReviewDialog",
30
-  props: ["showcourtReview"],
46
+  props: ["showcourtReview", "form"],
31 47
   data() {
32 48
     return {
33
-      value1: "",
49
+      hearDate: "",
50
+      courtReviewform: {},
34 51
     };
35 52
   },
36 53
   methods: {
37 54
     submitForm() {
38
-      // this.$refs['ktrq'].
55
+      this.$refs["courtReviewform"].validate((valid) => {
56
+        if (valid) {
57
+          this.courtReviewform.hearDate = moment(
58
+            this.courtReviewform.hearDate
59
+          ).format("YYYY-MM-DD HH:mm:ss");
60
+          pendTralSure({
61
+            id: this.form.id,
62
+            hearDate: this.courtReviewform.hearDate,
63
+          })
64
+            .then((res) => {
65
+              this.$modal.msgSuccess("确认成功");
66
+              this.cancel();
67
+              this.$emit("getcaseApply");
68
+            })
69
+            .catch((err) => {});
70
+        }
71
+      });
39 72
     },
40 73
     cancel() {
41 74
       this.$emit("cancelcourtReview");
@@ -45,7 +78,7 @@ export default {
45 78
 </script>
46 79
 
47 80
 <style lang="scss" scoped>
48
-.el-form-item{
81
+.el-form-item {
49 82
   margin-left: 10%;
50 83
 }
51 84
 </style>

+ 164
- 5
src/views/caseManagement/components/trialincourtDialog.vue Ver fichero

@@ -3,14 +3,137 @@
3 3
     <el-dialog
4 4
       title="开庭审理"
5 5
       :visible="showtrialincourt"
6
-      width="500px"
7 6
       @close="cancel"
8 7
       :destroy-on-close="true"
8
+      center
9 9
     >
10
-      开庭审理弹框
10
+      <el-form
11
+        ref="form"
12
+        :model="formData"
13
+        label-width="150px"
14
+        :disabled="true"
15
+      >
16
+        <p>案件信息:</p>
17
+        <el-divider></el-divider>
18
+        <el-row>
19
+          <el-col :span="12">
20
+            <el-form-item label="案件编号:" prop="caseNum">
21
+              <el-input
22
+                v-model="formData.caseNum"
23
+                placeholder="请输入案件编号"
24
+              />
25
+            </el-form-item>
26
+          </el-col>
27
+          <el-col :span="12">
28
+            <el-form-item label="申请人:" prop="applicantName">
29
+              <el-input v-model="adjudicatename.applicantName" />
30
+            </el-form-item>
31
+          </el-col>
32
+          <el-col :span="12">
33
+            <el-form-item label="被申请人:" prop="respondentName">
34
+              <el-input v-model="adjudicatename.respondentName" />
35
+            </el-form-item>
36
+          </el-col>
37
+          <el-col :span="12">
38
+            <el-form-item label="借款开始日期:" prop="loanStartDate">
39
+              <el-date-picker
40
+                v-model="formData.loanStartDate"
41
+                type="datetime"
42
+                placeholder="借款开始日期"
43
+              >
44
+              </el-date-picker>
45
+            </el-form-item>
46
+          </el-col>
47
+          <el-col :span="12">
48
+            <el-form-item label="借款结束日期:" prop="loanEndDate">
49
+              <el-date-picker
50
+                v-model="formData.loanEndDate"
51
+                type="datetime"
52
+                placeholder="借款结束日期"
53
+              >
54
+              </el-date-picker>
55
+            </el-form-item>
56
+          </el-col>
57
+          <el-col :span="12">
58
+            <el-form-item label="案件标的:" prop="caseSubjectAmount">
59
+              <el-input
60
+                v-model="formData.caseSubjectAmount"
61
+                placeholder="请输入案件标的"
62
+              />
63
+            </el-form-item>
64
+          </el-col>
65
+          <!-- <el-col :span="12">
66
+          <el-form-item label="逾期天数:" prop="caseSubjectAmount">
67
+            <el-input
68
+              v-model="formData.caseSubjectAmount"
69
+              placeholder="请输入逾期天数"
70
+            />
71
+          </el-form-item>
72
+        </el-col> -->
73
+          <el-col :span="12">
74
+            <el-form-item label="仲裁费用:" prop="feePayable">
75
+              <el-input
76
+                v-model="adjudicatename.feePayable"
77
+                placeholder="请输入仲裁费用"
78
+              />
79
+            </el-form-item>
80
+          </el-col>
81
+          <el-col :span="12">
82
+            <el-form-item label="申请人主张欠本金:" prop="claimPrinciOwed">
83
+              <el-input
84
+                v-model="formData.claimPrinciOwed"
85
+                placeholder="请输入"
86
+              />
87
+            </el-form-item>
88
+          </el-col>
89
+          <!-- <el-col :span="12">
90
+          <el-form-item label="案件顾问:" prop="claimPrinciOwed">
91
+            <el-input v-model="formData.claimPrinciOwed" placeholder="请输入" />
92
+          </el-form-item>
93
+        </el-col> -->
94
+          <el-col :span="12">
95
+            <el-form-item label="案件状态:" prop="caseStatus">
96
+              <el-input
97
+                v-model="formData.caseStatusName"
98
+                placeholder="请输入"
99
+              />
100
+            </el-form-item>
101
+          </el-col>
102
+          <el-col :span="12">
103
+            <el-form-item label="仲裁员:" prop="arbitratorName">
104
+              <el-input
105
+                v-model="formData.arbitratorName"
106
+                placeholder="请输入"
107
+              />
108
+            </el-form-item>
109
+          </el-col>
110
+
111
+          <el-col :span="12">
112
+            <el-form-item label="开庭日期:" prop="hearDate">
113
+              <el-date-picker
114
+                v-model="adjudicatename.hearDate"
115
+                type="datetime"
116
+                placeholder="开庭日期"
117
+              >
118
+              </el-date-picker>
119
+            </el-form-item>
120
+          </el-col>
121
+        </el-row>
122
+        <el-col :span="24">
123
+          <el-form-item label="案件资料:" prop="claimPrinciOwed">
124
+            <el-input v-model="formData.claimPrinciOwed" placeholder="请输入" />
125
+          </el-form-item>
126
+        </el-col>
127
+      </el-form>
128
+      <el-button>发起会议</el-button>
129
+      <el-button>提交仲裁结果</el-button>
11 130
       <div slot="footer" class="dialog-footer">
12
-        <el-button type="primary" @click="submitForm">提 交</el-button>
13
-        <el-button @click="cancel">取 消</el-button>
131
+        <el-button @click="submitForm" class="endbutton"
132
+          ><span>结束审理</span></el-button
133
+        >
134
+        <el-button @click="cancel" class="endbutton1"
135
+          ><span>取 消</span></el-button
136
+        >
14 137
       </div>
15 138
     </el-dialog>
16 139
   </div>
@@ -18,10 +141,11 @@
18 141
 
19 142
 <script>
20 143
 export default {
21
-  props: ["showtrialincourt"],
144
+  props: ["showtrialincourt", "adjudicatename"],
22 145
   data() {
23 146
     return {
24 147
       // key: value
148
+      formData: {},
25 149
     };
26 150
   },
27 151
   methods: {
@@ -34,4 +158,39 @@ export default {
34 158
 </script>
35 159
 
36 160
 <style lang="scss" scoped>
161
+::v-deep .el-dialog {
162
+  width: 800px;
163
+  background: #ffffff;
164
+  border-radius: 20px;
165
+}
166
+.endbutton {
167
+  width: 154px;
168
+  height: 37px;
169
+  background: #ff5a00;
170
+  border-radius: 19px;
171
+  span {
172
+    width: 65px;
173
+    height: 16px;
174
+    font-size: 16px;
175
+    font-family: Microsoft YaHei;
176
+    font-weight: 400;
177
+    color: #ffffff;
178
+    // line-height: 48px;
179
+  }
180
+}
181
+.endbutton1 {
182
+  width: 154px;
183
+  height: 37px;
184
+  background: #ffffff;
185
+  border-radius: 19px;
186
+  span {
187
+    width: 31px;
188
+    height: 13px;
189
+    font-size: 16px;
190
+    font-family: Microsoft YaHei;
191
+    font-weight: 400;
192
+    color: #959595;
193
+    // line-height: 48px;
194
+  }
195
+}
37 196
 </style>