@bit-sun/business-component 4.2.0-alpha.6.6 → 4.2.0-alpha.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -5472,8 +5472,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5472
5472
  highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
5473
5473
  fieldComponent = props.fieldComponent,
5474
5474
  onSaveCallback = props.onSaveCallback,
5475
- _props$returnFormat = props.returnFormat,
5476
- returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
5477
5475
  selectBusinessType = props.selectBusinessType;
5478
5476
  var _ref = rCTemp || {},
5479
5477
  url = _ref.url,
@@ -5532,16 +5530,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5532
5530
  var currentPage = 1;
5533
5531
  var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
5534
5532
  var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
5535
- var currentSelectProps = _objectSpread2(_objectSpread2({
5536
- // 回显字段可自定义
5537
- optionLabelProp: "label"
5538
- }, selectProps), {}, {
5533
+ var currentSelectProps = _objectSpread2(_objectSpread2({}, selectProps), {}, {
5539
5534
  // 以下属性不可更改----设计配置项
5540
5535
  showArrow: true,
5541
5536
  showSearch: true,
5542
5537
  filterOption: false,
5543
5538
  allowClear: true,
5544
5539
  listHeight: 160,
5540
+ optionLabelProp: "label",
5545
5541
  autoClearSearchValue: false,
5546
5542
  placement: 'bottomRight'
5547
5543
  });
@@ -6010,19 +6006,12 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6010
6006
  };
6011
6007
  var formaData = function formaData(value, source) {
6012
6008
  if (labelInValue) {
6013
- var getFromat = function getFromat(format, val) {
6014
- return format.map(function (_ref8) {
6015
- var key = _ref8.key,
6016
- value = _ref8.value;
6017
- return _defineProperty({}, key, val[value]);
6018
- });
6019
- };
6020
6009
  var formatResult = value.map(function (i) {
6021
- return Object.assign.apply(Object, [{
6010
+ return {
6022
6011
  key: i[mappingValueField] || i.key,
6023
6012
  label: i[mappingTextField] || i.label,
6024
6013
  value: i[mappingValueField] || i.value
6025
- }].concat(_toConsumableArray(getFromat(returnFormat, i))));
6014
+ };
6026
6015
  });
6027
6016
  onChange(selectMode ? formatResult : formatResult[0], value, source);
6028
6017
  } else {
@@ -10644,10 +10633,10 @@ function commonFun(type, prefixUrl, parentProps) {
10644
10633
  selectProps = _objectSpread2({
10645
10634
  placeholder: '输入商品(SPU)编码或名称',
10646
10635
  renderTableColumns: [{
10647
- title: 'SPU编码',
10636
+ title: '商品编码(SPU)',
10648
10637
  dataIndex: 'itemCode'
10649
10638
  }, {
10650
- title: 'SPU名称',
10639
+ title: '商品名称(SPU)',
10651
10640
  dataIndex: 'name'
10652
10641
  }]
10653
10642
  }, selectConfigProps);
@@ -10664,11 +10653,11 @@ function commonFun(type, prefixUrl, parentProps) {
10664
10653
  }, requestConfigProp);
10665
10654
  tableSearchForm = [{
10666
10655
  name: 'itemCode*multiInput',
10667
- label: 'SPU编码',
10656
+ label: '商品编码(SPU)',
10668
10657
  type: 'multipleQueryInput'
10669
10658
  }, {
10670
10659
  name: 'name*multiInput',
10671
- label: 'SPU名称',
10660
+ label: '商品名称(SPU)',
10672
10661
  type: 'multipleQueryInput'
10673
10662
  }, {
10674
10663
  name: 'qp-brandId-in',
@@ -10762,11 +10751,11 @@ function commonFun(type, prefixUrl, parentProps) {
10762
10751
  dataIndex: 'keyIndex',
10763
10752
  defaultSort: 0
10764
10753
  }, {
10765
- title: 'SPU编码',
10754
+ title: '商品编码(SPU)',
10766
10755
  dataIndex: 'itemCode',
10767
10756
  defaultSort: 1
10768
10757
  }, {
10769
- title: 'SPU名称',
10758
+ title: '商品名称(SPU) ',
10770
10759
  dataIndex: 'name',
10771
10760
  defaultSort: 2
10772
10761
  }, {
@@ -11469,6 +11458,14 @@ function commonFun(type, prefixUrl, parentProps) {
11469
11458
  render: function render(text) {
11470
11459
  return getDictionaryTextByValue$1('SC00004', text);
11471
11460
  }
11461
+ }, {
11462
+ title: '运营组名称',
11463
+ dataIndex: 'groupCode',
11464
+ defaultSort: 7,
11465
+ render: function render(text, record) {
11466
+ return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
11467
+ },
11468
+ width: 100
11472
11469
  }, {
11473
11470
  title: '所属销售渠道',
11474
11471
  dataIndex: 'channelName',
@@ -11490,7 +11487,7 @@ function commonFun(type, prefixUrl, parentProps) {
11490
11487
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11491
11488
  title: '状态',
11492
11489
  dataIndex: 'isEnable',
11493
- defaultSort: 7,
11490
+ defaultSort: 8,
11494
11491
  render: function render(text) {
11495
11492
  return getDictionaryTextByValue$1('SC00001', text);
11496
11493
  }
@@ -12032,12 +12029,17 @@ function commonFun(type, prefixUrl, parentProps) {
12032
12029
  sourceName: 'code'
12033
12030
  }, requestConfigProp);
12034
12031
  tableSearchForm = [{
12035
- name: 'qp-name-like',
12036
- label: '店铺名称'
12037
- }, {
12038
- name: 'qp-code-like',
12039
- label: '店铺编码'
12032
+ name: 'name*multiInput',
12033
+ label: '店铺名称',
12034
+ type: 'multipleQueryInput'
12040
12035
  }, {
12036
+ name: 'code*multiInput',
12037
+ label: '店铺编码',
12038
+ type: 'multipleQueryInput'
12039
+ },
12040
+ // { name: 'qp-name-like', label: '店铺名称' },
12041
+ // { name: 'qp-code-like', label: '店铺编码' },
12042
+ {
12041
12043
  name: 'qp-conglomerateCode-in',
12042
12044
  type: 'select',
12043
12045
  label: '归属集团',
@@ -38600,7 +38602,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38600
38602
  display: 'flex',
38601
38603
  marginBottom: '0px',
38602
38604
  padding: '10px 0px'
38603
- }
38605
+ },
38606
+ key: itemDetail.elementId
38604
38607
  }, /*#__PURE__*/React$1.createElement("div", {
38605
38608
  className: 'logical_operate_content',
38606
38609
  style: {
package/dist/index.js CHANGED
@@ -5495,8 +5495,6 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5495
5495
  highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
5496
5496
  fieldComponent = props.fieldComponent,
5497
5497
  onSaveCallback = props.onSaveCallback,
5498
- _props$returnFormat = props.returnFormat,
5499
- returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
5500
5498
  selectBusinessType = props.selectBusinessType;
5501
5499
  var _ref = rCTemp || {},
5502
5500
  url = _ref.url,
@@ -5555,16 +5553,14 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5555
5553
  var currentPage = 1;
5556
5554
  var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
5557
5555
  var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
5558
- var currentSelectProps = _objectSpread2(_objectSpread2({
5559
- // 回显字段可自定义
5560
- optionLabelProp: "label"
5561
- }, selectProps), {}, {
5556
+ var currentSelectProps = _objectSpread2(_objectSpread2({}, selectProps), {}, {
5562
5557
  // 以下属性不可更改----设计配置项
5563
5558
  showArrow: true,
5564
5559
  showSearch: true,
5565
5560
  filterOption: false,
5566
5561
  allowClear: true,
5567
5562
  listHeight: 160,
5563
+ optionLabelProp: "label",
5568
5564
  autoClearSearchValue: false,
5569
5565
  placement: 'bottomRight'
5570
5566
  });
@@ -6033,19 +6029,12 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6033
6029
  };
6034
6030
  var formaData = function formaData(value, source) {
6035
6031
  if (labelInValue) {
6036
- var getFromat = function getFromat(format, val) {
6037
- return format.map(function (_ref8) {
6038
- var key = _ref8.key,
6039
- value = _ref8.value;
6040
- return _defineProperty({}, key, val[value]);
6041
- });
6042
- };
6043
6032
  var formatResult = value.map(function (i) {
6044
- return Object.assign.apply(Object, [{
6033
+ return {
6045
6034
  key: i[mappingValueField] || i.key,
6046
6035
  label: i[mappingTextField] || i.label,
6047
6036
  value: i[mappingValueField] || i.value
6048
- }].concat(_toConsumableArray(getFromat(returnFormat, i))));
6037
+ };
6049
6038
  });
6050
6039
  onChange(selectMode ? formatResult : formatResult[0], value, source);
6051
6040
  } else {
@@ -10667,10 +10656,10 @@ function commonFun(type, prefixUrl, parentProps) {
10667
10656
  selectProps = _objectSpread2({
10668
10657
  placeholder: '输入商品(SPU)编码或名称',
10669
10658
  renderTableColumns: [{
10670
- title: 'SPU编码',
10659
+ title: '商品编码(SPU)',
10671
10660
  dataIndex: 'itemCode'
10672
10661
  }, {
10673
- title: 'SPU名称',
10662
+ title: '商品名称(SPU)',
10674
10663
  dataIndex: 'name'
10675
10664
  }]
10676
10665
  }, selectConfigProps);
@@ -10687,11 +10676,11 @@ function commonFun(type, prefixUrl, parentProps) {
10687
10676
  }, requestConfigProp);
10688
10677
  tableSearchForm = [{
10689
10678
  name: 'itemCode*multiInput',
10690
- label: 'SPU编码',
10679
+ label: '商品编码(SPU)',
10691
10680
  type: 'multipleQueryInput'
10692
10681
  }, {
10693
10682
  name: 'name*multiInput',
10694
- label: 'SPU名称',
10683
+ label: '商品名称(SPU)',
10695
10684
  type: 'multipleQueryInput'
10696
10685
  }, {
10697
10686
  name: 'qp-brandId-in',
@@ -10785,11 +10774,11 @@ function commonFun(type, prefixUrl, parentProps) {
10785
10774
  dataIndex: 'keyIndex',
10786
10775
  defaultSort: 0
10787
10776
  }, {
10788
- title: 'SPU编码',
10777
+ title: '商品编码(SPU)',
10789
10778
  dataIndex: 'itemCode',
10790
10779
  defaultSort: 1
10791
10780
  }, {
10792
- title: 'SPU名称',
10781
+ title: '商品名称(SPU) ',
10793
10782
  dataIndex: 'name',
10794
10783
  defaultSort: 2
10795
10784
  }, {
@@ -11492,6 +11481,14 @@ function commonFun(type, prefixUrl, parentProps) {
11492
11481
  render: function render(text) {
11493
11482
  return getDictionaryTextByValue$1('SC00004', text);
11494
11483
  }
11484
+ }, {
11485
+ title: '运营组名称',
11486
+ dataIndex: 'groupCode',
11487
+ defaultSort: 7,
11488
+ render: function render(text, record) {
11489
+ return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
11490
+ },
11491
+ width: 100
11495
11492
  }, {
11496
11493
  title: '所属销售渠道',
11497
11494
  dataIndex: 'channelName',
@@ -11513,7 +11510,7 @@ function commonFun(type, prefixUrl, parentProps) {
11513
11510
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11514
11511
  title: '状态',
11515
11512
  dataIndex: 'isEnable',
11516
- defaultSort: 7,
11513
+ defaultSort: 8,
11517
11514
  render: function render(text) {
11518
11515
  return getDictionaryTextByValue$1('SC00001', text);
11519
11516
  }
@@ -12055,12 +12052,17 @@ function commonFun(type, prefixUrl, parentProps) {
12055
12052
  sourceName: 'code'
12056
12053
  }, requestConfigProp);
12057
12054
  tableSearchForm = [{
12058
- name: 'qp-name-like',
12059
- label: '店铺名称'
12060
- }, {
12061
- name: 'qp-code-like',
12062
- label: '店铺编码'
12055
+ name: 'name*multiInput',
12056
+ label: '店铺名称',
12057
+ type: 'multipleQueryInput'
12063
12058
  }, {
12059
+ name: 'code*multiInput',
12060
+ label: '店铺编码',
12061
+ type: 'multipleQueryInput'
12062
+ },
12063
+ // { name: 'qp-name-like', label: '店铺名称' },
12064
+ // { name: 'qp-code-like', label: '店铺编码' },
12065
+ {
12064
12066
  name: 'qp-conglomerateCode-in',
12065
12067
  type: 'select',
12066
12068
  label: '归属集团',
@@ -38623,7 +38625,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38623
38625
  display: 'flex',
38624
38626
  marginBottom: '0px',
38625
38627
  padding: '10px 0px'
38626
- }
38628
+ },
38629
+ key: itemDetail.elementId
38627
38630
  }, /*#__PURE__*/React__default['default'].createElement("div", {
38628
38631
  className: 'logical_operate_content',
38629
38632
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.2.0-alpha.6.6",
3
+ "version": "4.2.0-alpha.6.7",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -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
  },
@@ -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,i.options));
974
974
  requestConfig = {
975
975
  url: `${prefixUrl.selectPrefix}/skc/skcSelect`,
976
976
  filter: 'qp-code,name-orGroup,like', // 过滤参数
@@ -1302,6 +1302,13 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1302
1302
  defaultSort: 3,
1303
1303
  render: (text: number) => getDictionaryTextByValue('SC00004', text),
1304
1304
  },
1305
+ {
1306
+ title: '运营组名称',
1307
+ dataIndex: 'groupCode',
1308
+ defaultSort: 7,
1309
+ render: (text: any, record) => record?.groupName ? `【${text}】${record?.groupName}` : "",
1310
+ width: 100,
1311
+ },
1305
1312
  {
1306
1313
  title: '所属销售渠道',
1307
1314
  dataIndex: 'channelName',
@@ -1324,7 +1331,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1324
1331
  ...(modalTableBusProps?.needStatusSearch?[{
1325
1332
  title: '状态',
1326
1333
  dataIndex: 'isEnable',
1327
- defaultSort: 7,
1334
+ defaultSort: 8,
1328
1335
  render: (text: number) => getDictionaryTextByValue('SC00001', text),
1329
1336
  }]:[]),
1330
1337
  ],
@@ -1860,8 +1867,10 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1860
1867
  ...requestConfigProp,
1861
1868
  }
1862
1869
  tableSearchForm = [
1863
- { name: 'qp-name-like', label: '店铺名称' },
1864
- { name: 'qp-code-like', label: '店铺编码' },
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: '店铺编码' },
1865
1874
  { name: 'qp-conglomerateCode-in', type: 'select', label: '归属集团', field: {
1866
1875
  type: 'select',
1867
1876
  props: {
@@ -32,7 +32,6 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
32
32
  highestPopContainer = undefined,
33
33
  fieldComponent,
34
34
  onSaveCallback,
35
- returnFormat = [],
36
35
  selectBusinessType,
37
36
  } = props;
38
37
  const {
@@ -67,8 +66,6 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
67
66
  const selectParamsKey = requestConfig?.filter || 'qp-codeAndName-like'
68
67
  const selectParamsInitKey = requestConfig?.filterInit || selectParamsKey
69
68
  const currentSelectProps = {
70
- // 回显字段可自定义
71
- optionLabelProp: "label",
72
69
  ...selectProps,
73
70
  // 以下属性不可更改----设计配置项
74
71
  showArrow: true,
@@ -76,6 +73,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
76
73
  filterOption: false,
77
74
  allowClear: true,
78
75
  listHeight: 160,
76
+ optionLabelProp: "label",
79
77
  autoClearSearchValue: false,
80
78
  placement: 'bottomRight'
81
79
  }
@@ -433,8 +431,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
433
431
 
434
432
  const formaData = (value: any, source: any) => {
435
433
  if (labelInValue) {
436
- const getFromat = (format, val) => format.map(({key,value})=> ({[key]:val[value]}))
437
- const formatResult = value.map((i: any) => (Object.assign({ key: i[mappingValueField] || i.key, label: i[mappingTextField] || i.label, value: i[mappingValueField] || i.value }, ...getFromat(returnFormat, i))))
434
+ const formatResult = value.map((i: any) => ({ key: i[mappingValueField] || i.key, label: i[mappingTextField] || i.label, value: i[mappingValueField] || i.value }))
438
435
  onChange(selectMode ? formatResult : formatResult[0], value,source)
439
436
  } else {
440
437
  const formatResult = selectMode ? value.map((i: any) => i.value) : _.get(value[0], 'value')
@@ -748,6 +748,7 @@ class RuleObjectComponent extends Component {
748
748
  <div
749
749
  className={'rule_line_content'}
750
750
  style={{ display: 'flex', marginBottom: '0px', padding: '10px 0px' }}
751
+ key={itemDetail.elementId}
751
752
  >
752
753
  <div
753
754
  className={'logical_operate_content'}