@bit-sun/business-component 4.2.1-alpha.8-aiwei → 4.2.1-alpha.8

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.
Files changed (131) hide show
  1. package/.claude/settings.local.json +8 -0
  2. package/.fatherrc.ts +1 -1
  3. package/.umirc.ts +13 -9
  4. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  5. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  6. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  11. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  13. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  14. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  15. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  16. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  17. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  18. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  19. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  20. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  21. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  22. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  23. package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
  24. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  25. package/dist/components/Business/ImportExport/ExportButton/ModalTitle.d.ts +11 -0
  26. package/dist/components/Business/ImportExport/ExportButton/TemplatePicker.d.ts +13 -0
  27. package/dist/components/Business/ImportExport/ExportButton/index.d.ts +15 -0
  28. package/dist/components/Business/ImportExport/ImportWizard/Preview.d.ts +11 -0
  29. package/dist/components/Business/ImportExport/ImportWizard/index.d.ts +15 -0
  30. package/dist/components/Business/ImportExport/TaskDrawer/index.d.ts +15 -0
  31. package/dist/components/Business/ImportExport/TaskProgress/index.d.ts +15 -0
  32. package/dist/components/Business/ImportExport/businessFunction.d.ts +15 -0
  33. package/dist/components/Business/ImportExport/index.d.ts +14 -0
  34. package/dist/components/Business/ImportExport/sceneCapability.d.ts +20 -0
  35. package/dist/components/Business/ImportExport/services/importExport.d.ts +22 -0
  36. package/dist/components/Business/ImportExport/services/routing.d.ts +8 -0
  37. package/dist/components/Business/ImportExport/types.d.ts +134 -0
  38. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  39. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  40. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  41. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  42. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  43. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  44. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  45. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  46. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  47. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  48. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  49. package/dist/components/Business/TrialCalculation/index.d.ts +15 -0
  50. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  51. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  52. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  53. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +7 -3
  54. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  55. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  56. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  57. package/dist/components/Common/Section/index.d.ts +1 -1
  58. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  59. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  60. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  61. package/dist/components/Functional/DataValidation/index.d.ts +4 -4
  62. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  63. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  64. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  65. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  66. package/dist/components/Functional/SearchSelect/pagination.d.ts +22 -0
  67. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  68. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  69. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  70. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  71. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  72. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  73. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  74. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  75. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  76. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  77. package/dist/index.d.ts +4 -0
  78. package/dist/index.esm.js +4692 -1470
  79. package/dist/index.js +4710 -1463
  80. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  81. package/dist/utils/TableUtils.d.ts +18 -19
  82. package/dist/utils/auth.d.ts +4 -0
  83. package/docs/error-record.md +52 -0
  84. package/docs/flow-control-readme.md +283 -0
  85. package/docs/task-records/2026-07-31-import-export-extraction.md +81 -0
  86. package/package.json +1 -1
  87. package/src/components/Business/AddSelectBusiness/index.tsx +3 -2
  88. package/src/components/Business/BsSulaQueryTable/index.md +57 -4
  89. package/src/components/Business/BsSulaQueryTable/index.tsx +183 -20
  90. package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
  91. package/src/components/Business/DetailPageWrapper/readme.md +89 -0
  92. package/src/components/Business/ImportExport/ExportButton/ModalTitle.tsx +27 -0
  93. package/src/components/Business/ImportExport/ExportButton/TemplatePicker.tsx +424 -0
  94. package/src/components/Business/ImportExport/ExportButton/index.module.less +382 -0
  95. package/src/components/Business/ImportExport/ExportButton/index.tsx +273 -0
  96. package/src/components/Business/ImportExport/ImportWizard/Preview.tsx +129 -0
  97. package/src/components/Business/ImportExport/ImportWizard/index.module.less +360 -0
  98. package/src/components/Business/ImportExport/ImportWizard/index.tsx +679 -0
  99. package/src/components/Business/ImportExport/TaskDrawer/index.tsx +285 -0
  100. package/src/components/Business/ImportExport/TaskProgress/index.tsx +267 -0
  101. package/src/components/Business/ImportExport/businessFunction.ts +29 -0
  102. package/src/components/Business/ImportExport/index.md +104 -0
  103. package/src/components/Business/ImportExport/index.tsx +208 -0
  104. package/src/components/Business/ImportExport/sceneCapability.ts +28 -0
  105. package/src/components/Business/ImportExport/services/importExport.ts +208 -0
  106. package/src/components/Business/ImportExport/services/routing.ts +21 -0
  107. package/src/components/Business/ImportExport/types.ts +180 -0
  108. package/src/components/Business/SearchSelect/BusinessUtils.tsx +328 -280
  109. package/src/components/Business/SearchSelect/index.md +1 -1
  110. package/src/components/Business/TrialCalculation/PathDisplay.less +93 -0
  111. package/src/components/Business/TrialCalculation/PathDisplay_README.md +77 -0
  112. package/src/components/Business/TrialCalculation/index.tsx +322 -0
  113. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +17 -1
  114. package/src/components/Functional/AddSelect/index.tsx +3 -1
  115. package/src/components/Functional/DataValidation/index.tsx +9 -6
  116. package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -2
  117. package/src/components/Functional/SearchSelect/index.md +111 -0
  118. package/src/components/Functional/SearchSelect/index.tsx +157 -63
  119. package/src/components/Functional/SearchSelect/pagination.ts +57 -0
  120. package/src/components/Functional/SearchSelect/utils.tsx +28 -18
  121. package/src/components/Functional/TreeSearchSelect/index.tsx +2 -1
  122. package/src/components/Solution/RuleComponent/README.md +187 -0
  123. package/src/components/Solution/RuleComponent/RenderCompItem_README.md +189 -0
  124. package/src/components/Solution/RuleComponent/RuleField.md +63 -0
  125. package/src/components/Solution/RuleComponent/index.js +236 -8
  126. package/src/components/Solution/RuleComponent/ruleFiled.js +21 -5
  127. package/src/components/Solution/RuleSetter/README.md +97 -0
  128. package/src/index.ts +8 -1
  129. package/src/typings/umi.d.ts +9 -0
  130. package/src/utils/LocalstorageUtils.ts +1 -1
  131. package/src/utils/auth.ts +39 -2
@@ -6,7 +6,7 @@ import { handleTextOverflow, tableColumnsImage, handleTooltip } from '@/componen
6
6
  import { getSkuImg } from '@/utils/TableUtils';
7
7
  import { getEmployeeCode, getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
8
8
  import { Image } from 'antd';
9
- import { isBoolean, trim } from 'lodash';
9
+ import { isBoolean } from 'lodash';
10
10
 
11
11
  const hasDictSharingType = getDictionarySource('UC000013')?.length;
12
12
  const sharingTypeDataList = hasDictSharingType && getDictionarySource('UC000013') || sharingType
@@ -85,7 +85,6 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
85
85
  let modalTableProps = {
86
86
  modalTableTitle: '',
87
87
  tableSearchForm,
88
- visibleFieldsCount: 13,
89
88
  tableColumns: [],
90
89
  ...modalTableBusProps,
91
90
  }
@@ -238,7 +237,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
238
237
  }
239
238
  tableSearchForm = [
240
239
  { name: 'qp-name-like', label: '供应商名称' }, // field: { type: 'input', props: { placeholder: '请输入'}}
241
- { name: 'qp-code-like', label: '供应商编码' },
240
+ { name: 'qp-code-in', label: '供应商编码', type: 'multipleQueryInput' },
242
241
  { name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
243
242
  type: 'select',
244
243
  props: {
@@ -267,6 +266,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
267
266
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
268
267
  },
269
268
  } },
269
+ { name: 'qp-enableDropShipping-eq', label: '启用工厂直发', type: 'select', initialSource: getDictionarySource('BSC00001') },
270
+ { name: 'qp-enableVmiStock-eq', label: '启用VMI库存管理', type: 'select', initialSource: getDictionarySource('BSC00001') },
270
271
  ]
271
272
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
272
273
  Promise.all([
@@ -306,6 +307,18 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
306
307
  dataIndex: 'salesOrgName',
307
308
  defaultSort: 4,
308
309
  },
310
+ {
311
+ title: '启用工厂直发',
312
+ dataIndex: 'enableDropShipping',
313
+ defaultSort: 5,
314
+ render: (text: number) => getDictionaryTextByValue('BSC00001', text),
315
+ },
316
+ {
317
+ title: '启用VMI库存管理',
318
+ dataIndex: 'enableVmiStock',
319
+ defaultSort: 6,
320
+ render: (text: number) => getDictionaryTextByValue('BSC00001', text),
321
+ },
309
322
  ],
310
323
  ...modalTableBusProps
311
324
  }
@@ -424,125 +437,30 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
424
437
  dropdownStyle: { maxHeight: 400, maxWidth: 100, overflow: 'auto' }
425
438
  },
426
439
  } },
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
- }, // 默认参数
440
+ { name: 'UNIQUE_SPEC', label: '属性', field: {
441
+ type: 'proppertySelector',
442
+ } },
443
+ { name: 'qp-itemLabelId-in', type: 'select', label: '商品标签', field: {
444
+ type: 'select',
445
+ props: {
446
+ mode: 'multiple',
447
+ notFoundContent: '暂无数据',
448
+ allowClear: true,
449
+ showSearch: true,
450
+ showArrow: true,
451
+ maxTagCount: 1,
452
+ optionFilterProp: 'children',
453
+ filterOption: (input: string, option: { props: { children: string } }) =>
454
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
445
455
  },
446
- }
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,
516
- },
517
- } },
518
- { name: 'qp-zzxlbm-in', type: 'select', label: '小类', field: {
519
- type: 'select',
520
- props: {
521
- mode: 'multiple',
522
- notFoundContent: '暂无数据',
523
- allowClear: true,
524
- showSearch: true,
525
- showArrow: true,
526
- maxTagCount: 1,
527
- optionFilterProp: 'children',
528
- filterOption: (input: string, option: { props: { children: string } }) =>
529
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
530
- },
531
- } },
532
-
533
- // { name: 'UNIQUE_SPEC', label: '属性', field: {
534
- // type: 'proppertySelector',
535
- // } },
456
+ } },
457
+ { name: 'qp-skcCode-like', label: 'SKC编码' },
536
458
  ]
537
459
  const defaultQSHL = [
538
- { isOpen: true, queryKey: 'qp-brandId-in' },
539
- { isOpen: true, queryKey: 'qp-categoryId-in' },
540
- { isOpen: true, queryKey: 'qp-year-in' },
541
- { isOpen: true, queryKey: 'qp-season-in' },
542
- { isOpen: true, queryKey: 'qp-zzbdbm-in' },
543
- { isOpen: true, queryKey: 'qp-zzdlbm-in' },
544
- { isOpen: true, queryKey: 'qp-zzzlbm-in' },
545
- { isOpen: true, queryKey: 'qp-zzxlbm-in' },
460
+ {
461
+ isOpen: true,
462
+ queryKey: 'qp-brandId-in',
463
+ },
546
464
  ]
547
465
  const queryHeaderParams = getQueryHeadersList({defaultQSHL, querySelectHeadersList, extralHeaders});
548
466
 
@@ -556,45 +474,20 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
556
474
  pageSize: 5000,
557
475
  currentPage: 1,
558
476
  },getQueryHeadersItem(queryHeaderParams,'qp-categoryId-in')),
559
- loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
560
- 'qp-propertyCode-eq': 'PROP_YEAR',
561
- pageSize: 999,
562
- }, getQueryHeadersItem(queryHeaderParams,'qp-year-in')),
563
- loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
564
- 'qp-propertyCode-eq': 'PROP_SEASON',
565
- pageSize: 999,
566
- }, getQueryHeadersItem(queryHeaderParams,'qp-season-in')),
567
- loadSelectSource(`${prefixUrl.formSelectFix}/band`, {
568
- pageSize: 999,
477
+ loadSelectSource(`${prefixUrl.formSelectFix}/label`, {
478
+ pageSize: 500,
569
479
  currentPage: 1,
570
- }, getQueryHeadersItem(queryHeaderParams,'qp-zzbdbm-in')),
571
- loadSelectSource(`${prefixUrl.formSelectFix}/rule/getClassPropertyValue/110000217`, {
572
- }, getQueryHeadersItem(queryHeaderParams,'qp-zzdlbm-in')),
573
- loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
574
- 'qp-propertyCode-eq': 'MID_CATA',
575
- pageSize: 999,
576
- }, getQueryHeadersItem(queryHeaderParams,'qp-zzzlbm-in')),
577
- loadSelectSource(`${prefixUrl.formSelectFix}/item/propertyValue`, {
578
- 'qp-propertyCode-eq': 'PROP_SUBCATEORY',
579
- pageSize: 999,
580
- }, getQueryHeadersItem(queryHeaderParams,'qp-zzxlbm-in')),
480
+ 'qp-labelType-eq': 1,
481
+ },getQueryHeadersItem(queryHeaderParams,'qp-itemLabelId-in')),
581
482
  ]).then((x: any)=>{
582
483
  formatSource(x,0, 3, tableSearchForm,['id','name'])
583
484
  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'])
485
+ formatSource(x,2, 6, tableSearchForm,['id','name'])
592
486
  })
593
487
  modalTableProps = {
594
488
  modalTableTitle: '选择SKU',
595
489
  tableSearchForm,
596
490
  isHorizontally: true,
597
- tableSearchColSpan: 6,
598
491
  tableColumns: [
599
492
  {
600
493
  title: '序号',
@@ -737,6 +630,20 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
737
630
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
738
631
  },
739
632
  } },
633
+ { name: 'qp-itemLabelId-in', type: 'select', label: '商品标签', field: {
634
+ type: 'select',
635
+ props: {
636
+ mode: 'multiple',
637
+ notFoundContent: '暂无数据',
638
+ allowClear: true,
639
+ showSearch: true,
640
+ showArrow: true,
641
+ maxTagCount: 1,
642
+ optionFilterProp: 'children',
643
+ filterOption: (input: string, option: { props: { children: string } }) =>
644
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
645
+ },
646
+ } },
740
647
  ]
741
648
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
742
649
  Promise.all([
@@ -753,10 +660,16 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
753
660
  pageSize: 5000,
754
661
  currentPage: 1,
755
662
  },getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
663
+ loadSelectSource(`${prefixUrl.formSelectFix}/label`, {
664
+ pageSize: 500,
665
+ currentPage: 1,
666
+ 'qp-labelType-eq': 1,
667
+ },getQueryHeadersItem(queryHeaderParams,'qp-itemLabelId-in')),
756
668
  ]).then((x: any)=>{
757
669
  formatSource(x,0, 2, tableSearchForm,['id','name']);
758
670
  formatTreeDataSource(x,1, 3, tableSearchForm);
759
671
  formatSource(x,2, 4, tableSearchForm,['id','name']);
672
+ formatSource(x,3, 5, tableSearchForm,['id','name']);
760
673
  })
761
674
  modalTableProps = {
762
675
  modalTableTitle: '选择商品(SPU) ',
@@ -930,6 +843,20 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
930
843
  }
931
844
  }
932
845
  },
846
+ { name: 'qp-itemLabelId-in', type: 'select', label: '商品标签', field: {
847
+ type: 'select',
848
+ props: {
849
+ mode: 'multiple',
850
+ notFoundContent: '暂无数据',
851
+ allowClear: true,
852
+ showSearch: true,
853
+ showArrow: true,
854
+ maxTagCount: 1,
855
+ optionFilterProp: 'children',
856
+ filterOption: (input: string, option: { props: { children: string } }) =>
857
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
858
+ },
859
+ } },
933
860
  ]
934
861
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
935
862
  Promise.all([
@@ -946,10 +873,16 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
946
873
  pageSize: 5000,
947
874
  currentPage: 1,
948
875
  },getQueryHeadersItem(queryHeaderParams,'qp-classId-in')),
876
+ loadSelectSource(`${prefixUrl.formSelectFix}/label`, {
877
+ pageSize: 500,
878
+ currentPage: 1,
879
+ 'qp-labelType-eq': 1,
880
+ },getQueryHeadersItem(queryHeaderParams,'qp-itemLabelId-in')),
949
881
  ]).then((x: any)=>{
950
882
  formatSource(x,0, 2, tableSearchForm,['id','name']);
951
883
  formatTreeDataSource(x,1, 3, tableSearchForm);
952
884
  formatSource(x,2, 4, tableSearchForm,['id','name']);
885
+ formatSource(x,3, 10, tableSearchForm,['id','name']);
953
886
  })
954
887
  modalTableProps = {
955
888
  modalTableTitle: '选择SPU',
@@ -1351,28 +1284,18 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1351
1284
  'qp-status-eq': 1,
1352
1285
  },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1353
1286
  ]).then((x: any)=>{
1354
- debugger
1355
- // 战区限制一级数据
1356
- const newData1 = [];
1357
- x[0]?.data[0]?.channelInfoSon?.forEach((item: any) => {
1358
- newData1.push({
1359
- code: item.code,
1360
- name: item.name
1361
- })
1362
- })
1363
- x[0].data = newData1;
1364
1287
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1365
1288
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1366
- formatTreeDataSource(x, 0, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1367
- formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1289
+ formatTreeDataSource(x, 0, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1290
+ formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1368
1291
  })
1369
1292
  tableSearchForm = [
1370
1293
  { name: 'realWarehouseName*multiInput', label: '逻辑仓名称', type: 'multipleQueryInput' },
1371
1294
  { name: 'realWarehouseCode*multiInput', label: '逻辑仓编码', type: 'multipleQueryInput' },
1372
1295
  { name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
1373
- // { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
1296
+ { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
1374
1297
  {
1375
- name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
1298
+ name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1376
1299
  type: 'treeSelect',
1377
1300
  props: {
1378
1301
  multiple: true,
@@ -1391,7 +1314,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1391
1314
  }
1392
1315
  },
1393
1316
  {
1394
- name: 'qp-refCode-in', type: 'treeSelect', label: '大区', field: {
1317
+ name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
1395
1318
  type: 'treeSelect',
1396
1319
  props: {
1397
1320
  multiple: true,
@@ -1462,7 +1385,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1462
1385
  width: 100,
1463
1386
  },
1464
1387
  {
1465
- title: '战区',
1388
+ title: '所属销售渠道',
1466
1389
  dataIndex: 'channelName',
1467
1390
  defaultSort: 4,
1468
1391
  width: 100,
@@ -1539,7 +1462,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1539
1462
  },
1540
1463
  } },
1541
1464
  {
1542
- name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
1465
+ name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1543
1466
  type: 'treeSelect',
1544
1467
  props: {
1545
1468
  multiple: true,
@@ -1569,11 +1492,6 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1569
1492
  },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1570
1493
  ]).then((x: any)=>{
1571
1494
  formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
1572
- const newData1: any[] = [];
1573
- x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
1574
- newData1.push({ code: item.code, name: item.name })
1575
- });
1576
- x[1].data = newData1;
1577
1495
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1578
1496
  formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1579
1497
  })
@@ -1857,22 +1775,22 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1857
1775
  }
1858
1776
  tableSearchForm = [
1859
1777
  { name: 'qp-name-like', label: '客户名称' },
1860
- { name: 'qp-code-like', label: '客户编码' },
1861
- { name: 'qp-createOrgCode-in', type: 'select', label: '创建组织', field: {
1778
+ { name: 'qp-code-in', label: '客户编码', type: 'multipleQueryInput' },
1779
+ { name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
1862
1780
  type: 'select',
1863
1781
  props: {
1864
- mode: 'multiple',
1782
+ // mode: 'multiple',
1865
1783
  notFoundContent: '暂无数据',
1866
1784
  allowClear: true,
1867
1785
  showSearch: true,
1868
1786
  showArrow: true,
1869
- maxTagCount: 1,
1787
+ // maxTagCount: 1,
1870
1788
  optionFilterProp: 'children',
1871
1789
  filterOption: (input: string, option: { props: { children: string } }) =>
1872
1790
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1873
1791
  },
1874
1792
  } },
1875
- { name: 'qp-salesOrgCode-eq', type: 'select', label: '使用组织', field: {
1793
+ { name: 'qp-salesOrgCode-eq', type: 'select', label: '销售组织', field: {
1876
1794
  type: 'select',
1877
1795
  props: {
1878
1796
  // mode: 'multiple',
@@ -1928,24 +1846,30 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1928
1846
  ];
1929
1847
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1930
1848
  Promise.all([
1931
- loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
1849
+ loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {
1850
+ },getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
1851
+ loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
1852
+ 'qp-employeeCode-eq': getEmployeeCode(),
1853
+ 'qp-realOrg-eq': true,
1854
+ 'qp-status-eq': 10
1855
+ },getQueryHeadersItem(queryHeaderParams,'qp-salesOrgCode-eq')),
1932
1856
  loadSelectSource(`/channel-manage/channelInfo/tree`, {
1933
1857
  'qp-status-eq': 10,
1934
1858
  'qp-isMain-eq': 1,
1935
1859
  'qp-type-in': '1,2',
1936
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1860
+ },getQueryHeadersItem(queryHeaderParams,'qp-saleChannel-in')),
1937
1861
  loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
1938
1862
  'qp-status-eq': 1,
1939
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1863
+ },getQueryHeadersItem(queryHeaderParams,'qp-refCode-in')),
1940
1864
  ]).then((x: any)=>{
1941
1865
  const firstElement = x?.[0];
1942
1866
  const allList = firstElement && [firstElement, firstElement];
1943
- formatSource(allList,0, 2, tableSearchForm);
1944
- formatSource(allList,1, 3, tableSearchForm);
1867
+ formatSource(x, 0, 2, tableSearchForm);
1868
+ formatSource(x, 1, 3, tableSearchForm);
1945
1869
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1946
1870
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1947
- formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1948
- formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1871
+ formatTreeDataSource(x, 2, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1872
+ formatTreeDataSource(x, 3, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1949
1873
  })
1950
1874
  modalTableProps = {
1951
1875
  modalTableTitle: '选择客户',
@@ -1972,7 +1896,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1972
1896
  defaultSort: 3,
1973
1897
  },
1974
1898
  {
1975
- title: '使用组织',
1899
+ title: '销售组织',
1976
1900
  dataIndex: 'salesOrgName',
1977
1901
  defaultSort: 4,
1978
1902
  width: 100,
@@ -2226,7 +2150,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2226
2150
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2227
2151
  },
2228
2152
  } },
2229
- { name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
2153
+ { name: 'qp-channelCode-in', type: 'treeSelect', label: '所属销售渠道', field: {
2230
2154
  type: 'treeSelect',
2231
2155
  props: {
2232
2156
  multiple: true,
@@ -2243,7 +2167,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2243
2167
  showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2244
2168
  },
2245
2169
  } },
2246
- { name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '大区', field: {
2170
+ { name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '营销区域', field: {
2247
2171
  type: 'treeSelect',
2248
2172
  props: {
2249
2173
  multiple: true,
@@ -2295,25 +2219,154 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2295
2219
  },
2296
2220
  },
2297
2221
  },
2298
- { name: 'qp-manageSupervisor-like', type: 'select', label: '管理督导', field: {
2299
- type: 'select',
2300
- props: {
2301
- notFoundContent: '暂无数据',
2302
- allowClear: true,
2303
- showSearch: true,
2304
- showArrow: true,
2305
- maxTagCount: 1,
2306
- optionFilterProp: 'children',
2307
- filterOption: (input: string, option: { props: { children: string } }) =>
2308
- {
2309
- debugger
2310
- return (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2311
- }
2222
+ ]
2223
+ const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2224
+ Promise.all([
2225
+ loadSelectSource(`${prefixUrl.formSelectFix}/orgView/getTree/sales-organizational-view`, {
2226
+ 'qp-employeeCode-eq': getEmployeeCode(),
2227
+ 'qp-realOrg-eq': true,
2228
+ 'qp-status-eq': 10
2229
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2230
+ loadSelectSource(`${prefixUrl.formSelectFix}/channelInfo/tree`, {
2231
+ 'qp-status-eq': 10,
2232
+ 'qp-isMain-eq': 1,
2233
+ 'qp-type-in': '1,2',
2234
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2235
+ loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
2236
+ 'qp-status-eq': 1,
2237
+ },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2238
+ loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
2239
+ pageSize: 5000,
2240
+ currentPage: 1,
2241
+ 'ctl-withAuth': true,
2242
+ },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth'))
2243
+ ]).then((x: any)=>{
2244
+ const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
2245
+ const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
2246
+ formatSource(x,0, 3, tableSearchForm);
2247
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
2248
+ formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
2249
+ formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
2250
+ })
2251
+ modalTableProps = {
2252
+ modalTableTitle: '选择商店',
2253
+ tableSearchForm,
2254
+ tableColumns: [
2255
+ {
2256
+ title: '序号',
2257
+ dataIndex: 'keyIndex',
2258
+ defaultSort: 0,
2259
+ width: 60,
2312
2260
  },
2313
- } },
2314
- { name: 'qp-directSupervisor-like', type: 'select', label: '直接督导', field: {
2315
- type: 'select',
2261
+ {
2262
+ title: '商店编码',
2263
+ dataIndex: 'code',
2264
+ defaultSort: 1,
2265
+ width: 100,
2266
+ },
2267
+ {
2268
+ title: '商店名称',
2269
+ dataIndex: 'name',
2270
+ defaultSort: 2,
2271
+ width: 120,
2272
+ },
2273
+ {
2274
+ title: '商店类型',
2275
+ dataIndex: 'type',
2276
+ defaultSort: 3,
2277
+ width: 100,
2278
+ render: (text: number) => shopFile2Type.find((i: any) => i.value === text)?.text,
2279
+ },
2280
+ {
2281
+ title: '启用状态',
2282
+ dataIndex: 'status',
2283
+ width: 80,
2284
+ render: (text: number) => shopFile2Status.find((i: any) => i.value === text)?.text,
2285
+ },
2286
+ {
2287
+ title: '所属销售组织',
2288
+ dataIndex: 'orgName',
2289
+ defaultSort: 4,
2290
+ width: 95,
2291
+ },
2292
+ {
2293
+ title: '所属销售渠道',
2294
+ dataIndex: 'channelName',
2295
+ defaultSort: 5,
2296
+ width: 100,
2297
+ },
2298
+ {
2299
+ title: '营销区域',
2300
+ dataIndex: 'commonRelationAreaName',
2301
+ defaultSort: 6,
2302
+ width: 100,
2303
+ },
2304
+ {
2305
+ title: '店铺性质',
2306
+ dataIndex: 'businessType',
2307
+ defaultSort: 7,
2308
+ render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
2309
+ width: 80,
2310
+ },
2311
+ ],
2312
+ noEmptySearchField: true,
2313
+ ...modalTableBusProps
2314
+ }
2315
+ }
2316
+ if(type === 'shopFile3') {
2317
+ selectProps = {
2318
+ placeholder: '输入商店编码或名称',
2319
+ renderTableColumns: [
2320
+ {
2321
+ title: '商店编码',
2322
+ dataIndex: 'code',
2323
+ },
2324
+ {
2325
+ title: '商店名称',
2326
+ dataIndex: 'name',
2327
+ },
2328
+ ],
2329
+ ...selectConfigProps,
2330
+ }
2331
+ requestConfig = {
2332
+ init: true,
2333
+ url: `${prefixUrl.selectPrefix}/store/doPagerPw`,
2334
+ filter: 'qp-name,code-orGroup,like', // 过滤参数
2335
+ mappingTextField: 'name',
2336
+ mappingValueField: 'code',
2337
+ otherParams: {
2338
+ sorter: 'desc-id',
2339
+ 'qp-status-in': 10,
2340
+ ...(requestConfigProp?.addOtherParams || {}),
2341
+ }, // 默认参数
2342
+ sourceName: 'code',
2343
+ ...requestConfigProp,
2344
+ }
2345
+ tableSearchForm = [
2346
+ { name: 'name*multiInput', label: '商店名称', type: 'multipleQueryInput' },
2347
+ { name: 'code*multiInput', label: '商店编码', type: 'multipleQueryInput' },
2348
+ { name: 'qp-type-in', type: 'select', label: '商店类型', initialSource: shopFile2Type },
2349
+ // { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
2350
+ { name: 'qp-orgCode-in', type: 'select', label: '所属销售组织', field: {
2351
+ type: 'select',
2352
+ props: {
2353
+ mode: 'multiple',
2354
+ notFoundContent: '暂无数据',
2355
+ allowClear: true,
2356
+ showSearch: true,
2357
+ showArrow: true,
2358
+ maxTagCount: 1,
2359
+ optionFilterProp: 'children',
2360
+ filterOption: (input: string, option: { props: { children: string } }) =>
2361
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2362
+ },
2363
+ } },
2364
+ { name: 'qp-channelCode-in', type: 'treeSelect', label: '所属销售渠道', field: {
2365
+ type: 'treeSelect',
2316
2366
  props: {
2367
+ multiple: true,
2368
+ treeData: [],
2369
+ treeCheckable: false,
2317
2370
  notFoundContent: '暂无数据',
2318
2371
  allowClear: true,
2319
2372
  showSearch: true,
@@ -2321,12 +2374,16 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2321
2374
  maxTagCount: 1,
2322
2375
  optionFilterProp: 'children',
2323
2376
  filterOption: (input: string, option: { props: { children: string } }) =>
2324
- (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2377
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2378
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2325
2379
  },
2326
2380
  } },
2327
- { name: 'qp-distributionItem-like', type: 'select', label: '分销商品', field: {
2328
- type: 'select',
2381
+ { name: 'qp-commonRelationAreaCode-in', type: 'treeSelect', label: '营销区域', field: {
2382
+ type: 'treeSelect',
2329
2383
  props: {
2384
+ multiple: true,
2385
+ treeData: [],
2386
+ treeCheckable: false,
2330
2387
  notFoundContent: '暂无数据',
2331
2388
  allowClear: true,
2332
2389
  showSearch: true,
@@ -2334,12 +2391,15 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2334
2391
  maxTagCount: 1,
2335
2392
  optionFilterProp: 'children',
2336
2393
  filterOption: (input: string, option: { props: { children: string } }) =>
2337
- (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2394
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2395
+
2396
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2338
2397
  },
2339
2398
  } },
2340
- { name: 'qp-headItem-like', type: 'select', label: '总部商品', field: {
2399
+ { name: 'qp-businessType-in', type: 'select', label: '店铺性质', field: {
2341
2400
  type: 'select',
2342
2401
  props: {
2402
+ mode: 'multiple',
2343
2403
  notFoundContent: '暂无数据',
2344
2404
  allowClear: true,
2345
2405
  showSearch: true,
@@ -2347,22 +2407,50 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2347
2407
  maxTagCount: 1,
2348
2408
  optionFilterProp: 'children',
2349
2409
  filterOption: (input: string, option: { props: { children: string } }) =>
2350
- (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2410
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2351
2411
  },
2352
- } },
2353
- { name: 'qp-storeChannelName-like', type: 'select', label: '管理模式', field: {
2412
+ } ,
2413
+ initialSource: getDictionarySource('BUSINESS_StoreType')
2414
+ },
2415
+ {
2416
+ name: "qp-brandCode-in",
2417
+ label: "品牌",
2418
+ field: {
2419
+ type:'select',
2420
+ props: {
2421
+ mode: 'multiple',
2422
+ notFoundContent: '暂无数据',
2423
+ allowClear: true,
2424
+ showSearch: true,
2425
+ showArrow: true,
2426
+ maxTagCount: 1,
2427
+ optionFilterProp: 'children',
2428
+ filterOption: (input: string, option: { props: { children: string } }) =>
2429
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2430
+ },
2431
+ },
2432
+ },
2433
+ {
2434
+ name: 'qp-physicalWarehouseCode-in',
2354
2435
  type: 'select',
2355
- props: {
2356
- notFoundContent: '暂无数据',
2357
- allowClear: true,
2358
- showSearch: true,
2359
- showArrow: true,
2360
- maxTagCount: 1,
2361
- optionFilterProp: 'children',
2362
- filterOption: (input: string, option: { props: { children: string } }) =>
2363
- (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2436
+ label: '物理仓库',
2437
+ field: {
2438
+ type: 'select',
2439
+ props: {
2440
+ notFoundContent: '暂无数据',
2441
+ allowClear: true,
2442
+ showSearch: true,
2443
+ showArrow: true,
2444
+ maxTagCount: 1,
2445
+ optionFilterProp: 'children',
2446
+ filterOption: (
2447
+ input: string,
2448
+ option: { props: { children: string } },
2449
+ ) =>
2450
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase()),
2451
+ },
2364
2452
  },
2365
- } },
2453
+ },
2366
2454
  ]
2367
2455
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2368
2456
  Promise.all([
@@ -2384,38 +2472,28 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2384
2472
  currentPage: 1,
2385
2473
  'ctl-withAuth': true,
2386
2474
  },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth')),
2387
- loadSelectSource(`/channel-manage/store/selectStoreOperationalInfo`, {}, getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in'))
2475
+ loadSelectSource(
2476
+ `/stock/physicalWarehouse`,
2477
+ {
2478
+ pageSize: 5000,
2479
+ currentPage: 1,
2480
+ 'qp-isEnable-eq': 1,
2481
+ sorter: 'desc-id',
2482
+ },
2483
+ {
2484
+ headers: {
2485
+ ...extralHeaders,
2486
+ },
2487
+ },
2488
+ ),
2388
2489
  ]).then((x: any)=>{
2389
- const newData1: any[] = [];
2390
- x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
2391
- newData1.push({ code: item.code, name: item.name })
2392
- });
2393
- x[1].data = newData1;
2394
2490
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
2395
2491
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
2396
2492
  formatSource(x,0, 3, tableSearchForm);
2397
2493
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
2398
2494
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
2399
2495
  formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
2400
-
2401
- const opRaw = x[4]?.data;
2402
- // 新增label属性
2403
- opList?.forEach((r: any) => {
2404
- r.label = r?.value;
2405
- })
2406
- let opList = Array.isArray(opRaw) ? opRaw : (opRaw?.items || opRaw?.list || []);
2407
- if (Array.isArray(opList) && Array.isArray(opList[0]) && !opList[0]?.field) { opList = opList[0]; }
2408
- const m1 = opList?.filter((r: any) => r?.field === 'manage_supervisor' && trim(r?.value));
2409
- const m2 = opList?.filter((r: any) => r?.field === 'direct_supervisor' && trim(r?.value));
2410
- const m3 = opList?.filter((r: any) => r?.field === 'distribution_item' && trim(r?.value));
2411
- debugger
2412
- const m4 = opList?.filter((r: any) => r?.field === 'head_item' && trim(r?.value));
2413
- const m5 = opList?.filter((r: any) => r?.field === 'store_channel_name' && trim(r?.value));
2414
- tableSearchForm[8] = { ...tableSearchForm[8], initialSource: m1 };
2415
- tableSearchForm[9] = { ...tableSearchForm[9], initialSource: m2 };
2416
- tableSearchForm[10] = { ...tableSearchForm[10], initialSource: m3 };
2417
- tableSearchForm[11] = { ...tableSearchForm[11], initialSource: m4 };
2418
- tableSearchForm[12] = { ...tableSearchForm[12], initialSource: m5 };
2496
+ formatSource(x,4, 8, tableSearchForm, ['physicalWarehouseCode', 'physicalWarehouseName']);
2419
2497
  })
2420
2498
  modalTableProps = {
2421
2499
  modalTableTitle: '选择商店',
@@ -2478,47 +2556,17 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2478
2556
  width: 80,
2479
2557
  },
2480
2558
  {
2481
- title: '品牌',
2482
- dataIndex: 'brandName',
2559
+ title: '库存组织编码',
2560
+ dataIndex: 'physicalWarehouseCode',
2561
+ render: (text: any) => text?.physicalWarehouseCode || '-',
2483
2562
  defaultSort: 8,
2484
- width: 80,
2485
- },
2486
- {
2487
- title: '管理督导',
2488
- dataIndex: 'manageSupervisor',
2489
- defaultSort: 9,
2490
2563
  width: 100,
2491
- },
2492
- {
2493
- title: '直接督导',
2494
- dataIndex: 'directSupervisor',
2495
- defaultSort: 10,
2496
- width: 100,
2497
- },
2498
- {
2499
- title: '分销商品',
2500
- dataIndex: 'distributionItem',
2501
- defaultSort: 11,
2502
- width: 100,
2503
- },
2504
- {
2505
- title: '总部商品',
2506
- dataIndex: 'headItem',
2507
- defaultSort: 12,
2508
- width: 100,
2509
- },
2510
- {
2511
- title: '管理模式',
2512
- dataIndex: 'storeChannelName',
2513
- defaultSort: 13,
2514
- width: 100,
2515
- },
2564
+ }
2516
2565
  ],
2517
2566
  noEmptySearchField: true,
2518
2567
  ...modalTableBusProps
2519
2568
  }
2520
2569
  }
2521
-
2522
2570
  // 核算主体选择器(无弹窗)
2523
2571
  if(type === 'accountingSubject') {
2524
2572
  selectProps = {