1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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' },
| },
| ];
| }
|
|