@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.5-per-alpha.2

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 (89) hide show
  1. package/.umirc.ts +14 -10
  2. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  3. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  14. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +19 -8
  15. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  16. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +9 -17
  17. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  18. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  19. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  20. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  21. package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
  22. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  23. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  28. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  29. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  30. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  31. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  32. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  33. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  34. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  35. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  36. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  38. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  39. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  40. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  41. package/dist/components/Common/Section/index.d.ts +1 -1
  42. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  43. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  44. package/dist/components/Functional/DataImport/index.d.ts +4 -4
  45. package/dist/components/Functional/DataValidation/index.d.ts +5 -5
  46. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  47. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  48. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  49. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  50. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  51. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  53. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  54. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  56. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  57. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  58. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  59. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  60. package/dist/index.d.ts +0 -1
  61. package/dist/index.esm.js +2203 -1852
  62. package/dist/index.js +2196 -1847
  63. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  64. package/dist/utils/TableUtils.d.ts +18 -19
  65. package/dist/utils/luckysheetLoader.d.ts +21 -0
  66. package/dist/utils/utils.d.ts +0 -41
  67. package/package.json +1 -1
  68. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +94 -25
  69. package/src/components/Business/BsLayouts/index.tsx +235 -129
  70. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +144 -4
  71. package/src/components/Business/BsSulaQueryTable/index.md +120 -0
  72. package/src/components/Business/BsSulaQueryTable/index.tsx +241 -24
  73. package/src/components/Business/BsSulaQueryTable/setting.tsx +232 -17
  74. package/src/components/Business/DetailPageWrapper/index.tsx +30 -27
  75. package/src/components/Business/HomePageWrapper/index.tsx +10 -8
  76. package/src/components/Business/SearchSelect/BusinessUtils.tsx +38 -234
  77. package/src/components/Business/columnSettingTable/index.tsx +6 -7
  78. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +22 -23
  79. package/src/components/Functional/AddSelect/index.tsx +0 -92
  80. package/src/components/Functional/DataImport/index.tsx +76 -3
  81. package/src/components/Functional/DataValidation/index.tsx +81 -3
  82. package/src/components/Functional/SearchSelect/index.tsx +2 -5
  83. package/src/components/Solution/RuleComponent/index.js +0 -1
  84. package/src/index.ts +0 -2
  85. package/src/utils/luckysheetLoader.ts +164 -0
  86. package/src/utils/utils.ts +1 -41
  87. package/dist/components/Business/SystemLog/index.d.ts +0 -78
  88. package/src/components/Business/SystemLog/index.md +0 -37
  89. package/src/components/Business/SystemLog/index.tsx +0 -87
@@ -13,7 +13,7 @@ const sharingTypeDataList = hasDictSharingType && getDictionarySource('UC000013'
13
13
 
14
14
  export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
15
15
  const { requestConfig:requestConfigProp={}, selectProps:selectConfigProps={}, modalTableProps:modalTableBusProps={}, hiddenFields=[]} = parentProps || {};
16
-
16
+
17
17
  // 默认type === 'supplier' 供应商选择器
18
18
  let requestConfig = {
19
19
  init: true,
@@ -56,11 +56,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
56
56
  };
57
57
  };
58
58
  const formatTreeDataSource = (
59
- reData: any,
60
- position: number,
59
+ reData: any,
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
  ) => {
@@ -344,7 +344,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
344
344
  }
345
345
  tableSearchForm = [
346
346
  { name: 'qp-skuCode-in', label: 'SKU编码', field: {
347
- type:'multipleQuerySearchSelect',
347
+ type:'multipleQuerySearchSelect',
348
348
  props: {
349
349
  selectProps: {
350
350
  mode: "multiple",
@@ -366,7 +366,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
366
366
  } },
367
367
  { name: 'qp-skuName-like', label: 'SKU名称' },
368
368
  { name: 'qp-itemCode-in', label: 'SPU编码', field: {
369
- type:'multipleQuerySearchSelect',
369
+ type:'multipleQuerySearchSelect',
370
370
  props: {
371
371
  selectProps: {
372
372
  placeholder: '请输入SPU编码查询'
@@ -523,11 +523,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
523
523
  placeholder: '输入商品(SPU)编码或名称',
524
524
  renderTableColumns: [
525
525
  {
526
- title: 'SPU编码',
526
+ title: '商品编码(SPU)',
527
527
  dataIndex: 'itemCode',
528
528
  },
529
529
  {
530
- title: 'SPU名称',
530
+ title: '商品名称(SPU)',
531
531
  dataIndex: 'name',
532
532
  },
533
533
  ],
@@ -547,8 +547,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
547
547
  ...requestConfigProp,
548
548
  }
549
549
  tableSearchForm = [
550
- { name: 'itemCode*multiInput', label: 'SPU编码', type: 'multipleQueryInput' },
551
- { name: 'name*multiInput', label: 'SPU名称', type: 'multipleQueryInput' },
550
+ { name: 'itemCode*multiInput', label: '商品编码(SPU)', type: 'multipleQueryInput' },
551
+ { name: 'name*multiInput', label: '商品名称(SPU)', type: 'multipleQueryInput' },
552
552
  { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
553
553
  type: 'select',
554
554
  props: {
@@ -626,12 +626,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
626
626
  defaultSort: 0,
627
627
  },
628
628
  {
629
- title: 'SPU编码',
629
+ title: '商品编码(SPU)',
630
630
  dataIndex: 'itemCode',
631
631
  defaultSort: 1,
632
632
  },
633
633
  {
634
- title: 'SPU名称',
634
+ title: '商品名称(SPU) ',
635
635
  dataIndex: 'name',
636
636
  defaultSort: 2,
637
637
  },
@@ -733,9 +733,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
733
733
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
734
734
  },
735
735
  } },
736
- {
737
- name: 'qp-year-in',
738
- label: '年份',
736
+ {
737
+ name: 'qp-year-in',
738
+ label: '年份',
739
739
  field: {
740
740
  type: 'itemPropertySelector',
741
741
  props: {
@@ -744,9 +744,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
744
744
  }
745
745
  }
746
746
  },
747
- {
748
- name: 'qp-season-in',
749
- label: '季节',
747
+ {
748
+ name: 'qp-season-in',
749
+ label: '季节',
750
750
  field: {
751
751
  type: 'itemPropertySelector',
752
752
  props: {
@@ -755,9 +755,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
755
755
  }
756
756
  }
757
757
  },
758
- {
759
- name: 'qp-zzdlbm-in',
760
- label: '大类',
758
+ {
759
+ name: 'qp-zzdlbm-in',
760
+ label: '大类',
761
761
  field: {
762
762
  type: 'itemPropertySelector',
763
763
  props: {
@@ -766,9 +766,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
766
766
  }
767
767
  }
768
768
  },
769
- {
770
- name: 'qp-zzzlbm-in',
771
- label: '中类',
769
+ {
770
+ name: 'qp-zzzlbm-in',
771
+ label: '中类',
772
772
  field: {
773
773
  type: 'itemPropertySelector',
774
774
  props: {
@@ -777,9 +777,9 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
777
777
  }
778
778
  }
779
779
  },
780
- {
781
- name: 'qp-zzxlbm-in',
782
- label: '小类',
780
+ {
781
+ name: 'qp-zzxlbm-in',
782
+ label: '小类',
783
783
  field: {
784
784
  type: 'itemPropertySelector',
785
785
  props: {
@@ -970,7 +970,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
970
970
  ['colorName', 'categoryId', 'classId', 'brandId'],
971
971
  hiddenFields,
972
972
  );
973
- const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params, i.options));
973
+ const fieldLoadSource = fieldsRequest.map((i: any) => loadSelectSource(i.url, i.params,options));
974
974
  requestConfig = {
975
975
  url: `${prefixUrl.selectPrefix}/skc/skcSelect`,
976
976
  filter: 'qp-code,name-orGroup,like', // 过滤参数
@@ -1198,84 +1198,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1198
1198
  sourceName: 'warehouseIds',
1199
1199
  ...requestConfigProp,
1200
1200
  }
1201
- const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1202
- Promise.all([
1203
- loadSelectSource(`/channel-manage/channelInfo/tree`, {
1204
- 'qp-status-eq': 10,
1205
- 'qp-isMain-eq': 1,
1206
- 'qp-type-in': '1,2',
1207
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1208
- loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
1209
- 'qp-status-eq': 1,
1210
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1211
- ]).then((x: any)=>{
1212
- const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1213
- const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1214
- formatTreeDataSource(x, 0, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1215
- formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1216
- })
1217
1201
  tableSearchForm = [
1218
1202
  { name: 'realWarehouseName*multiInput', label: '逻辑仓名称', type: 'multipleQueryInput' },
1219
1203
  { name: 'realWarehouseCode*multiInput', label: '逻辑仓编码', type: 'multipleQueryInput' },
1220
1204
  { name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
1221
1205
  { name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
1222
- {
1223
- name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1224
- type: 'treeSelect',
1225
- props: {
1226
- multiple: true,
1227
- treeData: [],
1228
- treeCheckable: false,
1229
- notFoundContent: '暂无数据',
1230
- allowClear: true,
1231
- showSearch: true,
1232
- showArrow: true,
1233
- maxTagCount: 1,
1234
- optionFilterProp: 'children',
1235
- filterOption: (input: string, option: { props: { children: string } }) =>
1236
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1237
- showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1238
- },
1239
- }
1240
- },
1241
- {
1242
- name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
1243
- type: 'treeSelect',
1244
- props: {
1245
- multiple: true,
1246
- treeData: [],
1247
- treeCheckable: false,
1248
- notFoundContent: '暂无数据',
1249
- allowClear: true,
1250
- showSearch: true,
1251
- showArrow: true,
1252
- maxTagCount: 1,
1253
- optionFilterProp: 'children',
1254
- filterOption: (input: string, option: { props: { children: string } }) =>
1255
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1256
-
1257
- showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1258
- },
1259
- }
1260
- },
1261
- {
1262
- name: 'qp-type-in', type: 'select', label: '店铺性质', field: {
1263
- type: 'select',
1264
- props: {
1265
- mode: 'multiple',
1266
- notFoundContent: '暂无数据',
1267
- allowClear: true,
1268
- showSearch: true,
1269
- showArrow: true,
1270
- maxTagCount: 1,
1271
- optionFilterProp: 'children',
1272
- filterOption: (input: string, option: { props: { children: string } }) =>
1273
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1274
- },
1275
- },
1276
- initialSource: getDictionarySource('BUSINESS_StoreType')
1277
- },
1278
- ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
1206
+ ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }]:[])
1279
1207
  ]
1280
1208
  modalTableProps = {
1281
1209
  modalTableTitle: '选择逻辑仓',
@@ -1302,36 +1230,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1302
1230
  defaultSort: 3,
1303
1231
  render: (text: number) => getDictionaryTextByValue('SC00004', text),
1304
1232
  },
1305
- {
1306
- title: '运营组名称',
1307
- dataIndex: 'groupCode',
1308
- defaultSort: 7,
1309
- render: (text: any, record) => record?.groupName ? `【${text}】${record?.groupName}` : "",
1310
- width: 100,
1311
- },
1312
- {
1313
- title: '所属销售渠道',
1314
- dataIndex: 'channelName',
1315
- defaultSort: 4,
1316
- width: 100,
1317
- },
1318
- {
1319
- title: '营销区域',
1320
- dataIndex: 'commonRelationAreaName',
1321
- defaultSort: 5,
1322
- width: 100,
1323
- },
1324
- {
1325
- title: '店铺性质',
1326
- dataIndex: 'type',
1327
- defaultSort: 6,
1328
- render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
1329
- width: 80,
1330
- },
1331
1233
  ...(modalTableBusProps?.needStatusSearch?[{
1332
1234
  title: '状态',
1333
1235
  dataIndex: 'isEnable',
1334
- defaultSort: 8,
1236
+ defaultSort: 4,
1335
1237
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1336
1238
  }]:[]),
1337
1239
  ],
@@ -1386,39 +1288,13 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1386
1288
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1387
1289
  },
1388
1290
  } },
1389
- {
1390
- name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
1391
- type: 'treeSelect',
1392
- props: {
1393
- multiple: true,
1394
- treeData: [],
1395
- treeCheckable: false,
1396
- notFoundContent: '暂无数据',
1397
- allowClear: true,
1398
- showSearch: true,
1399
- showArrow: true,
1400
- maxTagCount: 1,
1401
- optionFilterProp: 'children',
1402
- filterOption: (input: string, option: { props: { children: string } }) =>
1403
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1404
- showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1405
- },
1406
- }
1407
- },
1408
- ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
1291
+ ...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-status-eq', type: 'select', label: '运营仓状态', initialSource: getDictionarySource('SC00001') }]:[])
1409
1292
  ]
1410
1293
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1411
1294
  Promise.all([
1412
1295
  loadSelectSource(`${prefixUrl.formSelectFix}/groupInfo/listNoPage`, { 'qp-status-eq': 1 },getQueryHeadersItem(queryHeaderParams,'qp-groupCode-in')),
1413
- loadSelectSource(`/channel-manage/channelInfo/tree`, {
1414
- 'qp-status-eq': 10,
1415
- 'qp-isMain-eq': 1,
1416
- 'qp-type-in': '1,2',
1417
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1418
1296
  ]).then((x: any)=>{
1419
1297
  formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
1420
- const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1421
- formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1422
1298
  })
1423
1299
  modalTableProps = {
1424
1300
  modalTableTitle: '选择运营仓',
@@ -1450,12 +1326,6 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1450
1326
  defaultSort: 4,
1451
1327
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1452
1328
  }]:[]),
1453
- {
1454
- title: '所属销售渠道',
1455
- dataIndex: 'channelName',
1456
- defaultSort: 5,
1457
- width: 100,
1458
- },
1459
1329
  ],
1460
1330
  ...modalTableBusProps,
1461
1331
  }
@@ -1729,66 +1599,15 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1729
1599
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1730
1600
  },
1731
1601
  } },
1732
- {
1733
- name: 'qp-saleChannel-in', type: 'treeSelect', label: '销售渠道', field: {
1734
- type: 'treeSelect',
1735
- props: {
1736
- multiple: true,
1737
- treeData: [],
1738
- treeCheckable: false,
1739
- notFoundContent: '暂无数据',
1740
- allowClear: true,
1741
- showSearch: true,
1742
- showArrow: true,
1743
- maxTagCount: 1,
1744
- optionFilterProp: 'children',
1745
- filterOption: (input: string, option: { props: { children: string } }) =>
1746
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1747
- showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1748
- },
1749
- }
1750
- },
1751
- {
1752
- name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
1753
- type: 'treeSelect',
1754
- props: {
1755
- multiple: true,
1756
- treeData: [],
1757
- treeCheckable: false,
1758
- notFoundContent: '暂无数据',
1759
- allowClear: true,
1760
- showSearch: true,
1761
- showArrow: true,
1762
- maxTagCount: 1,
1763
- optionFilterProp: 'children',
1764
- filterOption: (input: string, option: { props: { children: string } }) =>
1765
- option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
1766
-
1767
- showCheckedStrategy: 'TreeSelect.SHOW_ALL',
1768
- },
1769
- }
1770
- },
1771
- ];
1602
+ ]
1772
1603
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
1773
1604
  Promise.all([
1774
1605
  loadSelectSource(`${prefixUrl.formSelectFix}/org/listNoPage`, {},getQueryHeadersItem(queryHeaderParams,'qp-createOrgCode-eq')),
1775
- loadSelectSource(`/channel-manage/channelInfo/tree`, {
1776
- 'qp-status-eq': 10,
1777
- 'qp-isMain-eq': 1,
1778
- 'qp-type-in': '1,2',
1779
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1780
- loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
1781
- 'qp-status-eq': 1,
1782
- },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
1783
1606
  ]).then((x: any)=>{
1784
1607
  const firstElement = x?.[0];
1785
1608
  const allList = firstElement && [firstElement, firstElement];
1786
1609
  formatSource(allList,0, 2, tableSearchForm);
1787
1610
  formatSource(allList,1, 3, tableSearchForm);
1788
- const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
1789
- const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
1790
- formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
1791
- formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
1792
1611
  })
1793
1612
  modalTableProps = {
1794
1613
  modalTableTitle: '选择客户',
@@ -1818,19 +1637,6 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1818
1637
  title: '使用组织',
1819
1638
  dataIndex: 'salesOrgName',
1820
1639
  defaultSort: 4,
1821
- width: 100,
1822
- },
1823
- {
1824
- title: '所属销售渠道',
1825
- dataIndex: 'channelName',
1826
- defaultSort: 5,
1827
- width: 100,
1828
- },
1829
- {
1830
- title: '营销区域',
1831
- dataIndex: 'commonRelationAreaName',
1832
- defaultSort: 6,
1833
- width: 100,
1834
1640
  },
1835
1641
  ],
1836
1642
  ...modalTableBusProps
@@ -1867,10 +1673,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1867
1673
  ...requestConfigProp,
1868
1674
  }
1869
1675
  tableSearchForm = [
1870
- { name: 'name*multiInput', label: '店铺名称', type: 'multipleQueryInput' },
1871
- { name: 'code*multiInput', label: '店铺编码', type: 'multipleQueryInput' },
1872
- // { name: 'qp-name-like', label: '店铺名称' },
1873
- // { name: 'qp-code-like', label: '店铺编码' },
1676
+ { name: 'qp-name-like', label: '店铺名称' },
1677
+ { name: 'qp-code-like', label: '店铺编码' },
1874
1678
  { name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
1875
1679
  type: 'select',
1876
1680
  props: {
@@ -2100,7 +1904,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2100
1904
  optionFilterProp: 'children',
2101
1905
  filterOption: (input: string, option: { props: { children: string } }) =>
2102
1906
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2103
-
1907
+
2104
1908
  showCheckedStrategy: 'TreeSelect.SHOW_ALL',
2105
1909
  },
2106
1910
  } },
@@ -2118,7 +1922,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2118
1922
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2119
1923
  },
2120
1924
  } ,
2121
- initialSource: getDictionarySource('BUSINESS_StoreType')
1925
+ initialSource: getDictionarySource('BUSINESS_StoreType')
2122
1926
  },
2123
1927
  ]
2124
1928
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
@@ -2389,7 +2193,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2389
2193
  },
2390
2194
  } },
2391
2195
  { name: 'qp-email-like', label: '邮箱' },
2392
- { name: 'qp-phone-like', label: '手机号' },
2196
+ { name: 'qp-officeTelephone-like', label: '手机号' },
2393
2197
  ]
2394
2198
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2395
2199
  Promise.all([
@@ -2497,7 +2301,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2497
2301
  } },
2498
2302
  ...(modalTableBusProps?.needTypeSearch?[{ name: 'qp-employmentType-eq', type: 'select', label: '员工类型', initialSource: employeeType }]:[]),
2499
2303
  { name: 'qp-email-like', label: '邮箱' },
2500
- { name: 'qp-phone-like', label: '手机号' },
2304
+ { name: 'qp-officeTelephone-like', label: '手机号' },
2501
2305
  ]
2502
2306
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2503
2307
  Promise.all([
@@ -1,4 +1,3 @@
1
- // @ts-nocheck
2
1
  import React, { useState } from 'react';
3
2
  import { Table, Tooltip, Typography } from 'antd';
4
3
  import { Resizable } from 'react-resizable';
@@ -82,9 +81,9 @@ export default class ColumnSettingTable extends React.Component {
82
81
 
83
82
  /**
84
83
  * 新增函数,用于根据传入的小数位数进行四舍五入
85
- * @param number
86
- * @param decimalPlaces
87
- * @returns
84
+ * @param number
85
+ * @param decimalPlaces
86
+ * @returns
88
87
  */
89
88
  roundToDecimalPlaces = (number: any, decimalPlaces: number) => {
90
89
  const factor = Math.pow(10, (decimalPlaces || 2));
@@ -93,7 +92,7 @@ export default class ColumnSettingTable extends React.Component {
93
92
 
94
93
  /**
95
94
  * 合计行逻辑
96
- * @returns
95
+ * @returns
97
96
  */
98
97
  getTableSummaryInfo = () => {
99
98
  const { summary = undefined, rowSelection, expandable, modeType, dataSource, isSpecial = false, }: any = this.props;
@@ -233,7 +232,7 @@ export default class ColumnSettingTable extends React.Component {
233
232
 
234
233
  /**
235
234
  * 处理行点击事件
236
- * @param record
235
+ * @param record
237
236
  */
238
237
  handleRowClick = (record: any) => {
239
238
  const { selectedRowKeys, selectedRows, } = this.state;
@@ -317,7 +316,7 @@ export default class ColumnSettingTable extends React.Component {
317
316
  ...propRowSelection,
318
317
  selectedRowKeys: this.state.selectedRowKeys,
319
318
  onChange: (selectedRowKeys: any, selectedRows: any) => {
320
- this.setState({
319
+ this.setState({
321
320
  selectedRowKeys,
322
321
  selectedRows
323
322
  });
@@ -1,4 +1,3 @@
1
- // @ts-nocheck
2
1
  import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
2
  import { Table as SulaTable, request } from 'bssula';
4
3
  import { Resizable } from 'react-resizable';
@@ -23,7 +22,7 @@ export default class ColumnSettingSulaTable extends React.Component {
23
22
  showColumns: [],
24
23
  selectedRowKeys: [], // 新增状态,用于跟踪选中的行的键
25
24
  selectedRows: [],
26
- showSummary: null
25
+ showSummary: null
27
26
  }
28
27
  this.sulaTableRef = React.createRef<any>();
29
28
  }
@@ -80,9 +79,9 @@ export default class ColumnSettingSulaTable extends React.Component {
80
79
 
81
80
  /**
82
81
  * 新增函数,用于根据传入的小数位数进行四舍五入
83
- * @param number
84
- * @param decimalPlaces
85
- * @returns
82
+ * @param number
83
+ * @param decimalPlaces
84
+ * @returns
86
85
  */
87
86
  roundToDecimalPlaces = (number: any, decimalPlaces: number) => {
88
87
  const factor = Math.pow(10, (decimalPlaces || 2));
@@ -91,7 +90,7 @@ export default class ColumnSettingSulaTable extends React.Component {
91
90
 
92
91
  /**
93
92
  * 合计行逻辑
94
- * @returns
93
+ * @returns
95
94
  */
96
95
  getTableSummaryInfo = () => {
97
96
  const { summary = undefined, rowSelection, expandable, isSpecial = false, modeType }: any = this.props;
@@ -168,10 +167,10 @@ export default class ColumnSettingSulaTable extends React.Component {
168
167
  </Table.Summary.Row>
169
168
  </Table.Summary>
170
169
  );
171
-
170
+
172
171
  return () => summaryDom;
173
- };
174
-
172
+ };
173
+
175
174
  handledynamicColumns = (col: any[]) => {
176
175
  let { dynamicColumns, modeType }: any = this.props;
177
176
  col = col.map((item: any) => {
@@ -206,7 +205,7 @@ export default class ColumnSettingSulaTable extends React.Component {
206
205
 
207
206
  ResizeableTitle = (props: any) => {
208
207
  const { onResize, width, ...restProps } = props;
209
-
208
+
210
209
  const [innerWidth, setInnerWidth] = useState(width);
211
210
  const [isResizing, setIsResizing] = useState(false); // 标记是否正在拖拽
212
211
  const [isDragging, setIsDragging] = useState(false); // 标记拖拽句柄是否被拖拽
@@ -214,9 +213,9 @@ export default class ColumnSettingSulaTable extends React.Component {
214
213
  const markerPosition = useRef({ left: 0, top: 0 });
215
214
  const currentStart = useRef(0);
216
215
  const uuidref = useRef(uuid());
217
-
216
+
218
217
  const prevWidthRef = useRef(width);
219
-
218
+
220
219
  const handleMouseDown = (e: any) => {
221
220
  currentStart.current = e.clientX;
222
221
  markerPosition.current = { left: e.clientX, top: e.clientY }
@@ -224,35 +223,35 @@ export default class ColumnSettingSulaTable extends React.Component {
224
223
  document.addEventListener('mousemove', handleMouseMove);
225
224
  document.addEventListener('mouseup', handleMouseUp);
226
225
  };
227
-
226
+
228
227
  const handleMouseMove = (e: any) => {
229
228
  e.stopPropagation();
230
229
  e.preventDefault();
231
230
  // 更新标记位置
232
231
  markerPosition.current = { left: e.clientX, top: e.clientY }
233
232
  const dom: HTMLElement | null = document.getElementById('text1');
234
-
233
+
235
234
  if (dom && dom.style) {
236
235
  dom.style.left = `${e.clientX}px`;
237
236
  dom.style.top = `${e.clientY - 20}px`;
238
237
  }
239
238
  };
240
-
239
+
241
240
  const handleMouseUp = (e: any) => {
242
241
  document.removeEventListener('mousemove', handleMouseMove);
243
242
  document.removeEventListener('mouseup', handleMouseUp);
244
243
  setIsResizing(false);
245
244
  };
246
-
245
+
247
246
  const handleresize = (e: any, data: any, title: string) => {
248
247
  const newWidth = data?.size?.width || 0;
249
248
  setInnerWidth(newWidth); // 更新内部分宽度
250
249
  };
251
-
250
+
252
251
  const handleResizeStart = () => {
253
252
  setIsResizing(true);
254
253
  };
255
-
254
+
256
255
  const handleResizeStop = (e: any, data: any) => {
257
256
  setIsResizing(false);
258
257
  if (onResize) {
@@ -266,11 +265,11 @@ export default class ColumnSettingSulaTable extends React.Component {
266
265
  setInnerWidth(width);
267
266
  }
268
267
  }, [width]);
269
-
268
+
270
269
  const thStyle = {
271
270
  boxShadow: isResizing ? '2px 2px 10px rgba(0, 0, 0, 0.3)' : 'none',
272
271
  };
273
-
272
+
274
273
  return (
275
274
  <Resizable
276
275
  width={innerWidth}
@@ -334,7 +333,7 @@ export default class ColumnSettingSulaTable extends React.Component {
334
333
 
335
334
  /**
336
335
  * 处理行点击事件
337
- * @param record
336
+ * @param record
338
337
  */
339
338
  handleRowClick = (record: any) => {
340
339
  const { selectedRowKeys, selectedRows, } = this.state;
@@ -421,7 +420,7 @@ export default class ColumnSettingSulaTable extends React.Component {
421
420
  ...propRowSelection,
422
421
  selectedRowKeys: this.state.selectedRowKeys,
423
422
  onChange: (selectedRowKeys: any, selectedRows: any) => {
424
- this.setState({
423
+ this.setState({
425
424
  selectedRowKeys,
426
425
  selectedRows
427
426
  });
@@ -437,7 +436,7 @@ export default class ColumnSettingSulaTable extends React.Component {
437
436
  };
438
437
  },
439
438
  }
440
-
439
+
441
440
  return (
442
441
  <div style={{ position: 'relative' }}>
443
442
  <span style={{ position: 'absolute', zIndex: '10', right: '8px', top: '10px' }} className="ant-dropdown-link">