Sanakey
3 天以前 b5c1614fe473330ceca8b7cff0f1802e19bd5039
提交 | 用户 | age
ec4248 1
S 2 import { FormProps,  BasicColumn } from '@/components/Table';
3 import {treeOptionsListApi} from "@/api/demo/tree";
4
5 export function getEditCellColumns(): BasicColumn[] {
6   return [
7     {
8       title: '线索名称',
9       // defaultHidden: true,
10       dataIndex: 'cluesName',
11       sorter: true,
12       width: 200
13     },
14     {
15       title: '公司网址',
16       dataIndex: 'homepage',
17       width: 200,
18     },
19     {
20       title: '线索来源',
21       dataIndex: 'originList',
22       width: 200,
23     },
24     {
25       title: '简称',
26       dataIndex: 'shortName',
27       width: 200,
28     },
29     {
30       title: '国家',
31       dataIndex: 'country',
32       width: 200,
33     },
34     {
35       title: '省份',
36       dataIndex: 'province',
37       width: 200,
38     },
39     {
40       title: '地区',
41       dataIndex: 'city',
42       width: 200,
43     },
44     {
45       title: '公司名称',
46       dataIndex: 'corporate',
47       width: 200,
48     },
49     {
50       title: '公司类型',
51       dataIndex: 'bizType',
52       width: 200,
53     },
54     {
55       title: '地区号',
56       dataIndex: 'telAreaCode',
57       width: 200,
58     },
59     {
60       title: '座机',
61       dataIndex: 'tel',
62       width: 200,
63     },
64     {
65       title: '采购意向',
66       dataIndex: 'intentionLevel',
67       width: 200,
68     },
69     {
70       title: '年采购额',
71       dataIndex: 'annualProcurement',
72       width: 200,
73     },
74     {
75       title: '时区',
76       dataIndex: 'timezone',
77       width: 200,
78     },
79     {
80       title: '详细地址',
81       dataIndex: 'address',
82       width: 200,
83     },
84     {
85       title: '搜索关键字',
86       dataIndex: 'adKeyword',
87       width: 200,
88     },
89     {
90       title: '图片',
91       dataIndex: 'imageList',
92       width: 200,
93     },
94     {
95       title: '线索备注',
96       dataIndex: 'hdmeno',
97       width: 200,
98     },
99     {
100       title: '规模',
101       dataIndex: 'scaleId',
102       width: 200,
103     },
104     {
105       title: '业务员',
106       dataIndex: 'seller',
107       width: 200,
108     },
109     {
110       title: '访问来源',
111       dataIndex: 'inquiryOrigin',
112       width: 200,
113     },
114     {
115       title: '主营产品',
116       dataIndex: 'categoryIds',
117       width: 200,
118     },
119     {
120       title: '访问IP所在地',
121       dataIndex: 'inquiryCountry',
122       width: 200,
123     },
124     {
125       title: '是否已关注',
126       dataIndex: 'pinFlag',
127       width: 200,
128     },
129
130     {
131       title: '最近联系人',
132       dataIndex: 'id',
133       helpMessage: ['管理员指定客户联系行为:','发送邮件 (客户+商机)','接收邮件 (客户+商机)','营销邮件 (客户+商机)','新建跟进 (客户+商机)','新建/编辑 商机'],
134       sorter: true,
135       width: 200,
136     },
137     {
138       title: '国家地区',
139       dataIndex: 'name3',
140       sorter: true,
141       edit: true,
142       editComponent: 'Select',
143       editComponentProps: {
144         options: [
145           {
146             label: 'Option1',
147             value: '1',
148           },
149           {
150             label: 'Option2',
151             value: '2',
152           },
153         ],
154       },
155       width: 200,
156     },
b5c161 157     {
S 158       title: '存档时间',
159       dataIndex: 'archiveTime',
160       sorter: true,
161       width: 200,
162     },
163     {
164       title: '状态id',
165       dataIndex: 'statusId',
166       width: 200,
167     },
168     {
169       title: '状态内容',
170       dataIndex: 'status',
171       width: 200,
172     },
173     {
174       title: '跟进时间',
175       dataIndex: 'followUpTime',
176       width: 200,
177     },
178     {
179       title: '无效类型',
180       dataIndex: 'failType',
181       width: 200,
182     },
183     {
184       title: '无效状态',
185       dataIndex: 'failStatus',
186       width: 200,
187     },
188     {
189       title: '无效状态内容',
190       dataIndex: 'failStatusName',
191       width: 200,
192     },
193     {
194       title: '无效原因',
195       dataIndex: 'failReason',
196       width: 200,
197     },
198     {
199       title: '进入私海时间',
200       dataIndex: 'privateTime',
201       width: 200,
202     },
203     {
204       title: '进入公海时间',
205       dataIndex: 'publicTime',
206       width: 200,
207     },
208     {
209       title: '是否为公海线索',
210       dataIndex: 'isPublic',
211       width: 200,
212     },
213     {
214       title: '评分',
215       dataIndex: 'star',
216       width: 200,
217     },
218     {
219       title: '下次跟进时间',
220       dataIndex: 'nextFollowUpTime',
221       width: 200,
222     },
223     {
224       title: '是否有重复内容',
225       dataIndex: 'duplicateFlag',
226       width: 200,
227     },
228     {
229       title: '标签',
230       dataIndex: 'tagList',
231       width: 200,
232     },
ec4248 233     {
S 234       title: '远程下拉树',
235       dataIndex: 'name8',
236       edit: true,
237       editComponent: 'ApiTreeSelect',
238       editRule: false,
239       editComponentProps: {
240         api: treeOptionsListApi,
241         resultField: 'list',
242       },
243       width: 200,
244     },
245
246   ]
247 }
248
249
250
b5c161 251 // export function getFormConfig(): Partial<FormProps> {
S 252 //   return {
253 //     labelWidth: 100,
254 //     layout: 'horizontal',
255 //     rowProps: {
256 //       justify: 'end',
257 //     },
258 //     showResetButton: false,
259 //     showSubmitButton: false,
260 //     schemas: [
261 //       {
262 //         field: `cluesKeyword`,
263 //         label: `搜索`,
264 //         component: 'InputSearch',
265 //         colProps: {
266 //           xl: 12,
267 //           xxl: 8,
268 //         },
269 //         componentProps: {
270 //           onSearch: (value) => {
271 //             console.log(value);
272 //           },
273 //         },
274 //       },
275 //     ],
276 //   };
277 // }