|
|
@ -34,6 +34,7 @@ export default { |
|
|
span:3, |
|
|
span:3, |
|
|
saveSchedulingFlag: false, |
|
|
saveSchedulingFlag: false, |
|
|
fastAddFlag: false, |
|
|
fastAddFlag: false, |
|
|
|
|
|
recordAddPeoPleFlag : false, |
|
|
insertSchedulingFlag: false, |
|
|
insertSchedulingFlag: false, |
|
|
detailData: { |
|
|
detailData: { |
|
|
site: '', |
|
|
site: '', |
|
|
@ -276,12 +277,17 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getPeopleList(){ |
|
|
getPeopleList(){ |
|
|
this.insertSchedulingFlag = true |
|
|
this.insertSchedulingFlag = true |
|
|
|
|
|
this.recordAddPeoPleFlag = true |
|
|
this.getOperatorList() |
|
|
this.getOperatorList() |
|
|
this.fastAddFlag = true |
|
|
this.fastAddFlag = true |
|
|
}, |
|
|
}, |
|
|
// 获取机修人员列表 |
|
|
// 获取机修人员列表 |
|
|
async getOperatorList () { |
|
|
async getOperatorList () { |
|
|
this.detailData.bu = '2_01-Label' |
|
|
|
|
|
|
|
|
if (this.recordAddPeoPleFlag){ |
|
|
|
|
|
this.detailData.bu = this.queryLineRow.site + '_' + this.queryLineRow.buNo |
|
|
|
|
|
} else { |
|
|
|
|
|
this.detailData.bu = this.saveData.bu |
|
|
|
|
|
} |
|
|
//默认查询 角色:机修人员 |
|
|
//默认查询 角色:机修人员 |
|
|
let filterList = this.roleList.filter(item => item.roleName === '机修人员') |
|
|
let filterList = this.roleList.filter(item => item.roleName === '机修人员') |
|
|
if (filterList.length > 0) { |
|
|
if (filterList.length > 0) { |
|
|
@ -506,6 +512,7 @@ export default { |
|
|
this.peopleList = [] |
|
|
this.peopleList = [] |
|
|
this.classesList2 = [] |
|
|
this.classesList2 = [] |
|
|
this.saveSchedulingFlag = true; |
|
|
this.saveSchedulingFlag = true; |
|
|
|
|
|
this.recordAddPeoPleFlag = false |
|
|
}, |
|
|
}, |
|
|
async saveHeaderFunction(){ |
|
|
async saveHeaderFunction(){ |
|
|
if (this.saveData.bu == null || this.saveData.bu === ''){ |
|
|
if (this.saveData.bu == null || this.saveData.bu === ''){ |
|
|
@ -559,6 +566,10 @@ export default { |
|
|
this.handleQuery(); |
|
|
this.handleQuery(); |
|
|
}, |
|
|
}, |
|
|
addPeopleModal () { |
|
|
addPeopleModal () { |
|
|
|
|
|
if (this.saveData.bu == null || this.saveData.bu == ''){ |
|
|
|
|
|
this.$message.warning("请先选择BU") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
this.insertSchedulingFlag = false |
|
|
this.insertSchedulingFlag = false |
|
|
this.itemSelections1 = null |
|
|
this.itemSelections1 = null |
|
|
this.itemSelections2 = null |
|
|
this.itemSelections2 = null |
|
|
|