|
@@ -68,10 +68,10 @@ export default defineComponent({
|
|
|
const that = (getCurrentInstance() as ComponentInternalInstance).appContext.config.globalProperties
|
|
|
const state = reactive({
|
|
|
cusDetail: <any>{},
|
|
|
- peopleList: {},
|
|
|
+ peopleList: [],
|
|
|
selectPeopleList: [],
|
|
|
selectUserId: [],
|
|
|
- loadingPeople: false
|
|
|
+ loadingPeople: false,
|
|
|
})
|
|
|
const ref_form = ref()
|
|
|
watch(() => props.show, (n) => {
|
|
@@ -92,7 +92,12 @@ export default defineComponent({
|
|
|
state.peopleList = []
|
|
|
that.$api.getSeatDutyUnitPersonList({externalId: store.state.dictionary.deptMap.get(state.cusDetail.deptId).externalId}).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
- state.peopleList = res.data.filter(v => !state.selectUserId.includes(v.id))
|
|
|
+ state.peopleList = [...res.data.filter(v => !state.selectUserId.includes(v.id)), ...props.transfer.diffPeoples.map(v => {
|
|
|
+ v.phoneNumber = v.linkPhone
|
|
|
+ v.displayName = v.name
|
|
|
+ v.id = v.accountId
|
|
|
+ return v
|
|
|
+ })]
|
|
|
} else {
|
|
|
ElMessage.error(res.message)
|
|
|
}
|