| | |
| | | import type { CrmCustomerApi } from '#/api/crm/customer'; |
| | | |
| | | import { useRouter } from 'vue-router'; |
| | | import { erpNumberFormatter } from '@vben/utils'; |
| | | |
| | | import { Button } from 'ant-design-vue'; |
| | | |
| | | import { useVbenVxeGrid } from '#/adapter/vxe-table'; |
| | | import { getCustomerPage } from '#/api/crm/customer'; |
| | | import { getPutPoolRemindCustomerPage } from '#/api/crm/customer'; |
| | | import { useGridColumns } from '#/views/crm/customer/data'; |
| | | |
| | | import { SCENE_TYPES } from '../data'; |
| | |
| | | proxyConfig: { |
| | | ajax: { |
| | | query: async ({ page }, formValues) => { |
| | | return await getCustomerPage({ |
| | | return await getPutPoolRemindCustomerPage({ |
| | | pageNo: page.currentPage, |
| | | pageSize: page.pageSize, |
| | | pool: true, // 固定 公海参数为 true |
| | | ...formValues, |
| | | }); |
| | | }, |
| | |
| | | <template #name="{ row }"> |
| | | <Button type="link" @click="handleDetail(row)">{{ row.name }}</Button> |
| | | </template> |
| | | <template #contracts="{ row }"> |
| | | <span v-if="row.contractCount">{{ row.contractCount }} 份 · ¥{{ erpNumberFormatter(row.contractTotalPrice, 2) }}</span> |
| | | <span v-else>—</span> |
| | | </template> |
| | | <template #actions="{ row }"> |
| | | <Button type="link" @click="handleDetail(row)">查看详情</Button> |
| | | </template> |