@fle-ui/plus-choose-mall-goods 1.0.12 → 1.0.13

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/es/index.js CHANGED
@@ -13,21 +13,21 @@ import "antd/es/button/style";
13
13
  import _Button from "antd/es/button";
14
14
  import "antd/es/radio/style";
15
15
  import _Radio from "antd/es/radio";
16
- import "antd/es/input-number/style";
17
- import _InputNumber from "antd/es/input-number";
18
- import "antd/es/tree-select/style";
19
- import _TreeSelect from "antd/es/tree-select";
20
- import "antd/es/col/style";
21
- import _Col from "antd/es/col";
22
16
  import "antd/es/cascader/style";
23
17
  import _Cascader from "antd/es/cascader";
18
+ import "antd/es/input-number/style";
19
+ import _InputNumber from "antd/es/input-number";
24
20
  import "antd/es/select/style";
25
21
  import _Select from "antd/es/select";
22
+ import "antd/es/col/style";
23
+ import _Col from "antd/es/col";
24
+ import "antd/es/tree-select/style";
25
+ import _TreeSelect from "antd/es/tree-select";
26
26
  import "antd/es/input/style";
27
27
  import _Input from "antd/es/input";
28
28
  import "antd/es/tabs/style";
29
29
  import _Tabs from "antd/es/tabs";
30
- var _excluded = ["env", "token", "loginErrFn", "onClose", "siteId", "app", "multiple", "defaultSelectedGoodsIds", "onSelectOk", "isChangePrice", "onChangePriceOk", "mode", "templateId", "tabsConfig", "hiddenColumns", "hiddenSearchProps"];
30
+ var _excluded = ["env", "token", "loginErrFn", "onClose", "siteId", "app", "multiple", "defaultSelectedGoodsIds", "onSelectOk", "isChangePrice", "onChangePriceOk", "mode", "templateId", "tabsConfig"];
31
31
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
32
32
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
33
33
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -89,10 +89,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
89
89
  templateId = _props$templateId === void 0 ? undefined : _props$templateId,
90
90
  _props$tabsConfig = props.tabsConfig,
91
91
  tabsConfig = _props$tabsConfig === void 0 ? ['jd', 'jx', 'zy', 'xhdg', 'mc'] : _props$tabsConfig,
92
- _props$hiddenColumns = props.hiddenColumns,
93
- hiddenColumns = _props$hiddenColumns === void 0 ? [] : _props$hiddenColumns,
94
- _props$hiddenSearchPr = props.hiddenSearchProps,
95
- hiddenSearchProps = _props$hiddenSearchPr === void 0 ? [] : _props$hiddenSearchPr,
96
92
  otherProps = _objectWithoutProperties(props, _excluded);
97
93
  var showTabs = useRef(tabs.filter(function (tab) {
98
94
  return tabsConfig.includes(tab.key);
@@ -560,326 +556,280 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
560
556
  // dgss 城市列表 end
561
557
  // search-2 begin
562
558
  var renderSearch2 = function renderSearch2() {
563
- var cols = [{
564
- name: 'flagScene',
565
- show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('flagScene')) && searchParams.tab === 'zy',
566
- span: 16,
567
- node: /*#__PURE__*/React.createElement(_Col, {
568
- span: 16
569
- }, /*#__PURE__*/React.createElement("div", {
570
- className: "ww-search-flex"
571
- }, /*#__PURE__*/React.createElement(_Select, {
572
- style: {
573
- width: 170,
574
- marginRight: 8
575
- },
576
- value: searchParams.flagScene,
577
- onChange: function onChange(v) {
578
- handleChangeParams({
579
- flagScene: v
580
- });
581
- },
582
- options: flagSceneOptions,
583
- fieldNames: {
584
- label: 'flag',
585
- value: 'id'
586
- },
587
- placeholder: "\u9009\u62E9\u573A\u666F\u6807\u7B7E",
588
- allowClear: true
589
- }), /*#__PURE__*/React.createElement(_Select, {
590
- style: {
591
- width: 170,
592
- marginRight: 8
593
- },
594
- value: searchParams.flagTags,
595
- onChange: function onChange(v) {
596
- handleChangeParams({
597
- flagTags: v
598
- });
599
- },
600
- options: flagTagsOptions,
601
- fieldNames: {
602
- label: 'flag',
603
- value: 'id'
604
- },
605
- placeholder: "\u9009\u62E9\u5546\u54C1\u6807\u7B7E",
606
- allowClear: true
607
- }), /*#__PURE__*/React.createElement(_Select, {
608
- style: {
609
- width: 170,
610
- marginRight: 8
611
- },
612
- value: searchParams.flagIndustry,
613
- onChange: function onChange(v) {
614
- handleChangeParams({
615
- flagIndustry: v
616
- });
617
- },
618
- options: flagIndustryOptions,
619
- fieldNames: {
620
- label: 'flag',
621
- value: 'id'
622
- },
623
- placeholder: "\u9009\u62E9\u884C\u4E1A\u6807\u7B7E",
624
- allowClear: true
625
- }), /*#__PURE__*/React.createElement(_Cascader, {
626
- placeholder: "\u9009\u62E9\u5546\u54C1\u54C1\u7C7B",
627
- fieldNames: {
628
- label: 'name',
629
- value: 'id'
630
- },
631
- options: flagCategoryOptions,
632
- value: searchParams.flagCategory,
633
- style: {
634
- width: 250
635
- },
636
- onChange: function onChange(v) {
637
- handleChangeParams({
638
- flagCategory: v
639
- });
640
- },
641
- allowClear: true,
642
- expandTrigger: "hover",
643
- changeOnSelect: true
644
- })))
645
- }, {
646
- name: 'categoryTree',
647
- show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('categoryTree')),
648
- span: 8,
649
- node: /*#__PURE__*/React.createElement(_Col, {
650
- span: 8
651
- }, /*#__PURE__*/React.createElement("div", {
652
- className: "ww-search-flex"
653
- }, "\u5546\u54C1\u7C7B\u76EE\uFF1A", /*#__PURE__*/React.createElement(_TreeSelect, {
654
- style: {
655
- flex: 1
656
- },
657
- value: searchParams.categoryTree,
658
- dropdownStyle: {
659
- maxHeight: 400,
660
- overflow: 'auto'
661
- },
662
- placeholder: "\u9009\u62E9\u5546\u54C1\u7C7B\u76EE",
663
- allowClear: true,
664
- onChange: function onChange(e) {
665
- handleChangeParams({
666
- categoryTree: e
667
- });
668
- },
669
- treeData: categoryOptions,
670
- fieldNames: {
671
- label: 'categoryName',
672
- value: 'categoryTree',
673
- children: 'childNodes'
674
- }
675
- })))
676
- }, {
677
- name: 'priceType',
678
- show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('priceType')),
679
- span: 8,
680
- node: /*#__PURE__*/React.createElement(_Col, {
681
- span: 8
682
- }, /*#__PURE__*/React.createElement("div", {
683
- className: "ww-search-flex"
684
- }, /*#__PURE__*/React.createElement(_Select, {
685
- style: {
686
- width: 120,
687
- marginRight: 6
688
- },
689
- value: searchParams.priceType,
690
- onChange: function onChange(e) {
691
- handleChangeParams({
692
- priceType: e
693
- });
694
- },
695
- options: app === 1 ? priceRangeForPurchase : priceRangeForOnce
696
- }), /*#__PURE__*/React.createElement("div", {
697
- className: "ww-search-range-input"
698
- }, /*#__PURE__*/React.createElement(_InputNumber, {
699
- min: 0,
700
- max: 100000,
701
- precision: 2,
702
- value: searchParams.priceRangeMin,
703
- onChange: function onChange(v) {
704
- handleChangeParams({
705
- priceRangeMin: v
706
- });
707
- },
708
- placeholder: "\u6700\u4F4E\u4EF7",
709
- style: {
710
- flex: 1
711
- }
712
- }), /*#__PURE__*/React.createElement("div", {
713
- style: {
714
- margin: '0 8px'
715
- }
716
- }, "-"), /*#__PURE__*/React.createElement(_InputNumber, {
717
- min: 0,
718
- max: 100000,
719
- precision: 2,
720
- value: searchParams.priceRangeMax,
721
- onChange: function onChange(v) {
722
- handleChangeParams({
723
- priceRangeMax: v
724
- });
725
- },
726
- placeholder: "\u6700\u9AD8\u4EF7",
727
- style: {
728
- flex: 1
729
- }
730
- }))))
731
- }, {
732
- name: 'profitType',
733
- show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('profitType')),
734
- span: 8,
735
- node: /*#__PURE__*/React.createElement(_Col, {
736
- span: 8
737
- }, /*#__PURE__*/React.createElement("div", {
738
- className: "ww-search-flex"
739
- }, /*#__PURE__*/React.createElement(_Select, {
740
- style: {
741
- width: 120,
742
- marginRight: 6
743
- },
744
- value: searchParams.profitType,
745
- onChange: function onChange(e) {
746
- handleChangeParams({
747
- profitType: e
748
- });
749
- },
750
- options: app === 1 ? profitRangeForPurchase : profitRangeForOnce
751
- }), /*#__PURE__*/React.createElement("div", {
752
- className: "ww-search-range-input"
753
- }, /*#__PURE__*/React.createElement(_InputNumber, {
754
- min: 0,
755
- max: 100000,
756
- precision: 2,
757
- value: searchParams.profitRangeMin,
758
- onChange: function onChange(v) {
759
- handleChangeParams({
760
- profitRangeMin: v
761
- });
762
- },
763
- placeholder: "\u6700\u4F4E\u5229\u6DA6\u7387",
764
- style: {
765
- flex: 1
766
- }
767
- }), /*#__PURE__*/React.createElement("div", {
768
- style: {
769
- margin: '0 8px'
770
- }
771
- }, "-"), /*#__PURE__*/React.createElement(_InputNumber, {
772
- min: 0,
773
- max: 100000,
774
- precision: 2,
775
- value: searchParams.profitRangeMax,
776
- onChange: function onChange(v) {
777
- handleChangeParams({
778
- profitRangeMax: v
779
- });
780
- },
781
- placeholder: "\u6700\u9AD8\u5229\u6DA6\u7387",
782
- style: {
783
- flex: 1
784
- }
785
- }))))
786
- }, {
787
- name: 'saleableCity',
788
- show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('saleableCity')) && searchParams.tab === 'xhdg',
789
- span: 8,
790
- node: /*#__PURE__*/React.createElement(_Col, {
791
- span: 8
792
- }, /*#__PURE__*/React.createElement("div", {
793
- className: "ww-search-flex"
794
- }, "\u53EF\u552E\u5356\u57CE\u5E02\uFF1A", /*#__PURE__*/React.createElement(_Select, {
795
- showSearch: true,
796
- mode: "multiple",
797
- allowClear: true,
798
- placeholder: "\u5168\u90E8",
799
- onChange: function onChange(v) {
800
- handleChangeParams({
801
- saleableCity: v
802
- });
803
- },
804
- value: searchParams.saleableCity,
805
- filterOption: function filterOption(input, option) {
806
- return option.children.toLowerCase().includes(input.toLowerCase());
807
- },
808
- style: {
809
- flex: 1
810
- }
811
- }, dgssCitys.map(function (item) {
812
- return /*#__PURE__*/React.createElement(_Select.Option, {
813
- key: item.dgssCityId,
814
- value: item.dgssCityId
815
- }, item.name);
816
- }))))
817
- }, {
818
- name: 'addressCodes',
819
- show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('addressCodes')),
820
- span: 8,
821
- node: /*#__PURE__*/React.createElement(_Col, {
822
- span: 8
823
- }, /*#__PURE__*/React.createElement("div", {
824
- className: "ww-search-flex"
825
- }, "\u53D1\u8D27\u5730\uFF1A", /*#__PURE__*/React.createElement(AddressSelection, {
826
- value: searchParams.addressCodes,
827
- onChange: function onChange(v) {
828
- handleChangeParams({
829
- addressCodes: v
830
- });
831
- },
832
- placeholder: "\u8BF7\u9009\u62E9\u5730\u5740",
833
- level: 2,
834
- style: {
835
- flex: 1
836
- }
837
- })))
838
- }, {
839
- name: 'orderName',
840
- show: !(hiddenSearchProps === null || hiddenSearchProps === void 0 ? void 0 : hiddenSearchProps.includes('orderName')),
841
- span: 8,
842
- node: /*#__PURE__*/React.createElement(_Col, {
843
- span: 8
844
- }, /*#__PURE__*/React.createElement("div", {
845
- className: "ww-search-flex"
846
- }, "\u6392\u5E8F\uFF1A", /*#__PURE__*/React.createElement(_Radio.Group, {
847
- onChange: handleSortChange,
848
- value: searchParams.orderName,
849
- optionType: "button",
850
- buttonStyle: "solid"
851
- }, sortOptions.map(function (item) {
852
- // 自有商品字段不一样做兼容处理
853
- var value = searchParams.tab === 'zy' && item.label === '上架时间' ? item.valueForZy : item.value;
854
- return /*#__PURE__*/React.createElement(_Radio.Button, {
855
- key: value,
856
- value: value
857
- }, /*#__PURE__*/React.createElement("div", {
858
- className: "sort-item"
859
- }, /*#__PURE__*/React.createElement("div", {
860
- className: "sort-item-label"
861
- }, item.label), /*#__PURE__*/React.createElement(Icon, {
862
- type: "icon-paixu",
863
- className: "sort-item-icon"
864
- })));
865
- }))))
866
- }];
867
- var showCols = cols.filter(function (item) {
868
- return item.show;
869
- });
870
- var spanReset = showCols.reduce(function (sum, item) {
871
- return sum + item.span;
872
- }, 0) / 8 % 3;
873
- var offset = (2 - spanReset) * 8;
874
559
  return /*#__PURE__*/React.createElement("div", {
875
560
  className: "ww-search search-2"
876
561
  }, /*#__PURE__*/React.createElement(_Row, {
877
562
  gutter: [24, 24]
878
- }, showCols.map(function (item) {
879
- return item.node;
880
- }), /*#__PURE__*/React.createElement(_Col, {
881
- span: 8,
882
- offset: offset
563
+ }, /*#__PURE__*/React.createElement(_Col, {
564
+ span: 8
565
+ }, /*#__PURE__*/React.createElement("div", {
566
+ className: "ww-search-flex"
567
+ }, "\u5546\u54C1\u7C7B\u76EE\uFF1A", /*#__PURE__*/React.createElement(_TreeSelect, {
568
+ style: {
569
+ flex: 1
570
+ },
571
+ value: searchParams.categoryTree,
572
+ dropdownStyle: {
573
+ maxHeight: 400,
574
+ overflow: 'auto'
575
+ },
576
+ placeholder: "\u9009\u62E9\u5546\u54C1\u7C7B\u76EE",
577
+ allowClear: true,
578
+ onChange: function onChange(e) {
579
+ handleChangeParams({
580
+ categoryTree: e
581
+ });
582
+ },
583
+ treeData: categoryOptions,
584
+ fieldNames: {
585
+ label: 'categoryName',
586
+ value: 'categoryTree',
587
+ children: 'childNodes'
588
+ }
589
+ }))), /*#__PURE__*/React.createElement(_Col, {
590
+ span: 8
591
+ }, /*#__PURE__*/React.createElement("div", {
592
+ className: "ww-search-flex"
593
+ }, /*#__PURE__*/React.createElement(_Select, {
594
+ style: {
595
+ width: 120,
596
+ marginRight: 6
597
+ },
598
+ value: searchParams.priceType,
599
+ onChange: function onChange(e) {
600
+ handleChangeParams({
601
+ priceType: e
602
+ });
603
+ },
604
+ options: app === 1 ? priceRangeForPurchase : priceRangeForOnce
605
+ }), /*#__PURE__*/React.createElement("div", {
606
+ className: "ww-search-range-input"
607
+ }, /*#__PURE__*/React.createElement(_InputNumber, {
608
+ min: 0,
609
+ max: 100000,
610
+ precision: 2,
611
+ value: searchParams.priceRangeMin,
612
+ onChange: function onChange(v) {
613
+ handleChangeParams({
614
+ priceRangeMin: v
615
+ });
616
+ },
617
+ placeholder: "\u6700\u4F4E\u4EF7",
618
+ style: {
619
+ flex: 1
620
+ }
621
+ }), /*#__PURE__*/React.createElement("div", {
622
+ style: {
623
+ margin: '0 8px'
624
+ }
625
+ }, "-"), /*#__PURE__*/React.createElement(_InputNumber, {
626
+ min: 0,
627
+ max: 100000,
628
+ precision: 2,
629
+ value: searchParams.priceRangeMax,
630
+ onChange: function onChange(v) {
631
+ handleChangeParams({
632
+ priceRangeMax: v
633
+ });
634
+ },
635
+ placeholder: "\u6700\u9AD8\u4EF7",
636
+ style: {
637
+ flex: 1
638
+ }
639
+ })))), /*#__PURE__*/React.createElement(_Col, {
640
+ span: 8
641
+ }, /*#__PURE__*/React.createElement("div", {
642
+ className: "ww-search-flex"
643
+ }, /*#__PURE__*/React.createElement(_Select, {
644
+ style: {
645
+ width: 120,
646
+ marginRight: 6
647
+ },
648
+ value: searchParams.profitType,
649
+ onChange: function onChange(e) {
650
+ handleChangeParams({
651
+ profitType: e
652
+ });
653
+ },
654
+ options: app === 1 ? profitRangeForPurchase : profitRangeForOnce
655
+ }), /*#__PURE__*/React.createElement("div", {
656
+ className: "ww-search-range-input"
657
+ }, /*#__PURE__*/React.createElement(_InputNumber, {
658
+ min: 0,
659
+ max: 100000,
660
+ precision: 2,
661
+ value: searchParams.profitRangeMin,
662
+ onChange: function onChange(v) {
663
+ handleChangeParams({
664
+ profitRangeMin: v
665
+ });
666
+ },
667
+ placeholder: "\u6700\u4F4E\u5229\u6DA6\u7387",
668
+ style: {
669
+ flex: 1
670
+ }
671
+ }), /*#__PURE__*/React.createElement("div", {
672
+ style: {
673
+ margin: '0 8px'
674
+ }
675
+ }, "-"), /*#__PURE__*/React.createElement(_InputNumber, {
676
+ min: 0,
677
+ max: 100000,
678
+ precision: 2,
679
+ value: searchParams.profitRangeMax,
680
+ onChange: function onChange(v) {
681
+ handleChangeParams({
682
+ profitRangeMax: v
683
+ });
684
+ },
685
+ placeholder: "\u6700\u9AD8\u5229\u6DA6\u7387",
686
+ style: {
687
+ flex: 1
688
+ }
689
+ })))), searchParams.tab === 'zy' && /*#__PURE__*/React.createElement(_Col, {
690
+ span: 16
691
+ }, /*#__PURE__*/React.createElement("div", {
692
+ className: "ww-search-flex"
693
+ }, /*#__PURE__*/React.createElement(_Select, {
694
+ style: {
695
+ width: 170,
696
+ marginRight: 8
697
+ },
698
+ value: searchParams.flagScene,
699
+ onChange: function onChange(v) {
700
+ handleChangeParams({
701
+ flagScene: v
702
+ });
703
+ },
704
+ options: flagSceneOptions,
705
+ fieldNames: {
706
+ label: 'flag',
707
+ value: 'id'
708
+ },
709
+ placeholder: "\u9009\u62E9\u573A\u666F\u6807\u7B7E",
710
+ allowClear: true
711
+ }), /*#__PURE__*/React.createElement(_Select, {
712
+ style: {
713
+ width: 170,
714
+ marginRight: 8
715
+ },
716
+ value: searchParams.flagTags,
717
+ onChange: function onChange(v) {
718
+ handleChangeParams({
719
+ flagTags: v
720
+ });
721
+ },
722
+ options: flagTagsOptions,
723
+ fieldNames: {
724
+ label: 'flag',
725
+ value: 'id'
726
+ },
727
+ placeholder: "\u9009\u62E9\u5546\u54C1\u6807\u7B7E",
728
+ allowClear: true
729
+ }), /*#__PURE__*/React.createElement(_Select, {
730
+ style: {
731
+ width: 170,
732
+ marginRight: 8
733
+ },
734
+ value: searchParams.flagIndustry,
735
+ onChange: function onChange(v) {
736
+ handleChangeParams({
737
+ flagIndustry: v
738
+ });
739
+ },
740
+ options: flagIndustryOptions,
741
+ fieldNames: {
742
+ label: 'flag',
743
+ value: 'id'
744
+ },
745
+ placeholder: "\u9009\u62E9\u884C\u4E1A\u6807\u7B7E",
746
+ allowClear: true
747
+ }), /*#__PURE__*/React.createElement(_Cascader, {
748
+ placeholder: "\u9009\u62E9\u5546\u54C1\u54C1\u7C7B",
749
+ fieldNames: {
750
+ label: 'name',
751
+ value: 'id'
752
+ },
753
+ options: flagCategoryOptions,
754
+ value: searchParams.flagCategory,
755
+ style: {
756
+ width: 250
757
+ },
758
+ onChange: function onChange(v) {
759
+ handleChangeParams({
760
+ flagCategory: v
761
+ });
762
+ },
763
+ allowClear: true,
764
+ expandTrigger: "hover",
765
+ changeOnSelect: true
766
+ }))), searchParams.tab === 'xhdg' && /*#__PURE__*/React.createElement(_Col, {
767
+ span: 8
768
+ }, /*#__PURE__*/React.createElement("div", {
769
+ className: "ww-search-flex"
770
+ }, "\u53EF\u552E\u5356\u57CE\u5E02\uFF1A", /*#__PURE__*/React.createElement(_Select, {
771
+ showSearch: true,
772
+ mode: "multiple",
773
+ allowClear: true,
774
+ placeholder: "\u5168\u90E8",
775
+ onChange: function onChange(v) {
776
+ handleChangeParams({
777
+ saleableCity: v
778
+ });
779
+ },
780
+ value: searchParams.saleableCity,
781
+ filterOption: function filterOption(input, option) {
782
+ return option.children.toLowerCase().includes(input.toLowerCase());
783
+ },
784
+ style: {
785
+ flex: 1
786
+ }
787
+ }, dgssCitys.map(function (item) {
788
+ return /*#__PURE__*/React.createElement(_Select.Option, {
789
+ key: item.dgssCityId,
790
+ value: item.dgssCityId
791
+ }, item.name);
792
+ })))), /*#__PURE__*/React.createElement(_Col, {
793
+ span: 8
794
+ }, /*#__PURE__*/React.createElement("div", {
795
+ className: "ww-search-flex"
796
+ }, "\u53D1\u8D27\u5730\uFF1A", /*#__PURE__*/React.createElement(AddressSelection, {
797
+ value: searchParams.addressCodes,
798
+ onChange: function onChange(v) {
799
+ handleChangeParams({
800
+ addressCodes: v
801
+ });
802
+ },
803
+ placeholder: "\u8BF7\u9009\u62E9\u5730\u5740",
804
+ level: 2,
805
+ style: {
806
+ flex: 1
807
+ }
808
+ }))), /*#__PURE__*/React.createElement(_Col, {
809
+ span: 8
810
+ }, /*#__PURE__*/React.createElement("div", {
811
+ className: "ww-search-flex"
812
+ }, "\u6392\u5E8F\uFF1A", /*#__PURE__*/React.createElement(_Radio.Group, {
813
+ onChange: handleSortChange,
814
+ value: searchParams.orderName,
815
+ optionType: "button",
816
+ buttonStyle: "solid"
817
+ }, sortOptions.map(function (item) {
818
+ // 自有商品字段不一样做兼容处理
819
+ var value = searchParams.tab === 'zy' && item.label === '上架时间' ? item.valueForZy : item.value;
820
+ return /*#__PURE__*/React.createElement(_Radio.Button, {
821
+ key: value,
822
+ value: value
823
+ }, /*#__PURE__*/React.createElement("div", {
824
+ className: "sort-item"
825
+ }, /*#__PURE__*/React.createElement("div", {
826
+ className: "sort-item-label"
827
+ }, item.label), /*#__PURE__*/React.createElement(Icon, {
828
+ type: "icon-paixu",
829
+ className: "sort-item-icon"
830
+ })));
831
+ })))), /*#__PURE__*/React.createElement(_Col, {
832
+ span: 8
883
833
  }, /*#__PURE__*/React.createElement("div", {
884
834
  className: "ww-search-flex"
885
835
  }, /*#__PURE__*/React.createElement(_Button, {
@@ -1072,8 +1022,8 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
1072
1022
  className: "ml-3"
1073
1023
  })));
1074
1024
  },
1075
- dataIndex: 'purchaseProfit',
1076
- key: 'purchaseProfit',
1025
+ dataIndex: 'memberProfitMin',
1026
+ key: 'memberProfitMin',
1077
1027
  align: 'center',
1078
1028
  width: 150,
1079
1029
  render: function render(text, record) {
@@ -1101,8 +1051,8 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
1101
1051
  className: "ml-3"
1102
1052
  })));
1103
1053
  },
1104
- dataIndex: 'onceProfit',
1105
- key: 'onceProfit',
1054
+ dataIndex: 'memberProfitMin',
1055
+ key: 'memberProfitMin',
1106
1056
  align: 'center',
1107
1057
  width: 150,
1108
1058
  render: function render(text, record) {
@@ -1191,7 +1141,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
1191
1141
  var columns = function columns() {
1192
1142
  var list = app === 1 ? columns1 : columns2;
1193
1143
  var list2 = searchParams.tab === 'xhdg' && mode === 1 ? dgssColumns : [];
1194
- var _columns = [{
1144
+ return [{
1195
1145
  title: '商品',
1196
1146
  dataIndex: 'goodsId',
1197
1147
  key: 'goodsId',
@@ -1270,11 +1220,6 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
1270
1220
  }, "\u6311\u9009");
1271
1221
  }
1272
1222
  }]);
1273
- return _columns.map(function (item) {
1274
- return _objectSpread(_objectSpread({}, item), {}, {
1275
- hidden: hiddenColumns === null || hiddenColumns === void 0 ? void 0 : hiddenColumns.includes(item.dataIndex)
1276
- });
1277
- });
1278
1223
  };
1279
1224
  // 改价逻辑 begin ----------
1280
1225
  var _useState33 = useState(false),