@kmkf-fe-packages/basic-components 0.8.17-alpha.27 → 0.8.17-alpha.28

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
@@ -10353,11 +10353,13 @@ var GoodItem = function GoodItem(props) {
10353
10353
  name = item.name,
10354
10354
  code = item.code,
10355
10355
  skuCode = item.skuCode,
10356
- marketPrice = item.marketPrice;
10356
+ marketPrice = item.marketPrice,
10357
+ skuName = item.skuName;
10357
10358
  return {
10358
10359
  id: goodsId,
10359
10360
  mark: '是',
10360
10361
  pic: '',
10362
+ skuName: skuName,
10361
10363
  name: name,
10362
10364
  code: code,
10363
10365
  sku: skuCode,
@@ -11472,7 +11474,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11472
11474
  maxHeight: '300px',
11473
11475
  overflowY: 'auto'
11474
11476
  }
11475
- }, type === 1 ? /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7\uFF1A", item.systemOrderId) : null);
11477
+ }, type === 1 ? /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11476
11478
  };
11477
11479
  var changeInputHandle = function changeInputHandle(val, type) {
11478
11480
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
@@ -11489,7 +11491,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11489
11491
  wrap: true
11490
11492
  }, (value || []).map(function (item, index) {
11491
11493
  return /*#__PURE__*/React.createElement(Popover, {
11492
- content: content(item),
11494
+ content: content(item, index),
11493
11495
  key: index
11494
11496
  }, /*#__PURE__*/React.createElement("span", {
11495
11497
  style: {
@@ -11517,6 +11519,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11517
11519
  })) : null) : null);
11518
11520
  };
11519
11521
 
11522
+ var _excluded$g = ["value", "onChange", "disabled", "failValue", "type"];
11520
11523
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11521
11524
  var _value$changeIndex;
11522
11525
  var _props$value = props.value,
@@ -11525,7 +11528,8 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11525
11528
  disabled = props.disabled,
11526
11529
  failValue = props.failValue,
11527
11530
  _props$type = props.type,
11528
- type = _props$type === void 0 ? 1 : _props$type;
11531
+ type = _props$type === void 0 ? 1 : _props$type,
11532
+ other = _objectWithoutProperties(props, _excluded$g);
11529
11533
  var _useState = useState(0),
11530
11534
  _useState2 = _slicedToArray(_useState, 2),
11531
11535
  changeIndex = _useState2[0],
@@ -11539,9 +11543,10 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11539
11543
  maxHeight: '300px',
11540
11544
  overflowY: 'auto'
11541
11545
  }
11542
- }, type === 1 ? /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7\uFF1A", item.systemOrderId) : null);
11546
+ }, type === 1 ? /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11543
11547
  };
11544
11548
  var changeHandle = function changeHandle(val, valType) {
11549
+ console.log(val, valType);
11545
11550
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
11546
11551
  changeOrderInfo[valType] = val;
11547
11552
  if (val === failValue) {
@@ -11559,7 +11564,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11559
11564
  wrap: true
11560
11565
  }, (value || []).map(function (item, index) {
11561
11566
  return /*#__PURE__*/React.createElement(Popover, {
11562
- content: content(item),
11567
+ content: content(item, index),
11563
11568
  key: index
11564
11569
  }, /*#__PURE__*/React.createElement("span", {
11565
11570
  style: {
@@ -11570,18 +11575,21 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11570
11575
  return setChangeIndex(index);
11571
11576
  }
11572
11577
  }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
11573
- }))) : null, value.length ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
11578
+ }))) : null, value.length ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
11574
11579
  showSearch: true,
11575
11580
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
11576
11581
  filterOption: function filterOption(input, option) {
11577
11582
  return option.label.includes(input);
11578
11583
  },
11584
+ style: {
11585
+ width: 200
11586
+ },
11579
11587
  placeholder: "\u8BF7\u9009\u62E9",
11580
11588
  disabled: disabled,
11581
11589
  onChange: function onChange(val) {
11582
11590
  return changeHandle(val, 'status');
11583
11591
  }
11584
- })) : null) : null);
11592
+ }))) : null) : null);
11585
11593
  };
11586
11594
 
11587
11595
  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, ApaasUploadAsync, ApaasUploadAsync$1 as ApaasUploadFile, BsExchange, BsGoods, BsReissue, index as BsSystemOrder, BuyerNick, ChooseBaby, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$1 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsTrajectory, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId };
package/dist/index.js CHANGED
@@ -10364,11 +10364,13 @@ var GoodItem = function GoodItem(props) {
10364
10364
  name = item.name,
10365
10365
  code = item.code,
10366
10366
  skuCode = item.skuCode,
10367
- marketPrice = item.marketPrice;
10367
+ marketPrice = item.marketPrice,
10368
+ skuName = item.skuName;
10368
10369
  return {
10369
10370
  id: goodsId,
10370
10371
  mark: '是',
10371
10372
  pic: '',
10373
+ skuName: skuName,
10372
10374
  name: name,
10373
10375
  code: code,
10374
10376
  sku: skuCode,
@@ -11483,7 +11485,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11483
11485
  maxHeight: '300px',
11484
11486
  overflowY: 'auto'
11485
11487
  }
11486
- }, type === 1 ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7\uFF1A", item.systemOrderId) : null);
11488
+ }, type === 1 ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11487
11489
  };
11488
11490
  var changeInputHandle = function changeInputHandle(val, type) {
11489
11491
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
@@ -11500,7 +11502,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11500
11502
  wrap: true
11501
11503
  }, (value || []).map(function (item, index) {
11502
11504
  return /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
11503
- content: content(item),
11505
+ content: content(item, index),
11504
11506
  key: index
11505
11507
  }, /*#__PURE__*/React__default['default'].createElement("span", {
11506
11508
  style: {
@@ -11528,6 +11530,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11528
11530
  })) : null) : null);
11529
11531
  };
11530
11532
 
11533
+ var _excluded$g = ["value", "onChange", "disabled", "failValue", "type"];
11531
11534
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11532
11535
  var _value$changeIndex;
11533
11536
  var _props$value = props.value,
@@ -11536,7 +11539,8 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11536
11539
  disabled = props.disabled,
11537
11540
  failValue = props.failValue,
11538
11541
  _props$type = props.type,
11539
- type = _props$type === void 0 ? 1 : _props$type;
11542
+ type = _props$type === void 0 ? 1 : _props$type,
11543
+ other = _objectWithoutProperties(props, _excluded$g);
11540
11544
  var _useState = React.useState(0),
11541
11545
  _useState2 = _slicedToArray(_useState, 2),
11542
11546
  changeIndex = _useState2[0],
@@ -11550,9 +11554,10 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11550
11554
  maxHeight: '300px',
11551
11555
  overflowY: 'auto'
11552
11556
  }
11553
- }, type === 1 ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7\uFF1A", item.systemOrderId) : null);
11557
+ }, type === 1 ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
11554
11558
  };
11555
11559
  var changeHandle = function changeHandle(val, valType) {
11560
+ console.log(val, valType);
11556
11561
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
11557
11562
  changeOrderInfo[valType] = val;
11558
11563
  if (val === failValue) {
@@ -11570,7 +11575,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11570
11575
  wrap: true
11571
11576
  }, (value || []).map(function (item, index) {
11572
11577
  return /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
11573
- content: content(item),
11578
+ content: content(item, index),
11574
11579
  key: index
11575
11580
  }, /*#__PURE__*/React__default['default'].createElement("span", {
11576
11581
  style: {
@@ -11581,18 +11586,21 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11581
11586
  return setChangeIndex(index);
11582
11587
  }
11583
11588
  }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
11584
- }))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
11589
+ }))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
11585
11590
  showSearch: true,
11586
11591
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
11587
11592
  filterOption: function filterOption(input, option) {
11588
11593
  return option.label.includes(input);
11589
11594
  },
11595
+ style: {
11596
+ width: 200
11597
+ },
11590
11598
  placeholder: "\u8BF7\u9009\u62E9",
11591
11599
  disabled: disabled,
11592
11600
  onChange: function onChange(val) {
11593
11601
  return changeHandle(val, 'status');
11594
11602
  }
11595
- })) : null) : null);
11603
+ }))) : null) : null);
11596
11604
  };
11597
11605
 
11598
11606
  exports.Address = ApaasAddress;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.8.17-alpha.27",
3
+ "version": "0.8.17-alpha.28",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "bfa540a247701811987ae018c84eb7b83d919673"
63
+ "gitHead": "a61c96c5e27753231614bd31327c7a2eef131679"
64
64
  }