@bit-sun/business-component 1.1.34 → 1.1.37
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/.gitlab-ci.yml +1 -1
- package/dist/index.esm.js +130 -14
- package/dist/index.js +130 -14
- package/package.json +50 -50
- package/src/components/Business/SearchSelect/BusinessUtils.ts +101 -12
- package/src/components/Functional/DataValidation/index.tsx +668 -667
package/.gitlab-ci.yml
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -1650,8 +1650,9 @@ styleInject(css_248z);
|
|
|
1650
1650
|
|
|
1651
1651
|
var _excluded$2 = ["flag", "checkResults"],
|
|
1652
1652
|
_excluded2 = ["flag", "checkResults"];
|
|
1653
|
-
|
|
1654
|
-
var itemsTemp = [];
|
|
1653
|
+
|
|
1654
|
+
var itemsTemp = [];
|
|
1655
|
+
var luckysheet; // const mapping = [
|
|
1655
1656
|
// { "key": "skuCode", "name": "SKU编码", "rule": "skuCode" },
|
|
1656
1657
|
// { "key": "quantity", "name": "数量", "rule": "quantity" },
|
|
1657
1658
|
// { "key": "price", "name": "单价", "rule": "price" }
|
|
@@ -2166,6 +2167,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2166
2167
|
}
|
|
2167
2168
|
};
|
|
2168
2169
|
});
|
|
2170
|
+
luckysheet = window.luckysheet;
|
|
2169
2171
|
_this.state = {
|
|
2170
2172
|
showErrorData: false,
|
|
2171
2173
|
data: [],
|
|
@@ -2681,25 +2683,31 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
2681
2683
|
},
|
|
2682
2684
|
sourceName: 'skuCode'
|
|
2683
2685
|
}, requestConfigProp);
|
|
2684
|
-
tableSearchForm = [{
|
|
2686
|
+
tableSearchForm = requestConfig.url.includes('v2') ? [requestConfig.url.includes('v2') ? {
|
|
2685
2687
|
name: 'qp-skuName-like',
|
|
2686
2688
|
label: 'SKU名称'
|
|
2689
|
+
} : {
|
|
2690
|
+
name: 'qp-name-like',
|
|
2691
|
+
label: 'SKU名称'
|
|
2687
2692
|
}, {
|
|
2688
2693
|
name: 'qp-skuCode-like',
|
|
2689
2694
|
label: 'SKU编码'
|
|
2690
|
-
}, {
|
|
2695
|
+
}, requestConfig.url.includes('v2') ? {
|
|
2691
2696
|
name: 'qp-code-like',
|
|
2692
2697
|
label: '国际条码'
|
|
2698
|
+
} : {
|
|
2699
|
+
name: 'qp-barCode-like',
|
|
2700
|
+
label: '国际条码'
|
|
2693
2701
|
}, {
|
|
2694
2702
|
name: 'qp-itemName-like',
|
|
2695
2703
|
label: '所属SPU名称'
|
|
2696
2704
|
}, {
|
|
2697
2705
|
name: 'qp-itemCode-like',
|
|
2698
2706
|
label: '所属SPU编码'
|
|
2699
|
-
}, {
|
|
2707
|
+
}, requestConfig.url.includes('v2') ? {
|
|
2700
2708
|
name: 'qp-externalCode-like',
|
|
2701
2709
|
label: '外部编码'
|
|
2702
|
-
}, {
|
|
2710
|
+
} : null, requestConfig.url.includes('v2') ? {
|
|
2703
2711
|
name: 'qp-propertyValueCode-in',
|
|
2704
2712
|
type: 'businessSearchSelect',
|
|
2705
2713
|
label: '规格',
|
|
@@ -2713,6 +2721,85 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
2713
2721
|
}
|
|
2714
2722
|
}
|
|
2715
2723
|
}
|
|
2724
|
+
} : null, {
|
|
2725
|
+
name: 'qp-brandId-in',
|
|
2726
|
+
type: 'select',
|
|
2727
|
+
label: '品牌',
|
|
2728
|
+
field: {
|
|
2729
|
+
type: 'select',
|
|
2730
|
+
props: {
|
|
2731
|
+
mode: 'multiple',
|
|
2732
|
+
notFoundContent: '暂无数据',
|
|
2733
|
+
allowClear: true,
|
|
2734
|
+
showSearch: true,
|
|
2735
|
+
showArrow: true,
|
|
2736
|
+
maxTagCount: 1,
|
|
2737
|
+
optionFilterProp: 'children',
|
|
2738
|
+
filterOption: function filterOption(input, option) {
|
|
2739
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2743
|
+
}, {
|
|
2744
|
+
name: 'qp-categoryId-in',
|
|
2745
|
+
type: 'treeSelect',
|
|
2746
|
+
label: '类目',
|
|
2747
|
+
field: {
|
|
2748
|
+
type: 'treeSelect',
|
|
2749
|
+
props: {
|
|
2750
|
+
treeData: [],
|
|
2751
|
+
treeCheckable: true,
|
|
2752
|
+
showSearch: true,
|
|
2753
|
+
allowClear: true,
|
|
2754
|
+
showArrow: true,
|
|
2755
|
+
treeNodeFilterProp: 'title',
|
|
2756
|
+
treeDefaultExpandAll: true,
|
|
2757
|
+
maxTagCount: 1,
|
|
2758
|
+
placeholder: '请选择',
|
|
2759
|
+
style: {
|
|
2760
|
+
width: '100%'
|
|
2761
|
+
},
|
|
2762
|
+
dropdownStyle: {
|
|
2763
|
+
maxHeight: 400,
|
|
2764
|
+
maxWidth: 100,
|
|
2765
|
+
overflow: 'auto'
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
}, {
|
|
2770
|
+
name: 'qp-classId-in',
|
|
2771
|
+
type: 'select',
|
|
2772
|
+
label: '品类',
|
|
2773
|
+
field: {
|
|
2774
|
+
type: 'select',
|
|
2775
|
+
props: {
|
|
2776
|
+
mode: 'multiple',
|
|
2777
|
+
notFoundContent: '暂无数据',
|
|
2778
|
+
allowClear: true,
|
|
2779
|
+
showSearch: true,
|
|
2780
|
+
showArrow: true,
|
|
2781
|
+
maxTagCount: 1,
|
|
2782
|
+
optionFilterProp: 'children',
|
|
2783
|
+
filterOption: function filterOption(input, option) {
|
|
2784
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
}] : [{
|
|
2789
|
+
name: 'qp-name-like',
|
|
2790
|
+
label: 'SKU名称'
|
|
2791
|
+
}, {
|
|
2792
|
+
name: 'qp-skuCode-like',
|
|
2793
|
+
label: 'SKU编码'
|
|
2794
|
+
}, {
|
|
2795
|
+
name: 'qp-barCode-like',
|
|
2796
|
+
label: '国际条码'
|
|
2797
|
+
}, {
|
|
2798
|
+
name: 'qp-itemName-like',
|
|
2799
|
+
label: '所属SPU名称'
|
|
2800
|
+
}, {
|
|
2801
|
+
name: 'qp-itemCode-like',
|
|
2802
|
+
label: '所属SPU编码'
|
|
2716
2803
|
}, {
|
|
2717
2804
|
name: 'qp-brandId-in',
|
|
2718
2805
|
type: 'select',
|
|
@@ -2788,14 +2875,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
2788
2875
|
pageSize: 5000,
|
|
2789
2876
|
currentPage: 1
|
|
2790
2877
|
})]).then(function (x) {
|
|
2791
|
-
formatSource(x, 0, 7, tableSearchForm, ['id', 'name']);
|
|
2792
|
-
formatTreeDataSource(x, 1, 8, tableSearchForm);
|
|
2793
|
-
formatSource(x, 2, 9, tableSearchForm, ['id', 'name']);
|
|
2878
|
+
requestConfig.url.includes('v2') ? formatSource(x, 0, 7, tableSearchForm, ['id', 'name']) : formatSource(x, 0, 5, tableSearchForm, ['id', 'name']);
|
|
2879
|
+
requestConfig.url.includes('v2') ? formatTreeDataSource(x, 1, 8, tableSearchForm) : formatTreeDataSource(x, 1, 6, tableSearchForm);
|
|
2880
|
+
requestConfig.url.includes('v2') ? formatSource(x, 2, 9, tableSearchForm, ['id', 'name']) : formatSource(x, 2, 7, tableSearchForm, ['id', 'name']);
|
|
2794
2881
|
});
|
|
2795
2882
|
modalTableProps = _objectSpread2({
|
|
2796
2883
|
modalTableTitle: '选择SKU',
|
|
2797
2884
|
tableSearchForm: tableSearchForm,
|
|
2798
|
-
tableColumns: [{
|
|
2885
|
+
tableColumns: requestConfig.url.includes('v2') ? [{
|
|
2799
2886
|
title: 'SKU编码',
|
|
2800
2887
|
dataIndex: 'skuCode'
|
|
2801
2888
|
}, {
|
|
@@ -2810,12 +2897,39 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
2810
2897
|
}, {
|
|
2811
2898
|
title: '所属SPU编码',
|
|
2812
2899
|
dataIndex: 'itemCode'
|
|
2813
|
-
}, {
|
|
2900
|
+
}, requestConfig.url.includes('v2') ? {
|
|
2814
2901
|
title: '外部编码',
|
|
2815
2902
|
dataIndex: 'externalCode'
|
|
2903
|
+
} : false, {
|
|
2904
|
+
title: '规格',
|
|
2905
|
+
dataIndex: requestConfig.url.includes('v2') ? 'propertyNameAndValue' : 'skuSpec'
|
|
2906
|
+
}, {
|
|
2907
|
+
title: '类目',
|
|
2908
|
+
dataIndex: 'categoryName'
|
|
2909
|
+
}, {
|
|
2910
|
+
title: '品类',
|
|
2911
|
+
dataIndex: 'className'
|
|
2912
|
+
}, {
|
|
2913
|
+
title: '品牌',
|
|
2914
|
+
dataIndex: 'brandName'
|
|
2915
|
+
}] : [{
|
|
2916
|
+
title: 'SKU编码',
|
|
2917
|
+
dataIndex: 'skuCode'
|
|
2918
|
+
}, {
|
|
2919
|
+
title: 'SKU名称',
|
|
2920
|
+
dataIndex: 'name'
|
|
2921
|
+
}, {
|
|
2922
|
+
title: '国际条码',
|
|
2923
|
+
dataIndex: 'barCode'
|
|
2924
|
+
}, {
|
|
2925
|
+
title: '所属SPU名称',
|
|
2926
|
+
dataIndex: 'itemName'
|
|
2927
|
+
}, {
|
|
2928
|
+
title: '所属SPU编码',
|
|
2929
|
+
dataIndex: 'itemCode'
|
|
2816
2930
|
}, {
|
|
2817
2931
|
title: '规格',
|
|
2818
|
-
dataIndex: '
|
|
2932
|
+
dataIndex: 'skuSpec'
|
|
2819
2933
|
}, {
|
|
2820
2934
|
title: '类目',
|
|
2821
2935
|
dataIndex: 'categoryName'
|
|
@@ -4630,8 +4744,9 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
|
|
|
4630
4744
|
|
|
4631
4745
|
var _excluded$3 = ["flag", "checkResults"],
|
|
4632
4746
|
_excluded2$1 = ["flag", "checkResults"];
|
|
4633
|
-
|
|
4634
|
-
var itemsTemp$1 = [];
|
|
4747
|
+
|
|
4748
|
+
var itemsTemp$1 = [];
|
|
4749
|
+
var luckysheet$1; // const mapping = [
|
|
4635
4750
|
// { "key": "skuCode", "name": "SKU编码", "rule": "skuCode" },
|
|
4636
4751
|
// { "key": "quantity", "name": "数量", "rule": "quantity" },
|
|
4637
4752
|
// { "key": "price", "name": "单价", "rule": "price" }
|
|
@@ -5146,6 +5261,7 @@ var DataValidation$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
5146
5261
|
}
|
|
5147
5262
|
};
|
|
5148
5263
|
});
|
|
5264
|
+
luckysheet$1 = window.luckysheet;
|
|
5149
5265
|
_this.state = {
|
|
5150
5266
|
showErrorData: false,
|
|
5151
5267
|
data: [],
|
package/dist/index.js
CHANGED
|
@@ -1661,8 +1661,9 @@ styleInject(css_248z);
|
|
|
1661
1661
|
|
|
1662
1662
|
var _excluded$2 = ["flag", "checkResults"],
|
|
1663
1663
|
_excluded2 = ["flag", "checkResults"];
|
|
1664
|
-
|
|
1665
|
-
var itemsTemp = [];
|
|
1664
|
+
|
|
1665
|
+
var itemsTemp = [];
|
|
1666
|
+
var luckysheet; // const mapping = [
|
|
1666
1667
|
// { "key": "skuCode", "name": "SKU编码", "rule": "skuCode" },
|
|
1667
1668
|
// { "key": "quantity", "name": "数量", "rule": "quantity" },
|
|
1668
1669
|
// { "key": "price", "name": "单价", "rule": "price" }
|
|
@@ -2177,6 +2178,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2177
2178
|
}
|
|
2178
2179
|
};
|
|
2179
2180
|
});
|
|
2181
|
+
luckysheet = window.luckysheet;
|
|
2180
2182
|
_this.state = {
|
|
2181
2183
|
showErrorData: false,
|
|
2182
2184
|
data: [],
|
|
@@ -2692,25 +2694,31 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
2692
2694
|
},
|
|
2693
2695
|
sourceName: 'skuCode'
|
|
2694
2696
|
}, requestConfigProp);
|
|
2695
|
-
tableSearchForm = [{
|
|
2697
|
+
tableSearchForm = requestConfig.url.includes('v2') ? [requestConfig.url.includes('v2') ? {
|
|
2696
2698
|
name: 'qp-skuName-like',
|
|
2697
2699
|
label: 'SKU名称'
|
|
2700
|
+
} : {
|
|
2701
|
+
name: 'qp-name-like',
|
|
2702
|
+
label: 'SKU名称'
|
|
2698
2703
|
}, {
|
|
2699
2704
|
name: 'qp-skuCode-like',
|
|
2700
2705
|
label: 'SKU编码'
|
|
2701
|
-
}, {
|
|
2706
|
+
}, requestConfig.url.includes('v2') ? {
|
|
2702
2707
|
name: 'qp-code-like',
|
|
2703
2708
|
label: '国际条码'
|
|
2709
|
+
} : {
|
|
2710
|
+
name: 'qp-barCode-like',
|
|
2711
|
+
label: '国际条码'
|
|
2704
2712
|
}, {
|
|
2705
2713
|
name: 'qp-itemName-like',
|
|
2706
2714
|
label: '所属SPU名称'
|
|
2707
2715
|
}, {
|
|
2708
2716
|
name: 'qp-itemCode-like',
|
|
2709
2717
|
label: '所属SPU编码'
|
|
2710
|
-
}, {
|
|
2718
|
+
}, requestConfig.url.includes('v2') ? {
|
|
2711
2719
|
name: 'qp-externalCode-like',
|
|
2712
2720
|
label: '外部编码'
|
|
2713
|
-
}, {
|
|
2721
|
+
} : null, requestConfig.url.includes('v2') ? {
|
|
2714
2722
|
name: 'qp-propertyValueCode-in',
|
|
2715
2723
|
type: 'businessSearchSelect',
|
|
2716
2724
|
label: '规格',
|
|
@@ -2724,6 +2732,85 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
2724
2732
|
}
|
|
2725
2733
|
}
|
|
2726
2734
|
}
|
|
2735
|
+
} : null, {
|
|
2736
|
+
name: 'qp-brandId-in',
|
|
2737
|
+
type: 'select',
|
|
2738
|
+
label: '品牌',
|
|
2739
|
+
field: {
|
|
2740
|
+
type: 'select',
|
|
2741
|
+
props: {
|
|
2742
|
+
mode: 'multiple',
|
|
2743
|
+
notFoundContent: '暂无数据',
|
|
2744
|
+
allowClear: true,
|
|
2745
|
+
showSearch: true,
|
|
2746
|
+
showArrow: true,
|
|
2747
|
+
maxTagCount: 1,
|
|
2748
|
+
optionFilterProp: 'children',
|
|
2749
|
+
filterOption: function filterOption(input, option) {
|
|
2750
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
}, {
|
|
2755
|
+
name: 'qp-categoryId-in',
|
|
2756
|
+
type: 'treeSelect',
|
|
2757
|
+
label: '类目',
|
|
2758
|
+
field: {
|
|
2759
|
+
type: 'treeSelect',
|
|
2760
|
+
props: {
|
|
2761
|
+
treeData: [],
|
|
2762
|
+
treeCheckable: true,
|
|
2763
|
+
showSearch: true,
|
|
2764
|
+
allowClear: true,
|
|
2765
|
+
showArrow: true,
|
|
2766
|
+
treeNodeFilterProp: 'title',
|
|
2767
|
+
treeDefaultExpandAll: true,
|
|
2768
|
+
maxTagCount: 1,
|
|
2769
|
+
placeholder: '请选择',
|
|
2770
|
+
style: {
|
|
2771
|
+
width: '100%'
|
|
2772
|
+
},
|
|
2773
|
+
dropdownStyle: {
|
|
2774
|
+
maxHeight: 400,
|
|
2775
|
+
maxWidth: 100,
|
|
2776
|
+
overflow: 'auto'
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
}, {
|
|
2781
|
+
name: 'qp-classId-in',
|
|
2782
|
+
type: 'select',
|
|
2783
|
+
label: '品类',
|
|
2784
|
+
field: {
|
|
2785
|
+
type: 'select',
|
|
2786
|
+
props: {
|
|
2787
|
+
mode: 'multiple',
|
|
2788
|
+
notFoundContent: '暂无数据',
|
|
2789
|
+
allowClear: true,
|
|
2790
|
+
showSearch: true,
|
|
2791
|
+
showArrow: true,
|
|
2792
|
+
maxTagCount: 1,
|
|
2793
|
+
optionFilterProp: 'children',
|
|
2794
|
+
filterOption: function filterOption(input, option) {
|
|
2795
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
}] : [{
|
|
2800
|
+
name: 'qp-name-like',
|
|
2801
|
+
label: 'SKU名称'
|
|
2802
|
+
}, {
|
|
2803
|
+
name: 'qp-skuCode-like',
|
|
2804
|
+
label: 'SKU编码'
|
|
2805
|
+
}, {
|
|
2806
|
+
name: 'qp-barCode-like',
|
|
2807
|
+
label: '国际条码'
|
|
2808
|
+
}, {
|
|
2809
|
+
name: 'qp-itemName-like',
|
|
2810
|
+
label: '所属SPU名称'
|
|
2811
|
+
}, {
|
|
2812
|
+
name: 'qp-itemCode-like',
|
|
2813
|
+
label: '所属SPU编码'
|
|
2727
2814
|
}, {
|
|
2728
2815
|
name: 'qp-brandId-in',
|
|
2729
2816
|
type: 'select',
|
|
@@ -2799,14 +2886,14 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
2799
2886
|
pageSize: 5000,
|
|
2800
2887
|
currentPage: 1
|
|
2801
2888
|
})]).then(function (x) {
|
|
2802
|
-
formatSource(x, 0, 7, tableSearchForm, ['id', 'name']);
|
|
2803
|
-
formatTreeDataSource(x, 1, 8, tableSearchForm);
|
|
2804
|
-
formatSource(x, 2, 9, tableSearchForm, ['id', 'name']);
|
|
2889
|
+
requestConfig.url.includes('v2') ? formatSource(x, 0, 7, tableSearchForm, ['id', 'name']) : formatSource(x, 0, 5, tableSearchForm, ['id', 'name']);
|
|
2890
|
+
requestConfig.url.includes('v2') ? formatTreeDataSource(x, 1, 8, tableSearchForm) : formatTreeDataSource(x, 1, 6, tableSearchForm);
|
|
2891
|
+
requestConfig.url.includes('v2') ? formatSource(x, 2, 9, tableSearchForm, ['id', 'name']) : formatSource(x, 2, 7, tableSearchForm, ['id', 'name']);
|
|
2805
2892
|
});
|
|
2806
2893
|
modalTableProps = _objectSpread2({
|
|
2807
2894
|
modalTableTitle: '选择SKU',
|
|
2808
2895
|
tableSearchForm: tableSearchForm,
|
|
2809
|
-
tableColumns: [{
|
|
2896
|
+
tableColumns: requestConfig.url.includes('v2') ? [{
|
|
2810
2897
|
title: 'SKU编码',
|
|
2811
2898
|
dataIndex: 'skuCode'
|
|
2812
2899
|
}, {
|
|
@@ -2821,12 +2908,39 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
2821
2908
|
}, {
|
|
2822
2909
|
title: '所属SPU编码',
|
|
2823
2910
|
dataIndex: 'itemCode'
|
|
2824
|
-
}, {
|
|
2911
|
+
}, requestConfig.url.includes('v2') ? {
|
|
2825
2912
|
title: '外部编码',
|
|
2826
2913
|
dataIndex: 'externalCode'
|
|
2914
|
+
} : false, {
|
|
2915
|
+
title: '规格',
|
|
2916
|
+
dataIndex: requestConfig.url.includes('v2') ? 'propertyNameAndValue' : 'skuSpec'
|
|
2917
|
+
}, {
|
|
2918
|
+
title: '类目',
|
|
2919
|
+
dataIndex: 'categoryName'
|
|
2920
|
+
}, {
|
|
2921
|
+
title: '品类',
|
|
2922
|
+
dataIndex: 'className'
|
|
2923
|
+
}, {
|
|
2924
|
+
title: '品牌',
|
|
2925
|
+
dataIndex: 'brandName'
|
|
2926
|
+
}] : [{
|
|
2927
|
+
title: 'SKU编码',
|
|
2928
|
+
dataIndex: 'skuCode'
|
|
2929
|
+
}, {
|
|
2930
|
+
title: 'SKU名称',
|
|
2931
|
+
dataIndex: 'name'
|
|
2932
|
+
}, {
|
|
2933
|
+
title: '国际条码',
|
|
2934
|
+
dataIndex: 'barCode'
|
|
2935
|
+
}, {
|
|
2936
|
+
title: '所属SPU名称',
|
|
2937
|
+
dataIndex: 'itemName'
|
|
2938
|
+
}, {
|
|
2939
|
+
title: '所属SPU编码',
|
|
2940
|
+
dataIndex: 'itemCode'
|
|
2827
2941
|
}, {
|
|
2828
2942
|
title: '规格',
|
|
2829
|
-
dataIndex: '
|
|
2943
|
+
dataIndex: 'skuSpec'
|
|
2830
2944
|
}, {
|
|
2831
2945
|
title: '类目',
|
|
2832
2946
|
dataIndex: 'categoryName'
|
|
@@ -4641,8 +4755,9 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
|
|
|
4641
4755
|
|
|
4642
4756
|
var _excluded$3 = ["flag", "checkResults"],
|
|
4643
4757
|
_excluded2$1 = ["flag", "checkResults"];
|
|
4644
|
-
|
|
4645
|
-
var itemsTemp$1 = [];
|
|
4758
|
+
|
|
4759
|
+
var itemsTemp$1 = [];
|
|
4760
|
+
var luckysheet$1; // const mapping = [
|
|
4646
4761
|
// { "key": "skuCode", "name": "SKU编码", "rule": "skuCode" },
|
|
4647
4762
|
// { "key": "quantity", "name": "数量", "rule": "quantity" },
|
|
4648
4763
|
// { "key": "price", "name": "单价", "rule": "price" }
|
|
@@ -5157,6 +5272,7 @@ var DataValidation$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
5157
5272
|
}
|
|
5158
5273
|
};
|
|
5159
5274
|
});
|
|
5275
|
+
luckysheet$1 = window.luckysheet;
|
|
5160
5276
|
_this.state = {
|
|
5161
5277
|
showErrorData: false,
|
|
5162
5278
|
data: [],
|
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bit-sun/business-component",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"scripts": {
|
|
5
|
-
"start": "dumi dev",
|
|
6
|
-
"docs:build": "dumi build",
|
|
7
|
-
"docs:deploy": "gh-pages -d docs-dist",
|
|
8
|
-
"build": "father-build",
|
|
9
|
-
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
10
|
-
"release": "npm run build && npm publish",
|
|
11
|
-
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
12
|
-
"test": "umi-test",
|
|
13
|
-
"test:coverage": "umi-test --coverage"
|
|
14
|
-
},
|
|
15
|
-
"main": "dist/index.js",
|
|
16
|
-
"module": "dist/index.esm.js",
|
|
17
|
-
"typings": "dist/index.d.ts",
|
|
18
|
-
"gitHooks": {
|
|
19
|
-
"pre-commit": "lint-staged"
|
|
20
|
-
},
|
|
21
|
-
"lint-staged": {
|
|
22
|
-
"*.{js,jsx,less,md,json}": [
|
|
23
|
-
"prettier --write"
|
|
24
|
-
],
|
|
25
|
-
"*.ts?(x)": [
|
|
26
|
-
"prettier --parser=typescript --write"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"ahooks": "^3.1.2",
|
|
31
|
-
"antd": "4.17.2",
|
|
32
|
-
"axios": "^0.24.0",
|
|
33
|
-
"classnames": "^2.3.1",
|
|
34
|
-
"loadsh": "^0.0.4",
|
|
35
|
-
"querystring": "^0.2.1",
|
|
36
|
-
"react": "^16.12.0",
|
|
37
|
-
"react-beautiful-dnd": "10.0.0"
|
|
38
|
-
},
|
|
39
|
-
"devDependencies": {
|
|
40
|
-
"@umijs/test": "^3.0.5",
|
|
41
|
-
"dumi": "^1.0.14",
|
|
42
|
-
"father-build": "^1.17.2",
|
|
43
|
-
"gh-pages": "^3.0.0",
|
|
44
|
-
"lint-staged": "^10.0.7",
|
|
45
|
-
"prettier": "^2.2.1"
|
|
46
|
-
},
|
|
47
|
-
"publishConfig": {
|
|
48
|
-
"access": "public"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@bit-sun/business-component",
|
|
3
|
+
"version": "1.1.37",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"start": "dumi dev",
|
|
6
|
+
"docs:build": "dumi build",
|
|
7
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
|
8
|
+
"build": "father-build",
|
|
9
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
10
|
+
"release": "npm run build && npm publish",
|
|
11
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
12
|
+
"test": "umi-test",
|
|
13
|
+
"test:coverage": "umi-test --coverage"
|
|
14
|
+
},
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"module": "dist/index.esm.js",
|
|
17
|
+
"typings": "dist/index.d.ts",
|
|
18
|
+
"gitHooks": {
|
|
19
|
+
"pre-commit": "lint-staged"
|
|
20
|
+
},
|
|
21
|
+
"lint-staged": {
|
|
22
|
+
"*.{js,jsx,less,md,json}": [
|
|
23
|
+
"prettier --write"
|
|
24
|
+
],
|
|
25
|
+
"*.ts?(x)": [
|
|
26
|
+
"prettier --parser=typescript --write"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"ahooks": "^3.1.2",
|
|
31
|
+
"antd": "4.17.2",
|
|
32
|
+
"axios": "^0.24.0",
|
|
33
|
+
"classnames": "^2.3.1",
|
|
34
|
+
"loadsh": "^0.0.4",
|
|
35
|
+
"querystring": "^0.2.1",
|
|
36
|
+
"react": "^16.12.0",
|
|
37
|
+
"react-beautiful-dnd": "10.0.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@umijs/test": "^3.0.5",
|
|
41
|
+
"dumi": "^1.0.14",
|
|
42
|
+
"father-build": "^1.17.2",
|
|
43
|
+
"gh-pages": "^3.0.0",
|
|
44
|
+
"lint-staged": "^10.0.7",
|
|
45
|
+
"prettier": "^2.2.1"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
}
|
|
50
|
+
}
|