@kmkf-fe-packages/basic-components 2.2.38-rc.1 → 2.2.38-rc.3
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 +163 -46
- package/dist/index.js +163 -46
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -14815,6 +14815,16 @@ var wdtColumns = [{
|
|
|
14815
14815
|
render: function render(price) {
|
|
14816
14816
|
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14817
14817
|
}
|
|
14818
|
+
}, {
|
|
14819
|
+
dataIndex: 'unitName',
|
|
14820
|
+
title: '基本单位',
|
|
14821
|
+
width: 150,
|
|
14822
|
+
render: renderTextEllipsis
|
|
14823
|
+
}, {
|
|
14824
|
+
dataIndex: 'auxUnitName',
|
|
14825
|
+
title: '辅助单位',
|
|
14826
|
+
width: 150,
|
|
14827
|
+
render: renderTextEllipsis
|
|
14818
14828
|
}];
|
|
14819
14829
|
|
|
14820
14830
|
var bse3Columns = [{
|
|
@@ -18980,6 +18990,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18980
18990
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
18981
18991
|
width: 100,
|
|
18982
18992
|
render: renderGiftType
|
|
18993
|
+
}, {
|
|
18994
|
+
dataIndex: 'unitName',
|
|
18995
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
18996
|
+
ellipsis: true,
|
|
18997
|
+
width: 150,
|
|
18998
|
+
align: 'center',
|
|
18999
|
+
render: renderTextEllipsis
|
|
19000
|
+
}, {
|
|
19001
|
+
dataIndex: 'auxUnitName',
|
|
19002
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
19003
|
+
ellipsis: true,
|
|
19004
|
+
width: 150,
|
|
19005
|
+
align: 'center',
|
|
19006
|
+
render: renderTextEllipsis
|
|
18983
19007
|
}],
|
|
18984
19008
|
//旺店通商品信息
|
|
18985
19009
|
WDT_GOODS: [{
|
|
@@ -19103,7 +19127,22 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19103
19127
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
19104
19128
|
align: 'center',
|
|
19105
19129
|
ellipsis: true,
|
|
19106
|
-
width: 100
|
|
19130
|
+
width: 100,
|
|
19131
|
+
render: renderGiftType
|
|
19132
|
+
}, {
|
|
19133
|
+
dataIndex: 'unitName',
|
|
19134
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
19135
|
+
ellipsis: true,
|
|
19136
|
+
width: 150,
|
|
19137
|
+
align: 'center',
|
|
19138
|
+
render: renderTextEllipsis
|
|
19139
|
+
}, {
|
|
19140
|
+
dataIndex: 'auxUnitName',
|
|
19141
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
19142
|
+
ellipsis: true,
|
|
19143
|
+
width: 150,
|
|
19144
|
+
align: 'center',
|
|
19145
|
+
render: renderTextEllipsis
|
|
19107
19146
|
}],
|
|
19108
19147
|
//旺店通退货商品信息
|
|
19109
19148
|
WDT_RETURN_GOODS: [{
|
|
@@ -19267,6 +19306,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19267
19306
|
}
|
|
19268
19307
|
}) : /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
19269
19308
|
}
|
|
19309
|
+
}, {
|
|
19310
|
+
dataIndex: 'unitName',
|
|
19311
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
19312
|
+
ellipsis: true,
|
|
19313
|
+
width: 150,
|
|
19314
|
+
align: 'center',
|
|
19315
|
+
render: renderTextEllipsis
|
|
19316
|
+
}, {
|
|
19317
|
+
dataIndex: 'auxUnitName',
|
|
19318
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
19319
|
+
ellipsis: true,
|
|
19320
|
+
width: 150,
|
|
19321
|
+
align: 'center',
|
|
19322
|
+
render: renderTextEllipsis
|
|
19270
19323
|
}],
|
|
19271
19324
|
//旺店通换出商品信息
|
|
19272
19325
|
WDT_EXCHANGE_GOODS: [{
|
|
@@ -19430,6 +19483,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19430
19483
|
}
|
|
19431
19484
|
}) : /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
19432
19485
|
}
|
|
19486
|
+
}, {
|
|
19487
|
+
dataIndex: 'unitName',
|
|
19488
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
19489
|
+
ellipsis: true,
|
|
19490
|
+
width: 150,
|
|
19491
|
+
align: 'center',
|
|
19492
|
+
render: renderTextEllipsis
|
|
19493
|
+
}, {
|
|
19494
|
+
dataIndex: 'auxUnitName',
|
|
19495
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
19496
|
+
ellipsis: true,
|
|
19497
|
+
width: 150,
|
|
19498
|
+
align: 'center',
|
|
19499
|
+
render: renderTextEllipsis
|
|
19433
19500
|
}],
|
|
19434
19501
|
// 旺店通售后商品信息
|
|
19435
19502
|
WDT_AFTERSALE_GOODS: [{
|
|
@@ -19585,6 +19652,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19585
19652
|
align: 'center',
|
|
19586
19653
|
ellipsis: true,
|
|
19587
19654
|
render: renderTextEllipsis
|
|
19655
|
+
}, {
|
|
19656
|
+
dataIndex: 'unitName',
|
|
19657
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
19658
|
+
ellipsis: true,
|
|
19659
|
+
width: 150,
|
|
19660
|
+
align: 'center',
|
|
19661
|
+
render: renderTextEllipsis
|
|
19662
|
+
}, {
|
|
19663
|
+
dataIndex: 'auxUnitName',
|
|
19664
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
19665
|
+
ellipsis: true,
|
|
19666
|
+
width: 150,
|
|
19667
|
+
align: 'center',
|
|
19668
|
+
render: renderTextEllipsis
|
|
19588
19669
|
}]
|
|
19589
19670
|
};
|
|
19590
19671
|
};
|
|
@@ -22301,11 +22382,38 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22301
22382
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
22302
22383
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
22303
22384
|
};
|
|
22304
|
-
var rowSelection = {
|
|
22385
|
+
var rowSelection = _objectSpread2({
|
|
22305
22386
|
selectedRowKeys: selectedRowKeys,
|
|
22306
22387
|
fixed: true,
|
|
22307
22388
|
onChange: handleChangeSelectedKeys
|
|
22308
|
-
}
|
|
22389
|
+
}, type === 'JST_REISSUE_GOODS' ? {
|
|
22390
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
22391
|
+
var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
22392
|
+
return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
|
|
22393
|
+
}).map(function (item) {
|
|
22394
|
+
return item === null || item === void 0 ? void 0 : item.skuId;
|
|
22395
|
+
});
|
|
22396
|
+
var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
|
|
22397
|
+
return {
|
|
22398
|
+
disabled: isDisabled
|
|
22399
|
+
};
|
|
22400
|
+
},
|
|
22401
|
+
renderCell: function renderCell(_, record, __, originNode) {
|
|
22402
|
+
var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
22403
|
+
return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
|
|
22404
|
+
}).map(function (item) {
|
|
22405
|
+
return item === null || item === void 0 ? void 0 : item.skuId;
|
|
22406
|
+
});
|
|
22407
|
+
var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
|
|
22408
|
+
if (isDisabled) {
|
|
22409
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
22410
|
+
title: "\u5DF2\u6DFB\u52A0\u5728\u7EC4\u4EF6\u4E2D\uFF0C\u76F8\u540C\u5546\u54C1\u4E0D\u80FD\u91CD\u590D\u9009\u62E9"
|
|
22411
|
+
}, originNode);
|
|
22412
|
+
} else {
|
|
22413
|
+
return originNode;
|
|
22414
|
+
}
|
|
22415
|
+
}
|
|
22416
|
+
} : {});
|
|
22309
22417
|
var buttonTextMapping = {
|
|
22310
22418
|
SKX_GOODS: '选择发货单商品',
|
|
22311
22419
|
SKX_RETURN_GOODS: '选择退货单商品'
|
|
@@ -23918,7 +24026,10 @@ var index$2 = (function (props) {
|
|
|
23918
24026
|
case 0:
|
|
23919
24027
|
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
23920
24028
|
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
23921
|
-
|
|
24029
|
+
var _split;
|
|
24030
|
+
return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
|
|
24031
|
+
return tid.indexOf(orderNo) > -1;
|
|
24032
|
+
});
|
|
23922
24033
|
});
|
|
23923
24034
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23924
24035
|
orders: trades,
|
|
@@ -25028,7 +25139,10 @@ var processWdtOrders = function processWdtOrders(_ref2) {
|
|
|
25028
25139
|
var data = _ref2.data,
|
|
25029
25140
|
orderNo = _ref2.orderNo;
|
|
25030
25141
|
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25031
|
-
|
|
25142
|
+
var _split;
|
|
25143
|
+
return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
|
|
25144
|
+
return tid.indexOf(orderNo) > -1;
|
|
25145
|
+
});
|
|
25032
25146
|
});
|
|
25033
25147
|
return trades;
|
|
25034
25148
|
};
|
|
@@ -26149,8 +26263,10 @@ var typeMap$2 = {
|
|
|
26149
26263
|
goodDetailsKey: 'items',
|
|
26150
26264
|
mergeIdenticalGoods: jstMergeIdenticalGoods,
|
|
26151
26265
|
uniqueKey: 'uuid',
|
|
26152
|
-
isShowSelectTradeGoods: true
|
|
26266
|
+
isShowSelectTradeGoods: true,
|
|
26267
|
+
isSelectTradeGoodsMerge: true //为true时,选择订单商品时,合并相同商品
|
|
26153
26268
|
},
|
|
26269
|
+
|
|
26154
26270
|
JST_RETURN_GOODS: {
|
|
26155
26271
|
compType: '退货',
|
|
26156
26272
|
key: 'jstReturnGoods',
|
|
@@ -26208,7 +26324,7 @@ var typeMap$2 = {
|
|
|
26208
26324
|
}
|
|
26209
26325
|
};
|
|
26210
26326
|
var PublicReissue = function PublicReissue(props) {
|
|
26211
|
-
var _typeMap$
|
|
26327
|
+
var _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56;
|
|
26212
26328
|
var value = props.value,
|
|
26213
26329
|
onChange = props.onChange,
|
|
26214
26330
|
_props$reasonList = props.reasonList,
|
|
@@ -26325,7 +26441,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26325
26441
|
}))));
|
|
26326
26442
|
};
|
|
26327
26443
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
26328
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
|
|
26444
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
26329
26445
|
var mode = _ref4.mode,
|
|
26330
26446
|
sysOrderNo = _ref4.sysOrderNo,
|
|
26331
26447
|
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
@@ -26353,7 +26469,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26353
26469
|
var _order$typeMap$type$g;
|
|
26354
26470
|
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
26355
26471
|
});
|
|
26356
|
-
|
|
26472
|
+
console.log(type, orders, (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest));
|
|
26473
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
|
|
26357
26474
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
26358
26475
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
26359
26476
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -26361,30 +26478,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26361
26478
|
return list;
|
|
26362
26479
|
};
|
|
26363
26480
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
26364
|
-
var _typeMap$
|
|
26481
|
+
var _typeMap$type25;
|
|
26365
26482
|
var newValue = _objectSpread2({}, value);
|
|
26366
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26483
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)] = val || [];
|
|
26367
26484
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
26368
26485
|
};
|
|
26369
26486
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
26370
|
-
var _typeMap$
|
|
26487
|
+
var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
|
|
26371
26488
|
var newValue = _objectSpread2({}, value);
|
|
26372
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26373
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26374
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
26375
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
26489
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)] = val;
|
|
26490
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderBillType) {
|
|
26491
|
+
var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
|
|
26492
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
26376
26493
|
var targetOrder = val && orders.find(function (oItem) {
|
|
26377
|
-
var _typeMap$
|
|
26378
|
-
return oItem[(_typeMap$
|
|
26494
|
+
var _typeMap$type29;
|
|
26495
|
+
return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
|
|
26379
26496
|
});
|
|
26380
|
-
newValue[(_typeMap$
|
|
26497
|
+
newValue[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.orderTypeKey];
|
|
26381
26498
|
}
|
|
26382
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
26383
|
-
var _typeMap$type31;
|
|
26384
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = [];
|
|
26385
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
26499
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
26386
26500
|
var _typeMap$type33;
|
|
26387
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] =
|
|
26501
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] = [];
|
|
26502
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
26503
|
+
var _typeMap$type35;
|
|
26504
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)] = getGoodDetails({
|
|
26388
26505
|
mode: isStrict,
|
|
26389
26506
|
sysOrderNo: val
|
|
26390
26507
|
});
|
|
@@ -26392,27 +26509,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26392
26509
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
26393
26510
|
};
|
|
26394
26511
|
//显示选择商品按钮
|
|
26395
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
26512
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.systemOrderNo]);
|
|
26396
26513
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
26397
|
-
var _typeMap$
|
|
26514
|
+
var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
|
|
26398
26515
|
var newValue = _objectSpread2({}, value);
|
|
26399
26516
|
// 原订单商品
|
|
26400
26517
|
var originTradeGoodList = getGoodDetails({
|
|
26401
26518
|
mode: isStrict,
|
|
26402
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26519
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.isShowSelectTradeGoods
|
|
26403
26520
|
}) || [];
|
|
26404
26521
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
26405
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26406
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26407
|
-
var _typeMap$
|
|
26408
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26522
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)]) || [];
|
|
26523
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
26524
|
+
var _typeMap$type41;
|
|
26525
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.uniqueKey) || 'uuid']);
|
|
26409
26526
|
});
|
|
26410
26527
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
26411
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26528
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key)], isStrict]);
|
|
26412
26529
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
26413
26530
|
gutter: 8,
|
|
26414
26531
|
wrap: true,
|
|
26415
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26532
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.key) || "".concat(Date.now())
|
|
26416
26533
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
26417
26534
|
className: "gutter-row",
|
|
26418
26535
|
xs: {
|
|
@@ -26428,12 +26545,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26428
26545
|
},
|
|
26429
26546
|
disabled: disabled,
|
|
26430
26547
|
allowClear: false,
|
|
26431
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26548
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrderNo)],
|
|
26432
26549
|
onChange: function onChange(val) {
|
|
26433
26550
|
return changeSystemOrderHandle(val);
|
|
26434
26551
|
},
|
|
26435
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26436
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
26552
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
26553
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
26437
26554
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
26438
26555
|
key: item[typeMap$2[type].oIdKey],
|
|
26439
26556
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -26455,11 +26572,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26455
26572
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
26456
26573
|
allowClear: false,
|
|
26457
26574
|
options: reasonList,
|
|
26458
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26575
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.typeName)],
|
|
26459
26576
|
onChange: function onChange(val) {
|
|
26460
26577
|
return changeTypeHandle(val);
|
|
26461
26578
|
}
|
|
26462
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26579
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
26463
26580
|
className: "gutter-row",
|
|
26464
26581
|
xs: {
|
|
26465
26582
|
span: 11
|
|
@@ -26468,7 +26585,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26468
26585
|
span: 6
|
|
26469
26586
|
}
|
|
26470
26587
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
26471
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26588
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.systemOrderBillType)],
|
|
26472
26589
|
disabled: disabled,
|
|
26473
26590
|
readOnly: true
|
|
26474
26591
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -26479,25 +26596,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26479
26596
|
canUpdateNumber: showChangeBtn,
|
|
26480
26597
|
hasSelectedSystemOrder: showChangeBtn,
|
|
26481
26598
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
26482
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26599
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.alwaysShowChooseErpGoodsBtn,
|
|
26483
26600
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
26484
26601
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
26485
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26602
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.key)],
|
|
26486
26603
|
onChange: function onChange(val) {
|
|
26487
26604
|
return changeGoodHandle(val);
|
|
26488
26605
|
},
|
|
26489
26606
|
onModeChange: handleModeChange,
|
|
26490
26607
|
showModeBtn: false,
|
|
26491
26608
|
isStrict: isStrict,
|
|
26492
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26493
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
26494
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26609
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
|
|
26610
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
26611
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrderNo)]] : [],
|
|
26495
26612
|
tradeGoods: {
|
|
26496
26613
|
originDataSource: getGoodDetails({
|
|
26497
26614
|
mode: isStrict,
|
|
26498
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26615
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods
|
|
26499
26616
|
}),
|
|
26500
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26617
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.uniqueKey) || 'uuid',
|
|
26501
26618
|
selectedGoodsChange: selectedGoodsChange
|
|
26502
26619
|
}
|
|
26503
26620
|
})));
|
package/dist/index.js
CHANGED
|
@@ -14830,6 +14830,16 @@ var wdtColumns = [{
|
|
|
14830
14830
|
render: function render(price) {
|
|
14831
14831
|
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14832
14832
|
}
|
|
14833
|
+
}, {
|
|
14834
|
+
dataIndex: 'unitName',
|
|
14835
|
+
title: '基本单位',
|
|
14836
|
+
width: 150,
|
|
14837
|
+
render: renderTextEllipsis
|
|
14838
|
+
}, {
|
|
14839
|
+
dataIndex: 'auxUnitName',
|
|
14840
|
+
title: '辅助单位',
|
|
14841
|
+
width: 150,
|
|
14842
|
+
render: renderTextEllipsis
|
|
14833
14843
|
}];
|
|
14834
14844
|
|
|
14835
14845
|
var bse3Columns = [{
|
|
@@ -18995,6 +19005,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
18995
19005
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
18996
19006
|
width: 100,
|
|
18997
19007
|
render: renderGiftType
|
|
19008
|
+
}, {
|
|
19009
|
+
dataIndex: 'unitName',
|
|
19010
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
19011
|
+
ellipsis: true,
|
|
19012
|
+
width: 150,
|
|
19013
|
+
align: 'center',
|
|
19014
|
+
render: renderTextEllipsis
|
|
19015
|
+
}, {
|
|
19016
|
+
dataIndex: 'auxUnitName',
|
|
19017
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
19018
|
+
ellipsis: true,
|
|
19019
|
+
width: 150,
|
|
19020
|
+
align: 'center',
|
|
19021
|
+
render: renderTextEllipsis
|
|
18998
19022
|
}],
|
|
18999
19023
|
//旺店通商品信息
|
|
19000
19024
|
WDT_GOODS: [{
|
|
@@ -19118,7 +19142,22 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19118
19142
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
19119
19143
|
align: 'center',
|
|
19120
19144
|
ellipsis: true,
|
|
19121
|
-
width: 100
|
|
19145
|
+
width: 100,
|
|
19146
|
+
render: renderGiftType
|
|
19147
|
+
}, {
|
|
19148
|
+
dataIndex: 'unitName',
|
|
19149
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
19150
|
+
ellipsis: true,
|
|
19151
|
+
width: 150,
|
|
19152
|
+
align: 'center',
|
|
19153
|
+
render: renderTextEllipsis
|
|
19154
|
+
}, {
|
|
19155
|
+
dataIndex: 'auxUnitName',
|
|
19156
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
19157
|
+
ellipsis: true,
|
|
19158
|
+
width: 150,
|
|
19159
|
+
align: 'center',
|
|
19160
|
+
render: renderTextEllipsis
|
|
19122
19161
|
}],
|
|
19123
19162
|
//旺店通退货商品信息
|
|
19124
19163
|
WDT_RETURN_GOODS: [{
|
|
@@ -19282,6 +19321,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19282
19321
|
}
|
|
19283
19322
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeMap[val]);
|
|
19284
19323
|
}
|
|
19324
|
+
}, {
|
|
19325
|
+
dataIndex: 'unitName',
|
|
19326
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
19327
|
+
ellipsis: true,
|
|
19328
|
+
width: 150,
|
|
19329
|
+
align: 'center',
|
|
19330
|
+
render: renderTextEllipsis
|
|
19331
|
+
}, {
|
|
19332
|
+
dataIndex: 'auxUnitName',
|
|
19333
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
19334
|
+
ellipsis: true,
|
|
19335
|
+
width: 150,
|
|
19336
|
+
align: 'center',
|
|
19337
|
+
render: renderTextEllipsis
|
|
19285
19338
|
}],
|
|
19286
19339
|
//旺店通换出商品信息
|
|
19287
19340
|
WDT_EXCHANGE_GOODS: [{
|
|
@@ -19445,6 +19498,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19445
19498
|
}
|
|
19446
19499
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeMap[val]);
|
|
19447
19500
|
}
|
|
19501
|
+
}, {
|
|
19502
|
+
dataIndex: 'unitName',
|
|
19503
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
19504
|
+
ellipsis: true,
|
|
19505
|
+
width: 150,
|
|
19506
|
+
align: 'center',
|
|
19507
|
+
render: renderTextEllipsis
|
|
19508
|
+
}, {
|
|
19509
|
+
dataIndex: 'auxUnitName',
|
|
19510
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
19511
|
+
ellipsis: true,
|
|
19512
|
+
width: 150,
|
|
19513
|
+
align: 'center',
|
|
19514
|
+
render: renderTextEllipsis
|
|
19448
19515
|
}],
|
|
19449
19516
|
// 旺店通售后商品信息
|
|
19450
19517
|
WDT_AFTERSALE_GOODS: [{
|
|
@@ -19600,6 +19667,20 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19600
19667
|
align: 'center',
|
|
19601
19668
|
ellipsis: true,
|
|
19602
19669
|
render: renderTextEllipsis
|
|
19670
|
+
}, {
|
|
19671
|
+
dataIndex: 'unitName',
|
|
19672
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
19673
|
+
ellipsis: true,
|
|
19674
|
+
width: 150,
|
|
19675
|
+
align: 'center',
|
|
19676
|
+
render: renderTextEllipsis
|
|
19677
|
+
}, {
|
|
19678
|
+
dataIndex: 'auxUnitName',
|
|
19679
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
19680
|
+
ellipsis: true,
|
|
19681
|
+
width: 150,
|
|
19682
|
+
align: 'center',
|
|
19683
|
+
render: renderTextEllipsis
|
|
19603
19684
|
}]
|
|
19604
19685
|
};
|
|
19605
19686
|
};
|
|
@@ -22316,11 +22397,38 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22316
22397
|
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
22317
22398
|
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
22318
22399
|
};
|
|
22319
|
-
var rowSelection = {
|
|
22400
|
+
var rowSelection = _objectSpread2({
|
|
22320
22401
|
selectedRowKeys: selectedRowKeys,
|
|
22321
22402
|
fixed: true,
|
|
22322
22403
|
onChange: handleChangeSelectedKeys
|
|
22323
|
-
}
|
|
22404
|
+
}, type === 'JST_REISSUE_GOODS' ? {
|
|
22405
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
22406
|
+
var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
22407
|
+
return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
|
|
22408
|
+
}).map(function (item) {
|
|
22409
|
+
return item === null || item === void 0 ? void 0 : item.skuId;
|
|
22410
|
+
});
|
|
22411
|
+
var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
|
|
22412
|
+
return {
|
|
22413
|
+
disabled: isDisabled
|
|
22414
|
+
};
|
|
22415
|
+
},
|
|
22416
|
+
renderCell: function renderCell(_, record, __, originNode) {
|
|
22417
|
+
var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
22418
|
+
return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
|
|
22419
|
+
}).map(function (item) {
|
|
22420
|
+
return item === null || item === void 0 ? void 0 : item.skuId;
|
|
22421
|
+
});
|
|
22422
|
+
var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
|
|
22423
|
+
if (isDisabled) {
|
|
22424
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
22425
|
+
title: "\u5DF2\u6DFB\u52A0\u5728\u7EC4\u4EF6\u4E2D\uFF0C\u76F8\u540C\u5546\u54C1\u4E0D\u80FD\u91CD\u590D\u9009\u62E9"
|
|
22426
|
+
}, originNode);
|
|
22427
|
+
} else {
|
|
22428
|
+
return originNode;
|
|
22429
|
+
}
|
|
22430
|
+
}
|
|
22431
|
+
} : {});
|
|
22324
22432
|
var buttonTextMapping = {
|
|
22325
22433
|
SKX_GOODS: '选择发货单商品',
|
|
22326
22434
|
SKX_RETURN_GOODS: '选择退货单商品'
|
|
@@ -23933,7 +24041,10 @@ var index$2 = (function (props) {
|
|
|
23933
24041
|
case 0:
|
|
23934
24042
|
wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
|
|
23935
24043
|
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
23936
|
-
|
|
24044
|
+
var _split;
|
|
24045
|
+
return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
|
|
24046
|
+
return tid.indexOf(orderNo) > -1;
|
|
24047
|
+
});
|
|
23937
24048
|
});
|
|
23938
24049
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
23939
24050
|
orders: trades,
|
|
@@ -25043,7 +25154,10 @@ var processWdtOrders = function processWdtOrders(_ref2) {
|
|
|
25043
25154
|
var data = _ref2.data,
|
|
25044
25155
|
orderNo = _ref2.orderNo;
|
|
25045
25156
|
var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
|
|
25046
|
-
|
|
25157
|
+
var _split;
|
|
25158
|
+
return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
|
|
25159
|
+
return tid.indexOf(orderNo) > -1;
|
|
25160
|
+
});
|
|
25047
25161
|
});
|
|
25048
25162
|
return trades;
|
|
25049
25163
|
};
|
|
@@ -26164,8 +26278,10 @@ var typeMap$2 = {
|
|
|
26164
26278
|
goodDetailsKey: 'items',
|
|
26165
26279
|
mergeIdenticalGoods: kmkfUtils.jstMergeIdenticalGoods,
|
|
26166
26280
|
uniqueKey: 'uuid',
|
|
26167
|
-
isShowSelectTradeGoods: true
|
|
26281
|
+
isShowSelectTradeGoods: true,
|
|
26282
|
+
isSelectTradeGoodsMerge: true //为true时,选择订单商品时,合并相同商品
|
|
26168
26283
|
},
|
|
26284
|
+
|
|
26169
26285
|
JST_RETURN_GOODS: {
|
|
26170
26286
|
compType: '退货',
|
|
26171
26287
|
key: 'jstReturnGoods',
|
|
@@ -26223,7 +26339,7 @@ var typeMap$2 = {
|
|
|
26223
26339
|
}
|
|
26224
26340
|
};
|
|
26225
26341
|
var PublicReissue = function PublicReissue(props) {
|
|
26226
|
-
var _typeMap$
|
|
26342
|
+
var _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56;
|
|
26227
26343
|
var value = props.value,
|
|
26228
26344
|
onChange = props.onChange,
|
|
26229
26345
|
_props$reasonList = props.reasonList,
|
|
@@ -26340,7 +26456,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26340
26456
|
}))));
|
|
26341
26457
|
};
|
|
26342
26458
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
26343
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
|
|
26459
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
26344
26460
|
var mode = _ref4.mode,
|
|
26345
26461
|
sysOrderNo = _ref4.sysOrderNo,
|
|
26346
26462
|
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
@@ -26368,7 +26484,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26368
26484
|
var _order$typeMap$type$g;
|
|
26369
26485
|
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
26370
26486
|
});
|
|
26371
|
-
|
|
26487
|
+
console.log(type, orders, (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest));
|
|
26488
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
|
|
26372
26489
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
26373
26490
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
26374
26491
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -26376,30 +26493,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26376
26493
|
return list;
|
|
26377
26494
|
};
|
|
26378
26495
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
26379
|
-
var _typeMap$
|
|
26496
|
+
var _typeMap$type25;
|
|
26380
26497
|
var newValue = _objectSpread2({}, value);
|
|
26381
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26498
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)] = val || [];
|
|
26382
26499
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
26383
26500
|
};
|
|
26384
26501
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
26385
|
-
var _typeMap$
|
|
26502
|
+
var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
|
|
26386
26503
|
var newValue = _objectSpread2({}, value);
|
|
26387
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26388
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26389
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
26390
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
26504
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)] = val;
|
|
26505
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderBillType) {
|
|
26506
|
+
var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
|
|
26507
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
26391
26508
|
var targetOrder = val && orders.find(function (oItem) {
|
|
26392
|
-
var _typeMap$
|
|
26393
|
-
return oItem[(_typeMap$
|
|
26509
|
+
var _typeMap$type29;
|
|
26510
|
+
return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
|
|
26394
26511
|
});
|
|
26395
|
-
newValue[(_typeMap$
|
|
26512
|
+
newValue[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.orderTypeKey];
|
|
26396
26513
|
}
|
|
26397
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
26398
|
-
var _typeMap$type31;
|
|
26399
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = [];
|
|
26400
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
26514
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
26401
26515
|
var _typeMap$type33;
|
|
26402
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] =
|
|
26516
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] = [];
|
|
26517
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
26518
|
+
var _typeMap$type35;
|
|
26519
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)] = getGoodDetails({
|
|
26403
26520
|
mode: isStrict,
|
|
26404
26521
|
sysOrderNo: val
|
|
26405
26522
|
});
|
|
@@ -26407,27 +26524,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26407
26524
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
26408
26525
|
};
|
|
26409
26526
|
//显示选择商品按钮
|
|
26410
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
26527
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.systemOrderNo]);
|
|
26411
26528
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
26412
|
-
var _typeMap$
|
|
26529
|
+
var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
|
|
26413
26530
|
var newValue = _objectSpread2({}, value);
|
|
26414
26531
|
// 原订单商品
|
|
26415
26532
|
var originTradeGoodList = getGoodDetails({
|
|
26416
26533
|
mode: isStrict,
|
|
26417
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26534
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.isShowSelectTradeGoods
|
|
26418
26535
|
}) || [];
|
|
26419
26536
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
26420
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26421
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26422
|
-
var _typeMap$
|
|
26423
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26537
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)]) || [];
|
|
26538
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
26539
|
+
var _typeMap$type41;
|
|
26540
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.uniqueKey) || 'uuid']);
|
|
26424
26541
|
});
|
|
26425
26542
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
26426
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26543
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key)], isStrict]);
|
|
26427
26544
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
26428
26545
|
gutter: 8,
|
|
26429
26546
|
wrap: true,
|
|
26430
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26547
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.key) || "".concat(Date.now())
|
|
26431
26548
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
26432
26549
|
className: "gutter-row",
|
|
26433
26550
|
xs: {
|
|
@@ -26443,12 +26560,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26443
26560
|
},
|
|
26444
26561
|
disabled: disabled,
|
|
26445
26562
|
allowClear: false,
|
|
26446
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26563
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrderNo)],
|
|
26447
26564
|
onChange: function onChange(val) {
|
|
26448
26565
|
return changeSystemOrderHandle(val);
|
|
26449
26566
|
},
|
|
26450
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26451
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
26567
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
26568
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
26452
26569
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
26453
26570
|
key: item[typeMap$2[type].oIdKey],
|
|
26454
26571
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -26470,11 +26587,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26470
26587
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
26471
26588
|
allowClear: false,
|
|
26472
26589
|
options: reasonList,
|
|
26473
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26590
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.typeName)],
|
|
26474
26591
|
onChange: function onChange(val) {
|
|
26475
26592
|
return changeTypeHandle(val);
|
|
26476
26593
|
}
|
|
26477
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26594
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
26478
26595
|
className: "gutter-row",
|
|
26479
26596
|
xs: {
|
|
26480
26597
|
span: 11
|
|
@@ -26483,7 +26600,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26483
26600
|
span: 6
|
|
26484
26601
|
}
|
|
26485
26602
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
26486
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26603
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.systemOrderBillType)],
|
|
26487
26604
|
disabled: disabled,
|
|
26488
26605
|
readOnly: true
|
|
26489
26606
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -26494,25 +26611,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
26494
26611
|
canUpdateNumber: showChangeBtn,
|
|
26495
26612
|
hasSelectedSystemOrder: showChangeBtn,
|
|
26496
26613
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
26497
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26614
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.alwaysShowChooseErpGoodsBtn,
|
|
26498
26615
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
26499
26616
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
26500
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26617
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.key)],
|
|
26501
26618
|
onChange: function onChange(val) {
|
|
26502
26619
|
return changeGoodHandle(val);
|
|
26503
26620
|
},
|
|
26504
26621
|
onModeChange: handleModeChange,
|
|
26505
26622
|
showModeBtn: false,
|
|
26506
26623
|
isStrict: isStrict,
|
|
26507
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26508
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
26509
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26624
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
|
|
26625
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
26626
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrderNo)]] : [],
|
|
26510
26627
|
tradeGoods: {
|
|
26511
26628
|
originDataSource: getGoodDetails({
|
|
26512
26629
|
mode: isStrict,
|
|
26513
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26630
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods
|
|
26514
26631
|
}),
|
|
26515
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
26632
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.uniqueKey) || 'uuid',
|
|
26516
26633
|
selectedGoodsChange: selectedGoodsChange
|
|
26517
26634
|
}
|
|
26518
26635
|
})));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.2.38-rc.
|
|
3
|
+
"version": "2.2.38-rc.3",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.38-rc.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.38-rc.3",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "f9c8271de0a33bc3f069262441e76a73db5da9b6"
|
|
70
70
|
}
|