@kmkf-fe-packages/basic-components 0.8.17-alpha.31 → 0.8.17-alpha.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,3 +18,4 @@ yarn start
18
18
  - common 公共组件
19
19
  - config 公共方法
20
20
  - assets 静态资源
21
+ -
package/dist/index.esm.js CHANGED
@@ -9604,7 +9604,6 @@ var jstGoods = function jstGoods(props) {
9604
9604
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7;
9605
9605
  var _props$value = props.value,
9606
9606
  value = _props$value === void 0 ? [] : _props$value,
9607
- _props$options = props.options,
9608
9607
  onChange = props.onChange,
9609
9608
  disabled = props.disabled,
9610
9609
  _props$type = props.type,
@@ -9617,7 +9616,7 @@ var jstGoods = function jstGoods(props) {
9617
9616
  setChangeIndex = _useState2[1]; //选中的包裹
9618
9617
  useEffect(function () {
9619
9618
  setChangeIndex(0);
9620
- }, []);
9619
+ }, [value]);
9621
9620
  var content = function content(item, index) {
9622
9621
  return /*#__PURE__*/React.createElement("div", {
9623
9622
  style: {
@@ -10474,6 +10473,23 @@ var BsGoods = function BsGoods(props) {
10474
10473
  });
10475
10474
  }
10476
10475
  });
10476
+ //退货
10477
+ pubsub.subscribe('bsReturnType', function (type, data) {
10478
+ if (disabled) return;
10479
+ withInfo.current = {
10480
+ type: type,
10481
+ val: data.val,
10482
+ goodValue: data.goodValue
10483
+ };
10484
+ setTableSelect(['2', '4'].includes(data.val));
10485
+ if (['1', '3'].includes(data.val)) {
10486
+ var _valueRef$current3;
10487
+ pubsub.publish('returnSelectListReturn', {
10488
+ list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3.bsGoods) || []),
10489
+ goodValue: data === null || data === void 0 ? void 0 : data.goodValue
10490
+ });
10491
+ }
10492
+ });
10477
10493
  pubsub.subscribeOnce('changeShopCode', function (type, data) {
10478
10494
  console.log(data);
10479
10495
  onChange(_objectSpread2(_objectSpread2({}, valueRef === null || valueRef === void 0 ? void 0 : valueRef.current), {}, {
@@ -10485,7 +10501,12 @@ var BsGoods = function BsGoods(props) {
10485
10501
  var _withInfo$current, _withInfo$current2;
10486
10502
  if (disabled) return;
10487
10503
  var newList = cloneDeep(list);
10488
- var type = ((_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type) === 'reissueType' ? 'reissueSelectList' : 'selectList';
10504
+ var typeMap = {
10505
+ type: 'selectList',
10506
+ reissueType: 'reissueSelectList',
10507
+ returnType: 'returnSelectList'
10508
+ };
10509
+ var type = typeMap[(_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type];
10489
10510
  console.log('onSelect', type, withInfo.current, newList);
10490
10511
  pubsub.publish(type, {
10491
10512
  type: (_withInfo$current2 = withInfo.current) === null || _withInfo$current2 === void 0 ? void 0 : _withInfo$current2.val,
@@ -10500,6 +10521,7 @@ var BsGoods = function BsGoods(props) {
10500
10521
  var deleteId = item === null || item === void 0 ? void 0 : item.sku;
10501
10522
  pubsub.publish('deleteGood', deleteId);
10502
10523
  pubsub.publish('reissueDeleteGood', deleteId);
10524
+ pubsub.publish('returnDeleteGood', deleteId);
10503
10525
  };
10504
10526
  var changeHandle = function changeHandle(list) {
10505
10527
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
@@ -10863,6 +10885,99 @@ var BsReissue = function BsReissue(props) {
10863
10885
  })));
10864
10886
  };
10865
10887
 
10888
+ var _excluded$f = ["value", "onChange", "reasonList", "disabled"];
10889
+ var BsReturnGoods = function BsReturnGoods(props) {
10890
+ var value = props.value,
10891
+ onChange = props.onChange,
10892
+ _props$reasonList = props.reasonList,
10893
+ reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
10894
+ disabled = props.disabled,
10895
+ other = _objectWithoutProperties(props, _excluded$f);
10896
+ var valueRef = useRef({});
10897
+ useEffect(function () {
10898
+ pubsub.subscribe('returnSelectList', function (_, data) {
10899
+ // console.log('returnSelectList', data);
10900
+ if (disabled) return;
10901
+ var newValue = _objectSpread2({}, data.goodValue);
10902
+ newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
10903
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10904
+ });
10905
+ }, []);
10906
+ useEffect(function () {
10907
+ pubsub.subscribe('returnSelectListReturn', function (_, data) {
10908
+ // console.log('returnSelectListReturn', data);
10909
+ if (disabled) return;
10910
+ var newValue = _objectSpread2({}, data.goodValue);
10911
+ newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
10912
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10913
+ });
10914
+ }, []);
10915
+ useEffect(function () {
10916
+ valueRef.current = value;
10917
+ pubsub.subscribeOnce('returnDeleteGood', function (_, data) {
10918
+ if (disabled) return;
10919
+ if (value) {
10920
+ var newValue = _objectSpread2({}, value);
10921
+ newValue.bsReturnGoods = newValue.bsReturnGoods.filter(function (item) {
10922
+ return item.sku !== data;
10923
+ });
10924
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10925
+ }
10926
+ });
10927
+ pubsub.subscribeOnce('changeShopCode', function (type, data) {
10928
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
10929
+ shopCode: data.shopCode
10930
+ }));
10931
+ });
10932
+ }, [value, disabled]);
10933
+ var changeTypeHandle = function changeTypeHandle(val) {
10934
+ var newValue = _objectSpread2({}, value);
10935
+ newValue['bsReturnType'] = val;
10936
+ newValue.bsReturnGoods = [];
10937
+ if (['2', '4'].includes(val[0])) {
10938
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10939
+ valueRef.current = newValue;
10940
+ }
10941
+ pubsub.publish('returnType', {
10942
+ val: val[0],
10943
+ goodValue: newValue
10944
+ });
10945
+ };
10946
+ var changeGoodHandle = function changeGoodHandle(val) {
10947
+ var newValue = _objectSpread2({}, value);
10948
+ newValue['bsReturnGoods'] = val;
10949
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10950
+ };
10951
+ //显示选择商品按钮 原单换不显示选择商品
10952
+ var showChangeBtn = useMemo(function () {
10953
+ var _value$bsReturnType;
10954
+ return ['2', '3', '4'].includes(value === null || value === void 0 ? void 0 : (_value$bsReturnType = value.bsReturnType) === null || _value$bsReturnType === void 0 ? void 0 : _value$bsReturnType[0]);
10955
+ }, [value === null || value === void 0 ? void 0 : value.bsReturnType]);
10956
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, {
10957
+ style: {
10958
+ marginBottom: '8px'
10959
+ },
10960
+ disabled: disabled,
10961
+ allowClear: false,
10962
+ options: reasonList,
10963
+ value: value === null || value === void 0 ? void 0 : value.bsReturnType,
10964
+ onChange: function onChange(val) {
10965
+ return changeTypeHandle(val);
10966
+ }
10967
+ }), /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
10968
+ key: 'returnGoods'
10969
+ }, other), {}, {
10970
+ disabled: disabled,
10971
+ canUpdateNumber: showChangeBtn,
10972
+ showChangeBtn: showChangeBtn,
10973
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
10974
+ value: value === null || value === void 0 ? void 0 : value.bsReturnGoods,
10975
+ onChange: function onChange(val) {
10976
+ return changeGoodHandle(val);
10977
+ }
10978
+ })));
10979
+ };
10980
+
10866
10981
  var columns$1 = [{
10867
10982
  dataIndex: 'billType',
10868
10983
  title: '单据类型'
@@ -11430,12 +11545,12 @@ var Goods$1 = function Goods(props, ref) {
11430
11545
  };
11431
11546
  var index$1 = /*#__PURE__*/forwardRef(Goods$1);
11432
11547
 
11433
- var _excluded$f = ["onChange", "value", "failValue"];
11548
+ var _excluded$g = ["onChange", "value", "failValue"];
11434
11549
  function CommonStatus(props) {
11435
11550
  var onChange = props.onChange,
11436
11551
  value = props.value,
11437
11552
  failValue = props.failValue,
11438
- other = _objectWithoutProperties(props, _excluded$f);
11553
+ other = _objectWithoutProperties(props, _excluded$g);
11439
11554
  var changeHandle = function changeHandle(val) {
11440
11555
  onChange === null || onChange === void 0 ? void 0 : onChange({
11441
11556
  status: val,
@@ -11467,7 +11582,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11467
11582
  setChangeIndex = _useState2[1]; //选中的包裹
11468
11583
  useEffect(function () {
11469
11584
  setChangeIndex(0);
11470
- }, []);
11585
+ }, [value]);
11471
11586
  var content = function content(item, index) {
11472
11587
  return /*#__PURE__*/React.createElement("div", {
11473
11588
  style: {
@@ -11519,7 +11634,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11519
11634
  })) : null) : null);
11520
11635
  };
11521
11636
 
11522
- var _excluded$g = ["value", "onChange", "disabled", "failValue", "type"];
11637
+ var _excluded$h = ["value", "onChange", "disabled", "failValue", "type"];
11523
11638
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11524
11639
  var _value$changeIndex;
11525
11640
  var _props$value = props.value,
@@ -11529,14 +11644,14 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11529
11644
  failValue = props.failValue,
11530
11645
  _props$type = props.type,
11531
11646
  type = _props$type === void 0 ? 1 : _props$type,
11532
- other = _objectWithoutProperties(props, _excluded$g);
11647
+ other = _objectWithoutProperties(props, _excluded$h);
11533
11648
  var _useState = useState(0),
11534
11649
  _useState2 = _slicedToArray(_useState, 2),
11535
11650
  changeIndex = _useState2[0],
11536
11651
  setChangeIndex = _useState2[1]; //选中的包裹
11537
11652
  useEffect(function () {
11538
11653
  setChangeIndex(0);
11539
- }, []);
11654
+ }, [value]);
11540
11655
  var content = function content(item, index) {
11541
11656
  return /*#__PURE__*/React.createElement("div", {
11542
11657
  style: {
@@ -11605,9 +11720,9 @@ var CalculationInput = function CalculationInput(props) {
11605
11720
  })), /*#__PURE__*/React.createElement("span", {
11606
11721
  style: {
11607
11722
  marginLeft: '4px',
11608
- width: '88px'
11723
+ width: '92px'
11609
11724
  }
11610
11725
  }, config === null || config === void 0 ? void 0 : config.unit));
11611
11726
  };
11612
11727
 
11613
- 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, CalculationInput, 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 };
11728
+ 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, BsReturnGoods as BsReturn, index as BsSystemOrder, BuyerNick, CalculationInput, 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
@@ -9615,7 +9615,6 @@ var jstGoods = function jstGoods(props) {
9615
9615
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7;
9616
9616
  var _props$value = props.value,
9617
9617
  value = _props$value === void 0 ? [] : _props$value,
9618
- _props$options = props.options,
9619
9618
  onChange = props.onChange,
9620
9619
  disabled = props.disabled,
9621
9620
  _props$type = props.type,
@@ -9628,7 +9627,7 @@ var jstGoods = function jstGoods(props) {
9628
9627
  setChangeIndex = _useState2[1]; //选中的包裹
9629
9628
  React.useEffect(function () {
9630
9629
  setChangeIndex(0);
9631
- }, []);
9630
+ }, [value]);
9632
9631
  var content = function content(item, index) {
9633
9632
  return /*#__PURE__*/React__default['default'].createElement("div", {
9634
9633
  style: {
@@ -10485,6 +10484,23 @@ var BsGoods = function BsGoods(props) {
10485
10484
  });
10486
10485
  }
10487
10486
  });
10487
+ //退货
10488
+ pubsub__default['default'].subscribe('bsReturnType', function (type, data) {
10489
+ if (disabled) return;
10490
+ withInfo.current = {
10491
+ type: type,
10492
+ val: data.val,
10493
+ goodValue: data.goodValue
10494
+ };
10495
+ setTableSelect(['2', '4'].includes(data.val));
10496
+ if (['1', '3'].includes(data.val)) {
10497
+ var _valueRef$current3;
10498
+ pubsub__default['default'].publish('returnSelectListReturn', {
10499
+ list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3.bsGoods) || []),
10500
+ goodValue: data === null || data === void 0 ? void 0 : data.goodValue
10501
+ });
10502
+ }
10503
+ });
10488
10504
  pubsub__default['default'].subscribeOnce('changeShopCode', function (type, data) {
10489
10505
  console.log(data);
10490
10506
  onChange(_objectSpread2(_objectSpread2({}, valueRef === null || valueRef === void 0 ? void 0 : valueRef.current), {}, {
@@ -10496,7 +10512,12 @@ var BsGoods = function BsGoods(props) {
10496
10512
  var _withInfo$current, _withInfo$current2;
10497
10513
  if (disabled) return;
10498
10514
  var newList = lodash.cloneDeep(list);
10499
- var type = ((_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type) === 'reissueType' ? 'reissueSelectList' : 'selectList';
10515
+ var typeMap = {
10516
+ type: 'selectList',
10517
+ reissueType: 'reissueSelectList',
10518
+ returnType: 'returnSelectList'
10519
+ };
10520
+ var type = typeMap[(_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type];
10500
10521
  console.log('onSelect', type, withInfo.current, newList);
10501
10522
  pubsub__default['default'].publish(type, {
10502
10523
  type: (_withInfo$current2 = withInfo.current) === null || _withInfo$current2 === void 0 ? void 0 : _withInfo$current2.val,
@@ -10511,6 +10532,7 @@ var BsGoods = function BsGoods(props) {
10511
10532
  var deleteId = item === null || item === void 0 ? void 0 : item.sku;
10512
10533
  pubsub__default['default'].publish('deleteGood', deleteId);
10513
10534
  pubsub__default['default'].publish('reissueDeleteGood', deleteId);
10535
+ pubsub__default['default'].publish('returnDeleteGood', deleteId);
10514
10536
  };
10515
10537
  var changeHandle = function changeHandle(list) {
10516
10538
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
@@ -10874,6 +10896,99 @@ var BsReissue = function BsReissue(props) {
10874
10896
  })));
10875
10897
  };
10876
10898
 
10899
+ var _excluded$f = ["value", "onChange", "reasonList", "disabled"];
10900
+ var BsReturnGoods = function BsReturnGoods(props) {
10901
+ var value = props.value,
10902
+ onChange = props.onChange,
10903
+ _props$reasonList = props.reasonList,
10904
+ reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
10905
+ disabled = props.disabled,
10906
+ other = _objectWithoutProperties(props, _excluded$f);
10907
+ var valueRef = React.useRef({});
10908
+ React.useEffect(function () {
10909
+ pubsub__default['default'].subscribe('returnSelectList', function (_, data) {
10910
+ // console.log('returnSelectList', data);
10911
+ if (disabled) return;
10912
+ var newValue = _objectSpread2({}, data.goodValue);
10913
+ newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
10914
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10915
+ });
10916
+ }, []);
10917
+ React.useEffect(function () {
10918
+ pubsub__default['default'].subscribe('returnSelectListReturn', function (_, data) {
10919
+ // console.log('returnSelectListReturn', data);
10920
+ if (disabled) return;
10921
+ var newValue = _objectSpread2({}, data.goodValue);
10922
+ newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
10923
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10924
+ });
10925
+ }, []);
10926
+ React.useEffect(function () {
10927
+ valueRef.current = value;
10928
+ pubsub__default['default'].subscribeOnce('returnDeleteGood', function (_, data) {
10929
+ if (disabled) return;
10930
+ if (value) {
10931
+ var newValue = _objectSpread2({}, value);
10932
+ newValue.bsReturnGoods = newValue.bsReturnGoods.filter(function (item) {
10933
+ return item.sku !== data;
10934
+ });
10935
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10936
+ }
10937
+ });
10938
+ pubsub__default['default'].subscribeOnce('changeShopCode', function (type, data) {
10939
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
10940
+ shopCode: data.shopCode
10941
+ }));
10942
+ });
10943
+ }, [value, disabled]);
10944
+ var changeTypeHandle = function changeTypeHandle(val) {
10945
+ var newValue = _objectSpread2({}, value);
10946
+ newValue['bsReturnType'] = val;
10947
+ newValue.bsReturnGoods = [];
10948
+ if (['2', '4'].includes(val[0])) {
10949
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10950
+ valueRef.current = newValue;
10951
+ }
10952
+ pubsub__default['default'].publish('returnType', {
10953
+ val: val[0],
10954
+ goodValue: newValue
10955
+ });
10956
+ };
10957
+ var changeGoodHandle = function changeGoodHandle(val) {
10958
+ var newValue = _objectSpread2({}, value);
10959
+ newValue['bsReturnGoods'] = val;
10960
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10961
+ };
10962
+ //显示选择商品按钮 原单换不显示选择商品
10963
+ var showChangeBtn = React.useMemo(function () {
10964
+ var _value$bsReturnType;
10965
+ return ['2', '3', '4'].includes(value === null || value === void 0 ? void 0 : (_value$bsReturnType = value.bsReturnType) === null || _value$bsReturnType === void 0 ? void 0 : _value$bsReturnType[0]);
10966
+ }, [value === null || value === void 0 ? void 0 : value.bsReturnType]);
10967
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
10968
+ style: {
10969
+ marginBottom: '8px'
10970
+ },
10971
+ disabled: disabled,
10972
+ allowClear: false,
10973
+ options: reasonList,
10974
+ value: value === null || value === void 0 ? void 0 : value.bsReturnType,
10975
+ onChange: function onChange(val) {
10976
+ return changeTypeHandle(val);
10977
+ }
10978
+ }), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
10979
+ key: 'returnGoods'
10980
+ }, other), {}, {
10981
+ disabled: disabled,
10982
+ canUpdateNumber: showChangeBtn,
10983
+ showChangeBtn: showChangeBtn,
10984
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
10985
+ value: value === null || value === void 0 ? void 0 : value.bsReturnGoods,
10986
+ onChange: function onChange(val) {
10987
+ return changeGoodHandle(val);
10988
+ }
10989
+ })));
10990
+ };
10991
+
10877
10992
  var columns$1 = [{
10878
10993
  dataIndex: 'billType',
10879
10994
  title: '单据类型'
@@ -11441,12 +11556,12 @@ var Goods$1 = function Goods(props, ref) {
11441
11556
  };
11442
11557
  var index$1 = /*#__PURE__*/React.forwardRef(Goods$1);
11443
11558
 
11444
- var _excluded$f = ["onChange", "value", "failValue"];
11559
+ var _excluded$g = ["onChange", "value", "failValue"];
11445
11560
  function CommonStatus(props) {
11446
11561
  var onChange = props.onChange,
11447
11562
  value = props.value,
11448
11563
  failValue = props.failValue,
11449
- other = _objectWithoutProperties(props, _excluded$f);
11564
+ other = _objectWithoutProperties(props, _excluded$g);
11450
11565
  var changeHandle = function changeHandle(val) {
11451
11566
  onChange === null || onChange === void 0 ? void 0 : onChange({
11452
11567
  status: val,
@@ -11478,7 +11593,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11478
11593
  setChangeIndex = _useState2[1]; //选中的包裹
11479
11594
  React.useEffect(function () {
11480
11595
  setChangeIndex(0);
11481
- }, []);
11596
+ }, [value]);
11482
11597
  var content = function content(item, index) {
11483
11598
  return /*#__PURE__*/React__default['default'].createElement("div", {
11484
11599
  style: {
@@ -11530,7 +11645,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
11530
11645
  })) : null) : null);
11531
11646
  };
11532
11647
 
11533
- var _excluded$g = ["value", "onChange", "disabled", "failValue", "type"];
11648
+ var _excluded$h = ["value", "onChange", "disabled", "failValue", "type"];
11534
11649
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11535
11650
  var _value$changeIndex;
11536
11651
  var _props$value = props.value,
@@ -11540,14 +11655,14 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
11540
11655
  failValue = props.failValue,
11541
11656
  _props$type = props.type,
11542
11657
  type = _props$type === void 0 ? 1 : _props$type,
11543
- other = _objectWithoutProperties(props, _excluded$g);
11658
+ other = _objectWithoutProperties(props, _excluded$h);
11544
11659
  var _useState = React.useState(0),
11545
11660
  _useState2 = _slicedToArray(_useState, 2),
11546
11661
  changeIndex = _useState2[0],
11547
11662
  setChangeIndex = _useState2[1]; //选中的包裹
11548
11663
  React.useEffect(function () {
11549
11664
  setChangeIndex(0);
11550
- }, []);
11665
+ }, [value]);
11551
11666
  var content = function content(item, index) {
11552
11667
  return /*#__PURE__*/React__default['default'].createElement("div", {
11553
11668
  style: {
@@ -11616,7 +11731,7 @@ var CalculationInput = function CalculationInput(props) {
11616
11731
  })), /*#__PURE__*/React__default['default'].createElement("span", {
11617
11732
  style: {
11618
11733
  marginLeft: '4px',
11619
- width: '88px'
11734
+ width: '92px'
11620
11735
  }
11621
11736
  }, config === null || config === void 0 ? void 0 : config.unit));
11622
11737
  };
@@ -11644,6 +11759,7 @@ exports.ApaasUploadFile = ApaasUploadAsync$1;
11644
11759
  exports.BsExchange = BsExchange;
11645
11760
  exports.BsGoods = BsGoods;
11646
11761
  exports.BsReissue = BsReissue;
11762
+ exports.BsReturn = BsReturnGoods;
11647
11763
  exports.BsSystemOrder = index;
11648
11764
  exports.BuyerNick = BuyerNick;
11649
11765
  exports.CalculationInput = CalculationInput;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const BsReturnGoods: (props: any) => React.JSX.Element;
3
+ export default BsReturnGoods;
@@ -39,6 +39,7 @@ export { default as JstItemList } from './jst/ItemList';
39
39
  export { default as BsGoods } from './bs/Goods';
40
40
  export { default as BsExchange } from './bs/Exchange';
41
41
  export { default as BsReissue } from './bs/Reissue';
42
+ export { default as BsReturn } from './bs/Return';
42
43
  export { default as BsSystemOrder } from './bs/SystemOrder';
43
44
  export { default as GoodsTable } from './common/GoodsTable';
44
45
  export { default as CommonStatus } from './common/CommonStatus';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.8.17-alpha.31",
3
+ "version": "0.8.17-alpha.36",
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": "^0.8.17-alpha.29",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.8.17-alpha.36",
24
24
  "lodash": "^4.17.21",
25
25
  "pubsub-js": "^1.9.4",
26
26
  "react-copy-to-clipboard": "^5.1.0",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "f11e9806c4e5eb7941734a8331ba324e692e191c"
63
+ "gitHead": "51396112d02f02e2de2ad6c5805ae0d90bdb0667"
64
64
  }