@bit-sun/business-component 1.1.32 → 1.1.33
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 +122 -2
- package/dist/index.js +122 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1658,7 +1658,7 @@ var itemsTemp = []; // const mapping = [
|
|
|
1658
1658
|
// { "key": "price", "name": "单价", "rule": "price" }
|
|
1659
1659
|
// ]
|
|
1660
1660
|
|
|
1661
|
-
var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号']]); // for dnd
|
|
1661
|
+
var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号']]); // for dnd
|
|
1662
1662
|
|
|
1663
1663
|
|
|
1664
1664
|
var reorder = function reorder(list, startIndex, endIndex) {
|
|
@@ -3609,7 +3609,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
3609
3609
|
}]
|
|
3610
3610
|
}, modalTableBusProps);
|
|
3611
3611
|
|
|
3612
|
-
var needModalTable = true; // 商品选择器
|
|
3612
|
+
var needModalTable = true; // 商品选择器sku
|
|
3613
3613
|
|
|
3614
3614
|
if (type === 'skuCommodity') {
|
|
3615
3615
|
requestConfig = _objectSpread2({
|
|
@@ -3771,6 +3771,126 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
3771
3771
|
dataIndex: 'brandName'
|
|
3772
3772
|
}]
|
|
3773
3773
|
}, modalTableBusProps);
|
|
3774
|
+
} // 商品选择器spu
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
if (type === 'spuCommodity') {
|
|
3778
|
+
requestConfig = _objectSpread2({
|
|
3779
|
+
url: "".concat(prefixUrl.selectPrefix, "/item"),
|
|
3780
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
3781
|
+
mappingTextField: 'name',
|
|
3782
|
+
mappingValueField: 'itemCode',
|
|
3783
|
+
otherParams: {
|
|
3784
|
+
'qp-approveStatus-eq': 1,
|
|
3785
|
+
sorter: 'desc-id'
|
|
3786
|
+
},
|
|
3787
|
+
sourceName: 'itemCode'
|
|
3788
|
+
}, requestConfigProp);
|
|
3789
|
+
tableSearchForm = [{
|
|
3790
|
+
name: 'qp-name-like',
|
|
3791
|
+
label: 'SPU名称'
|
|
3792
|
+
}, {
|
|
3793
|
+
name: 'qp-itemCode-like',
|
|
3794
|
+
label: 'SPU编码'
|
|
3795
|
+
}, {
|
|
3796
|
+
name: 'qp-brandId-in',
|
|
3797
|
+
type: 'select',
|
|
3798
|
+
label: '品牌',
|
|
3799
|
+
field: {
|
|
3800
|
+
type: 'select',
|
|
3801
|
+
props: {
|
|
3802
|
+
mode: 'multiple',
|
|
3803
|
+
notFoundContent: '暂无数据',
|
|
3804
|
+
allowClear: true,
|
|
3805
|
+
showSearch: true,
|
|
3806
|
+
showArrow: true,
|
|
3807
|
+
maxTagCount: 1,
|
|
3808
|
+
optionFilterProp: 'children',
|
|
3809
|
+
filterOption: function filterOption(input, option) {
|
|
3810
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
}
|
|
3814
|
+
}, {
|
|
3815
|
+
name: 'qp-categoryId-in',
|
|
3816
|
+
type: 'treeSelect',
|
|
3817
|
+
label: '类目',
|
|
3818
|
+
field: {
|
|
3819
|
+
type: 'treeSelect',
|
|
3820
|
+
props: {
|
|
3821
|
+
treeData: [],
|
|
3822
|
+
treeCheckable: true,
|
|
3823
|
+
showSearch: true,
|
|
3824
|
+
allowClear: true,
|
|
3825
|
+
showArrow: true,
|
|
3826
|
+
treeNodeFilterProp: 'title',
|
|
3827
|
+
treeDefaultExpandAll: true,
|
|
3828
|
+
maxTagCount: 1,
|
|
3829
|
+
placeholder: '请选择',
|
|
3830
|
+
style: {
|
|
3831
|
+
width: '100%'
|
|
3832
|
+
},
|
|
3833
|
+
dropdownStyle: {
|
|
3834
|
+
maxHeight: 400,
|
|
3835
|
+
maxWidth: 100,
|
|
3836
|
+
overflow: 'auto'
|
|
3837
|
+
}
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
}, {
|
|
3841
|
+
name: 'qp-classId-in',
|
|
3842
|
+
type: 'select',
|
|
3843
|
+
label: '品类',
|
|
3844
|
+
field: {
|
|
3845
|
+
type: 'select',
|
|
3846
|
+
props: {
|
|
3847
|
+
mode: 'multiple',
|
|
3848
|
+
notFoundContent: '暂无数据',
|
|
3849
|
+
allowClear: true,
|
|
3850
|
+
showSearch: true,
|
|
3851
|
+
showArrow: true,
|
|
3852
|
+
maxTagCount: 1,
|
|
3853
|
+
optionFilterProp: 'children',
|
|
3854
|
+
filterOption: function filterOption(input, option) {
|
|
3855
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
3856
|
+
}
|
|
3857
|
+
}
|
|
3858
|
+
}
|
|
3859
|
+
}];
|
|
3860
|
+
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
3861
|
+
pageSize: 5000,
|
|
3862
|
+
currentPage: 1
|
|
3863
|
+
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
3864
|
+
pageSize: 5000,
|
|
3865
|
+
currentPage: 1
|
|
3866
|
+
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
3867
|
+
pageSize: 5000,
|
|
3868
|
+
currentPage: 1
|
|
3869
|
+
})]).then(function (x) {
|
|
3870
|
+
formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
|
|
3871
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm);
|
|
3872
|
+
formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
|
|
3873
|
+
});
|
|
3874
|
+
modalTableProps = _objectSpread2({
|
|
3875
|
+
modalTableTitle: '选择SPU',
|
|
3876
|
+
tableSearchForm: tableSearchForm,
|
|
3877
|
+
tableColumns: [{
|
|
3878
|
+
title: 'SPU编码',
|
|
3879
|
+
dataIndex: 'itemCode'
|
|
3880
|
+
}, {
|
|
3881
|
+
title: 'SPU名称',
|
|
3882
|
+
dataIndex: 'name'
|
|
3883
|
+
}, {
|
|
3884
|
+
title: '品牌',
|
|
3885
|
+
dataIndex: 'brandName'
|
|
3886
|
+
}, {
|
|
3887
|
+
title: '类目',
|
|
3888
|
+
dataIndex: 'categoryText'
|
|
3889
|
+
}, {
|
|
3890
|
+
title: '品类',
|
|
3891
|
+
dataIndex: 'className'
|
|
3892
|
+
}]
|
|
3893
|
+
}, modalTableBusProps);
|
|
3774
3894
|
} // 商品规格选择器(无弹窗)
|
|
3775
3895
|
|
|
3776
3896
|
|
package/dist/index.js
CHANGED
|
@@ -1669,7 +1669,7 @@ var itemsTemp = []; // const mapping = [
|
|
|
1669
1669
|
// { "key": "price", "name": "单价", "rule": "price" }
|
|
1670
1670
|
// ]
|
|
1671
1671
|
|
|
1672
|
-
var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号']]); // for dnd
|
|
1672
|
+
var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号']]); // for dnd
|
|
1673
1673
|
|
|
1674
1674
|
|
|
1675
1675
|
var reorder = function reorder(list, startIndex, endIndex) {
|
|
@@ -3620,7 +3620,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
3620
3620
|
}]
|
|
3621
3621
|
}, modalTableBusProps);
|
|
3622
3622
|
|
|
3623
|
-
var needModalTable = true; // 商品选择器
|
|
3623
|
+
var needModalTable = true; // 商品选择器sku
|
|
3624
3624
|
|
|
3625
3625
|
if (type === 'skuCommodity') {
|
|
3626
3626
|
requestConfig = _objectSpread2({
|
|
@@ -3782,6 +3782,126 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
|
|
|
3782
3782
|
dataIndex: 'brandName'
|
|
3783
3783
|
}]
|
|
3784
3784
|
}, modalTableBusProps);
|
|
3785
|
+
} // 商品选择器spu
|
|
3786
|
+
|
|
3787
|
+
|
|
3788
|
+
if (type === 'spuCommodity') {
|
|
3789
|
+
requestConfig = _objectSpread2({
|
|
3790
|
+
url: "".concat(prefixUrl.selectPrefix, "/item"),
|
|
3791
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
3792
|
+
mappingTextField: 'name',
|
|
3793
|
+
mappingValueField: 'itemCode',
|
|
3794
|
+
otherParams: {
|
|
3795
|
+
'qp-approveStatus-eq': 1,
|
|
3796
|
+
sorter: 'desc-id'
|
|
3797
|
+
},
|
|
3798
|
+
sourceName: 'itemCode'
|
|
3799
|
+
}, requestConfigProp);
|
|
3800
|
+
tableSearchForm = [{
|
|
3801
|
+
name: 'qp-name-like',
|
|
3802
|
+
label: 'SPU名称'
|
|
3803
|
+
}, {
|
|
3804
|
+
name: 'qp-itemCode-like',
|
|
3805
|
+
label: 'SPU编码'
|
|
3806
|
+
}, {
|
|
3807
|
+
name: 'qp-brandId-in',
|
|
3808
|
+
type: 'select',
|
|
3809
|
+
label: '品牌',
|
|
3810
|
+
field: {
|
|
3811
|
+
type: 'select',
|
|
3812
|
+
props: {
|
|
3813
|
+
mode: 'multiple',
|
|
3814
|
+
notFoundContent: '暂无数据',
|
|
3815
|
+
allowClear: true,
|
|
3816
|
+
showSearch: true,
|
|
3817
|
+
showArrow: true,
|
|
3818
|
+
maxTagCount: 1,
|
|
3819
|
+
optionFilterProp: 'children',
|
|
3820
|
+
filterOption: function filterOption(input, option) {
|
|
3821
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
}
|
|
3825
|
+
}, {
|
|
3826
|
+
name: 'qp-categoryId-in',
|
|
3827
|
+
type: 'treeSelect',
|
|
3828
|
+
label: '类目',
|
|
3829
|
+
field: {
|
|
3830
|
+
type: 'treeSelect',
|
|
3831
|
+
props: {
|
|
3832
|
+
treeData: [],
|
|
3833
|
+
treeCheckable: true,
|
|
3834
|
+
showSearch: true,
|
|
3835
|
+
allowClear: true,
|
|
3836
|
+
showArrow: true,
|
|
3837
|
+
treeNodeFilterProp: 'title',
|
|
3838
|
+
treeDefaultExpandAll: true,
|
|
3839
|
+
maxTagCount: 1,
|
|
3840
|
+
placeholder: '请选择',
|
|
3841
|
+
style: {
|
|
3842
|
+
width: '100%'
|
|
3843
|
+
},
|
|
3844
|
+
dropdownStyle: {
|
|
3845
|
+
maxHeight: 400,
|
|
3846
|
+
maxWidth: 100,
|
|
3847
|
+
overflow: 'auto'
|
|
3848
|
+
}
|
|
3849
|
+
}
|
|
3850
|
+
}
|
|
3851
|
+
}, {
|
|
3852
|
+
name: 'qp-classId-in',
|
|
3853
|
+
type: 'select',
|
|
3854
|
+
label: '品类',
|
|
3855
|
+
field: {
|
|
3856
|
+
type: 'select',
|
|
3857
|
+
props: {
|
|
3858
|
+
mode: 'multiple',
|
|
3859
|
+
notFoundContent: '暂无数据',
|
|
3860
|
+
allowClear: true,
|
|
3861
|
+
showSearch: true,
|
|
3862
|
+
showArrow: true,
|
|
3863
|
+
maxTagCount: 1,
|
|
3864
|
+
optionFilterProp: 'children',
|
|
3865
|
+
filterOption: function filterOption(input, option) {
|
|
3866
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
3867
|
+
}
|
|
3868
|
+
}
|
|
3869
|
+
}
|
|
3870
|
+
}];
|
|
3871
|
+
Promise.all([loadSelectSource("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
3872
|
+
pageSize: 5000,
|
|
3873
|
+
currentPage: 1
|
|
3874
|
+
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
3875
|
+
pageSize: 5000,
|
|
3876
|
+
currentPage: 1
|
|
3877
|
+
}), loadSelectSource("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
3878
|
+
pageSize: 5000,
|
|
3879
|
+
currentPage: 1
|
|
3880
|
+
})]).then(function (x) {
|
|
3881
|
+
formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
|
|
3882
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm);
|
|
3883
|
+
formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
|
|
3884
|
+
});
|
|
3885
|
+
modalTableProps = _objectSpread2({
|
|
3886
|
+
modalTableTitle: '选择SPU',
|
|
3887
|
+
tableSearchForm: tableSearchForm,
|
|
3888
|
+
tableColumns: [{
|
|
3889
|
+
title: 'SPU编码',
|
|
3890
|
+
dataIndex: 'itemCode'
|
|
3891
|
+
}, {
|
|
3892
|
+
title: 'SPU名称',
|
|
3893
|
+
dataIndex: 'name'
|
|
3894
|
+
}, {
|
|
3895
|
+
title: '品牌',
|
|
3896
|
+
dataIndex: 'brandName'
|
|
3897
|
+
}, {
|
|
3898
|
+
title: '类目',
|
|
3899
|
+
dataIndex: 'categoryText'
|
|
3900
|
+
}, {
|
|
3901
|
+
title: '品类',
|
|
3902
|
+
dataIndex: 'className'
|
|
3903
|
+
}]
|
|
3904
|
+
}, modalTableBusProps);
|
|
3785
3905
|
} // 商品规格选择器(无弹窗)
|
|
3786
3906
|
|
|
3787
3907
|
|