@kmkf-fe-packages/basic-components 1.22.2 → 1.22.5
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.js
CHANGED
|
@@ -10968,12 +10968,18 @@ var jstGoods = function jstGoods(props) {
|
|
|
10968
10968
|
changeIndex = _useState2[0],
|
|
10969
10969
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
10970
10970
|
var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
|
|
10971
|
+
var isSelectName = ['wdt', 'bsE3', 'km'].includes(platformType);
|
|
10971
10972
|
React.useEffect(function () {
|
|
10972
10973
|
//没有值塞个默认值
|
|
10973
10974
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
10974
10975
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
|
|
10975
10976
|
}
|
|
10976
10977
|
}, [value, type]);
|
|
10978
|
+
React.useEffect(function () {
|
|
10979
|
+
if (changeIndex > (value === null || value === void 0 ? void 0 : value.length) - 1) {
|
|
10980
|
+
setChangeIndex(0);
|
|
10981
|
+
}
|
|
10982
|
+
}, value);
|
|
10977
10983
|
var content = function content(item, index) {
|
|
10978
10984
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10979
10985
|
style: {
|
|
@@ -10984,7 +10990,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10984
10990
|
style: {
|
|
10985
10991
|
textAlign: 'center'
|
|
10986
10992
|
}
|
|
10987
|
-
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
10993
|
+
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F"), item.sid && /*#__PURE__*/React__default['default'].createElement("span", null, "(\u7CFB\u7EDF\u5355\u53F7:", item.sid, ")")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
10988
10994
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10989
10995
|
key: index
|
|
10990
10996
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
@@ -10998,7 +11004,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10998
11004
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
10999
11005
|
changeOrderInfo[type] = val;
|
|
11000
11006
|
changeOrderInfo['sendId'] = option.value;
|
|
11001
|
-
if (
|
|
11007
|
+
if (isSelectName && type === 'sendName') {
|
|
11002
11008
|
changeOrderInfo['sendSnapshotName'] = option.label;
|
|
11003
11009
|
}
|
|
11004
11010
|
var newList = _toConsumableArray(value);
|
|
@@ -11081,7 +11087,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11081
11087
|
return changeInputHandle(e.target.value, 'sendId');
|
|
11082
11088
|
},
|
|
11083
11089
|
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
|
|
11084
|
-
}), ['sendName', 'all'].includes(showField) && (
|
|
11090
|
+
}), ['sendName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
11085
11091
|
style: {
|
|
11086
11092
|
minWidth: '100px',
|
|
11087
11093
|
maxWidth: '180px'
|
|
@@ -12587,6 +12593,104 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
|
12587
12593
|
});
|
|
12588
12594
|
};
|
|
12589
12595
|
|
|
12596
|
+
var renderGiftType = function renderGiftType(val) {
|
|
12597
|
+
var giftTypeMap = {
|
|
12598
|
+
0: '非赠品',
|
|
12599
|
+
1: '自动赠送',
|
|
12600
|
+
2: '手工赠送',
|
|
12601
|
+
3: '回购自动送赠品',
|
|
12602
|
+
4: '前N有礼送赠品',
|
|
12603
|
+
6: '天猫优仓赠品',
|
|
12604
|
+
7: '淘宝CRM会员送赠'
|
|
12605
|
+
};
|
|
12606
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
12607
|
+
};
|
|
12608
|
+
var columns$4 = [{
|
|
12609
|
+
dataIndex: 'goodId',
|
|
12610
|
+
title: "\u5546\u54C1ID",
|
|
12611
|
+
width: 120
|
|
12612
|
+
}, {
|
|
12613
|
+
dataIndex: 'goodNo',
|
|
12614
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
12615
|
+
width: 200
|
|
12616
|
+
}, {
|
|
12617
|
+
dataIndex: 'goodName',
|
|
12618
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12619
|
+
width: 200
|
|
12620
|
+
}, {
|
|
12621
|
+
dataIndex: 'specId',
|
|
12622
|
+
title: "SKUID",
|
|
12623
|
+
width: 150
|
|
12624
|
+
}, {
|
|
12625
|
+
dataIndex: 'specNo',
|
|
12626
|
+
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
12627
|
+
width: 200
|
|
12628
|
+
}, {
|
|
12629
|
+
dataIndex: 'specName',
|
|
12630
|
+
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
12631
|
+
width: 250
|
|
12632
|
+
}, {
|
|
12633
|
+
dataIndex: 'orderPrice',
|
|
12634
|
+
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
12635
|
+
width: 200
|
|
12636
|
+
}, {
|
|
12637
|
+
dataIndex: 'num',
|
|
12638
|
+
title: "\u6570\u91CF",
|
|
12639
|
+
width: 100
|
|
12640
|
+
}, {
|
|
12641
|
+
dataIndex: 'sharePrice',
|
|
12642
|
+
title: "\u5206\u644A\u4EF7",
|
|
12643
|
+
width: 150
|
|
12644
|
+
}, {
|
|
12645
|
+
dataIndex: 'giftType',
|
|
12646
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12647
|
+
width: 100,
|
|
12648
|
+
render: renderGiftType
|
|
12649
|
+
}];
|
|
12650
|
+
var renderFieldMap$1 = {
|
|
12651
|
+
num: function num(_ref) {
|
|
12652
|
+
var disabled = _ref.disabled,
|
|
12653
|
+
updateHandle = _ref.updateHandle;
|
|
12654
|
+
return function (val, record, index) {
|
|
12655
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
12656
|
+
style: {
|
|
12657
|
+
width: 70
|
|
12658
|
+
},
|
|
12659
|
+
value: val,
|
|
12660
|
+
min: 1,
|
|
12661
|
+
precision: 0,
|
|
12662
|
+
onChange: function onChange(num) {
|
|
12663
|
+
return updateHandle(num, index, 'num');
|
|
12664
|
+
}
|
|
12665
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
12666
|
+
};
|
|
12667
|
+
},
|
|
12668
|
+
giftType: function giftType() {
|
|
12669
|
+
return renderGiftType;
|
|
12670
|
+
}
|
|
12671
|
+
};
|
|
12672
|
+
var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
12673
|
+
var disabled = _ref2.disabled,
|
|
12674
|
+
updateHandle = _ref2.updateHandle,
|
|
12675
|
+
operate = _ref2.operate;
|
|
12676
|
+
return columns$4.map(function (item) {
|
|
12677
|
+
var newItem = _objectSpread2({
|
|
12678
|
+
align: 'center',
|
|
12679
|
+
ellipsis: true
|
|
12680
|
+
}, item);
|
|
12681
|
+
if (operate && (renderFieldMap$1 === null || renderFieldMap$1 === void 0 ? void 0 : renderFieldMap$1[item.dataIndex])) {
|
|
12682
|
+
return _objectSpread2(_objectSpread2({}, newItem), {}, {
|
|
12683
|
+
render: renderFieldMap$1 === null || renderFieldMap$1 === void 0 ? void 0 : renderFieldMap$1[item.dataIndex]({
|
|
12684
|
+
disabled: disabled,
|
|
12685
|
+
updateHandle: updateHandle
|
|
12686
|
+
})
|
|
12687
|
+
});
|
|
12688
|
+
}
|
|
12689
|
+
return newItem;
|
|
12690
|
+
});
|
|
12691
|
+
};
|
|
12692
|
+
|
|
12693
|
+
var MAIN_FIELD = 'uuid';
|
|
12590
12694
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
12591
12695
|
var columns = _ref.columns,
|
|
12592
12696
|
dataSource = _ref.dataSource,
|
|
@@ -12602,11 +12706,20 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
12602
12706
|
var closeModal = function closeModal() {
|
|
12603
12707
|
return setTradeGoodsVisible(false);
|
|
12604
12708
|
};
|
|
12709
|
+
var currentTradeOriginGoods = lodash.intersection(dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
|
|
12710
|
+
return item === null || item === void 0 ? void 0 : item[MAIN_FIELD];
|
|
12711
|
+
}), selectedRowKeys);
|
|
12712
|
+
var unCurrentTradeOriginGoods = lodash.difference(selectedRowKeys, dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
|
|
12713
|
+
return item === null || item === void 0 ? void 0 : item[MAIN_FIELD];
|
|
12714
|
+
}));
|
|
12715
|
+
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
12716
|
+
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
12717
|
+
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
12718
|
+
};
|
|
12605
12719
|
var rowSelection = {
|
|
12606
12720
|
selectedRowKeys: selectedRowKeys,
|
|
12607
|
-
onChange:
|
|
12721
|
+
onChange: handleChangeSelectedKeys
|
|
12608
12722
|
};
|
|
12609
|
-
console.debug('选择订单商品-dataSource', dataSource, selectedRowKeys);
|
|
12610
12723
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
12611
12724
|
type: "link",
|
|
12612
12725
|
onClick: openModal
|
|
@@ -12616,7 +12729,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
12616
12729
|
footer: null,
|
|
12617
12730
|
onCancel: closeModal
|
|
12618
12731
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
12619
|
-
rowKey:
|
|
12732
|
+
rowKey: MAIN_FIELD,
|
|
12620
12733
|
rowSelection: rowSelection,
|
|
12621
12734
|
columns: columns,
|
|
12622
12735
|
dataSource: dataSource,
|
|
@@ -12625,7 +12738,17 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
12625
12738
|
x: 500,
|
|
12626
12739
|
y: 500
|
|
12627
12740
|
}
|
|
12628
|
-
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9(",
|
|
12741
|
+
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", dataSource === null || dataSource === void 0 ? void 0 : dataSource.length, ")")));
|
|
12742
|
+
};
|
|
12743
|
+
var getButtonText = function getButtonText() {
|
|
12744
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
12745
|
+
if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
12746
|
+
return '选择百胜ERP商品';
|
|
12747
|
+
}
|
|
12748
|
+
if (['WDT_REISSUE_GOODS'].includes(type)) {
|
|
12749
|
+
return '选择旺店通商品';
|
|
12750
|
+
}
|
|
12751
|
+
return '选择商品';
|
|
12629
12752
|
};
|
|
12630
12753
|
var GoodItem$1 = function GoodItem(props) {
|
|
12631
12754
|
var _props$value = props.value,
|
|
@@ -12682,7 +12805,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12682
12805
|
// TODO: 商品订单中以选中商品
|
|
12683
12806
|
var selectedGoods = React.useMemo(function () {
|
|
12684
12807
|
return value === null || value === void 0 ? void 0 : value.map(function (v) {
|
|
12685
|
-
return v
|
|
12808
|
+
return v === null || v === void 0 ? void 0 : v[MAIN_FIELD];
|
|
12686
12809
|
});
|
|
12687
12810
|
}, [value]);
|
|
12688
12811
|
var updateHandle = function updateHandle(val, index, columnType) {
|
|
@@ -12723,6 +12846,14 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12723
12846
|
var columns = [];
|
|
12724
12847
|
switch (type) {
|
|
12725
12848
|
case 'WDT_REISSUE_GOODS':
|
|
12849
|
+
{
|
|
12850
|
+
columns = getWdtReissueGoodColumns({
|
|
12851
|
+
disabled: disabled,
|
|
12852
|
+
updateHandle: updateHandle,
|
|
12853
|
+
operate: operate
|
|
12854
|
+
});
|
|
12855
|
+
}
|
|
12856
|
+
break;
|
|
12726
12857
|
case 'WDT_GOODS':
|
|
12727
12858
|
columns = [{
|
|
12728
12859
|
dataIndex: 'goodId',
|
|
@@ -13158,13 +13289,39 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13158
13289
|
title: "\u5546\u54C1\u6570\u91CF",
|
|
13159
13290
|
align: 'center',
|
|
13160
13291
|
ellipsis: true,
|
|
13161
|
-
width: 100
|
|
13292
|
+
width: 100,
|
|
13293
|
+
render: function render(val, record, index) {
|
|
13294
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13295
|
+
style: {
|
|
13296
|
+
width: 70
|
|
13297
|
+
},
|
|
13298
|
+
value: val,
|
|
13299
|
+
min: 1,
|
|
13300
|
+
precision: 0,
|
|
13301
|
+
onChange: function onChange(num) {
|
|
13302
|
+
return updateHandle(num, index, 'goodsNumber');
|
|
13303
|
+
}
|
|
13304
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13305
|
+
}
|
|
13162
13306
|
}, {
|
|
13163
13307
|
dataIndex: 'goodsPrice',
|
|
13164
13308
|
title: "\u5546\u54C1\u5355\u4EF7",
|
|
13165
13309
|
align: 'center',
|
|
13166
13310
|
ellipsis: true,
|
|
13167
|
-
width: 120
|
|
13311
|
+
width: 120,
|
|
13312
|
+
render: function render(val, record, index) {
|
|
13313
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13314
|
+
style: {
|
|
13315
|
+
width: 70
|
|
13316
|
+
},
|
|
13317
|
+
value: val,
|
|
13318
|
+
min: 0,
|
|
13319
|
+
precision: 2,
|
|
13320
|
+
onChange: function onChange(num) {
|
|
13321
|
+
return updateHandle(num, index, 'goodsPrice');
|
|
13322
|
+
}
|
|
13323
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13324
|
+
}
|
|
13168
13325
|
}, {
|
|
13169
13326
|
dataIndex: 'shopPrice',
|
|
13170
13327
|
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
@@ -13188,7 +13345,20 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13188
13345
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13189
13346
|
align: 'center',
|
|
13190
13347
|
ellipsis: true,
|
|
13191
|
-
width: 120
|
|
13348
|
+
width: 120,
|
|
13349
|
+
render: function render(val, record, index) {
|
|
13350
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13351
|
+
style: {
|
|
13352
|
+
width: 70
|
|
13353
|
+
},
|
|
13354
|
+
value: val,
|
|
13355
|
+
min: 0,
|
|
13356
|
+
precision: 2,
|
|
13357
|
+
onChange: function onChange(num) {
|
|
13358
|
+
return updateHandle(num, index, 'payment');
|
|
13359
|
+
}
|
|
13360
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13361
|
+
}
|
|
13192
13362
|
}, {
|
|
13193
13363
|
dataIndex: 'tcSku',
|
|
13194
13364
|
title: "\u5957\u9910SKU",
|
|
@@ -13228,6 +13398,116 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13228
13398
|
});
|
|
13229
13399
|
}
|
|
13230
13400
|
break;
|
|
13401
|
+
case 'BS_GOODS':
|
|
13402
|
+
columns = [{
|
|
13403
|
+
dataIndex: 'mark',
|
|
13404
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
13405
|
+
align: 'center',
|
|
13406
|
+
ellipsis: true,
|
|
13407
|
+
width: 70,
|
|
13408
|
+
render: function render(val, record, index) {
|
|
13409
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
13410
|
+
options: [{
|
|
13411
|
+
label: '是',
|
|
13412
|
+
value: '是'
|
|
13413
|
+
}, {
|
|
13414
|
+
label: '否',
|
|
13415
|
+
value: '否'
|
|
13416
|
+
}],
|
|
13417
|
+
disabled: disabled,
|
|
13418
|
+
value: val,
|
|
13419
|
+
onChange: function onChange(val) {
|
|
13420
|
+
return updateHandle(val, index, 'mark');
|
|
13421
|
+
}
|
|
13422
|
+
});
|
|
13423
|
+
}
|
|
13424
|
+
}, {
|
|
13425
|
+
dataIndex: 'skuName',
|
|
13426
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
13427
|
+
align: 'center',
|
|
13428
|
+
ellipsis: true,
|
|
13429
|
+
width: 250
|
|
13430
|
+
}, {
|
|
13431
|
+
dataIndex: 'sku',
|
|
13432
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
13433
|
+
align: 'center',
|
|
13434
|
+
ellipsis: true,
|
|
13435
|
+
width: 100
|
|
13436
|
+
}, {
|
|
13437
|
+
dataIndex: 'name',
|
|
13438
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
13439
|
+
align: 'center',
|
|
13440
|
+
ellipsis: true,
|
|
13441
|
+
width: 250
|
|
13442
|
+
}, {
|
|
13443
|
+
dataIndex: 'pic',
|
|
13444
|
+
title: "\u56FE\u7247",
|
|
13445
|
+
align: 'center',
|
|
13446
|
+
ellipsis: true,
|
|
13447
|
+
width: 100,
|
|
13448
|
+
render: function render(val) {
|
|
13449
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
13450
|
+
width: 60,
|
|
13451
|
+
src: val
|
|
13452
|
+
});
|
|
13453
|
+
}
|
|
13454
|
+
}, {
|
|
13455
|
+
dataIndex: 'code',
|
|
13456
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
13457
|
+
align: 'center',
|
|
13458
|
+
ellipsis: true,
|
|
13459
|
+
width: 100
|
|
13460
|
+
}, {
|
|
13461
|
+
dataIndex: 'money',
|
|
13462
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13463
|
+
align: 'center',
|
|
13464
|
+
ellipsis: true,
|
|
13465
|
+
width: 100
|
|
13466
|
+
}, {
|
|
13467
|
+
dataIndex: 'number',
|
|
13468
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
13469
|
+
align: 'center',
|
|
13470
|
+
ellipsis: true,
|
|
13471
|
+
width: 100,
|
|
13472
|
+
render: function render(val, record, index) {
|
|
13473
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
13474
|
+
style: {
|
|
13475
|
+
width: 70
|
|
13476
|
+
},
|
|
13477
|
+
value: val,
|
|
13478
|
+
min: 1,
|
|
13479
|
+
precision: 0,
|
|
13480
|
+
onChange: function onChange(num) {
|
|
13481
|
+
return updateHandle(num, index, 'number');
|
|
13482
|
+
}
|
|
13483
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
13484
|
+
}
|
|
13485
|
+
}, {
|
|
13486
|
+
dataIndex: 'share',
|
|
13487
|
+
title: "\u5206\u644A\u4EF7",
|
|
13488
|
+
align: 'center',
|
|
13489
|
+
ellipsis: true,
|
|
13490
|
+
width: 70
|
|
13491
|
+
}, {
|
|
13492
|
+
dataIndex: 'type',
|
|
13493
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
13494
|
+
align: 'center',
|
|
13495
|
+
ellipsis: true,
|
|
13496
|
+
width: 100
|
|
13497
|
+
}, {
|
|
13498
|
+
dataIndex: 'batch',
|
|
13499
|
+
title: "\u6279\u6B21\u53F7",
|
|
13500
|
+
align: 'center',
|
|
13501
|
+
ellipsis: true,
|
|
13502
|
+
width: 100
|
|
13503
|
+
}, {
|
|
13504
|
+
dataIndex: 'expireDate',
|
|
13505
|
+
title: "\u6709\u6548\u671F",
|
|
13506
|
+
align: 'center',
|
|
13507
|
+
ellipsis: true,
|
|
13508
|
+
width: 100
|
|
13509
|
+
}];
|
|
13510
|
+
break;
|
|
13231
13511
|
default:
|
|
13232
13512
|
columns = [{
|
|
13233
13513
|
dataIndex: 'mark',
|
|
@@ -13381,6 +13661,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13381
13661
|
}].concat(_toConsumableArray(columns));
|
|
13382
13662
|
}, []);
|
|
13383
13663
|
var onSubmit = function onSubmit(list) {
|
|
13664
|
+
console.log('🚀 ~ onSubmit ~ list:', list);
|
|
13384
13665
|
var newList = [];
|
|
13385
13666
|
if (['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type)) {
|
|
13386
13667
|
newList = list.map(function (item) {
|
|
@@ -13425,6 +13706,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13425
13706
|
isGift: '',
|
|
13426
13707
|
uuid: kmkfUtils.uuid(),
|
|
13427
13708
|
canDelete: true,
|
|
13709
|
+
canEdit: true,
|
|
13428
13710
|
goodsNumber: 1,
|
|
13429
13711
|
canUpdateNumber: canUpdateNumber
|
|
13430
13712
|
});
|
|
@@ -13496,7 +13778,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13496
13778
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
13497
13779
|
type: "link",
|
|
13498
13780
|
onClick: handleChangeGoods
|
|
13499
|
-
},
|
|
13781
|
+
}, getButtonText(type)), otherOperations), /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
|
|
13500
13782
|
columns: newColumns,
|
|
13501
13783
|
dataSource: value,
|
|
13502
13784
|
rowKey: 'uuid',
|
|
@@ -14221,6 +14503,53 @@ var bsE3Utils = {
|
|
|
14221
14503
|
getBsE3OrderListSingleton: getBsE3OrderListSingleton
|
|
14222
14504
|
};
|
|
14223
14505
|
|
|
14506
|
+
var singletonMap$2 = new Map();
|
|
14507
|
+
var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
14508
|
+
if (!singletonMap$2.has(orderNo)) {
|
|
14509
|
+
var p = new Promise(function (resolve, reject) {
|
|
14510
|
+
var doReject = function doReject(err) {
|
|
14511
|
+
// 清空掉错误的请求记录
|
|
14512
|
+
singletonMap$2.delete(orderNo);
|
|
14513
|
+
reject(err);
|
|
14514
|
+
};
|
|
14515
|
+
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
14516
|
+
method: 'post',
|
|
14517
|
+
data: {
|
|
14518
|
+
tid: orderNo
|
|
14519
|
+
}
|
|
14520
|
+
}).then(function (data) {
|
|
14521
|
+
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
14522
|
+
var _data$data, _data$data$orderDetai;
|
|
14523
|
+
if (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$orderDetai = _data$data.orderDetailDtoList) === null || _data$data$orderDetai === void 0 ? void 0 : _data$data$orderDetai.length) {
|
|
14524
|
+
var list = kmkfUtils.filterKmOrders(data === null || data === void 0 ? void 0 : data.data, orderNo).map(function (item) {
|
|
14525
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14526
|
+
billNo: item.sid,
|
|
14527
|
+
sysStatus: item.sysStatus,
|
|
14528
|
+
billType: item.type,
|
|
14529
|
+
billTag: item.tags
|
|
14530
|
+
});
|
|
14531
|
+
});
|
|
14532
|
+
resolve(list);
|
|
14533
|
+
} else {
|
|
14534
|
+
resolve([]);
|
|
14535
|
+
}
|
|
14536
|
+
// 延迟10秒清除,保证订单的时效性
|
|
14537
|
+
setTimeout(function () {
|
|
14538
|
+
singletonMap$2.delete(orderNo);
|
|
14539
|
+
}, 1000 * 10);
|
|
14540
|
+
} else {
|
|
14541
|
+
doReject(data);
|
|
14542
|
+
}
|
|
14543
|
+
}).catch(doReject);
|
|
14544
|
+
});
|
|
14545
|
+
singletonMap$2.set(orderNo, p);
|
|
14546
|
+
}
|
|
14547
|
+
return singletonMap$2.get(orderNo);
|
|
14548
|
+
};
|
|
14549
|
+
var kmUtils = {
|
|
14550
|
+
getOrderListSingleton: getOrderListSingleton
|
|
14551
|
+
};
|
|
14552
|
+
|
|
14224
14553
|
var columnsMap = {
|
|
14225
14554
|
BS_SYSTEM_ORDER: [{
|
|
14226
14555
|
title: '单据类型',
|
|
@@ -14250,6 +14579,7 @@ var columnsMap = {
|
|
|
14250
14579
|
// },
|
|
14251
14580
|
],
|
|
14252
14581
|
|
|
14582
|
+
KM_SYSTEM_ORDER: kmkfUtils.KM_SYSTEM_ORDER_CONFIG.columns,
|
|
14253
14583
|
WLN_SYSTEM_ORDER: [{
|
|
14254
14584
|
title: '订单类型',
|
|
14255
14585
|
dataIndex: 'billType',
|
|
@@ -14346,6 +14676,7 @@ var columnsMap = {
|
|
|
14346
14676
|
};
|
|
14347
14677
|
var rowKeyMap = {
|
|
14348
14678
|
BS_SYSTEM_ORDER: 'billNo',
|
|
14679
|
+
KM_SYSTEM_ORDER: 'billNo',
|
|
14349
14680
|
WLN_SYSTEM_ORDER: 'billNo',
|
|
14350
14681
|
WDT_SYSTEM_ORDER: 'billNo',
|
|
14351
14682
|
BS_E3_SYSTEM_ORDER: 'orderSn'
|
|
@@ -14362,6 +14693,8 @@ var index$1 = (function (props) {
|
|
|
14362
14693
|
onceRef.current = true;
|
|
14363
14694
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
14364
14695
|
getOrderList(value.orderNo);
|
|
14696
|
+
} else if (type === 'KM_SYSTEM_ORDER') {
|
|
14697
|
+
getKmOrderList(value.orderNo);
|
|
14365
14698
|
} else if (type === 'WLN_SYSTEM_ORDER') {
|
|
14366
14699
|
getWlnOrderList(value.orderNo);
|
|
14367
14700
|
} else if (type === 'WDT_SYSTEM_ORDER') {
|
|
@@ -14523,6 +14856,37 @@ var index$1 = (function (props) {
|
|
|
14523
14856
|
return _ref5.apply(this, arguments);
|
|
14524
14857
|
};
|
|
14525
14858
|
}();
|
|
14859
|
+
var getKmOrderList = /*#__PURE__*/function () {
|
|
14860
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(orderNo) {
|
|
14861
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
14862
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
14863
|
+
case 0:
|
|
14864
|
+
kmUtils.getOrderListSingleton(orderNo).then(function (trades) {
|
|
14865
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
14866
|
+
orders: trades,
|
|
14867
|
+
showOrderInfo: trades.map(function (_ref7) {
|
|
14868
|
+
var billNo = _ref7.billNo,
|
|
14869
|
+
billType = _ref7.billType,
|
|
14870
|
+
billTag = _ref7.billTag;
|
|
14871
|
+
return {
|
|
14872
|
+
billNo: billNo,
|
|
14873
|
+
billType: billType,
|
|
14874
|
+
billTag: billTag
|
|
14875
|
+
};
|
|
14876
|
+
})
|
|
14877
|
+
}));
|
|
14878
|
+
});
|
|
14879
|
+
onceRef.current = false;
|
|
14880
|
+
case 2:
|
|
14881
|
+
case "end":
|
|
14882
|
+
return _context5.stop();
|
|
14883
|
+
}
|
|
14884
|
+
}, _callee5);
|
|
14885
|
+
}));
|
|
14886
|
+
return function getKmOrderList(_x5) {
|
|
14887
|
+
return _ref6.apply(this, arguments);
|
|
14888
|
+
};
|
|
14889
|
+
}();
|
|
14526
14890
|
var rowSelection = {
|
|
14527
14891
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
14528
14892
|
fixed: true,
|
|
@@ -15093,7 +15457,7 @@ var typeMap$1 = {
|
|
|
15093
15457
|
}
|
|
15094
15458
|
};
|
|
15095
15459
|
var wdtReissue = function wdtReissue(props) {
|
|
15096
|
-
var _value$wdtSystemOrder, _typeMap$
|
|
15460
|
+
var _value$wdtSystemOrder, _typeMap$type26, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
15097
15461
|
var value = props.value,
|
|
15098
15462
|
onChange = props.onChange,
|
|
15099
15463
|
_props$reasonList = props.reasonList,
|
|
@@ -15253,11 +15617,26 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15253
15617
|
}
|
|
15254
15618
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15255
15619
|
};
|
|
15620
|
+
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
15621
|
+
var _typeMap$type23, _typeMap$type24, _uniqBy, _typeMap$type25;
|
|
15622
|
+
var newValue = _objectSpread2({}, value);
|
|
15623
|
+
// 原订单商品
|
|
15624
|
+
var originTradeGoodList = getGoodDetails({
|
|
15625
|
+
mode: isStrict
|
|
15626
|
+
}) || [];
|
|
15627
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
15628
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)]) || [];
|
|
15629
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
15630
|
+
return skuList.includes(item.uuid);
|
|
15631
|
+
});
|
|
15632
|
+
console.log('商品发生变化', newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)]);
|
|
15633
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15634
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)], isStrict]);
|
|
15256
15635
|
//显示选择商品按钮 原单换不显示选择商品
|
|
15257
15636
|
var showChangeBtn = React.useMemo(function () {
|
|
15258
|
-
var _typeMap$
|
|
15259
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15260
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15637
|
+
var _typeMap$type27;
|
|
15638
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
|
|
15639
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
|
|
15261
15640
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
15262
15641
|
gutter: 8,
|
|
15263
15642
|
wrap: true
|
|
@@ -15275,12 +15654,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15275
15654
|
},
|
|
15276
15655
|
disabled: disabled,
|
|
15277
15656
|
allowClear: false,
|
|
15278
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15657
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type29 = typeMap$1[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo)],
|
|
15279
15658
|
onChange: function onChange(val) {
|
|
15280
15659
|
return changeSystemOrderHandle(val);
|
|
15281
15660
|
},
|
|
15282
15661
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
15283
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
15662
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type30 = typeMap$1[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
15284
15663
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
15285
15664
|
key: item.billNo,
|
|
15286
15665
|
value: item.billNo,
|
|
@@ -15301,7 +15680,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15301
15680
|
disabled: disabled,
|
|
15302
15681
|
allowClear: false,
|
|
15303
15682
|
options: reasonList,
|
|
15304
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15683
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type31 = typeMap$1[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName)],
|
|
15305
15684
|
onChange: function onChange(val) {
|
|
15306
15685
|
return changeTypeHandle(val);
|
|
15307
15686
|
}
|
|
@@ -15313,13 +15692,19 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15313
15692
|
canUpdateNumber: showChangeBtn,
|
|
15314
15693
|
showChangeBtn: showChangeBtn,
|
|
15315
15694
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
15316
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15695
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type32 = typeMap$1[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)],
|
|
15317
15696
|
onChange: function onChange(val) {
|
|
15318
15697
|
return changeGoodHandle(val);
|
|
15319
15698
|
},
|
|
15320
15699
|
onModeChange: handleModeChange,
|
|
15321
15700
|
showModeBtn: showModeBtn,
|
|
15322
|
-
isStrict: isStrict
|
|
15701
|
+
isStrict: isStrict,
|
|
15702
|
+
tradeGoods: {
|
|
15703
|
+
originDataSource: getGoodDetails({
|
|
15704
|
+
mode: isStrict
|
|
15705
|
+
}),
|
|
15706
|
+
selectedGoodsChange: selectedGoodsChange
|
|
15707
|
+
}
|
|
15323
15708
|
})));
|
|
15324
15709
|
};
|
|
15325
15710
|
|
|
@@ -16104,7 +16489,7 @@ var typeMap$2 = {
|
|
|
16104
16489
|
}
|
|
16105
16490
|
};
|
|
16106
16491
|
var bsE3Reissue = function bsE3Reissue(props) {
|
|
16107
|
-
var _typeMap$type21, _typeMap$
|
|
16492
|
+
var _typeMap$type21, _typeMap$type24, _typeMap$type25, _value$typeMap$type$s5, _typeMap$type26, _typeMap$type27, _typeMap$type28;
|
|
16108
16493
|
var value = props.value,
|
|
16109
16494
|
onChange = props.onChange,
|
|
16110
16495
|
_props$reasonList = props.reasonList,
|
|
@@ -16242,15 +16627,19 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16242
16627
|
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo]);
|
|
16243
16628
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrderNo]]);
|
|
16244
16629
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
16245
|
-
var _typeMap$type22,
|
|
16630
|
+
var _typeMap$type22, _typeMap$type23, _uniqBy;
|
|
16246
16631
|
var newValue = _objectSpread2({}, value);
|
|
16247
|
-
|
|
16632
|
+
// 原订单商品
|
|
16633
|
+
var originTradeGoodList = getGoodDetails({
|
|
16248
16634
|
mode: isStrict
|
|
16249
|
-
})
|
|
16250
|
-
|
|
16635
|
+
}) || [];
|
|
16636
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
16637
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)]) || [];
|
|
16638
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
16639
|
+
return skuList.includes(item.uuid);
|
|
16251
16640
|
});
|
|
16252
16641
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16253
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
16642
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)], isStrict]);
|
|
16254
16643
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
16255
16644
|
gutter: 8,
|
|
16256
16645
|
wrap: true,
|
|
@@ -16269,12 +16658,12 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16269
16658
|
},
|
|
16270
16659
|
disabled: disabled,
|
|
16271
16660
|
allowClear: false,
|
|
16272
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
16661
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo)],
|
|
16273
16662
|
onChange: function onChange(val) {
|
|
16274
16663
|
return changeSystemOrderHandle(val);
|
|
16275
16664
|
},
|
|
16276
16665
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
16277
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
16666
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
16278
16667
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
16279
16668
|
key: item.billNo,
|
|
16280
16669
|
value: item.billNo,
|
|
@@ -16295,7 +16684,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16295
16684
|
disabled: disabled,
|
|
16296
16685
|
allowClear: false,
|
|
16297
16686
|
options: reasonList,
|
|
16298
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
16687
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.typeName)],
|
|
16299
16688
|
onChange: function onChange(val) {
|
|
16300
16689
|
return changeTypeHandle(val);
|
|
16301
16690
|
}
|
|
@@ -16307,7 +16696,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16307
16696
|
canUpdateNumber: showChangeBtn,
|
|
16308
16697
|
showChangeBtn: showChangeBtn,
|
|
16309
16698
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
16310
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
16699
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)],
|
|
16311
16700
|
onChange: function onChange(val) {
|
|
16312
16701
|
return changeGoodHandle(val);
|
|
16313
16702
|
},
|