|
@@ -44,6 +44,7 @@
|
|
|
import { ref } from 'vue';
|
|
|
import { useLifecycle } from '@hooks/useCommon.js';
|
|
|
import { TRANSFER_CUSTOMERS } from '@hooks/useApi'
|
|
|
+import { showConfirmDialog } from 'vant';
|
|
|
import requests from "@common/requests";
|
|
|
import useShowToast from '@hooks/useToast'
|
|
|
import useInfoStore from '@store/useInfoStore'
|
|
@@ -81,12 +82,12 @@ function confirmTransfer() {
|
|
|
function claimAndClaim() {
|
|
|
showConfirmDialog({
|
|
|
title: '认领客户',
|
|
|
- message: `确定认领【${props.info.name}】客户吗?`,
|
|
|
+ message: `确定认领【${props.info.customName}】客户吗?`,
|
|
|
}).then(() => {
|
|
|
requests.post(TRANSFER_CUSTOMERS, { ids: props.info.id, inchargerId: userInfo.userInfo.id }).then((res) => {
|
|
|
toastSuccess('认领成功')
|
|
|
listReloadData()
|
|
|
- props.info.inchargerName = userInfo.userInfo.name
|
|
|
+ props.info.inchargerName = userInfo.userInfo.customName
|
|
|
showDialog.value = false
|
|
|
})
|
|
|
})
|