@kmkf-fe-packages/basic-components 2.0.12-beta.1 → 2.0.12-beta.11

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 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",
@@ -14367,8 +14376,9 @@ var getColumns$4 = function getColumns(_ref) {
14367
14376
  };
14368
14377
  };
14369
14378
 
14370
- var getColumns$5 = function getColumns(_ref) {
14371
- var _ref$text = _ref.text,
14379
+ var getColumns$5 = function getColumns() {
14380
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
14381
+ _ref$text = _ref.text,
14372
14382
  disabled = _ref.disabled,
14373
14383
  updateHandle = _ref.updateHandle;
14374
14384
  return {
@@ -14413,7 +14423,10 @@ var getColumns$5 = function getColumns(_ref) {
14413
14423
  title: '原价',
14414
14424
  width: 150,
14415
14425
  ellipsis: true,
14416
- align: 'center'
14426
+ align: 'center',
14427
+ render: function render(price) {
14428
+ return price || price === 0 ? Number(price).toFixed(2) : '';
14429
+ }
14417
14430
  }, {
14418
14431
  dataIndex: 'salePrice',
14419
14432
  title: '单价',
@@ -14429,9 +14442,9 @@ var getColumns$5 = function getColumns(_ref) {
14429
14442
  min: 0,
14430
14443
  precision: 2,
14431
14444
  onChange: function onChange(num) {
14432
- return updateHandle(num, index, 'salePrice');
14445
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
14433
14446
  }
14434
- }) : /*#__PURE__*/React.createElement("span", null, val);
14447
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
14435
14448
  }
14436
14449
  }, {
14437
14450
  dataIndex: 'qty',
@@ -14448,7 +14461,7 @@ var getColumns$5 = function getColumns(_ref) {
14448
14461
  min: 1,
14449
14462
  precision: 0,
14450
14463
  onChange: function onChange(num) {
14451
- return updateHandle(num, index, 'qty');
14464
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
14452
14465
  }
14453
14466
  }) : /*#__PURE__*/React.createElement("span", null, val);
14454
14467
  }
@@ -14477,7 +14490,7 @@ var getColumns$5 = function getColumns(_ref) {
14477
14490
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
14478
14491
  value: val,
14479
14492
  onChange: function onChange(value) {
14480
- updateHandle(value, index, 'isGift');
14493
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
14481
14494
  },
14482
14495
  options: [{
14483
14496
  label: '是',
@@ -14491,7 +14504,7 @@ var getColumns$5 = function getColumns(_ref) {
14491
14504
  }, {
14492
14505
  dataIndex: 'outerOiId',
14493
14506
  title: '子订单号',
14494
- width: 150,
14507
+ width: 240,
14495
14508
  ellipsis: true,
14496
14509
  align: 'center'
14497
14510
  }],
@@ -14536,7 +14549,10 @@ var getColumns$5 = function getColumns(_ref) {
14536
14549
  title: '原价',
14537
14550
  width: 150,
14538
14551
  ellipsis: true,
14539
- align: 'center'
14552
+ align: 'center',
14553
+ render: function render(price) {
14554
+ return price || price === 0 ? Number(price).toFixed(2) : '';
14555
+ }
14540
14556
  }, {
14541
14557
  dataIndex: 'salePrice',
14542
14558
  title: '单价',
@@ -14552,9 +14568,9 @@ var getColumns$5 = function getColumns(_ref) {
14552
14568
  min: 0,
14553
14569
  precision: 2,
14554
14570
  onChange: function onChange(num) {
14555
- return updateHandle(num, index, 'salePrice');
14571
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
14556
14572
  }
14557
- }) : /*#__PURE__*/React.createElement("span", null, val);
14573
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
14558
14574
  }
14559
14575
  }, {
14560
14576
  dataIndex: 'qty',
@@ -14571,7 +14587,7 @@ var getColumns$5 = function getColumns(_ref) {
14571
14587
  min: 1,
14572
14588
  precision: 0,
14573
14589
  onChange: function onChange(num) {
14574
- return updateHandle(num, index, 'qty');
14590
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
14575
14591
  }
14576
14592
  }) : /*#__PURE__*/React.createElement("span", null, val);
14577
14593
  }
@@ -14585,7 +14601,7 @@ var getColumns$5 = function getColumns(_ref) {
14585
14601
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
14586
14602
  value: val,
14587
14603
  onChange: function onChange(value) {
14588
- updateHandle(value, index, 'isGift');
14604
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
14589
14605
  },
14590
14606
  options: [{
14591
14607
  label: '是',
@@ -14609,7 +14625,7 @@ var getColumns$5 = function getColumns(_ref) {
14609
14625
  },
14610
14626
  value: val,
14611
14627
  onChange: function onChange(e) {
14612
- return updateHandle(e.target.value, index, 'remark');
14628
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
14613
14629
  }
14614
14630
  }) : /*#__PURE__*/React.createElement("span", null, val);
14615
14631
  }
@@ -15301,7 +15317,7 @@ var GoodItem$1 = function GoodItem(props) {
15301
15317
  }
15302
15318
  return params;
15303
15319
  }, [tableSelect, selectedRowKeys]);
15304
- var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'];
15320
+ var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
15305
15321
  return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && showChangeBtn && /*#__PURE__*/React.createElement("div", {
15306
15322
  style: {
15307
15323
  float: 'right'
@@ -16051,6 +16067,8 @@ var getGyOrderListSingleton = function getGyOrderListSingleton(orderNo) {
16051
16067
  billTag: item.tagName,
16052
16068
  tradeTagName: item.tradeTagName,
16053
16069
  deliveryState: item.deliveryState,
16070
+ vipCode: item.vipCode,
16071
+ shopCode: item.shopCode,
16054
16072
  deliveryStateName: GY_DELIVERY_STATE_MAPPING[item.deliveryState]
16055
16073
  });
16056
16074
  });
@@ -16153,6 +16171,7 @@ var kmUtils = {
16153
16171
  getOrderListSingleton: getOrderListSingleton
16154
16172
  };
16155
16173
 
16174
+ var _excluded$g = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
16156
16175
  var columnsMap = {
16157
16176
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
16158
16177
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
@@ -16421,15 +16440,20 @@ var index$1 = (function (props) {
16421
16440
  billType = _ref10.billType,
16422
16441
  billTag = _ref10.billTag,
16423
16442
  tradeTagName = _ref10.tradeTagName,
16424
- deliveryState = _ref10.deliveryState;
16425
- return {
16443
+ deliveryState = _ref10.deliveryState,
16444
+ vipCode = _ref10.vipCode,
16445
+ shopCode = _ref10.shopCode,
16446
+ rest = _objectWithoutProperties(_ref10, _excluded$g);
16447
+ return _objectSpread2(_objectSpread2({}, rest), {}, {
16426
16448
  billNo: billNo,
16427
16449
  billType: billType,
16428
16450
  billTag: billTag,
16429
16451
  tradeTagName: tradeTagName,
16430
16452
  deliveryState: deliveryState,
16431
- deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState]
16432
- };
16453
+ deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState],
16454
+ vipCode: vipCode,
16455
+ shopCode: shopCode
16456
+ });
16433
16457
  })
16434
16458
  }));
16435
16459
  });
@@ -17062,7 +17086,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
17062
17086
  })));
17063
17087
  };
17064
17088
 
17065
- var _excluded$g = ["value", "onChange", "reasonList", "disabled", "type"];
17089
+ var _excluded$h = ["value", "onChange", "reasonList", "disabled", "type"];
17066
17090
  var typeMap$1 = {
17067
17091
  WDT_REISSUE_GOODS: {
17068
17092
  key: 'wdtReissueGoods',
@@ -17090,7 +17114,7 @@ var wdtReissue = function wdtReissue(props) {
17090
17114
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
17091
17115
  disabled = props.disabled,
17092
17116
  type = props.type,
17093
- other = _objectWithoutProperties(props, _excluded$g);
17117
+ other = _objectWithoutProperties(props, _excluded$h);
17094
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) {
17095
17119
  var _order$srcTid;
17096
17120
  return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
@@ -17334,7 +17358,7 @@ var wdtReissue = function wdtReissue(props) {
17334
17358
  })));
17335
17359
  };
17336
17360
 
17337
- var _excluded$h = ["value", "onChange", "reasonList", "disabled", "type"];
17361
+ var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
17338
17362
  var typeMap$2 = {
17339
17363
  JST_REISSUE_GOODS: {
17340
17364
  key: 'jstReissueGoods',
@@ -17358,7 +17382,7 @@ var PublicReissue = function PublicReissue(props) {
17358
17382
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
17359
17383
  disabled = props.disabled,
17360
17384
  type = props.type,
17361
- other = _objectWithoutProperties(props, _excluded$h);
17385
+ other = _objectWithoutProperties(props, _excluded$i);
17362
17386
  var getOrderFlag = useRef(false);
17363
17387
  var _useState = useState(false),
17364
17388
  _useState2 = _slicedToArray(_useState, 2),
@@ -18064,12 +18088,12 @@ var Goods$1 = function Goods(props, ref) {
18064
18088
  };
18065
18089
  var index$2 = /*#__PURE__*/forwardRef(Goods$1);
18066
18090
 
18067
- var _excluded$i = ["onChange", "value", "failValue"];
18091
+ var _excluded$j = ["onChange", "value", "failValue"];
18068
18092
  function CommonStatus(props) {
18069
18093
  var onChange = props.onChange,
18070
18094
  value = props.value,
18071
18095
  failValue = props.failValue,
18072
- other = _objectWithoutProperties(props, _excluded$i);
18096
+ other = _objectWithoutProperties(props, _excluded$j);
18073
18097
  var changeHandle = function changeHandle(val) {
18074
18098
  onChange === null || onChange === void 0 ? void 0 : onChange({
18075
18099
  status: val,
@@ -18206,7 +18230,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
18206
18230
  })) : null) : null);
18207
18231
  };
18208
18232
 
18209
- var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
18233
+ var _excluded$k = ["value", "onChange", "disabled", "failValue", "type"];
18210
18234
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
18211
18235
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
18212
18236
  var _props$value = props.value,
@@ -18216,7 +18240,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
18216
18240
  failValue = props.failValue,
18217
18241
  _props$type = props.type,
18218
18242
  type = _props$type === void 0 ? 1 : _props$type,
18219
- other = _objectWithoutProperties(props, _excluded$j);
18243
+ other = _objectWithoutProperties(props, _excluded$k);
18220
18244
  var _useState = useState(0),
18221
18245
  _useState2 = _slicedToArray(_useState, 2),
18222
18246
  changeIndex = _useState2[0],
@@ -18282,7 +18306,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
18282
18306
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
18283
18307
  };
18284
18308
 
18285
- var _excluded$k = ["value", "onChange", "disabled", "failValue", "type"];
18309
+ var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
18286
18310
  var MsgStatus = function MsgStatus(props) {
18287
18311
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
18288
18312
  var _props$value = props.value,
@@ -18292,7 +18316,7 @@ var MsgStatus = function MsgStatus(props) {
18292
18316
  failValue = props.failValue,
18293
18317
  _props$type = props.type,
18294
18318
  type = _props$type === void 0 ? 1 : _props$type,
18295
- other = _objectWithoutProperties(props, _excluded$k);
18319
+ other = _objectWithoutProperties(props, _excluded$l);
18296
18320
  var _useState = useState(0),
18297
18321
  _useState2 = _slicedToArray(_useState, 2),
18298
18322
  changeIndex = _useState2[0],
@@ -18361,7 +18385,7 @@ var CalculationInput = function CalculationInput(props) {
18361
18385
  }, config === null || config === void 0 ? void 0 : config.unit));
18362
18386
  };
18363
18387
 
18364
- var _excluded$l = ["value", "onChange", "reasonList", "disabled", "type"];
18388
+ var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type"];
18365
18389
  var typeMap$3 = {
18366
18390
  BS_E3_REISSUE_GOODS: {
18367
18391
  key: 'bsE3ReissueGoods',
@@ -18379,7 +18403,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
18379
18403
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18380
18404
  disabled = props.disabled,
18381
18405
  type = props.type,
18382
- other = _objectWithoutProperties(props, _excluded$l);
18406
+ other = _objectWithoutProperties(props, _excluded$m);
18383
18407
  var getOrderFlag = useRef(false);
18384
18408
  var _useState = useState(false),
18385
18409
  _useState2 = _slicedToArray(_useState, 2),
@@ -18595,8 +18619,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
18595
18619
  })));
18596
18620
  };
18597
18621
 
18598
- var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type"],
18599
- _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState"];
18622
+ var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"],
18623
+ _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
18600
18624
  var typeMap$4 = {
18601
18625
  GY_REISSUE_GOODS: {
18602
18626
  key: 'gyReissueGoods',
@@ -18624,7 +18648,7 @@ var GyReissue = function GyReissue(props) {
18624
18648
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18625
18649
  disabled = props.disabled,
18626
18650
  type = props.type,
18627
- other = _objectWithoutProperties(props, _excluded$m);
18651
+ other = _objectWithoutProperties(props, _excluded$n);
18628
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) {
18629
18653
  var _order$platformCode;
18630
18654
  return order === null || order === void 0 ? void 0 : (_order$platformCode = order.platformCode) === null || _order$platformCode === void 0 ? void 0 : _order$platformCode.includes(';');
@@ -18658,6 +18682,8 @@ var GyReissue = function GyReissue(props) {
18658
18682
  billTag = _ref2.billTag,
18659
18683
  tradeTagName = _ref2.tradeTagName,
18660
18684
  deliveryState = _ref2.deliveryState,
18685
+ vipCode = _ref2.vipCode,
18686
+ shopCode = _ref2.shopCode,
18661
18687
  rest = _objectWithoutProperties(_ref2, _excluded2);
18662
18688
  return _objectSpread2(_objectSpread2({}, rest), {}, {
18663
18689
  billNo: billNo,
@@ -18665,7 +18691,9 @@ var GyReissue = function GyReissue(props) {
18665
18691
  billTag: billTag,
18666
18692
  tradeTagName: tradeTagName,
18667
18693
  deliveryState: deliveryState,
18668
- deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState]
18694
+ deliveryStateName: GY_DELIVERY_STATE_MAPPING[deliveryState],
18695
+ vipCode: vipCode,
18696
+ shopCode: shopCode
18669
18697
  });
18670
18698
  });
18671
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]), {}, {
@@ -18844,4 +18872,4 @@ var GyReissue = function GyReissue(props) {
18844
18872
  })));
18845
18873
  };
18846
18874
 
18847
- 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
@@ -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",
@@ -14379,8 +14388,9 @@ var getColumns$4 = function getColumns(_ref) {
14379
14388
  };
14380
14389
  };
14381
14390
 
14382
- var getColumns$5 = function getColumns(_ref) {
14383
- var _ref$text = _ref.text,
14391
+ var getColumns$5 = function getColumns() {
14392
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
14393
+ _ref$text = _ref.text,
14384
14394
  disabled = _ref.disabled,
14385
14395
  updateHandle = _ref.updateHandle;
14386
14396
  return {
@@ -14425,7 +14435,10 @@ var getColumns$5 = function getColumns(_ref) {
14425
14435
  title: '原价',
14426
14436
  width: 150,
14427
14437
  ellipsis: true,
14428
- align: 'center'
14438
+ align: 'center',
14439
+ render: function render(price) {
14440
+ return price || price === 0 ? Number(price).toFixed(2) : '';
14441
+ }
14429
14442
  }, {
14430
14443
  dataIndex: 'salePrice',
14431
14444
  title: '单价',
@@ -14441,9 +14454,9 @@ var getColumns$5 = function getColumns(_ref) {
14441
14454
  min: 0,
14442
14455
  precision: 2,
14443
14456
  onChange: function onChange(num) {
14444
- return updateHandle(num, index, 'salePrice');
14457
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
14445
14458
  }
14446
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14459
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
14447
14460
  }
14448
14461
  }, {
14449
14462
  dataIndex: 'qty',
@@ -14460,7 +14473,7 @@ var getColumns$5 = function getColumns(_ref) {
14460
14473
  min: 1,
14461
14474
  precision: 0,
14462
14475
  onChange: function onChange(num) {
14463
- return updateHandle(num, index, 'qty');
14476
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
14464
14477
  }
14465
14478
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14466
14479
  }
@@ -14489,7 +14502,7 @@ var getColumns$5 = function getColumns(_ref) {
14489
14502
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
14490
14503
  value: val,
14491
14504
  onChange: function onChange(value) {
14492
- updateHandle(value, index, 'isGift');
14505
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
14493
14506
  },
14494
14507
  options: [{
14495
14508
  label: '是',
@@ -14503,7 +14516,7 @@ var getColumns$5 = function getColumns(_ref) {
14503
14516
  }, {
14504
14517
  dataIndex: 'outerOiId',
14505
14518
  title: '子订单号',
14506
- width: 150,
14519
+ width: 240,
14507
14520
  ellipsis: true,
14508
14521
  align: 'center'
14509
14522
  }],
@@ -14548,7 +14561,10 @@ var getColumns$5 = function getColumns(_ref) {
14548
14561
  title: '原价',
14549
14562
  width: 150,
14550
14563
  ellipsis: true,
14551
- align: 'center'
14564
+ align: 'center',
14565
+ render: function render(price) {
14566
+ return price || price === 0 ? Number(price).toFixed(2) : '';
14567
+ }
14552
14568
  }, {
14553
14569
  dataIndex: 'salePrice',
14554
14570
  title: '单价',
@@ -14564,9 +14580,9 @@ var getColumns$5 = function getColumns(_ref) {
14564
14580
  min: 0,
14565
14581
  precision: 2,
14566
14582
  onChange: function onChange(num) {
14567
- return updateHandle(num, index, 'salePrice');
14583
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
14568
14584
  }
14569
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14585
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
14570
14586
  }
14571
14587
  }, {
14572
14588
  dataIndex: 'qty',
@@ -14583,7 +14599,7 @@ var getColumns$5 = function getColumns(_ref) {
14583
14599
  min: 1,
14584
14600
  precision: 0,
14585
14601
  onChange: function onChange(num) {
14586
- return updateHandle(num, index, 'qty');
14602
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
14587
14603
  }
14588
14604
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14589
14605
  }
@@ -14597,7 +14613,7 @@ var getColumns$5 = function getColumns(_ref) {
14597
14613
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
14598
14614
  value: val,
14599
14615
  onChange: function onChange(value) {
14600
- updateHandle(value, index, 'isGift');
14616
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
14601
14617
  },
14602
14618
  options: [{
14603
14619
  label: '是',
@@ -14621,7 +14637,7 @@ var getColumns$5 = function getColumns(_ref) {
14621
14637
  },
14622
14638
  value: val,
14623
14639
  onChange: function onChange(e) {
14624
- return updateHandle(e.target.value, index, 'remark');
14640
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
14625
14641
  }
14626
14642
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14627
14643
  }
@@ -15313,7 +15329,7 @@ var GoodItem$1 = function GoodItem(props) {
15313
15329
  }
15314
15330
  return params;
15315
15331
  }, [tableSelect, selectedRowKeys]);
15316
- var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'];
15332
+ var TheGoodsModal = GoodsModalMap[type || 'OTHER_GOODS'] || GoodsModalMap['OTHER_GOODS'];
15317
15333
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !disabled && showChangeBtn && /*#__PURE__*/React__default['default'].createElement("div", {
15318
15334
  style: {
15319
15335
  float: 'right'
@@ -16063,6 +16079,8 @@ var getGyOrderListSingleton = function getGyOrderListSingleton(orderNo) {
16063
16079
  billTag: item.tagName,
16064
16080
  tradeTagName: item.tradeTagName,
16065
16081
  deliveryState: item.deliveryState,
16082
+ vipCode: item.vipCode,
16083
+ shopCode: item.shopCode,
16066
16084
  deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[item.deliveryState]
16067
16085
  });
16068
16086
  });
@@ -16165,6 +16183,7 @@ var kmUtils = {
16165
16183
  getOrderListSingleton: getOrderListSingleton
16166
16184
  };
16167
16185
 
16186
+ var _excluded$g = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
16168
16187
  var columnsMap = {
16169
16188
  BS_SYSTEM_ORDER: kmkfUtils.BS_SYSTEM_ORDER_CONFIG.columns,
16170
16189
  KM_SYSTEM_ORDER: kmkfUtils.KM_SYSTEM_ORDER_CONFIG.columns,
@@ -16433,15 +16452,20 @@ var index$1 = (function (props) {
16433
16452
  billType = _ref10.billType,
16434
16453
  billTag = _ref10.billTag,
16435
16454
  tradeTagName = _ref10.tradeTagName,
16436
- deliveryState = _ref10.deliveryState;
16437
- return {
16455
+ deliveryState = _ref10.deliveryState,
16456
+ vipCode = _ref10.vipCode,
16457
+ shopCode = _ref10.shopCode,
16458
+ rest = _objectWithoutProperties(_ref10, _excluded$g);
16459
+ return _objectSpread2(_objectSpread2({}, rest), {}, {
16438
16460
  billNo: billNo,
16439
16461
  billType: billType,
16440
16462
  billTag: billTag,
16441
16463
  tradeTagName: tradeTagName,
16442
16464
  deliveryState: deliveryState,
16443
- deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState]
16444
- };
16465
+ deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState],
16466
+ vipCode: vipCode,
16467
+ shopCode: shopCode
16468
+ });
16445
16469
  })
16446
16470
  }));
16447
16471
  });
@@ -17074,7 +17098,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
17074
17098
  })));
17075
17099
  };
17076
17100
 
17077
- var _excluded$g = ["value", "onChange", "reasonList", "disabled", "type"];
17101
+ var _excluded$h = ["value", "onChange", "reasonList", "disabled", "type"];
17078
17102
  var typeMap$1 = {
17079
17103
  WDT_REISSUE_GOODS: {
17080
17104
  key: 'wdtReissueGoods',
@@ -17102,7 +17126,7 @@ var wdtReissue = function wdtReissue(props) {
17102
17126
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
17103
17127
  disabled = props.disabled,
17104
17128
  type = props.type,
17105
- other = _objectWithoutProperties(props, _excluded$g);
17129
+ other = _objectWithoutProperties(props, _excluded$h);
17106
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) {
17107
17131
  var _order$srcTid;
17108
17132
  return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
@@ -17346,7 +17370,7 @@ var wdtReissue = function wdtReissue(props) {
17346
17370
  })));
17347
17371
  };
17348
17372
 
17349
- var _excluded$h = ["value", "onChange", "reasonList", "disabled", "type"];
17373
+ var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
17350
17374
  var typeMap$2 = {
17351
17375
  JST_REISSUE_GOODS: {
17352
17376
  key: 'jstReissueGoods',
@@ -17370,7 +17394,7 @@ var PublicReissue = function PublicReissue(props) {
17370
17394
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
17371
17395
  disabled = props.disabled,
17372
17396
  type = props.type,
17373
- other = _objectWithoutProperties(props, _excluded$h);
17397
+ other = _objectWithoutProperties(props, _excluded$i);
17374
17398
  var getOrderFlag = React.useRef(false);
17375
17399
  var _useState = React.useState(false),
17376
17400
  _useState2 = _slicedToArray(_useState, 2),
@@ -18076,12 +18100,12 @@ var Goods$1 = function Goods(props, ref) {
18076
18100
  };
18077
18101
  var index$2 = /*#__PURE__*/React.forwardRef(Goods$1);
18078
18102
 
18079
- var _excluded$i = ["onChange", "value", "failValue"];
18103
+ var _excluded$j = ["onChange", "value", "failValue"];
18080
18104
  function CommonStatus(props) {
18081
18105
  var onChange = props.onChange,
18082
18106
  value = props.value,
18083
18107
  failValue = props.failValue,
18084
- other = _objectWithoutProperties(props, _excluded$i);
18108
+ other = _objectWithoutProperties(props, _excluded$j);
18085
18109
  var changeHandle = function changeHandle(val) {
18086
18110
  onChange === null || onChange === void 0 ? void 0 : onChange({
18087
18111
  status: val,
@@ -18218,7 +18242,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
18218
18242
  })) : null) : null);
18219
18243
  };
18220
18244
 
18221
- var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
18245
+ var _excluded$k = ["value", "onChange", "disabled", "failValue", "type"];
18222
18246
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
18223
18247
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
18224
18248
  var _props$value = props.value,
@@ -18228,7 +18252,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
18228
18252
  failValue = props.failValue,
18229
18253
  _props$type = props.type,
18230
18254
  type = _props$type === void 0 ? 1 : _props$type,
18231
- other = _objectWithoutProperties(props, _excluded$j);
18255
+ other = _objectWithoutProperties(props, _excluded$k);
18232
18256
  var _useState = React.useState(0),
18233
18257
  _useState2 = _slicedToArray(_useState, 2),
18234
18258
  changeIndex = _useState2[0],
@@ -18294,7 +18318,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
18294
18318
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
18295
18319
  };
18296
18320
 
18297
- var _excluded$k = ["value", "onChange", "disabled", "failValue", "type"];
18321
+ var _excluded$l = ["value", "onChange", "disabled", "failValue", "type"];
18298
18322
  var MsgStatus = function MsgStatus(props) {
18299
18323
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
18300
18324
  var _props$value = props.value,
@@ -18304,7 +18328,7 @@ var MsgStatus = function MsgStatus(props) {
18304
18328
  failValue = props.failValue,
18305
18329
  _props$type = props.type,
18306
18330
  type = _props$type === void 0 ? 1 : _props$type,
18307
- other = _objectWithoutProperties(props, _excluded$k);
18331
+ other = _objectWithoutProperties(props, _excluded$l);
18308
18332
  var _useState = React.useState(0),
18309
18333
  _useState2 = _slicedToArray(_useState, 2),
18310
18334
  changeIndex = _useState2[0],
@@ -18373,7 +18397,7 @@ var CalculationInput = function CalculationInput(props) {
18373
18397
  }, config === null || config === void 0 ? void 0 : config.unit));
18374
18398
  };
18375
18399
 
18376
- var _excluded$l = ["value", "onChange", "reasonList", "disabled", "type"];
18400
+ var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type"];
18377
18401
  var typeMap$3 = {
18378
18402
  BS_E3_REISSUE_GOODS: {
18379
18403
  key: 'bsE3ReissueGoods',
@@ -18391,7 +18415,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
18391
18415
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18392
18416
  disabled = props.disabled,
18393
18417
  type = props.type,
18394
- other = _objectWithoutProperties(props, _excluded$l);
18418
+ other = _objectWithoutProperties(props, _excluded$m);
18395
18419
  var getOrderFlag = React.useRef(false);
18396
18420
  var _useState = React.useState(false),
18397
18421
  _useState2 = _slicedToArray(_useState, 2),
@@ -18607,8 +18631,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
18607
18631
  })));
18608
18632
  };
18609
18633
 
18610
- var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type"],
18611
- _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState"];
18634
+ var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type"],
18635
+ _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
18612
18636
  var typeMap$4 = {
18613
18637
  GY_REISSUE_GOODS: {
18614
18638
  key: 'gyReissueGoods',
@@ -18636,7 +18660,7 @@ var GyReissue = function GyReissue(props) {
18636
18660
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18637
18661
  disabled = props.disabled,
18638
18662
  type = props.type,
18639
- other = _objectWithoutProperties(props, _excluded$m);
18663
+ other = _objectWithoutProperties(props, _excluded$n);
18640
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) {
18641
18665
  var _order$platformCode;
18642
18666
  return order === null || order === void 0 ? void 0 : (_order$platformCode = order.platformCode) === null || _order$platformCode === void 0 ? void 0 : _order$platformCode.includes(';');
@@ -18670,6 +18694,8 @@ var GyReissue = function GyReissue(props) {
18670
18694
  billTag = _ref2.billTag,
18671
18695
  tradeTagName = _ref2.tradeTagName,
18672
18696
  deliveryState = _ref2.deliveryState,
18697
+ vipCode = _ref2.vipCode,
18698
+ shopCode = _ref2.shopCode,
18673
18699
  rest = _objectWithoutProperties(_ref2, _excluded2);
18674
18700
  return _objectSpread2(_objectSpread2({}, rest), {}, {
18675
18701
  billNo: billNo,
@@ -18677,7 +18703,9 @@ var GyReissue = function GyReissue(props) {
18677
18703
  billTag: billTag,
18678
18704
  tradeTagName: tradeTagName,
18679
18705
  deliveryState: deliveryState,
18680
- deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState]
18706
+ deliveryStateName: kmkfUtils.GY_DELIVERY_STATE_MAPPING[deliveryState],
18707
+ vipCode: vipCode,
18708
+ shopCode: shopCode
18681
18709
  });
18682
18710
  });
18683
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]), {}, {
@@ -18920,3 +18948,4 @@ exports.WdtGoodList = WdtGoodList;
18920
18948
  exports.WdtReissue = wdtReissue;
18921
18949
  exports.WlnGoods = WlnGoods;
18922
18950
  exports.columnsBaseInfoMap = columnsBaseInfoMap;
18951
+ exports.getJstColumns = getColumns$5;
@@ -0,0 +1 @@
1
+ export { default as getJstColumns } from './jst';
@@ -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.1",
3
+ "version": "2.0.12-beta.11",
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.1",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.11",
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": "30e1ebdd61bcbe788e768a81a70d03b16d4acd77"
68
+ "gitHead": "9a8846f71fe6966eddfb8da43a387b8d275dcd7c"
69
69
  }