|
@@ -128,6 +128,7 @@ export default {
|
|
|
visible: false,
|
|
|
chooseType: null,
|
|
|
roleType: null,
|
|
|
+ deptId: null,
|
|
|
roleUserMap: [],
|
|
|
// 下拉框map
|
|
|
reportLeaderId: null,
|
|
@@ -171,6 +172,7 @@ export default {
|
|
|
}
|
|
|
this.model = record
|
|
|
this.roleType = record.roleType
|
|
|
+ this.deptId = record.repairDeptId
|
|
|
const params = { roleType: record.roleType, deptId: record.repairDeptId, queryType: queryType }
|
|
|
this.getUsers(params)
|
|
|
const { form: { setFieldsValue } } = this
|
|
@@ -192,6 +194,13 @@ export default {
|
|
|
},
|
|
|
changeReportFlag (value) {
|
|
|
this.model.reportHandleType = value
|
|
|
+ if (value === 3) { // 上报
|
|
|
+ const params = { roleType: this.roleType, queryType: 1 }
|
|
|
+ this.getUsers(params)
|
|
|
+ } else if (value === 1) { // 派工
|
|
|
+ const params = { roleType: this.roleType, deptId: this.deptId, queryType: 2 }
|
|
|
+ this.getUsers(params)
|
|
|
+ }
|
|
|
},
|
|
|
save () {
|
|
|
const { form: { validateFieldsAndScroll } } = this
|