@kmkf-fe-packages/basic-components 2.2.13-beta.35 → 2.2.13-beta.36
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 +59 -46
- package/dist/index.js +59 -46
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -21434,7 +21434,8 @@ var systemOrderNoMap = {
|
|
|
21434
21434
|
BS_E3_GOODS: 'orderSn',
|
|
21435
21435
|
JST_GOODS: 'oId',
|
|
21436
21436
|
WLN_GOODS: 'tradeNo',
|
|
21437
|
-
JY_GOODS: 'tradeNo'
|
|
21437
|
+
JY_GOODS: 'tradeNo',
|
|
21438
|
+
JY_REISSUE_GOODS: 'tradeNo'
|
|
21438
21439
|
};
|
|
21439
21440
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
21440
21441
|
var columns = _ref.columns,
|
|
@@ -21629,7 +21630,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21629
21630
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
21630
21631
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
21631
21632
|
// 判断是否为商品信息组件
|
|
21632
|
-
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS'].includes(type) || false;
|
|
21633
|
+
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
21633
21634
|
var refModal = useRef();
|
|
21634
21635
|
console.debug('表格数据', value);
|
|
21635
21636
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -25321,11 +25322,12 @@ var typeMap$2 = {
|
|
|
25321
25322
|
orderTypeKey: 'orderType',
|
|
25322
25323
|
oIdKey: 'tradeNo',
|
|
25323
25324
|
outerOiIdKey: '',
|
|
25324
|
-
goodDetailsKey: 'subOrderDetails'
|
|
25325
|
+
goodDetailsKey: 'subOrderDetails',
|
|
25326
|
+
isShowSelectTradeGoods: true
|
|
25325
25327
|
}
|
|
25326
25328
|
};
|
|
25327
25329
|
var PublicReissue = function PublicReissue(props) {
|
|
25328
|
-
var _typeMap$
|
|
25330
|
+
var _typeMap$type34, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _value$typeMap$type$s8, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55;
|
|
25329
25331
|
var value = props.value,
|
|
25330
25332
|
onChange = props.onChange,
|
|
25331
25333
|
_props$reasonList = props.reasonList,
|
|
@@ -25442,9 +25444,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25442
25444
|
}))));
|
|
25443
25445
|
};
|
|
25444
25446
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
25445
|
-
var _typeMap$type18, _typeMap$type19,
|
|
25447
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
|
|
25446
25448
|
var mode = _ref4.mode,
|
|
25447
|
-
sysOrderNo = _ref4.sysOrderNo
|
|
25449
|
+
sysOrderNo = _ref4.sysOrderNo,
|
|
25450
|
+
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
25451
|
+
isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
|
|
25448
25452
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrder];
|
|
25449
25453
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo];
|
|
25450
25454
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -25463,38 +25467,43 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25463
25467
|
canEdit: true
|
|
25464
25468
|
};
|
|
25465
25469
|
}
|
|
25466
|
-
var
|
|
25470
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : [order];
|
|
25471
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
25472
|
+
var _order$typeMap$type$g;
|
|
25473
|
+
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;
|
|
25474
|
+
});
|
|
25475
|
+
var goodDetails = hasGoodDetails ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest)) : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest) : [];
|
|
25467
25476
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
25468
|
-
var list = mode ? goodDetails.filter(function (goodItem) {
|
|
25477
|
+
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
25469
25478
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
25470
25479
|
}) : goodDetails;
|
|
25471
25480
|
return list;
|
|
25472
25481
|
};
|
|
25473
25482
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
25474
|
-
var _typeMap$
|
|
25483
|
+
var _typeMap$type23;
|
|
25475
25484
|
var newValue = _objectSpread2({}, value);
|
|
25476
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25485
|
+
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)] = val || [];
|
|
25477
25486
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25478
25487
|
};
|
|
25479
25488
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
25480
|
-
var _typeMap$
|
|
25489
|
+
var _typeMap$type24, _typeMap$type25, _value$typeMap$type$t2, _typeMap$type30, _value$typeMap$type$t3, _typeMap$type32;
|
|
25481
25490
|
var newValue = _objectSpread2({}, value);
|
|
25482
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25483
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25484
|
-
var _value$typeMap$type$
|
|
25485
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25491
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderNo)] = val;
|
|
25492
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderBillType) {
|
|
25493
|
+
var _value$typeMap$type$s7, _typeMap$type26, _typeMap$type28, _typeMap$type29;
|
|
25494
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
25486
25495
|
var targetOrder = val && orders.find(function (oItem) {
|
|
25487
|
-
var _typeMap$
|
|
25488
|
-
return oItem[(_typeMap$
|
|
25496
|
+
var _typeMap$type27;
|
|
25497
|
+
return oItem[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.oIdKey] === val;
|
|
25489
25498
|
});
|
|
25490
|
-
newValue[(_typeMap$
|
|
25491
|
-
}
|
|
25492
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
25493
|
-
var _typeMap$
|
|
25494
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25495
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
25496
|
-
var _typeMap$
|
|
25497
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25499
|
+
newValue[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.orderTypeKey];
|
|
25500
|
+
}
|
|
25501
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
25502
|
+
var _typeMap$type31;
|
|
25503
|
+
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)] = [];
|
|
25504
|
+
} 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])) {
|
|
25505
|
+
var _typeMap$type33;
|
|
25506
|
+
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)] = getGoodDetails({
|
|
25498
25507
|
mode: isStrict,
|
|
25499
25508
|
sysOrderNo: val
|
|
25500
25509
|
});
|
|
@@ -25502,26 +25511,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25502
25511
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
25503
25512
|
};
|
|
25504
25513
|
//显示选择商品按钮
|
|
25505
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
25514
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.systemOrderNo]);
|
|
25506
25515
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
25507
|
-
var _typeMap$
|
|
25516
|
+
var _typeMap$type35, _typeMap$type36, _typeMap$type37, _uniqBy, _typeMap$type38;
|
|
25508
25517
|
var newValue = _objectSpread2({}, value);
|
|
25509
25518
|
// 原订单商品
|
|
25510
25519
|
var originTradeGoodList = getGoodDetails({
|
|
25511
|
-
mode: isStrict
|
|
25520
|
+
mode: isStrict,
|
|
25521
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.isShowSelectTradeGoods
|
|
25512
25522
|
}) || [];
|
|
25513
25523
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
25514
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25515
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25516
|
-
var _typeMap$
|
|
25517
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25524
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.key)]) || [];
|
|
25525
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
25526
|
+
var _typeMap$type39;
|
|
25527
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid']);
|
|
25518
25528
|
});
|
|
25519
25529
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25520
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25530
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.key)], isStrict]);
|
|
25521
25531
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
25522
25532
|
gutter: 8,
|
|
25523
25533
|
wrap: true,
|
|
25524
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25534
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key) || "".concat(Date.now())
|
|
25525
25535
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
25526
25536
|
className: "gutter-row",
|
|
25527
25537
|
xs: {
|
|
@@ -25537,12 +25547,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25537
25547
|
},
|
|
25538
25548
|
disabled: disabled,
|
|
25539
25549
|
allowClear: false,
|
|
25540
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25550
|
+
value: 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.systemOrderNo)],
|
|
25541
25551
|
onChange: function onChange(val) {
|
|
25542
25552
|
return changeSystemOrderHandle(val);
|
|
25543
25553
|
},
|
|
25544
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25545
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25554
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
25555
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
25546
25556
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
25547
25557
|
key: item[typeMap$2[type].oIdKey],
|
|
25548
25558
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -25564,11 +25574,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25564
25574
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
25565
25575
|
allowClear: false,
|
|
25566
25576
|
options: reasonList,
|
|
25567
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25577
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.typeName)],
|
|
25568
25578
|
onChange: function onChange(val) {
|
|
25569
25579
|
return changeTypeHandle(val);
|
|
25570
25580
|
}
|
|
25571
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25581
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
25572
25582
|
className: "gutter-row",
|
|
25573
25583
|
xs: {
|
|
25574
25584
|
span: 11
|
|
@@ -25577,7 +25587,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25577
25587
|
span: 6
|
|
25578
25588
|
}
|
|
25579
25589
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
25580
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25590
|
+
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.systemOrderBillType)],
|
|
25581
25591
|
disabled: disabled,
|
|
25582
25592
|
readOnly: true
|
|
25583
25593
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -25586,22 +25596,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25586
25596
|
type: type,
|
|
25587
25597
|
disabled: disabled,
|
|
25588
25598
|
canUpdateNumber: showChangeBtn,
|
|
25589
|
-
showChangeBtn: showChangeBtn,
|
|
25590
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25591
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25599
|
+
showChangeBtn: showChangeBtn || (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.isShowSelectTradeGoods),
|
|
25600
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.alwaysShowChooseErpGoodsBtn,
|
|
25601
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.showErpGoodsBtn,
|
|
25592
25602
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
25593
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25603
|
+
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)],
|
|
25594
25604
|
onChange: function onChange(val) {
|
|
25595
25605
|
return changeGoodHandle(val);
|
|
25596
25606
|
},
|
|
25597
25607
|
onModeChange: handleModeChange,
|
|
25598
25608
|
showModeBtn: false,
|
|
25599
25609
|
isStrict: isStrict,
|
|
25610
|
+
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,
|
|
25611
|
+
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,
|
|
25600
25612
|
tradeGoods: {
|
|
25601
25613
|
originDataSource: getGoodDetails({
|
|
25602
|
-
mode: isStrict
|
|
25614
|
+
mode: isStrict,
|
|
25615
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.isShowSelectTradeGoods
|
|
25603
25616
|
}),
|
|
25604
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25617
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.uniqueKey) || 'uuid',
|
|
25605
25618
|
selectedGoodsChange: selectedGoodsChange
|
|
25606
25619
|
}
|
|
25607
25620
|
})));
|
package/dist/index.js
CHANGED
|
@@ -21449,7 +21449,8 @@ var systemOrderNoMap = {
|
|
|
21449
21449
|
BS_E3_GOODS: 'orderSn',
|
|
21450
21450
|
JST_GOODS: 'oId',
|
|
21451
21451
|
WLN_GOODS: 'tradeNo',
|
|
21452
|
-
JY_GOODS: 'tradeNo'
|
|
21452
|
+
JY_GOODS: 'tradeNo',
|
|
21453
|
+
JY_REISSUE_GOODS: 'tradeNo'
|
|
21453
21454
|
};
|
|
21454
21455
|
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
21455
21456
|
var columns = _ref.columns,
|
|
@@ -21644,7 +21645,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
21644
21645
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
21645
21646
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
21646
21647
|
// 判断是否为商品信息组件
|
|
21647
|
-
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS'].includes(type) || false;
|
|
21648
|
+
var isGoods = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
21648
21649
|
var refModal = React.useRef();
|
|
21649
21650
|
console.debug('表格数据', value);
|
|
21650
21651
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -25336,11 +25337,12 @@ var typeMap$2 = {
|
|
|
25336
25337
|
orderTypeKey: 'orderType',
|
|
25337
25338
|
oIdKey: 'tradeNo',
|
|
25338
25339
|
outerOiIdKey: '',
|
|
25339
|
-
goodDetailsKey: 'subOrderDetails'
|
|
25340
|
+
goodDetailsKey: 'subOrderDetails',
|
|
25341
|
+
isShowSelectTradeGoods: true
|
|
25340
25342
|
}
|
|
25341
25343
|
};
|
|
25342
25344
|
var PublicReissue = function PublicReissue(props) {
|
|
25343
|
-
var _typeMap$
|
|
25345
|
+
var _typeMap$type34, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _value$typeMap$type$s8, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55;
|
|
25344
25346
|
var value = props.value,
|
|
25345
25347
|
onChange = props.onChange,
|
|
25346
25348
|
_props$reasonList = props.reasonList,
|
|
@@ -25457,9 +25459,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25457
25459
|
}))));
|
|
25458
25460
|
};
|
|
25459
25461
|
var getGoodDetails = function getGoodDetails(_ref4) {
|
|
25460
|
-
var _typeMap$type18, _typeMap$type19,
|
|
25462
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
|
|
25461
25463
|
var mode = _ref4.mode,
|
|
25462
|
-
sysOrderNo = _ref4.sysOrderNo
|
|
25464
|
+
sysOrderNo = _ref4.sysOrderNo,
|
|
25465
|
+
_ref4$isAllOrders = _ref4.isAllOrders,
|
|
25466
|
+
isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
|
|
25463
25467
|
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrder];
|
|
25464
25468
|
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo];
|
|
25465
25469
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
@@ -25478,38 +25482,43 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25478
25482
|
canEdit: true
|
|
25479
25483
|
};
|
|
25480
25484
|
}
|
|
25481
|
-
var
|
|
25485
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : [order];
|
|
25486
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
25487
|
+
var _order$typeMap$type$g;
|
|
25488
|
+
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;
|
|
25489
|
+
});
|
|
25490
|
+
var goodDetails = hasGoodDetails ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest)) : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest) : [];
|
|
25482
25491
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
25483
|
-
var list = mode ? goodDetails.filter(function (goodItem) {
|
|
25492
|
+
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
25484
25493
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
25485
25494
|
}) : goodDetails;
|
|
25486
25495
|
return list;
|
|
25487
25496
|
};
|
|
25488
25497
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
25489
|
-
var _typeMap$
|
|
25498
|
+
var _typeMap$type23;
|
|
25490
25499
|
var newValue = _objectSpread2({}, value);
|
|
25491
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25500
|
+
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)] = val || [];
|
|
25492
25501
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25493
25502
|
};
|
|
25494
25503
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
25495
|
-
var _typeMap$
|
|
25504
|
+
var _typeMap$type24, _typeMap$type25, _value$typeMap$type$t2, _typeMap$type30, _value$typeMap$type$t3, _typeMap$type32;
|
|
25496
25505
|
var newValue = _objectSpread2({}, value);
|
|
25497
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25498
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25499
|
-
var _value$typeMap$type$
|
|
25500
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25506
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderNo)] = val;
|
|
25507
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderBillType) {
|
|
25508
|
+
var _value$typeMap$type$s7, _typeMap$type26, _typeMap$type28, _typeMap$type29;
|
|
25509
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
25501
25510
|
var targetOrder = val && orders.find(function (oItem) {
|
|
25502
|
-
var _typeMap$
|
|
25503
|
-
return oItem[(_typeMap$
|
|
25511
|
+
var _typeMap$type27;
|
|
25512
|
+
return oItem[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.oIdKey] === val;
|
|
25504
25513
|
});
|
|
25505
|
-
newValue[(_typeMap$
|
|
25506
|
-
}
|
|
25507
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
25508
|
-
var _typeMap$
|
|
25509
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25510
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
25511
|
-
var _typeMap$
|
|
25512
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25514
|
+
newValue[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.orderTypeKey];
|
|
25515
|
+
}
|
|
25516
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
25517
|
+
var _typeMap$type31;
|
|
25518
|
+
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)] = [];
|
|
25519
|
+
} 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])) {
|
|
25520
|
+
var _typeMap$type33;
|
|
25521
|
+
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)] = getGoodDetails({
|
|
25513
25522
|
mode: isStrict,
|
|
25514
25523
|
sysOrderNo: val
|
|
25515
25524
|
});
|
|
@@ -25517,26 +25526,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25517
25526
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
25518
25527
|
};
|
|
25519
25528
|
//显示选择商品按钮
|
|
25520
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
25529
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.systemOrderNo]);
|
|
25521
25530
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
25522
|
-
var _typeMap$
|
|
25531
|
+
var _typeMap$type35, _typeMap$type36, _typeMap$type37, _uniqBy, _typeMap$type38;
|
|
25523
25532
|
var newValue = _objectSpread2({}, value);
|
|
25524
25533
|
// 原订单商品
|
|
25525
25534
|
var originTradeGoodList = getGoodDetails({
|
|
25526
|
-
mode: isStrict
|
|
25535
|
+
mode: isStrict,
|
|
25536
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.isShowSelectTradeGoods
|
|
25527
25537
|
}) || [];
|
|
25528
25538
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
25529
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25530
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25531
|
-
var _typeMap$
|
|
25532
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25539
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.key)]) || [];
|
|
25540
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
25541
|
+
var _typeMap$type39;
|
|
25542
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid']);
|
|
25533
25543
|
});
|
|
25534
25544
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
25535
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25545
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.key)], isStrict]);
|
|
25536
25546
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
25537
25547
|
gutter: 8,
|
|
25538
25548
|
wrap: true,
|
|
25539
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25549
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key) || "".concat(Date.now())
|
|
25540
25550
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
25541
25551
|
className: "gutter-row",
|
|
25542
25552
|
xs: {
|
|
@@ -25552,12 +25562,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25552
25562
|
},
|
|
25553
25563
|
disabled: disabled,
|
|
25554
25564
|
allowClear: false,
|
|
25555
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25565
|
+
value: 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.systemOrderNo)],
|
|
25556
25566
|
onChange: function onChange(val) {
|
|
25557
25567
|
return changeSystemOrderHandle(val);
|
|
25558
25568
|
},
|
|
25559
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25560
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$
|
|
25569
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
25570
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
25561
25571
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
25562
25572
|
key: item[typeMap$2[type].oIdKey],
|
|
25563
25573
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -25579,11 +25589,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25579
25589
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
25580
25590
|
allowClear: false,
|
|
25581
25591
|
options: reasonList,
|
|
25582
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25592
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.typeName)],
|
|
25583
25593
|
onChange: function onChange(val) {
|
|
25584
25594
|
return changeTypeHandle(val);
|
|
25585
25595
|
}
|
|
25586
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25596
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
25587
25597
|
className: "gutter-row",
|
|
25588
25598
|
xs: {
|
|
25589
25599
|
span: 11
|
|
@@ -25592,7 +25602,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25592
25602
|
span: 6
|
|
25593
25603
|
}
|
|
25594
25604
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
25595
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25605
|
+
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.systemOrderBillType)],
|
|
25596
25606
|
disabled: disabled,
|
|
25597
25607
|
readOnly: true
|
|
25598
25608
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -25601,22 +25611,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25601
25611
|
type: type,
|
|
25602
25612
|
disabled: disabled,
|
|
25603
25613
|
canUpdateNumber: showChangeBtn,
|
|
25604
|
-
showChangeBtn: showChangeBtn,
|
|
25605
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25606
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25614
|
+
showChangeBtn: showChangeBtn || (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.isShowSelectTradeGoods),
|
|
25615
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.alwaysShowChooseErpGoodsBtn,
|
|
25616
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.showErpGoodsBtn,
|
|
25607
25617
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
25608
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25618
|
+
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)],
|
|
25609
25619
|
onChange: function onChange(val) {
|
|
25610
25620
|
return changeGoodHandle(val);
|
|
25611
25621
|
},
|
|
25612
25622
|
onModeChange: handleModeChange,
|
|
25613
25623
|
showModeBtn: false,
|
|
25614
25624
|
isStrict: isStrict,
|
|
25625
|
+
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,
|
|
25626
|
+
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,
|
|
25615
25627
|
tradeGoods: {
|
|
25616
25628
|
originDataSource: getGoodDetails({
|
|
25617
|
-
mode: isStrict
|
|
25629
|
+
mode: isStrict,
|
|
25630
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.isShowSelectTradeGoods
|
|
25618
25631
|
}),
|
|
25619
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
25632
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.uniqueKey) || 'uuid',
|
|
25620
25633
|
selectedGoodsChange: selectedGoodsChange
|
|
25621
25634
|
}
|
|
25622
25635
|
})));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.2.13-beta.
|
|
3
|
+
"version": "2.2.13-beta.36",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "373ef728a9fd645bdfba37e85e7facdf2a50617b"
|
|
70
70
|
}
|