@kmkf-fe-packages/basic-components 0.20.2-alpha.1 → 0.21.0-beta.1

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
@@ -10615,9 +10615,10 @@ var BsGoods = function BsGoods(props) {
10615
10615
  };
10616
10616
  setTableSelect(['2', '4'].includes(data.val));
10617
10617
  if (['1', '3'].includes(data.val)) {
10618
- var _valueRef$current;
10618
+ var _valueRef$current, _valueRef$current2;
10619
10619
  pubsub.publish('selectListReturn', {
10620
10620
  list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.bsGoods) || []),
10621
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode,
10621
10622
  goodValue: data === null || data === void 0 ? void 0 : data.goodValue
10622
10623
  });
10623
10624
  }
@@ -10632,13 +10633,14 @@ var BsGoods = function BsGoods(props) {
10632
10633
  };
10633
10634
  setTableSelect(['2', '4'].includes(data.val));
10634
10635
  if (['1', '3'].includes(data.val)) {
10635
- var _valueRef$current2;
10636
+ var _valueRef$current3, _valueRef$current4;
10636
10637
  // console.log(
10637
10638
  // 'goods-reissueSelectListReturn',
10638
10639
  // valueRef?.current?.bsGoods,
10639
10640
  // );
10640
10641
  pubsub.publish('reissueSelectListReturn', {
10641
- list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.bsGoods) || []),
10642
+ list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3.bsGoods) || []),
10643
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current4 = valueRef.current) === null || _valueRef$current4 === void 0 ? void 0 : _valueRef$current4.shopCode,
10642
10644
  goodValue: data === null || data === void 0 ? void 0 : data.goodValue
10643
10645
  });
10644
10646
  }
@@ -10653,9 +10655,10 @@ var BsGoods = function BsGoods(props) {
10653
10655
  };
10654
10656
  setTableSelect(['2', '4'].includes(data.val));
10655
10657
  if (['1', '3'].includes(data.val)) {
10656
- var _valueRef$current3;
10658
+ var _valueRef$current5, _valueRef$current6;
10657
10659
  pubsub.publish('returnSelectListReturn', {
10658
- list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3.bsGoods) || []),
10660
+ list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5.bsGoods) || []),
10661
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6.shopCode,
10659
10662
  goodValue: data === null || data === void 0 ? void 0 : data.goodValue
10660
10663
  });
10661
10664
  }
@@ -10671,7 +10674,7 @@ var BsGoods = function BsGoods(props) {
10671
10674
  };
10672
10675
  }, [disabled]);
10673
10676
  var _onSelect = function onSelect(list) {
10674
- var _withInfo$current, _withInfo$current2;
10677
+ var _withInfo$current, _withInfo$current2, _valueRef$current7;
10675
10678
  if (disabled) return;
10676
10679
  var newList = cloneDeep(list);
10677
10680
  var typeMap = {
@@ -10687,6 +10690,7 @@ var BsGoods = function BsGoods(props) {
10687
10690
  item.canDelete = true;
10688
10691
  return item;
10689
10692
  }),
10693
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current7 = valueRef.current) === null || _valueRef$current7 === void 0 ? void 0 : _valueRef$current7.shopCode,
10690
10694
  goodValue: withInfo.current.goodValue
10691
10695
  });
10692
10696
  };
@@ -10764,6 +10768,7 @@ var BsExchange = function BsExchange(props) {
10764
10768
  if (disabled) return;
10765
10769
  var newDataList = cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
10766
10770
  onChange(_objectSpread2(_objectSpread2({}, data.goodValue), {}, {
10771
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode,
10767
10772
  bsExchangeReturnGoods: getListHandle(newDataList, valueRef.current)
10768
10773
  }));
10769
10774
  });
@@ -10774,6 +10779,7 @@ var BsExchange = function BsExchange(props) {
10774
10779
  var newValue = _objectSpread2({}, data.goodValue);
10775
10780
  var newDataList = cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
10776
10781
  onChange(_objectSpread2(_objectSpread2({}, newValue), {}, {
10782
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode,
10777
10783
  bsExchangeReturnGoods: getListHandle(newDataList, newValue)
10778
10784
  }));
10779
10785
  });
@@ -10967,7 +10973,9 @@ var BsReissue = function BsReissue(props) {
10967
10973
  pubsub.subscribe('reissueSelectList', function (_, data) {
10968
10974
  // console.log('reissueSelectList', data);
10969
10975
  if (disabled) return;
10970
- var newValue = _objectSpread2({}, data.goodValue);
10976
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
10977
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
10978
+ });
10971
10979
  newValue.bsReissueGoods = data === null || data === void 0 ? void 0 : data.list.map(function (item) {
10972
10980
  item.money = 0;
10973
10981
  item.share = 0;
@@ -10981,7 +10989,9 @@ var BsReissue = function BsReissue(props) {
10981
10989
  pubsub.subscribe('reissueSelectListReturn', function (_, data) {
10982
10990
  // console.log('reissueSelectListReturn', data);
10983
10991
  if (disabled) return;
10984
- var newValue = _objectSpread2({}, data.goodValue);
10992
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
10993
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
10994
+ });
10985
10995
  newValue.bsReissueGoods = data === null || data === void 0 ? void 0 : data.list.map(function (item) {
10986
10996
  item.money = 0;
10987
10997
  item.share = 0;
@@ -11074,7 +11084,9 @@ var BsReturnGoods = function BsReturnGoods(props) {
11074
11084
  pubsub.subscribe('returnSelectList', function (_, data) {
11075
11085
  // console.log('returnSelectList', data);
11076
11086
  if (disabled) return;
11077
- var newValue = _objectSpread2({}, data.goodValue);
11087
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
11088
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
11089
+ });
11078
11090
  newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
11079
11091
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
11080
11092
  });
@@ -11083,7 +11095,9 @@ var BsReturnGoods = function BsReturnGoods(props) {
11083
11095
  pubsub.subscribe('returnSelectListReturn', function (_, data) {
11084
11096
  // console.log('returnSelectListReturn', data);
11085
11097
  if (disabled) return;
11086
- var newValue = _objectSpread2({}, data.goodValue);
11098
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
11099
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
11100
+ });
11087
11101
  newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
11088
11102
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
11089
11103
  });
package/dist/index.js CHANGED
@@ -10626,9 +10626,10 @@ var BsGoods = function BsGoods(props) {
10626
10626
  };
10627
10627
  setTableSelect(['2', '4'].includes(data.val));
10628
10628
  if (['1', '3'].includes(data.val)) {
10629
- var _valueRef$current;
10629
+ var _valueRef$current, _valueRef$current2;
10630
10630
  pubsub__default['default'].publish('selectListReturn', {
10631
10631
  list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.bsGoods) || []),
10632
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode,
10632
10633
  goodValue: data === null || data === void 0 ? void 0 : data.goodValue
10633
10634
  });
10634
10635
  }
@@ -10643,13 +10644,14 @@ var BsGoods = function BsGoods(props) {
10643
10644
  };
10644
10645
  setTableSelect(['2', '4'].includes(data.val));
10645
10646
  if (['1', '3'].includes(data.val)) {
10646
- var _valueRef$current2;
10647
+ var _valueRef$current3, _valueRef$current4;
10647
10648
  // console.log(
10648
10649
  // 'goods-reissueSelectListReturn',
10649
10650
  // valueRef?.current?.bsGoods,
10650
10651
  // );
10651
10652
  pubsub__default['default'].publish('reissueSelectListReturn', {
10652
- list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.bsGoods) || []),
10653
+ list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3.bsGoods) || []),
10654
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current4 = valueRef.current) === null || _valueRef$current4 === void 0 ? void 0 : _valueRef$current4.shopCode,
10653
10655
  goodValue: data === null || data === void 0 ? void 0 : data.goodValue
10654
10656
  });
10655
10657
  }
@@ -10664,9 +10666,10 @@ var BsGoods = function BsGoods(props) {
10664
10666
  };
10665
10667
  setTableSelect(['2', '4'].includes(data.val));
10666
10668
  if (['1', '3'].includes(data.val)) {
10667
- var _valueRef$current3;
10669
+ var _valueRef$current5, _valueRef$current6;
10668
10670
  pubsub__default['default'].publish('returnSelectListReturn', {
10669
- list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3.bsGoods) || []),
10671
+ list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5.bsGoods) || []),
10672
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6.shopCode,
10670
10673
  goodValue: data === null || data === void 0 ? void 0 : data.goodValue
10671
10674
  });
10672
10675
  }
@@ -10682,7 +10685,7 @@ var BsGoods = function BsGoods(props) {
10682
10685
  };
10683
10686
  }, [disabled]);
10684
10687
  var _onSelect = function onSelect(list) {
10685
- var _withInfo$current, _withInfo$current2;
10688
+ var _withInfo$current, _withInfo$current2, _valueRef$current7;
10686
10689
  if (disabled) return;
10687
10690
  var newList = lodash.cloneDeep(list);
10688
10691
  var typeMap = {
@@ -10698,6 +10701,7 @@ var BsGoods = function BsGoods(props) {
10698
10701
  item.canDelete = true;
10699
10702
  return item;
10700
10703
  }),
10704
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current7 = valueRef.current) === null || _valueRef$current7 === void 0 ? void 0 : _valueRef$current7.shopCode,
10701
10705
  goodValue: withInfo.current.goodValue
10702
10706
  });
10703
10707
  };
@@ -10775,6 +10779,7 @@ var BsExchange = function BsExchange(props) {
10775
10779
  if (disabled) return;
10776
10780
  var newDataList = lodash.cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
10777
10781
  onChange(_objectSpread2(_objectSpread2({}, data.goodValue), {}, {
10782
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode,
10778
10783
  bsExchangeReturnGoods: getListHandle(newDataList, valueRef.current)
10779
10784
  }));
10780
10785
  });
@@ -10785,6 +10790,7 @@ var BsExchange = function BsExchange(props) {
10785
10790
  var newValue = _objectSpread2({}, data.goodValue);
10786
10791
  var newDataList = lodash.cloneDeep((data === null || data === void 0 ? void 0 : data.list) || []);
10787
10792
  onChange(_objectSpread2(_objectSpread2({}, newValue), {}, {
10793
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode,
10788
10794
  bsExchangeReturnGoods: getListHandle(newDataList, newValue)
10789
10795
  }));
10790
10796
  });
@@ -10978,7 +10984,9 @@ var BsReissue = function BsReissue(props) {
10978
10984
  pubsub__default['default'].subscribe('reissueSelectList', function (_, data) {
10979
10985
  // console.log('reissueSelectList', data);
10980
10986
  if (disabled) return;
10981
- var newValue = _objectSpread2({}, data.goodValue);
10987
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
10988
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
10989
+ });
10982
10990
  newValue.bsReissueGoods = data === null || data === void 0 ? void 0 : data.list.map(function (item) {
10983
10991
  item.money = 0;
10984
10992
  item.share = 0;
@@ -10992,7 +11000,9 @@ var BsReissue = function BsReissue(props) {
10992
11000
  pubsub__default['default'].subscribe('reissueSelectListReturn', function (_, data) {
10993
11001
  // console.log('reissueSelectListReturn', data);
10994
11002
  if (disabled) return;
10995
- var newValue = _objectSpread2({}, data.goodValue);
11003
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
11004
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
11005
+ });
10996
11006
  newValue.bsReissueGoods = data === null || data === void 0 ? void 0 : data.list.map(function (item) {
10997
11007
  item.money = 0;
10998
11008
  item.share = 0;
@@ -11085,7 +11095,9 @@ var BsReturnGoods = function BsReturnGoods(props) {
11085
11095
  pubsub__default['default'].subscribe('returnSelectList', function (_, data) {
11086
11096
  // console.log('returnSelectList', data);
11087
11097
  if (disabled) return;
11088
- var newValue = _objectSpread2({}, data.goodValue);
11098
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
11099
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
11100
+ });
11089
11101
  newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
11090
11102
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
11091
11103
  });
@@ -11094,7 +11106,9 @@ var BsReturnGoods = function BsReturnGoods(props) {
11094
11106
  pubsub__default['default'].subscribe('returnSelectListReturn', function (_, data) {
11095
11107
  // console.log('returnSelectListReturn', data);
11096
11108
  if (disabled) return;
11097
- var newValue = _objectSpread2({}, data.goodValue);
11109
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
11110
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
11111
+ });
11098
11112
  newValue.bsReturnGoods = (data === null || data === void 0 ? void 0 : data.list) || [];
11099
11113
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
11100
11114
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.20.2-alpha.1",
3
+ "version": "0.21.0-beta.1",
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.20.2-alpha.1",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.21.0-beta.1",
24
24
  "lodash": "^4.17.21",
25
25
  "pubsub-js": "^1.9.4",
26
26
  "react-copy-to-clipboard": "^5.1.0",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "b310ec17e115edcf9065ebc5914dabc52373d716"
64
+ "gitHead": "49a22715f7bac8e2b250dbd0632f43eb88ae35fe"
65
65
  }