diff --git a/apps/web-antd/src/views/crm/business/components/data.ts b/apps/web-antd/src/views/crm/business/components/data.ts new file mode 100644 index 00000000..10ecb5a0 --- /dev/null +++ b/apps/web-antd/src/views/crm/business/components/data.ts @@ -0,0 +1,52 @@ +import type { VxeTableGridOptions } from '#/adapter/vxe-table'; + +/** 商机关联列表列定义 */ +export function useBusinessDetailListColumns(): VxeTableGridOptions['columns'] { + return [ + { + type: 'checkbox', + width: 50, + fixed: 'left', + }, + { + field: 'name', + title: '商机名称', + fixed: 'left', + slots: { default: 'name' }, + }, + { + field: 'customerName', + title: '客户名称', + fixed: 'left', + slots: { default: 'customerName' }, + }, + { + field: 'totalPrice', + title: '商机金额(元)', + formatter: 'formatAmount2', + }, + { + field: 'dealTime', + title: '预计成交日期', + formatter: 'formatDate', + }, + { + field: 'ownerUserName', + title: '负责人', + }, + { + field: 'ownerUserDeptName', + title: '所属部门', + }, + { + field: 'statusTypeName', + title: '商机状态组', + fixed: 'right', + }, + { + field: 'statusName', + title: '商机阶段', + fixed: 'right', + }, + ]; +} diff --git a/apps/web-antd/src/views/crm/business/modules/detail-list-modal.vue b/apps/web-antd/src/views/crm/business/components/detail-list-modal.vue similarity index 87% rename from apps/web-antd/src/views/crm/business/modules/detail-list-modal.vue rename to apps/web-antd/src/views/crm/business/components/detail-list-modal.vue index 6cf25155..ba65ed04 100644 --- a/apps/web-antd/src/views/crm/business/modules/detail-list-modal.vue +++ b/apps/web-antd/src/views/crm/business/components/detail-list-modal.vue @@ -1,3 +1,4 @@ +