@kmkf-fe-packages/basic-components 2.0.12-beta.1 → 2.0.12-beta.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 +56 -29
- package/dist/index.js +56 -29
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -12243,17 +12243,26 @@ var columns$2 = [{
|
|
|
12243
12243
|
dataIndex: 'retailPrice',
|
|
12244
12244
|
title: "\u9500\u552E\u4EF7\u683C",
|
|
12245
12245
|
ellipsis: true,
|
|
12246
|
-
width: 100
|
|
12246
|
+
width: 100,
|
|
12247
|
+
render: function render(price) {
|
|
12248
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12249
|
+
}
|
|
12247
12250
|
}, {
|
|
12248
12251
|
dataIndex: 'marketPrice',
|
|
12249
12252
|
title: "\u5E02\u573A\u4EF7",
|
|
12250
12253
|
ellipsis: true,
|
|
12251
|
-
width: 100
|
|
12254
|
+
width: 100,
|
|
12255
|
+
render: function render(price) {
|
|
12256
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12257
|
+
}
|
|
12252
12258
|
}, {
|
|
12253
12259
|
dataIndex: 'costPrice',
|
|
12254
12260
|
title: "\u6210\u672C\u4EF7",
|
|
12255
12261
|
ellipsis: true,
|
|
12256
|
-
width: 100
|
|
12262
|
+
width: 100,
|
|
12263
|
+
render: function render(price) {
|
|
12264
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12265
|
+
}
|
|
12257
12266
|
}, {
|
|
12258
12267
|
dataIndex: 'skuType',
|
|
12259
12268
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
@@ -14413,7 +14422,10 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14413
14422
|
title: '原价',
|
|
14414
14423
|
width: 150,
|
|
14415
14424
|
ellipsis: true,
|
|
14416
|
-
align: 'center'
|
|
14425
|
+
align: 'center',
|
|
14426
|
+
render: function render(price) {
|
|
14427
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14428
|
+
}
|
|
14417
14429
|
}, {
|
|
14418
14430
|
dataIndex: 'salePrice',
|
|
14419
14431
|
title: '单价',
|
|
@@ -14431,7 +14443,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14431
14443
|
onChange: function onChange(num) {
|
|
14432
14444
|
return updateHandle(num, index, 'salePrice');
|
|
14433
14445
|
}
|
|
14434
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
14446
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14435
14447
|
}
|
|
14436
14448
|
}, {
|
|
14437
14449
|
dataIndex: 'qty',
|
|
@@ -14491,7 +14503,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14491
14503
|
}, {
|
|
14492
14504
|
dataIndex: 'outerOiId',
|
|
14493
14505
|
title: '子订单号',
|
|
14494
|
-
width:
|
|
14506
|
+
width: 240,
|
|
14495
14507
|
ellipsis: true,
|
|
14496
14508
|
align: 'center'
|
|
14497
14509
|
}],
|
|
@@ -14536,7 +14548,10 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14536
14548
|
title: '原价',
|
|
14537
14549
|
width: 150,
|
|
14538
14550
|
ellipsis: true,
|
|
14539
|
-
align: 'center'
|
|
14551
|
+
align: 'center',
|
|
14552
|
+
render: function render(price) {
|
|
14553
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14554
|
+
}
|
|
14540
14555
|
}, {
|
|
14541
14556
|
dataIndex: 'salePrice',
|
|
14542
14557
|
title: '单价',
|
|
@@ -14554,7 +14569,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14554
14569
|
onChange: function onChange(num) {
|
|
14555
14570
|
return updateHandle(num, index, 'salePrice');
|
|
14556
14571
|
}
|
|
14557
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
14572
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14558
14573
|
}
|
|
14559
14574
|
}, {
|
|
14560
14575
|
dataIndex: 'qty',
|
|
@@ -15301,7 +15316,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15301
15316
|
}
|
|
15302
15317
|
return params;
|
|
15303
15318
|
}, [tableSelect, selectedRowKeys]);
|
|
15304
|
-
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'];
|
|
15319
|
+
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
|
|
15305
15320
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && showChangeBtn && /*#__PURE__*/React.createElement("div", {
|
|
15306
15321
|
style: {
|
|
15307
15322
|
float: 'right'
|
|
@@ -16051,6 +16066,8 @@ var getGyOrderListSingleton = function getGyOrderListSingleton(orderNo) {
|
|
|
16051
16066
|
billTag: item.tagName,
|
|
16052
16067
|
tradeTagName: item.tradeTagName,
|
|
16053
16068
|
deliveryState: item.deliveryState,
|
|
16069
|
+
vipCode: item.vipCode,
|
|
16070
|
+
shopCode: item.shopCode,
|
|
16054
16071
|
deliveryStateName: GY_DELIVERY_STATE_MAPPING[item.deliveryState]
|
|
16055
16072
|
});
|
|
16056
16073
|
});
|
|
@@ -16153,6 +16170,7 @@ var kmUtils = {
|
|
|
16153
16170
|
getOrderListSingleton: getOrderListSingleton
|
|
16154
16171
|
};
|
|
16155
16172
|
|
|
16173
|
+
var _excluded$g = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16156
16174
|
var columnsMap = {
|
|
16157
16175
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16158
16176
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16421,15 +16439,20 @@ var index$1 = (function (props) {
|
|
|
16421
16439
|
billType = _ref10.billType,
|
|
16422
16440
|
billTag = _ref10.billTag,
|
|
16423
16441
|
tradeTagName = _ref10.tradeTagName,
|
|
16424
|
-
deliveryState = _ref10.deliveryState
|
|
16425
|
-
|
|
16442
|
+
deliveryState = _ref10.deliveryState,
|
|
16443
|
+
vipCode = _ref10.vipCode,
|
|
16444
|
+
shopCode = _ref10.shopCode,
|
|
16445
|
+
rest = _objectWithoutProperties(_ref10, _excluded$g);
|
|
16446
|
+
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
16426
16447
|
billNo: billNo,
|
|
16427
16448
|
billType: billType,
|
|
16428
16449
|
billTag: billTag,
|
|
16429
16450
|
tradeTagName: tradeTagName,
|
|
16430
16451
|
deliveryState: deliveryState,
|
|
16431
|
-
deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState]
|
|
16432
|
-
|
|
16452
|
+
deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState],
|
|
16453
|
+
vipCode: vipCode,
|
|
16454
|
+
shopCode: shopCode
|
|
16455
|
+
});
|
|
16433
16456
|
})
|
|
16434
16457
|
}));
|
|
16435
16458
|
});
|
|
@@ -17062,7 +17085,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17062
17085
|
})));
|
|
17063
17086
|
};
|
|
17064
17087
|
|
|
17065
|
-
var _excluded$
|
|
17088
|
+
var _excluded$h = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17066
17089
|
var typeMap$1 = {
|
|
17067
17090
|
WDT_REISSUE_GOODS: {
|
|
17068
17091
|
key: 'wdtReissueGoods',
|
|
@@ -17090,7 +17113,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17090
17113
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17091
17114
|
disabled = props.disabled,
|
|
17092
17115
|
type = props.type,
|
|
17093
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
17116
|
+
other = _objectWithoutProperties(props, _excluded$h);
|
|
17094
17117
|
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
|
|
17095
17118
|
var _order$srcTid;
|
|
17096
17119
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -17334,7 +17357,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17334
17357
|
})));
|
|
17335
17358
|
};
|
|
17336
17359
|
|
|
17337
|
-
var _excluded$
|
|
17360
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17338
17361
|
var typeMap$2 = {
|
|
17339
17362
|
JST_REISSUE_GOODS: {
|
|
17340
17363
|
key: 'jstReissueGoods',
|
|
@@ -17358,7 +17381,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
17358
17381
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17359
17382
|
disabled = props.disabled,
|
|
17360
17383
|
type = props.type,
|
|
17361
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
17384
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17362
17385
|
var getOrderFlag = useRef(false);
|
|
17363
17386
|
var _useState = useState(false),
|
|
17364
17387
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18064,12 +18087,12 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18064
18087
|
};
|
|
18065
18088
|
var index$2 = /*#__PURE__*/forwardRef(Goods$1);
|
|
18066
18089
|
|
|
18067
|
-
var _excluded$
|
|
18090
|
+
var _excluded$j = ["onChange", "value", "failValue"];
|
|
18068
18091
|
function CommonStatus(props) {
|
|
18069
18092
|
var onChange = props.onChange,
|
|
18070
18093
|
value = props.value,
|
|
18071
18094
|
failValue = props.failValue,
|
|
18072
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18095
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
18073
18096
|
var changeHandle = function changeHandle(val) {
|
|
18074
18097
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18075
18098
|
status: val,
|
|
@@ -18206,7 +18229,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18206
18229
|
})) : null) : null);
|
|
18207
18230
|
};
|
|
18208
18231
|
|
|
18209
|
-
var _excluded$
|
|
18232
|
+
var _excluded$k = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18210
18233
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18211
18234
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18212
18235
|
var _props$value = props.value,
|
|
@@ -18216,7 +18239,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18216
18239
|
failValue = props.failValue,
|
|
18217
18240
|
_props$type = props.type,
|
|
18218
18241
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18219
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18242
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18220
18243
|
var _useState = useState(0),
|
|
18221
18244
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18222
18245
|
changeIndex = _useState2[0],
|
|
@@ -18282,7 +18305,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18282
18305
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
18283
18306
|
};
|
|
18284
18307
|
|
|
18285
|
-
var _excluded$
|
|
18308
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18286
18309
|
var MsgStatus = function MsgStatus(props) {
|
|
18287
18310
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18288
18311
|
var _props$value = props.value,
|
|
@@ -18292,7 +18315,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
18292
18315
|
failValue = props.failValue,
|
|
18293
18316
|
_props$type = props.type,
|
|
18294
18317
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18295
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18318
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
18296
18319
|
var _useState = useState(0),
|
|
18297
18320
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18298
18321
|
changeIndex = _useState2[0],
|
|
@@ -18361,7 +18384,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
18361
18384
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
18362
18385
|
};
|
|
18363
18386
|
|
|
18364
|
-
var _excluded$
|
|
18387
|
+
var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18365
18388
|
var typeMap$3 = {
|
|
18366
18389
|
BS_E3_REISSUE_GOODS: {
|
|
18367
18390
|
key: 'bsE3ReissueGoods',
|
|
@@ -18379,7 +18402,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18379
18402
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18380
18403
|
disabled = props.disabled,
|
|
18381
18404
|
type = props.type,
|
|
18382
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18405
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
18383
18406
|
var getOrderFlag = useRef(false);
|
|
18384
18407
|
var _useState = useState(false),
|
|
18385
18408
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18595,8 +18618,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18595
18618
|
})));
|
|
18596
18619
|
};
|
|
18597
18620
|
|
|
18598
|
-
var _excluded$
|
|
18599
|
-
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState"];
|
|
18621
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
18622
|
+
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
18600
18623
|
var typeMap$4 = {
|
|
18601
18624
|
GY_REISSUE_GOODS: {
|
|
18602
18625
|
key: 'gyReissueGoods',
|
|
@@ -18624,7 +18647,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
18624
18647
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18625
18648
|
disabled = props.disabled,
|
|
18626
18649
|
type = props.type,
|
|
18627
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18650
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
18628
18651
|
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$gySystemOrder = value.gySystemOrder) === null || _value$gySystemOrder === void 0 ? void 0 : _value$gySystemOrder.orders) || []).some(function (order) {
|
|
18629
18652
|
var _order$platformCode;
|
|
18630
18653
|
return order === null || order === void 0 ? void 0 : (_order$platformCode = order.platformCode) === null || _order$platformCode === void 0 ? void 0 : _order$platformCode.includes(';');
|
|
@@ -18658,6 +18681,8 @@ var GyReissue = function GyReissue(props) {
|
|
|
18658
18681
|
billTag = _ref2.billTag,
|
|
18659
18682
|
tradeTagName = _ref2.tradeTagName,
|
|
18660
18683
|
deliveryState = _ref2.deliveryState,
|
|
18684
|
+
vipCode = _ref2.vipCode,
|
|
18685
|
+
shopCode = _ref2.shopCode,
|
|
18661
18686
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
18662
18687
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
18663
18688
|
billNo: billNo,
|
|
@@ -18665,7 +18690,9 @@ var GyReissue = function GyReissue(props) {
|
|
|
18665
18690
|
billTag: billTag,
|
|
18666
18691
|
tradeTagName: tradeTagName,
|
|
18667
18692
|
deliveryState: deliveryState,
|
|
18668
|
-
deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState]
|
|
18693
|
+
deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState],
|
|
18694
|
+
vipCode: vipCode,
|
|
18695
|
+
shopCode: shopCode
|
|
18669
18696
|
});
|
|
18670
18697
|
});
|
|
18671
18698
|
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type5 = typeMap$4[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type6 = typeMap$4[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]), {}, {
|
package/dist/index.js
CHANGED
|
@@ -12255,17 +12255,26 @@ var columns$2 = [{
|
|
|
12255
12255
|
dataIndex: 'retailPrice',
|
|
12256
12256
|
title: "\u9500\u552E\u4EF7\u683C",
|
|
12257
12257
|
ellipsis: true,
|
|
12258
|
-
width: 100
|
|
12258
|
+
width: 100,
|
|
12259
|
+
render: function render(price) {
|
|
12260
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12261
|
+
}
|
|
12259
12262
|
}, {
|
|
12260
12263
|
dataIndex: 'marketPrice',
|
|
12261
12264
|
title: "\u5E02\u573A\u4EF7",
|
|
12262
12265
|
ellipsis: true,
|
|
12263
|
-
width: 100
|
|
12266
|
+
width: 100,
|
|
12267
|
+
render: function render(price) {
|
|
12268
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12269
|
+
}
|
|
12264
12270
|
}, {
|
|
12265
12271
|
dataIndex: 'costPrice',
|
|
12266
12272
|
title: "\u6210\u672C\u4EF7",
|
|
12267
12273
|
ellipsis: true,
|
|
12268
|
-
width: 100
|
|
12274
|
+
width: 100,
|
|
12275
|
+
render: function render(price) {
|
|
12276
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
12277
|
+
}
|
|
12269
12278
|
}, {
|
|
12270
12279
|
dataIndex: 'skuType',
|
|
12271
12280
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
@@ -14425,7 +14434,10 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14425
14434
|
title: '原价',
|
|
14426
14435
|
width: 150,
|
|
14427
14436
|
ellipsis: true,
|
|
14428
|
-
align: 'center'
|
|
14437
|
+
align: 'center',
|
|
14438
|
+
render: function render(price) {
|
|
14439
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14440
|
+
}
|
|
14429
14441
|
}, {
|
|
14430
14442
|
dataIndex: 'salePrice',
|
|
14431
14443
|
title: '单价',
|
|
@@ -14443,7 +14455,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14443
14455
|
onChange: function onChange(num) {
|
|
14444
14456
|
return updateHandle(num, index, 'salePrice');
|
|
14445
14457
|
}
|
|
14446
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14458
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14447
14459
|
}
|
|
14448
14460
|
}, {
|
|
14449
14461
|
dataIndex: 'qty',
|
|
@@ -14503,7 +14515,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14503
14515
|
}, {
|
|
14504
14516
|
dataIndex: 'outerOiId',
|
|
14505
14517
|
title: '子订单号',
|
|
14506
|
-
width:
|
|
14518
|
+
width: 240,
|
|
14507
14519
|
ellipsis: true,
|
|
14508
14520
|
align: 'center'
|
|
14509
14521
|
}],
|
|
@@ -14548,7 +14560,10 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14548
14560
|
title: '原价',
|
|
14549
14561
|
width: 150,
|
|
14550
14562
|
ellipsis: true,
|
|
14551
|
-
align: 'center'
|
|
14563
|
+
align: 'center',
|
|
14564
|
+
render: function render(price) {
|
|
14565
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
14566
|
+
}
|
|
14552
14567
|
}, {
|
|
14553
14568
|
dataIndex: 'salePrice',
|
|
14554
14569
|
title: '单价',
|
|
@@ -14566,7 +14581,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14566
14581
|
onChange: function onChange(num) {
|
|
14567
14582
|
return updateHandle(num, index, 'salePrice');
|
|
14568
14583
|
}
|
|
14569
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14584
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14570
14585
|
}
|
|
14571
14586
|
}, {
|
|
14572
14587
|
dataIndex: 'qty',
|
|
@@ -15313,7 +15328,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15313
15328
|
}
|
|
15314
15329
|
return params;
|
|
15315
15330
|
}, [tableSelect, selectedRowKeys]);
|
|
15316
|
-
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'];
|
|
15331
|
+
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
|
|
15317
15332
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !disabled && showChangeBtn && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15318
15333
|
style: {
|
|
15319
15334
|
float: 'right'
|
|
@@ -16063,6 +16078,8 @@ var getGyOrderListSingleton = function getGyOrderListSingleton(orderNo) {
|
|
|
16063
16078
|
billTag: item.tagName,
|
|
16064
16079
|
tradeTagName: item.tradeTagName,
|
|
16065
16080
|
deliveryState: item.deliveryState,
|
|
16081
|
+
vipCode: item.vipCode,
|
|
16082
|
+
shopCode: item.shopCode,
|
|
16066
16083
|
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[item.deliveryState]
|
|
16067
16084
|
});
|
|
16068
16085
|
});
|
|
@@ -16165,6 +16182,7 @@ var kmUtils = {
|
|
|
16165
16182
|
getOrderListSingleton: getOrderListSingleton
|
|
16166
16183
|
};
|
|
16167
16184
|
|
|
16185
|
+
var _excluded$g = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16168
16186
|
var columnsMap = {
|
|
16169
16187
|
BS_SYSTEM_ORDER: kmkfUtils.BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16170
16188
|
KM_SYSTEM_ORDER: kmkfUtils.KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16433,15 +16451,20 @@ var index$1 = (function (props) {
|
|
|
16433
16451
|
billType = _ref10.billType,
|
|
16434
16452
|
billTag = _ref10.billTag,
|
|
16435
16453
|
tradeTagName = _ref10.tradeTagName,
|
|
16436
|
-
deliveryState = _ref10.deliveryState
|
|
16437
|
-
|
|
16454
|
+
deliveryState = _ref10.deliveryState,
|
|
16455
|
+
vipCode = _ref10.vipCode,
|
|
16456
|
+
shopCode = _ref10.shopCode,
|
|
16457
|
+
rest = _objectWithoutProperties(_ref10, _excluded$g);
|
|
16458
|
+
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
16438
16459
|
billNo: billNo,
|
|
16439
16460
|
billType: billType,
|
|
16440
16461
|
billTag: billTag,
|
|
16441
16462
|
tradeTagName: tradeTagName,
|
|
16442
16463
|
deliveryState: deliveryState,
|
|
16443
|
-
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState]
|
|
16444
|
-
|
|
16464
|
+
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState],
|
|
16465
|
+
vipCode: vipCode,
|
|
16466
|
+
shopCode: shopCode
|
|
16467
|
+
});
|
|
16445
16468
|
})
|
|
16446
16469
|
}));
|
|
16447
16470
|
});
|
|
@@ -17074,7 +17097,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17074
17097
|
})));
|
|
17075
17098
|
};
|
|
17076
17099
|
|
|
17077
|
-
var _excluded$
|
|
17100
|
+
var _excluded$h = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17078
17101
|
var typeMap$1 = {
|
|
17079
17102
|
WDT_REISSUE_GOODS: {
|
|
17080
17103
|
key: 'wdtReissueGoods',
|
|
@@ -17102,7 +17125,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17102
17125
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17103
17126
|
disabled = props.disabled,
|
|
17104
17127
|
type = props.type,
|
|
17105
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
17128
|
+
other = _objectWithoutProperties(props, _excluded$h);
|
|
17106
17129
|
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
|
|
17107
17130
|
var _order$srcTid;
|
|
17108
17131
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -17346,7 +17369,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17346
17369
|
})));
|
|
17347
17370
|
};
|
|
17348
17371
|
|
|
17349
|
-
var _excluded$
|
|
17372
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17350
17373
|
var typeMap$2 = {
|
|
17351
17374
|
JST_REISSUE_GOODS: {
|
|
17352
17375
|
key: 'jstReissueGoods',
|
|
@@ -17370,7 +17393,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
17370
17393
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17371
17394
|
disabled = props.disabled,
|
|
17372
17395
|
type = props.type,
|
|
17373
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
17396
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17374
17397
|
var getOrderFlag = React.useRef(false);
|
|
17375
17398
|
var _useState = React.useState(false),
|
|
17376
17399
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18076,12 +18099,12 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18076
18099
|
};
|
|
18077
18100
|
var index$2 = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
18078
18101
|
|
|
18079
|
-
var _excluded$
|
|
18102
|
+
var _excluded$j = ["onChange", "value", "failValue"];
|
|
18080
18103
|
function CommonStatus(props) {
|
|
18081
18104
|
var onChange = props.onChange,
|
|
18082
18105
|
value = props.value,
|
|
18083
18106
|
failValue = props.failValue,
|
|
18084
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18107
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
18085
18108
|
var changeHandle = function changeHandle(val) {
|
|
18086
18109
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18087
18110
|
status: val,
|
|
@@ -18218,7 +18241,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18218
18241
|
})) : null) : null);
|
|
18219
18242
|
};
|
|
18220
18243
|
|
|
18221
|
-
var _excluded$
|
|
18244
|
+
var _excluded$k = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18222
18245
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18223
18246
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18224
18247
|
var _props$value = props.value,
|
|
@@ -18228,7 +18251,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18228
18251
|
failValue = props.failValue,
|
|
18229
18252
|
_props$type = props.type,
|
|
18230
18253
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18231
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18254
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18232
18255
|
var _useState = React.useState(0),
|
|
18233
18256
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18234
18257
|
changeIndex = _useState2[0],
|
|
@@ -18294,7 +18317,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18294
18317
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
18295
18318
|
};
|
|
18296
18319
|
|
|
18297
|
-
var _excluded$
|
|
18320
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18298
18321
|
var MsgStatus = function MsgStatus(props) {
|
|
18299
18322
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18300
18323
|
var _props$value = props.value,
|
|
@@ -18304,7 +18327,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
18304
18327
|
failValue = props.failValue,
|
|
18305
18328
|
_props$type = props.type,
|
|
18306
18329
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18307
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18330
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
18308
18331
|
var _useState = React.useState(0),
|
|
18309
18332
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18310
18333
|
changeIndex = _useState2[0],
|
|
@@ -18373,7 +18396,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
18373
18396
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
18374
18397
|
};
|
|
18375
18398
|
|
|
18376
|
-
var _excluded$
|
|
18399
|
+
var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18377
18400
|
var typeMap$3 = {
|
|
18378
18401
|
BS_E3_REISSUE_GOODS: {
|
|
18379
18402
|
key: 'bsE3ReissueGoods',
|
|
@@ -18391,7 +18414,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18391
18414
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18392
18415
|
disabled = props.disabled,
|
|
18393
18416
|
type = props.type,
|
|
18394
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18417
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
18395
18418
|
var getOrderFlag = React.useRef(false);
|
|
18396
18419
|
var _useState = React.useState(false),
|
|
18397
18420
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18607,8 +18630,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18607
18630
|
})));
|
|
18608
18631
|
};
|
|
18609
18632
|
|
|
18610
|
-
var _excluded$
|
|
18611
|
-
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState"];
|
|
18633
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
18634
|
+
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
18612
18635
|
var typeMap$4 = {
|
|
18613
18636
|
GY_REISSUE_GOODS: {
|
|
18614
18637
|
key: 'gyReissueGoods',
|
|
@@ -18636,7 +18659,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
18636
18659
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18637
18660
|
disabled = props.disabled,
|
|
18638
18661
|
type = props.type,
|
|
18639
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18662
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
18640
18663
|
var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$gySystemOrder = value.gySystemOrder) === null || _value$gySystemOrder === void 0 ? void 0 : _value$gySystemOrder.orders) || []).some(function (order) {
|
|
18641
18664
|
var _order$platformCode;
|
|
18642
18665
|
return order === null || order === void 0 ? void 0 : (_order$platformCode = order.platformCode) === null || _order$platformCode === void 0 ? void 0 : _order$platformCode.includes(';');
|
|
@@ -18670,6 +18693,8 @@ var GyReissue = function GyReissue(props) {
|
|
|
18670
18693
|
billTag = _ref2.billTag,
|
|
18671
18694
|
tradeTagName = _ref2.tradeTagName,
|
|
18672
18695
|
deliveryState = _ref2.deliveryState,
|
|
18696
|
+
vipCode = _ref2.vipCode,
|
|
18697
|
+
shopCode = _ref2.shopCode,
|
|
18673
18698
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
18674
18699
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
18675
18700
|
billNo: billNo,
|
|
@@ -18677,7 +18702,9 @@ var GyReissue = function GyReissue(props) {
|
|
|
18677
18702
|
billTag: billTag,
|
|
18678
18703
|
tradeTagName: tradeTagName,
|
|
18679
18704
|
deliveryState: deliveryState,
|
|
18680
|
-
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState]
|
|
18705
|
+
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState],
|
|
18706
|
+
vipCode: vipCode,
|
|
18707
|
+
shopCode: shopCode
|
|
18681
18708
|
});
|
|
18682
18709
|
});
|
|
18683
18710
|
onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type5 = typeMap$4[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder, _objectSpread2(_objectSpread2({}, value[(_typeMap$type6 = typeMap$4[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]), {}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.12-beta.
|
|
3
|
+
"version": "2.0.12-beta.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.0.12-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.3",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.9",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "de663a2d4df54a85b0bcfd2f1fe066781583c5e7"
|
|
69
69
|
}
|