@bit-sun/business-component 4.2.1-alpha.11-aiwei → 4.2.1-alpha.12-aiwei
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +27 -15
- package/dist/index.js +27 -15
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +716 -795
|
@@ -8,11 +8,11 @@ import { getEmployeeCode, getCurrentTargetBgId } from '@/utils/LocalstorageUtils
|
|
|
8
8
|
import { Image } from 'antd';
|
|
9
9
|
import { isBoolean, trim } from 'lodash';
|
|
10
10
|
|
|
11
|
-
const hasDictSharingType =
|
|
11
|
+
const hasDictSharingType = getDictionarySource('UC000013')?.length;
|
|
12
12
|
const sharingTypeDataList = hasDictSharingType && getDictionarySource('UC000013') || sharingType
|
|
13
13
|
|
|
14
|
-
export function commonFun(type?: string, prefixUrl: any, parentProps?:
|
|
15
|
-
const { requestConfig:
|
|
14
|
+
export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
15
|
+
const { requestConfig:requestConfigProp={}, selectProps:selectConfigProps={}, modalTableProps:modalTableBusProps={}, hiddenFields=[]} = parentProps || {};
|
|
16
16
|
|
|
17
17
|
// 默认type === 'supplier' 供应商选择器
|
|
18
18
|
let requestConfig = {
|
|
@@ -35,11 +35,11 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
35
35
|
* changePosition 必传 为搜索表单Form中需要更改数据源的Item项的位置
|
|
36
36
|
* changeSearchForm 必传 为搜索表单Form数据
|
|
37
37
|
* */
|
|
38
|
-
const formatSource = (reData: any, position: number, changePosition: number,
|
|
38
|
+
const formatSource = (reData: any, position: number, changePosition: number,changeSearchForm: any,resKeyValue=['code', 'name']) => {
|
|
39
39
|
const data = reData && reData[position]?.data;
|
|
40
|
-
const list = Array.isArray(data) ? data :
|
|
40
|
+
const list = Array.isArray(data) ? data :(data?.items || data?.list || data?.children || []);
|
|
41
41
|
const formatData = list?.length ? list.map((v: any) => ({ text: v[resKeyValue[1]], value: v[resKeyValue[0]] })) : [];
|
|
42
|
-
changeSearchForm[changePosition] = {
|
|
42
|
+
changeSearchForm[changePosition] = {...changeSearchForm[changePosition], initialSource: formatData}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
// 格式化树选择器数据源
|
|
@@ -60,28 +60,28 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
60
60
|
position: number,
|
|
61
61
|
changePosition: number,
|
|
62
62
|
changeSearchForm: any,
|
|
63
|
-
resKeyValue
|
|
63
|
+
resKeyValue=['id', 'name'],
|
|
64
64
|
childrenKey = 'children',
|
|
65
65
|
nodeDisabledJudge?: (data: any) => boolean, // 树节点能不能选 函数判断
|
|
66
66
|
) => {
|
|
67
67
|
let data = reData && reData[position]?.data;
|
|
68
68
|
let disabledJudge;
|
|
69
|
-
if
|
|
69
|
+
if(data && typeof data === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
|
|
70
70
|
data = [data];
|
|
71
|
-
disabledJudge
|
|
71
|
+
disabledJudge=false
|
|
72
72
|
}
|
|
73
|
-
if
|
|
73
|
+
if(nodeDisabledJudge) {
|
|
74
74
|
disabledJudge = nodeDisabledJudge;
|
|
75
75
|
}
|
|
76
76
|
const formatData = (data &&
|
|
77
77
|
Array.isArray(data) &&
|
|
78
78
|
data.length &&
|
|
79
79
|
data.map((ites: any) => mapSearchTree(ites, resKeyValue, disabledJudge, childrenKey))) ||
|
|
80
|
-
|
|
80
|
+
[]
|
|
81
81
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
let tableSearchForm: any[] = [];
|
|
84
|
+
let tableSearchForm: any [] = [];
|
|
85
85
|
let modalTableProps = {
|
|
86
86
|
modalTableTitle: '',
|
|
87
87
|
tableSearchForm,
|
|
@@ -92,10 +92,10 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
92
92
|
let needModalTable = modalTableBusProps?.needModalTable !== undefined ? modalTableBusProps?.needModalTable : true;
|
|
93
93
|
|
|
94
94
|
const extralHeaders = requestConfigProp?.extralHeaders; // 拿到业务方设置的-选择器的额外请求头 不传则无,传了选择器查询接口传。
|
|
95
|
-
let querySelectHeadersList = modalTableBusProps?.querySelectHeadersList
|
|
95
|
+
let querySelectHeadersList = modalTableBusProps?.querySelectHeadersList||[]; // 控制 选择器弹窗中查询条件额外请求头的列表--isOpen 是否开启, 设置true,默认取选择器的请求头;false则没有请求头。extralHeaders:当设置且isOpen为true时,取设置的请求头。queryKey为查询条件的key值。
|
|
96
96
|
|
|
97
97
|
// 供应商选择器
|
|
98
|
-
if
|
|
98
|
+
if(type === 'supplier') {
|
|
99
99
|
selectProps = {
|
|
100
100
|
placeholder: '输入供应商编码或名称',
|
|
101
101
|
renderTableColumns: [
|
|
@@ -113,8 +113,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
113
113
|
tableSearchForm = [
|
|
114
114
|
{ name: 'qp-name-like', label: '供应商名称' }, // field: { type: 'input', props: { placeholder: '请输入'}}
|
|
115
115
|
{ name: 'qp-code-like', label: '供应商编码' },
|
|
116
|
-
{
|
|
117
|
-
name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
|
|
116
|
+
{ name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
|
|
118
117
|
type: 'select',
|
|
119
118
|
props: {
|
|
120
119
|
mode: 'multiple',
|
|
@@ -127,10 +126,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
127
126
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
128
127
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
129
128
|
},
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
{
|
|
133
|
-
name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
|
|
129
|
+
} },
|
|
130
|
+
{ name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
|
|
134
131
|
type: 'select',
|
|
135
132
|
props: {
|
|
136
133
|
mode: 'multiple',
|
|
@@ -143,10 +140,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
143
140
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
144
141
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
145
142
|
},
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
{
|
|
149
|
-
name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
|
|
143
|
+
} },
|
|
144
|
+
{ name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
|
|
150
145
|
type: 'select',
|
|
151
146
|
props: {
|
|
152
147
|
mode: 'multiple',
|
|
@@ -159,30 +154,29 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
159
154
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
160
155
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
161
156
|
},
|
|
162
|
-
}
|
|
163
|
-
},
|
|
157
|
+
} },
|
|
164
158
|
{ name: 'qp-sharingType-eq', type: 'select', label: '共享类型', initialSource: sharingTypeDataList },
|
|
165
159
|
]
|
|
166
|
-
const queryHeaderParams
|
|
160
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
167
161
|
Promise.all([
|
|
168
162
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
169
163
|
pageSize: 5000,
|
|
170
164
|
currentPage: 1,
|
|
171
165
|
'qp-companyType-eq': '30',
|
|
172
|
-
},
|
|
166
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
|
|
173
167
|
loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
|
|
174
168
|
pageSize: 5000,
|
|
175
169
|
currentPage: 1,
|
|
176
|
-
},
|
|
170
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
|
|
177
171
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
178
172
|
pageSize: 5000,
|
|
179
173
|
currentPage: 1,
|
|
180
174
|
'qp-companyType-eq': '20',
|
|
181
|
-
},
|
|
182
|
-
]).then((x: any)
|
|
183
|
-
formatSource(x,
|
|
184
|
-
formatSource(x,
|
|
185
|
-
formatSource(x,
|
|
175
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in'))
|
|
176
|
+
]).then((x: any)=>{
|
|
177
|
+
formatSource(x,0, 2, tableSearchForm);
|
|
178
|
+
formatSource(x,1, 3, tableSearchForm);
|
|
179
|
+
formatSource(x,2, 4, tableSearchForm);
|
|
186
180
|
})
|
|
187
181
|
modalTableProps = {
|
|
188
182
|
modalTableTitle: '选择供应商',
|
|
@@ -226,7 +220,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
226
220
|
...modalTableBusProps,
|
|
227
221
|
}
|
|
228
222
|
}
|
|
229
|
-
if
|
|
223
|
+
if(type === 'supplier2') {
|
|
230
224
|
// 版本2
|
|
231
225
|
selectProps = {
|
|
232
226
|
placeholder: '输入供应商编码或名称',
|
|
@@ -245,8 +239,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
245
239
|
tableSearchForm = [
|
|
246
240
|
{ name: 'qp-name-like', label: '供应商名称' }, // field: { type: 'input', props: { placeholder: '请输入'}}
|
|
247
241
|
{ name: 'qp-code-like', label: '供应商编码' },
|
|
248
|
-
{
|
|
249
|
-
name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
|
|
242
|
+
{ name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
|
|
250
243
|
type: 'select',
|
|
251
244
|
props: {
|
|
252
245
|
// mode: 'multiple',
|
|
@@ -259,10 +252,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
259
252
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
260
253
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
261
254
|
},
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
{
|
|
265
|
-
name: 'qp-supplierOrgCode-eq', type: 'select', label: '使用组织', field: {
|
|
255
|
+
} },
|
|
256
|
+
{ name: 'qp-supplierOrgCode-eq', type: 'select', label: '使用组织', field: {
|
|
266
257
|
type: 'select',
|
|
267
258
|
props: {
|
|
268
259
|
// mode: 'multiple',
|
|
@@ -275,17 +266,16 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
275
266
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
276
267
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
277
268
|
},
|
|
278
|
-
}
|
|
279
|
-
},
|
|
269
|
+
} },
|
|
280
270
|
]
|
|
281
|
-
const queryHeaderParams
|
|
271
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
282
272
|
Promise.all([
|
|
283
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`,
|
|
284
|
-
]).then((x: any)
|
|
273
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`,{},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
|
|
274
|
+
]).then((x: any)=>{
|
|
285
275
|
const firstElement = x?.[0];
|
|
286
276
|
const allList = firstElement && [firstElement, firstElement];
|
|
287
|
-
formatSource(allList,
|
|
288
|
-
formatSource(allList,
|
|
277
|
+
formatSource(allList,0, 2, tableSearchForm);
|
|
278
|
+
formatSource(allList,1, 3, tableSearchForm);
|
|
289
279
|
})
|
|
290
280
|
modalTableProps = {
|
|
291
281
|
modalTableTitle: '选择供应商',
|
|
@@ -322,7 +312,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
322
312
|
}
|
|
323
313
|
|
|
324
314
|
// 商品选择器sku
|
|
325
|
-
if
|
|
315
|
+
if(type === 'skuCommodity') {
|
|
326
316
|
requestConfig = {
|
|
327
317
|
url: `${prefixUrl.selectPrefix}/sku/doPageBySelect/v4`,
|
|
328
318
|
method: 'post',
|
|
@@ -353,61 +343,56 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
353
343
|
],
|
|
354
344
|
...selectConfigProps,
|
|
355
345
|
}
|
|
356
|
-
tableSearchForm =
|
|
357
|
-
{
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
},
|
|
377
|
-
}
|
|
346
|
+
tableSearchForm = [
|
|
347
|
+
{ name: 'qp-skuCode-in', label: 'SKU编码', field: {
|
|
348
|
+
type:'multipleQuerySearchSelect',
|
|
349
|
+
props: {
|
|
350
|
+
selectProps: {
|
|
351
|
+
mode: "multiple",
|
|
352
|
+
placeholder: '请输入SKU编码查询'
|
|
353
|
+
},
|
|
354
|
+
requestConfig: {
|
|
355
|
+
url: '/items/sku//listNoPage/Simple',
|
|
356
|
+
filter: 'qp-skuCode,name-orGroup,like',
|
|
357
|
+
mappingTextField: 'name',
|
|
358
|
+
mappingValueField: 'skuCode',
|
|
359
|
+
sourceName: 'qp-skuCode-in',
|
|
360
|
+
specialBracket: true,
|
|
361
|
+
otherParams: {
|
|
362
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
363
|
+
'ctl-count': true
|
|
364
|
+
}, // 默认参数
|
|
365
|
+
},
|
|
378
366
|
}
|
|
379
|
-
},
|
|
367
|
+
} },
|
|
380
368
|
{ name: 'qp-skuName-like', label: 'SKU名称' },
|
|
381
|
-
{
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
},
|
|
400
|
-
}
|
|
369
|
+
{ name: 'qp-itemCode-in', label: 'SPU编码', field: {
|
|
370
|
+
type:'multipleQuerySearchSelect',
|
|
371
|
+
props: {
|
|
372
|
+
selectProps: {
|
|
373
|
+
placeholder: '请输入SPU编码查询'
|
|
374
|
+
},
|
|
375
|
+
requestConfig: {
|
|
376
|
+
url: '/items/item/listNoPage/Simple',
|
|
377
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
378
|
+
mappingTextField: 'name',
|
|
379
|
+
mappingValueField: 'itemCode',
|
|
380
|
+
sourceName: 'qp-itemCode-in',
|
|
381
|
+
specialBracket: true,
|
|
382
|
+
otherParams: {
|
|
383
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
384
|
+
'ctl-count': true
|
|
385
|
+
}, // 默认参数
|
|
386
|
+
},
|
|
401
387
|
}
|
|
402
|
-
},
|
|
388
|
+
} },
|
|
403
389
|
// { name: 'qp-eancode-in', label: '商品条码', field: {
|
|
404
390
|
// type: 'multipleQueryInput',
|
|
405
391
|
// props: {
|
|
406
392
|
// ...(requestConfigProp?.itemEancodeValueRequestConfig || {}),
|
|
407
393
|
// },
|
|
408
394
|
// }},
|
|
409
|
-
{
|
|
410
|
-
name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
395
|
+
{ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
411
396
|
type: 'select',
|
|
412
397
|
props: {
|
|
413
398
|
mode: 'multiple',
|
|
@@ -420,10 +405,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
420
405
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
421
406
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
422
407
|
},
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
{
|
|
426
|
-
name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
|
|
408
|
+
} },
|
|
409
|
+
{ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
|
|
427
410
|
type: 'treeSelect',
|
|
428
411
|
props: {
|
|
429
412
|
treeData: [],
|
|
@@ -440,127 +423,112 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
440
423
|
},
|
|
441
424
|
dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
|
|
442
425
|
},
|
|
426
|
+
} },
|
|
427
|
+
{ name: 'qp-skcCode-in', label: 'SKC编码', field: {
|
|
428
|
+
type:'multipleQuerySearchSelect',
|
|
429
|
+
props: {
|
|
430
|
+
selectProps: {
|
|
431
|
+
mode: "multiple",
|
|
432
|
+
placeholder: '请输入SKC编码查询'
|
|
433
|
+
},
|
|
434
|
+
requestConfig: {
|
|
435
|
+
url: '/items/sku//listNoPage/Simple',
|
|
436
|
+
filter: 'qp-skcCode,name-orGroup,like',
|
|
437
|
+
mappingTextField: 'name',
|
|
438
|
+
mappingValueField: 'skcCode',
|
|
439
|
+
sourceName: 'qp-skcCode-in',
|
|
440
|
+
specialBracket: true,
|
|
441
|
+
otherParams: {
|
|
442
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
443
|
+
'ctl-count': true
|
|
444
|
+
}, // 默认参数
|
|
445
|
+
},
|
|
443
446
|
}
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
447
|
+
} },
|
|
448
|
+
{ name: 'qp-year-in', type: 'select', label: '年份', field: {
|
|
449
|
+
type: 'select',
|
|
450
|
+
props: {
|
|
451
|
+
mode: 'multiple',
|
|
452
|
+
notFoundContent: '暂无数据',
|
|
453
|
+
allowClear: true,
|
|
454
|
+
showSearch: true,
|
|
455
|
+
showArrow: true,
|
|
456
|
+
maxTagCount: 1,
|
|
457
|
+
optionFilterProp: 'children',
|
|
458
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
459
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
452
460
|
},
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
461
|
+
} },
|
|
462
|
+
{ name: 'qp-season-in', type: 'select', label: '季节', field: {
|
|
463
|
+
type: 'select',
|
|
464
|
+
props: {
|
|
465
|
+
mode: 'multiple',
|
|
466
|
+
notFoundContent: '暂无数据',
|
|
467
|
+
allowClear: true,
|
|
468
|
+
showSearch: true,
|
|
469
|
+
showArrow: true,
|
|
470
|
+
maxTagCount: 1,
|
|
471
|
+
optionFilterProp: 'children',
|
|
472
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
473
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
464
474
|
},
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
allowClear: true,
|
|
523
|
-
showSearch: true,
|
|
524
|
-
showArrow: true,
|
|
525
|
-
maxTagCount: 1,
|
|
526
|
-
optionFilterProp: 'children',
|
|
527
|
-
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
528
|
-
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
529
|
-
},
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
name: 'qp-zzzlbm-in', type: 'select', label: '大类', field: {
|
|
534
|
-
type: 'select',
|
|
535
|
-
props: {
|
|
536
|
-
mode: 'multiple',
|
|
537
|
-
notFoundContent: '暂无数据',
|
|
538
|
-
allowClear: true,
|
|
539
|
-
showSearch: true,
|
|
540
|
-
showArrow: true,
|
|
541
|
-
maxTagCount: 1,
|
|
542
|
-
optionFilterProp: 'children',
|
|
543
|
-
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
544
|
-
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
545
|
-
},
|
|
546
|
-
}
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
name: 'qp-zzxlbm-in', type: 'select', label: '中类', field: {
|
|
550
|
-
type: 'select',
|
|
551
|
-
props: {
|
|
552
|
-
mode: 'multiple',
|
|
553
|
-
notFoundContent: '暂无数据',
|
|
554
|
-
allowClear: true,
|
|
555
|
-
showSearch: true,
|
|
556
|
-
showArrow: true,
|
|
557
|
-
maxTagCount: 1,
|
|
558
|
-
optionFilterProp: 'children',
|
|
559
|
-
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
560
|
-
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
561
|
-
},
|
|
562
|
-
}
|
|
563
|
-
},
|
|
475
|
+
} },
|
|
476
|
+
{ name: 'qp-zzbdbm-in', type: 'select', label: '波段', field: {
|
|
477
|
+
type: 'select',
|
|
478
|
+
props: {
|
|
479
|
+
mode: 'multiple',
|
|
480
|
+
notFoundContent: '暂无数据',
|
|
481
|
+
allowClear: true,
|
|
482
|
+
showSearch: true,
|
|
483
|
+
showArrow: true,
|
|
484
|
+
maxTagCount: 1,
|
|
485
|
+
optionFilterProp: 'children',
|
|
486
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
487
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
488
|
+
},
|
|
489
|
+
} },
|
|
490
|
+
{ name: 'qp-zzdlbm-in', type: 'select', label: '品类', field: {
|
|
491
|
+
type: 'select',
|
|
492
|
+
props: {
|
|
493
|
+
mode: 'multiple',
|
|
494
|
+
notFoundContent: '暂无数据',
|
|
495
|
+
allowClear: true,
|
|
496
|
+
showSearch: true,
|
|
497
|
+
showArrow: true,
|
|
498
|
+
maxTagCount: 1,
|
|
499
|
+
optionFilterProp: 'children',
|
|
500
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
501
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
502
|
+
},
|
|
503
|
+
} },
|
|
504
|
+
{ name: 'qp-zzzlbm-in', type: 'select', label: '大类', field: {
|
|
505
|
+
type: 'select',
|
|
506
|
+
props: {
|
|
507
|
+
mode: 'multiple',
|
|
508
|
+
notFoundContent: '暂无数据',
|
|
509
|
+
allowClear: true,
|
|
510
|
+
showSearch: true,
|
|
511
|
+
showArrow: true,
|
|
512
|
+
maxTagCount: 1,
|
|
513
|
+
optionFilterProp: 'children',
|
|
514
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
515
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
516
|
+
},
|
|
517
|
+
} },
|
|
518
|
+
{ name: 'qp-zzxlbm-in', type: 'select', label: '中类', field: {
|
|
519
|
+
type: 'select',
|
|
520
|
+
props: {
|
|
521
|
+
mode: 'multiple',
|
|
522
|
+
notFoundContent: '暂无数据',
|
|
523
|
+
allowClear: true,
|
|
524
|
+
showSearch: true,
|
|
525
|
+
showArrow: true,
|
|
526
|
+
maxTagCount: 1,
|
|
527
|
+
optionFilterProp: 'children',
|
|
528
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
529
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
530
|
+
},
|
|
531
|
+
} },
|
|
564
532
|
|
|
565
533
|
// { name: 'UNIQUE_SPEC', label: '属性', field: {
|
|
566
534
|
// type: 'proppertySelector',
|
|
@@ -576,51 +544,51 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
576
544
|
{ isOpen: true, queryKey: 'qp-zzzlbm-in' },
|
|
577
545
|
{ isOpen: true, queryKey: 'qp-zzxlbm-in' },
|
|
578
546
|
]
|
|
579
|
-
const queryHeaderParams
|
|
547
|
+
const queryHeaderParams = getQueryHeadersList({defaultQSHL, querySelectHeadersList, extralHeaders});
|
|
580
548
|
|
|
581
549
|
Promise.all([
|
|
582
550
|
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
583
551
|
pageSize: 5000,
|
|
584
552
|
currentPage: 1,
|
|
585
553
|
'ctl-withAuth': true
|
|
586
|
-
},
|
|
554
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
|
|
587
555
|
loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
|
|
588
556
|
pageSize: 5000,
|
|
589
557
|
currentPage: 1,
|
|
590
|
-
},
|
|
558
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
|
|
591
559
|
loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
|
|
592
560
|
'qp-propertyCode-eq': 'PROP_YEAR',
|
|
593
561
|
pageSize: 999,
|
|
594
|
-
}, getQueryHeadersItem(queryHeaderParams,
|
|
562
|
+
}, getQueryHeadersItem(queryHeaderParams,'qp-year-in')),
|
|
595
563
|
loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
|
|
596
564
|
'qp-propertyCode-eq': 'PROP_SEASON',
|
|
597
565
|
pageSize: 999,
|
|
598
|
-
}, getQueryHeadersItem(queryHeaderParams,
|
|
566
|
+
}, getQueryHeadersItem(queryHeaderParams,'qp-season-in')),
|
|
599
567
|
loadSelectSource(`${prefixUrl.formSelectFix}/band`, {
|
|
600
568
|
pageSize: 999,
|
|
601
569
|
currentPage: 1,
|
|
602
|
-
}, getQueryHeadersItem(queryHeaderParams,
|
|
570
|
+
}, getQueryHeadersItem(queryHeaderParams,'qp-zzbdbm-in')),
|
|
603
571
|
loadSelectSource(`${prefixUrl.formSelectFix}/rule/getClassPropertyValue/110000217`, {
|
|
604
|
-
}, getQueryHeadersItem(queryHeaderParams,
|
|
572
|
+
}, getQueryHeadersItem(queryHeaderParams,'qp-zzdlbm-in')),
|
|
605
573
|
loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
|
|
606
574
|
'qp-propertyCode-eq': 'MID_CATA',
|
|
607
575
|
pageSize: 999,
|
|
608
|
-
}, getQueryHeadersItem(queryHeaderParams,
|
|
576
|
+
}, getQueryHeadersItem(queryHeaderParams,'qp-zzzlbm-in')),
|
|
609
577
|
loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
|
|
610
578
|
'qp-propertyCode-eq': 'PROP_SUBCATEORY',
|
|
611
579
|
pageSize: 999,
|
|
612
|
-
}, getQueryHeadersItem(queryHeaderParams,
|
|
613
|
-
]).then((x: any)
|
|
614
|
-
formatSource(x,
|
|
615
|
-
formatTreeDataSource(x,
|
|
616
|
-
formatSource(x,
|
|
617
|
-
formatTreeDataSource(x,
|
|
618
|
-
formatSource(x,
|
|
619
|
-
formatSource(x,
|
|
620
|
-
formatSource(x,
|
|
621
|
-
formatSource(x,
|
|
622
|
-
formatSource(x,
|
|
623
|
-
formatSource(x,
|
|
580
|
+
}, getQueryHeadersItem(queryHeaderParams,'qp-zzxlbm-in')),
|
|
581
|
+
]).then((x: any)=>{
|
|
582
|
+
formatSource(x,0, 3, tableSearchForm,['id','name'])
|
|
583
|
+
formatTreeDataSource(x,1, 4, tableSearchForm)
|
|
584
|
+
formatSource(x,0, getFieldIndex(tableSearchForm, 'qp-brandId-in'), tableSearchForm,['id','name'])
|
|
585
|
+
formatTreeDataSource(x,1, getFieldIndex(tableSearchForm, 'qp-categoryId-in'), tableSearchForm)
|
|
586
|
+
formatSource(x,2, getFieldIndex(tableSearchForm, 'qp-year-in'), tableSearchForm,['value','value'])
|
|
587
|
+
formatSource(x,3, getFieldIndex(tableSearchForm, 'qp-season-in'), tableSearchForm,['value','value'])
|
|
588
|
+
formatSource(x,4, getFieldIndex(tableSearchForm, 'qp-zzbdbm-in'), tableSearchForm,['bandCode','bandName'])
|
|
589
|
+
formatSource(x,5, getFieldIndex(tableSearchForm, 'qp-zzdlbm-in'), tableSearchForm,['value','value'])
|
|
590
|
+
formatSource(x,6, getFieldIndex(tableSearchForm, 'qp-zzzlbm-in'), tableSearchForm,['value','value'])
|
|
591
|
+
formatSource(x,7, getFieldIndex(tableSearchForm, 'qp-zzxlbm-in'), tableSearchForm,['value','value'])
|
|
624
592
|
})
|
|
625
593
|
modalTableProps = {
|
|
626
594
|
modalTableTitle: '选择SKU',
|
|
@@ -647,7 +615,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
647
615
|
title: '图片',
|
|
648
616
|
dataIndex: 'itemUrl',
|
|
649
617
|
defaultSort: 1,
|
|
650
|
-
render: (text: any,
|
|
618
|
+
render: (text: any,record: any) => tableColumnsImage(getSkuImg(record), { width: 16, height: 16 }),
|
|
651
619
|
},
|
|
652
620
|
{
|
|
653
621
|
title: '商品条码',
|
|
@@ -692,7 +660,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
692
660
|
}
|
|
693
661
|
|
|
694
662
|
// 商品选择器spu
|
|
695
|
-
if
|
|
663
|
+
if(type === 'spuCommodity') {
|
|
696
664
|
selectProps = {
|
|
697
665
|
placeholder: '输入商品(SPU)编码或名称',
|
|
698
666
|
renderTableColumns: [
|
|
@@ -723,8 +691,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
723
691
|
tableSearchForm = [
|
|
724
692
|
{ name: 'itemCode*multiInput', label: 'SPU编码', type: 'multipleQueryInput' },
|
|
725
693
|
{ name: 'name*multiInput', label: 'SPU名称', type: 'multipleQueryInput' },
|
|
726
|
-
{
|
|
727
|
-
name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
694
|
+
{ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
728
695
|
type: 'select',
|
|
729
696
|
props: {
|
|
730
697
|
mode: 'multiple',
|
|
@@ -737,10 +704,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
737
704
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
738
705
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
739
706
|
},
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
{
|
|
743
|
-
name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
|
|
707
|
+
} },
|
|
708
|
+
{ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
|
|
744
709
|
type: 'treeSelect',
|
|
745
710
|
props: {
|
|
746
711
|
treeData: [],
|
|
@@ -757,10 +722,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
757
722
|
},
|
|
758
723
|
dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
|
|
759
724
|
},
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
{
|
|
763
|
-
name: 'qp-classId-in', type: 'select', label: '品类', field: {
|
|
725
|
+
} },
|
|
726
|
+
{ name: 'qp-classId-in', type: 'select', label: '品类', field: {
|
|
764
727
|
type: 'select',
|
|
765
728
|
props: {
|
|
766
729
|
mode: 'multiple',
|
|
@@ -773,28 +736,27 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
773
736
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
774
737
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
775
738
|
},
|
|
776
|
-
}
|
|
777
|
-
},
|
|
739
|
+
} },
|
|
778
740
|
]
|
|
779
|
-
const queryHeaderParams
|
|
741
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
780
742
|
Promise.all([
|
|
781
743
|
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
782
744
|
pageSize: 5000,
|
|
783
745
|
currentPage: 1,
|
|
784
746
|
'ctl-withAuth': true
|
|
785
|
-
},
|
|
747
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
|
|
786
748
|
loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
|
|
787
749
|
pageSize: 5000,
|
|
788
750
|
currentPage: 1,
|
|
789
|
-
},
|
|
751
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
|
|
790
752
|
loadSelectSource(`${prefixUrl.formSelectFix}/class/withProperty`, {
|
|
791
753
|
pageSize: 5000,
|
|
792
754
|
currentPage: 1,
|
|
793
|
-
},
|
|
794
|
-
]).then((x: any)
|
|
795
|
-
formatSource(x,
|
|
796
|
-
formatTreeDataSource(x,
|
|
797
|
-
formatSource(x,
|
|
755
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
|
|
756
|
+
]).then((x: any)=>{
|
|
757
|
+
formatSource(x,0, 2, tableSearchForm,['id','name']);
|
|
758
|
+
formatTreeDataSource(x,1, 3, tableSearchForm);
|
|
759
|
+
formatSource(x,2, 4, tableSearchForm,['id','name']);
|
|
798
760
|
})
|
|
799
761
|
modalTableProps = {
|
|
800
762
|
modalTableTitle: '选择商品(SPU) ',
|
|
@@ -835,7 +797,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
835
797
|
}
|
|
836
798
|
|
|
837
799
|
// 新库存商品选择器spu
|
|
838
|
-
if
|
|
800
|
+
if(type === 'spuCommodityWithProperty') {
|
|
839
801
|
selectProps = {
|
|
840
802
|
placeholder: '输入spu编码或名称',
|
|
841
803
|
renderTableColumns: [
|
|
@@ -867,8 +829,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
867
829
|
tableSearchForm = [
|
|
868
830
|
{ name: 'itemCode*multiInput', label: 'SPU编码', type: 'multipleQueryInput' },
|
|
869
831
|
{ name: 'name*multiInput', label: 'SPU名称', type: 'multipleQueryInput' },
|
|
870
|
-
{
|
|
871
|
-
name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
832
|
+
{ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
872
833
|
type: 'select',
|
|
873
834
|
props: {
|
|
874
835
|
mode: 'multiple',
|
|
@@ -881,10 +842,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
881
842
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
882
843
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
883
844
|
},
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
{
|
|
887
|
-
name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
|
|
845
|
+
} },
|
|
846
|
+
{ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
|
|
888
847
|
type: 'treeSelect',
|
|
889
848
|
props: {
|
|
890
849
|
treeData: [],
|
|
@@ -901,10 +860,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
901
860
|
},
|
|
902
861
|
dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
|
|
903
862
|
},
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
{
|
|
907
|
-
name: 'qp-classId-in', type: 'select', label: '品类', field: {
|
|
863
|
+
} },
|
|
864
|
+
{ name: 'qp-classId-in', type: 'select', label: '品类', field: {
|
|
908
865
|
type: 'select',
|
|
909
866
|
props: {
|
|
910
867
|
mode: 'multiple',
|
|
@@ -917,83 +874,82 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
917
874
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
918
875
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
919
876
|
},
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
877
|
+
} },
|
|
878
|
+
{
|
|
879
|
+
name: 'qp-year-in',
|
|
880
|
+
label: '年份',
|
|
881
|
+
field: {
|
|
882
|
+
type: 'itemPropertySelector',
|
|
883
|
+
props: {
|
|
884
|
+
propertyCode: 'SX0000114',
|
|
885
|
+
mode: 'multiple',
|
|
886
|
+
}
|
|
930
887
|
}
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
name: 'qp-season-in',
|
|
891
|
+
label: '季节',
|
|
892
|
+
field: {
|
|
893
|
+
type: 'itemPropertySelector',
|
|
894
|
+
props: {
|
|
895
|
+
propertyCode: 'SX0000070',
|
|
896
|
+
mode: 'multiple',
|
|
897
|
+
}
|
|
941
898
|
}
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
name: 'qp-zzdlbm-in',
|
|
902
|
+
label: '大类',
|
|
903
|
+
field: {
|
|
904
|
+
type: 'itemPropertySelector',
|
|
905
|
+
props: {
|
|
906
|
+
propertyCode: 'SX0000071',
|
|
907
|
+
mode: 'multiple',
|
|
908
|
+
}
|
|
952
909
|
}
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
name: 'qp-zzzlbm-in',
|
|
913
|
+
label: '中类',
|
|
914
|
+
field: {
|
|
915
|
+
type: 'itemPropertySelector',
|
|
916
|
+
props: {
|
|
917
|
+
propertyCode: 'SX0000072',
|
|
918
|
+
mode: 'multiple',
|
|
919
|
+
}
|
|
963
920
|
}
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
name: 'qp-zzxlbm-in',
|
|
924
|
+
label: '小类',
|
|
925
|
+
field: {
|
|
926
|
+
type: 'itemPropertySelector',
|
|
927
|
+
props: {
|
|
928
|
+
propertyCode: 'SX0000110',
|
|
929
|
+
mode: 'multiple',
|
|
930
|
+
}
|
|
974
931
|
}
|
|
975
|
-
}
|
|
976
|
-
},
|
|
932
|
+
},
|
|
977
933
|
]
|
|
978
|
-
const queryHeaderParams
|
|
934
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
979
935
|
Promise.all([
|
|
980
936
|
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
981
937
|
pageSize: 5000,
|
|
982
938
|
currentPage: 1,
|
|
983
939
|
'ctl-withAuth': true
|
|
984
|
-
},
|
|
940
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
|
|
985
941
|
loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
|
|
986
942
|
pageSize: 5000,
|
|
987
943
|
currentPage: 1,
|
|
988
|
-
},
|
|
944
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
|
|
989
945
|
loadSelectSource(`${prefixUrl.formSelectFix}/class/withProperty`, {
|
|
990
946
|
pageSize: 5000,
|
|
991
947
|
currentPage: 1,
|
|
992
|
-
},
|
|
993
|
-
]).then((x: any)
|
|
994
|
-
formatSource(x,
|
|
995
|
-
formatTreeDataSource(x,
|
|
996
|
-
formatSource(x,
|
|
948
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
|
|
949
|
+
]).then((x: any)=>{
|
|
950
|
+
formatSource(x,0, 2, tableSearchForm,['id','name']);
|
|
951
|
+
formatTreeDataSource(x,1, 3, tableSearchForm);
|
|
952
|
+
formatSource(x,2, 4, tableSearchForm,['id','name']);
|
|
997
953
|
})
|
|
998
954
|
modalTableProps = {
|
|
999
955
|
modalTableTitle: '选择SPU',
|
|
@@ -1035,7 +991,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1035
991
|
}
|
|
1036
992
|
|
|
1037
993
|
// 商品选择器skc
|
|
1038
|
-
if
|
|
994
|
+
if(type === 'skcCommodity') {
|
|
1039
995
|
selectProps = {
|
|
1040
996
|
placeholder: '输入SKC编码或名称',
|
|
1041
997
|
renderTableColumns: [
|
|
@@ -1054,8 +1010,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1054
1010
|
{ name: 'qp-code-like', label: 'SKC编码' },
|
|
1055
1011
|
{ name: 'qp-skcName-like', label: 'SKC名称' },
|
|
1056
1012
|
{ name: 'qp-itemName-like', label: '商品名称' },
|
|
1057
|
-
{
|
|
1058
|
-
name: 'qp-colorName-in', type: 'select', label: '颜色', field: {
|
|
1013
|
+
{ name: 'qp-colorName-in', type: 'select', label: '颜色', field: {
|
|
1059
1014
|
type: 'select',
|
|
1060
1015
|
props: {
|
|
1061
1016
|
mode: 'multiple',
|
|
@@ -1068,10 +1023,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1068
1023
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1069
1024
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1070
1025
|
},
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
{
|
|
1074
|
-
name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
|
|
1026
|
+
} },
|
|
1027
|
+
{ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
|
|
1075
1028
|
type: 'treeSelect',
|
|
1076
1029
|
props: {
|
|
1077
1030
|
treeData: [],
|
|
@@ -1088,10 +1041,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1088
1041
|
},
|
|
1089
1042
|
dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
|
|
1090
1043
|
},
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
{
|
|
1094
|
-
name: 'qp-classId-in', type: 'select', label: '品类', field: {
|
|
1044
|
+
} },
|
|
1045
|
+
{ name: 'qp-classId-in', type: 'select', label: '品类', field: {
|
|
1095
1046
|
type: 'select',
|
|
1096
1047
|
props: {
|
|
1097
1048
|
mode: 'multiple',
|
|
@@ -1104,10 +1055,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1104
1055
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1105
1056
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1106
1057
|
},
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
{
|
|
1110
|
-
name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
1058
|
+
} },
|
|
1059
|
+
{ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
|
|
1111
1060
|
type: 'select',
|
|
1112
1061
|
props: {
|
|
1113
1062
|
mode: 'multiple',
|
|
@@ -1120,10 +1069,9 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1120
1069
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1121
1070
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1122
1071
|
},
|
|
1123
|
-
}
|
|
1124
|
-
},
|
|
1072
|
+
} },
|
|
1125
1073
|
], hiddenFields);
|
|
1126
|
-
const queryHeaderParams
|
|
1074
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1127
1075
|
const fieldsRequest = handleHiddenFieldsRequest(
|
|
1128
1076
|
[
|
|
1129
1077
|
{
|
|
@@ -1133,7 +1081,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1133
1081
|
currentPage: 1,
|
|
1134
1082
|
type: 2, // 类型:1尺码;2颜色
|
|
1135
1083
|
},
|
|
1136
|
-
options: getQueryHeadersItem(queryHeaderParams,
|
|
1084
|
+
options: getQueryHeadersItem(queryHeaderParams,'qp-colorName-in')
|
|
1137
1085
|
},
|
|
1138
1086
|
{
|
|
1139
1087
|
url: `${prefixUrl.formSelectFix}/category/queryCategoryTree`,
|
|
@@ -1141,7 +1089,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1141
1089
|
pageSize: 5000,
|
|
1142
1090
|
currentPage: 1,
|
|
1143
1091
|
},
|
|
1144
|
-
options: getQueryHeadersItem(queryHeaderParams,
|
|
1092
|
+
options: getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')
|
|
1145
1093
|
},
|
|
1146
1094
|
{
|
|
1147
1095
|
url: `${prefixUrl.formSelectFix}/class/withProperty`,
|
|
@@ -1149,7 +1097,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1149
1097
|
pageSize: 5000,
|
|
1150
1098
|
currentPage: 1,
|
|
1151
1099
|
},
|
|
1152
|
-
options: getQueryHeadersItem(queryHeaderParams,
|
|
1100
|
+
options: getQueryHeadersItem(queryHeaderParams,'qp-classId-in')
|
|
1153
1101
|
},
|
|
1154
1102
|
{
|
|
1155
1103
|
url: `${prefixUrl.formSelectFix}/brand/queryBrandList`,
|
|
@@ -1158,7 +1106,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1158
1106
|
currentPage: 1,
|
|
1159
1107
|
'ctl-withAuth': true
|
|
1160
1108
|
},
|
|
1161
|
-
options: getQueryHeadersItem(queryHeaderParams,
|
|
1109
|
+
options: getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')
|
|
1162
1110
|
}
|
|
1163
1111
|
],
|
|
1164
1112
|
['colorName', 'categoryId', 'classId', 'brandId'],
|
|
@@ -1177,11 +1125,11 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1177
1125
|
sourceName: 'qp-skcCode-eq',
|
|
1178
1126
|
...requestConfigProp,
|
|
1179
1127
|
}
|
|
1180
|
-
Promise.all(fieldLoadSource).then((x: any)
|
|
1181
|
-
formatSource(x,
|
|
1182
|
-
formatTreeDataSource(x,
|
|
1183
|
-
formatSource(x,
|
|
1184
|
-
formatSource(x,
|
|
1128
|
+
Promise.all(fieldLoadSource).then((x: any)=>{
|
|
1129
|
+
formatSource(x,0, getFieldIndex(tableSearchForm, 'colorName'), tableSearchForm,['value','value']);
|
|
1130
|
+
formatTreeDataSource(x,1, getFieldIndex(tableSearchForm, 'categoryId'), tableSearchForm);
|
|
1131
|
+
formatSource(x,2, getFieldIndex(tableSearchForm, 'classId'), tableSearchForm,['id','name']);
|
|
1132
|
+
formatSource(x,3, getFieldIndex(tableSearchForm, 'brandId'), tableSearchForm,['id','name']);
|
|
1185
1133
|
})
|
|
1186
1134
|
modalTableProps = {
|
|
1187
1135
|
modalTableTitle: '选择SKC',
|
|
@@ -1230,7 +1178,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1230
1178
|
}
|
|
1231
1179
|
|
|
1232
1180
|
// 商品规格选择器(无弹窗)
|
|
1233
|
-
if
|
|
1181
|
+
if(type === 'skuPropertyValue') {
|
|
1234
1182
|
selectProps = {
|
|
1235
1183
|
placeholder: '输入规格编码或名称',
|
|
1236
1184
|
renderTableColumns: [
|
|
@@ -1263,7 +1211,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1263
1211
|
}
|
|
1264
1212
|
|
|
1265
1213
|
// 仓库选择器(物理、逻辑仓、运营仓)
|
|
1266
|
-
if
|
|
1214
|
+
if(type === 'physicalWarehouse') {
|
|
1267
1215
|
selectProps = {
|
|
1268
1216
|
placeholder: '输入物理仓编码或名称',
|
|
1269
1217
|
renderTableColumns: [
|
|
@@ -1286,7 +1234,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1286
1234
|
mappingTextShowKeyField: 'physicalWarehouseCode',
|
|
1287
1235
|
mappingValueField: 'id',
|
|
1288
1236
|
otherParams: {
|
|
1289
|
-
...(modalTableBusProps?.needStatusSearch
|
|
1237
|
+
...(modalTableBusProps?.needStatusSearch?{}:{'qp-isEnable-eq': 1}),
|
|
1290
1238
|
sorter: 'desc-id',
|
|
1291
1239
|
...(requestConfigProp?.addOtherParams || {}),
|
|
1292
1240
|
}, // 默认参数
|
|
@@ -1296,9 +1244,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1296
1244
|
tableSearchForm = [
|
|
1297
1245
|
{ name: 'physicalWarehouseName*multiInput', label: '物理仓名称', type: 'multipleQueryInput' },
|
|
1298
1246
|
{ name: 'physicalWarehouseCode*multiInput', label: '物理仓编码', type: 'multipleQueryInput' },
|
|
1299
|
-
{ name: 'qp-physicalWarehouseType-eq', type: 'select', label: '物理仓类型', initialSource: getDictionarySource('SC00002')
|
|
1300
|
-
{
|
|
1301
|
-
name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
|
|
1247
|
+
{ name: 'qp-physicalWarehouseType-eq', type: 'select', label: '物理仓类型', initialSource: getDictionarySource('SC00002') },
|
|
1248
|
+
{ name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
|
|
1302
1249
|
type: 'select',
|
|
1303
1250
|
props: {
|
|
1304
1251
|
mode: 'multiple',
|
|
@@ -1311,19 +1258,18 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1311
1258
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1312
1259
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1313
1260
|
},
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
...(modalTableBusProps?.needStatusSearch ? [{ name: 'qp-isEnable-eq', type: 'select', label: '物理仓状态', initialSource: getDictionarySource('SC00001') }] : [])
|
|
1261
|
+
} },
|
|
1262
|
+
...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '物理仓状态', initialSource: getDictionarySource('SC00001') }]:[])
|
|
1317
1263
|
]
|
|
1318
|
-
const queryHeaderParams
|
|
1264
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1319
1265
|
Promise.all([
|
|
1320
1266
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
1321
1267
|
pageSize: 5000,
|
|
1322
1268
|
currentPage: 1,
|
|
1323
1269
|
'qp-companyType-eq': 20,
|
|
1324
|
-
},
|
|
1325
|
-
]).then((x: any)
|
|
1326
|
-
formatSource(x,
|
|
1270
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
|
|
1271
|
+
]).then((x: any)=>{
|
|
1272
|
+
formatSource(x,0, 3, tableSearchForm);
|
|
1327
1273
|
})
|
|
1328
1274
|
modalTableProps = {
|
|
1329
1275
|
modalTableTitle: '选择物理仓',
|
|
@@ -1350,11 +1296,11 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1350
1296
|
defaultSort: 3,
|
|
1351
1297
|
render: (text: number) => getDictionaryTextByValue('SC00002', text),
|
|
1352
1298
|
},
|
|
1353
|
-
...(modalTableBusProps?.needStatusSearch
|
|
1299
|
+
...(modalTableBusProps?.needStatusSearch?[{
|
|
1354
1300
|
title: '状态',
|
|
1355
1301
|
dataIndex: 'isEnable',
|
|
1356
1302
|
render: (text: number) => getDictionaryTextByValue('SC00001', text),
|
|
1357
|
-
}]
|
|
1303
|
+
}]:[]),
|
|
1358
1304
|
{
|
|
1359
1305
|
title: '所属公司',
|
|
1360
1306
|
dataIndex: 'companyName',
|
|
@@ -1364,7 +1310,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1364
1310
|
...modalTableBusProps
|
|
1365
1311
|
}
|
|
1366
1312
|
}
|
|
1367
|
-
if
|
|
1313
|
+
if(type === 'realWarehouse') {
|
|
1368
1314
|
selectProps = {
|
|
1369
1315
|
placeholder: '输入逻辑仓编码或名称',
|
|
1370
1316
|
renderTableColumns: [
|
|
@@ -1387,24 +1333,24 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1387
1333
|
mappingTextShowKeyField: 'realWarehouseCode',
|
|
1388
1334
|
mappingValueField: 'id',
|
|
1389
1335
|
otherParams: {
|
|
1390
|
-
...(modalTableBusProps?.needStatusSearch
|
|
1336
|
+
...(modalTableBusProps?.needStatusSearch?{}:{'qp-isEnable-eq': 1}),
|
|
1391
1337
|
sorter: 'desc-id',
|
|
1392
1338
|
...(requestConfigProp?.addOtherParams || {}),
|
|
1393
1339
|
}, // 默认参数
|
|
1394
1340
|
sourceName: 'warehouseIds',
|
|
1395
1341
|
...requestConfigProp,
|
|
1396
1342
|
}
|
|
1397
|
-
const queryHeaderParams
|
|
1343
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1398
1344
|
Promise.all([
|
|
1399
1345
|
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1400
1346
|
'qp-status-eq': 10,
|
|
1401
1347
|
'qp-isMain-eq': 1,
|
|
1402
1348
|
'qp-type-in': '1,2',
|
|
1403
|
-
},
|
|
1349
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1404
1350
|
loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
|
|
1405
1351
|
'qp-status-eq': 1,
|
|
1406
|
-
},
|
|
1407
|
-
]).then((x: any)
|
|
1352
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1353
|
+
]).then((x: any)=>{
|
|
1408
1354
|
debugger
|
|
1409
1355
|
// 战区限制一级数据
|
|
1410
1356
|
const newData1 = [];
|
|
@@ -1417,13 +1363,13 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1417
1363
|
x[0].data = newData1;
|
|
1418
1364
|
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
1419
1365
|
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
1420
|
-
formatTreeDataSource(x, 0, 3, tableSearchForm, ['code',
|
|
1366
|
+
formatTreeDataSource(x, 0, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
1421
1367
|
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
1422
1368
|
})
|
|
1423
1369
|
tableSearchForm = [
|
|
1424
1370
|
{ name: 'realWarehouseName*multiInput', label: '逻辑仓名称', type: 'multipleQueryInput' },
|
|
1425
1371
|
{ name: 'realWarehouseCode*multiInput', label: '逻辑仓编码', type: 'multipleQueryInput' },
|
|
1426
|
-
{ name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004')
|
|
1372
|
+
{ name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
|
|
1427
1373
|
// { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
|
|
1428
1374
|
{
|
|
1429
1375
|
name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
|
|
@@ -1481,7 +1427,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1481
1427
|
},
|
|
1482
1428
|
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
1483
1429
|
},
|
|
1484
|
-
...(modalTableBusProps?.needStatusSearch
|
|
1430
|
+
...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
|
|
1485
1431
|
]
|
|
1486
1432
|
modalTableProps = {
|
|
1487
1433
|
modalTableTitle: '选择逻辑仓',
|
|
@@ -1534,18 +1480,18 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1534
1480
|
render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
|
|
1535
1481
|
width: 80,
|
|
1536
1482
|
},
|
|
1537
|
-
...(modalTableBusProps?.needStatusSearch
|
|
1483
|
+
...(modalTableBusProps?.needStatusSearch?[{
|
|
1538
1484
|
title: '状态',
|
|
1539
1485
|
dataIndex: 'isEnable',
|
|
1540
1486
|
defaultSort: 8,
|
|
1541
1487
|
render: (text: number) => getDictionaryTextByValue('SC00001', text),
|
|
1542
|
-
}]
|
|
1488
|
+
}]:[]),
|
|
1543
1489
|
],
|
|
1544
1490
|
noEmptySearchField: true,
|
|
1545
1491
|
...modalTableBusProps,
|
|
1546
1492
|
}
|
|
1547
1493
|
}
|
|
1548
|
-
if
|
|
1494
|
+
if(type === 'ownerWarehouse') {
|
|
1549
1495
|
selectProps = {
|
|
1550
1496
|
placeholder: '输入运营仓编码或名称',
|
|
1551
1497
|
renderTableColumns: [
|
|
@@ -1568,7 +1514,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1568
1514
|
mappingTextShowKeyField: 'operationWarehouseCode',
|
|
1569
1515
|
mappingValueField: 'operationWarehouseCode',
|
|
1570
1516
|
otherParams: {
|
|
1571
|
-
...(modalTableBusProps?.needStatusSearch
|
|
1517
|
+
...(modalTableBusProps?.needStatusSearch?{}:{'qp-status-eq': 1}),
|
|
1572
1518
|
sorter: 'desc-id',
|
|
1573
1519
|
...(requestConfigProp?.addOtherParams || {}),
|
|
1574
1520
|
}, // 默认参数
|
|
@@ -1578,8 +1524,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1578
1524
|
tableSearchForm = [
|
|
1579
1525
|
{ name: 'name*multiInput', label: '运营仓名称', type: 'multipleQueryInput' },
|
|
1580
1526
|
{ name: 'operationWarehouseCode*multiInput', label: '运营仓编码', type: 'multipleQueryInput' },
|
|
1581
|
-
{
|
|
1582
|
-
name: 'qp-groupCode-in', type: 'select', label: '运营组', field: {
|
|
1527
|
+
{ name: 'qp-groupCode-in', type: 'select', label: '运营组', field: {
|
|
1583
1528
|
type: 'select',
|
|
1584
1529
|
props: {
|
|
1585
1530
|
mode: 'multiple',
|
|
@@ -1592,9 +1537,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1592
1537
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1593
1538
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1594
1539
|
},
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
{
|
|
1540
|
+
} },
|
|
1541
|
+
{
|
|
1598
1542
|
name: 'qp-operationWarehouseClassification-in', type: 'select', label: '分类', field: {
|
|
1599
1543
|
type: 'select',
|
|
1600
1544
|
props: {
|
|
@@ -1612,20 +1556,28 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1612
1556
|
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1613
1557
|
},
|
|
1614
1558
|
},
|
|
1615
|
-
|
|
1559
|
+
initialSource: getDictionarySource('BASIC_OPS_WH_TYPE')
|
|
1616
1560
|
},
|
|
1617
|
-
...(modalTableBusProps?.needStatusSearch
|
|
1561
|
+
...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
|
|
1618
1562
|
]
|
|
1619
|
-
const queryHeaderParams
|
|
1563
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1620
1564
|
Promise.all([
|
|
1621
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 },
|
|
1565
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 }, {
|
|
1566
|
+
headers: {
|
|
1567
|
+
...extralHeaders
|
|
1568
|
+
}
|
|
1569
|
+
}),
|
|
1622
1570
|
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1623
1571
|
'qp-status-eq': 10,
|
|
1624
1572
|
'qp-isMain-eq': 1,
|
|
1625
1573
|
'qp-type-in': '1,2',
|
|
1626
|
-
},
|
|
1627
|
-
|
|
1628
|
-
|
|
1574
|
+
}, {
|
|
1575
|
+
headers: {
|
|
1576
|
+
...extralHeaders
|
|
1577
|
+
}
|
|
1578
|
+
}),
|
|
1579
|
+
]).then((x: any)=>{
|
|
1580
|
+
formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
|
|
1629
1581
|
const newData1: any[] = [];
|
|
1630
1582
|
x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
|
|
1631
1583
|
newData1.push({ code: item.code, name: item.name })
|
|
@@ -1656,13 +1608,13 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1656
1608
|
dataIndex: 'groupName',
|
|
1657
1609
|
defaultSort: 3,
|
|
1658
1610
|
},
|
|
1659
|
-
...(modalTableBusProps?.needStatusSearch
|
|
1611
|
+
...(modalTableBusProps?.needStatusSearch?[{
|
|
1660
1612
|
title: '状态',
|
|
1661
1613
|
dataIndex: 'status',
|
|
1662
1614
|
defaultSort: 4,
|
|
1663
1615
|
render: (text: number) => getDictionaryTextByValue('SC00001', text),
|
|
1664
|
-
}]
|
|
1665
|
-
|
|
1616
|
+
}]:[]),
|
|
1617
|
+
{
|
|
1666
1618
|
title: '所属销售渠道',
|
|
1667
1619
|
dataIndex: 'channelName',
|
|
1668
1620
|
defaultSort: 5,
|
|
@@ -1674,7 +1626,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1674
1626
|
}
|
|
1675
1627
|
|
|
1676
1628
|
// 仓库选择器(虚拟、渠道仓)(无弹窗)
|
|
1677
|
-
if
|
|
1629
|
+
if(type === 'virtualWarehouse') {
|
|
1678
1630
|
selectProps = {
|
|
1679
1631
|
placeholder: '输入虚拟仓编码或名称',
|
|
1680
1632
|
renderTableColumns: [
|
|
@@ -1706,7 +1658,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1706
1658
|
}
|
|
1707
1659
|
needModalTable = false
|
|
1708
1660
|
}
|
|
1709
|
-
if
|
|
1661
|
+
if(type === 'channelWarehouse') {
|
|
1710
1662
|
selectProps = {
|
|
1711
1663
|
placeholder: '输入渠道仓编码或名称',
|
|
1712
1664
|
renderTableColumns: [
|
|
@@ -1740,7 +1692,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1740
1692
|
}
|
|
1741
1693
|
|
|
1742
1694
|
// 客户选择器
|
|
1743
|
-
if
|
|
1695
|
+
if(type === 'customer') {
|
|
1744
1696
|
selectProps = {
|
|
1745
1697
|
placeholder: '输入客户编码或名称',
|
|
1746
1698
|
renderTableColumns: [
|
|
@@ -1772,8 +1724,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1772
1724
|
tableSearchForm = [
|
|
1773
1725
|
{ name: 'qp-name-like', label: '客户名称' },
|
|
1774
1726
|
{ name: 'qp-code-like', label: '客户编码' },
|
|
1775
|
-
{
|
|
1776
|
-
name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
|
|
1727
|
+
{ name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
|
|
1777
1728
|
type: 'select',
|
|
1778
1729
|
props: {
|
|
1779
1730
|
mode: 'multiple',
|
|
@@ -1786,10 +1737,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1786
1737
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1787
1738
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1788
1739
|
},
|
|
1789
|
-
}
|
|
1790
|
-
|
|
1791
|
-
{
|
|
1792
|
-
name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
|
|
1740
|
+
} },
|
|
1741
|
+
{ name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
|
|
1793
1742
|
type: 'select',
|
|
1794
1743
|
props: {
|
|
1795
1744
|
mode: 'multiple',
|
|
@@ -1802,10 +1751,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1802
1751
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1803
1752
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1804
1753
|
},
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
{
|
|
1808
|
-
name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
|
|
1754
|
+
} },
|
|
1755
|
+
{ name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
|
|
1809
1756
|
type: 'select',
|
|
1810
1757
|
props: {
|
|
1811
1758
|
mode: 'multiple',
|
|
@@ -1818,30 +1765,29 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1818
1765
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1819
1766
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1820
1767
|
},
|
|
1821
|
-
}
|
|
1822
|
-
},
|
|
1768
|
+
} },
|
|
1823
1769
|
{ name: 'qp-sharingType-eq', type: 'select', label: '共享类型', initialSource: sharingTypeDataList },
|
|
1824
1770
|
]
|
|
1825
|
-
const queryHeaderParams
|
|
1771
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1826
1772
|
Promise.all([
|
|
1827
1773
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
1828
1774
|
pageSize: 5000,
|
|
1829
1775
|
currentPage: 1,
|
|
1830
1776
|
'qp-companyType-eq': '30',
|
|
1831
|
-
},
|
|
1777
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
|
|
1832
1778
|
loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
|
|
1833
1779
|
pageSize: 5000,
|
|
1834
1780
|
currentPage: 1,
|
|
1835
|
-
},
|
|
1781
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
|
|
1836
1782
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
1837
1783
|
pageSize: 5000,
|
|
1838
1784
|
currentPage: 1,
|
|
1839
1785
|
'qp-companyType-eq': '20',
|
|
1840
|
-
},
|
|
1841
|
-
]).then((x: any)
|
|
1842
|
-
formatSource(x,
|
|
1843
|
-
formatSource(x,
|
|
1844
|
-
formatSource(x,
|
|
1786
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-sharingType-in'))
|
|
1787
|
+
]).then((x: any)=>{
|
|
1788
|
+
formatSource(x,0, 2, tableSearchForm);
|
|
1789
|
+
formatSource(x,1, 3, tableSearchForm);
|
|
1790
|
+
formatSource(x,2, 4, tableSearchForm);
|
|
1845
1791
|
})
|
|
1846
1792
|
modalTableProps = {
|
|
1847
1793
|
modalTableTitle: '选择客户',
|
|
@@ -1885,7 +1831,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1885
1831
|
...modalTableBusProps
|
|
1886
1832
|
}
|
|
1887
1833
|
}
|
|
1888
|
-
if
|
|
1834
|
+
if(type === 'customer2') {
|
|
1889
1835
|
selectProps = {
|
|
1890
1836
|
placeholder: '输入客户编码或名称',
|
|
1891
1837
|
renderTableColumns: [
|
|
@@ -1919,8 +1865,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1919
1865
|
tableSearchForm = [
|
|
1920
1866
|
{ name: 'qp-name-like', label: '客户名称' },
|
|
1921
1867
|
{ name: 'qp-code-like', label: '客户编码' },
|
|
1922
|
-
{
|
|
1923
|
-
name: 'qp-createOrgCode-in', type: 'select', label: '创建组织', field: {
|
|
1868
|
+
{ name: 'qp-createOrgCode-in', type: 'select', label: '创建组织', field: {
|
|
1924
1869
|
type: 'select',
|
|
1925
1870
|
props: {
|
|
1926
1871
|
mode: 'multiple',
|
|
@@ -1933,10 +1878,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1933
1878
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1934
1879
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1935
1880
|
},
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
{
|
|
1939
|
-
name: 'qp-salesOrgCode-eq', type: 'select', label: '使用组织', field: {
|
|
1881
|
+
} },
|
|
1882
|
+
{ name: 'qp-salesOrgCode-eq', type: 'select', label: '使用组织', field: {
|
|
1940
1883
|
type: 'select',
|
|
1941
1884
|
props: {
|
|
1942
1885
|
// mode: 'multiple',
|
|
@@ -1949,9 +1892,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1949
1892
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1950
1893
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1951
1894
|
},
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
{
|
|
1895
|
+
} },
|
|
1896
|
+
{
|
|
1955
1897
|
name: 'qp-saleChannel-in', type: 'treeSelect', label: '销售渠道', field: {
|
|
1956
1898
|
type: 'treeSelect',
|
|
1957
1899
|
props: {
|
|
@@ -1991,25 +1933,25 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
1991
1933
|
}
|
|
1992
1934
|
},
|
|
1993
1935
|
];
|
|
1994
|
-
const queryHeaderParams
|
|
1936
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1995
1937
|
Promise.all([
|
|
1996
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {},
|
|
1938
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
|
|
1997
1939
|
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1998
1940
|
'qp-status-eq': 10,
|
|
1999
1941
|
'qp-isMain-eq': 1,
|
|
2000
1942
|
'qp-type-in': '1,2',
|
|
2001
|
-
},
|
|
1943
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
2002
1944
|
loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
|
|
2003
1945
|
'qp-status-eq': 1,
|
|
2004
|
-
},
|
|
2005
|
-
]).then((x: any)
|
|
1946
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1947
|
+
]).then((x: any)=>{
|
|
2006
1948
|
const firstElement = x?.[0];
|
|
2007
1949
|
const allList = firstElement && [firstElement, firstElement];
|
|
2008
|
-
formatSource(allList,
|
|
2009
|
-
formatSource(allList,
|
|
1950
|
+
formatSource(allList,0, 2, tableSearchForm);
|
|
1951
|
+
formatSource(allList,1, 3, tableSearchForm);
|
|
2010
1952
|
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
2011
1953
|
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
2012
|
-
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code',
|
|
1954
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
2013
1955
|
formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
2014
1956
|
})
|
|
2015
1957
|
modalTableProps = {
|
|
@@ -2042,7 +1984,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2042
1984
|
defaultSort: 4,
|
|
2043
1985
|
width: 100,
|
|
2044
1986
|
},
|
|
2045
|
-
|
|
1987
|
+
{
|
|
2046
1988
|
title: '所属销售渠道',
|
|
2047
1989
|
dataIndex: 'channelName',
|
|
2048
1990
|
defaultSort: 5,
|
|
@@ -2060,7 +2002,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2060
2002
|
}
|
|
2061
2003
|
|
|
2062
2004
|
// 店铺选择器
|
|
2063
|
-
if
|
|
2005
|
+
if(type === 'shopFile') {
|
|
2064
2006
|
selectProps = {
|
|
2065
2007
|
placeholder: '输入店铺编码或名称',
|
|
2066
2008
|
renderTableColumns: [
|
|
@@ -2093,8 +2035,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2093
2035
|
{ name: 'code*multiInput', label: '店铺编码', type: 'multipleQueryInput' },
|
|
2094
2036
|
// { name: 'qp-name-like', label: '店铺名称' },
|
|
2095
2037
|
// { name: 'qp-code-like', label: '店铺编码' },
|
|
2096
|
-
{
|
|
2097
|
-
name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
|
|
2038
|
+
{ name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
|
|
2098
2039
|
type: 'select',
|
|
2099
2040
|
props: {
|
|
2100
2041
|
mode: 'multiple',
|
|
@@ -2107,10 +2048,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2107
2048
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2108
2049
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2109
2050
|
},
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
{
|
|
2113
|
-
name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
|
|
2051
|
+
} },
|
|
2052
|
+
{ name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
|
|
2114
2053
|
type: 'select',
|
|
2115
2054
|
props: {
|
|
2116
2055
|
mode: 'multiple',
|
|
@@ -2123,11 +2062,9 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2123
2062
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2124
2063
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2125
2064
|
},
|
|
2126
|
-
}
|
|
2127
|
-
},
|
|
2065
|
+
} },
|
|
2128
2066
|
{ name: 'qp-type-in', type: 'select', label: '店铺类型', initialSource: shopFileType },
|
|
2129
|
-
{
|
|
2130
|
-
name: 'qp-plateformCode-in', type: 'select', label: '店铺来源', field: {
|
|
2067
|
+
{ name: 'qp-plateformCode-in', type: 'select', label: '店铺来源', field: {
|
|
2131
2068
|
type: 'select',
|
|
2132
2069
|
props: {
|
|
2133
2070
|
mode: 'multiple',
|
|
@@ -2140,10 +2077,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2140
2077
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2141
2078
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2142
2079
|
},
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
{
|
|
2146
|
-
name: 'qp-mainBrandCode-in', type: 'select', label: '品牌', field: {
|
|
2080
|
+
} },
|
|
2081
|
+
{ name: 'qp-mainBrandCode-in', type: 'select', label: '品牌', field: {
|
|
2147
2082
|
type: 'select',
|
|
2148
2083
|
props: {
|
|
2149
2084
|
mode: 'multiple',
|
|
@@ -2156,10 +2091,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2156
2091
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2157
2092
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2158
2093
|
},
|
|
2159
|
-
}
|
|
2160
|
-
|
|
2161
|
-
{
|
|
2162
|
-
name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
|
|
2094
|
+
} },
|
|
2095
|
+
{ name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
|
|
2163
2096
|
type: 'select',
|
|
2164
2097
|
props: {
|
|
2165
2098
|
mode: 'multiple',
|
|
@@ -2172,40 +2105,39 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2172
2105
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2173
2106
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2174
2107
|
},
|
|
2175
|
-
}
|
|
2176
|
-
},
|
|
2108
|
+
} },
|
|
2177
2109
|
]
|
|
2178
|
-
const queryHeaderParams
|
|
2110
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2179
2111
|
Promise.all([
|
|
2180
2112
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
2181
2113
|
pageSize: 5000,
|
|
2182
2114
|
currentPage: 1,
|
|
2183
2115
|
'qp-companyType-eq': '30',
|
|
2184
|
-
},
|
|
2116
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
|
|
2185
2117
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
2186
2118
|
pageSize: 5000,
|
|
2187
2119
|
currentPage: 1,
|
|
2188
2120
|
'qp-companyType-eq': '20',
|
|
2189
|
-
},
|
|
2121
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
|
|
2190
2122
|
loadSelectSource(`${prefixUrl.formSelectFix}/platformRecord/getPlatformRecordList`, {
|
|
2191
2123
|
// pageSize: 5000,
|
|
2192
2124
|
// currentPage: 1,
|
|
2193
2125
|
'qp-status-eq': '1',
|
|
2194
|
-
},
|
|
2126
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-plateformCode-in')),
|
|
2195
2127
|
loadSelectSource(`${prefixUrl.formSelectFix}/store`, {
|
|
2196
2128
|
pageSize: 5000,
|
|
2197
2129
|
currentPage: 1,
|
|
2198
|
-
},
|
|
2130
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-mainBrandCode-in')),
|
|
2199
2131
|
loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
|
|
2200
2132
|
pageSize: 5000,
|
|
2201
2133
|
currentPage: 1,
|
|
2202
|
-
},
|
|
2203
|
-
]).then((x: any)
|
|
2204
|
-
formatSource(x,
|
|
2205
|
-
formatSource(x,
|
|
2206
|
-
formatSource(x,
|
|
2207
|
-
formatSource(x,
|
|
2208
|
-
formatSource(x,
|
|
2134
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
|
|
2135
|
+
]).then((x: any)=>{
|
|
2136
|
+
formatSource(x,0, 2, tableSearchForm);
|
|
2137
|
+
formatSource(x,1, 3, tableSearchForm);
|
|
2138
|
+
formatSource(x,2, 5, tableSearchForm);
|
|
2139
|
+
formatSource(x,3, 6, tableSearchForm);
|
|
2140
|
+
formatSource(x,4, 7, tableSearchForm);
|
|
2209
2141
|
})
|
|
2210
2142
|
modalTableProps = {
|
|
2211
2143
|
modalTableTitle: '选择店铺',
|
|
@@ -2253,7 +2185,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2253
2185
|
...modalTableBusProps
|
|
2254
2186
|
}
|
|
2255
2187
|
}
|
|
2256
|
-
if
|
|
2188
|
+
if(type === 'shopFile2') {
|
|
2257
2189
|
selectProps = {
|
|
2258
2190
|
placeholder: '输入商店编码或名称',
|
|
2259
2191
|
renderTableColumns: [
|
|
@@ -2297,71 +2229,66 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2297
2229
|
// showArrow: true,
|
|
2298
2230
|
// maxTagCount: 1,
|
|
2299
2231
|
// optionFilterProp: 'children',
|
|
2300
|
-
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2301
|
-
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2302
|
-
// },
|
|
2303
|
-
// } },
|
|
2304
|
-
{
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
optionFilterProp: 'children',
|
|
2336
|
-
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2337
|
-
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2232
|
+
// filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2233
|
+
// option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2234
|
+
// },
|
|
2235
|
+
// } },
|
|
2236
|
+
{ name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
|
|
2237
|
+
type: 'treeSelect',
|
|
2238
|
+
props: {
|
|
2239
|
+
multiple: true,
|
|
2240
|
+
treeData: [],
|
|
2241
|
+
treeCheckable: false,
|
|
2242
|
+
notFoundContent: '暂无数据',
|
|
2243
|
+
allowClear: true,
|
|
2244
|
+
showSearch: true,
|
|
2245
|
+
showArrow: true,
|
|
2246
|
+
maxTagCount: 1,
|
|
2247
|
+
optionFilterProp: 'children',
|
|
2248
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2249
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2250
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
2251
|
+
},
|
|
2252
|
+
} },
|
|
2253
|
+
{ name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '大区', field: {
|
|
2254
|
+
type: 'treeSelect',
|
|
2255
|
+
props: {
|
|
2256
|
+
multiple: true,
|
|
2257
|
+
treeData: [],
|
|
2258
|
+
treeCheckable: false,
|
|
2259
|
+
notFoundContent: '暂无数据',
|
|
2260
|
+
allowClear: true,
|
|
2261
|
+
showSearch: true,
|
|
2262
|
+
showArrow: true,
|
|
2263
|
+
maxTagCount: 1,
|
|
2264
|
+
optionFilterProp: 'children',
|
|
2265
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2266
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2338
2267
|
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
2359
|
-
},
|
|
2268
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
2269
|
+
},
|
|
2270
|
+
} },
|
|
2271
|
+
{ name: 'qp-businessType-in', type: 'select', label: '店铺性质', field: {
|
|
2272
|
+
type: 'select',
|
|
2273
|
+
props: {
|
|
2274
|
+
mode: 'multiple',
|
|
2275
|
+
notFoundContent: '暂无数据',
|
|
2276
|
+
allowClear: true,
|
|
2277
|
+
showSearch: true,
|
|
2278
|
+
showArrow: true,
|
|
2279
|
+
maxTagCount: 1,
|
|
2280
|
+
optionFilterProp: 'children',
|
|
2281
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2282
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2283
|
+
},
|
|
2284
|
+
} ,
|
|
2285
|
+
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
2286
|
+
},
|
|
2360
2287
|
{
|
|
2361
2288
|
name: "qp-brandCode-in",
|
|
2362
2289
|
label: "品牌",
|
|
2363
2290
|
field: {
|
|
2364
|
-
type:
|
|
2291
|
+
type:'select',
|
|
2365
2292
|
props: {
|
|
2366
2293
|
mode: 'multiple',
|
|
2367
2294
|
notFoundContent: '暂无数据',
|
|
@@ -2375,110 +2302,117 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2375
2302
|
},
|
|
2376
2303
|
},
|
|
2377
2304
|
},
|
|
2378
|
-
{
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2305
|
+
{ name: 'qp-manageSupervisor-like', type: 'select', label: '管理督导', field: {
|
|
2306
|
+
type: 'select',
|
|
2307
|
+
props: {
|
|
2308
|
+
notFoundContent: '暂无数据',
|
|
2309
|
+
allowClear: true,
|
|
2310
|
+
showSearch: true,
|
|
2311
|
+
showArrow: true,
|
|
2312
|
+
maxTagCount: 1,
|
|
2313
|
+
optionFilterProp: 'children',
|
|
2314
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2315
|
+
{
|
|
2389
2316
|
debugger
|
|
2390
2317
|
return (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
showSearch: true,
|
|
2447
|
-
showArrow: true,
|
|
2448
|
-
maxTagCount: 1,
|
|
2449
|
-
optionFilterProp: 'children',
|
|
2450
|
-
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2451
|
-
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|
|
2452
|
-
},
|
|
2453
|
-
}
|
|
2454
|
-
},
|
|
2318
|
+
}
|
|
2319
|
+
},
|
|
2320
|
+
} },
|
|
2321
|
+
{ name: 'qp-directSupervisor-like', type: 'select', label: '直接督导', field: {
|
|
2322
|
+
type: 'select',
|
|
2323
|
+
props: {
|
|
2324
|
+
notFoundContent: '暂无数据',
|
|
2325
|
+
allowClear: true,
|
|
2326
|
+
showSearch: true,
|
|
2327
|
+
showArrow: true,
|
|
2328
|
+
maxTagCount: 1,
|
|
2329
|
+
optionFilterProp: 'children',
|
|
2330
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2331
|
+
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|
|
2332
|
+
},
|
|
2333
|
+
} },
|
|
2334
|
+
{ name: 'qp-distributionItem-like', type: 'select', label: '分销商品', field: {
|
|
2335
|
+
type: 'select',
|
|
2336
|
+
props: {
|
|
2337
|
+
notFoundContent: '暂无数据',
|
|
2338
|
+
allowClear: true,
|
|
2339
|
+
showSearch: true,
|
|
2340
|
+
showArrow: true,
|
|
2341
|
+
maxTagCount: 1,
|
|
2342
|
+
optionFilterProp: 'children',
|
|
2343
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2344
|
+
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|
|
2345
|
+
},
|
|
2346
|
+
} },
|
|
2347
|
+
{ name: 'qp-headItem-like', type: 'select', label: '总部商品', field: {
|
|
2348
|
+
type: 'select',
|
|
2349
|
+
props: {
|
|
2350
|
+
notFoundContent: '暂无数据',
|
|
2351
|
+
allowClear: true,
|
|
2352
|
+
showSearch: true,
|
|
2353
|
+
showArrow: true,
|
|
2354
|
+
maxTagCount: 1,
|
|
2355
|
+
optionFilterProp: 'children',
|
|
2356
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2357
|
+
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|
|
2358
|
+
},
|
|
2359
|
+
} },
|
|
2360
|
+
{ name: 'qp-storeChannelName-like', type: 'select', label: '管理模式', field: {
|
|
2361
|
+
type: 'select',
|
|
2362
|
+
props: {
|
|
2363
|
+
notFoundContent: '暂无数据',
|
|
2364
|
+
allowClear: true,
|
|
2365
|
+
showSearch: true,
|
|
2366
|
+
showArrow: true,
|
|
2367
|
+
maxTagCount: 1,
|
|
2368
|
+
optionFilterProp: 'children',
|
|
2369
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2370
|
+
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
|
|
2371
|
+
},
|
|
2372
|
+
} },
|
|
2455
2373
|
]
|
|
2456
|
-
const queryHeaderParams
|
|
2374
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2457
2375
|
Promise.all([
|
|
2458
2376
|
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
|
|
2459
2377
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
2460
2378
|
'qp-realOrg-eq': true,
|
|
2461
2379
|
'qp-status-eq': 10
|
|
2462
|
-
},
|
|
2380
|
+
}, {
|
|
2381
|
+
headers: {
|
|
2382
|
+
...extralHeaders
|
|
2383
|
+
}
|
|
2384
|
+
}),
|
|
2463
2385
|
loadSelectSource(`${prefixUrl.formSelectFix}/channelInfo/tree`, {
|
|
2464
2386
|
'qp-status-eq': 10,
|
|
2465
2387
|
'qp-isMain-eq': 1,
|
|
2466
2388
|
'qp-type-in': '1,2',
|
|
2467
|
-
},
|
|
2389
|
+
}, {
|
|
2390
|
+
headers: {
|
|
2391
|
+
...extralHeaders
|
|
2392
|
+
}
|
|
2393
|
+
}),
|
|
2468
2394
|
loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
|
|
2469
2395
|
'qp-status-eq': 1,
|
|
2470
|
-
},
|
|
2396
|
+
},{
|
|
2397
|
+
headers: {
|
|
2398
|
+
...extralHeaders
|
|
2399
|
+
}
|
|
2400
|
+
}),
|
|
2471
2401
|
loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
|
|
2472
2402
|
pageSize: 5000,
|
|
2473
2403
|
currentPage: 1,
|
|
2474
2404
|
'ctl-withAuth': true,
|
|
2475
|
-
},
|
|
2405
|
+
}, {
|
|
2406
|
+
headers: {
|
|
2407
|
+
...extralHeaders
|
|
2408
|
+
}
|
|
2409
|
+
}),
|
|
2476
2410
|
loadSelectSource(`/channel-manage/store/selectStoreOperationalInfo`, {}, {
|
|
2477
2411
|
headers: {
|
|
2478
2412
|
...extralHeaders
|
|
2479
2413
|
},
|
|
2480
2414
|
})
|
|
2481
|
-
]).then((x: any)
|
|
2415
|
+
]).then((x: any)=>{
|
|
2482
2416
|
const newData1: any[] = [];
|
|
2483
2417
|
x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
|
|
2484
2418
|
newData1.push({ code: item.code, name: item.name })
|
|
@@ -2486,11 +2420,11 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2486
2420
|
x[1].data = newData1;
|
|
2487
2421
|
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
2488
2422
|
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
2489
|
-
formatSource(x,
|
|
2490
|
-
formatTreeDataSource(x, 1,
|
|
2491
|
-
formatTreeDataSource(x, 2,
|
|
2492
|
-
formatSource(x,
|
|
2493
|
-
|
|
2423
|
+
// formatSource(x,0, 3, tableSearchForm);
|
|
2424
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
2425
|
+
formatTreeDataSource(x, 2, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
2426
|
+
formatSource(x,3, 6, tableSearchForm, ['brandCode', 'name']);
|
|
2427
|
+
|
|
2494
2428
|
const opRaw = x[4]?.data;
|
|
2495
2429
|
// 新增label属性
|
|
2496
2430
|
opList?.forEach((r: any) => {
|
|
@@ -2504,11 +2438,11 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2504
2438
|
debugger
|
|
2505
2439
|
const m4 = opList?.filter((r: any) => r?.field === 'head_item' && trim(r?.value));
|
|
2506
2440
|
const m5 = opList?.filter((r: any) => r?.field === 'store_channel_name' && trim(r?.value));
|
|
2507
|
-
tableSearchForm[
|
|
2508
|
-
tableSearchForm[
|
|
2509
|
-
tableSearchForm[
|
|
2510
|
-
tableSearchForm[
|
|
2511
|
-
tableSearchForm[
|
|
2441
|
+
tableSearchForm[7] = { ...tableSearchForm[8], initialSource: m1 };
|
|
2442
|
+
tableSearchForm[8] = { ...tableSearchForm[9], initialSource: m2 };
|
|
2443
|
+
tableSearchForm[9] = { ...tableSearchForm[10], initialSource: m3 };
|
|
2444
|
+
tableSearchForm[10] = { ...tableSearchForm[11], initialSource: m4 };
|
|
2445
|
+
tableSearchForm[11] = { ...tableSearchForm[12], initialSource: m5 };
|
|
2512
2446
|
})
|
|
2513
2447
|
modalTableProps = {
|
|
2514
2448
|
modalTableTitle: '选择商店',
|
|
@@ -2613,7 +2547,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2613
2547
|
}
|
|
2614
2548
|
|
|
2615
2549
|
// 核算主体选择器(无弹窗)
|
|
2616
|
-
if
|
|
2550
|
+
if(type === 'accountingSubject') {
|
|
2617
2551
|
selectProps = {
|
|
2618
2552
|
placeholder: '输入核算主体编码或名称',
|
|
2619
2553
|
renderTableColumns: [
|
|
@@ -2644,7 +2578,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2644
2578
|
needModalTable = false
|
|
2645
2579
|
}
|
|
2646
2580
|
// 库存组织选择器(无弹窗)
|
|
2647
|
-
if
|
|
2581
|
+
if(type === 'inventoryOrg') {
|
|
2648
2582
|
selectProps = {
|
|
2649
2583
|
placeholder: '输入库存组织编码或名称',
|
|
2650
2584
|
renderTableColumns: [
|
|
@@ -2677,7 +2611,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2677
2611
|
}
|
|
2678
2612
|
|
|
2679
2613
|
// 法人公司选择器(无弹窗)
|
|
2680
|
-
if
|
|
2614
|
+
if(type === 'corporationCompany') {
|
|
2681
2615
|
selectProps = {
|
|
2682
2616
|
placeholder: '输入法人公司编码或名称',
|
|
2683
2617
|
renderTableColumns: [
|
|
@@ -2710,7 +2644,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2710
2644
|
}
|
|
2711
2645
|
|
|
2712
2646
|
// 新-法人公司选择器(无弹窗)
|
|
2713
|
-
if
|
|
2647
|
+
if(type === 'platCompany') {
|
|
2714
2648
|
selectProps = {
|
|
2715
2649
|
placeholder: '输入法人公司编码或名称',
|
|
2716
2650
|
renderTableColumns: [
|
|
@@ -2743,7 +2677,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2743
2677
|
}
|
|
2744
2678
|
|
|
2745
2679
|
// 员工选择器
|
|
2746
|
-
if
|
|
2680
|
+
if(type === 'employee') {
|
|
2747
2681
|
selectProps = {
|
|
2748
2682
|
placeholder: '输入员工编码或名称',
|
|
2749
2683
|
renderTableColumns: [
|
|
@@ -2777,8 +2711,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2777
2711
|
tableSearchForm = [
|
|
2778
2712
|
{ name: 'qp-name-like', label: '员工名称' },
|
|
2779
2713
|
{ name: 'qp-employeeNumber-like', label: '员工编码' },
|
|
2780
|
-
{
|
|
2781
|
-
name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
|
|
2714
|
+
{ name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
|
|
2782
2715
|
type: 'select',
|
|
2783
2716
|
props: {
|
|
2784
2717
|
mode: 'multiple',
|
|
@@ -2791,20 +2724,19 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2791
2724
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
2792
2725
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
2793
2726
|
},
|
|
2794
|
-
}
|
|
2795
|
-
},
|
|
2727
|
+
} },
|
|
2796
2728
|
{ name: 'qp-email-like', label: '邮箱' },
|
|
2797
2729
|
{ name: 'qp-officeTelephone-like', label: '手机号' },
|
|
2798
2730
|
]
|
|
2799
|
-
const queryHeaderParams
|
|
2731
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2800
2732
|
Promise.all([
|
|
2801
2733
|
loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
|
|
2802
2734
|
pageSize: 5000,
|
|
2803
2735
|
currentPage: 1,
|
|
2804
2736
|
'qp-companyType-eq': 20,
|
|
2805
|
-
},
|
|
2806
|
-
]).then((x: any)
|
|
2807
|
-
formatSource(x,
|
|
2737
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
|
|
2738
|
+
]).then((x: any)=>{
|
|
2739
|
+
formatSource(x,0, 2, tableSearchForm);
|
|
2808
2740
|
})
|
|
2809
2741
|
modalTableProps = {
|
|
2810
2742
|
modalTableTitle: '选择员工',
|
|
@@ -2843,7 +2775,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2843
2775
|
...modalTableBusProps
|
|
2844
2776
|
}
|
|
2845
2777
|
}
|
|
2846
|
-
if
|
|
2778
|
+
if(type === 'employee2') {
|
|
2847
2779
|
// 版本2
|
|
2848
2780
|
selectProps = {
|
|
2849
2781
|
placeholder: '输入员工编码或名称',
|
|
@@ -2868,8 +2800,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2868
2800
|
mappingValueField: 'id',
|
|
2869
2801
|
otherParams: {
|
|
2870
2802
|
'qp-enable-eq': 10, // 启用状态 10-启用,20-禁用
|
|
2871
|
-
'qp-orgViewIds-like':
|
|
2872
|
-
...(modalTableBusProps?.needTypeSearch
|
|
2803
|
+
'qp-orgViewIds-like': 'administrative-organization-view', // 为了兼容 搜素所属组织机构时候需要传此参数
|
|
2804
|
+
...(modalTableBusProps?.needTypeSearch?{}:{'qp-employmentType-eq': 20}), // 10外部员工;20内部员工
|
|
2873
2805
|
sorter: 'desc-id',
|
|
2874
2806
|
...(requestConfigProp?.addOtherParams || {}),
|
|
2875
2807
|
}, // 默认参数
|
|
@@ -2879,9 +2811,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2879
2811
|
tableSearchForm = [
|
|
2880
2812
|
{ name: 'qp-username-like', label: '账户名称' },
|
|
2881
2813
|
{ name: 'qp-name-like', label: '显示名称' },
|
|
2882
|
-
|
|
2883
|
-
{
|
|
2884
|
-
name: 'qp-code-in', type: 'treeSelect', label: '所属组织机构', field: {
|
|
2814
|
+
// { name: 'qp-employeeNumber-like', label: '员工编码' },
|
|
2815
|
+
{ name: 'qp-code-in', type: 'treeSelect', label: '所属组织机构', field: {
|
|
2885
2816
|
type: 'treeSelect',
|
|
2886
2817
|
props: {
|
|
2887
2818
|
multiple: true,
|
|
@@ -2900,17 +2831,16 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2900
2831
|
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
2901
2832
|
dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
|
|
2902
2833
|
},
|
|
2903
|
-
}
|
|
2904
|
-
},
|
|
2905
|
-
...(modalTableBusProps?.needTypeSearch ? [{ name: 'qp-employmentType-eq', type: 'select', label: '员工类型', initialSource: employeeType }] : []),
|
|
2834
|
+
} },
|
|
2835
|
+
...(modalTableBusProps?.needTypeSearch?[{ name: 'qp-employmentType-eq', type: 'select', label: '员工类型', initialSource: employeeType }]:[]),
|
|
2906
2836
|
{ name: 'qp-email-like', label: '邮箱' },
|
|
2907
2837
|
{ name: 'qp-phone-like', label: '手机号' },
|
|
2908
2838
|
]
|
|
2909
|
-
const queryHeaderParams
|
|
2839
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
2910
2840
|
Promise.all([
|
|
2911
|
-
loadSelectSource(`${prefixUrl.formSelectFix}/orgViewNode/common/getTreeForOrgViewAndTenant`, { 'orgViewCode': 'administrative-organization-view' },
|
|
2912
|
-
]).then((x: any)
|
|
2913
|
-
formatTreeDataSource(x,
|
|
2841
|
+
loadSelectSource(`${prefixUrl.formSelectFix}/orgViewNode/common/getTreeForOrgViewAndTenant`, { 'orgViewCode': 'administrative-organization-view' },getQueryHeadersItem(queryHeaderParams,'qp-code-in')),
|
|
2842
|
+
]).then((x: any)=>{
|
|
2843
|
+
formatTreeDataSource(x,0, 2, tableSearchForm,['code', 'name']);
|
|
2914
2844
|
})
|
|
2915
2845
|
modalTableProps = {
|
|
2916
2846
|
modalTableTitle: '添加员工',
|
|
@@ -2946,11 +2876,11 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2946
2876
|
defaultSort: 3,
|
|
2947
2877
|
render: (text: any) => handleTextOverflow(text),
|
|
2948
2878
|
},
|
|
2949
|
-
...(modalTableBusProps?.needTypeSearch
|
|
2879
|
+
...(modalTableBusProps?.needTypeSearch?[{
|
|
2950
2880
|
title: '员工类型',
|
|
2951
2881
|
dataIndex: 'employmentType',
|
|
2952
2882
|
render: (text: number) => employeeType.find((i: any) => i.value === text)?.text || '-',
|
|
2953
|
-
}]
|
|
2883
|
+
}]:[]),
|
|
2954
2884
|
{
|
|
2955
2885
|
title: '邮箱',
|
|
2956
2886
|
dataIndex: 'email',
|
|
@@ -2959,7 +2889,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2959
2889
|
title: '手机号',
|
|
2960
2890
|
dataIndex: 'phone',
|
|
2961
2891
|
defaultSort: 4,
|
|
2962
|
-
render: (text: any, record: any) => handleTextOverflow(text
|
|
2892
|
+
render: (text: any, record: any) => handleTextOverflow(text||record?.phone),
|
|
2963
2893
|
},
|
|
2964
2894
|
],
|
|
2965
2895
|
...modalTableBusProps
|
|
@@ -2967,7 +2897,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
2967
2897
|
}
|
|
2968
2898
|
|
|
2969
2899
|
// 配送方式选择器
|
|
2970
|
-
if
|
|
2900
|
+
if(type === 'deliveryMode') {
|
|
2971
2901
|
selectProps = {
|
|
2972
2902
|
placeholder: '输入配送方式编码或名称',
|
|
2973
2903
|
renderTableColumns: [
|
|
@@ -3001,8 +2931,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3001
2931
|
tableSearchForm = [
|
|
3002
2932
|
{ name: 'qp-name-like', label: '配送方式名称' },
|
|
3003
2933
|
{ name: 'qp-code-like', label: '配送方式编码' },
|
|
3004
|
-
{
|
|
3005
|
-
name: logisCompanyCodeSingleSearchName, type: 'select', label: '所属物流商', field: {
|
|
2934
|
+
{ name: logisCompanyCodeSingleSearchName, type: 'select', label: '所属物流商', field: {
|
|
3006
2935
|
type: 'select',
|
|
3007
2936
|
props: {
|
|
3008
2937
|
...(isLogisCompanyCodeSingleSearch ? {} : {
|
|
@@ -3017,12 +2946,10 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3017
2946
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
3018
2947
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
3019
2948
|
},
|
|
3020
|
-
}
|
|
3021
|
-
},
|
|
2949
|
+
} },
|
|
3022
2950
|
{ name: 'qp-recordChannnelCode-in', type: 'select', label: '单号获取通道', initialSource: getDictionarySource('BSC00004') },
|
|
3023
2951
|
{ name: 'qp-arrivalPaySupport-in', type: 'select', label: '是否支持到付', initialSource: arrivalPaySupportList },
|
|
3024
|
-
{
|
|
3025
|
-
name: 'qp-sheetTemplateCode-in', type: 'select', label: '面单模板', field: {
|
|
2952
|
+
{ name: 'qp-sheetTemplateCode-in', type: 'select', label: '面单模板', field: {
|
|
3026
2953
|
type: 'select',
|
|
3027
2954
|
props: {
|
|
3028
2955
|
mode: 'multiple',
|
|
@@ -3035,23 +2962,22 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3035
2962
|
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
3036
2963
|
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
3037
2964
|
},
|
|
3038
|
-
}
|
|
3039
|
-
},
|
|
2965
|
+
} },
|
|
3040
2966
|
{ name: 'qp-remark-like', label: '备注' },
|
|
3041
2967
|
]
|
|
3042
|
-
const queryHeaderParams
|
|
2968
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
3043
2969
|
Promise.all([
|
|
3044
2970
|
loadSelectSource(`${prefixUrl.formSelectFix}/logisCompany`, {
|
|
3045
2971
|
pageSize: 5000,
|
|
3046
2972
|
currentPage: 1,
|
|
3047
|
-
},
|
|
2973
|
+
},getQueryHeadersItem(queryHeaderParams,logisCompanyCodeSingleSearchName)),
|
|
3048
2974
|
loadSelectSource(`${prefixUrl.formSelectFix}/printTemplate`, {
|
|
3049
2975
|
pageSize: 5000,
|
|
3050
2976
|
currentPage: 1,
|
|
3051
|
-
},
|
|
3052
|
-
]).then((x: any)
|
|
3053
|
-
formatSource(x,
|
|
3054
|
-
formatSource(x,
|
|
2977
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-sheetTemplateCode-in'))
|
|
2978
|
+
]).then((x: any)=>{
|
|
2979
|
+
formatSource(x,0, 2, tableSearchForm);
|
|
2980
|
+
formatSource(x,1, 5, tableSearchForm);
|
|
3055
2981
|
})
|
|
3056
2982
|
modalTableProps = {
|
|
3057
2983
|
modalTableTitle: '选择配送方式',
|
|
@@ -3102,7 +3028,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3102
3028
|
}
|
|
3103
3029
|
|
|
3104
3030
|
// 规则模板选择器
|
|
3105
|
-
if
|
|
3031
|
+
if(type === 'ruleTemplate') {
|
|
3106
3032
|
selectProps = {
|
|
3107
3033
|
placeholder: '输入规则模板编码或名称',
|
|
3108
3034
|
renderTableColumns: [
|
|
@@ -3178,7 +3104,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3178
3104
|
}
|
|
3179
3105
|
|
|
3180
3106
|
// 角色选择器
|
|
3181
|
-
if
|
|
3107
|
+
if(type === 'role') {
|
|
3182
3108
|
selectProps = {
|
|
3183
3109
|
placeholder: '输入角色编码或名称',
|
|
3184
3110
|
renderTableColumns: [
|
|
@@ -3211,8 +3137,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3211
3137
|
tableSearchForm = [
|
|
3212
3138
|
{ name: 'qp-name-like', label: '角色名称' },
|
|
3213
3139
|
{ name: 'qp-code-like', label: '角色编码' },
|
|
3214
|
-
{
|
|
3215
|
-
name: 'qp-categoryCode-eq', type: 'select', label: '角色分类', field: {
|
|
3140
|
+
{ name: 'qp-categoryCode-eq', type: 'select', label: '角色分类', field: {
|
|
3216
3141
|
type: 'select',
|
|
3217
3142
|
props: {
|
|
3218
3143
|
notFoundContent: '暂无数据',
|
|
@@ -3227,14 +3152,14 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3227
3152
|
}
|
|
3228
3153
|
},
|
|
3229
3154
|
]
|
|
3230
|
-
const queryHeaderParams
|
|
3155
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
3231
3156
|
Promise.all([
|
|
3232
3157
|
loadSelectSource(`${prefixUrl.formSelectFix}/permissionCategory`, {
|
|
3233
3158
|
pageSize: 5000,
|
|
3234
3159
|
currentPage: 1,
|
|
3235
|
-
},
|
|
3236
|
-
]).then((x: any)
|
|
3237
|
-
formatSource(x,
|
|
3160
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-categoryCode-eq')),
|
|
3161
|
+
]).then((x: any)=>{
|
|
3162
|
+
formatSource(x,0, 2, tableSearchForm);
|
|
3238
3163
|
})
|
|
3239
3164
|
modalTableProps = {
|
|
3240
3165
|
modalTableTitle: '选择角色',
|
|
@@ -3279,7 +3204,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3279
3204
|
}
|
|
3280
3205
|
|
|
3281
3206
|
// 销售渠道选择器
|
|
3282
|
-
if
|
|
3207
|
+
if(type === 'market-channel') {
|
|
3283
3208
|
selectProps = {
|
|
3284
3209
|
placeholder: '输入销售渠道编码或名称',
|
|
3285
3210
|
renderTableColumns: [
|
|
@@ -3314,31 +3239,29 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3314
3239
|
tableSearchForm = [
|
|
3315
3240
|
{ name: 'qp-name-like', label: '销售渠道名称' },
|
|
3316
3241
|
{ name: 'qp-code-like', label: '销售渠道编码' },
|
|
3317
|
-
{
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
}
|
|
3332
|
-
},
|
|
3242
|
+
{ name: 'qp-salesOrgCode-in', type: 'select', label: '所属销售组织', field: {
|
|
3243
|
+
type: 'select',
|
|
3244
|
+
props: {
|
|
3245
|
+
mode: 'multiple',
|
|
3246
|
+
notFoundContent: '暂无数据',
|
|
3247
|
+
allowClear: true,
|
|
3248
|
+
showSearch: true,
|
|
3249
|
+
showArrow: true,
|
|
3250
|
+
maxTagCount: 1,
|
|
3251
|
+
optionFilterProp: 'children',
|
|
3252
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
3253
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
3254
|
+
},
|
|
3255
|
+
} },
|
|
3333
3256
|
]
|
|
3334
|
-
const queryHeaderParams
|
|
3257
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
3335
3258
|
Promise.all([
|
|
3336
3259
|
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
|
|
3337
3260
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
3338
3261
|
'qp-realOrg-eq': true,
|
|
3339
3262
|
'qp-status-eq': 10
|
|
3340
|
-
},
|
|
3341
|
-
]).then((x: any)
|
|
3263
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-salesOrgCode-in')),
|
|
3264
|
+
]).then((x: any)=>{
|
|
3342
3265
|
formatSource(x, 0, 2, tableSearchForm);
|
|
3343
3266
|
})
|
|
3344
3267
|
modalTableProps = {
|
|
@@ -3402,59 +3325,58 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3402
3325
|
sourceName: 'organizationCode',
|
|
3403
3326
|
...requestConfigProp
|
|
3404
3327
|
},
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
name: 'qp-orgViewCode-in', type: 'select', label: '业务职能', field: {
|
|
3410
|
-
type: 'select',
|
|
3411
|
-
props: {
|
|
3412
|
-
mode: 'multiple',
|
|
3413
|
-
notFoundContent: '暂无数据',
|
|
3414
|
-
allowClear: true,
|
|
3415
|
-
showSearch: true,
|
|
3416
|
-
showArrow: true,
|
|
3417
|
-
maxTagCount: 1,
|
|
3418
|
-
optionFilterProp: 'children',
|
|
3419
|
-
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
3420
|
-
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
3421
|
-
},
|
|
3422
|
-
}
|
|
3423
|
-
},
|
|
3424
|
-
{
|
|
3425
|
-
name: 'qp-orgType-in',
|
|
3328
|
+
tableSearchForm = [
|
|
3329
|
+
{ name: 'qp-name-like', label: '组织名称' },
|
|
3330
|
+
{ name: 'qp-code-like', label: '组织编码' },
|
|
3331
|
+
{ name: 'qp-orgViewCode-in', type: 'select', label: '业务职能', field: {
|
|
3426
3332
|
type: 'select',
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3333
|
+
props: {
|
|
3334
|
+
mode: 'multiple',
|
|
3335
|
+
notFoundContent: '暂无数据',
|
|
3336
|
+
allowClear: true,
|
|
3337
|
+
showSearch: true,
|
|
3338
|
+
showArrow: true,
|
|
3339
|
+
maxTagCount: 1,
|
|
3340
|
+
optionFilterProp: 'children',
|
|
3341
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
3342
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
3343
|
+
},
|
|
3344
|
+
}
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
name: 'qp-orgType-in',
|
|
3348
|
+
type: 'select',
|
|
3349
|
+
label: '组织类型',
|
|
3350
|
+
field: {
|
|
3351
|
+
type: 'select',
|
|
3352
|
+
props: {
|
|
3353
|
+
mode: 'multiple',
|
|
3354
|
+
allowClear: true,
|
|
3355
|
+
maxTagCount: 1,
|
|
3435
3356
|
},
|
|
3436
|
-
initialSource: orgType
|
|
3437
3357
|
},
|
|
3438
|
-
|
|
3439
|
-
|
|
3358
|
+
initialSource: orgType
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
name: 'qp-nodeType-in',
|
|
3362
|
+
type: 'select',
|
|
3363
|
+
label: '组织形态',
|
|
3364
|
+
field: {
|
|
3440
3365
|
type: 'select',
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
mode: 'multiple',
|
|
3446
|
-
allowClear: true,
|
|
3447
|
-
maxTagCount: 1,
|
|
3448
|
-
},
|
|
3366
|
+
props: {
|
|
3367
|
+
mode: 'multiple',
|
|
3368
|
+
allowClear: true,
|
|
3369
|
+
maxTagCount: 1,
|
|
3449
3370
|
},
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3371
|
+
},
|
|
3372
|
+
initialSource: nodeType
|
|
3373
|
+
}]
|
|
3374
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
3453
3375
|
Promise.all([
|
|
3454
3376
|
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getOrgViewListNoPage`, {
|
|
3455
3377
|
'qp-status-eq': 10
|
|
3456
|
-
},
|
|
3457
|
-
]).then((x: any)
|
|
3378
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgViewCode-in')),
|
|
3379
|
+
]).then((x: any)=>{
|
|
3458
3380
|
formatSource(x, 0, 2, tableSearchForm);
|
|
3459
3381
|
})
|
|
3460
3382
|
modalTableProps = {
|
|
@@ -3509,7 +3431,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3509
3431
|
}
|
|
3510
3432
|
|
|
3511
3433
|
// 人员选择器
|
|
3512
|
-
if
|
|
3434
|
+
if(type === 'person') {
|
|
3513
3435
|
selectProps = {
|
|
3514
3436
|
placeholder: '输入人员编码或名称',
|
|
3515
3437
|
renderTableColumns: [
|
|
@@ -3579,7 +3501,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3579
3501
|
}
|
|
3580
3502
|
|
|
3581
3503
|
// 品牌选择器
|
|
3582
|
-
if
|
|
3504
|
+
if(type === 'brand') {
|
|
3583
3505
|
selectProps = {
|
|
3584
3506
|
placeholder: '输入品牌编码或名称',
|
|
3585
3507
|
renderTableColumns: [
|
|
@@ -3633,7 +3555,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3633
3555
|
JSON.parse(text || '[]').map((ites: any, index: any) =>
|
|
3634
3556
|
tableColumnsImage(ites),
|
|
3635
3557
|
)) ||
|
|
3636
|
-
|
|
3558
|
+
tableColumnsImage(text)}
|
|
3637
3559
|
</Image.PreviewGroup>
|
|
3638
3560
|
),
|
|
3639
3561
|
},
|
|
@@ -3665,8 +3587,8 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3665
3587
|
}
|
|
3666
3588
|
}
|
|
3667
3589
|
|
|
3668
|
-
|
|
3669
|
-
if
|
|
3590
|
+
// 价格项选择器
|
|
3591
|
+
if(type === 'priceItem') {
|
|
3670
3592
|
selectProps = {
|
|
3671
3593
|
placeholder: '输入价格项编码或名称',
|
|
3672
3594
|
renderTableColumns: [
|
|
@@ -3723,7 +3645,7 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3723
3645
|
title: '创建时间',
|
|
3724
3646
|
dataIndex: 'createTime',
|
|
3725
3647
|
defaultSort: 3,
|
|
3726
|
-
render: (text: any) =>
|
|
3648
|
+
render: (text: any) => handleTooltip(text, true),
|
|
3727
3649
|
},
|
|
3728
3650
|
{
|
|
3729
3651
|
title: '创建人',
|
|
@@ -3767,59 +3689,58 @@ export function commonFun(type?: string, prefixUrl: any, parentProps?: any) {
|
|
|
3767
3689
|
sourceName: 'supplierCode',
|
|
3768
3690
|
...requestConfigProp
|
|
3769
3691
|
},
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
name: 'qp-orgViewCode-in', type: 'select', label: '业务职能', field: {
|
|
3775
|
-
type: 'select',
|
|
3776
|
-
props: {
|
|
3777
|
-
mode: 'multiple',
|
|
3778
|
-
notFoundContent: '暂无数据',
|
|
3779
|
-
allowClear: true,
|
|
3780
|
-
showSearch: true,
|
|
3781
|
-
showArrow: true,
|
|
3782
|
-
maxTagCount: 1,
|
|
3783
|
-
optionFilterProp: 'children',
|
|
3784
|
-
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
3785
|
-
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
3786
|
-
},
|
|
3787
|
-
}
|
|
3788
|
-
},
|
|
3789
|
-
{
|
|
3790
|
-
name: 'qp-orgType-in',
|
|
3692
|
+
tableSearchForm = [
|
|
3693
|
+
{ name: 'qp-name-like', label: '组织名称' },
|
|
3694
|
+
{ name: 'qp-code-like', label: '组织编码' },
|
|
3695
|
+
{ name: 'qp-orgViewCode-in', type: 'select', label: '业务职能', field: {
|
|
3791
3696
|
type: 'select',
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3697
|
+
props: {
|
|
3698
|
+
mode: 'multiple',
|
|
3699
|
+
notFoundContent: '暂无数据',
|
|
3700
|
+
allowClear: true,
|
|
3701
|
+
showSearch: true,
|
|
3702
|
+
showArrow: true,
|
|
3703
|
+
maxTagCount: 1,
|
|
3704
|
+
optionFilterProp: 'children',
|
|
3705
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
3706
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
3707
|
+
},
|
|
3708
|
+
}
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
name: 'qp-orgType-in',
|
|
3712
|
+
type: 'select',
|
|
3713
|
+
label: '组织类型',
|
|
3714
|
+
field: {
|
|
3715
|
+
type: 'select',
|
|
3716
|
+
props: {
|
|
3717
|
+
mode: 'multiple',
|
|
3718
|
+
allowClear: true,
|
|
3719
|
+
maxTagCount: 1,
|
|
3800
3720
|
},
|
|
3801
|
-
initialSource: orgType
|
|
3802
3721
|
},
|
|
3803
|
-
|
|
3804
|
-
|
|
3722
|
+
initialSource: orgType
|
|
3723
|
+
},
|
|
3724
|
+
{
|
|
3725
|
+
name: 'qp-nodeType-in',
|
|
3726
|
+
type: 'select',
|
|
3727
|
+
label: '组织形态',
|
|
3728
|
+
field: {
|
|
3805
3729
|
type: 'select',
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
mode: 'multiple',
|
|
3811
|
-
allowClear: true,
|
|
3812
|
-
maxTagCount: 1,
|
|
3813
|
-
},
|
|
3730
|
+
props: {
|
|
3731
|
+
mode: 'multiple',
|
|
3732
|
+
allowClear: true,
|
|
3733
|
+
maxTagCount: 1,
|
|
3814
3734
|
},
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3735
|
+
},
|
|
3736
|
+
initialSource: nodeType
|
|
3737
|
+
}]
|
|
3738
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
3818
3739
|
Promise.all([
|
|
3819
3740
|
loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getOrgViewListNoPage`, {
|
|
3820
3741
|
'qp-status-eq': 10
|
|
3821
|
-
},
|
|
3822
|
-
]).then((x: any)
|
|
3742
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgViewCode-in')),
|
|
3743
|
+
]).then((x: any)=>{
|
|
3823
3744
|
formatSource(x, 0, 2, tableSearchForm);
|
|
3824
3745
|
})
|
|
3825
3746
|
modalTableProps = {
|