|
|
@@ -31,7 +31,7 @@
|
|
31
|
31
|
</el-form-item>
|
|
32
|
32
|
<el-form-item label="流转部门">
|
|
33
|
33
|
<el-row v-for="(item, index) in autolist" :key="index" style="margin-bottom: 10px;">
|
|
34
|
|
- <el-select v-model="item.autoyq" clearable placeholder="请选择院区" @change="(autoyq)=>changeyq(autoyq,index)">
|
|
|
34
|
+ <el-select v-model="item.autoyq" clearable placeholder="请选择院区" @change="(autoyq)=>changeyq(autoyq,index)" @clear="clearyq(autoyq,index)">
|
|
35
|
35
|
<el-option label="全部" value="0"/>
|
|
36
|
36
|
<el-option v-for="(itemval, index) in yqarr" :key="itemval.T_Woid" :label="itemval.T_Woname" :value="itemval.T_Woid.toString()"/>
|
|
37
|
37
|
</el-select>
|
|
|
@@ -169,7 +169,8 @@ export default {
|
|
169
|
169
|
orderData: [],
|
|
170
|
170
|
deptidArr: [],
|
|
171
|
171
|
yqarr: [],
|
|
172
|
|
- loading: false
|
|
|
172
|
+ loading: false,
|
|
|
173
|
+ yqdata:[]
|
|
173
|
174
|
}
|
|
174
|
175
|
},
|
|
175
|
176
|
created() {
|
|
|
@@ -218,15 +219,20 @@ export default {
|
|
218
|
219
|
})
|
|
219
|
220
|
},
|
|
220
|
221
|
changeyq(data, index) {
|
|
221
|
|
- var yqdata = []
|
|
|
222
|
+ console.log('changeyq',data, index)
|
|
|
223
|
+ this.yqdata = []
|
|
222
|
224
|
for (var i = 0; i < this.autolist.length - 1; i++) {
|
|
223
|
|
- yqdata.push(this.autolist[i].autoyq)
|
|
|
225
|
+ this.yqdata.push(this.autolist[i].autoyq)
|
|
224
|
226
|
}
|
|
225
|
|
- if (yqdata.indexOf(data) >= 0) {
|
|
|
227
|
+ if (this.yqdata.indexOf(data) >= 0) {
|
|
226
|
228
|
this.$message.warning('该院区已存在,请重新选择院区')
|
|
227
|
229
|
this.autolist[index].autoyq = ''
|
|
228
|
230
|
}
|
|
229
|
231
|
},
|
|
|
232
|
+ clearyq(data, index){
|
|
|
233
|
+ console.log('clearyq',data, index)
|
|
|
234
|
+ this.yqdata[index].autoyq = ''
|
|
|
235
|
+ },
|
|
230
|
236
|
handleChangeDept(data, index) {
|
|
231
|
237
|
this.autolist[index].personarr = []
|
|
232
|
238
|
this.autolist[index].autousercode = ''
|