|
|
@@ -2,19 +2,13 @@
|
|
2
|
2
|
<div>
|
|
3
|
3
|
<el-dialog title="秘书确认调解员" :visible="confirmVisable" v-if="confirmVisable" @close="cancel" center
|
|
4
|
4
|
:distroy-on-close="true">
|
|
5
|
|
- <div style="margin-bottom: 20px;">
|
|
6
|
|
- <el-radio-group v-model="confirmFlag">
|
|
7
|
|
- <el-radio :label="1">同意</el-radio>
|
|
8
|
|
- <el-radio :label="2">拒绝</el-radio>
|
|
9
|
|
- </el-radio-group>
|
|
10
|
|
- </div>
|
|
11
|
5
|
<div>
|
|
12
|
|
- <div>
|
|
13
|
|
- <div style="margin-bottom: 20px;">调解员</div>
|
|
|
6
|
+ <div v-if="tableDataFlag">
|
|
|
7
|
+ <div style="margin-bottom: 20px;">选择调解员</div>
|
|
14
|
8
|
</div>
|
|
15
|
|
- <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
|
|
|
9
|
+ <el-table v-if="tableDataFlag" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
|
|
16
|
10
|
@selection-change="handleSelectionChange">
|
|
17
|
|
- <el-table-column type="selection" width="55" v-if="!confirmShow">
|
|
|
11
|
+ <el-table-column type="selection" width="55">
|
|
18
|
12
|
</el-table-column>
|
|
19
|
13
|
<el-table-column prop="mediatorName" label="调解员名称">
|
|
20
|
14
|
</el-table-column>
|
|
|
@@ -25,24 +19,45 @@
|
|
25
|
19
|
<el-table-column prop="completeAmount" label="已办数量">
|
|
26
|
20
|
</el-table-column>
|
|
27
|
21
|
</el-table>
|
|
28
|
|
- <!-- <div>
|
|
29
|
|
- <div style="margin-top: 20px;margin-bottom: 20px;">时间</div>
|
|
30
|
|
- <el-form label-position="right" label-width="80px" :model="formLabelAlign" :disabled="confirmShow">
|
|
31
|
|
- <el-form-item label="时间">
|
|
32
|
|
- <el-date-picker v-model="formLabelAlign.time[0]" type="datetime" placeholder="选择日期时间">
|
|
33
|
|
- </el-date-picker>
|
|
34
|
|
- </el-form-item> -->
|
|
35
|
|
- <!-- 后期需要三个时间 -->
|
|
36
|
|
- <!-- <el-form-item label="时间2">
|
|
37
|
|
- <el-date-picker v-model="formLabelAlign.time[1]" type="datetime" placeholder="选择日期时间">
|
|
38
|
|
- </el-date-picker>
|
|
39
|
|
- </el-form-item>
|
|
40
|
|
- <el-form-item label="时间3">
|
|
41
|
|
- <el-date-picker v-model="formLabelAlign.time[2]" type="datetime" placeholder="选择日期时间">
|
|
42
|
|
- </el-date-picker>
|
|
43
|
|
- </el-form-item> -->
|
|
44
|
|
- <!-- </el-form>
|
|
45
|
|
- </div> -->
|
|
|
22
|
+ <div>
|
|
|
23
|
+ <div style="margin-bottom: 20px;margin-top: 20px;">当前调解员</div>
|
|
|
24
|
+ </div>
|
|
|
25
|
+ <el-table ref="multipleTable" :data="tableDataNow" tooltip-effect="dark" style="width: 100%">
|
|
|
26
|
+ <el-table-column prop="mediatorName" label="调解员名称">
|
|
|
27
|
+ </el-table-column>
|
|
|
28
|
+ <!-- <el-table-column prop="specialty" label="专业">
|
|
|
29
|
+ </el-table-column>
|
|
|
30
|
+ <el-table-column prop="todoAmount" label="待办数量">
|
|
|
31
|
+ </el-table-column>
|
|
|
32
|
+ <el-table-column prop="completeAmount" label="已办数量">
|
|
|
33
|
+ </el-table-column> -->
|
|
|
34
|
+ </el-table>
|
|
|
35
|
+ <div>
|
|
|
36
|
+ <div style="margin-bottom: 20px;margin-top: 20px;">申请人调解员</div>
|
|
|
37
|
+ </div>
|
|
|
38
|
+ <el-table ref="multipleTable" :data="applicantTable" tooltip-effect="dark" style="width: 100%">
|
|
|
39
|
+ <el-table-column prop="mediatorName" label="调解员名称">
|
|
|
40
|
+ </el-table-column>
|
|
|
41
|
+ <!-- <el-table-column prop="specialty" label="专业">
|
|
|
42
|
+ </el-table-column>
|
|
|
43
|
+ <el-table-column prop="todoAmount" label="待办数量">
|
|
|
44
|
+ </el-table-column>
|
|
|
45
|
+ <el-table-column prop="completeAmount" label="已办数量">
|
|
|
46
|
+ </el-table-column> -->
|
|
|
47
|
+ </el-table>
|
|
|
48
|
+ <div>
|
|
|
49
|
+ <div style="margin-bottom: 20px;margin-top: 20px;">被申请人调解员</div>
|
|
|
50
|
+ </div>
|
|
|
51
|
+ <el-table ref="multipleTable" :data="respondentTable" tooltip-effect="dark" style="width: 100%">
|
|
|
52
|
+ <el-table-column prop="mediatorName" label="调解员名称">
|
|
|
53
|
+ </el-table-column>
|
|
|
54
|
+ <!-- <el-table-column prop="specialty" label="专业">
|
|
|
55
|
+ </el-table-column>
|
|
|
56
|
+ <el-table-column prop="todoAmount" label="待办数量">
|
|
|
57
|
+ </el-table-column>
|
|
|
58
|
+ <el-table-column prop="completeAmount" label="已办数量">
|
|
|
59
|
+ </el-table-column> -->
|
|
|
60
|
+ </el-table>
|
|
46
|
61
|
</div>
|
|
47
|
62
|
<div slot="footer" class="dialog-footer">
|
|
48
|
63
|
<el-button @click="cancel" class="endbutton1"><span>取 消</span></el-button>
|
|
|
@@ -61,37 +76,27 @@ export default {
|
|
61
|
76
|
data() {
|
|
62
|
77
|
return {
|
|
63
|
78
|
tableData: [],
|
|
|
79
|
+ tableDataNow: [],
|
|
|
80
|
+ applicantTable: [],
|
|
|
81
|
+ respondentTable: [],
|
|
64
|
82
|
multipleSelection: [],
|
|
|
83
|
+ tableDataFlag: false,
|
|
65
|
84
|
formLabelAlign: {
|
|
66
|
85
|
time: []
|
|
67
|
86
|
},
|
|
68
|
|
- formTimeArr: [],
|
|
69
|
87
|
mediatorArr: [],
|
|
70
|
|
- confirmFlag: 1,
|
|
71
|
|
- confirmShow: true,
|
|
72
|
88
|
};
|
|
73
|
89
|
},
|
|
74
|
90
|
watch: {
|
|
75
|
91
|
confirmVisable(val) {
|
|
76
|
92
|
if (val) {
|
|
77
|
|
- this.confirmFlag = 1;
|
|
78
|
93
|
this.mediatorArr = [];
|
|
79
|
|
- this.formTimeArr = [];
|
|
80
|
|
- this.selectReservationFn({ id: this.confirmData.id })
|
|
81
|
|
- }
|
|
82
|
|
- },
|
|
83
|
|
- confirmFlag(val) {
|
|
84
|
|
- if (val == 1) {
|
|
85
|
|
- this.confirmShow = true;
|
|
86
|
|
- console.log(this.confirmData.id);
|
|
87
|
94
|
this.selectReservationFn({ id: this.confirmData.id })
|
|
88
|
|
- } else {
|
|
89
|
|
- this.confirmShow = false;
|
|
90
|
95
|
listMediator().then(res => {
|
|
91
|
96
|
this.tableData = res.data;
|
|
92
|
97
|
})
|
|
93
|
98
|
}
|
|
94
|
|
- }
|
|
|
99
|
+ },
|
|
95
|
100
|
},
|
|
96
|
101
|
methods: {
|
|
97
|
102
|
cancel() {
|
|
|
@@ -99,8 +104,14 @@ export default {
|
|
99
|
104
|
},
|
|
100
|
105
|
selectReservationFn(data) {
|
|
101
|
106
|
selectReservation(data).then(res => {
|
|
102
|
|
- this.tableData = res.data.mediatorList;
|
|
103
|
|
- this.formLabelAlign.time[0] = res.data.herDates[0];
|
|
|
107
|
+ this.applicantTable = res.data.mediatorList;
|
|
|
108
|
+ this.respondentTable = res.data.resMediatorList;
|
|
|
109
|
+ this.tableDataNow = [{ mediatorId: res.data.mediatorId, mediatorName: res.data.mediatorName }];
|
|
|
110
|
+ if (this.tableDataNow.length > 0) {
|
|
|
111
|
+ this.tableDataFlag = false;
|
|
|
112
|
+ } else {
|
|
|
113
|
+ this.tableDataFlag = true;
|
|
|
114
|
+ }
|
|
104
|
115
|
})
|
|
105
|
116
|
},
|
|
106
|
117
|
/**核实调解员 */
|
|
|
@@ -113,54 +124,62 @@ export default {
|
|
113
|
124
|
},
|
|
114
|
125
|
/**提交选择结果*/
|
|
115
|
126
|
async submitMediator() {
|
|
116
|
|
- if (this.confirmFlag == 1) {
|
|
117
|
|
- let userArr = [];
|
|
118
|
|
- this.tableData.forEach(item => {
|
|
119
|
|
- userArr.push({
|
|
120
|
|
- userId: item.mediatorId,
|
|
121
|
|
- userName: item.mediatorName
|
|
122
|
|
- })
|
|
123
|
|
- })
|
|
|
127
|
+ if (this.multipleSelection.length == 0 && this.tableDataNow.length > 0) {
|
|
124
|
128
|
this.verifyMediatorFn({
|
|
125
|
129
|
id: this.confirmData.id,
|
|
126
|
130
|
caseFlowId: this.confirmData.caseFlowId,
|
|
127
|
|
- userList: userArr,
|
|
128
|
|
- // herDates: this.formLabelAlign.time
|
|
129
|
|
- })
|
|
130
|
|
- } else {
|
|
131
|
|
- if (this.multipleSelection.length > 1) {
|
|
132
|
|
- Message.error('最多选择一名调解员');
|
|
133
|
|
- return
|
|
134
|
|
- } else if (this.multipleSelection.length < 1) {
|
|
135
|
|
- Message.error('至少选择一名调解员');
|
|
136
|
|
- return
|
|
137
|
|
- }
|
|
138
|
|
- if (this.formLabelAlign.time.length < 1) {
|
|
139
|
|
- Message.error('至少选择一个时间');
|
|
140
|
|
- return
|
|
141
|
|
- }
|
|
142
|
|
- this.formLabelAlign.time.forEach(item => {
|
|
143
|
|
- item = moment(
|
|
144
|
|
- item
|
|
145
|
|
- ).format("YYYY-MM-DD HH:mm:ss");
|
|
146
|
|
- this.formTimeArr.push(item)
|
|
147
|
|
- })
|
|
148
|
|
- this.multipleSelection.forEach(item => {
|
|
149
|
|
- this.mediatorArr.push({
|
|
150
|
|
- userId: item.mediatorId,
|
|
151
|
|
- userName: item.mediatorName
|
|
152
|
|
- })
|
|
|
131
|
+ mediatorId: this.tableDataNow[0].mediatorId,
|
|
|
132
|
+ mediatorName: this.tableDataNow[0].mediatorName,
|
|
153
|
133
|
})
|
|
|
134
|
+ } else if (this.multipleSelection.length > 0 && this.tableDataNow.length == 0) {
|
|
154
|
135
|
this.verifyMediatorFn({
|
|
155
|
136
|
id: this.confirmData.id,
|
|
156
|
137
|
caseFlowId: this.confirmData.caseFlowId,
|
|
157
|
|
- userList: this.mediatorArr,
|
|
158
|
|
- // herDates: this.formLabelAlign.time
|
|
|
138
|
+ mediatorId: this.multipleSelection[0].mediatorId,
|
|
|
139
|
+ mediatorName: this.multipleSelection[0].mediatorName,
|
|
159
|
140
|
})
|
|
|
141
|
+ } else if (this.multipleSelection.length > 1 && this.tableDataNow.length == 0) {
|
|
|
142
|
+ Message.error('最多选择一名调解员');
|
|
|
143
|
+ return
|
|
160
|
144
|
}
|
|
|
145
|
+ // if (this.confirmFlag == 1) {
|
|
|
146
|
+ // let userArr = [];
|
|
|
147
|
+ // this.tableData.forEach(item => {
|
|
|
148
|
+ // userArr.push({
|
|
|
149
|
+ // userId: item.mediatorId,
|
|
|
150
|
+ // userName: item.mediatorName
|
|
|
151
|
+ // })
|
|
|
152
|
+ // })
|
|
|
153
|
+ // this.verifyMediatorFn({
|
|
|
154
|
+ // id: this.confirmData.id,
|
|
|
155
|
+ // caseFlowId: this.confirmData.caseFlowId,
|
|
|
156
|
+ // userList: userArr,
|
|
|
157
|
+ // // herDates: this.formLabelAlign.time
|
|
|
158
|
+ // })
|
|
|
159
|
+ // } else {
|
|
|
160
|
+ // if (this.multipleSelection.length > 1) {
|
|
|
161
|
+ // Message.error('最多选择一名调解员');
|
|
|
162
|
+ // return
|
|
|
163
|
+ // } else if (this.multipleSelection.length < 1) {
|
|
|
164
|
+ // Message.error('至少选择一名调解员');
|
|
|
165
|
+ // return
|
|
|
166
|
+ // }
|
|
|
167
|
+ // this.multipleSelection.forEach(item => {
|
|
|
168
|
+ // this.mediatorArr.push({
|
|
|
169
|
+ // userId: item.mediatorId,
|
|
|
170
|
+ // userName: item.mediatorName
|
|
|
171
|
+ // })
|
|
|
172
|
+ // })
|
|
|
173
|
+ // this.verifyMediatorFn({
|
|
|
174
|
+ // id: this.confirmData.id,
|
|
|
175
|
+ // caseFlowId: this.confirmData.caseFlowId,
|
|
|
176
|
+ // userList: this.mediatorArr,
|
|
|
177
|
+ // })
|
|
|
178
|
+ // }
|
|
161
|
179
|
},
|
|
162
|
180
|
handleSelectionChange(val) {
|
|
163
|
181
|
this.multipleSelection = val;
|
|
|
182
|
+ console.log(val, "PPPPPPPPPPPPPPPPPPPP");
|
|
164
|
183
|
}
|
|
165
|
184
|
},
|
|
166
|
185
|
};
|