CRM:完善转移

This commit is contained in:
puhui999 2024-03-09 17:57:24 +08:00
parent 2ed41ab164
commit d21c060903
2 changed files with 11 additions and 5 deletions

View File

@ -15,9 +15,9 @@ export interface PermissionVO {
} }
export interface TransferReqVO { export interface TransferReqVO {
bizId: number // 模块编号 id: number // 模块编号
newOwnerUserId: number // 新负责人的用户编号 newOwnerUserId: number // 新负责人的用户编号
oldOwnerPermissionLevel: number // 老负责人加入团队后的权限级别 oldOwnerPermissionLevel?: number // 老负责人加入团队后的权限级别
toBizTypes?: number[] // 转移客户时,需要额外有【联系人】【商机】【合同】的 checkbox 选择 toBizTypes?: number[] // 转移客户时,需要额外有【联系人】【商机】【合同】的 checkbox 选择
} }

View File

@ -19,7 +19,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="老负责人"> <el-form-item label="老负责人">
<el-radio-group v-model="oldOwnerHandler" @change="formData.oldOwnerPermissionLevel"> <el-radio-group v-model="oldOwnerHandler" @change="handleOwnerChange">
<el-radio :label="false" size="large">移除</el-radio> <el-radio :label="false" size="large">移除</el-radio>
<el-radio :label="true" size="large">加入团队</el-radio> <el-radio :label="true" size="large">加入团队</el-radio>
</el-radio-group> </el-radio-group>
@ -86,10 +86,16 @@ const open = async (bizId: number) => {
dialogVisible.value = true dialogVisible.value = true
dialogTitle.value = getDialogTitle() dialogTitle.value = getDialogTitle()
resetForm() resetForm()
formData.value.bizId = bizId formData.value.id = bizId
} }
defineExpose({ open }) // open defineExpose({ open }) // open
//
const handleOwnerChange = (val: boolean) => {
if (!val) {
// oldOwnerPermissionLevel
formData.value.oldOwnerPermissionLevel = undefined
}
}
/** 提交表单 */ /** 提交表单 */
const emit = defineEmits(['success']) // success const emit = defineEmits(['success']) // success
const submitForm = async () => { const submitForm = async () => {