CRM-合同:完善 TODO

This commit is contained in:
puhui999
2024-02-03 20:47:50 +08:00
parent 4549f8ed3c
commit 6d0e242387
16 changed files with 194 additions and 80 deletions

View File

@ -124,7 +124,7 @@ const openForm = () => {
/** 客户转移 */
const crmTransferFormRef = ref<InstanceType<typeof CrmTransferForm>>() // 客户转移表单 ref
const transfer = () => {
crmTransferFormRef.value?.open('客户转移', customerId.value, CustomerApi.transfer)
crmTransferFormRef.value?.open('客户转移', customerId.value, CustomerApi.transferCustomer)
}
/** 锁定客户 */

View File

@ -208,7 +208,7 @@
<!-- 表单弹窗添加/修改 -->
<CustomerForm ref="formRef" @success="getList" />
<CustomerImportForm ref="customerImportFormRef" @success="getList" />
<CustomerImportForm ref="importFormRef" @success="getList" />
</template>
<script lang="ts" setup>
@ -341,10 +341,9 @@ const handleDelete = async (id: number) => {
}
/** 导入按钮操作 */
// TODO @puhui999importFormRef 简化下
const customerImportFormRef = ref<InstanceType<typeof CustomerImportForm>>()
const importFormRef = ref<InstanceType<typeof CustomerImportForm>>()
const handleImport = () => {
customerImportFormRef.value?.open()
importFormRef.value?.open()
}
/** 导出按钮操作 */