fix(企标、计划立项、计划管控): 起草人带入部门
This commit is contained in:
+8
@@ -4390,6 +4390,10 @@ export default {
|
||||
this.drawerTitle = title
|
||||
this.modalShowRoleFlag1 = true
|
||||
},
|
||||
unique (newArr) {
|
||||
const res = new Map();
|
||||
return newArr.filter((newArr) => !res.has(newArr) && res.set(newArr, 1));
|
||||
},
|
||||
checkedRole2 (data) {
|
||||
let idList = ''
|
||||
let nameList = ''
|
||||
@@ -4411,7 +4415,11 @@ export default {
|
||||
this.sarBussionessSearch['QCRBUSS'] = nameList
|
||||
}
|
||||
if (this.drawerTitle === '选择起草人') {
|
||||
const institutionIdList = this.unique(data.map(item => item.institutionId)).join(',')
|
||||
const institutionNameList = this.unique(data.map(item => item.institutionCascade)).join(',')
|
||||
this.$set(this.sarBussionessStandEO, 'QCRBUSS', nameList)
|
||||
this.$set(this.sarBussionessStandEO, 'QCDWId', institutionIdList)
|
||||
this.$set(this.sarBussionessStandEO, 'QCDW', institutionNameList)
|
||||
if (this.sarBussionessStandEO.QCRBUSS) {
|
||||
this.$refs.sarBussionessStandForm.validateField('QCRBUSS')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user