|
|
|
@ -9,10 +9,10 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #toolbar> |
|
|
|
<div style="width: 100%; padding: 2px" class="flex-row-center-end"> |
|
|
|
<!-- <RadioGroup button-style="solid" v-model:value="radioVal" @change="handleRadioChange"> |
|
|
|
<div style="width: 100%; padding: 2px" class="flex-row-center-space"> |
|
|
|
<RadioGroup button-style="solid" v-model:value="radioVal" @change="handleRadioChange"> |
|
|
|
<RadioButton v-for="item in clueStatusList" :key="item.value" :value="item.value">{{item.label}}</RadioButton> |
|
|
|
</RadioGroup> --> |
|
|
|
</RadioGroup> |
|
|
|
<div class="flex-row-center-start"> |
|
|
|
<Button type="primary" danger :disabled="datingClueIdList.length == 0" @click="handleModal(null)">重新分配</Button> |
|
|
|
</div> |
|
|
|
@ -49,6 +49,7 @@ |
|
|
|
import { Avatar, Card, Image, Button, InputNumber, Popconfirm, Checkbox, Pagination } from 'ant-design-vue' |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
import { useMessage } from '/@/hooks/web/useMessage' |
|
|
|
import { formatToDate } from '/@/utils/dateUtil' |
|
|
|
import { tableColumns, tableFormSchema } from './data' |
|
|
|
import { useModal } from '/@/components/Modal' |
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table' |
|
|
|
@ -63,10 +64,20 @@ |
|
|
|
const verifier = ref<any>('') |
|
|
|
|
|
|
|
const clueStatusList = [ |
|
|
|
{ label: '待分配', value: 1 }, |
|
|
|
{ label: '跟进中', value: 2 }, |
|
|
|
{ label: '公海线索', value: 3 }, |
|
|
|
{ label: '全部', value: '' }, |
|
|
|
{ label: '空号', value: -3 }, |
|
|
|
{ label: '资料信息无效', value: -2 }, |
|
|
|
{ label: '公海线索', value: -1 }, |
|
|
|
{ label: '新线索', value: 0 }, |
|
|
|
{ label: '未接通,待跟进', value: 1 }, |
|
|
|
{ label: '已接通,未明确拒绝', value: 2 }, |
|
|
|
{ label: '已接通,明确拒绝', value: 3 }, |
|
|
|
{ label: '已接通,沟通有效', value: 4 }, |
|
|
|
{ label: '确定到店时间', value: 5 }, |
|
|
|
{ label: '未到店', value: 6 }, |
|
|
|
{ label: '已到店,未成单', value: 7 }, |
|
|
|
{ label: '已成单', value: 8 }, |
|
|
|
{ label: '复邀', value: 9 }, |
|
|
|
] |
|
|
|
|
|
|
|
const ageModel = reactive({ |
|
|
|
@ -107,7 +118,7 @@ |
|
|
|
schemas: tableFormSchema, |
|
|
|
}, |
|
|
|
beforeFetch: (arg) => { |
|
|
|
const { createTime, followTime } = arg |
|
|
|
const { createTime, followTime, allocateTime } = arg |
|
|
|
if (createTime) { |
|
|
|
arg.creatTimeFrom = moment(createTime[0]).format('YYYY-MM-DD 00:00:00') |
|
|
|
arg.creatTimeTo = moment(createTime[1]).format('YYYY-MM-DD 23:59:59') |
|
|
|
@ -118,9 +129,14 @@ |
|
|
|
arg.finalFollowTimeTo = moment(followTime[1]).format('YYYY-MM-DD 23:59:59') |
|
|
|
delete arg.followTime |
|
|
|
} |
|
|
|
if (allocateTime) { |
|
|
|
arg.allocateVerifierDateFrom = formatToDate(allocateTime[0]) |
|
|
|
arg.allocateVerifierDateTo = formatToDate(allocateTime[1]) |
|
|
|
delete arg.allocateTime |
|
|
|
} |
|
|
|
arg.minimumAge = ageModel.minAge |
|
|
|
arg.maximumAge = ageModel.maxAge |
|
|
|
arg.allocationStatus = radioVal.value |
|
|
|
arg.followStatus = radioVal.value |
|
|
|
}, |
|
|
|
actionColumn: { |
|
|
|
width: 160, |
|
|
|
|