|
|
|
@ -1877,7 +1877,13 @@ |
|
|
|
this.operatorData.bu = this.saveModalData.bu |
|
|
|
this.$set(this.operatorData,'date',this.saveModalData.defectDate) |
|
|
|
if (this.roleList.length > 0) { |
|
|
|
let filterList = this.roleList.filter(item => item.roleName === '机修人员') |
|
|
|
let roleName |
|
|
|
if (this.saveModalData.repairType == '设备维修组'){ |
|
|
|
roleName = '机修' |
|
|
|
} else { |
|
|
|
roleName = '换线组' |
|
|
|
} |
|
|
|
let filterList = this.roleList.filter(item => item.roleName === roleName) |
|
|
|
if (filterList.length > 0) { |
|
|
|
this.operatorData.roleId = filterList[0].roleId |
|
|
|
} else { |
|
|
|
@ -1886,9 +1892,9 @@ |
|
|
|
} else { |
|
|
|
this.operatorData.roleId = '' |
|
|
|
} |
|
|
|
//先清空班次信息 |
|
|
|
// 先清空班次信息 |
|
|
|
this.$set(this.operatorData,'classesCode','') |
|
|
|
//根据bu查询班次信息 |
|
|
|
// 根据bu查询班次信息 |
|
|
|
await this.getClassesList() |
|
|
|
// 查询人员 |
|
|
|
await getOperatorListByOrder(this.operatorData).then(({data}) => { |
|
|
|
|