feat: crm todo

This commit is contained in:
xingyu4j
2025-06-02 20:52:10 +08:00
parent b0c5b794fa
commit 454f9c5c3b
19 changed files with 409 additions and 64 deletions

View File

@@ -146,73 +146,73 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
title: '合同编号',
field: 'no',
width: 150,
minWidth: 150,
fixed: 'left',
},
{
title: '合同名称',
field: 'name',
width: 150,
minWidth: 150,
fixed: 'left',
slots: { default: 'name' },
},
{
title: '客户名称',
field: 'customerName',
width: 150,
minWidth: 150,
slots: { default: 'customerName' },
},
{
title: '商机名称',
field: 'businessName',
width: 150,
minWidth: 150,
slots: { default: 'businessName' },
},
{
title: '合同金额(元)',
field: 'totalPrice',
width: 150,
minWidth: 150,
formatter: 'formatNumber',
},
{
title: '下单时间',
field: 'orderDate',
width: 150,
minWidth: 150,
formatter: 'formatDateTime',
},
{
title: '合同开始时间',
field: 'startTime',
width: 150,
minWidth: 150,
formatter: 'formatDateTime',
},
{
title: '合同结束时间',
field: 'endTime',
width: 150,
minWidth: 150,
formatter: 'formatDateTime',
},
{
title: '客户签约人',
field: 'signContactName',
width: 150,
minWidth: 150,
slots: { default: 'signContactName' },
},
{
title: '公司签约人',
field: 'signUserName',
width: 150,
minWidth: 150,
},
{
title: '已回款金额(元)',
field: 'totalReceivablePrice',
width: 150,
minWidth: 150,
formatter: 'formatNumber',
},
{
title: '未回款金额(元)',
field: 'unpaidPrice',
width: 150,
minWidth: 150,
formatter: ({ row }) => {
return floatToFixed2(row.totalPrice - row.totalReceivablePrice);
},
@@ -220,46 +220,46 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
title: '最后跟进时间',
field: 'contactLastTime',
width: 150,
minWidth: 150,
formatter: 'formatDateTime',
},
{
title: '负责人',
field: 'ownerUserName',
width: 150,
minWidth: 150,
},
{
title: '所属部门',
field: 'ownerUserDeptName',
width: 150,
minWidth: 150,
},
{
title: '更新时间',
field: 'updateTime',
width: 150,
minWidth: 150,
formatter: 'formatDateTime',
},
{
title: '创建时间',
field: 'createTime',
width: 150,
minWidth: 150,
formatter: 'formatDateTime',
},
{
title: '创建人',
field: 'creatorName',
width: 150,
minWidth: 150,
},
{
title: '备注',
field: 'remark',
width: 150,
minWidth: 150,
},
{
title: '合同状态',
field: 'auditStatus',
fixed: 'right',
width: 100,
minWidth: 100,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.CRM_AUDIT_STATUS },