|
|
@ -1877,7 +1877,13 @@ |
|
|
this.operatorData.bu = this.saveModalData.bu |
|
|
this.operatorData.bu = this.saveModalData.bu |
|
|
this.$set(this.operatorData,'date',this.saveModalData.defectDate) |
|
|
this.$set(this.operatorData,'date',this.saveModalData.defectDate) |
|
|
if (this.roleList.length > 0) { |
|
|
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) { |
|
|
if (filterList.length > 0) { |
|
|
this.operatorData.roleId = filterList[0].roleId |
|
|
this.operatorData.roleId = filterList[0].roleId |
|
|
} else { |
|
|
} else { |
|
|
|