Browse Source

no message

master
xpz2018 7 months ago
parent
commit
f4f6b9e25b
3 changed files with 39 additions and 13 deletions
  1. 14
      src/views/invite/index/index.vue
  2. 6
      src/views/invite/list/data.ts
  3. 32
      src/views/invite/list/index.vue

14
src/views/invite/index/index.vue

@ -59,10 +59,13 @@
const verifier = ref<any>('') const verifier = ref<any>('')
const clueStatusList = [ const clueStatusList = [
{ label: '待分配', value: 1 },
{ label: '跟进中', value: 2 },
{ label: '公海线索', value: 3 },
{ label: '全部', value: '' }, { label: '全部', value: '' },
{ label: '空号', value: -3 },
{ label: '资料信息无效', value: -2 },
{ label: '公海线索', value: -1 },
{ label: '公海线索', value: -1 },
{ label: '公海线索', value: -1 },
] ]
const ageModel = reactive({ const ageModel = reactive({
@ -109,9 +112,10 @@
arg.finalFollowTimeTo = moment(followTime[1]).format('YYYY-MM-DD 23:59:59') arg.finalFollowTimeTo = moment(followTime[1]).format('YYYY-MM-DD 23:59:59')
delete arg.followTime delete arg.followTime
} }
arg.minimumAge = ageModel.minAge arg.minimumAge = ageModel.minAge
arg.maximumAge = ageModel.maxAge arg.maximumAge = ageModel.maxAge
arg.allocationStatus = radioVal.value
// arg.followStatus = radioVal.value
}, },
actionColumn: { actionColumn: {
width: 160, width: 160,
@ -194,4 +198,4 @@
white-space: nowrap; /* 文本不换行 */ white-space: nowrap; /* 文本不换行 */
text-overflow: ellipsis; /* 超出部分显示省略号 */ text-overflow: ellipsis; /* 超出部分显示省略号 */
} }
</style>
</style>

6
src/views/invite/list/data.ts

@ -97,6 +97,12 @@ export const tableFormSchema: FormSchema[] = [
api: getEducationList, api: getEducationList,
}, },
}, },
{
field: 'allocateTime',
label: '分配日期',
component: 'RangePicker',
colProps: { span: 6 },
},
{ {
field: 'createTime', field: 'createTime',
label: '创建时间', label: '创建时间',

32
src/views/invite/list/index.vue

@ -9,10 +9,10 @@
</div> </div>
</template> </template>
<template #toolbar> <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> <RadioButton v-for="item in clueStatusList" :key="item.value" :value="item.value">{{item.label}}</RadioButton>
</RadioGroup> -->
</RadioGroup>
<div class="flex-row-center-start"> <div class="flex-row-center-start">
<Button type="primary" danger :disabled="datingClueIdList.length == 0" @click="handleModal(null)">重新分配</Button> <Button type="primary" danger :disabled="datingClueIdList.length == 0" @click="handleModal(null)">重新分配</Button>
</div> </div>
@ -49,6 +49,7 @@
import { Avatar, Card, Image, Button, InputNumber, Popconfirm, Checkbox, Pagination } from 'ant-design-vue' import { Avatar, Card, Image, Button, InputNumber, Popconfirm, Checkbox, Pagination } from 'ant-design-vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useMessage } from '/@/hooks/web/useMessage' import { useMessage } from '/@/hooks/web/useMessage'
import { formatToDate } from '/@/utils/dateUtil'
import { tableColumns, tableFormSchema } from './data' import { tableColumns, tableFormSchema } from './data'
import { useModal } from '/@/components/Modal' import { useModal } from '/@/components/Modal'
import { BasicTable, useTable, TableAction } from '/@/components/Table' import { BasicTable, useTable, TableAction } from '/@/components/Table'
@ -63,10 +64,20 @@
const verifier = ref<any>('') const verifier = ref<any>('')
const clueStatusList = [ const clueStatusList = [
{ label: '待分配', value: 1 },
{ label: '跟进中', value: 2 },
{ label: '公海线索', value: 3 },
{ label: '全部', value: '' }, { 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({ const ageModel = reactive({
@ -107,7 +118,7 @@
schemas: tableFormSchema, schemas: tableFormSchema,
}, },
beforeFetch: (arg) => { beforeFetch: (arg) => {
const { createTime, followTime } = arg
const { createTime, followTime, allocateTime } = arg
if (createTime) { if (createTime) {
arg.creatTimeFrom = moment(createTime[0]).format('YYYY-MM-DD 00:00:00') arg.creatTimeFrom = moment(createTime[0]).format('YYYY-MM-DD 00:00:00')
arg.creatTimeTo = moment(createTime[1]).format('YYYY-MM-DD 23:59:59') 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') arg.finalFollowTimeTo = moment(followTime[1]).format('YYYY-MM-DD 23:59:59')
delete arg.followTime delete arg.followTime
} }
if (allocateTime) {
arg.allocateVerifierDateFrom = formatToDate(allocateTime[0])
arg.allocateVerifierDateTo = formatToDate(allocateTime[1])
delete arg.allocateTime
}
arg.minimumAge = ageModel.minAge arg.minimumAge = ageModel.minAge
arg.maximumAge = ageModel.maxAge arg.maximumAge = ageModel.maxAge
arg.allocationStatus = radioVal.value
arg.followStatus = radioVal.value
}, },
actionColumn: { actionColumn: {
width: 160, width: 160,

Loading…
Cancel
Save