@kmkf-fe-packages/basic-components 1.22.1-beta.24 → 1.22.1-beta.25
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 +120 -3
- package/dist/index.js +120 -3
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -12469,7 +12469,11 @@ var GoodsModal$4 = function GoodsModal(props, ref) {
|
|
|
12469
12469
|
};
|
|
12470
12470
|
var BsE3GoodsModal = /*#__PURE__*/forwardRef(GoodsModal$4);
|
|
12471
12471
|
|
|
12472
|
-
var getColumns = function getColumns() {
|
|
12472
|
+
var getColumns = function getColumns(_ref) {
|
|
12473
|
+
var _ref$text = _ref.text,
|
|
12474
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
12475
|
+
disabled = _ref.disabled,
|
|
12476
|
+
updateHandle = _ref.updateHandle;
|
|
12473
12477
|
return {
|
|
12474
12478
|
//百胜E3补发商品
|
|
12475
12479
|
BS_E3_REISSUE_GOODS: [{
|
|
@@ -12540,7 +12544,7 @@ var getColumns = function getColumns() {
|
|
|
12540
12544
|
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
12541
12545
|
}
|
|
12542
12546
|
}],
|
|
12543
|
-
|
|
12547
|
+
//百胜E3商品信息
|
|
12544
12548
|
BS_E3_GOODS: [{
|
|
12545
12549
|
dataIndex: 'sku',
|
|
12546
12550
|
title: "SKU",
|
|
@@ -12682,6 +12686,114 @@ var getColumns = function getColumns() {
|
|
|
12682
12686
|
render: function render(val) {
|
|
12683
12687
|
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
12684
12688
|
}
|
|
12689
|
+
}],
|
|
12690
|
+
BS_GOODS: [{
|
|
12691
|
+
dataIndex: 'mark',
|
|
12692
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
12693
|
+
align: 'center',
|
|
12694
|
+
ellipsis: true,
|
|
12695
|
+
width: 70,
|
|
12696
|
+
render: function render(val, record, index) {
|
|
12697
|
+
return /*#__PURE__*/React.createElement(Select, {
|
|
12698
|
+
options: [{
|
|
12699
|
+
label: '是',
|
|
12700
|
+
value: '是'
|
|
12701
|
+
}, {
|
|
12702
|
+
label: '否',
|
|
12703
|
+
value: '否'
|
|
12704
|
+
}],
|
|
12705
|
+
disabled: disabled,
|
|
12706
|
+
value: val,
|
|
12707
|
+
onChange: function onChange(val) {
|
|
12708
|
+
return updateHandle(val, index, 'mark');
|
|
12709
|
+
}
|
|
12710
|
+
});
|
|
12711
|
+
}
|
|
12712
|
+
}, {
|
|
12713
|
+
dataIndex: 'skuName',
|
|
12714
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
12715
|
+
align: 'center',
|
|
12716
|
+
ellipsis: true,
|
|
12717
|
+
width: 250
|
|
12718
|
+
}, {
|
|
12719
|
+
dataIndex: 'sku',
|
|
12720
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
12721
|
+
align: 'center',
|
|
12722
|
+
ellipsis: true,
|
|
12723
|
+
width: 100
|
|
12724
|
+
}, {
|
|
12725
|
+
dataIndex: 'name',
|
|
12726
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
12727
|
+
align: 'center',
|
|
12728
|
+
ellipsis: true,
|
|
12729
|
+
width: 250
|
|
12730
|
+
}, {
|
|
12731
|
+
dataIndex: 'pic',
|
|
12732
|
+
title: "\u56FE\u7247",
|
|
12733
|
+
align: 'center',
|
|
12734
|
+
ellipsis: true,
|
|
12735
|
+
width: 100,
|
|
12736
|
+
render: function render(val) {
|
|
12737
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
12738
|
+
width: 60,
|
|
12739
|
+
src: val
|
|
12740
|
+
});
|
|
12741
|
+
}
|
|
12742
|
+
}, {
|
|
12743
|
+
dataIndex: 'code',
|
|
12744
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
12745
|
+
align: 'center',
|
|
12746
|
+
ellipsis: true,
|
|
12747
|
+
width: 100
|
|
12748
|
+
}, {
|
|
12749
|
+
dataIndex: 'money',
|
|
12750
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
12751
|
+
align: 'center',
|
|
12752
|
+
ellipsis: true,
|
|
12753
|
+
width: 100
|
|
12754
|
+
}, {
|
|
12755
|
+
dataIndex: 'number',
|
|
12756
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
12757
|
+
align: 'center',
|
|
12758
|
+
ellipsis: true,
|
|
12759
|
+
width: 100,
|
|
12760
|
+
render: function render(val, record, index) {
|
|
12761
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12762
|
+
style: {
|
|
12763
|
+
width: 70
|
|
12764
|
+
},
|
|
12765
|
+
value: val,
|
|
12766
|
+
min: 1,
|
|
12767
|
+
precision: 0,
|
|
12768
|
+
onChange: function onChange(num) {
|
|
12769
|
+
return updateHandle(num, index, 'number');
|
|
12770
|
+
}
|
|
12771
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12772
|
+
}
|
|
12773
|
+
}, {
|
|
12774
|
+
dataIndex: 'share',
|
|
12775
|
+
title: "\u5206\u644A\u4EF7",
|
|
12776
|
+
align: 'center',
|
|
12777
|
+
ellipsis: true,
|
|
12778
|
+
width: 70
|
|
12779
|
+
}, {
|
|
12780
|
+
dataIndex: 'type',
|
|
12781
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
12782
|
+
align: 'center',
|
|
12783
|
+
ellipsis: true,
|
|
12784
|
+
width: 100
|
|
12785
|
+
}, {
|
|
12786
|
+
dataIndex: 'batch',
|
|
12787
|
+
title: "\u6279\u6B21\u53F7",
|
|
12788
|
+
align: 'center',
|
|
12789
|
+
ellipsis: true,
|
|
12790
|
+
width: 100
|
|
12791
|
+
}, {
|
|
12792
|
+
dataIndex: 'expireDate',
|
|
12793
|
+
title: "\u6709\u6548\u671F",
|
|
12794
|
+
align: 'center',
|
|
12795
|
+
ellipsis: true,
|
|
12796
|
+
width: 100
|
|
12685
12797
|
}]
|
|
12686
12798
|
};
|
|
12687
12799
|
};
|
|
@@ -13218,7 +13330,11 @@ var getColumnsMap = function getColumnsMap(args) {
|
|
|
13218
13330
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
13219
13331
|
disabled = _ref.disabled,
|
|
13220
13332
|
updateHandle = _ref.updateHandle;
|
|
13221
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns(
|
|
13333
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns({
|
|
13334
|
+
text: text,
|
|
13335
|
+
disabled: disabled,
|
|
13336
|
+
updateHandle: updateHandle
|
|
13337
|
+
})), getColumns$1({
|
|
13222
13338
|
text: text,
|
|
13223
13339
|
disabled: disabled,
|
|
13224
13340
|
updateHandle: updateHandle
|
|
@@ -13581,6 +13697,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13581
13697
|
case 'WDT_RETURN_GOODS':
|
|
13582
13698
|
case 'WDT_EXCHANGE_GOODS':
|
|
13583
13699
|
case 'BS_E3_GOODS':
|
|
13700
|
+
case 'BS_GOODS':
|
|
13584
13701
|
case 'WLN_GOODS':
|
|
13585
13702
|
{
|
|
13586
13703
|
columns = getColumnsMap({
|
package/dist/index.js
CHANGED
|
@@ -12481,7 +12481,11 @@ var GoodsModal$4 = function GoodsModal(props, ref) {
|
|
|
12481
12481
|
};
|
|
12482
12482
|
var BsE3GoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$4);
|
|
12483
12483
|
|
|
12484
|
-
var getColumns = function getColumns() {
|
|
12484
|
+
var getColumns = function getColumns(_ref) {
|
|
12485
|
+
var _ref$text = _ref.text,
|
|
12486
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
12487
|
+
disabled = _ref.disabled,
|
|
12488
|
+
updateHandle = _ref.updateHandle;
|
|
12485
12489
|
return {
|
|
12486
12490
|
//百胜E3补发商品
|
|
12487
12491
|
BS_E3_REISSUE_GOODS: [{
|
|
@@ -12552,7 +12556,7 @@ var getColumns = function getColumns() {
|
|
|
12552
12556
|
return /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
12553
12557
|
}
|
|
12554
12558
|
}],
|
|
12555
|
-
|
|
12559
|
+
//百胜E3商品信息
|
|
12556
12560
|
BS_E3_GOODS: [{
|
|
12557
12561
|
dataIndex: 'sku',
|
|
12558
12562
|
title: "SKU",
|
|
@@ -12694,6 +12698,114 @@ var getColumns = function getColumns() {
|
|
|
12694
12698
|
render: function render(val) {
|
|
12695
12699
|
return /*#__PURE__*/React__default['default'].createElement("span", null, kmkfUtils.BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
12696
12700
|
}
|
|
12701
|
+
}],
|
|
12702
|
+
BS_GOODS: [{
|
|
12703
|
+
dataIndex: 'mark',
|
|
12704
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
12705
|
+
align: 'center',
|
|
12706
|
+
ellipsis: true,
|
|
12707
|
+
width: 70,
|
|
12708
|
+
render: function render(val, record, index) {
|
|
12709
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
12710
|
+
options: [{
|
|
12711
|
+
label: '是',
|
|
12712
|
+
value: '是'
|
|
12713
|
+
}, {
|
|
12714
|
+
label: '否',
|
|
12715
|
+
value: '否'
|
|
12716
|
+
}],
|
|
12717
|
+
disabled: disabled,
|
|
12718
|
+
value: val,
|
|
12719
|
+
onChange: function onChange(val) {
|
|
12720
|
+
return updateHandle(val, index, 'mark');
|
|
12721
|
+
}
|
|
12722
|
+
});
|
|
12723
|
+
}
|
|
12724
|
+
}, {
|
|
12725
|
+
dataIndex: 'skuName',
|
|
12726
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
12727
|
+
align: 'center',
|
|
12728
|
+
ellipsis: true,
|
|
12729
|
+
width: 250
|
|
12730
|
+
}, {
|
|
12731
|
+
dataIndex: 'sku',
|
|
12732
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
12733
|
+
align: 'center',
|
|
12734
|
+
ellipsis: true,
|
|
12735
|
+
width: 100
|
|
12736
|
+
}, {
|
|
12737
|
+
dataIndex: 'name',
|
|
12738
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
12739
|
+
align: 'center',
|
|
12740
|
+
ellipsis: true,
|
|
12741
|
+
width: 250
|
|
12742
|
+
}, {
|
|
12743
|
+
dataIndex: 'pic',
|
|
12744
|
+
title: "\u56FE\u7247",
|
|
12745
|
+
align: 'center',
|
|
12746
|
+
ellipsis: true,
|
|
12747
|
+
width: 100,
|
|
12748
|
+
render: function render(val) {
|
|
12749
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
12750
|
+
width: 60,
|
|
12751
|
+
src: val
|
|
12752
|
+
});
|
|
12753
|
+
}
|
|
12754
|
+
}, {
|
|
12755
|
+
dataIndex: 'code',
|
|
12756
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
12757
|
+
align: 'center',
|
|
12758
|
+
ellipsis: true,
|
|
12759
|
+
width: 100
|
|
12760
|
+
}, {
|
|
12761
|
+
dataIndex: 'money',
|
|
12762
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
12763
|
+
align: 'center',
|
|
12764
|
+
ellipsis: true,
|
|
12765
|
+
width: 100
|
|
12766
|
+
}, {
|
|
12767
|
+
dataIndex: 'number',
|
|
12768
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
12769
|
+
align: 'center',
|
|
12770
|
+
ellipsis: true,
|
|
12771
|
+
width: 100,
|
|
12772
|
+
render: function render(val, record, index) {
|
|
12773
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
12774
|
+
style: {
|
|
12775
|
+
width: 70
|
|
12776
|
+
},
|
|
12777
|
+
value: val,
|
|
12778
|
+
min: 1,
|
|
12779
|
+
precision: 0,
|
|
12780
|
+
onChange: function onChange(num) {
|
|
12781
|
+
return updateHandle(num, index, 'number');
|
|
12782
|
+
}
|
|
12783
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12784
|
+
}
|
|
12785
|
+
}, {
|
|
12786
|
+
dataIndex: 'share',
|
|
12787
|
+
title: "\u5206\u644A\u4EF7",
|
|
12788
|
+
align: 'center',
|
|
12789
|
+
ellipsis: true,
|
|
12790
|
+
width: 70
|
|
12791
|
+
}, {
|
|
12792
|
+
dataIndex: 'type',
|
|
12793
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
12794
|
+
align: 'center',
|
|
12795
|
+
ellipsis: true,
|
|
12796
|
+
width: 100
|
|
12797
|
+
}, {
|
|
12798
|
+
dataIndex: 'batch',
|
|
12799
|
+
title: "\u6279\u6B21\u53F7",
|
|
12800
|
+
align: 'center',
|
|
12801
|
+
ellipsis: true,
|
|
12802
|
+
width: 100
|
|
12803
|
+
}, {
|
|
12804
|
+
dataIndex: 'expireDate',
|
|
12805
|
+
title: "\u6709\u6548\u671F",
|
|
12806
|
+
align: 'center',
|
|
12807
|
+
ellipsis: true,
|
|
12808
|
+
width: 100
|
|
12697
12809
|
}]
|
|
12698
12810
|
};
|
|
12699
12811
|
};
|
|
@@ -13230,7 +13342,11 @@ var getColumnsMap = function getColumnsMap(args) {
|
|
|
13230
13342
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
13231
13343
|
disabled = _ref.disabled,
|
|
13232
13344
|
updateHandle = _ref.updateHandle;
|
|
13233
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns(
|
|
13345
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns({
|
|
13346
|
+
text: text,
|
|
13347
|
+
disabled: disabled,
|
|
13348
|
+
updateHandle: updateHandle
|
|
13349
|
+
})), getColumns$1({
|
|
13234
13350
|
text: text,
|
|
13235
13351
|
disabled: disabled,
|
|
13236
13352
|
updateHandle: updateHandle
|
|
@@ -13593,6 +13709,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13593
13709
|
case 'WDT_RETURN_GOODS':
|
|
13594
13710
|
case 'WDT_EXCHANGE_GOODS':
|
|
13595
13711
|
case 'BS_E3_GOODS':
|
|
13712
|
+
case 'BS_GOODS':
|
|
13596
13713
|
case 'WLN_GOODS':
|
|
13597
13714
|
{
|
|
13598
13715
|
columns = getColumnsMap({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "1.22.1-beta.
|
|
3
|
+
"version": "1.22.1-beta.25",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "51717efb58e6c93c06190729d1e0241fcdca1785"
|
|
69
69
|
}
|