master
飘泊客 11 months ago
parent 40d6b478dc
commit 01dd268a2e

@ -2,4 +2,4 @@ import type { ApiResult } from '@/api/types'
export const isSuccess = (result: ApiResult) => {
return result.code === 200
}
}

@ -42,7 +42,6 @@
<script setup lang="ts">
import { ref } from 'vue'
// import { message } from 'ant-design-vue'
import { doRequest } from '@/utils/axios/request'
//
import ProTable from '#/table'
import type { ProTableInstanceExpose, TableRequest, ProColumns } from '#/table'

@ -151,9 +151,10 @@ defineExpose({
resetFields()
if (newFormAction === FormAction.OTHER) {
title.value = '详情'
record.distributeDate = dayjs(record?.distributeDate, 'YYYY-MM-DD HH:mm:ss')
record.otherClueObj.remarkArr = Object.entries(JSON.parse(record.otherClueObj.remarkDict))
overrideProperties(formModel, record)
const data: directDTO = Object.assign({}, record)
data.distributeDate = dayjs(record?.distributeDate, 'YYYY-MM-DD HH:mm:ss')
data.otherClueObj.remarkArr = Object.entries(JSON.parse(record.otherClueObj.remarkDict))
overrideProperties(formModel, data)
}
formAction.value = newFormAction
}

@ -43,14 +43,14 @@
<div>
<a-row>
<a-col :span="12">
<a-statistic title="总成交数" :value="112893" style="margin-right: 50px" />
<a-statistic title="总成交数" :value="0" style="margin-right: 50px" />
</a-col>
<a-col :span="12">
<a-statistic title="总分发数" :precision="2" :value="112893" />
<a-statistic title="总分发数" :precision="0" :value="0" />
</a-col>
</a-row>
</div>
<div class="text-center c-red">转化成交比例 80%</div>
<div class="text-center c-red">转化成交比例 0%</div>
</div>
</div>
</a-row>
@ -67,9 +67,7 @@ import { useUserStore } from '@/stores/user-store'
const { userInfo } = useUserStore()
const userInfoCurrent = ref<string | undefined>('')
onMounted(() => {
})
onMounted(() => {})
const useForm = Form.useForm
// label
const labelCol = { md: { span: 6 } }
@ -122,6 +120,7 @@ const reset = () => {
</script>
<style lang="less">
.bulletin {
width: 270px;
border: 1px solid #d9d9d9;
border-radius: 2px;
padding: 10px;

@ -80,17 +80,6 @@ const columns = ref<any[]>([
title: '手机号码',
dataIndex: 'nid'
},
{
title: '跟进员',
dataIndex: 'userNameList',
customRender: ({ record }: any) => {
if (record.userNameList.length > 0) {
return h('div', record.userNameList.join(','))
} else {
return h('div', '')
}
}
},
{
title: '来源',
dataIndex: 'originType',

@ -149,10 +149,10 @@ defineExpose({
resetFields()
if (newFormAction === FormAction.OTHER) {
title.value = '详情'
record.distributeDate = dayjs(record?.distributeDate, 'YYYY-MM-DD HH:mm:ss')
// JSON.parse(record.otherClueObj.remarkDict)
record.otherClueObj.remarkArr = Object.entries(JSON.parse(record.otherClueObj.remarkDict))
overrideProperties(formModel, record)
const data: directDTO = Object.assign({}, record)
data.distributeDate = dayjs(record?.distributeDate, 'YYYY-MM-DD HH:mm:ss')
data.otherClueObj.remarkArr = Object.entries(JSON.parse(record.otherClueObj.remarkDict))
overrideProperties(formModel, data)
}
formAction.value = newFormAction
}

@ -58,7 +58,6 @@ import distributeSearch from './distributeSearch.vue'
import { pageQueryPage } from '@/api/directResources'
import type { directDTO, directPageParam } from '@/api/directResources/types'
import { useUserStore } from '@/stores/user-store'
import ResizeObserver from 'ant-design-vue/es/vc-resize-observer'
defineOptions({ name: 'DistributeIndex' })
const { userInfo } = useUserStore()

@ -179,7 +179,6 @@ const handleSubmit = () => {
userName: userList.filter((it: any) => it.userId == item)[0].userName
})
})
console.log('data===', data)
doRequest(upDistribute(data), {
successMessage: '分发成功',
onSuccess: () => {
@ -195,9 +194,10 @@ defineExpose({
resetFields()
if (newFormAction === FormAction.UPDATE) {
title.value = '分发'
record.distributeDate = dayjs(record?.distributeDate, 'YYYY-MM-DD HH:mm:ss')
record.otherClueObj.remarkArr = Object.entries(JSON.parse(record.otherClueObj.remarkDict))
overrideProperties(formModel, record)
const data: directDTO = Object.assign({}, record)
data.distributeDate = dayjs(record?.distributeDate, 'YYYY-MM-DD HH:mm:ss')
data.otherClueObj.remarkArr = Object.entries(JSON.parse(record.otherClueObj.remarkDict))
overrideProperties(formModel, data)
}
formAction.value = newFormAction
}

Loading…
Cancel
Save