From 27c8277d717b34b55f3ea967027b53b067f77df3 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期四, 20 八月 2026 16:58:49 +0800
Subject: [PATCH] feat 功能变更
---
src/views/crm/contract/components/command-list-data.ts | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 55 insertions(+), 0 deletions(-)
diff --git a/src/views/crm/contract/components/command-list-data.ts b/src/views/crm/contract/components/command-list-data.ts
new file mode 100644
index 0000000..04b43ad
--- /dev/null
+++ b/src/views/crm/contract/components/command-list-data.ts
@@ -0,0 +1,55 @@
+import type { VxeTableGridOptions } from '#/adapter/vxe-table';
+import type { CrmContractCommandApi } from '#/api/crm/contract-command';
+
+import { DICT_TYPE } from '@vben/constants';
+
+/** 鍚堝悓鎸囦护璇︽儏鍒楄〃瀛楁 */
+export function useDetailListColumns(): VxeTableGridOptions<CrmContractCommandApi.ContractCommand>['columns'] {
+ return [
+ {
+ field: 'commandType',
+ title: '鎸囦护绫诲瀷',
+ width: 120,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.CRM_COMMAND_TYPE },
+ },
+ },
+ {
+ field: 'targetModule',
+ title: '鐩爣妯″潡',
+ width: 130,
+ },
+ {
+ field: 'bizNo',
+ title: '涓氬姟鍗曞彿',
+ minWidth: 140,
+ },
+ {
+ field: 'operatorName',
+ title: '鎿嶄綔浜�',
+ width: 100,
+ },
+ {
+ field: 'operateTime',
+ title: '鎿嶄綔鏃堕棿',
+ minWidth: 160,
+ formatter: 'formatDateTime',
+ },
+ {
+ field: 'status',
+ title: '鐘舵��',
+ width: 100,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.CRM_COMMAND_STATUS },
+ },
+ },
+ {
+ title: '鎿嶄綔',
+ width: 220,
+ fixed: 'right',
+ slots: { default: 'actions' },
+ },
+ ];
+}
--
Gitblit v1.9.3