@kmkf-fe-packages/basic-components 2.0.12-beta.2 → 2.0.12-beta.6
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 +44 -31
- package/dist/index.js +44 -30
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -14376,8 +14376,9 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14376
14376
|
};
|
|
14377
14377
|
};
|
|
14378
14378
|
|
|
14379
|
-
var getColumns$5 = function getColumns(
|
|
14380
|
-
var _ref
|
|
14379
|
+
var getColumns$5 = function getColumns() {
|
|
14380
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
14381
|
+
_ref$text = _ref.text,
|
|
14381
14382
|
disabled = _ref.disabled,
|
|
14382
14383
|
updateHandle = _ref.updateHandle;
|
|
14383
14384
|
return {
|
|
@@ -14441,7 +14442,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14441
14442
|
min: 0,
|
|
14442
14443
|
precision: 2,
|
|
14443
14444
|
onChange: function onChange(num) {
|
|
14444
|
-
return updateHandle(num, index, 'salePrice');
|
|
14445
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
14445
14446
|
}
|
|
14446
14447
|
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14447
14448
|
}
|
|
@@ -14460,7 +14461,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14460
14461
|
min: 1,
|
|
14461
14462
|
precision: 0,
|
|
14462
14463
|
onChange: function onChange(num) {
|
|
14463
|
-
return updateHandle(num, index, 'qty');
|
|
14464
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
14464
14465
|
}
|
|
14465
14466
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
14466
14467
|
}
|
|
@@ -14489,7 +14490,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14489
14490
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
14490
14491
|
value: val,
|
|
14491
14492
|
onChange: function onChange(value) {
|
|
14492
|
-
updateHandle(value, index, 'isGift');
|
|
14493
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
14493
14494
|
},
|
|
14494
14495
|
options: [{
|
|
14495
14496
|
label: '是',
|
|
@@ -14567,7 +14568,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14567
14568
|
min: 0,
|
|
14568
14569
|
precision: 2,
|
|
14569
14570
|
onChange: function onChange(num) {
|
|
14570
|
-
return updateHandle(num, index, 'salePrice');
|
|
14571
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
14571
14572
|
}
|
|
14572
14573
|
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14573
14574
|
}
|
|
@@ -14586,7 +14587,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14586
14587
|
min: 1,
|
|
14587
14588
|
precision: 0,
|
|
14588
14589
|
onChange: function onChange(num) {
|
|
14589
|
-
return updateHandle(num, index, 'qty');
|
|
14590
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
14590
14591
|
}
|
|
14591
14592
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
14592
14593
|
}
|
|
@@ -14600,7 +14601,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14600
14601
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
14601
14602
|
value: val,
|
|
14602
14603
|
onChange: function onChange(value) {
|
|
14603
|
-
updateHandle(value, index, 'isGift');
|
|
14604
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
14604
14605
|
},
|
|
14605
14606
|
options: [{
|
|
14606
14607
|
label: '是',
|
|
@@ -14624,7 +14625,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14624
14625
|
},
|
|
14625
14626
|
value: val,
|
|
14626
14627
|
onChange: function onChange(e) {
|
|
14627
|
-
return updateHandle(e.target.value, index, 'remark');
|
|
14628
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
14628
14629
|
}
|
|
14629
14630
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
14630
14631
|
}
|
|
@@ -15316,7 +15317,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15316
15317
|
}
|
|
15317
15318
|
return params;
|
|
15318
15319
|
}, [tableSelect, selectedRowKeys]);
|
|
15319
|
-
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'];
|
|
15320
|
+
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
|
|
15320
15321
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && showChangeBtn && /*#__PURE__*/React.createElement("div", {
|
|
15321
15322
|
style: {
|
|
15322
15323
|
float: 'right'
|
|
@@ -16066,6 +16067,8 @@ var getGyOrderListSingleton = function getGyOrderListSingleton(orderNo) {
|
|
|
16066
16067
|
billTag: item.tagName,
|
|
16067
16068
|
tradeTagName: item.tradeTagName,
|
|
16068
16069
|
deliveryState: item.deliveryState,
|
|
16070
|
+
vipCode: item.vipCode,
|
|
16071
|
+
shopCode: item.shopCode,
|
|
16069
16072
|
deliveryStateName: GY_DELIVERY_STATE_MAPPING[item.deliveryState]
|
|
16070
16073
|
});
|
|
16071
16074
|
});
|
|
@@ -16168,6 +16171,7 @@ var kmUtils = {
|
|
|
16168
16171
|
getOrderListSingleton: getOrderListSingleton
|
|
16169
16172
|
};
|
|
16170
16173
|
|
|
16174
|
+
var _excluded$g = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16171
16175
|
var columnsMap = {
|
|
16172
16176
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16173
16177
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16436,15 +16440,20 @@ var index$1 = (function (props) {
|
|
|
16436
16440
|
billType = _ref10.billType,
|
|
16437
16441
|
billTag = _ref10.billTag,
|
|
16438
16442
|
tradeTagName = _ref10.tradeTagName,
|
|
16439
|
-
deliveryState = _ref10.deliveryState
|
|
16440
|
-
|
|
16443
|
+
deliveryState = _ref10.deliveryState,
|
|
16444
|
+
vipCode = _ref10.vipCode,
|
|
16445
|
+
shopCode = _ref10.shopCode,
|
|
16446
|
+
rest = _objectWithoutProperties(_ref10, _excluded$g);
|
|
16447
|
+
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
16441
16448
|
billNo: billNo,
|
|
16442
16449
|
billType: billType,
|
|
16443
16450
|
billTag: billTag,
|
|
16444
16451
|
tradeTagName: tradeTagName,
|
|
16445
16452
|
deliveryState: deliveryState,
|
|
16446
|
-
deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState]
|
|
16447
|
-
|
|
16453
|
+
deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState],
|
|
16454
|
+
vipCode: vipCode,
|
|
16455
|
+
shopCode: shopCode
|
|
16456
|
+
});
|
|
16448
16457
|
})
|
|
16449
16458
|
}));
|
|
16450
16459
|
});
|
|
@@ -17077,7 +17086,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17077
17086
|
})));
|
|
17078
17087
|
};
|
|
17079
17088
|
|
|
17080
|
-
var _excluded$
|
|
17089
|
+
var _excluded$h = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17081
17090
|
var typeMap$1 = {
|
|
17082
17091
|
WDT_REISSUE_GOODS: {
|
|
17083
17092
|
key: 'wdtReissueGoods',
|
|
@@ -17105,7 +17114,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17105
17114
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17106
17115
|
disabled = props.disabled,
|
|
17107
17116
|
type = props.type,
|
|
17108
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
17117
|
+
other = _objectWithoutProperties(props, _excluded$h);
|
|
17109
17118
|
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) {
|
|
17110
17119
|
var _order$srcTid;
|
|
17111
17120
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -17349,7 +17358,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17349
17358
|
})));
|
|
17350
17359
|
};
|
|
17351
17360
|
|
|
17352
|
-
var _excluded$
|
|
17361
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17353
17362
|
var typeMap$2 = {
|
|
17354
17363
|
JST_REISSUE_GOODS: {
|
|
17355
17364
|
key: 'jstReissueGoods',
|
|
@@ -17373,7 +17382,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
17373
17382
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17374
17383
|
disabled = props.disabled,
|
|
17375
17384
|
type = props.type,
|
|
17376
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
17385
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17377
17386
|
var getOrderFlag = useRef(false);
|
|
17378
17387
|
var _useState = useState(false),
|
|
17379
17388
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18079,12 +18088,12 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18079
18088
|
};
|
|
18080
18089
|
var index$2 = /*#__PURE__*/forwardRef(Goods$1);
|
|
18081
18090
|
|
|
18082
|
-
var _excluded$
|
|
18091
|
+
var _excluded$j = ["onChange", "value", "failValue"];
|
|
18083
18092
|
function CommonStatus(props) {
|
|
18084
18093
|
var onChange = props.onChange,
|
|
18085
18094
|
value = props.value,
|
|
18086
18095
|
failValue = props.failValue,
|
|
18087
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18096
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
18088
18097
|
var changeHandle = function changeHandle(val) {
|
|
18089
18098
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18090
18099
|
status: val,
|
|
@@ -18221,7 +18230,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18221
18230
|
})) : null) : null);
|
|
18222
18231
|
};
|
|
18223
18232
|
|
|
18224
|
-
var _excluded$
|
|
18233
|
+
var _excluded$k = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18225
18234
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18226
18235
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18227
18236
|
var _props$value = props.value,
|
|
@@ -18231,7 +18240,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18231
18240
|
failValue = props.failValue,
|
|
18232
18241
|
_props$type = props.type,
|
|
18233
18242
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18234
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18243
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18235
18244
|
var _useState = useState(0),
|
|
18236
18245
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18237
18246
|
changeIndex = _useState2[0],
|
|
@@ -18297,7 +18306,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18297
18306
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
18298
18307
|
};
|
|
18299
18308
|
|
|
18300
|
-
var _excluded$
|
|
18309
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18301
18310
|
var MsgStatus = function MsgStatus(props) {
|
|
18302
18311
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18303
18312
|
var _props$value = props.value,
|
|
@@ -18307,7 +18316,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
18307
18316
|
failValue = props.failValue,
|
|
18308
18317
|
_props$type = props.type,
|
|
18309
18318
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18310
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18319
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
18311
18320
|
var _useState = useState(0),
|
|
18312
18321
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18313
18322
|
changeIndex = _useState2[0],
|
|
@@ -18376,7 +18385,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
18376
18385
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
18377
18386
|
};
|
|
18378
18387
|
|
|
18379
|
-
var _excluded$
|
|
18388
|
+
var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18380
18389
|
var typeMap$3 = {
|
|
18381
18390
|
BS_E3_REISSUE_GOODS: {
|
|
18382
18391
|
key: 'bsE3ReissueGoods',
|
|
@@ -18394,7 +18403,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18394
18403
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18395
18404
|
disabled = props.disabled,
|
|
18396
18405
|
type = props.type,
|
|
18397
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18406
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
18398
18407
|
var getOrderFlag = useRef(false);
|
|
18399
18408
|
var _useState = useState(false),
|
|
18400
18409
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18610,8 +18619,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18610
18619
|
})));
|
|
18611
18620
|
};
|
|
18612
18621
|
|
|
18613
|
-
var _excluded$
|
|
18614
|
-
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState"];
|
|
18622
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
18623
|
+
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
18615
18624
|
var typeMap$4 = {
|
|
18616
18625
|
GY_REISSUE_GOODS: {
|
|
18617
18626
|
key: 'gyReissueGoods',
|
|
@@ -18639,7 +18648,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
18639
18648
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18640
18649
|
disabled = props.disabled,
|
|
18641
18650
|
type = props.type,
|
|
18642
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18651
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
18643
18652
|
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) {
|
|
18644
18653
|
var _order$platformCode;
|
|
18645
18654
|
return order === null || order === void 0 ? void 0 : (_order$platformCode = order.platformCode) === null || _order$platformCode === void 0 ? void 0 : _order$platformCode.includes(';');
|
|
@@ -18673,6 +18682,8 @@ var GyReissue = function GyReissue(props) {
|
|
|
18673
18682
|
billTag = _ref2.billTag,
|
|
18674
18683
|
tradeTagName = _ref2.tradeTagName,
|
|
18675
18684
|
deliveryState = _ref2.deliveryState,
|
|
18685
|
+
vipCode = _ref2.vipCode,
|
|
18686
|
+
shopCode = _ref2.shopCode,
|
|
18676
18687
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
18677
18688
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
18678
18689
|
billNo: billNo,
|
|
@@ -18680,7 +18691,9 @@ var GyReissue = function GyReissue(props) {
|
|
|
18680
18691
|
billTag: billTag,
|
|
18681
18692
|
tradeTagName: tradeTagName,
|
|
18682
18693
|
deliveryState: deliveryState,
|
|
18683
|
-
deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState]
|
|
18694
|
+
deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState],
|
|
18695
|
+
vipCode: vipCode,
|
|
18696
|
+
shopCode: shopCode
|
|
18684
18697
|
});
|
|
18685
18698
|
});
|
|
18686
18699
|
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]), {}, {
|
|
@@ -18859,4 +18872,4 @@ var GyReissue = function GyReissue(props) {
|
|
|
18859
18872
|
})));
|
|
18860
18873
|
};
|
|
18861
18874
|
|
|
18862
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, GyReissue, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap };
|
|
18875
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, GyReissue, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, getColumns$5 as getJstColumns };
|
package/dist/index.js
CHANGED
|
@@ -14388,8 +14388,9 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14388
14388
|
};
|
|
14389
14389
|
};
|
|
14390
14390
|
|
|
14391
|
-
var getColumns$5 = function getColumns(
|
|
14392
|
-
var _ref
|
|
14391
|
+
var getColumns$5 = function getColumns() {
|
|
14392
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
14393
|
+
_ref$text = _ref.text,
|
|
14393
14394
|
disabled = _ref.disabled,
|
|
14394
14395
|
updateHandle = _ref.updateHandle;
|
|
14395
14396
|
return {
|
|
@@ -14453,7 +14454,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14453
14454
|
min: 0,
|
|
14454
14455
|
precision: 2,
|
|
14455
14456
|
onChange: function onChange(num) {
|
|
14456
|
-
return updateHandle(num, index, 'salePrice');
|
|
14457
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
14457
14458
|
}
|
|
14458
14459
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14459
14460
|
}
|
|
@@ -14472,7 +14473,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14472
14473
|
min: 1,
|
|
14473
14474
|
precision: 0,
|
|
14474
14475
|
onChange: function onChange(num) {
|
|
14475
|
-
return updateHandle(num, index, 'qty');
|
|
14476
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
14476
14477
|
}
|
|
14477
14478
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14478
14479
|
}
|
|
@@ -14501,7 +14502,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14501
14502
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
14502
14503
|
value: val,
|
|
14503
14504
|
onChange: function onChange(value) {
|
|
14504
|
-
updateHandle(value, index, 'isGift');
|
|
14505
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
14505
14506
|
},
|
|
14506
14507
|
options: [{
|
|
14507
14508
|
label: '是',
|
|
@@ -14579,7 +14580,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14579
14580
|
min: 0,
|
|
14580
14581
|
precision: 2,
|
|
14581
14582
|
onChange: function onChange(num) {
|
|
14582
|
-
return updateHandle(num, index, 'salePrice');
|
|
14583
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
14583
14584
|
}
|
|
14584
14585
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
14585
14586
|
}
|
|
@@ -14598,7 +14599,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14598
14599
|
min: 1,
|
|
14599
14600
|
precision: 0,
|
|
14600
14601
|
onChange: function onChange(num) {
|
|
14601
|
-
return updateHandle(num, index, 'qty');
|
|
14602
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
14602
14603
|
}
|
|
14603
14604
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14604
14605
|
}
|
|
@@ -14612,7 +14613,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14612
14613
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
14613
14614
|
value: val,
|
|
14614
14615
|
onChange: function onChange(value) {
|
|
14615
|
-
updateHandle(value, index, 'isGift');
|
|
14616
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
14616
14617
|
},
|
|
14617
14618
|
options: [{
|
|
14618
14619
|
label: '是',
|
|
@@ -14636,7 +14637,7 @@ var getColumns$5 = function getColumns(_ref) {
|
|
|
14636
14637
|
},
|
|
14637
14638
|
value: val,
|
|
14638
14639
|
onChange: function onChange(e) {
|
|
14639
|
-
return updateHandle(e.target.value, index, 'remark');
|
|
14640
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
14640
14641
|
}
|
|
14641
14642
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
14642
14643
|
}
|
|
@@ -15328,7 +15329,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
15328
15329
|
}
|
|
15329
15330
|
return params;
|
|
15330
15331
|
}, [tableSelect, selectedRowKeys]);
|
|
15331
|
-
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'];
|
|
15332
|
+
var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
|
|
15332
15333
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !disabled && showChangeBtn && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15333
15334
|
style: {
|
|
15334
15335
|
float: 'right'
|
|
@@ -16078,6 +16079,8 @@ var getGyOrderListSingleton = function getGyOrderListSingleton(orderNo) {
|
|
|
16078
16079
|
billTag: item.tagName,
|
|
16079
16080
|
tradeTagName: item.tradeTagName,
|
|
16080
16081
|
deliveryState: item.deliveryState,
|
|
16082
|
+
vipCode: item.vipCode,
|
|
16083
|
+
shopCode: item.shopCode,
|
|
16081
16084
|
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[item.deliveryState]
|
|
16082
16085
|
});
|
|
16083
16086
|
});
|
|
@@ -16180,6 +16183,7 @@ var kmUtils = {
|
|
|
16180
16183
|
getOrderListSingleton: getOrderListSingleton
|
|
16181
16184
|
};
|
|
16182
16185
|
|
|
16186
|
+
var _excluded$g = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
16183
16187
|
var columnsMap = {
|
|
16184
16188
|
BS_SYSTEM_ORDER: kmkfUtils.BS_SYSTEM_ORDER_CONFIG.columns,
|
|
16185
16189
|
KM_SYSTEM_ORDER: kmkfUtils.KM_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -16448,15 +16452,20 @@ var index$1 = (function (props) {
|
|
|
16448
16452
|
billType = _ref10.billType,
|
|
16449
16453
|
billTag = _ref10.billTag,
|
|
16450
16454
|
tradeTagName = _ref10.tradeTagName,
|
|
16451
|
-
deliveryState = _ref10.deliveryState
|
|
16452
|
-
|
|
16455
|
+
deliveryState = _ref10.deliveryState,
|
|
16456
|
+
vipCode = _ref10.vipCode,
|
|
16457
|
+
shopCode = _ref10.shopCode,
|
|
16458
|
+
rest = _objectWithoutProperties(_ref10, _excluded$g);
|
|
16459
|
+
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
16453
16460
|
billNo: billNo,
|
|
16454
16461
|
billType: billType,
|
|
16455
16462
|
billTag: billTag,
|
|
16456
16463
|
tradeTagName: tradeTagName,
|
|
16457
16464
|
deliveryState: deliveryState,
|
|
16458
|
-
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState]
|
|
16459
|
-
|
|
16465
|
+
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState],
|
|
16466
|
+
vipCode: vipCode,
|
|
16467
|
+
shopCode: shopCode
|
|
16468
|
+
});
|
|
16460
16469
|
})
|
|
16461
16470
|
}));
|
|
16462
16471
|
});
|
|
@@ -17089,7 +17098,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
17089
17098
|
})));
|
|
17090
17099
|
};
|
|
17091
17100
|
|
|
17092
|
-
var _excluded$
|
|
17101
|
+
var _excluded$h = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17093
17102
|
var typeMap$1 = {
|
|
17094
17103
|
WDT_REISSUE_GOODS: {
|
|
17095
17104
|
key: 'wdtReissueGoods',
|
|
@@ -17117,7 +17126,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17117
17126
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17118
17127
|
disabled = props.disabled,
|
|
17119
17128
|
type = props.type,
|
|
17120
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
17129
|
+
other = _objectWithoutProperties(props, _excluded$h);
|
|
17121
17130
|
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) {
|
|
17122
17131
|
var _order$srcTid;
|
|
17123
17132
|
return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
|
|
@@ -17361,7 +17370,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
17361
17370
|
})));
|
|
17362
17371
|
};
|
|
17363
17372
|
|
|
17364
|
-
var _excluded$
|
|
17373
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
17365
17374
|
var typeMap$2 = {
|
|
17366
17375
|
JST_REISSUE_GOODS: {
|
|
17367
17376
|
key: 'jstReissueGoods',
|
|
@@ -17385,7 +17394,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
17385
17394
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
17386
17395
|
disabled = props.disabled,
|
|
17387
17396
|
type = props.type,
|
|
17388
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
17397
|
+
other = _objectWithoutProperties(props, _excluded$i);
|
|
17389
17398
|
var getOrderFlag = React.useRef(false);
|
|
17390
17399
|
var _useState = React.useState(false),
|
|
17391
17400
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18091,12 +18100,12 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
18091
18100
|
};
|
|
18092
18101
|
var index$2 = /*#__PURE__*/React.forwardRef(Goods$1);
|
|
18093
18102
|
|
|
18094
|
-
var _excluded$
|
|
18103
|
+
var _excluded$j = ["onChange", "value", "failValue"];
|
|
18095
18104
|
function CommonStatus(props) {
|
|
18096
18105
|
var onChange = props.onChange,
|
|
18097
18106
|
value = props.value,
|
|
18098
18107
|
failValue = props.failValue,
|
|
18099
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18108
|
+
other = _objectWithoutProperties(props, _excluded$j);
|
|
18100
18109
|
var changeHandle = function changeHandle(val) {
|
|
18101
18110
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
18102
18111
|
status: val,
|
|
@@ -18233,7 +18242,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
|
|
|
18233
18242
|
})) : null) : null);
|
|
18234
18243
|
};
|
|
18235
18244
|
|
|
18236
|
-
var _excluded$
|
|
18245
|
+
var _excluded$k = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18237
18246
|
var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
18238
18247
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18239
18248
|
var _props$value = props.value,
|
|
@@ -18243,7 +18252,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18243
18252
|
failValue = props.failValue,
|
|
18244
18253
|
_props$type = props.type,
|
|
18245
18254
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18246
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18255
|
+
other = _objectWithoutProperties(props, _excluded$k);
|
|
18247
18256
|
var _useState = React.useState(0),
|
|
18248
18257
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18249
18258
|
changeIndex = _useState2[0],
|
|
@@ -18309,7 +18318,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
|
|
|
18309
18318
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
|
|
18310
18319
|
};
|
|
18311
18320
|
|
|
18312
|
-
var _excluded$
|
|
18321
|
+
var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
|
|
18313
18322
|
var MsgStatus = function MsgStatus(props) {
|
|
18314
18323
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
|
|
18315
18324
|
var _props$value = props.value,
|
|
@@ -18319,7 +18328,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
18319
18328
|
failValue = props.failValue,
|
|
18320
18329
|
_props$type = props.type,
|
|
18321
18330
|
type = _props$type === void 0 ? 1 : _props$type,
|
|
18322
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18331
|
+
other = _objectWithoutProperties(props, _excluded$l);
|
|
18323
18332
|
var _useState = React.useState(0),
|
|
18324
18333
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18325
18334
|
changeIndex = _useState2[0],
|
|
@@ -18388,7 +18397,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
18388
18397
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
18389
18398
|
};
|
|
18390
18399
|
|
|
18391
|
-
var _excluded$
|
|
18400
|
+
var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18392
18401
|
var typeMap$3 = {
|
|
18393
18402
|
BS_E3_REISSUE_GOODS: {
|
|
18394
18403
|
key: 'bsE3ReissueGoods',
|
|
@@ -18406,7 +18415,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18406
18415
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18407
18416
|
disabled = props.disabled,
|
|
18408
18417
|
type = props.type,
|
|
18409
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18418
|
+
other = _objectWithoutProperties(props, _excluded$m);
|
|
18410
18419
|
var getOrderFlag = React.useRef(false);
|
|
18411
18420
|
var _useState = React.useState(false),
|
|
18412
18421
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -18622,8 +18631,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
18622
18631
|
})));
|
|
18623
18632
|
};
|
|
18624
18633
|
|
|
18625
|
-
var _excluded$
|
|
18626
|
-
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState"];
|
|
18634
|
+
var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
18635
|
+
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
18627
18636
|
var typeMap$4 = {
|
|
18628
18637
|
GY_REISSUE_GOODS: {
|
|
18629
18638
|
key: 'gyReissueGoods',
|
|
@@ -18651,7 +18660,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
18651
18660
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18652
18661
|
disabled = props.disabled,
|
|
18653
18662
|
type = props.type,
|
|
18654
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
18663
|
+
other = _objectWithoutProperties(props, _excluded$n);
|
|
18655
18664
|
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) {
|
|
18656
18665
|
var _order$platformCode;
|
|
18657
18666
|
return order === null || order === void 0 ? void 0 : (_order$platformCode = order.platformCode) === null || _order$platformCode === void 0 ? void 0 : _order$platformCode.includes(';');
|
|
@@ -18685,6 +18694,8 @@ var GyReissue = function GyReissue(props) {
|
|
|
18685
18694
|
billTag = _ref2.billTag,
|
|
18686
18695
|
tradeTagName = _ref2.tradeTagName,
|
|
18687
18696
|
deliveryState = _ref2.deliveryState,
|
|
18697
|
+
vipCode = _ref2.vipCode,
|
|
18698
|
+
shopCode = _ref2.shopCode,
|
|
18688
18699
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
18689
18700
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
18690
18701
|
billNo: billNo,
|
|
@@ -18692,7 +18703,9 @@ var GyReissue = function GyReissue(props) {
|
|
|
18692
18703
|
billTag: billTag,
|
|
18693
18704
|
tradeTagName: tradeTagName,
|
|
18694
18705
|
deliveryState: deliveryState,
|
|
18695
|
-
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState]
|
|
18706
|
+
deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState],
|
|
18707
|
+
vipCode: vipCode,
|
|
18708
|
+
shopCode: shopCode
|
|
18696
18709
|
});
|
|
18697
18710
|
});
|
|
18698
18711
|
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]), {}, {
|
|
@@ -18935,3 +18948,4 @@ exports.WdtGoodList = WdtGoodList;
|
|
|
18935
18948
|
exports.WdtReissue = wdtReissue;
|
|
18936
18949
|
exports.WlnGoods = WlnGoods;
|
|
18937
18950
|
exports.columnsBaseInfoMap = columnsBaseInfoMap;
|
|
18951
|
+
exports.getJstColumns = getColumns$5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as getJstColumns } from './jst';
|
package/dist/src/index.d.ts
CHANGED
|
@@ -62,4 +62,5 @@ export { default as WdtGoodList } from './bs/component/model/WdtGoodList';
|
|
|
62
62
|
export { default as BsE3Reissue } from './e3/Reissue';
|
|
63
63
|
export type { WdtGoods } from './bs/component/model/WdtGoodList';
|
|
64
64
|
export { default as GyReissue } from './gy/Reissue';
|
|
65
|
+
export * from './constants/index';
|
|
65
66
|
export { default as columnsBaseInfoMap } from './constants/columnsBaseInfoMap';
|
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.6",
|
|
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": "f561f4ccaec02e8a1a0f8cabaaf19a9cde3dff3a"
|
|
69
69
|
}
|