@bit-sun/business-component 4.2.1-alpha.1-aiwei → 4.2.1-alpha.11-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.
@@ -6,13 +6,13 @@ import { handleTextOverflow, tableColumnsImage, handleTooltip } from '@/componen
6
6
  import { getSkuImg } from '@/utils/TableUtils';
7
7
  import { getEmployeeCode, getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
8
8
  import { Image } from 'antd';
9
- import { isBoolean } from 'lodash';
9
+ import { isBoolean, trim } from 'lodash';
10
10
 
11
- const hasDictSharingType = getDictionarySource('UC000013')?.length;
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?:any) {
15
- const { requestConfig:requestConfigProp={}, selectProps:selectConfigProps={}, modalTableProps:modalTableBusProps={}, hiddenFields=[]} = parentProps || {};
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,changeSearchForm: any,resKeyValue=['code', 'name']) => {
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 :(data?.items || data?.list || data?.children || []);
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] = {...changeSearchForm[changePosition], initialSource: formatData}
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=['id', 'name'],
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(data && typeof data === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
69
+ if (data && typeof data === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
70
70
  data = [data];
71
- disabledJudge=false
71
+ disabledJudge = false
72
72
  }
73
- if(nodeDisabledJudge) {
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||[]; // 控制 选择器弹窗中查询条件额外请求头的列表--isOpen 是否开启, 设置true,默认取选择器的请求头;false则没有请求头。extralHeaders:当设置且isOpen为true时,取设置的请求头。queryKey为查询条件的key值。
95
+ let querySelectHeadersList = modalTableBusProps?.querySelectHeadersList || []; // 控制 选择器弹窗中查询条件额外请求头的列表--isOpen 是否开启, 设置true,默认取选择器的请求头;false则没有请求头。extralHeaders:当设置且isOpen为true时,取设置的请求头。queryKey为查询条件的key值。
96
96
 
97
97
  // 供应商选择器
98
- if(type === 'supplier') {
98
+ if (type === 'supplier') {
99
99
  selectProps = {
100
100
  placeholder: '输入供应商编码或名称',
101
101
  renderTableColumns: [
@@ -113,7 +113,8 @@ 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
- { name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
116
+ {
117
+ name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
117
118
  type: 'select',
118
119
  props: {
119
120
  mode: 'multiple',
@@ -126,8 +127,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
126
127
  filterOption: (input: string, option: { props: { children: string } }) =>
127
128
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
128
129
  },
129
- } },
130
- { name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
130
+ }
131
+ },
132
+ {
133
+ name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
131
134
  type: 'select',
132
135
  props: {
133
136
  mode: 'multiple',
@@ -140,8 +143,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
140
143
  filterOption: (input: string, option: { props: { children: string } }) =>
141
144
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
142
145
  },
143
- } },
144
- { name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
146
+ }
147
+ },
148
+ {
149
+ name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
145
150
  type: 'select',
146
151
  props: {
147
152
  mode: 'multiple',
@@ -154,29 +159,30 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
154
159
  filterOption: (input: string, option: { props: { children: string } }) =>
155
160
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
156
161
  },
157
- } },
162
+ }
163
+ },
158
164
  { name: 'qp-sharingType-eq', type: 'select', label: '共享类型', initialSource: sharingTypeDataList },
159
165
  ]
160
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
166
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
161
167
  Promise.all([
162
168
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
163
169
  pageSize: 5000,
164
170
  currentPage: 1,
165
171
  'qp-companyType-eq': '30',
166
- },getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
172
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-conglomerateCode-in')),
167
173
  loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
168
174
  pageSize: 5000,
169
175
  currentPage: 1,
170
- },getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
176
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-accountingCode-in')),
171
177
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
172
178
  pageSize: 5000,
173
179
  currentPage: 1,
174
180
  'qp-companyType-eq': '20',
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);
181
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-companyCode-in'))
182
+ ]).then((x: any) => {
183
+ formatSource(x, 0, 2, tableSearchForm);
184
+ formatSource(x, 1, 3, tableSearchForm);
185
+ formatSource(x, 2, 4, tableSearchForm);
180
186
  })
181
187
  modalTableProps = {
182
188
  modalTableTitle: '选择供应商',
@@ -220,7 +226,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
220
226
  ...modalTableBusProps,
221
227
  }
222
228
  }
223
- if(type === 'supplier2') {
229
+ if (type === 'supplier2') {
224
230
  // 版本2
225
231
  selectProps = {
226
232
  placeholder: '输入供应商编码或名称',
@@ -239,7 +245,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
239
245
  tableSearchForm = [
240
246
  { name: 'qp-name-like', label: '供应商名称' }, // field: { type: 'input', props: { placeholder: '请输入'}}
241
247
  { name: 'qp-code-like', label: '供应商编码' },
242
- { name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
248
+ {
249
+ name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
243
250
  type: 'select',
244
251
  props: {
245
252
  // mode: 'multiple',
@@ -252,8 +259,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
252
259
  filterOption: (input: string, option: { props: { children: string } }) =>
253
260
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
254
261
  },
255
- } },
256
- { name: 'qp-supplierOrgCode-eq', type: 'select', label: '使用组织', field: {
262
+ }
263
+ },
264
+ {
265
+ name: 'qp-supplierOrgCode-eq', type: 'select', label: '使用组织', field: {
257
266
  type: 'select',
258
267
  props: {
259
268
  // mode: 'multiple',
@@ -266,16 +275,17 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
266
275
  filterOption: (input: string, option: { props: { children: string } }) =>
267
276
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
268
277
  },
269
- } },
278
+ }
279
+ },
270
280
  ]
271
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
281
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
272
282
  Promise.all([
273
- loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`,{},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
274
- ]).then((x: any)=>{
283
+ loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {}, getQueryHeadersItem(queryHeaderParams, 'qp-createOrgCode-eq')),
284
+ ]).then((x: any) => {
275
285
  const firstElement = x?.[0];
276
286
  const allList = firstElement && [firstElement, firstElement];
277
- formatSource(allList,0, 2, tableSearchForm);
278
- formatSource(allList,1, 3, tableSearchForm);
287
+ formatSource(allList, 0, 2, tableSearchForm);
288
+ formatSource(allList, 1, 3, tableSearchForm);
279
289
  })
280
290
  modalTableProps = {
281
291
  modalTableTitle: '选择供应商',
@@ -312,7 +322,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
312
322
  }
313
323
 
314
324
  // 商品选择器sku
315
- if(type === 'skuCommodity') {
325
+ if (type === 'skuCommodity') {
316
326
  requestConfig = {
317
327
  url: `${prefixUrl.selectPrefix}/sku/doPageBySelect/v4`,
318
328
  method: 'post',
@@ -343,56 +353,61 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
343
353
  ],
344
354
  ...selectConfigProps,
345
355
  }
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
- },
356
+ tableSearchForm = [
357
+ {
358
+ name: 'qp-skuCode-in', label: 'SKU编码', field: {
359
+ type: 'multipleQuerySearchSelect',
360
+ props: {
361
+ selectProps: {
362
+ mode: "multiple",
363
+ placeholder: '请输入SKU编码查询'
364
+ },
365
+ requestConfig: {
366
+ url: '/items/sku//listNoPage/Simple',
367
+ filter: 'qp-skuCode,name-orGroup,like',
368
+ mappingTextField: 'name',
369
+ mappingValueField: 'skuCode',
370
+ sourceName: 'qp-skuCode-in',
371
+ specialBracket: true,
372
+ otherParams: {
373
+ 'ownOrgSign': getCurrentTargetBgId(),
374
+ 'ctl-count': true
375
+ }, // 默认参数
376
+ },
377
+ }
366
378
  }
367
- } },
379
+ },
368
380
  { name: 'qp-skuName-like', label: 'SKU名称' },
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
- },
381
+ {
382
+ name: 'qp-itemCode-in', label: 'SPU编码', field: {
383
+ type: 'multipleQuerySearchSelect',
384
+ props: {
385
+ selectProps: {
386
+ placeholder: '请输入SPU编码查询'
387
+ },
388
+ requestConfig: {
389
+ url: '/items/item/listNoPage/Simple',
390
+ filter: 'qp-itemCode,name-orGroup,like',
391
+ mappingTextField: 'name',
392
+ mappingValueField: 'itemCode',
393
+ sourceName: 'qp-itemCode-in',
394
+ specialBracket: true,
395
+ otherParams: {
396
+ 'ownOrgSign': getCurrentTargetBgId(),
397
+ 'ctl-count': true
398
+ }, // 默认参数
399
+ },
400
+ }
387
401
  }
388
- } },
402
+ },
389
403
  // { name: 'qp-eancode-in', label: '商品条码', field: {
390
404
  // type: 'multipleQueryInput',
391
405
  // props: {
392
406
  // ...(requestConfigProp?.itemEancodeValueRequestConfig || {}),
393
407
  // },
394
408
  // }},
395
- { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
409
+ {
410
+ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
396
411
  type: 'select',
397
412
  props: {
398
413
  mode: 'multiple',
@@ -405,8 +420,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
405
420
  filterOption: (input: string, option: { props: { children: string } }) =>
406
421
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
407
422
  },
408
- } },
409
- { name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
423
+ }
424
+ },
425
+ {
426
+ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
410
427
  type: 'treeSelect',
411
428
  props: {
412
429
  treeData: [],
@@ -423,112 +440,127 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
423
440
  },
424
441
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
425
442
  },
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
- },
446
443
  }
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,
460
- },
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,
474
- },
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,
444
+ },
445
+ {
446
+ name: 'qp-skcCode-in', label: 'SKC编码', field: {
447
+ type: 'multipleQuerySearchSelect',
448
+ props: {
449
+ selectProps: {
450
+ mode: "multiple",
451
+ placeholder: '请输入SKC编码查询'
516
452
  },
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,
453
+ requestConfig: {
454
+ url: '/items/sku//listNoPage/Simple',
455
+ filter: 'qp-skcCode,name-orGroup,like',
456
+ mappingTextField: 'name',
457
+ mappingValueField: 'skcCode',
458
+ sourceName: 'qp-skcCode-in',
459
+ specialBracket: true,
460
+ otherParams: {
461
+ 'ownOrgSign': getCurrentTargetBgId(),
462
+ 'ctl-count': true
463
+ }, // 默认参数
530
464
  },
531
- } },
465
+ }
466
+ }
467
+ },
468
+ {
469
+ name: 'qp-year-in', type: 'select', label: '年份', field: {
470
+ type: 'select',
471
+ props: {
472
+ mode: 'multiple',
473
+ notFoundContent: '暂无数据',
474
+ allowClear: true,
475
+ showSearch: true,
476
+ showArrow: true,
477
+ maxTagCount: 1,
478
+ optionFilterProp: 'children',
479
+ filterOption: (input: string, option: { props: { children: string } }) =>
480
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
481
+ },
482
+ }
483
+ },
484
+ {
485
+ name: 'qp-season-in', type: 'select', label: '季节', field: {
486
+ type: 'select',
487
+ props: {
488
+ mode: 'multiple',
489
+ notFoundContent: '暂无数据',
490
+ allowClear: true,
491
+ showSearch: true,
492
+ showArrow: true,
493
+ maxTagCount: 1,
494
+ optionFilterProp: 'children',
495
+ filterOption: (input: string, option: { props: { children: string } }) =>
496
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
497
+ },
498
+ }
499
+ },
500
+ {
501
+ name: 'qp-zzbdbm-in', type: 'select', label: '波段', field: {
502
+ type: 'select',
503
+ props: {
504
+ mode: 'multiple',
505
+ notFoundContent: '暂无数据',
506
+ allowClear: true,
507
+ showSearch: true,
508
+ showArrow: true,
509
+ maxTagCount: 1,
510
+ optionFilterProp: 'children',
511
+ filterOption: (input: string, option: { props: { children: string } }) =>
512
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
513
+ },
514
+ }
515
+ },
516
+ {
517
+ name: 'qp-zzdlbm-in', type: 'select', label: '品类', field: {
518
+ type: 'select',
519
+ props: {
520
+ mode: 'multiple',
521
+ notFoundContent: '暂无数据',
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
+ },
532
564
 
533
565
  // { name: 'UNIQUE_SPEC', label: '属性', field: {
534
566
  // type: 'proppertySelector',
@@ -544,58 +576,57 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
544
576
  { isOpen: true, queryKey: 'qp-zzzlbm-in' },
545
577
  { isOpen: true, queryKey: 'qp-zzxlbm-in' },
546
578
  ]
547
- const queryHeaderParams = getQueryHeadersList({defaultQSHL, querySelectHeadersList, extralHeaders});
579
+ const queryHeaderParams = getQueryHeadersList({ defaultQSHL, querySelectHeadersList, extralHeaders });
548
580
 
549
581
  Promise.all([
550
582
  loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
551
583
  pageSize: 5000,
552
584
  currentPage: 1,
553
585
  'ctl-withAuth': true
554
- },getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
586
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-brandId-in')),
555
587
  loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
556
588
  pageSize: 5000,
557
589
  currentPage: 1,
558
- },getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
590
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-categoryId-in')),
559
591
  loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
560
592
  'qp-propertyCode-eq': 'PROP_YEAR',
561
593
  pageSize: 999,
562
- }, getQueryHeadersItem(queryHeaderParams,'qp-year-in')),
594
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-year-in')),
563
595
  loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
564
596
  'qp-propertyCode-eq': 'PROP_SEASON',
565
597
  pageSize: 999,
566
- }, getQueryHeadersItem(queryHeaderParams,'qp-season-in')),
598
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-season-in')),
567
599
  loadSelectSource(`${prefixUrl.formSelectFix}/band`, {
568
600
  pageSize: 999,
569
601
  currentPage: 1,
570
- }, getQueryHeadersItem(queryHeaderParams,'qp-zzbdbm-in')),
602
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-zzbdbm-in')),
571
603
  loadSelectSource(`${prefixUrl.formSelectFix}/rule/getClassPropertyValue/110000217`, {
572
- }, getQueryHeadersItem(queryHeaderParams,'qp-zzdlbm-in')),
604
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-zzdlbm-in')),
573
605
  loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
574
606
  'qp-propertyCode-eq': 'MID_CATA',
575
607
  pageSize: 999,
576
- }, getQueryHeadersItem(queryHeaderParams,'qp-zzzlbm-in')),
608
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-zzzlbm-in')),
577
609
  loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
578
610
  'qp-propertyCode-eq': 'PROP_SUBCATEORY',
579
611
  pageSize: 999,
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'])
612
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-zzxlbm-in')),
613
+ ]).then((x: any) => {
614
+ formatSource(x, 0, 3, tableSearchForm, ['id', 'name'])
615
+ formatTreeDataSource(x, 1, 4, tableSearchForm)
616
+ formatSource(x, 0, getFieldIndex(tableSearchForm, 'qp-brandId-in'), tableSearchForm, ['id', 'name'])
617
+ formatTreeDataSource(x, 1, getFieldIndex(tableSearchForm, 'qp-categoryId-in'), tableSearchForm)
618
+ formatSource(x, 2, getFieldIndex(tableSearchForm, 'qp-year-in'), tableSearchForm, ['value', 'value'])
619
+ formatSource(x, 3, getFieldIndex(tableSearchForm, 'qp-season-in'), tableSearchForm, ['value', 'value'])
620
+ formatSource(x, 4, getFieldIndex(tableSearchForm, 'qp-zzbdbm-in'), tableSearchForm, ['bandCode', 'bandName'])
621
+ formatSource(x, 5, getFieldIndex(tableSearchForm, 'qp-zzdlbm-in'), tableSearchForm, ['value', 'value'])
622
+ formatSource(x, 6, getFieldIndex(tableSearchForm, 'qp-zzzlbm-in'), tableSearchForm, ['value', 'value'])
623
+ formatSource(x, 7, getFieldIndex(tableSearchForm, 'qp-zzxlbm-in'), tableSearchForm, ['value', 'value'])
592
624
  })
593
625
  modalTableProps = {
594
626
  modalTableTitle: '选择SKU',
595
627
  tableSearchForm,
596
628
  isHorizontally: true,
597
629
  tableSearchColSpan: 6,
598
- visibleFieldsCount: 13,
599
630
  tableColumns: [
600
631
  {
601
632
  title: '序号',
@@ -616,7 +647,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
616
647
  title: '图片',
617
648
  dataIndex: 'itemUrl',
618
649
  defaultSort: 1,
619
- render: (text: any,record: any) => tableColumnsImage(getSkuImg(record), { width: 16, height: 16 }),
650
+ render: (text: any, record: any) => tableColumnsImage(getSkuImg(record), { width: 16, height: 16 }),
620
651
  },
621
652
  {
622
653
  title: '商品条码',
@@ -661,7 +692,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
661
692
  }
662
693
 
663
694
  // 商品选择器spu
664
- if(type === 'spuCommodity') {
695
+ if (type === 'spuCommodity') {
665
696
  selectProps = {
666
697
  placeholder: '输入商品(SPU)编码或名称',
667
698
  renderTableColumns: [
@@ -692,7 +723,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
692
723
  tableSearchForm = [
693
724
  { name: 'itemCode*multiInput', label: 'SPU编码', type: 'multipleQueryInput' },
694
725
  { name: 'name*multiInput', label: 'SPU名称', type: 'multipleQueryInput' },
695
- { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
726
+ {
727
+ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
696
728
  type: 'select',
697
729
  props: {
698
730
  mode: 'multiple',
@@ -705,8 +737,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
705
737
  filterOption: (input: string, option: { props: { children: string } }) =>
706
738
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
707
739
  },
708
- } },
709
- { name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
740
+ }
741
+ },
742
+ {
743
+ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
710
744
  type: 'treeSelect',
711
745
  props: {
712
746
  treeData: [],
@@ -723,8 +757,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
723
757
  },
724
758
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
725
759
  },
726
- } },
727
- { name: 'qp-classId-in', type: 'select', label: '品类', field: {
760
+ }
761
+ },
762
+ {
763
+ name: 'qp-classId-in', type: 'select', label: '品类', field: {
728
764
  type: 'select',
729
765
  props: {
730
766
  mode: 'multiple',
@@ -737,27 +773,28 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
737
773
  filterOption: (input: string, option: { props: { children: string } }) =>
738
774
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
739
775
  },
740
- } },
776
+ }
777
+ },
741
778
  ]
742
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
779
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
743
780
  Promise.all([
744
781
  loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
745
782
  pageSize: 5000,
746
783
  currentPage: 1,
747
784
  'ctl-withAuth': true
748
- },getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
785
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-brandId-in')),
749
786
  loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
750
787
  pageSize: 5000,
751
788
  currentPage: 1,
752
- },getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
789
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-categoryId-in')),
753
790
  loadSelectSource(`${prefixUrl.formSelectFix}/class/withProperty`, {
754
791
  pageSize: 5000,
755
792
  currentPage: 1,
756
- },getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
757
- ]).then((x: any)=>{
758
- formatSource(x,0, 2, tableSearchForm,['id','name']);
759
- formatTreeDataSource(x,1, 3, tableSearchForm);
760
- formatSource(x,2, 4, tableSearchForm,['id','name']);
793
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-classId-in')),
794
+ ]).then((x: any) => {
795
+ formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
796
+ formatTreeDataSource(x, 1, 3, tableSearchForm);
797
+ formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
761
798
  })
762
799
  modalTableProps = {
763
800
  modalTableTitle: '选择商品(SPU) ',
@@ -798,7 +835,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
798
835
  }
799
836
 
800
837
  // 新库存商品选择器spu
801
- if(type === 'spuCommodityWithProperty') {
838
+ if (type === 'spuCommodityWithProperty') {
802
839
  selectProps = {
803
840
  placeholder: '输入spu编码或名称',
804
841
  renderTableColumns: [
@@ -830,7 +867,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
830
867
  tableSearchForm = [
831
868
  { name: 'itemCode*multiInput', label: 'SPU编码', type: 'multipleQueryInput' },
832
869
  { name: 'name*multiInput', label: 'SPU名称', type: 'multipleQueryInput' },
833
- { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
870
+ {
871
+ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
834
872
  type: 'select',
835
873
  props: {
836
874
  mode: 'multiple',
@@ -843,8 +881,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
843
881
  filterOption: (input: string, option: { props: { children: string } }) =>
844
882
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
845
883
  },
846
- } },
847
- { name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
884
+ }
885
+ },
886
+ {
887
+ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
848
888
  type: 'treeSelect',
849
889
  props: {
850
890
  treeData: [],
@@ -861,8 +901,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
861
901
  },
862
902
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
863
903
  },
864
- } },
865
- { name: 'qp-classId-in', type: 'select', label: '品类', field: {
904
+ }
905
+ },
906
+ {
907
+ name: 'qp-classId-in', type: 'select', label: '品类', field: {
866
908
  type: 'select',
867
909
  props: {
868
910
  mode: 'multiple',
@@ -875,82 +917,83 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
875
917
  filterOption: (input: string, option: { props: { children: string } }) =>
876
918
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
877
919
  },
878
- } },
879
- {
880
- name: 'qp-year-in',
881
- label: '年份',
882
- field: {
883
- type: 'itemPropertySelector',
884
- props: {
885
- propertyCode: 'SX0000114',
886
- mode: 'multiple',
887
- }
920
+ }
921
+ },
922
+ {
923
+ name: 'qp-year-in',
924
+ label: '年份',
925
+ field: {
926
+ type: 'itemPropertySelector',
927
+ props: {
928
+ propertyCode: 'SX0000114',
929
+ mode: 'multiple',
888
930
  }
889
- },
890
- {
891
- name: 'qp-season-in',
892
- label: '季节',
893
- field: {
894
- type: 'itemPropertySelector',
895
- props: {
896
- propertyCode: 'SX0000070',
897
- mode: 'multiple',
898
- }
931
+ }
932
+ },
933
+ {
934
+ name: 'qp-season-in',
935
+ label: '季节',
936
+ field: {
937
+ type: 'itemPropertySelector',
938
+ props: {
939
+ propertyCode: 'SX0000070',
940
+ mode: 'multiple',
899
941
  }
900
- },
901
- {
902
- name: 'qp-zzdlbm-in',
903
- label: '大类',
904
- field: {
905
- type: 'itemPropertySelector',
906
- props: {
907
- propertyCode: 'SX0000071',
908
- mode: 'multiple',
909
- }
942
+ }
943
+ },
944
+ {
945
+ name: 'qp-zzdlbm-in',
946
+ label: '大类',
947
+ field: {
948
+ type: 'itemPropertySelector',
949
+ props: {
950
+ propertyCode: 'SX0000071',
951
+ mode: 'multiple',
910
952
  }
911
- },
912
- {
913
- name: 'qp-zzzlbm-in',
914
- label: '中类',
915
- field: {
916
- type: 'itemPropertySelector',
917
- props: {
918
- propertyCode: 'SX0000072',
919
- mode: 'multiple',
920
- }
953
+ }
954
+ },
955
+ {
956
+ name: 'qp-zzzlbm-in',
957
+ label: '中类',
958
+ field: {
959
+ type: 'itemPropertySelector',
960
+ props: {
961
+ propertyCode: 'SX0000072',
962
+ mode: 'multiple',
921
963
  }
922
- },
923
- {
924
- name: 'qp-zzxlbm-in',
925
- label: '小类',
926
- field: {
927
- type: 'itemPropertySelector',
928
- props: {
929
- propertyCode: 'SX0000110',
930
- mode: 'multiple',
931
- }
964
+ }
965
+ },
966
+ {
967
+ name: 'qp-zzxlbm-in',
968
+ label: '小类',
969
+ field: {
970
+ type: 'itemPropertySelector',
971
+ props: {
972
+ propertyCode: 'SX0000110',
973
+ mode: 'multiple',
932
974
  }
933
- },
975
+ }
976
+ },
934
977
  ]
935
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
978
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
936
979
  Promise.all([
937
980
  loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
938
981
  pageSize: 5000,
939
982
  currentPage: 1,
940
983
  'ctl-withAuth': true
941
- },getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
984
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-brandId-in')),
942
985
  loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
943
986
  pageSize: 5000,
944
987
  currentPage: 1,
945
- },getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
988
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-categoryId-in')),
946
989
  loadSelectSource(`${prefixUrl.formSelectFix}/class/withProperty`, {
947
990
  pageSize: 5000,
948
991
  currentPage: 1,
949
- },getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
950
- ]).then((x: any)=>{
951
- formatSource(x,0, 2, tableSearchForm,['id','name']);
952
- formatTreeDataSource(x,1, 3, tableSearchForm);
953
- formatSource(x,2, 4, tableSearchForm,['id','name']);
992
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-classId-in')),
993
+ ]).then((x: any) => {
994
+ formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
995
+ formatTreeDataSource(x, 1, 3, tableSearchForm);
996
+ formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
954
997
  })
955
998
  modalTableProps = {
956
999
  modalTableTitle: '选择SPU',
@@ -992,7 +1035,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
992
1035
  }
993
1036
 
994
1037
  // 商品选择器skc
995
- if(type === 'skcCommodity') {
1038
+ if (type === 'skcCommodity') {
996
1039
  selectProps = {
997
1040
  placeholder: '输入SKC编码或名称',
998
1041
  renderTableColumns: [
@@ -1011,7 +1054,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1011
1054
  { name: 'qp-code-like', label: 'SKC编码' },
1012
1055
  { name: 'qp-skcName-like', label: 'SKC名称' },
1013
1056
  { name: 'qp-itemName-like', label: '商品名称' },
1014
- { name: 'qp-colorName-in', type: 'select', label: '颜色', field: {
1057
+ {
1058
+ name: 'qp-colorName-in', type: 'select', label: '颜色', field: {
1015
1059
  type: 'select',
1016
1060
  props: {
1017
1061
  mode: 'multiple',
@@ -1024,8 +1068,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1024
1068
  filterOption: (input: string, option: { props: { children: string } }) =>
1025
1069
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1026
1070
  },
1027
- } },
1028
- { name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
1071
+ }
1072
+ },
1073
+ {
1074
+ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
1029
1075
  type: 'treeSelect',
1030
1076
  props: {
1031
1077
  treeData: [],
@@ -1042,8 +1088,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1042
1088
  },
1043
1089
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
1044
1090
  },
1045
- } },
1046
- { name: 'qp-classId-in', type: 'select', label: '品类', field: {
1091
+ }
1092
+ },
1093
+ {
1094
+ name: 'qp-classId-in', type: 'select', label: '品类', field: {
1047
1095
  type: 'select',
1048
1096
  props: {
1049
1097
  mode: 'multiple',
@@ -1056,8 +1104,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1056
1104
  filterOption: (input: string, option: { props: { children: string } }) =>
1057
1105
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1058
1106
  },
1059
- } },
1060
- { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
1107
+ }
1108
+ },
1109
+ {
1110
+ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
1061
1111
  type: 'select',
1062
1112
  props: {
1063
1113
  mode: 'multiple',
@@ -1070,9 +1120,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1070
1120
  filterOption: (input: string, option: { props: { children: string } }) =>
1071
1121
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1072
1122
  },
1073
- } },
1123
+ }
1124
+ },
1074
1125
  ], hiddenFields);
1075
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1126
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1076
1127
  const fieldsRequest = handleHiddenFieldsRequest(
1077
1128
  [
1078
1129
  {
@@ -1082,7 +1133,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1082
1133
  currentPage: 1,
1083
1134
  type: 2, // 类型:1尺码;2颜色
1084
1135
  },
1085
- options: getQueryHeadersItem(queryHeaderParams,'qp-colorName-in')
1136
+ options: getQueryHeadersItem(queryHeaderParams, 'qp-colorName-in')
1086
1137
  },
1087
1138
  {
1088
1139
  url: `${prefixUrl.formSelectFix}/category/queryCategoryTree`,
@@ -1090,7 +1141,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1090
1141
  pageSize: 5000,
1091
1142
  currentPage: 1,
1092
1143
  },
1093
- options: getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')
1144
+ options: getQueryHeadersItem(queryHeaderParams, 'qp-categoryId-in')
1094
1145
  },
1095
1146
  {
1096
1147
  url: `${prefixUrl.formSelectFix}/class/withProperty`,
@@ -1098,7 +1149,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1098
1149
  pageSize: 5000,
1099
1150
  currentPage: 1,
1100
1151
  },
1101
- options: getQueryHeadersItem(queryHeaderParams,'qp-classId-in')
1152
+ options: getQueryHeadersItem(queryHeaderParams, 'qp-classId-in')
1102
1153
  },
1103
1154
  {
1104
1155
  url: `${prefixUrl.formSelectFix}/brand/queryBrandList`,
@@ -1107,7 +1158,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1107
1158
  currentPage: 1,
1108
1159
  'ctl-withAuth': true
1109
1160
  },
1110
- options: getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')
1161
+ options: getQueryHeadersItem(queryHeaderParams, 'qp-brandId-in')
1111
1162
  }
1112
1163
  ],
1113
1164
  ['colorName', 'categoryId', 'classId', 'brandId'],
@@ -1126,11 +1177,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1126
1177
  sourceName: 'qp-skcCode-eq',
1127
1178
  ...requestConfigProp,
1128
1179
  }
1129
- Promise.all(fieldLoadSource).then((x: any)=>{
1130
- formatSource(x,0, getFieldIndex(tableSearchForm, 'colorName'), tableSearchForm,['value','value']);
1131
- formatTreeDataSource(x,1, getFieldIndex(tableSearchForm, 'categoryId'), tableSearchForm);
1132
- formatSource(x,2, getFieldIndex(tableSearchForm, 'classId'), tableSearchForm,['id','name']);
1133
- formatSource(x,3, getFieldIndex(tableSearchForm, 'brandId'), tableSearchForm,['id','name']);
1180
+ Promise.all(fieldLoadSource).then((x: any) => {
1181
+ formatSource(x, 0, getFieldIndex(tableSearchForm, 'colorName'), tableSearchForm, ['value', 'value']);
1182
+ formatTreeDataSource(x, 1, getFieldIndex(tableSearchForm, 'categoryId'), tableSearchForm);
1183
+ formatSource(x, 2, getFieldIndex(tableSearchForm, 'classId'), tableSearchForm, ['id', 'name']);
1184
+ formatSource(x, 3, getFieldIndex(tableSearchForm, 'brandId'), tableSearchForm, ['id', 'name']);
1134
1185
  })
1135
1186
  modalTableProps = {
1136
1187
  modalTableTitle: '选择SKC',
@@ -1179,7 +1230,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1179
1230
  }
1180
1231
 
1181
1232
  // 商品规格选择器(无弹窗)
1182
- if(type === 'skuPropertyValue') {
1233
+ if (type === 'skuPropertyValue') {
1183
1234
  selectProps = {
1184
1235
  placeholder: '输入规格编码或名称',
1185
1236
  renderTableColumns: [
@@ -1212,7 +1263,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1212
1263
  }
1213
1264
 
1214
1265
  // 仓库选择器(物理、逻辑仓、运营仓)
1215
- if(type === 'physicalWarehouse') {
1266
+ if (type === 'physicalWarehouse') {
1216
1267
  selectProps = {
1217
1268
  placeholder: '输入物理仓编码或名称',
1218
1269
  renderTableColumns: [
@@ -1235,7 +1286,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1235
1286
  mappingTextShowKeyField: 'physicalWarehouseCode',
1236
1287
  mappingValueField: 'id',
1237
1288
  otherParams: {
1238
- ...(modalTableBusProps?.needStatusSearch?{}:{'qp-isEnable-eq': 1}),
1289
+ ...(modalTableBusProps?.needStatusSearch ? {} : { 'qp-isEnable-eq': 1 }),
1239
1290
  sorter: 'desc-id',
1240
1291
  ...(requestConfigProp?.addOtherParams || {}),
1241
1292
  }, // 默认参数
@@ -1245,8 +1296,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1245
1296
  tableSearchForm = [
1246
1297
  { name: 'physicalWarehouseName*multiInput', label: '物理仓名称', type: 'multipleQueryInput' },
1247
1298
  { name: 'physicalWarehouseCode*multiInput', label: '物理仓编码', type: 'multipleQueryInput' },
1248
- { name: 'qp-physicalWarehouseType-eq', type: 'select', label: '物理仓类型', initialSource: getDictionarySource('SC00002') },
1249
- { name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
1299
+ { name: 'qp-physicalWarehouseType-eq', type: 'select', label: '物理仓类型', initialSource: getDictionarySource('SC00002') },
1300
+ {
1301
+ name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
1250
1302
  type: 'select',
1251
1303
  props: {
1252
1304
  mode: 'multiple',
@@ -1259,18 +1311,19 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1259
1311
  filterOption: (input: string, option: { props: { children: string } }) =>
1260
1312
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1261
1313
  },
1262
- } },
1263
- ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '物理仓状态', initialSource: getDictionarySource('SC00001') }]:[])
1314
+ }
1315
+ },
1316
+ ...(modalTableBusProps?.needStatusSearch ? [{ name: 'qp-isEnable-eq', type: 'select', label: '物理仓状态', initialSource: getDictionarySource('SC00001') }] : [])
1264
1317
  ]
1265
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1318
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1266
1319
  Promise.all([
1267
1320
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
1268
1321
  pageSize: 5000,
1269
1322
  currentPage: 1,
1270
1323
  'qp-companyType-eq': 20,
1271
- },getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
1272
- ]).then((x: any)=>{
1273
- formatSource(x,0, 3, tableSearchForm);
1324
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-companyCode-in')),
1325
+ ]).then((x: any) => {
1326
+ formatSource(x, 0, 3, tableSearchForm);
1274
1327
  })
1275
1328
  modalTableProps = {
1276
1329
  modalTableTitle: '选择物理仓',
@@ -1297,11 +1350,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1297
1350
  defaultSort: 3,
1298
1351
  render: (text: number) => getDictionaryTextByValue('SC00002', text),
1299
1352
  },
1300
- ...(modalTableBusProps?.needStatusSearch?[{
1353
+ ...(modalTableBusProps?.needStatusSearch ? [{
1301
1354
  title: '状态',
1302
1355
  dataIndex: 'isEnable',
1303
1356
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1304
- }]:[]),
1357
+ }] : []),
1305
1358
  {
1306
1359
  title: '所属公司',
1307
1360
  dataIndex: 'companyName',
@@ -1311,7 +1364,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1311
1364
  ...modalTableBusProps
1312
1365
  }
1313
1366
  }
1314
- if(type === 'realWarehouse') {
1367
+ if (type === 'realWarehouse') {
1315
1368
  selectProps = {
1316
1369
  placeholder: '输入逻辑仓编码或名称',
1317
1370
  renderTableColumns: [
@@ -1334,34 +1387,44 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1334
1387
  mappingTextShowKeyField: 'realWarehouseCode',
1335
1388
  mappingValueField: 'id',
1336
1389
  otherParams: {
1337
- ...(modalTableBusProps?.needStatusSearch?{}:{'qp-isEnable-eq': 1}),
1390
+ ...(modalTableBusProps?.needStatusSearch ? {} : { 'qp-isEnable-eq': 1 }),
1338
1391
  sorter: 'desc-id',
1339
1392
  ...(requestConfigProp?.addOtherParams || {}),
1340
1393
  }, // 默认参数
1341
1394
  sourceName: 'warehouseIds',
1342
1395
  ...requestConfigProp,
1343
1396
  }
1344
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1397
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1345
1398
  Promise.all([
1346
1399
  loadSelectSource(`/channel-manage/channelInfo/tree`, {
1347
1400
  'qp-status-eq': 10,
1348
1401
  'qp-isMain-eq': 1,
1349
1402
  'qp-type-in': '1,2',
1350
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1403
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
1351
1404
  loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
1352
1405
  'qp-status-eq': 1,
1353
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1354
- ]).then((x: any)=>{
1406
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
1407
+ ]).then((x: any) => {
1408
+ debugger
1409
+ // 战区限制一级数据
1410
+ const newData1 = [];
1411
+ x[0]?.data[0]?.channelInfoSon?.forEach((item: any) => {
1412
+ newData1.push({
1413
+ code: item.code,
1414
+ name: item.name
1415
+ })
1416
+ })
1417
+ x[0].data = newData1;
1355
1418
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1356
1419
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1357
- formatTreeDataSource(x, 0, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1358
- formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1420
+ formatTreeDataSource(x, 0, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude)
1421
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1359
1422
  })
1360
1423
  tableSearchForm = [
1361
1424
  { name: 'realWarehouseName*multiInput', label: '逻辑仓名称', type: 'multipleQueryInput' },
1362
1425
  { name: 'realWarehouseCode*multiInput', label: '逻辑仓编码', type: 'multipleQueryInput' },
1363
- { name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
1364
- { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
1426
+ { name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
1427
+ // { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
1365
1428
  {
1366
1429
  name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
1367
1430
  type: 'treeSelect',
@@ -1418,7 +1481,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1418
1481
  },
1419
1482
  initialSource: getDictionarySource('BUSINESS_StoreType')
1420
1483
  },
1421
- ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
1484
+ ...(modalTableBusProps?.needStatusSearch ? [{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }] : []),
1422
1485
  ]
1423
1486
  modalTableProps = {
1424
1487
  modalTableTitle: '选择逻辑仓',
@@ -1453,7 +1516,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1453
1516
  width: 100,
1454
1517
  },
1455
1518
  {
1456
- title: '所属销售渠道',
1519
+ title: '战区',
1457
1520
  dataIndex: 'channelName',
1458
1521
  defaultSort: 4,
1459
1522
  width: 100,
@@ -1471,18 +1534,18 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1471
1534
  render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
1472
1535
  width: 80,
1473
1536
  },
1474
- ...(modalTableBusProps?.needStatusSearch?[{
1537
+ ...(modalTableBusProps?.needStatusSearch ? [{
1475
1538
  title: '状态',
1476
1539
  dataIndex: 'isEnable',
1477
1540
  defaultSort: 8,
1478
1541
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1479
- }]:[]),
1542
+ }] : []),
1480
1543
  ],
1481
1544
  noEmptySearchField: true,
1482
1545
  ...modalTableBusProps,
1483
1546
  }
1484
1547
  }
1485
- if(type === 'ownerWarehouse') {
1548
+ if (type === 'ownerWarehouse') {
1486
1549
  selectProps = {
1487
1550
  placeholder: '输入运营仓编码或名称',
1488
1551
  renderTableColumns: [
@@ -1505,7 +1568,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1505
1568
  mappingTextShowKeyField: 'operationWarehouseCode',
1506
1569
  mappingValueField: 'operationWarehouseCode',
1507
1570
  otherParams: {
1508
- ...(modalTableBusProps?.needStatusSearch?{}:{'qp-status-eq': 1}),
1571
+ ...(modalTableBusProps?.needStatusSearch ? {} : { 'qp-status-eq': 1 }),
1509
1572
  sorter: 'desc-id',
1510
1573
  ...(requestConfigProp?.addOtherParams || {}),
1511
1574
  }, // 默认参数
@@ -1515,7 +1578,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1515
1578
  tableSearchForm = [
1516
1579
  { name: 'name*multiInput', label: '运营仓名称', type: 'multipleQueryInput' },
1517
1580
  { name: 'operationWarehouseCode*multiInput', label: '运营仓编码', type: 'multipleQueryInput' },
1518
- { name: 'qp-groupCode-in', type: 'select', label: '运营组', field: {
1581
+ {
1582
+ name: 'qp-groupCode-in', type: 'select', label: '运营组', field: {
1519
1583
  type: 'select',
1520
1584
  props: {
1521
1585
  mode: 'multiple',
@@ -1528,10 +1592,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1528
1592
  filterOption: (input: string, option: { props: { children: string } }) =>
1529
1593
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1530
1594
  },
1531
- } },
1532
- {
1533
- name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1534
- type: 'treeSelect',
1595
+ }
1596
+ },
1597
+ {
1598
+ name: 'qp-operationWarehouseClassification-in', type: 'select', label: '分类', field: {
1599
+ type: 'select',
1535
1600
  props: {
1536
1601
  multiple: true,
1537
1602
  treeData: [],
@@ -1546,22 +1611,26 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1546
1611
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1547
1612
  showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1548
1613
  },
1549
- }
1614
+ },
1615
+ initialSource: getDictionarySource('BASIC_OPS_WH_TYPE')
1550
1616
  },
1551
- ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
1617
+ ...(modalTableBusProps?.needStatusSearch ? [{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }] : []),
1552
1618
  ]
1553
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1619
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1554
1620
  Promise.all([
1555
- loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 },getQueryHeadersItem(queryHeaderParams,'qp-groupCode-in')),
1621
+ loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 }, getQueryHeadersItem(queryHeaderParams, 'qp-groupCode-in')),
1556
1622
  loadSelectSource(`/channel-manage/channelInfo/tree`, {
1557
1623
  'qp-status-eq': 10,
1558
1624
  'qp-isMain-eq': 1,
1559
1625
  'qp-type-in': '1,2',
1560
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1561
- ]).then((x: any)=>{
1562
- formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
1563
- const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1564
- formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1626
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
1627
+ ]).then((x: any) => {
1628
+ formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
1629
+ const newData1: any[] = [];
1630
+ x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
1631
+ newData1.push({ code: item.code, name: item.name })
1632
+ });
1633
+ x[1].data = newData1;
1565
1634
  })
1566
1635
  modalTableProps = {
1567
1636
  modalTableTitle: '选择运营仓',
@@ -1587,13 +1656,13 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1587
1656
  dataIndex: 'groupName',
1588
1657
  defaultSort: 3,
1589
1658
  },
1590
- ...(modalTableBusProps?.needStatusSearch?[{
1659
+ ...(modalTableBusProps?.needStatusSearch ? [{
1591
1660
  title: '状态',
1592
1661
  dataIndex: 'status',
1593
1662
  defaultSort: 4,
1594
1663
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1595
- }]:[]),
1596
- {
1664
+ }] : []),
1665
+ {
1597
1666
  title: '所属销售渠道',
1598
1667
  dataIndex: 'channelName',
1599
1668
  defaultSort: 5,
@@ -1605,7 +1674,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1605
1674
  }
1606
1675
 
1607
1676
  // 仓库选择器(虚拟、渠道仓)(无弹窗)
1608
- if(type === 'virtualWarehouse') {
1677
+ if (type === 'virtualWarehouse') {
1609
1678
  selectProps = {
1610
1679
  placeholder: '输入虚拟仓编码或名称',
1611
1680
  renderTableColumns: [
@@ -1637,7 +1706,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1637
1706
  }
1638
1707
  needModalTable = false
1639
1708
  }
1640
- if(type === 'channelWarehouse') {
1709
+ if (type === 'channelWarehouse') {
1641
1710
  selectProps = {
1642
1711
  placeholder: '输入渠道仓编码或名称',
1643
1712
  renderTableColumns: [
@@ -1671,7 +1740,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1671
1740
  }
1672
1741
 
1673
1742
  // 客户选择器
1674
- if(type === 'customer') {
1743
+ if (type === 'customer') {
1675
1744
  selectProps = {
1676
1745
  placeholder: '输入客户编码或名称',
1677
1746
  renderTableColumns: [
@@ -1703,7 +1772,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1703
1772
  tableSearchForm = [
1704
1773
  { name: 'qp-name-like', label: '客户名称' },
1705
1774
  { name: 'qp-code-like', label: '客户编码' },
1706
- { name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
1775
+ {
1776
+ name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
1707
1777
  type: 'select',
1708
1778
  props: {
1709
1779
  mode: 'multiple',
@@ -1716,8 +1786,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1716
1786
  filterOption: (input: string, option: { props: { children: string } }) =>
1717
1787
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1718
1788
  },
1719
- } },
1720
- { name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
1789
+ }
1790
+ },
1791
+ {
1792
+ name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
1721
1793
  type: 'select',
1722
1794
  props: {
1723
1795
  mode: 'multiple',
@@ -1730,8 +1802,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1730
1802
  filterOption: (input: string, option: { props: { children: string } }) =>
1731
1803
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1732
1804
  },
1733
- } },
1734
- { name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
1805
+ }
1806
+ },
1807
+ {
1808
+ name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
1735
1809
  type: 'select',
1736
1810
  props: {
1737
1811
  mode: 'multiple',
@@ -1744,29 +1818,30 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1744
1818
  filterOption: (input: string, option: { props: { children: string } }) =>
1745
1819
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1746
1820
  },
1747
- } },
1821
+ }
1822
+ },
1748
1823
  { name: 'qp-sharingType-eq', type: 'select', label: '共享类型', initialSource: sharingTypeDataList },
1749
1824
  ]
1750
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1825
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1751
1826
  Promise.all([
1752
1827
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
1753
1828
  pageSize: 5000,
1754
1829
  currentPage: 1,
1755
1830
  'qp-companyType-eq': '30',
1756
- },getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
1831
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-conglomerateCode-in')),
1757
1832
  loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
1758
1833
  pageSize: 5000,
1759
1834
  currentPage: 1,
1760
- },getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
1835
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-accountingCode-in')),
1761
1836
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
1762
1837
  pageSize: 5000,
1763
1838
  currentPage: 1,
1764
1839
  'qp-companyType-eq': '20',
1765
- },getQueryHeadersItem(queryHeaderParams,'qp-sharingType-in'))
1766
- ]).then((x: any)=>{
1767
- formatSource(x,0, 2, tableSearchForm);
1768
- formatSource(x,1, 3, tableSearchForm);
1769
- formatSource(x,2, 4, tableSearchForm);
1840
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-sharingType-in'))
1841
+ ]).then((x: any) => {
1842
+ formatSource(x, 0, 2, tableSearchForm);
1843
+ formatSource(x, 1, 3, tableSearchForm);
1844
+ formatSource(x, 2, 4, tableSearchForm);
1770
1845
  })
1771
1846
  modalTableProps = {
1772
1847
  modalTableTitle: '选择客户',
@@ -1810,7 +1885,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1810
1885
  ...modalTableBusProps
1811
1886
  }
1812
1887
  }
1813
- if(type === 'customer2') {
1888
+ if (type === 'customer2') {
1814
1889
  selectProps = {
1815
1890
  placeholder: '输入客户编码或名称',
1816
1891
  renderTableColumns: [
@@ -1844,21 +1919,24 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1844
1919
  tableSearchForm = [
1845
1920
  { name: 'qp-name-like', label: '客户名称' },
1846
1921
  { name: 'qp-code-like', label: '客户编码' },
1847
- { name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
1922
+ {
1923
+ name: 'qp-createOrgCode-in', type: 'select', label: '创建组织', field: {
1848
1924
  type: 'select',
1849
1925
  props: {
1850
- // mode: 'multiple',
1926
+ mode: 'multiple',
1851
1927
  notFoundContent: '暂无数据',
1852
1928
  allowClear: true,
1853
1929
  showSearch: true,
1854
1930
  showArrow: true,
1855
- // maxTagCount: 1,
1931
+ maxTagCount: 1,
1856
1932
  optionFilterProp: 'children',
1857
1933
  filterOption: (input: string, option: { props: { children: string } }) =>
1858
1934
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1859
1935
  },
1860
- } },
1861
- { name: 'qp-salesOrgCode-eq', type: 'select', label: '使用组织', field: {
1936
+ }
1937
+ },
1938
+ {
1939
+ name: 'qp-salesOrgCode-eq', type: 'select', label: '使用组织', field: {
1862
1940
  type: 'select',
1863
1941
  props: {
1864
1942
  // mode: 'multiple',
@@ -1871,8 +1949,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1871
1949
  filterOption: (input: string, option: { props: { children: string } }) =>
1872
1950
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1873
1951
  },
1874
- } },
1875
- {
1952
+ }
1953
+ },
1954
+ {
1876
1955
  name: 'qp-saleChannel-in', type: 'treeSelect', label: '销售渠道', field: {
1877
1956
  type: 'treeSelect',
1878
1957
  props: {
@@ -1912,25 +1991,25 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1912
1991
  }
1913
1992
  },
1914
1993
  ];
1915
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1994
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1916
1995
  Promise.all([
1917
- loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
1996
+ loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {}, getQueryHeadersItem(queryHeaderParams, 'qp-createOrgCode-eq')),
1918
1997
  loadSelectSource(`/channel-manage/channelInfo/tree`, {
1919
1998
  'qp-status-eq': 10,
1920
1999
  'qp-isMain-eq': 1,
1921
2000
  'qp-type-in': '1,2',
1922
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2001
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
1923
2002
  loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
1924
2003
  'qp-status-eq': 1,
1925
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1926
- ]).then((x: any)=>{
2004
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
2005
+ ]).then((x: any) => {
1927
2006
  const firstElement = x?.[0];
1928
2007
  const allList = firstElement && [firstElement, firstElement];
1929
- formatSource(allList,0, 2, tableSearchForm);
1930
- formatSource(allList,1, 3, tableSearchForm);
2008
+ formatSource(allList, 0, 2, tableSearchForm);
2009
+ formatSource(allList, 1, 3, tableSearchForm);
1931
2010
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1932
2011
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1933
- formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
2012
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude)
1934
2013
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1935
2014
  })
1936
2015
  modalTableProps = {
@@ -1963,7 +2042,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1963
2042
  defaultSort: 4,
1964
2043
  width: 100,
1965
2044
  },
1966
- {
2045
+ {
1967
2046
  title: '所属销售渠道',
1968
2047
  dataIndex: 'channelName',
1969
2048
  defaultSort: 5,
@@ -1981,7 +2060,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1981
2060
  }
1982
2061
 
1983
2062
  // 店铺选择器
1984
- if(type === 'shopFile') {
2063
+ if (type === 'shopFile') {
1985
2064
  selectProps = {
1986
2065
  placeholder: '输入店铺编码或名称',
1987
2066
  renderTableColumns: [
@@ -2014,7 +2093,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2014
2093
  { name: 'code*multiInput', label: '店铺编码', type: 'multipleQueryInput' },
2015
2094
  // { name: 'qp-name-like', label: '店铺名称' },
2016
2095
  // { name: 'qp-code-like', label: '店铺编码' },
2017
- { name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
2096
+ {
2097
+ name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
2018
2098
  type: 'select',
2019
2099
  props: {
2020
2100
  mode: 'multiple',
@@ -2027,8 +2107,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2027
2107
  filterOption: (input: string, option: { props: { children: string } }) =>
2028
2108
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2029
2109
  },
2030
- } },
2031
- { name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
2110
+ }
2111
+ },
2112
+ {
2113
+ name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
2032
2114
  type: 'select',
2033
2115
  props: {
2034
2116
  mode: 'multiple',
@@ -2041,9 +2123,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2041
2123
  filterOption: (input: string, option: { props: { children: string } }) =>
2042
2124
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2043
2125
  },
2044
- } },
2126
+ }
2127
+ },
2045
2128
  { name: 'qp-type-in', type: 'select', label: '店铺类型', initialSource: shopFileType },
2046
- { name: 'qp-plateformCode-in', type: 'select', label: '店铺来源', field: {
2129
+ {
2130
+ name: 'qp-plateformCode-in', type: 'select', label: '店铺来源', field: {
2047
2131
  type: 'select',
2048
2132
  props: {
2049
2133
  mode: 'multiple',
@@ -2056,8 +2140,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2056
2140
  filterOption: (input: string, option: { props: { children: string } }) =>
2057
2141
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2058
2142
  },
2059
- } },
2060
- { name: 'qp-mainBrandCode-in', type: 'select', label: '品牌', field: {
2143
+ }
2144
+ },
2145
+ {
2146
+ name: 'qp-mainBrandCode-in', type: 'select', label: '品牌', field: {
2061
2147
  type: 'select',
2062
2148
  props: {
2063
2149
  mode: 'multiple',
@@ -2070,8 +2156,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2070
2156
  filterOption: (input: string, option: { props: { children: string } }) =>
2071
2157
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2072
2158
  },
2073
- } },
2074
- { name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
2159
+ }
2160
+ },
2161
+ {
2162
+ name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
2075
2163
  type: 'select',
2076
2164
  props: {
2077
2165
  mode: 'multiple',
@@ -2084,39 +2172,40 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2084
2172
  filterOption: (input: string, option: { props: { children: string } }) =>
2085
2173
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2086
2174
  },
2087
- } },
2175
+ }
2176
+ },
2088
2177
  ]
2089
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2178
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
2090
2179
  Promise.all([
2091
2180
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
2092
2181
  pageSize: 5000,
2093
2182
  currentPage: 1,
2094
2183
  'qp-companyType-eq': '30',
2095
- },getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
2184
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-conglomerateCode-in')),
2096
2185
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
2097
2186
  pageSize: 5000,
2098
2187
  currentPage: 1,
2099
2188
  'qp-companyType-eq': '20',
2100
- },getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
2189
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-companyCode-in')),
2101
2190
  loadSelectSource(`${prefixUrl.formSelectFix}/platformRecord/getPlatformRecordList`, {
2102
2191
  // pageSize: 5000,
2103
2192
  // currentPage: 1,
2104
2193
  'qp-status-eq': '1',
2105
- },getQueryHeadersItem(queryHeaderParams,'qp-plateformCode-in')),
2194
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-plateformCode-in')),
2106
2195
  loadSelectSource(`${prefixUrl.formSelectFix}/store`, {
2107
2196
  pageSize: 5000,
2108
2197
  currentPage: 1,
2109
- },getQueryHeadersItem(queryHeaderParams,'qp-mainBrandCode-in')),
2198
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-mainBrandCode-in')),
2110
2199
  loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
2111
2200
  pageSize: 5000,
2112
2201
  currentPage: 1,
2113
- },getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
2114
- ]).then((x: any)=>{
2115
- formatSource(x,0, 2, tableSearchForm);
2116
- formatSource(x,1, 3, tableSearchForm);
2117
- formatSource(x,2, 5, tableSearchForm);
2118
- formatSource(x,3, 6, tableSearchForm);
2119
- formatSource(x,4, 7, tableSearchForm);
2202
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-accountingCode-in')),
2203
+ ]).then((x: any) => {
2204
+ formatSource(x, 0, 2, tableSearchForm);
2205
+ formatSource(x, 1, 3, tableSearchForm);
2206
+ formatSource(x, 2, 5, tableSearchForm);
2207
+ formatSource(x, 3, 6, tableSearchForm);
2208
+ formatSource(x, 4, 7, tableSearchForm);
2120
2209
  })
2121
2210
  modalTableProps = {
2122
2211
  modalTableTitle: '选择店铺',
@@ -2164,7 +2253,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2164
2253
  ...modalTableBusProps
2165
2254
  }
2166
2255
  }
2167
- if(type === 'shopFile2') {
2256
+ if (type === 'shopFile2') {
2168
2257
  selectProps = {
2169
2258
  placeholder: '输入商店编码或名称',
2170
2259
  renderTableColumns: [
@@ -2198,7 +2287,61 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2198
2287
  { name: 'code*multiInput', label: '商店编码', type: 'multipleQueryInput' },
2199
2288
  { name: 'qp-type-in', type: 'select', label: '商店类型', initialSource: shopFile2Type },
2200
2289
  // { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
2201
- { name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
2290
+ // { name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
2291
+ // type: 'select',
2292
+ // props: {
2293
+ // mode: 'multiple',
2294
+ // notFoundContent: '暂无数据',
2295
+ // allowClear: true,
2296
+ // showSearch: true,
2297
+ // showArrow: true,
2298
+ // maxTagCount: 1,
2299
+ // optionFilterProp: 'children',
2300
+ // filterOption: (input: string, option: { props: { children: string } }) =>
2301
+ // option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2302
+ // },
2303
+ // } },
2304
+ {
2305
+ name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
2306
+ type: 'treeSelect',
2307
+ props: {
2308
+ multiple: true,
2309
+ treeData: [],
2310
+ treeCheckable: false,
2311
+ notFoundContent: '暂无数据',
2312
+ allowClear: true,
2313
+ showSearch: true,
2314
+ showArrow: true,
2315
+ maxTagCount: 1,
2316
+ optionFilterProp: 'children',
2317
+ filterOption: (input: string, option: { props: { children: string } }) =>
2318
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2319
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2320
+ },
2321
+ }
2322
+ },
2323
+ {
2324
+ name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '大区', field: {
2325
+ type: 'treeSelect',
2326
+ props: {
2327
+ multiple: true,
2328
+ treeData: [],
2329
+ treeCheckable: false,
2330
+ notFoundContent: '暂无数据',
2331
+ allowClear: true,
2332
+ showSearch: true,
2333
+ showArrow: true,
2334
+ maxTagCount: 1,
2335
+ optionFilterProp: 'children',
2336
+ filterOption: (input: string, option: { props: { children: string } }) =>
2337
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2338
+
2339
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2340
+ },
2341
+ }
2342
+ },
2343
+ {
2344
+ name: 'qp-businessType-in', type: 'select', label: '店铺性质', field: {
2202
2345
  type: 'select',
2203
2346
  props: {
2204
2347
  mode: 'multiple',
@@ -2211,63 +2354,14 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2211
2354
  filterOption: (input: string, option: { props: { children: string } }) =>
2212
2355
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2213
2356
  },
2214
- } },
2215
- { name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
2216
- type: 'treeSelect',
2217
- props: {
2218
- multiple: true,
2219
- treeData: [],
2220
- treeCheckable: false,
2221
- notFoundContent: '暂无数据',
2222
- allowClear: true,
2223
- showSearch: true,
2224
- showArrow: true,
2225
- maxTagCount: 1,
2226
- optionFilterProp: 'children',
2227
- filterOption: (input: string, option: { props: { children: string } }) =>
2228
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2229
- showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2230
- },
2231
- } },
2232
- { name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '大区', field: {
2233
- type: 'treeSelect',
2234
- props: {
2235
- multiple: true,
2236
- treeData: [],
2237
- treeCheckable: false,
2238
- notFoundContent: '暂无数据',
2239
- allowClear: true,
2240
- showSearch: true,
2241
- showArrow: true,
2242
- maxTagCount: 1,
2243
- optionFilterProp: 'children',
2244
- filterOption: (input: string, option: { props: { children: string } }) =>
2245
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2246
-
2247
- showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2248
- },
2249
- } },
2250
- { name: 'qp-businessType-in', type: 'select', label: '店铺性质', field: {
2251
- type: 'select',
2252
- props: {
2253
- mode: 'multiple',
2254
- notFoundContent: '暂无数据',
2255
- allowClear: true,
2256
- showSearch: true,
2257
- showArrow: true,
2258
- maxTagCount: 1,
2259
- optionFilterProp: 'children',
2260
- filterOption: (input: string, option: { props: { children: string } }) =>
2261
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2262
- },
2263
- } ,
2264
- initialSource: getDictionarySource('BUSINESS_StoreType')
2265
- },
2357
+ },
2358
+ initialSource: getDictionarySource('BUSINESS_StoreType')
2359
+ },
2266
2360
  {
2267
2361
  name: "qp-brandCode-in",
2268
2362
  label: "品牌",
2269
2363
  field: {
2270
- type:'select',
2364
+ type: 'select',
2271
2365
  props: {
2272
2366
  mode: 'multiple',
2273
2367
  notFoundContent: '暂无数据',
@@ -2281,39 +2375,140 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2281
2375
  },
2282
2376
  },
2283
2377
  },
2284
- { name: 'qp-manageSupervisor-like', label: '管理督导', type: 'input' },
2285
- { name: 'qp-directSupervisor-like', label: '直接督导', type: 'input' },
2286
- { name: 'qp-distributionItem-like', label: '分销商品', type: 'input' },
2287
- { name: 'qp-headItem-like', label: '总部商品', type: 'input' },
2288
- { name: 'qp-storeChannelName-like', label: '管理模式', type: 'input' },
2378
+ {
2379
+ name: 'qp-manageSupervisor-like', type: 'select', label: '管理督导', field: {
2380
+ type: 'select',
2381
+ props: {
2382
+ notFoundContent: '暂无数据',
2383
+ allowClear: true,
2384
+ showSearch: true,
2385
+ showArrow: true,
2386
+ maxTagCount: 1,
2387
+ optionFilterProp: 'children',
2388
+ filterOption: (input: string, option: { props: { children: string } }) => {
2389
+ debugger
2390
+ return (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2391
+ }
2392
+ },
2393
+ }
2394
+ },
2395
+ {
2396
+ name: 'qp-directSupervisor-like', type: 'select', label: '直接督导', field: {
2397
+ type: 'select',
2398
+ props: {
2399
+ notFoundContent: '暂无数据',
2400
+ allowClear: true,
2401
+ showSearch: true,
2402
+ showArrow: true,
2403
+ maxTagCount: 1,
2404
+ optionFilterProp: 'children',
2405
+ filterOption: (input: string, option: { props: { children: string } }) =>
2406
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2407
+ },
2408
+ }
2409
+ },
2410
+ {
2411
+ name: 'qp-distributionItem-like', type: 'select', label: '分销商品', field: {
2412
+ type: 'select',
2413
+ props: {
2414
+ notFoundContent: '暂无数据',
2415
+ allowClear: true,
2416
+ showSearch: true,
2417
+ showArrow: true,
2418
+ maxTagCount: 1,
2419
+ optionFilterProp: 'children',
2420
+ filterOption: (input: string, option: { props: { children: string } }) =>
2421
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2422
+ },
2423
+ }
2424
+ },
2425
+ {
2426
+ name: 'qp-headItem-like', type: 'select', label: '总部商品', field: {
2427
+ type: 'select',
2428
+ props: {
2429
+ notFoundContent: '暂无数据',
2430
+ allowClear: true,
2431
+ showSearch: true,
2432
+ showArrow: true,
2433
+ maxTagCount: 1,
2434
+ optionFilterProp: 'children',
2435
+ filterOption: (input: string, option: { props: { children: string } }) =>
2436
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2437
+ },
2438
+ }
2439
+ },
2440
+ {
2441
+ name: 'qp-storeChannelName-like', type: 'select', label: '管理模式', field: {
2442
+ type: 'select',
2443
+ props: {
2444
+ notFoundContent: '暂无数据',
2445
+ allowClear: true,
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
+ },
2289
2455
  ]
2290
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2456
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
2291
2457
  Promise.all([
2292
2458
  loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
2293
2459
  'qp-employeeCode-eq': getEmployeeCode(),
2294
2460
  'qp-realOrg-eq': true,
2295
2461
  'qp-status-eq': 10
2296
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2462
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
2297
2463
  loadSelectSource(`${prefixUrl.formSelectFix}/channelInfo/tree`, {
2298
2464
  'qp-status-eq': 10,
2299
2465
  'qp-isMain-eq': 1,
2300
2466
  'qp-type-in': '1,2',
2301
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2467
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
2302
2468
  loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
2303
2469
  'qp-status-eq': 1,
2304
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2470
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
2305
2471
  loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
2306
2472
  pageSize: 5000,
2307
2473
  currentPage: 1,
2308
2474
  'ctl-withAuth': true,
2309
- },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth'))
2310
- ]).then((x: any)=>{
2475
+ }, getQueryHeadersItem(queryHeaderParams, 'ctl-withAuth')),
2476
+ loadSelectSource(`/channel-manage/store/selectStoreOperationalInfo`, {}, {
2477
+ headers: {
2478
+ ...extralHeaders
2479
+ },
2480
+ })
2481
+ ]).then((x: any) => {
2482
+ const newData1: any[] = [];
2483
+ x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
2484
+ newData1.push({ code: item.code, name: item.name })
2485
+ });
2486
+ x[1].data = newData1;
2311
2487
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
2312
2488
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
2313
- formatSource(x,0, 3, tableSearchForm);
2314
- formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
2489
+ formatSource(x, 0, 3, tableSearchForm);
2490
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude)
2315
2491
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
2316
- formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
2492
+ formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
2493
+
2494
+ const opRaw = x[4]?.data;
2495
+ // 新增label属性
2496
+ opList?.forEach((r: any) => {
2497
+ r.label = r?.value;
2498
+ })
2499
+ let opList = Array.isArray(opRaw) ? opRaw : (opRaw?.items || opRaw?.list || []);
2500
+ if (Array.isArray(opList) && Array.isArray(opList[0]) && !opList[0]?.field) { opList = opList[0]; }
2501
+ const m1 = opList?.filter((r: any) => r?.field === 'manage_supervisor' && trim(r?.value));
2502
+ const m2 = opList?.filter((r: any) => r?.field === 'direct_supervisor' && trim(r?.value));
2503
+ const m3 = opList?.filter((r: any) => r?.field === 'distribution_item' && trim(r?.value));
2504
+ debugger
2505
+ const m4 = opList?.filter((r: any) => r?.field === 'head_item' && trim(r?.value));
2506
+ const m5 = opList?.filter((r: any) => r?.field === 'store_channel_name' && trim(r?.value));
2507
+ tableSearchForm[8] = { ...tableSearchForm[8], initialSource: m1 };
2508
+ tableSearchForm[9] = { ...tableSearchForm[9], initialSource: m2 };
2509
+ tableSearchForm[10] = { ...tableSearchForm[10], initialSource: m3 };
2510
+ tableSearchForm[11] = { ...tableSearchForm[11], initialSource: m4 };
2511
+ tableSearchForm[12] = { ...tableSearchForm[12], initialSource: m5 };
2317
2512
  })
2318
2513
  modalTableProps = {
2319
2514
  modalTableTitle: '选择商店',
@@ -2418,7 +2613,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2418
2613
  }
2419
2614
 
2420
2615
  // 核算主体选择器(无弹窗)
2421
- if(type === 'accountingSubject') {
2616
+ if (type === 'accountingSubject') {
2422
2617
  selectProps = {
2423
2618
  placeholder: '输入核算主体编码或名称',
2424
2619
  renderTableColumns: [
@@ -2449,7 +2644,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2449
2644
  needModalTable = false
2450
2645
  }
2451
2646
  // 库存组织选择器(无弹窗)
2452
- if(type === 'inventoryOrg') {
2647
+ if (type === 'inventoryOrg') {
2453
2648
  selectProps = {
2454
2649
  placeholder: '输入库存组织编码或名称',
2455
2650
  renderTableColumns: [
@@ -2482,7 +2677,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2482
2677
  }
2483
2678
 
2484
2679
  // 法人公司选择器(无弹窗)
2485
- if(type === 'corporationCompany') {
2680
+ if (type === 'corporationCompany') {
2486
2681
  selectProps = {
2487
2682
  placeholder: '输入法人公司编码或名称',
2488
2683
  renderTableColumns: [
@@ -2515,7 +2710,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2515
2710
  }
2516
2711
 
2517
2712
  // 新-法人公司选择器(无弹窗)
2518
- if(type === 'platCompany') {
2713
+ if (type === 'platCompany') {
2519
2714
  selectProps = {
2520
2715
  placeholder: '输入法人公司编码或名称',
2521
2716
  renderTableColumns: [
@@ -2548,7 +2743,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2548
2743
  }
2549
2744
 
2550
2745
  // 员工选择器
2551
- if(type === 'employee') {
2746
+ if (type === 'employee') {
2552
2747
  selectProps = {
2553
2748
  placeholder: '输入员工编码或名称',
2554
2749
  renderTableColumns: [
@@ -2582,7 +2777,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2582
2777
  tableSearchForm = [
2583
2778
  { name: 'qp-name-like', label: '员工名称' },
2584
2779
  { name: 'qp-employeeNumber-like', label: '员工编码' },
2585
- { name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
2780
+ {
2781
+ name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
2586
2782
  type: 'select',
2587
2783
  props: {
2588
2784
  mode: 'multiple',
@@ -2595,19 +2791,20 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2595
2791
  filterOption: (input: string, option: { props: { children: string } }) =>
2596
2792
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2597
2793
  },
2598
- } },
2794
+ }
2795
+ },
2599
2796
  { name: 'qp-email-like', label: '邮箱' },
2600
2797
  { name: 'qp-officeTelephone-like', label: '手机号' },
2601
2798
  ]
2602
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2799
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
2603
2800
  Promise.all([
2604
2801
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
2605
2802
  pageSize: 5000,
2606
2803
  currentPage: 1,
2607
2804
  'qp-companyType-eq': 20,
2608
- },getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
2609
- ]).then((x: any)=>{
2610
- formatSource(x,0, 2, tableSearchForm);
2805
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-companyCode-in')),
2806
+ ]).then((x: any) => {
2807
+ formatSource(x, 0, 2, tableSearchForm);
2611
2808
  })
2612
2809
  modalTableProps = {
2613
2810
  modalTableTitle: '选择员工',
@@ -2646,7 +2843,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2646
2843
  ...modalTableBusProps
2647
2844
  }
2648
2845
  }
2649
- if(type === 'employee2') {
2846
+ if (type === 'employee2') {
2650
2847
  // 版本2
2651
2848
  selectProps = {
2652
2849
  placeholder: '输入员工编码或名称',
@@ -2671,8 +2868,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2671
2868
  mappingValueField: 'id',
2672
2869
  otherParams: {
2673
2870
  'qp-enable-eq': 10, // 启用状态 10-启用,20-禁用
2674
- 'qp-orgViewIds-like': 'administrative-organization-view', // 为了兼容 搜素所属组织机构时候需要传此参数
2675
- ...(modalTableBusProps?.needTypeSearch?{}:{'qp-employmentType-eq': 20}), // 10外部员工;20内部员工
2871
+ 'qp-orgViewIds-like': 'administrative-organization-view', // 为了兼容 搜素所属组织机构时候需要传此参数
2872
+ ...(modalTableBusProps?.needTypeSearch ? {} : { 'qp-employmentType-eq': 20 }), // 10外部员工;20内部员工
2676
2873
  sorter: 'desc-id',
2677
2874
  ...(requestConfigProp?.addOtherParams || {}),
2678
2875
  }, // 默认参数
@@ -2682,8 +2879,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2682
2879
  tableSearchForm = [
2683
2880
  { name: 'qp-username-like', label: '账户名称' },
2684
2881
  { name: 'qp-name-like', label: '显示名称' },
2685
- // { name: 'qp-employeeNumber-like', label: '员工编码' },
2686
- { name: 'qp-code-in', type: 'treeSelect', label: '所属组织机构', field: {
2882
+ // { name: 'qp-employeeNumber-like', label: '员工编码' },
2883
+ {
2884
+ name: 'qp-code-in', type: 'treeSelect', label: '所属组织机构', field: {
2687
2885
  type: 'treeSelect',
2688
2886
  props: {
2689
2887
  multiple: true,
@@ -2702,16 +2900,17 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2702
2900
  showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2703
2901
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
2704
2902
  },
2705
- } },
2706
- ...(modalTableBusProps?.needTypeSearch?[{ name: 'qp-employmentType-eq', type: 'select', label: '员工类型', initialSource: employeeType }]:[]),
2903
+ }
2904
+ },
2905
+ ...(modalTableBusProps?.needTypeSearch ? [{ name: 'qp-employmentType-eq', type: 'select', label: '员工类型', initialSource: employeeType }] : []),
2707
2906
  { name: 'qp-email-like', label: '邮箱' },
2708
2907
  { name: 'qp-phone-like', label: '手机号' },
2709
2908
  ]
2710
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2909
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
2711
2910
  Promise.all([
2712
- loadSelectSource(`${prefixUrl.formSelectFix}/orgViewNode/common/getTreeForOrgViewAndTenant`, { 'orgViewCode': 'administrative-organization-view' },getQueryHeadersItem(queryHeaderParams,'qp-code-in')),
2713
- ]).then((x: any)=>{
2714
- formatTreeDataSource(x,0, 2, tableSearchForm,['code', 'name']);
2911
+ loadSelectSource(`${prefixUrl.formSelectFix}/orgViewNode/common/getTreeForOrgViewAndTenant`, { 'orgViewCode': 'administrative-organization-view' }, getQueryHeadersItem(queryHeaderParams, 'qp-code-in')),
2912
+ ]).then((x: any) => {
2913
+ formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
2715
2914
  })
2716
2915
  modalTableProps = {
2717
2916
  modalTableTitle: '添加员工',
@@ -2747,11 +2946,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2747
2946
  defaultSort: 3,
2748
2947
  render: (text: any) => handleTextOverflow(text),
2749
2948
  },
2750
- ...(modalTableBusProps?.needTypeSearch?[{
2949
+ ...(modalTableBusProps?.needTypeSearch ? [{
2751
2950
  title: '员工类型',
2752
2951
  dataIndex: 'employmentType',
2753
2952
  render: (text: number) => employeeType.find((i: any) => i.value === text)?.text || '-',
2754
- }]:[]),
2953
+ }] : []),
2755
2954
  {
2756
2955
  title: '邮箱',
2757
2956
  dataIndex: 'email',
@@ -2760,7 +2959,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2760
2959
  title: '手机号',
2761
2960
  dataIndex: 'phone',
2762
2961
  defaultSort: 4,
2763
- render: (text: any, record: any) => handleTextOverflow(text||record?.phone),
2962
+ render: (text: any, record: any) => handleTextOverflow(text || record?.phone),
2764
2963
  },
2765
2964
  ],
2766
2965
  ...modalTableBusProps
@@ -2768,7 +2967,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2768
2967
  }
2769
2968
 
2770
2969
  // 配送方式选择器
2771
- if(type === 'deliveryMode') {
2970
+ if (type === 'deliveryMode') {
2772
2971
  selectProps = {
2773
2972
  placeholder: '输入配送方式编码或名称',
2774
2973
  renderTableColumns: [
@@ -2802,7 +3001,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2802
3001
  tableSearchForm = [
2803
3002
  { name: 'qp-name-like', label: '配送方式名称' },
2804
3003
  { name: 'qp-code-like', label: '配送方式编码' },
2805
- { name: logisCompanyCodeSingleSearchName, type: 'select', label: '所属物流商', field: {
3004
+ {
3005
+ name: logisCompanyCodeSingleSearchName, type: 'select', label: '所属物流商', field: {
2806
3006
  type: 'select',
2807
3007
  props: {
2808
3008
  ...(isLogisCompanyCodeSingleSearch ? {} : {
@@ -2817,10 +3017,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2817
3017
  filterOption: (input: string, option: { props: { children: string } }) =>
2818
3018
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2819
3019
  },
2820
- } },
3020
+ }
3021
+ },
2821
3022
  { name: 'qp-recordChannnelCode-in', type: 'select', label: '单号获取通道', initialSource: getDictionarySource('BSC00004') },
2822
3023
  { name: 'qp-arrivalPaySupport-in', type: 'select', label: '是否支持到付', initialSource: arrivalPaySupportList },
2823
- { name: 'qp-sheetTemplateCode-in', type: 'select', label: '面单模板', field: {
3024
+ {
3025
+ name: 'qp-sheetTemplateCode-in', type: 'select', label: '面单模板', field: {
2824
3026
  type: 'select',
2825
3027
  props: {
2826
3028
  mode: 'multiple',
@@ -2833,22 +3035,23 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2833
3035
  filterOption: (input: string, option: { props: { children: string } }) =>
2834
3036
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2835
3037
  },
2836
- } },
3038
+ }
3039
+ },
2837
3040
  { name: 'qp-remark-like', label: '备注' },
2838
3041
  ]
2839
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
3042
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
2840
3043
  Promise.all([
2841
3044
  loadSelectSource(`${prefixUrl.formSelectFix}/logisCompany`, {
2842
3045
  pageSize: 5000,
2843
3046
  currentPage: 1,
2844
- },getQueryHeadersItem(queryHeaderParams,logisCompanyCodeSingleSearchName)),
3047
+ }, getQueryHeadersItem(queryHeaderParams, logisCompanyCodeSingleSearchName)),
2845
3048
  loadSelectSource(`${prefixUrl.formSelectFix}/printTemplate`, {
2846
3049
  pageSize: 5000,
2847
3050
  currentPage: 1,
2848
- },getQueryHeadersItem(queryHeaderParams,'qp-sheetTemplateCode-in'))
2849
- ]).then((x: any)=>{
2850
- formatSource(x,0, 2, tableSearchForm);
2851
- formatSource(x,1, 5, tableSearchForm);
3051
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-sheetTemplateCode-in'))
3052
+ ]).then((x: any) => {
3053
+ formatSource(x, 0, 2, tableSearchForm);
3054
+ formatSource(x, 1, 5, tableSearchForm);
2852
3055
  })
2853
3056
  modalTableProps = {
2854
3057
  modalTableTitle: '选择配送方式',
@@ -2899,7 +3102,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2899
3102
  }
2900
3103
 
2901
3104
  // 规则模板选择器
2902
- if(type === 'ruleTemplate') {
3105
+ if (type === 'ruleTemplate') {
2903
3106
  selectProps = {
2904
3107
  placeholder: '输入规则模板编码或名称',
2905
3108
  renderTableColumns: [
@@ -2975,7 +3178,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2975
3178
  }
2976
3179
 
2977
3180
  // 角色选择器
2978
- if(type === 'role') {
3181
+ if (type === 'role') {
2979
3182
  selectProps = {
2980
3183
  placeholder: '输入角色编码或名称',
2981
3184
  renderTableColumns: [
@@ -3008,7 +3211,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3008
3211
  tableSearchForm = [
3009
3212
  { name: 'qp-name-like', label: '角色名称' },
3010
3213
  { name: 'qp-code-like', label: '角色编码' },
3011
- { name: 'qp-categoryCode-eq', type: 'select', label: '角色分类', field: {
3214
+ {
3215
+ name: 'qp-categoryCode-eq', type: 'select', label: '角色分类', field: {
3012
3216
  type: 'select',
3013
3217
  props: {
3014
3218
  notFoundContent: '暂无数据',
@@ -3023,14 +3227,14 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3023
3227
  }
3024
3228
  },
3025
3229
  ]
3026
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
3230
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
3027
3231
  Promise.all([
3028
3232
  loadSelectSource(`${prefixUrl.formSelectFix}/permissionCategory`, {
3029
3233
  pageSize: 5000,
3030
3234
  currentPage: 1,
3031
- },getQueryHeadersItem(queryHeaderParams,'qp-categoryCode-eq')),
3032
- ]).then((x: any)=>{
3033
- formatSource(x,0, 2, tableSearchForm);
3235
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-categoryCode-eq')),
3236
+ ]).then((x: any) => {
3237
+ formatSource(x, 0, 2, tableSearchForm);
3034
3238
  })
3035
3239
  modalTableProps = {
3036
3240
  modalTableTitle: '选择角色',
@@ -3075,7 +3279,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3075
3279
  }
3076
3280
 
3077
3281
  // 销售渠道选择器
3078
- if(type === 'market-channel') {
3282
+ if (type === 'market-channel') {
3079
3283
  selectProps = {
3080
3284
  placeholder: '输入销售渠道编码或名称',
3081
3285
  renderTableColumns: [
@@ -3110,29 +3314,31 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3110
3314
  tableSearchForm = [
3111
3315
  { name: 'qp-name-like', label: '销售渠道名称' },
3112
3316
  { name: 'qp-code-like', label: '销售渠道编码' },
3113
- { name: 'qp-salesOrgCode-in', type: 'select', label: '所属销售组织', field: {
3114
- type: 'select',
3115
- props: {
3116
- mode: 'multiple',
3117
- notFoundContent: '暂无数据',
3118
- allowClear: true,
3119
- showSearch: true,
3120
- showArrow: true,
3121
- maxTagCount: 1,
3122
- optionFilterProp: 'children',
3123
- filterOption: (input: string, option: { props: { children: string } }) =>
3124
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
3125
- },
3126
- } },
3317
+ {
3318
+ name: 'qp-salesOrgCode-in', type: 'select', label: '所属销售组织', field: {
3319
+ type: 'select',
3320
+ props: {
3321
+ mode: 'multiple',
3322
+ notFoundContent: '暂无数据',
3323
+ allowClear: true,
3324
+ showSearch: true,
3325
+ showArrow: true,
3326
+ maxTagCount: 1,
3327
+ optionFilterProp: 'children',
3328
+ filterOption: (input: string, option: { props: { children: string } }) =>
3329
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
3330
+ },
3331
+ }
3332
+ },
3127
3333
  ]
3128
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
3334
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
3129
3335
  Promise.all([
3130
3336
  loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
3131
3337
  'qp-employeeCode-eq': getEmployeeCode(),
3132
3338
  'qp-realOrg-eq': true,
3133
3339
  'qp-status-eq': 10
3134
- },getQueryHeadersItem(queryHeaderParams,'qp-salesOrgCode-in')),
3135
- ]).then((x: any)=>{
3340
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-salesOrgCode-in')),
3341
+ ]).then((x: any) => {
3136
3342
  formatSource(x, 0, 2, tableSearchForm);
3137
3343
  })
3138
3344
  modalTableProps = {
@@ -3196,58 +3402,59 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3196
3402
  sourceName: 'organizationCode',
3197
3403
  ...requestConfigProp
3198
3404
  },
3199
- tableSearchForm = [
3200
- { name: 'qp-name-like', label: '组织名称' },
3201
- { name: 'qp-code-like', label: '组织编码' },
3202
- { name: 'qp-orgViewCode-in', type: 'select', label: '业务职能', field: {
3203
- type: 'select',
3204
- props: {
3205
- mode: 'multiple',
3206
- notFoundContent: '暂无数据',
3207
- allowClear: true,
3208
- showSearch: true,
3209
- showArrow: true,
3210
- maxTagCount: 1,
3211
- optionFilterProp: 'children',
3212
- filterOption: (input: string, option: { props: { children: string } }) =>
3213
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
3214
- },
3215
- }
3216
- },
3217
- {
3218
- name: 'qp-orgType-in',
3219
- type: 'select',
3220
- label: '组织类型',
3221
- field: {
3405
+ tableSearchForm = [
3406
+ { name: 'qp-name-like', label: '组织名称' },
3407
+ { name: 'qp-code-like', label: '组织编码' },
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',
3222
3426
  type: 'select',
3223
- props: {
3224
- mode: 'multiple',
3225
- allowClear: true,
3226
- maxTagCount: 1,
3427
+ label: '组织类型',
3428
+ field: {
3429
+ type: 'select',
3430
+ props: {
3431
+ mode: 'multiple',
3432
+ allowClear: true,
3433
+ maxTagCount: 1,
3434
+ },
3227
3435
  },
3436
+ initialSource: orgType
3228
3437
  },
3229
- initialSource: orgType
3230
- },
3231
- {
3232
- name: 'qp-nodeType-in',
3233
- type: 'select',
3234
- label: '组织形态',
3235
- field: {
3438
+ {
3439
+ name: 'qp-nodeType-in',
3236
3440
  type: 'select',
3237
- props: {
3238
- mode: 'multiple',
3239
- allowClear: true,
3240
- maxTagCount: 1,
3441
+ label: '组织形态',
3442
+ field: {
3443
+ type: 'select',
3444
+ props: {
3445
+ mode: 'multiple',
3446
+ allowClear: true,
3447
+ maxTagCount: 1,
3448
+ },
3241
3449
  },
3242
- },
3243
- initialSource: nodeType
3244
- }]
3245
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
3450
+ initialSource: nodeType
3451
+ }]
3452
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
3246
3453
  Promise.all([
3247
3454
  loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getOrgViewListNoPage`, {
3248
3455
  'qp-status-eq': 10
3249
- },getQueryHeadersItem(queryHeaderParams,'qp-orgViewCode-in')),
3250
- ]).then((x: any)=>{
3456
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgViewCode-in')),
3457
+ ]).then((x: any) => {
3251
3458
  formatSource(x, 0, 2, tableSearchForm);
3252
3459
  })
3253
3460
  modalTableProps = {
@@ -3302,7 +3509,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3302
3509
  }
3303
3510
 
3304
3511
  // 人员选择器
3305
- if(type === 'person') {
3512
+ if (type === 'person') {
3306
3513
  selectProps = {
3307
3514
  placeholder: '输入人员编码或名称',
3308
3515
  renderTableColumns: [
@@ -3372,7 +3579,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3372
3579
  }
3373
3580
 
3374
3581
  // 品牌选择器
3375
- if(type === 'brand') {
3582
+ if (type === 'brand') {
3376
3583
  selectProps = {
3377
3584
  placeholder: '输入品牌编码或名称',
3378
3585
  renderTableColumns: [
@@ -3426,7 +3633,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3426
3633
  JSON.parse(text || '[]').map((ites: any, index: any) =>
3427
3634
  tableColumnsImage(ites),
3428
3635
  )) ||
3429
- tableColumnsImage(text)}
3636
+ tableColumnsImage(text)}
3430
3637
  </Image.PreviewGroup>
3431
3638
  ),
3432
3639
  },
@@ -3458,8 +3665,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3458
3665
  }
3459
3666
  }
3460
3667
 
3461
- // 价格项选择器
3462
- if(type === 'priceItem') {
3668
+ // 价格项选择器
3669
+ if (type === 'priceItem') {
3463
3670
  selectProps = {
3464
3671
  placeholder: '输入价格项编码或名称',
3465
3672
  renderTableColumns: [
@@ -3516,7 +3723,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3516
3723
  title: '创建时间',
3517
3724
  dataIndex: 'createTime',
3518
3725
  defaultSort: 3,
3519
- render: (text: any) => handleTooltip(text, true),
3726
+ render: (text: any) => handleTooltip(text, true),
3520
3727
  },
3521
3728
  {
3522
3729
  title: '创建人',
@@ -3560,58 +3767,59 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3560
3767
  sourceName: 'supplierCode',
3561
3768
  ...requestConfigProp
3562
3769
  },
3563
- tableSearchForm = [
3564
- { name: 'qp-name-like', label: '组织名称' },
3565
- { name: 'qp-code-like', label: '组织编码' },
3566
- { name: 'qp-orgViewCode-in', type: 'select', label: '业务职能', field: {
3567
- type: 'select',
3568
- props: {
3569
- mode: 'multiple',
3570
- notFoundContent: '暂无数据',
3571
- allowClear: true,
3572
- showSearch: true,
3573
- showArrow: true,
3574
- maxTagCount: 1,
3575
- optionFilterProp: 'children',
3576
- filterOption: (input: string, option: { props: { children: string } }) =>
3577
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
3578
- },
3579
- }
3580
- },
3581
- {
3582
- name: 'qp-orgType-in',
3583
- type: 'select',
3584
- label: '组织类型',
3585
- field: {
3770
+ tableSearchForm = [
3771
+ { name: 'qp-name-like', label: '组织名称' },
3772
+ { name: 'qp-code-like', label: '组织编码' },
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',
3586
3791
  type: 'select',
3587
- props: {
3588
- mode: 'multiple',
3589
- allowClear: true,
3590
- maxTagCount: 1,
3792
+ label: '组织类型',
3793
+ field: {
3794
+ type: 'select',
3795
+ props: {
3796
+ mode: 'multiple',
3797
+ allowClear: true,
3798
+ maxTagCount: 1,
3799
+ },
3591
3800
  },
3801
+ initialSource: orgType
3592
3802
  },
3593
- initialSource: orgType
3594
- },
3595
- {
3596
- name: 'qp-nodeType-in',
3597
- type: 'select',
3598
- label: '组织形态',
3599
- field: {
3803
+ {
3804
+ name: 'qp-nodeType-in',
3600
3805
  type: 'select',
3601
- props: {
3602
- mode: 'multiple',
3603
- allowClear: true,
3604
- maxTagCount: 1,
3806
+ label: '组织形态',
3807
+ field: {
3808
+ type: 'select',
3809
+ props: {
3810
+ mode: 'multiple',
3811
+ allowClear: true,
3812
+ maxTagCount: 1,
3813
+ },
3605
3814
  },
3606
- },
3607
- initialSource: nodeType
3608
- }]
3609
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
3815
+ initialSource: nodeType
3816
+ }]
3817
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
3610
3818
  Promise.all([
3611
3819
  loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getOrgViewListNoPage`, {
3612
3820
  'qp-status-eq': 10
3613
- },getQueryHeadersItem(queryHeaderParams,'qp-orgViewCode-in')),
3614
- ]).then((x: any)=>{
3821
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgViewCode-in')),
3822
+ ]).then((x: any) => {
3615
3823
  formatSource(x, 0, 2, tableSearchForm);
3616
3824
  })
3617
3825
  modalTableProps = {