|
|
@@ -1,42 +1,57 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<div>
|
|
3
|
3
|
<!-- 组庭确认页面 -->
|
|
4
|
|
- <el-dialog
|
|
5
|
|
- title="组庭确认"
|
|
6
|
|
- :visible="showcourtReview"
|
|
7
|
|
- @close="cancel"
|
|
8
|
|
- :destroy-on-close="true"
|
|
9
|
|
- center
|
|
10
|
|
- >
|
|
|
4
|
+ <el-dialog title="组庭确认" :visible="showcourtReview" @close="cancel" :destroy-on-close="true" center>
|
|
11
|
5
|
<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
|
|
- >
|
|
|
6
|
+ <el-form-item label="开庭日期:" prop="hearDate" :rules="[
|
|
|
7
|
+ {
|
|
|
8
|
+ required: true,
|
|
|
9
|
+ message: '请选择开庭日期',
|
|
|
10
|
+ trigger: 'blur',
|
|
|
11
|
+ },
|
|
|
12
|
+ ]">
|
|
23
|
13
|
<div class="reviewbox">
|
|
24
|
|
- <el-date-picker
|
|
25
|
|
- v-model="courtReviewform.hearDate"
|
|
26
|
|
- type="datetime"
|
|
27
|
|
- placeholder="选择日期"
|
|
28
|
|
- >
|
|
|
14
|
+ <el-date-picker v-model="courtReviewform.hearDate" :picker-options="pickerOptions" type="datetime"
|
|
|
15
|
+ placeholder="选择日期">
|
|
29
|
16
|
</el-date-picker>
|
|
30
|
17
|
</div>
|
|
31
|
18
|
</el-form-item>
|
|
|
19
|
+ <el-form-item label="是否同意组庭:">
|
|
|
20
|
+ <el-radio-group v-model="isAgreePendTral">
|
|
|
21
|
+ <el-radio :label="1">是</el-radio>
|
|
|
22
|
+ <el-radio :label="0">否</el-radio>
|
|
|
23
|
+ </el-radio-group>
|
|
|
24
|
+ </el-form-item>
|
|
32
|
25
|
</el-form>
|
|
|
26
|
+ <el-tag type="warning" v-if="noArbitrator">当前案件未指定仲裁员,请先指定仲裁员!</el-tag>
|
|
|
27
|
+ <p></p>
|
|
|
28
|
+ <!-- <el-form ref="form"> -->
|
|
|
29
|
+ <!-- v-if="isAgreePendTral == 0 || noArbitrator" -->
|
|
|
30
|
+ <div style="display: inline-flex; margin-bottom: 8px">
|
|
|
31
|
+ <div class="infoIcon"></div>
|
|
|
32
|
+ <div>
|
|
|
33
|
+ <span v-if="isAgreePendTral == 1">当前案件</span>仲裁员<span v-if="isAgreePendTral !== 1">信息列表</span>
|
|
|
34
|
+ </div>
|
|
|
35
|
+ </div>
|
|
|
36
|
+ <div v-if="isAgreePendTral == 1" class="nowarbitrator">
|
|
|
37
|
+ <el-tag size="medium">
|
|
|
38
|
+ {{ form.arbitratorName }}
|
|
|
39
|
+ </el-tag>
|
|
|
40
|
+ </div>
|
|
|
41
|
+ <div v-if="noArbitrator || isAgreePendTral == 0">
|
|
|
42
|
+ <el-table :data="dataList" style="width: 100%" @selection-change="handleSelectionChange">
|
|
|
43
|
+ <el-table-column type="selection" width="55" v-if="noArbitrator || isAgreePendTral == 0">
|
|
|
44
|
+ </el-table-column>
|
|
|
45
|
+ <el-table-column label="仲裁员姓名" align="center" prop="nickName" :show-overflow-tooltip="true" />
|
|
|
46
|
+ <el-table-column label="介绍" align="center" prop="remark" :show-overflow-tooltip="true" />
|
|
|
47
|
+ </el-table>
|
|
|
48
|
+ <pagination v-show="total > 0" :total="total" :page.sync="queryParams1.pageNum"
|
|
|
49
|
+ :limit.sync="queryParams1.pageSize" @pagination="getarbitrAtor" v-if="isAgreePendTral == 0" />
|
|
|
50
|
+ </div>
|
|
33
|
51
|
<div slot="footer" class="dialog-footer">
|
|
34
|
|
- <el-button type="primary" @click="submitForm" class="endbutton"
|
|
35
|
|
- ><span>确 定</span>
|
|
|
52
|
+ <el-button type="primary" @click="submitForm" class="endbutton"><span>确 定</span>
|
|
36
|
53
|
</el-button>
|
|
37
|
|
- <el-button @click="cancel" class="endbutton1"
|
|
38
|
|
- ><span> 取 消</span></el-button
|
|
39
|
|
- >
|
|
|
54
|
+ <el-button @click="cancel" class="endbutton1"><span> 取 消</span></el-button>
|
|
40
|
55
|
</div>
|
|
41
|
56
|
</el-dialog>
|
|
42
|
57
|
</div>
|
|
|
@@ -44,6 +59,7 @@
|
|
44
|
59
|
|
|
45
|
60
|
<script>
|
|
46
|
61
|
import { pendTralSure } from "@/api/caseManagement/caseManagement.js";
|
|
|
62
|
+import { arbitrAtor, pendTralCheck } from "@/api/formationCourt/formationCourt";
|
|
47
|
63
|
import moment from "moment";
|
|
48
|
64
|
export default {
|
|
49
|
65
|
name: "courtReviewDialog",
|
|
|
@@ -52,25 +68,93 @@ export default {
|
|
52
|
68
|
return {
|
|
53
|
69
|
hearDate: "",
|
|
54
|
70
|
courtReviewform: {},
|
|
|
71
|
+ noArbitrator: false,
|
|
|
72
|
+ isAgreePendTral: 1,
|
|
|
73
|
+ total: 0,
|
|
|
74
|
+ queryParams1: {
|
|
|
75
|
+ pageNum: 1,
|
|
|
76
|
+ pageSize: 10,
|
|
|
77
|
+ },
|
|
|
78
|
+ paramsdata: {},
|
|
|
79
|
+ pickerOptions: {
|
|
|
80
|
+ disabledDate(time) {
|
|
|
81
|
+ return time.getTime() < Date.now() - 8.64e7;
|
|
|
82
|
+ }
|
|
|
83
|
+ },
|
|
55
|
84
|
};
|
|
56
|
85
|
},
|
|
|
86
|
+ created() {
|
|
|
87
|
+ this.getarbitrAtor();
|
|
|
88
|
+ },
|
|
|
89
|
+ watch: {
|
|
|
90
|
+ showformateCourt(val) {
|
|
|
91
|
+ if (val) {
|
|
|
92
|
+ this.isAgreePendTral = 1;
|
|
|
93
|
+ }
|
|
|
94
|
+ },
|
|
|
95
|
+ form: {
|
|
|
96
|
+ handler(val) {
|
|
|
97
|
+ if (val.arbitratorName == null) {
|
|
|
98
|
+ this.noArbitrator = true;
|
|
|
99
|
+ } else {
|
|
|
100
|
+ this.noArbitrator = false;
|
|
|
101
|
+ }
|
|
|
102
|
+ },
|
|
|
103
|
+ },
|
|
|
104
|
+ },
|
|
57
|
105
|
methods: {
|
|
|
106
|
+ // 获取仲裁员信息
|
|
|
107
|
+ getarbitrAtor() {
|
|
|
108
|
+ arbitrAtor({}).then((res) => {
|
|
|
109
|
+ this.dataList = res.rows;
|
|
|
110
|
+ this.total = res.total;
|
|
|
111
|
+ });
|
|
|
112
|
+ },
|
|
|
113
|
+ // 勾选仲裁员
|
|
|
114
|
+ handleSelectionChange(val) {
|
|
|
115
|
+ this.arbitrators = [];
|
|
|
116
|
+ val.forEach((item) => {
|
|
|
117
|
+ this.arbitrators.push({
|
|
|
118
|
+ id: item.userId,
|
|
|
119
|
+ arbitratorName: item.nickName,
|
|
|
120
|
+ });
|
|
|
121
|
+ });
|
|
|
122
|
+ },
|
|
58
|
123
|
submitForm() {
|
|
|
124
|
+ if (this.noArbitrator) {
|
|
|
125
|
+ this.paramsdata = {
|
|
|
126
|
+ id: this.form.id,
|
|
|
127
|
+ arbitrators: this.arbitrators,
|
|
|
128
|
+ };
|
|
|
129
|
+ } else {
|
|
|
130
|
+ if (this.isAgreePendTral == 0) {
|
|
|
131
|
+ this.paramsdata = {
|
|
|
132
|
+ isAgreePendTral: 0,
|
|
|
133
|
+ id: this.form.id,
|
|
|
134
|
+ arbitrators: this.arbitrators,
|
|
|
135
|
+ };
|
|
|
136
|
+ } else {
|
|
|
137
|
+ this.paramsdata = {
|
|
|
138
|
+ isAgreePendTral: 1,
|
|
|
139
|
+ id: this.form.id,
|
|
|
140
|
+ };
|
|
|
141
|
+ }
|
|
|
142
|
+ }
|
|
59
|
143
|
this.$refs["courtReviewform"].validate((valid) => {
|
|
60
|
144
|
if (valid) {
|
|
61
|
145
|
this.courtReviewform.hearDate = moment(
|
|
62
|
146
|
this.courtReviewform.hearDate
|
|
63
|
147
|
).format("YYYY-MM-DD HH:mm:ss");
|
|
64
|
|
- pendTralSure({
|
|
65
|
|
- id: this.form.id,
|
|
66
|
|
- hearDate: this.courtReviewform.hearDate,
|
|
67
|
|
- })
|
|
|
148
|
+ this.paramsdata.hearDate = this.courtReviewform.hearDate;
|
|
|
149
|
+ pendTralSure(
|
|
|
150
|
+ this.paramsdata
|
|
|
151
|
+ )
|
|
68
|
152
|
.then((res) => {
|
|
69
|
153
|
this.$modal.msgSuccess("确认成功");
|
|
70
|
154
|
this.cancel();
|
|
71
|
|
- this.$emit("getcaseApply",this.queryParams);
|
|
|
155
|
+ this.$emit("getcaseApply", this.queryParams);
|
|
72
|
156
|
})
|
|
73
|
|
- .catch((err) => {});
|
|
|
157
|
+ .catch((err) => { });
|
|
74
|
158
|
}
|
|
75
|
159
|
});
|
|
76
|
160
|
},
|
|
|
@@ -83,19 +167,20 @@ export default {
|
|
83
|
167
|
|
|
84
|
168
|
<style lang="scss" scoped>
|
|
85
|
169
|
::v-deep .el-dialog {
|
|
86
|
|
- width: 422px;
|
|
87
|
|
- height: 245px;
|
|
88
|
170
|
background: #ffffff;
|
|
89
|
171
|
border-radius: 20px;
|
|
90
|
172
|
}
|
|
|
173
|
+
|
|
91
|
174
|
.el-form-item {
|
|
92
|
175
|
margin-left: 10%;
|
|
93
|
176
|
}
|
|
|
177
|
+
|
|
94
|
178
|
.endbutton {
|
|
95
|
179
|
width: 124px;
|
|
96
|
180
|
height: 37px;
|
|
97
|
181
|
background: #0072ff;
|
|
98
|
182
|
border-radius: 19px;
|
|
|
183
|
+
|
|
99
|
184
|
span {
|
|
100
|
185
|
width: 32px;
|
|
101
|
186
|
height: 15px;
|
|
|
@@ -106,12 +191,14 @@ export default {
|
|
106
|
191
|
// line-height: 48px;
|
|
107
|
192
|
}
|
|
108
|
193
|
}
|
|
|
194
|
+
|
|
109
|
195
|
.endbutton1 {
|
|
110
|
196
|
width: 124px;
|
|
111
|
197
|
height: 37px;
|
|
112
|
198
|
background: #ffffff;
|
|
113
|
199
|
border: 1px solid #d0d0d0;
|
|
114
|
200
|
border-radius: 19px;
|
|
|
201
|
+
|
|
115
|
202
|
span {
|
|
116
|
203
|
width: 31px;
|
|
117
|
204
|
height: 13px;
|
|
|
@@ -122,6 +209,7 @@ export default {
|
|
122
|
209
|
// line-height: 48px;
|
|
123
|
210
|
}
|
|
124
|
211
|
}
|
|
|
212
|
+
|
|
125
|
213
|
::v-deep .el-form-item__error {
|
|
126
|
214
|
left: 90px;
|
|
127
|
215
|
}
|