@bit-sun/business-component 4.2.1-alpha.10-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.
@@ -8,11 +8,11 @@ import { getEmployeeCode, getCurrentTargetBgId } from '@/utils/LocalstorageUtils
8
8
  import { Image } from 'antd';
9
9
  import { isBoolean, trim } from 'lodash';
10
10
 
11
- const hasDictSharingType = 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,51 +576,51 @@ 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',
@@ -615,7 +647,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
615
647
  title: '图片',
616
648
  dataIndex: 'itemUrl',
617
649
  defaultSort: 1,
618
- 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 }),
619
651
  },
620
652
  {
621
653
  title: '商品条码',
@@ -660,7 +692,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
660
692
  }
661
693
 
662
694
  // 商品选择器spu
663
- if(type === 'spuCommodity') {
695
+ if (type === 'spuCommodity') {
664
696
  selectProps = {
665
697
  placeholder: '输入商品(SPU)编码或名称',
666
698
  renderTableColumns: [
@@ -691,7 +723,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
691
723
  tableSearchForm = [
692
724
  { name: 'itemCode*multiInput', label: 'SPU编码', type: 'multipleQueryInput' },
693
725
  { name: 'name*multiInput', label: 'SPU名称', type: 'multipleQueryInput' },
694
- { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
726
+ {
727
+ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
695
728
  type: 'select',
696
729
  props: {
697
730
  mode: 'multiple',
@@ -704,8 +737,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
704
737
  filterOption: (input: string, option: { props: { children: string } }) =>
705
738
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
706
739
  },
707
- } },
708
- { name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
740
+ }
741
+ },
742
+ {
743
+ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
709
744
  type: 'treeSelect',
710
745
  props: {
711
746
  treeData: [],
@@ -722,8 +757,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
722
757
  },
723
758
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
724
759
  },
725
- } },
726
- { name: 'qp-classId-in', type: 'select', label: '品类', field: {
760
+ }
761
+ },
762
+ {
763
+ name: 'qp-classId-in', type: 'select', label: '品类', field: {
727
764
  type: 'select',
728
765
  props: {
729
766
  mode: 'multiple',
@@ -736,27 +773,28 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
736
773
  filterOption: (input: string, option: { props: { children: string } }) =>
737
774
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
738
775
  },
739
- } },
776
+ }
777
+ },
740
778
  ]
741
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
779
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
742
780
  Promise.all([
743
781
  loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
744
782
  pageSize: 5000,
745
783
  currentPage: 1,
746
784
  'ctl-withAuth': true
747
- },getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
785
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-brandId-in')),
748
786
  loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
749
787
  pageSize: 5000,
750
788
  currentPage: 1,
751
- },getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
789
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-categoryId-in')),
752
790
  loadSelectSource(`${prefixUrl.formSelectFix}/class/withProperty`, {
753
791
  pageSize: 5000,
754
792
  currentPage: 1,
755
- },getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
756
- ]).then((x: any)=>{
757
- formatSource(x,0, 2, tableSearchForm,['id','name']);
758
- formatTreeDataSource(x,1, 3, tableSearchForm);
759
- formatSource(x,2, 4, tableSearchForm,['id','name']);
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']);
760
798
  })
761
799
  modalTableProps = {
762
800
  modalTableTitle: '选择商品(SPU) ',
@@ -797,7 +835,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
797
835
  }
798
836
 
799
837
  // 新库存商品选择器spu
800
- if(type === 'spuCommodityWithProperty') {
838
+ if (type === 'spuCommodityWithProperty') {
801
839
  selectProps = {
802
840
  placeholder: '输入spu编码或名称',
803
841
  renderTableColumns: [
@@ -829,7 +867,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
829
867
  tableSearchForm = [
830
868
  { name: 'itemCode*multiInput', label: 'SPU编码', type: 'multipleQueryInput' },
831
869
  { name: 'name*multiInput', label: 'SPU名称', type: 'multipleQueryInput' },
832
- { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
870
+ {
871
+ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
833
872
  type: 'select',
834
873
  props: {
835
874
  mode: 'multiple',
@@ -842,8 +881,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
842
881
  filterOption: (input: string, option: { props: { children: string } }) =>
843
882
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
844
883
  },
845
- } },
846
- { name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
884
+ }
885
+ },
886
+ {
887
+ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
847
888
  type: 'treeSelect',
848
889
  props: {
849
890
  treeData: [],
@@ -860,8 +901,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
860
901
  },
861
902
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
862
903
  },
863
- } },
864
- { name: 'qp-classId-in', type: 'select', label: '品类', field: {
904
+ }
905
+ },
906
+ {
907
+ name: 'qp-classId-in', type: 'select', label: '品类', field: {
865
908
  type: 'select',
866
909
  props: {
867
910
  mode: 'multiple',
@@ -874,82 +917,83 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
874
917
  filterOption: (input: string, option: { props: { children: string } }) =>
875
918
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
876
919
  },
877
- } },
878
- {
879
- name: 'qp-year-in',
880
- label: '年份',
881
- field: {
882
- type: 'itemPropertySelector',
883
- props: {
884
- propertyCode: 'SX0000114',
885
- mode: 'multiple',
886
- }
920
+ }
921
+ },
922
+ {
923
+ name: 'qp-year-in',
924
+ label: '年份',
925
+ field: {
926
+ type: 'itemPropertySelector',
927
+ props: {
928
+ propertyCode: 'SX0000114',
929
+ mode: 'multiple',
887
930
  }
888
- },
889
- {
890
- name: 'qp-season-in',
891
- label: '季节',
892
- field: {
893
- type: 'itemPropertySelector',
894
- props: {
895
- propertyCode: 'SX0000070',
896
- mode: 'multiple',
897
- }
931
+ }
932
+ },
933
+ {
934
+ name: 'qp-season-in',
935
+ label: '季节',
936
+ field: {
937
+ type: 'itemPropertySelector',
938
+ props: {
939
+ propertyCode: 'SX0000070',
940
+ mode: 'multiple',
898
941
  }
899
- },
900
- {
901
- name: 'qp-zzdlbm-in',
902
- label: '大类',
903
- field: {
904
- type: 'itemPropertySelector',
905
- props: {
906
- propertyCode: 'SX0000071',
907
- mode: 'multiple',
908
- }
942
+ }
943
+ },
944
+ {
945
+ name: 'qp-zzdlbm-in',
946
+ label: '大类',
947
+ field: {
948
+ type: 'itemPropertySelector',
949
+ props: {
950
+ propertyCode: 'SX0000071',
951
+ mode: 'multiple',
909
952
  }
910
- },
911
- {
912
- name: 'qp-zzzlbm-in',
913
- label: '中类',
914
- field: {
915
- type: 'itemPropertySelector',
916
- props: {
917
- propertyCode: 'SX0000072',
918
- mode: 'multiple',
919
- }
953
+ }
954
+ },
955
+ {
956
+ name: 'qp-zzzlbm-in',
957
+ label: '中类',
958
+ field: {
959
+ type: 'itemPropertySelector',
960
+ props: {
961
+ propertyCode: 'SX0000072',
962
+ mode: 'multiple',
920
963
  }
921
- },
922
- {
923
- name: 'qp-zzxlbm-in',
924
- label: '小类',
925
- field: {
926
- type: 'itemPropertySelector',
927
- props: {
928
- propertyCode: 'SX0000110',
929
- mode: 'multiple',
930
- }
964
+ }
965
+ },
966
+ {
967
+ name: 'qp-zzxlbm-in',
968
+ label: '小类',
969
+ field: {
970
+ type: 'itemPropertySelector',
971
+ props: {
972
+ propertyCode: 'SX0000110',
973
+ mode: 'multiple',
931
974
  }
932
- },
975
+ }
976
+ },
933
977
  ]
934
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
978
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
935
979
  Promise.all([
936
980
  loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
937
981
  pageSize: 5000,
938
982
  currentPage: 1,
939
983
  'ctl-withAuth': true
940
- },getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')),
984
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-brandId-in')),
941
985
  loadSelectSource(`${prefixUrl.formSelectFix}/category/queryCategoryTree`, {
942
986
  pageSize: 5000,
943
987
  currentPage: 1,
944
- },getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
988
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-categoryId-in')),
945
989
  loadSelectSource(`${prefixUrl.formSelectFix}/class/withProperty`, {
946
990
  pageSize: 5000,
947
991
  currentPage: 1,
948
- },getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
949
- ]).then((x: any)=>{
950
- formatSource(x,0, 2, tableSearchForm,['id','name']);
951
- formatTreeDataSource(x,1, 3, tableSearchForm);
952
- formatSource(x,2, 4, tableSearchForm,['id','name']);
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']);
953
997
  })
954
998
  modalTableProps = {
955
999
  modalTableTitle: '选择SPU',
@@ -991,7 +1035,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
991
1035
  }
992
1036
 
993
1037
  // 商品选择器skc
994
- if(type === 'skcCommodity') {
1038
+ if (type === 'skcCommodity') {
995
1039
  selectProps = {
996
1040
  placeholder: '输入SKC编码或名称',
997
1041
  renderTableColumns: [
@@ -1010,7 +1054,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1010
1054
  { name: 'qp-code-like', label: 'SKC编码' },
1011
1055
  { name: 'qp-skcName-like', label: 'SKC名称' },
1012
1056
  { name: 'qp-itemName-like', label: '商品名称' },
1013
- { name: 'qp-colorName-in', type: 'select', label: '颜色', field: {
1057
+ {
1058
+ name: 'qp-colorName-in', type: 'select', label: '颜色', field: {
1014
1059
  type: 'select',
1015
1060
  props: {
1016
1061
  mode: 'multiple',
@@ -1023,8 +1068,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1023
1068
  filterOption: (input: string, option: { props: { children: string } }) =>
1024
1069
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1025
1070
  },
1026
- } },
1027
- { name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
1071
+ }
1072
+ },
1073
+ {
1074
+ name: 'qp-categoryId-in', type: 'treeSelect', label: '类目', field: {
1028
1075
  type: 'treeSelect',
1029
1076
  props: {
1030
1077
  treeData: [],
@@ -1041,8 +1088,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1041
1088
  },
1042
1089
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
1043
1090
  },
1044
- } },
1045
- { name: 'qp-classId-in', type: 'select', label: '品类', field: {
1091
+ }
1092
+ },
1093
+ {
1094
+ name: 'qp-classId-in', type: 'select', label: '品类', field: {
1046
1095
  type: 'select',
1047
1096
  props: {
1048
1097
  mode: 'multiple',
@@ -1055,8 +1104,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1055
1104
  filterOption: (input: string, option: { props: { children: string } }) =>
1056
1105
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1057
1106
  },
1058
- } },
1059
- { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
1107
+ }
1108
+ },
1109
+ {
1110
+ name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
1060
1111
  type: 'select',
1061
1112
  props: {
1062
1113
  mode: 'multiple',
@@ -1069,9 +1120,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1069
1120
  filterOption: (input: string, option: { props: { children: string } }) =>
1070
1121
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1071
1122
  },
1072
- } },
1123
+ }
1124
+ },
1073
1125
  ], hiddenFields);
1074
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1126
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1075
1127
  const fieldsRequest = handleHiddenFieldsRequest(
1076
1128
  [
1077
1129
  {
@@ -1081,7 +1133,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1081
1133
  currentPage: 1,
1082
1134
  type: 2, // 类型:1尺码;2颜色
1083
1135
  },
1084
- options: getQueryHeadersItem(queryHeaderParams,'qp-colorName-in')
1136
+ options: getQueryHeadersItem(queryHeaderParams, 'qp-colorName-in')
1085
1137
  },
1086
1138
  {
1087
1139
  url: `${prefixUrl.formSelectFix}/category/queryCategoryTree`,
@@ -1089,7 +1141,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1089
1141
  pageSize: 5000,
1090
1142
  currentPage: 1,
1091
1143
  },
1092
- options: getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')
1144
+ options: getQueryHeadersItem(queryHeaderParams, 'qp-categoryId-in')
1093
1145
  },
1094
1146
  {
1095
1147
  url: `${prefixUrl.formSelectFix}/class/withProperty`,
@@ -1097,7 +1149,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1097
1149
  pageSize: 5000,
1098
1150
  currentPage: 1,
1099
1151
  },
1100
- options: getQueryHeadersItem(queryHeaderParams,'qp-classId-in')
1152
+ options: getQueryHeadersItem(queryHeaderParams, 'qp-classId-in')
1101
1153
  },
1102
1154
  {
1103
1155
  url: `${prefixUrl.formSelectFix}/brand/queryBrandList`,
@@ -1106,7 +1158,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1106
1158
  currentPage: 1,
1107
1159
  'ctl-withAuth': true
1108
1160
  },
1109
- options: getQueryHeadersItem(queryHeaderParams,'qp-brandId-in')
1161
+ options: getQueryHeadersItem(queryHeaderParams, 'qp-brandId-in')
1110
1162
  }
1111
1163
  ],
1112
1164
  ['colorName', 'categoryId', 'classId', 'brandId'],
@@ -1125,11 +1177,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1125
1177
  sourceName: 'qp-skcCode-eq',
1126
1178
  ...requestConfigProp,
1127
1179
  }
1128
- Promise.all(fieldLoadSource).then((x: any)=>{
1129
- formatSource(x,0, getFieldIndex(tableSearchForm, 'colorName'), tableSearchForm,['value','value']);
1130
- formatTreeDataSource(x,1, getFieldIndex(tableSearchForm, 'categoryId'), tableSearchForm);
1131
- formatSource(x,2, getFieldIndex(tableSearchForm, 'classId'), tableSearchForm,['id','name']);
1132
- formatSource(x,3, getFieldIndex(tableSearchForm, 'brandId'), tableSearchForm,['id','name']);
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']);
1133
1185
  })
1134
1186
  modalTableProps = {
1135
1187
  modalTableTitle: '选择SKC',
@@ -1178,7 +1230,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1178
1230
  }
1179
1231
 
1180
1232
  // 商品规格选择器(无弹窗)
1181
- if(type === 'skuPropertyValue') {
1233
+ if (type === 'skuPropertyValue') {
1182
1234
  selectProps = {
1183
1235
  placeholder: '输入规格编码或名称',
1184
1236
  renderTableColumns: [
@@ -1211,7 +1263,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1211
1263
  }
1212
1264
 
1213
1265
  // 仓库选择器(物理、逻辑仓、运营仓)
1214
- if(type === 'physicalWarehouse') {
1266
+ if (type === 'physicalWarehouse') {
1215
1267
  selectProps = {
1216
1268
  placeholder: '输入物理仓编码或名称',
1217
1269
  renderTableColumns: [
@@ -1234,7 +1286,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1234
1286
  mappingTextShowKeyField: 'physicalWarehouseCode',
1235
1287
  mappingValueField: 'id',
1236
1288
  otherParams: {
1237
- ...(modalTableBusProps?.needStatusSearch?{}:{'qp-isEnable-eq': 1}),
1289
+ ...(modalTableBusProps?.needStatusSearch ? {} : { 'qp-isEnable-eq': 1 }),
1238
1290
  sorter: 'desc-id',
1239
1291
  ...(requestConfigProp?.addOtherParams || {}),
1240
1292
  }, // 默认参数
@@ -1244,8 +1296,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1244
1296
  tableSearchForm = [
1245
1297
  { name: 'physicalWarehouseName*multiInput', label: '物理仓名称', type: 'multipleQueryInput' },
1246
1298
  { name: 'physicalWarehouseCode*multiInput', label: '物理仓编码', type: 'multipleQueryInput' },
1247
- { name: 'qp-physicalWarehouseType-eq', type: 'select', label: '物理仓类型', initialSource: getDictionarySource('SC00002') },
1248
- { 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: {
1249
1302
  type: 'select',
1250
1303
  props: {
1251
1304
  mode: 'multiple',
@@ -1258,18 +1311,19 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1258
1311
  filterOption: (input: string, option: { props: { children: string } }) =>
1259
1312
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1260
1313
  },
1261
- } },
1262
- ...(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') }] : [])
1263
1317
  ]
1264
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1318
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1265
1319
  Promise.all([
1266
1320
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
1267
1321
  pageSize: 5000,
1268
1322
  currentPage: 1,
1269
1323
  'qp-companyType-eq': 20,
1270
- },getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
1271
- ]).then((x: any)=>{
1272
- formatSource(x,0, 3, tableSearchForm);
1324
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-companyCode-in')),
1325
+ ]).then((x: any) => {
1326
+ formatSource(x, 0, 3, tableSearchForm);
1273
1327
  })
1274
1328
  modalTableProps = {
1275
1329
  modalTableTitle: '选择物理仓',
@@ -1296,11 +1350,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1296
1350
  defaultSort: 3,
1297
1351
  render: (text: number) => getDictionaryTextByValue('SC00002', text),
1298
1352
  },
1299
- ...(modalTableBusProps?.needStatusSearch?[{
1353
+ ...(modalTableBusProps?.needStatusSearch ? [{
1300
1354
  title: '状态',
1301
1355
  dataIndex: 'isEnable',
1302
1356
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1303
- }]:[]),
1357
+ }] : []),
1304
1358
  {
1305
1359
  title: '所属公司',
1306
1360
  dataIndex: 'companyName',
@@ -1310,7 +1364,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1310
1364
  ...modalTableBusProps
1311
1365
  }
1312
1366
  }
1313
- if(type === 'realWarehouse') {
1367
+ if (type === 'realWarehouse') {
1314
1368
  selectProps = {
1315
1369
  placeholder: '输入逻辑仓编码或名称',
1316
1370
  renderTableColumns: [
@@ -1333,24 +1387,24 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1333
1387
  mappingTextShowKeyField: 'realWarehouseCode',
1334
1388
  mappingValueField: 'id',
1335
1389
  otherParams: {
1336
- ...(modalTableBusProps?.needStatusSearch?{}:{'qp-isEnable-eq': 1}),
1390
+ ...(modalTableBusProps?.needStatusSearch ? {} : { 'qp-isEnable-eq': 1 }),
1337
1391
  sorter: 'desc-id',
1338
1392
  ...(requestConfigProp?.addOtherParams || {}),
1339
1393
  }, // 默认参数
1340
1394
  sourceName: 'warehouseIds',
1341
1395
  ...requestConfigProp,
1342
1396
  }
1343
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1397
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1344
1398
  Promise.all([
1345
1399
  loadSelectSource(`/channel-manage/channelInfo/tree`, {
1346
1400
  'qp-status-eq': 10,
1347
1401
  'qp-isMain-eq': 1,
1348
1402
  'qp-type-in': '1,2',
1349
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1403
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
1350
1404
  loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
1351
1405
  'qp-status-eq': 1,
1352
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1353
- ]).then((x: any)=>{
1406
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
1407
+ ]).then((x: any) => {
1354
1408
  debugger
1355
1409
  // 战区限制一级数据
1356
1410
  const newData1 = [];
@@ -1363,13 +1417,13 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1363
1417
  x[0].data = newData1;
1364
1418
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1365
1419
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1366
- formatTreeDataSource(x, 0, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1420
+ formatTreeDataSource(x, 0, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude)
1367
1421
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1368
1422
  })
1369
1423
  tableSearchForm = [
1370
1424
  { name: 'realWarehouseName*multiInput', label: '逻辑仓名称', type: 'multipleQueryInput' },
1371
1425
  { name: 'realWarehouseCode*multiInput', label: '逻辑仓编码', type: 'multipleQueryInput' },
1372
- { name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
1426
+ { name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
1373
1427
  // { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
1374
1428
  {
1375
1429
  name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
@@ -1427,7 +1481,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1427
1481
  },
1428
1482
  initialSource: getDictionarySource('BUSINESS_StoreType')
1429
1483
  },
1430
- ...(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') }] : []),
1431
1485
  ]
1432
1486
  modalTableProps = {
1433
1487
  modalTableTitle: '选择逻辑仓',
@@ -1480,18 +1534,18 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1480
1534
  render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
1481
1535
  width: 80,
1482
1536
  },
1483
- ...(modalTableBusProps?.needStatusSearch?[{
1537
+ ...(modalTableBusProps?.needStatusSearch ? [{
1484
1538
  title: '状态',
1485
1539
  dataIndex: 'isEnable',
1486
1540
  defaultSort: 8,
1487
1541
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1488
- }]:[]),
1542
+ }] : []),
1489
1543
  ],
1490
1544
  noEmptySearchField: true,
1491
1545
  ...modalTableBusProps,
1492
1546
  }
1493
1547
  }
1494
- if(type === 'ownerWarehouse') {
1548
+ if (type === 'ownerWarehouse') {
1495
1549
  selectProps = {
1496
1550
  placeholder: '输入运营仓编码或名称',
1497
1551
  renderTableColumns: [
@@ -1514,7 +1568,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1514
1568
  mappingTextShowKeyField: 'operationWarehouseCode',
1515
1569
  mappingValueField: 'operationWarehouseCode',
1516
1570
  otherParams: {
1517
- ...(modalTableBusProps?.needStatusSearch?{}:{'qp-status-eq': 1}),
1571
+ ...(modalTableBusProps?.needStatusSearch ? {} : { 'qp-status-eq': 1 }),
1518
1572
  sorter: 'desc-id',
1519
1573
  ...(requestConfigProp?.addOtherParams || {}),
1520
1574
  }, // 默认参数
@@ -1524,7 +1578,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1524
1578
  tableSearchForm = [
1525
1579
  { name: 'name*multiInput', label: '运营仓名称', type: 'multipleQueryInput' },
1526
1580
  { name: 'operationWarehouseCode*multiInput', label: '运营仓编码', type: 'multipleQueryInput' },
1527
- { name: 'qp-groupCode-in', type: 'select', label: '运营组', field: {
1581
+ {
1582
+ name: 'qp-groupCode-in', type: 'select', label: '运营组', field: {
1528
1583
  type: 'select',
1529
1584
  props: {
1530
1585
  mode: 'multiple',
@@ -1537,8 +1592,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1537
1592
  filterOption: (input: string, option: { props: { children: string } }) =>
1538
1593
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1539
1594
  },
1540
- } },
1541
- {
1595
+ }
1596
+ },
1597
+ {
1542
1598
  name: 'qp-operationWarehouseClassification-in', type: 'select', label: '分类', field: {
1543
1599
  type: 'select',
1544
1600
  props: {
@@ -1556,20 +1612,20 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1556
1612
  showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1557
1613
  },
1558
1614
  },
1559
- initialSource: getDictionarySource('BASIC_OPS_WH_TYPE')
1615
+ initialSource: getDictionarySource('BASIC_OPS_WH_TYPE')
1560
1616
  },
1561
- ...(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') }] : []),
1562
1618
  ]
1563
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1619
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1564
1620
  Promise.all([
1565
- 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')),
1566
1622
  loadSelectSource(`/channel-manage/channelInfo/tree`, {
1567
1623
  'qp-status-eq': 10,
1568
1624
  'qp-isMain-eq': 1,
1569
1625
  'qp-type-in': '1,2',
1570
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1571
- ]).then((x: any)=>{
1572
- formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
1626
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
1627
+ ]).then((x: any) => {
1628
+ formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
1573
1629
  const newData1: any[] = [];
1574
1630
  x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
1575
1631
  newData1.push({ code: item.code, name: item.name })
@@ -1600,13 +1656,13 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1600
1656
  dataIndex: 'groupName',
1601
1657
  defaultSort: 3,
1602
1658
  },
1603
- ...(modalTableBusProps?.needStatusSearch?[{
1659
+ ...(modalTableBusProps?.needStatusSearch ? [{
1604
1660
  title: '状态',
1605
1661
  dataIndex: 'status',
1606
1662
  defaultSort: 4,
1607
1663
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1608
- }]:[]),
1609
- {
1664
+ }] : []),
1665
+ {
1610
1666
  title: '所属销售渠道',
1611
1667
  dataIndex: 'channelName',
1612
1668
  defaultSort: 5,
@@ -1618,7 +1674,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1618
1674
  }
1619
1675
 
1620
1676
  // 仓库选择器(虚拟、渠道仓)(无弹窗)
1621
- if(type === 'virtualWarehouse') {
1677
+ if (type === 'virtualWarehouse') {
1622
1678
  selectProps = {
1623
1679
  placeholder: '输入虚拟仓编码或名称',
1624
1680
  renderTableColumns: [
@@ -1650,7 +1706,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1650
1706
  }
1651
1707
  needModalTable = false
1652
1708
  }
1653
- if(type === 'channelWarehouse') {
1709
+ if (type === 'channelWarehouse') {
1654
1710
  selectProps = {
1655
1711
  placeholder: '输入渠道仓编码或名称',
1656
1712
  renderTableColumns: [
@@ -1684,7 +1740,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1684
1740
  }
1685
1741
 
1686
1742
  // 客户选择器
1687
- if(type === 'customer') {
1743
+ if (type === 'customer') {
1688
1744
  selectProps = {
1689
1745
  placeholder: '输入客户编码或名称',
1690
1746
  renderTableColumns: [
@@ -1716,7 +1772,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1716
1772
  tableSearchForm = [
1717
1773
  { name: 'qp-name-like', label: '客户名称' },
1718
1774
  { name: 'qp-code-like', label: '客户编码' },
1719
- { name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
1775
+ {
1776
+ name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
1720
1777
  type: 'select',
1721
1778
  props: {
1722
1779
  mode: 'multiple',
@@ -1729,8 +1786,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1729
1786
  filterOption: (input: string, option: { props: { children: string } }) =>
1730
1787
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1731
1788
  },
1732
- } },
1733
- { name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
1789
+ }
1790
+ },
1791
+ {
1792
+ name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
1734
1793
  type: 'select',
1735
1794
  props: {
1736
1795
  mode: 'multiple',
@@ -1743,8 +1802,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1743
1802
  filterOption: (input: string, option: { props: { children: string } }) =>
1744
1803
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1745
1804
  },
1746
- } },
1747
- { name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
1805
+ }
1806
+ },
1807
+ {
1808
+ name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
1748
1809
  type: 'select',
1749
1810
  props: {
1750
1811
  mode: 'multiple',
@@ -1757,29 +1818,30 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1757
1818
  filterOption: (input: string, option: { props: { children: string } }) =>
1758
1819
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1759
1820
  },
1760
- } },
1821
+ }
1822
+ },
1761
1823
  { name: 'qp-sharingType-eq', type: 'select', label: '共享类型', initialSource: sharingTypeDataList },
1762
1824
  ]
1763
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1825
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1764
1826
  Promise.all([
1765
1827
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
1766
1828
  pageSize: 5000,
1767
1829
  currentPage: 1,
1768
1830
  'qp-companyType-eq': '30',
1769
- },getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
1831
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-conglomerateCode-in')),
1770
1832
  loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
1771
1833
  pageSize: 5000,
1772
1834
  currentPage: 1,
1773
- },getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
1835
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-accountingCode-in')),
1774
1836
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
1775
1837
  pageSize: 5000,
1776
1838
  currentPage: 1,
1777
1839
  'qp-companyType-eq': '20',
1778
- },getQueryHeadersItem(queryHeaderParams,'qp-sharingType-in'))
1779
- ]).then((x: any)=>{
1780
- formatSource(x,0, 2, tableSearchForm);
1781
- formatSource(x,1, 3, tableSearchForm);
1782
- 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);
1783
1845
  })
1784
1846
  modalTableProps = {
1785
1847
  modalTableTitle: '选择客户',
@@ -1823,7 +1885,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1823
1885
  ...modalTableBusProps
1824
1886
  }
1825
1887
  }
1826
- if(type === 'customer2') {
1888
+ if (type === 'customer2') {
1827
1889
  selectProps = {
1828
1890
  placeholder: '输入客户编码或名称',
1829
1891
  renderTableColumns: [
@@ -1857,7 +1919,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1857
1919
  tableSearchForm = [
1858
1920
  { name: 'qp-name-like', label: '客户名称' },
1859
1921
  { name: 'qp-code-like', label: '客户编码' },
1860
- { name: 'qp-createOrgCode-in', type: 'select', label: '创建组织', field: {
1922
+ {
1923
+ name: 'qp-createOrgCode-in', type: 'select', label: '创建组织', field: {
1861
1924
  type: 'select',
1862
1925
  props: {
1863
1926
  mode: 'multiple',
@@ -1870,8 +1933,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1870
1933
  filterOption: (input: string, option: { props: { children: string } }) =>
1871
1934
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1872
1935
  },
1873
- } },
1874
- { name: 'qp-salesOrgCode-eq', type: 'select', label: '使用组织', field: {
1936
+ }
1937
+ },
1938
+ {
1939
+ name: 'qp-salesOrgCode-eq', type: 'select', label: '使用组织', field: {
1875
1940
  type: 'select',
1876
1941
  props: {
1877
1942
  // mode: 'multiple',
@@ -1884,8 +1949,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1884
1949
  filterOption: (input: string, option: { props: { children: string } }) =>
1885
1950
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1886
1951
  },
1887
- } },
1888
- {
1952
+ }
1953
+ },
1954
+ {
1889
1955
  name: 'qp-saleChannel-in', type: 'treeSelect', label: '销售渠道', field: {
1890
1956
  type: 'treeSelect',
1891
1957
  props: {
@@ -1925,25 +1991,25 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1925
1991
  }
1926
1992
  },
1927
1993
  ];
1928
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1994
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
1929
1995
  Promise.all([
1930
- loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
1996
+ loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {}, getQueryHeadersItem(queryHeaderParams, 'qp-createOrgCode-eq')),
1931
1997
  loadSelectSource(`/channel-manage/channelInfo/tree`, {
1932
1998
  'qp-status-eq': 10,
1933
1999
  'qp-isMain-eq': 1,
1934
2000
  'qp-type-in': '1,2',
1935
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2001
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
1936
2002
  loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
1937
2003
  'qp-status-eq': 1,
1938
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1939
- ]).then((x: any)=>{
2004
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
2005
+ ]).then((x: any) => {
1940
2006
  const firstElement = x?.[0];
1941
2007
  const allList = firstElement && [firstElement, firstElement];
1942
- formatSource(allList,0, 2, tableSearchForm);
1943
- formatSource(allList,1, 3, tableSearchForm);
2008
+ formatSource(allList, 0, 2, tableSearchForm);
2009
+ formatSource(allList, 1, 3, tableSearchForm);
1944
2010
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1945
2011
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1946
- formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
2012
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude)
1947
2013
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1948
2014
  })
1949
2015
  modalTableProps = {
@@ -1976,7 +2042,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1976
2042
  defaultSort: 4,
1977
2043
  width: 100,
1978
2044
  },
1979
- {
2045
+ {
1980
2046
  title: '所属销售渠道',
1981
2047
  dataIndex: 'channelName',
1982
2048
  defaultSort: 5,
@@ -1994,7 +2060,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1994
2060
  }
1995
2061
 
1996
2062
  // 店铺选择器
1997
- if(type === 'shopFile') {
2063
+ if (type === 'shopFile') {
1998
2064
  selectProps = {
1999
2065
  placeholder: '输入店铺编码或名称',
2000
2066
  renderTableColumns: [
@@ -2027,7 +2093,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2027
2093
  { name: 'code*multiInput', label: '店铺编码', type: 'multipleQueryInput' },
2028
2094
  // { name: 'qp-name-like', label: '店铺名称' },
2029
2095
  // { name: 'qp-code-like', label: '店铺编码' },
2030
- { name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
2096
+ {
2097
+ name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
2031
2098
  type: 'select',
2032
2099
  props: {
2033
2100
  mode: 'multiple',
@@ -2040,8 +2107,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2040
2107
  filterOption: (input: string, option: { props: { children: string } }) =>
2041
2108
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2042
2109
  },
2043
- } },
2044
- { name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
2110
+ }
2111
+ },
2112
+ {
2113
+ name: 'qp-companyCode-in', type: 'select', label: '归属法人公司', field: {
2045
2114
  type: 'select',
2046
2115
  props: {
2047
2116
  mode: 'multiple',
@@ -2054,9 +2123,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2054
2123
  filterOption: (input: string, option: { props: { children: string } }) =>
2055
2124
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2056
2125
  },
2057
- } },
2126
+ }
2127
+ },
2058
2128
  { name: 'qp-type-in', type: 'select', label: '店铺类型', initialSource: shopFileType },
2059
- { name: 'qp-plateformCode-in', type: 'select', label: '店铺来源', field: {
2129
+ {
2130
+ name: 'qp-plateformCode-in', type: 'select', label: '店铺来源', field: {
2060
2131
  type: 'select',
2061
2132
  props: {
2062
2133
  mode: 'multiple',
@@ -2069,8 +2140,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2069
2140
  filterOption: (input: string, option: { props: { children: string } }) =>
2070
2141
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2071
2142
  },
2072
- } },
2073
- { name: 'qp-mainBrandCode-in', type: 'select', label: '品牌', field: {
2143
+ }
2144
+ },
2145
+ {
2146
+ name: 'qp-mainBrandCode-in', type: 'select', label: '品牌', field: {
2074
2147
  type: 'select',
2075
2148
  props: {
2076
2149
  mode: 'multiple',
@@ -2083,8 +2156,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2083
2156
  filterOption: (input: string, option: { props: { children: string } }) =>
2084
2157
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2085
2158
  },
2086
- } },
2087
- { name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
2159
+ }
2160
+ },
2161
+ {
2162
+ name: 'qp-accountingCode-in', type: 'select', label: '归属核算主体', field: {
2088
2163
  type: 'select',
2089
2164
  props: {
2090
2165
  mode: 'multiple',
@@ -2097,39 +2172,40 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2097
2172
  filterOption: (input: string, option: { props: { children: string } }) =>
2098
2173
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2099
2174
  },
2100
- } },
2175
+ }
2176
+ },
2101
2177
  ]
2102
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2178
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
2103
2179
  Promise.all([
2104
2180
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
2105
2181
  pageSize: 5000,
2106
2182
  currentPage: 1,
2107
2183
  'qp-companyType-eq': '30',
2108
- },getQueryHeadersItem(queryHeaderParams,'qp-conglomerateCode-in')),
2184
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-conglomerateCode-in')),
2109
2185
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
2110
2186
  pageSize: 5000,
2111
2187
  currentPage: 1,
2112
2188
  'qp-companyType-eq': '20',
2113
- },getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
2189
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-companyCode-in')),
2114
2190
  loadSelectSource(`${prefixUrl.formSelectFix}/platformRecord/getPlatformRecordList`, {
2115
2191
  // pageSize: 5000,
2116
2192
  // currentPage: 1,
2117
2193
  'qp-status-eq': '1',
2118
- },getQueryHeadersItem(queryHeaderParams,'qp-plateformCode-in')),
2194
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-plateformCode-in')),
2119
2195
  loadSelectSource(`${prefixUrl.formSelectFix}/store`, {
2120
2196
  pageSize: 5000,
2121
2197
  currentPage: 1,
2122
- },getQueryHeadersItem(queryHeaderParams,'qp-mainBrandCode-in')),
2198
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-mainBrandCode-in')),
2123
2199
  loadSelectSource(`${prefixUrl.formSelectFix}/accountingSubject`, {
2124
2200
  pageSize: 5000,
2125
2201
  currentPage: 1,
2126
- },getQueryHeadersItem(queryHeaderParams,'qp-accountingCode-in')),
2127
- ]).then((x: any)=>{
2128
- formatSource(x,0, 2, tableSearchForm);
2129
- formatSource(x,1, 3, tableSearchForm);
2130
- formatSource(x,2, 5, tableSearchForm);
2131
- formatSource(x,3, 6, tableSearchForm);
2132
- 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);
2133
2209
  })
2134
2210
  modalTableProps = {
2135
2211
  modalTableTitle: '选择店铺',
@@ -2177,7 +2253,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2177
2253
  ...modalTableBusProps
2178
2254
  }
2179
2255
  }
2180
- if(type === 'shopFile2') {
2256
+ if (type === 'shopFile2') {
2181
2257
  selectProps = {
2182
2258
  placeholder: '输入商店编码或名称',
2183
2259
  renderTableColumns: [
@@ -2211,7 +2287,61 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2211
2287
  { name: 'code*multiInput', label: '商店编码', type: 'multipleQueryInput' },
2212
2288
  { name: 'qp-type-in', type: 'select', label: '商店类型', initialSource: shopFile2Type },
2213
2289
  // { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
2214
- { 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: {
2215
2345
  type: 'select',
2216
2346
  props: {
2217
2347
  mode: 'multiple',
@@ -2224,63 +2354,14 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2224
2354
  filterOption: (input: string, option: { props: { children: string } }) =>
2225
2355
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2226
2356
  },
2227
- } },
2228
- { name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
2229
- type: 'treeSelect',
2230
- props: {
2231
- multiple: true,
2232
- treeData: [],
2233
- treeCheckable: false,
2234
- notFoundContent: '暂无数据',
2235
- allowClear: true,
2236
- showSearch: true,
2237
- showArrow: true,
2238
- maxTagCount: 1,
2239
- optionFilterProp: 'children',
2240
- filterOption: (input: string, option: { props: { children: string } }) =>
2241
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2242
- showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2243
- },
2244
- } },
2245
- { name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '大区', field: {
2246
- type: 'treeSelect',
2247
- props: {
2248
- multiple: true,
2249
- treeData: [],
2250
- treeCheckable: false,
2251
- notFoundContent: '暂无数据',
2252
- allowClear: true,
2253
- showSearch: true,
2254
- showArrow: true,
2255
- maxTagCount: 1,
2256
- optionFilterProp: 'children',
2257
- filterOption: (input: string, option: { props: { children: string } }) =>
2258
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2259
-
2260
- showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2261
- },
2262
- } },
2263
- { name: 'qp-businessType-in', type: 'select', label: '店铺性质', field: {
2264
- type: 'select',
2265
- props: {
2266
- mode: 'multiple',
2267
- notFoundContent: '暂无数据',
2268
- allowClear: true,
2269
- showSearch: true,
2270
- showArrow: true,
2271
- maxTagCount: 1,
2272
- optionFilterProp: 'children',
2273
- filterOption: (input: string, option: { props: { children: string } }) =>
2274
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2275
- },
2276
- } ,
2277
- initialSource: getDictionarySource('BUSINESS_StoreType')
2278
- },
2357
+ },
2358
+ initialSource: getDictionarySource('BUSINESS_StoreType')
2359
+ },
2279
2360
  {
2280
2361
  name: "qp-brandCode-in",
2281
2362
  label: "品牌",
2282
2363
  field: {
2283
- type:'select',
2364
+ type: 'select',
2284
2365
  props: {
2285
2366
  mode: 'multiple',
2286
2367
  notFoundContent: '暂无数据',
@@ -2294,101 +2375,110 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2294
2375
  },
2295
2376
  },
2296
2377
  },
2297
- { name: 'qp-manageSupervisor-like', type: 'select', label: '管理督导', field: {
2298
- type: 'select',
2299
- props: {
2300
- notFoundContent: '暂无数据',
2301
- allowClear: true,
2302
- showSearch: true,
2303
- showArrow: true,
2304
- maxTagCount: 1,
2305
- optionFilterProp: 'children',
2306
- filterOption: (input: string, option: { props: { children: string } }) =>
2307
- {
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 } }) => {
2308
2389
  debugger
2309
2390
  return (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2310
- }
2311
- },
2312
- } },
2313
- { name: 'qp-directSupervisor-like', type: 'select', label: '直接督导', field: {
2314
- type: 'select',
2315
- props: {
2316
- notFoundContent: '暂无数据',
2317
- allowClear: true,
2318
- showSearch: true,
2319
- showArrow: true,
2320
- maxTagCount: 1,
2321
- optionFilterProp: 'children',
2322
- filterOption: (input: string, option: { props: { children: string } }) =>
2323
- (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2324
- },
2325
- } },
2326
- { name: 'qp-distributionItem-like', type: 'select', label: '分销商品', field: {
2327
- type: 'select',
2328
- props: {
2329
- notFoundContent: '暂无数据',
2330
- allowClear: true,
2331
- showSearch: true,
2332
- showArrow: true,
2333
- maxTagCount: 1,
2334
- optionFilterProp: 'children',
2335
- filterOption: (input: string, option: { props: { children: string } }) =>
2336
- (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2337
- },
2338
- } },
2339
- { name: 'qp-headItem-like', type: 'select', label: '总部商品', field: {
2340
- type: 'select',
2341
- props: {
2342
- notFoundContent: '暂无数据',
2343
- allowClear: true,
2344
- showSearch: true,
2345
- showArrow: true,
2346
- maxTagCount: 1,
2347
- optionFilterProp: 'children',
2348
- filterOption: (input: string, option: { props: { children: string } }) =>
2349
- (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2350
- },
2351
- } },
2352
- { name: 'qp-storeChannelName-like', type: 'select', label: '管理模式', field: {
2353
- type: 'select',
2354
- props: {
2355
- notFoundContent: '暂无数据',
2356
- allowClear: true,
2357
- showSearch: true,
2358
- showArrow: true,
2359
- maxTagCount: 1,
2360
- optionFilterProp: 'children',
2361
- filterOption: (input: string, option: { props: { children: string } }) =>
2362
- (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2363
- },
2364
- } },
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
+ },
2365
2455
  ]
2366
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2456
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
2367
2457
  Promise.all([
2368
2458
  loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
2369
2459
  'qp-employeeCode-eq': getEmployeeCode(),
2370
2460
  'qp-realOrg-eq': true,
2371
2461
  'qp-status-eq': 10
2372
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2462
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
2373
2463
  loadSelectSource(`${prefixUrl.formSelectFix}/channelInfo/tree`, {
2374
2464
  'qp-status-eq': 10,
2375
2465
  'qp-isMain-eq': 1,
2376
2466
  'qp-type-in': '1,2',
2377
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2467
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
2378
2468
  loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
2379
2469
  'qp-status-eq': 1,
2380
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2470
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgCode-in')),
2381
2471
  loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
2382
2472
  pageSize: 5000,
2383
2473
  currentPage: 1,
2384
2474
  'ctl-withAuth': true,
2385
- },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth')),
2475
+ }, getQueryHeadersItem(queryHeaderParams, 'ctl-withAuth')),
2386
2476
  loadSelectSource(`/channel-manage/store/selectStoreOperationalInfo`, {}, {
2387
2477
  headers: {
2388
2478
  ...extralHeaders
2389
2479
  },
2390
2480
  })
2391
- ]).then((x: any)=>{
2481
+ ]).then((x: any) => {
2392
2482
  const newData1: any[] = [];
2393
2483
  x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
2394
2484
  newData1.push({ code: item.code, name: item.name })
@@ -2396,11 +2486,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2396
2486
  x[1].data = newData1;
2397
2487
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
2398
2488
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
2399
- formatSource(x,0, 3, tableSearchForm);
2400
- 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)
2401
2491
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
2402
- formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
2403
-
2492
+ formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
2493
+
2404
2494
  const opRaw = x[4]?.data;
2405
2495
  // 新增label属性
2406
2496
  opList?.forEach((r: any) => {
@@ -2523,7 +2613,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2523
2613
  }
2524
2614
 
2525
2615
  // 核算主体选择器(无弹窗)
2526
- if(type === 'accountingSubject') {
2616
+ if (type === 'accountingSubject') {
2527
2617
  selectProps = {
2528
2618
  placeholder: '输入核算主体编码或名称',
2529
2619
  renderTableColumns: [
@@ -2554,7 +2644,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2554
2644
  needModalTable = false
2555
2645
  }
2556
2646
  // 库存组织选择器(无弹窗)
2557
- if(type === 'inventoryOrg') {
2647
+ if (type === 'inventoryOrg') {
2558
2648
  selectProps = {
2559
2649
  placeholder: '输入库存组织编码或名称',
2560
2650
  renderTableColumns: [
@@ -2587,7 +2677,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2587
2677
  }
2588
2678
 
2589
2679
  // 法人公司选择器(无弹窗)
2590
- if(type === 'corporationCompany') {
2680
+ if (type === 'corporationCompany') {
2591
2681
  selectProps = {
2592
2682
  placeholder: '输入法人公司编码或名称',
2593
2683
  renderTableColumns: [
@@ -2620,7 +2710,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2620
2710
  }
2621
2711
 
2622
2712
  // 新-法人公司选择器(无弹窗)
2623
- if(type === 'platCompany') {
2713
+ if (type === 'platCompany') {
2624
2714
  selectProps = {
2625
2715
  placeholder: '输入法人公司编码或名称',
2626
2716
  renderTableColumns: [
@@ -2653,7 +2743,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2653
2743
  }
2654
2744
 
2655
2745
  // 员工选择器
2656
- if(type === 'employee') {
2746
+ if (type === 'employee') {
2657
2747
  selectProps = {
2658
2748
  placeholder: '输入员工编码或名称',
2659
2749
  renderTableColumns: [
@@ -2687,7 +2777,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2687
2777
  tableSearchForm = [
2688
2778
  { name: 'qp-name-like', label: '员工名称' },
2689
2779
  { name: 'qp-employeeNumber-like', label: '员工编码' },
2690
- { name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
2780
+ {
2781
+ name: 'qp-companyCode-in', type: 'select', label: '所属公司', field: {
2691
2782
  type: 'select',
2692
2783
  props: {
2693
2784
  mode: 'multiple',
@@ -2700,19 +2791,20 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2700
2791
  filterOption: (input: string, option: { props: { children: string } }) =>
2701
2792
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2702
2793
  },
2703
- } },
2794
+ }
2795
+ },
2704
2796
  { name: 'qp-email-like', label: '邮箱' },
2705
2797
  { name: 'qp-officeTelephone-like', label: '手机号' },
2706
2798
  ]
2707
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2799
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
2708
2800
  Promise.all([
2709
2801
  loadSelectSource(`${prefixUrl.formSelectFix}/company`, {
2710
2802
  pageSize: 5000,
2711
2803
  currentPage: 1,
2712
2804
  'qp-companyType-eq': 20,
2713
- },getQueryHeadersItem(queryHeaderParams,'qp-companyCode-in')),
2714
- ]).then((x: any)=>{
2715
- formatSource(x,0, 2, tableSearchForm);
2805
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-companyCode-in')),
2806
+ ]).then((x: any) => {
2807
+ formatSource(x, 0, 2, tableSearchForm);
2716
2808
  })
2717
2809
  modalTableProps = {
2718
2810
  modalTableTitle: '选择员工',
@@ -2751,7 +2843,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2751
2843
  ...modalTableBusProps
2752
2844
  }
2753
2845
  }
2754
- if(type === 'employee2') {
2846
+ if (type === 'employee2') {
2755
2847
  // 版本2
2756
2848
  selectProps = {
2757
2849
  placeholder: '输入员工编码或名称',
@@ -2776,8 +2868,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2776
2868
  mappingValueField: 'id',
2777
2869
  otherParams: {
2778
2870
  'qp-enable-eq': 10, // 启用状态 10-启用,20-禁用
2779
- 'qp-orgViewIds-like': 'administrative-organization-view', // 为了兼容 搜素所属组织机构时候需要传此参数
2780
- ...(modalTableBusProps?.needTypeSearch?{}:{'qp-employmentType-eq': 20}), // 10外部员工;20内部员工
2871
+ 'qp-orgViewIds-like': 'administrative-organization-view', // 为了兼容 搜素所属组织机构时候需要传此参数
2872
+ ...(modalTableBusProps?.needTypeSearch ? {} : { 'qp-employmentType-eq': 20 }), // 10外部员工;20内部员工
2781
2873
  sorter: 'desc-id',
2782
2874
  ...(requestConfigProp?.addOtherParams || {}),
2783
2875
  }, // 默认参数
@@ -2787,8 +2879,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2787
2879
  tableSearchForm = [
2788
2880
  { name: 'qp-username-like', label: '账户名称' },
2789
2881
  { name: 'qp-name-like', label: '显示名称' },
2790
- // { name: 'qp-employeeNumber-like', label: '员工编码' },
2791
- { name: 'qp-code-in', type: 'treeSelect', label: '所属组织机构', field: {
2882
+ // { name: 'qp-employeeNumber-like', label: '员工编码' },
2883
+ {
2884
+ name: 'qp-code-in', type: 'treeSelect', label: '所属组织机构', field: {
2792
2885
  type: 'treeSelect',
2793
2886
  props: {
2794
2887
  multiple: true,
@@ -2807,16 +2900,17 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2807
2900
  showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2808
2901
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
2809
2902
  },
2810
- } },
2811
- ...(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 }] : []),
2812
2906
  { name: 'qp-email-like', label: '邮箱' },
2813
2907
  { name: 'qp-phone-like', label: '手机号' },
2814
2908
  ]
2815
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2909
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
2816
2910
  Promise.all([
2817
- loadSelectSource(`${prefixUrl.formSelectFix}/orgViewNode/common/getTreeForOrgViewAndTenant`, { 'orgViewCode': 'administrative-organization-view' },getQueryHeadersItem(queryHeaderParams,'qp-code-in')),
2818
- ]).then((x: any)=>{
2819
- 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']);
2820
2914
  })
2821
2915
  modalTableProps = {
2822
2916
  modalTableTitle: '添加员工',
@@ -2852,11 +2946,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2852
2946
  defaultSort: 3,
2853
2947
  render: (text: any) => handleTextOverflow(text),
2854
2948
  },
2855
- ...(modalTableBusProps?.needTypeSearch?[{
2949
+ ...(modalTableBusProps?.needTypeSearch ? [{
2856
2950
  title: '员工类型',
2857
2951
  dataIndex: 'employmentType',
2858
2952
  render: (text: number) => employeeType.find((i: any) => i.value === text)?.text || '-',
2859
- }]:[]),
2953
+ }] : []),
2860
2954
  {
2861
2955
  title: '邮箱',
2862
2956
  dataIndex: 'email',
@@ -2865,7 +2959,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2865
2959
  title: '手机号',
2866
2960
  dataIndex: 'phone',
2867
2961
  defaultSort: 4,
2868
- render: (text: any, record: any) => handleTextOverflow(text||record?.phone),
2962
+ render: (text: any, record: any) => handleTextOverflow(text || record?.phone),
2869
2963
  },
2870
2964
  ],
2871
2965
  ...modalTableBusProps
@@ -2873,7 +2967,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2873
2967
  }
2874
2968
 
2875
2969
  // 配送方式选择器
2876
- if(type === 'deliveryMode') {
2970
+ if (type === 'deliveryMode') {
2877
2971
  selectProps = {
2878
2972
  placeholder: '输入配送方式编码或名称',
2879
2973
  renderTableColumns: [
@@ -2907,7 +3001,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2907
3001
  tableSearchForm = [
2908
3002
  { name: 'qp-name-like', label: '配送方式名称' },
2909
3003
  { name: 'qp-code-like', label: '配送方式编码' },
2910
- { name: logisCompanyCodeSingleSearchName, type: 'select', label: '所属物流商', field: {
3004
+ {
3005
+ name: logisCompanyCodeSingleSearchName, type: 'select', label: '所属物流商', field: {
2911
3006
  type: 'select',
2912
3007
  props: {
2913
3008
  ...(isLogisCompanyCodeSingleSearch ? {} : {
@@ -2922,10 +3017,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2922
3017
  filterOption: (input: string, option: { props: { children: string } }) =>
2923
3018
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2924
3019
  },
2925
- } },
3020
+ }
3021
+ },
2926
3022
  { name: 'qp-recordChannnelCode-in', type: 'select', label: '单号获取通道', initialSource: getDictionarySource('BSC00004') },
2927
3023
  { name: 'qp-arrivalPaySupport-in', type: 'select', label: '是否支持到付', initialSource: arrivalPaySupportList },
2928
- { name: 'qp-sheetTemplateCode-in', type: 'select', label: '面单模板', field: {
3024
+ {
3025
+ name: 'qp-sheetTemplateCode-in', type: 'select', label: '面单模板', field: {
2929
3026
  type: 'select',
2930
3027
  props: {
2931
3028
  mode: 'multiple',
@@ -2938,22 +3035,23 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2938
3035
  filterOption: (input: string, option: { props: { children: string } }) =>
2939
3036
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2940
3037
  },
2941
- } },
3038
+ }
3039
+ },
2942
3040
  { name: 'qp-remark-like', label: '备注' },
2943
3041
  ]
2944
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
3042
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
2945
3043
  Promise.all([
2946
3044
  loadSelectSource(`${prefixUrl.formSelectFix}/logisCompany`, {
2947
3045
  pageSize: 5000,
2948
3046
  currentPage: 1,
2949
- },getQueryHeadersItem(queryHeaderParams,logisCompanyCodeSingleSearchName)),
3047
+ }, getQueryHeadersItem(queryHeaderParams, logisCompanyCodeSingleSearchName)),
2950
3048
  loadSelectSource(`${prefixUrl.formSelectFix}/printTemplate`, {
2951
3049
  pageSize: 5000,
2952
3050
  currentPage: 1,
2953
- },getQueryHeadersItem(queryHeaderParams,'qp-sheetTemplateCode-in'))
2954
- ]).then((x: any)=>{
2955
- formatSource(x,0, 2, tableSearchForm);
2956
- 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);
2957
3055
  })
2958
3056
  modalTableProps = {
2959
3057
  modalTableTitle: '选择配送方式',
@@ -3004,7 +3102,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3004
3102
  }
3005
3103
 
3006
3104
  // 规则模板选择器
3007
- if(type === 'ruleTemplate') {
3105
+ if (type === 'ruleTemplate') {
3008
3106
  selectProps = {
3009
3107
  placeholder: '输入规则模板编码或名称',
3010
3108
  renderTableColumns: [
@@ -3080,7 +3178,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3080
3178
  }
3081
3179
 
3082
3180
  // 角色选择器
3083
- if(type === 'role') {
3181
+ if (type === 'role') {
3084
3182
  selectProps = {
3085
3183
  placeholder: '输入角色编码或名称',
3086
3184
  renderTableColumns: [
@@ -3113,7 +3211,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3113
3211
  tableSearchForm = [
3114
3212
  { name: 'qp-name-like', label: '角色名称' },
3115
3213
  { name: 'qp-code-like', label: '角色编码' },
3116
- { name: 'qp-categoryCode-eq', type: 'select', label: '角色分类', field: {
3214
+ {
3215
+ name: 'qp-categoryCode-eq', type: 'select', label: '角色分类', field: {
3117
3216
  type: 'select',
3118
3217
  props: {
3119
3218
  notFoundContent: '暂无数据',
@@ -3128,14 +3227,14 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3128
3227
  }
3129
3228
  },
3130
3229
  ]
3131
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
3230
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
3132
3231
  Promise.all([
3133
3232
  loadSelectSource(`${prefixUrl.formSelectFix}/permissionCategory`, {
3134
3233
  pageSize: 5000,
3135
3234
  currentPage: 1,
3136
- },getQueryHeadersItem(queryHeaderParams,'qp-categoryCode-eq')),
3137
- ]).then((x: any)=>{
3138
- formatSource(x,0, 2, tableSearchForm);
3235
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-categoryCode-eq')),
3236
+ ]).then((x: any) => {
3237
+ formatSource(x, 0, 2, tableSearchForm);
3139
3238
  })
3140
3239
  modalTableProps = {
3141
3240
  modalTableTitle: '选择角色',
@@ -3180,7 +3279,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3180
3279
  }
3181
3280
 
3182
3281
  // 销售渠道选择器
3183
- if(type === 'market-channel') {
3282
+ if (type === 'market-channel') {
3184
3283
  selectProps = {
3185
3284
  placeholder: '输入销售渠道编码或名称',
3186
3285
  renderTableColumns: [
@@ -3215,29 +3314,31 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3215
3314
  tableSearchForm = [
3216
3315
  { name: 'qp-name-like', label: '销售渠道名称' },
3217
3316
  { name: 'qp-code-like', label: '销售渠道编码' },
3218
- { name: 'qp-salesOrgCode-in', type: 'select', label: '所属销售组织', field: {
3219
- type: 'select',
3220
- props: {
3221
- mode: 'multiple',
3222
- notFoundContent: '暂无数据',
3223
- allowClear: true,
3224
- showSearch: true,
3225
- showArrow: true,
3226
- maxTagCount: 1,
3227
- optionFilterProp: 'children',
3228
- filterOption: (input: string, option: { props: { children: string } }) =>
3229
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
3230
- },
3231
- } },
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
+ },
3232
3333
  ]
3233
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
3334
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
3234
3335
  Promise.all([
3235
3336
  loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
3236
3337
  'qp-employeeCode-eq': getEmployeeCode(),
3237
3338
  'qp-realOrg-eq': true,
3238
3339
  'qp-status-eq': 10
3239
- },getQueryHeadersItem(queryHeaderParams,'qp-salesOrgCode-in')),
3240
- ]).then((x: any)=>{
3340
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-salesOrgCode-in')),
3341
+ ]).then((x: any) => {
3241
3342
  formatSource(x, 0, 2, tableSearchForm);
3242
3343
  })
3243
3344
  modalTableProps = {
@@ -3301,58 +3402,59 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3301
3402
  sourceName: 'organizationCode',
3302
3403
  ...requestConfigProp
3303
3404
  },
3304
- tableSearchForm = [
3305
- { name: 'qp-name-like', label: '组织名称' },
3306
- { name: 'qp-code-like', label: '组织编码' },
3307
- { name: 'qp-orgViewCode-in', type: 'select', label: '业务职能', field: {
3308
- type: 'select',
3309
- props: {
3310
- mode: 'multiple',
3311
- notFoundContent: '暂无数据',
3312
- allowClear: true,
3313
- showSearch: true,
3314
- showArrow: true,
3315
- maxTagCount: 1,
3316
- optionFilterProp: 'children',
3317
- filterOption: (input: string, option: { props: { children: string } }) =>
3318
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
3319
- },
3320
- }
3321
- },
3322
- {
3323
- name: 'qp-orgType-in',
3324
- type: 'select',
3325
- label: '组织类型',
3326
- 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',
3327
3426
  type: 'select',
3328
- props: {
3329
- mode: 'multiple',
3330
- allowClear: true,
3331
- maxTagCount: 1,
3427
+ label: '组织类型',
3428
+ field: {
3429
+ type: 'select',
3430
+ props: {
3431
+ mode: 'multiple',
3432
+ allowClear: true,
3433
+ maxTagCount: 1,
3434
+ },
3332
3435
  },
3436
+ initialSource: orgType
3333
3437
  },
3334
- initialSource: orgType
3335
- },
3336
- {
3337
- name: 'qp-nodeType-in',
3338
- type: 'select',
3339
- label: '组织形态',
3340
- field: {
3438
+ {
3439
+ name: 'qp-nodeType-in',
3341
3440
  type: 'select',
3342
- props: {
3343
- mode: 'multiple',
3344
- allowClear: true,
3345
- maxTagCount: 1,
3441
+ label: '组织形态',
3442
+ field: {
3443
+ type: 'select',
3444
+ props: {
3445
+ mode: 'multiple',
3446
+ allowClear: true,
3447
+ maxTagCount: 1,
3448
+ },
3346
3449
  },
3347
- },
3348
- initialSource: nodeType
3349
- }]
3350
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
3450
+ initialSource: nodeType
3451
+ }]
3452
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
3351
3453
  Promise.all([
3352
3454
  loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getOrgViewListNoPage`, {
3353
3455
  'qp-status-eq': 10
3354
- },getQueryHeadersItem(queryHeaderParams,'qp-orgViewCode-in')),
3355
- ]).then((x: any)=>{
3456
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgViewCode-in')),
3457
+ ]).then((x: any) => {
3356
3458
  formatSource(x, 0, 2, tableSearchForm);
3357
3459
  })
3358
3460
  modalTableProps = {
@@ -3407,7 +3509,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3407
3509
  }
3408
3510
 
3409
3511
  // 人员选择器
3410
- if(type === 'person') {
3512
+ if (type === 'person') {
3411
3513
  selectProps = {
3412
3514
  placeholder: '输入人员编码或名称',
3413
3515
  renderTableColumns: [
@@ -3477,7 +3579,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3477
3579
  }
3478
3580
 
3479
3581
  // 品牌选择器
3480
- if(type === 'brand') {
3582
+ if (type === 'brand') {
3481
3583
  selectProps = {
3482
3584
  placeholder: '输入品牌编码或名称',
3483
3585
  renderTableColumns: [
@@ -3531,7 +3633,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3531
3633
  JSON.parse(text || '[]').map((ites: any, index: any) =>
3532
3634
  tableColumnsImage(ites),
3533
3635
  )) ||
3534
- tableColumnsImage(text)}
3636
+ tableColumnsImage(text)}
3535
3637
  </Image.PreviewGroup>
3536
3638
  ),
3537
3639
  },
@@ -3563,8 +3665,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3563
3665
  }
3564
3666
  }
3565
3667
 
3566
- // 价格项选择器
3567
- if(type === 'priceItem') {
3668
+ // 价格项选择器
3669
+ if (type === 'priceItem') {
3568
3670
  selectProps = {
3569
3671
  placeholder: '输入价格项编码或名称',
3570
3672
  renderTableColumns: [
@@ -3621,7 +3723,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3621
3723
  title: '创建时间',
3622
3724
  dataIndex: 'createTime',
3623
3725
  defaultSort: 3,
3624
- render: (text: any) => handleTooltip(text, true),
3726
+ render: (text: any) => handleTooltip(text, true),
3625
3727
  },
3626
3728
  {
3627
3729
  title: '创建人',
@@ -3665,58 +3767,59 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
3665
3767
  sourceName: 'supplierCode',
3666
3768
  ...requestConfigProp
3667
3769
  },
3668
- tableSearchForm = [
3669
- { name: 'qp-name-like', label: '组织名称' },
3670
- { name: 'qp-code-like', label: '组织编码' },
3671
- { name: 'qp-orgViewCode-in', type: 'select', label: '业务职能', field: {
3672
- type: 'select',
3673
- props: {
3674
- mode: 'multiple',
3675
- notFoundContent: '暂无数据',
3676
- allowClear: true,
3677
- showSearch: true,
3678
- showArrow: true,
3679
- maxTagCount: 1,
3680
- optionFilterProp: 'children',
3681
- filterOption: (input: string, option: { props: { children: string } }) =>
3682
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
3683
- },
3684
- }
3685
- },
3686
- {
3687
- name: 'qp-orgType-in',
3688
- type: 'select',
3689
- label: '组织类型',
3690
- 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',
3691
3791
  type: 'select',
3692
- props: {
3693
- mode: 'multiple',
3694
- allowClear: true,
3695
- maxTagCount: 1,
3792
+ label: '组织类型',
3793
+ field: {
3794
+ type: 'select',
3795
+ props: {
3796
+ mode: 'multiple',
3797
+ allowClear: true,
3798
+ maxTagCount: 1,
3799
+ },
3696
3800
  },
3801
+ initialSource: orgType
3697
3802
  },
3698
- initialSource: orgType
3699
- },
3700
- {
3701
- name: 'qp-nodeType-in',
3702
- type: 'select',
3703
- label: '组织形态',
3704
- field: {
3803
+ {
3804
+ name: 'qp-nodeType-in',
3705
3805
  type: 'select',
3706
- props: {
3707
- mode: 'multiple',
3708
- allowClear: true,
3709
- maxTagCount: 1,
3806
+ label: '组织形态',
3807
+ field: {
3808
+ type: 'select',
3809
+ props: {
3810
+ mode: 'multiple',
3811
+ allowClear: true,
3812
+ maxTagCount: 1,
3813
+ },
3710
3814
  },
3711
- },
3712
- initialSource: nodeType
3713
- }]
3714
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
3815
+ initialSource: nodeType
3816
+ }]
3817
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders });
3715
3818
  Promise.all([
3716
3819
  loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getOrgViewListNoPage`, {
3717
3820
  'qp-status-eq': 10
3718
- },getQueryHeadersItem(queryHeaderParams,'qp-orgViewCode-in')),
3719
- ]).then((x: any)=>{
3821
+ }, getQueryHeadersItem(queryHeaderParams, 'qp-orgViewCode-in')),
3822
+ ]).then((x: any) => {
3720
3823
  formatSource(x, 0, 2, tableSearchForm);
3721
3824
  })
3722
3825
  modalTableProps = {