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