|
|
|
@ -1089,7 +1089,9 @@ const queryData = async (type: string, id?: number) => {
|
|
|
|
|
compositionSelectList.value = compositionData.list
|
|
|
|
|
|
|
|
|
|
// 绑定默认部门与业务员
|
|
|
|
|
formData.value.businessMan = useUserStore().getUser.id // 当前登录的编码
|
|
|
|
|
if(!formData.value.businessMan){
|
|
|
|
|
formData.value.businessMan = useUserStore().getUser.id // 当前登录的编码
|
|
|
|
|
}
|
|
|
|
|
const userProfile = await getUserProfile(formData.value.businessMan)
|
|
|
|
|
if (userProfile.dept) {
|
|
|
|
|
formData.value.businessDeptId = userProfile.dept.id
|
|
|
|
|