@kmkf-fe-packages/basic-components 1.3.0 → 1.4.0-rc.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.js CHANGED
@@ -12,6 +12,7 @@ var zhCN = require('antd/lib/locale/zh_CN');
12
12
  var lodash = require('lodash');
13
13
  var ahooks = require('ahooks');
14
14
  var pubsub = require('pubsub-js');
15
+ var BigNumber = require('bignumber.js');
15
16
 
16
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
18
 
@@ -19,6 +20,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
19
20
  var request__default = /*#__PURE__*/_interopDefaultLegacy(request);
20
21
  var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
21
22
  var pubsub__default = /*#__PURE__*/_interopDefaultLegacy(pubsub);
23
+ var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
22
24
 
23
25
  function _iterableToArrayLimit(arr, i) {
24
26
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
@@ -7648,19 +7650,21 @@ var BuyerNick = function BuyerNick(props) {
7648
7650
  var changeValue = function changeValue(e, type) {
7649
7651
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value)));
7650
7652
  };
7651
- React.useEffect(function () {
7652
- //淘宝平台和抖音平台需要展示买家id
7653
- var platformList = ['TAOBAO', 'FXG'];
7654
- var showBuyerId = (shopList || []).some(function (item) {
7655
- return item.shopId == shopId && platformList.includes(item.shopSourceStr);
7656
- });
7657
- //如果不是淘宝店铺 旺旺id为空
7658
- if (!showBuyerId) {
7659
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
7660
- buyerOpenUid: ''
7661
- }));
7662
- }
7663
- }, [shopId, shopList]);
7653
+ // useEffect(() => {
7654
+ // //淘宝平台和抖音平台需要展示买家id
7655
+ // const platformList = ['TAOBAO', 'FXG'];
7656
+ // const showBuyerId = (shopList || []).some(
7657
+ // (item) =>
7658
+ // item.shopId == shopId && platformList.includes(item.shopSourceStr),
7659
+ // );
7660
+ // //如果不是淘宝店铺 旺旺id为空
7661
+ // if (!showBuyerId) {
7662
+ // onChange?.({
7663
+ // ...value,
7664
+ // buyerOpenUid: '',
7665
+ // });
7666
+ // }
7667
+ // }, [shopId, shopList]);
7664
7668
  return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
7665
7669
  disabled: disabled,
7666
7670
  placeholder: "\u8BF7\u8F93\u5165\u4E70\u5BB6\u6635\u79F0",
@@ -10453,7 +10457,7 @@ var jstGoods = function jstGoods(props) {
10453
10457
  var wdtSendOptions = kmkfUtils.WdtSendData.getInstance().wdtSendData || [];
10454
10458
  React.useEffect(function () {
10455
10459
  //没有值塞个默认值
10456
- if (!(value === null || value === void 0 ? void 0 : value.length)) {
10460
+ if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
10457
10461
  onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
10458
10462
  }
10459
10463
  }, [value, type]);
@@ -10481,6 +10485,9 @@ var jstGoods = function jstGoods(props) {
10481
10485
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
10482
10486
  changeOrderInfo[type] = val;
10483
10487
  changeOrderInfo['sendId'] = option.value;
10488
+ if (platformType === 'wdt' && type === 'sendName') {
10489
+ changeOrderInfo['sendSnapshotName'] = option.label;
10490
+ }
10484
10491
  var newList = _toConsumableArray(value);
10485
10492
  newList[changeIndex] = changeOrderInfo;
10486
10493
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
@@ -10516,7 +10523,7 @@ var jstGoods = function jstGoods(props) {
10516
10523
  return setChangeIndex(index);
10517
10524
  }
10518
10525
  }, "\u5305\u88F9".concat(index + 1)));
10519
- }))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
10526
+ }))) : null, value.length || type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
10520
10527
  disabled: disabled,
10521
10528
  placeholder: "\u7269\u6D41\u516C\u53F8",
10522
10529
  onChange: function onChange(val) {
@@ -11673,9 +11680,34 @@ var GoodItem$1 = function GoodItem(props) {
11673
11680
  React.useEffect(function () {
11674
11681
  setSelectedRowKeys([]);
11675
11682
  }, [tableSelect, selectType]);
11676
- var updateHandle = function updateHandle(val, index, type) {
11683
+ var updateHandle = function updateHandle(val, index, columnType) {
11677
11684
  if (value === null || value === void 0 ? void 0 : value.length) {
11678
- value[index][type] = val;
11685
+ value[index][columnType] = val;
11686
+ if (type === 'WDT_RETURN_GOODS') {
11687
+ if (['sharePrice', 'num'].includes(columnType)) {
11688
+ var totalMoney = null;
11689
+ if (columnType === 'num') {
11690
+ totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].sharePrice));
11691
+ } else {
11692
+ totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].num));
11693
+ }
11694
+ if (totalMoney !== null) {
11695
+ value[index]['returnPrice'] = totalMoney.toString();
11696
+ }
11697
+ }
11698
+ } else if (type === 'WDT_EXCHANGE_GOODS') {
11699
+ if (['price', 'num'].includes(columnType)) {
11700
+ var _totalMoney = null;
11701
+ if (columnType === 'num') {
11702
+ _totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].price));
11703
+ } else {
11704
+ _totalMoney = new BigNumber__default['default'](value[index][columnType]).multipliedBy(new BigNumber__default['default'](value[index].num));
11705
+ }
11706
+ if (_totalMoney !== null) {
11707
+ value[index]['exchangePrice'] = _totalMoney.toString();
11708
+ }
11709
+ }
11710
+ }
11679
11711
  onChange === null || onChange === void 0 ? void 0 : onChange(_toConsumableArray(value));
11680
11712
  }
11681
11713
  };
@@ -11740,7 +11772,7 @@ var GoodItem$1 = function GoodItem(props) {
11740
11772
  width: 70
11741
11773
  },
11742
11774
  value: val,
11743
- min: 0,
11775
+ min: 1,
11744
11776
  precision: 0,
11745
11777
  onChange: function onChange(num) {
11746
11778
  return updateHandle(num, index, 'num');
@@ -11781,6 +11813,260 @@ var GoodItem$1 = function GoodItem(props) {
11781
11813
  }
11782
11814
  }];
11783
11815
  break;
11816
+ case 'WDT_RETURN_GOODS':
11817
+ {
11818
+ columns = [{
11819
+ dataIndex: 'goodId',
11820
+ title: "SPUID",
11821
+ align: 'center',
11822
+ ellipsis: true,
11823
+ width: 70
11824
+ }, {
11825
+ dataIndex: 'goodNo',
11826
+ title: "\u5546\u54C1SPU\u7F16\u7801",
11827
+ align: 'center',
11828
+ ellipsis: true,
11829
+ width: 180
11830
+ }, {
11831
+ dataIndex: 'goodName',
11832
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
11833
+ align: 'center',
11834
+ ellipsis: true,
11835
+ width: 250
11836
+ }, {
11837
+ dataIndex: 'specId',
11838
+ title: "".concat(text, "SKUID"),
11839
+ align: 'center',
11840
+ ellipsis: true,
11841
+ width: 100
11842
+ }, {
11843
+ dataIndex: 'specNo',
11844
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
11845
+ align: 'center',
11846
+ ellipsis: true,
11847
+ width: 180
11848
+ }, {
11849
+ dataIndex: 'specName',
11850
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
11851
+ align: 'center',
11852
+ ellipsis: true,
11853
+ width: 250
11854
+ }, {
11855
+ dataIndex: 'num',
11856
+ title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
11857
+ align: 'center',
11858
+ ellipsis: true,
11859
+ width: 100,
11860
+ render: function render(val, record, index) {
11861
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
11862
+ style: {
11863
+ width: 70
11864
+ },
11865
+ value: val,
11866
+ min: 1,
11867
+ precision: 0,
11868
+ onChange: function onChange(num) {
11869
+ return updateHandle(num, index, 'num');
11870
+ }
11871
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
11872
+ }
11873
+ }, {
11874
+ dataIndex: 'sharePrice',
11875
+ title: "\u5206\u644A\u4EF7",
11876
+ align: 'center',
11877
+ ellipsis: true,
11878
+ width: 80,
11879
+ render: function render(val, record, index) {
11880
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
11881
+ style: {
11882
+ width: 70
11883
+ },
11884
+ value: val,
11885
+ min: 0,
11886
+ onChange: function onChange(value) {
11887
+ return updateHandle(value, index, 'sharePrice');
11888
+ }
11889
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
11890
+ }
11891
+ }, {
11892
+ dataIndex: 'returnPrice',
11893
+ title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
11894
+ align: 'center',
11895
+ ellipsis: true,
11896
+ width: 100
11897
+ }, {
11898
+ dataIndex: 'giftType',
11899
+ title: "\u8D60\u54C1\u65B9\u5F0F",
11900
+ align: 'center',
11901
+ ellipsis: true,
11902
+ width: 100,
11903
+ render: function render(val) {
11904
+ var giftTypeMap = {
11905
+ 0: '非赠品',
11906
+ 1: '自动赠送',
11907
+ 2: '手工赠送',
11908
+ 3: '回购自动送赠品',
11909
+ 4: '前N有礼送赠品',
11910
+ 6: '天猫优仓赠品',
11911
+ 7: '淘宝CRM会员送赠'
11912
+ };
11913
+ return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
11914
+ }
11915
+ }, {
11916
+ dataIndex: 'type',
11917
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
11918
+ align: 'center',
11919
+ ellipsis: true,
11920
+ width: 100,
11921
+ render: function render(val, record, index) {
11922
+ var options = [{
11923
+ label: '单品',
11924
+ value: '1'
11925
+ }, {
11926
+ label: '组合装',
11927
+ value: '2'
11928
+ }];
11929
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
11930
+ style: {
11931
+ width: 70
11932
+ },
11933
+ options: options,
11934
+ value: val,
11935
+ onChange: function onChange(value) {
11936
+ return updateHandle(value, index, 'type');
11937
+ }
11938
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
11939
+ }
11940
+ }];
11941
+ }
11942
+ break;
11943
+ case 'WDT_EXCHANGE_GOODS':
11944
+ {
11945
+ columns = [{
11946
+ dataIndex: 'goodId',
11947
+ title: "SPUID",
11948
+ align: 'center',
11949
+ ellipsis: true,
11950
+ width: 70
11951
+ }, {
11952
+ dataIndex: 'goodNo',
11953
+ title: "\u5546\u54C1SPU\u7F16\u7801",
11954
+ align: 'center',
11955
+ ellipsis: true,
11956
+ width: 180
11957
+ }, {
11958
+ dataIndex: 'goodName',
11959
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
11960
+ align: 'center',
11961
+ ellipsis: true,
11962
+ width: 250
11963
+ }, {
11964
+ dataIndex: 'specId',
11965
+ title: "".concat(text, "SKUID"),
11966
+ align: 'center',
11967
+ ellipsis: true,
11968
+ width: 100
11969
+ }, {
11970
+ dataIndex: 'specNo',
11971
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
11972
+ align: 'center',
11973
+ ellipsis: true,
11974
+ width: 180
11975
+ }, {
11976
+ dataIndex: 'specName',
11977
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
11978
+ align: 'center',
11979
+ ellipsis: true,
11980
+ width: 250
11981
+ }, {
11982
+ dataIndex: 'num',
11983
+ title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
11984
+ align: 'center',
11985
+ ellipsis: true,
11986
+ width: 100,
11987
+ render: function render(val, record, index) {
11988
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
11989
+ style: {
11990
+ width: 70
11991
+ },
11992
+ value: val,
11993
+ min: 1,
11994
+ precision: 0,
11995
+ onChange: function onChange(num) {
11996
+ return updateHandle(num, index, 'num');
11997
+ }
11998
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
11999
+ }
12000
+ }, {
12001
+ dataIndex: 'price',
12002
+ title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
12003
+ align: 'center',
12004
+ ellipsis: true,
12005
+ width: 100,
12006
+ render: function render(val, record, index) {
12007
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
12008
+ style: {
12009
+ width: 70
12010
+ },
12011
+ value: val,
12012
+ min: 0,
12013
+ onChange: function onChange(value) {
12014
+ return updateHandle(value, index, 'price');
12015
+ }
12016
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
12017
+ }
12018
+ }, {
12019
+ dataIndex: 'exchangePrice',
12020
+ title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
12021
+ align: 'center',
12022
+ ellipsis: true,
12023
+ width: 100
12024
+ }, {
12025
+ dataIndex: 'giftType',
12026
+ title: "\u8D60\u54C1\u65B9\u5F0F",
12027
+ align: 'center',
12028
+ ellipsis: true,
12029
+ width: 100,
12030
+ render: function render(val) {
12031
+ var giftTypeMap = {
12032
+ 0: '非赠品',
12033
+ 1: '自动赠送',
12034
+ 2: '手工赠送',
12035
+ 3: '回购自动送赠品',
12036
+ 4: '前N有礼送赠品',
12037
+ 6: '天猫优仓赠品',
12038
+ 7: '淘宝CRM会员送赠'
12039
+ };
12040
+ return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
12041
+ }
12042
+ }, {
12043
+ dataIndex: 'type',
12044
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
12045
+ align: 'center',
12046
+ ellipsis: true,
12047
+ width: 100,
12048
+ render: function render(val, record, index) {
12049
+ var options = [{
12050
+ label: '单品',
12051
+ value: '1'
12052
+ }, {
12053
+ label: '组合装',
12054
+ value: '2'
12055
+ }];
12056
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
12057
+ style: {
12058
+ width: 70
12059
+ },
12060
+ options: options,
12061
+ value: val,
12062
+ onChange: function onChange(value) {
12063
+ return updateHandle(value, index, 'type');
12064
+ }
12065
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
12066
+ }
12067
+ }];
12068
+ }
12069
+ break;
11784
12070
  default:
11785
12071
  columns = [{
11786
12072
  dataIndex: 'mark',
@@ -11858,7 +12144,7 @@ var GoodItem$1 = function GoodItem(props) {
11858
12144
  width: 70
11859
12145
  },
11860
12146
  value: val,
11861
- min: 0,
12147
+ min: 1,
11862
12148
  precision: 0,
11863
12149
  onChange: function onChange(num) {
11864
12150
  return updateHandle(num, index, 'number');
@@ -11922,7 +12208,7 @@ var GoodItem$1 = function GoodItem(props) {
11922
12208
  }, [showHeader, value, disabled]);
11923
12209
  var onSubmit = function onSubmit(list) {
11924
12210
  var newList = [];
11925
- if (['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type)) {
12211
+ if (['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type)) {
11926
12212
  newList = list.map(function (item) {
11927
12213
  item.uuid = kmkfUtils.uuid();
11928
12214
  item.canDelete = true;
@@ -11930,6 +12216,10 @@ var GoodItem$1 = function GoodItem(props) {
11930
12216
  item.orderPrice = 0;
11931
12217
  item.sharePrice = 0;
11932
12218
  item.canUpdateNumber = canUpdateNumber;
12219
+ if (type === 'WDT_EXCHANGE_GOODS') {
12220
+ item.price = item.retailPrice;
12221
+ item.type = '1';
12222
+ }
11933
12223
  return item;
11934
12224
  });
11935
12225
  } else {
@@ -12000,7 +12290,7 @@ var GoodItem$1 = function GoodItem(props) {
12000
12290
  locale: {
12001
12291
  emptyText: '暂无数据'
12002
12292
  }
12003
- })), ['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type) ? /*#__PURE__*/React__default['default'].createElement(WdtGoodsModal, {
12293
+ })), ['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type) ? /*#__PURE__*/React__default['default'].createElement(WdtGoodsModal, {
12004
12294
  ref: refModal,
12005
12295
  onSubmit: onSubmit,
12006
12296
  width: width,
@@ -12646,9 +12936,11 @@ var index$1 = (function (props) {
12646
12936
  _onChange = props.onChange,
12647
12937
  disabled = props.disabled,
12648
12938
  type = props.type;
12939
+ var onceRef = React.useRef(false);
12649
12940
  React.useEffect(function () {
12650
12941
  var _value$orders, _value$showOrderInfo;
12651
- if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length)) {
12942
+ if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length) && !onceRef.current) {
12943
+ onceRef.current = true;
12652
12944
  if (type === 'BS_SYSTEM_ORDER') {
12653
12945
  getOrderList(value.orderNo);
12654
12946
  } else if (type === 'WLN_SYSTEM_ORDER') {
@@ -12657,7 +12949,7 @@ var index$1 = (function (props) {
12657
12949
  getWdtOrderList(value.orderNo);
12658
12950
  }
12659
12951
  }
12660
- }, [value === null || value === void 0 ? void 0 : value.orderNo, type]);
12952
+ }, [value, type]);
12661
12953
  var columns = React.useMemo(function () {
12662
12954
  var _columnsNameMap$type, _columnsNameMap$type2;
12663
12955
  return [{
@@ -12700,7 +12992,8 @@ var index$1 = (function (props) {
12700
12992
  })
12701
12993
  }));
12702
12994
  }
12703
- case 6:
12995
+ onceRef.current = false;
12996
+ case 7:
12704
12997
  case "end":
12705
12998
  return _context.stop();
12706
12999
  }
@@ -12745,7 +13038,8 @@ var index$1 = (function (props) {
12745
13038
  })
12746
13039
  }));
12747
13040
  }
12748
- case 6:
13041
+ onceRef.current = false;
13042
+ case 7:
12749
13043
  case "end":
12750
13044
  return _context2.stop();
12751
13045
  }
@@ -12757,7 +13051,7 @@ var index$1 = (function (props) {
12757
13051
  }();
12758
13052
  var getWdtOrderList = /*#__PURE__*/function () {
12759
13053
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(orderNo) {
12760
- var _yield$request3, success, data;
13054
+ var _yield$request3, success, data, trades;
12761
13055
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
12762
13056
  while (1) switch (_context3.prev = _context3.next) {
12763
13057
  case 0:
@@ -12773,15 +13067,25 @@ var index$1 = (function (props) {
12773
13067
  success = _yield$request3.success;
12774
13068
  data = _yield$request3.data;
12775
13069
  if (success) {
13070
+ trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
13071
+ return (item.srcTid || '').split(',').includes(orderNo);
13072
+ }).map(function (item) {
13073
+ if (Array.isArray(item.goodDetails)) {
13074
+ item.goodDetails = item.goodDetails.filter(function (good) {
13075
+ return good.srcTid === orderNo;
13076
+ });
13077
+ }
13078
+ return item;
13079
+ });
12776
13080
  _onChange(_objectSpread2(_objectSpread2({}, value), {}, {
12777
- orders: ((data === null || data === void 0 ? void 0 : data.trades) || []).map(function (item) {
13081
+ orders: trades.map(function (item) {
12778
13082
  return _objectSpread2(_objectSpread2({}, item), {}, {
12779
13083
  billNo: item.tradeNo,
12780
13084
  billType: kmkfUtils.WDT_ORDER_TYPE_MAP[item.tradeType],
12781
13085
  billTag: item.tagName
12782
13086
  });
12783
13087
  }),
12784
- showOrderInfo: data === null || data === void 0 ? void 0 : data.trades.map(function (item) {
13088
+ showOrderInfo: trades.map(function (item) {
12785
13089
  return {
12786
13090
  billNo: item.tradeNo,
12787
13091
  billType: kmkfUtils.WDT_ORDER_TYPE_MAP[item.tradeType],
@@ -12790,7 +13094,8 @@ var index$1 = (function (props) {
12790
13094
  })
12791
13095
  }));
12792
13096
  }
12793
- case 6:
13097
+ onceRef.current = false;
13098
+ case 7:
12794
13099
  case "end":
12795
13100
  return _context3.stop();
12796
13101
  }
@@ -12870,8 +13175,10 @@ var componentMap$1 = {
12870
13175
  reissueType: 'wdtReissueType',
12871
13176
  returnType: 'wdtReturnType',
12872
13177
  returnSelectListReturn: 'wdtReturnSelectListReturn',
13178
+ returnSelectList: 'wdtReturnSelectList',
12873
13179
  deleteGood: 'wdtDeleteGood',
12874
- returnDeleteGood: 'wdtReturnDeleteGood'
13180
+ returnDeleteGood: 'wdtReturnDeleteGood',
13181
+ exchangeDeleteGood: 'wdtExchangeDeleteGood'
12875
13182
  }
12876
13183
  }
12877
13184
  };
@@ -12938,7 +13245,7 @@ var CommonGoods = function CommonGoods(props) {
12938
13245
  setTableSelect(['2', '4'].includes(data.val));
12939
13246
  if (['1', '3'].includes(data.val)) {
12940
13247
  var _valueRef$current5, _valueRef$current6;
12941
- pubsub__default['default'].publish(componentMap$1[type].eventNameMap.returnSelectListReturn, {
13248
+ pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.returnSelectListReturn, {
12942
13249
  list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current5 = valueRef.current) === null || _valueRef$current5 === void 0 ? void 0 : _valueRef$current5[componentMap$1[compType].key]) || []),
12943
13250
  shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current6 = valueRef.current) === null || _valueRef$current6 === void 0 ? void 0 : _valueRef$current6.shopCode,
12944
13251
  goodValue: data === null || data === void 0 ? void 0 : data.goodValue
@@ -12956,15 +13263,15 @@ var CommonGoods = function CommonGoods(props) {
12956
13263
  };
12957
13264
  }, [disabled]);
12958
13265
  var _onSelect = function onSelect(list) {
12959
- var _withInfo$current, _withInfo$current2, _valueRef$current7;
13266
+ var _typeMap, _withInfo$current, _withInfo$current2, _valueRef$current7;
12960
13267
  if (disabled) return;
12961
13268
  var newList = lodash.cloneDeep(list);
12962
- var typeMap = _defineProperty({
13269
+ var typeMap = (_typeMap = {
12963
13270
  // type: componentMap[compType].eventNameMap.selectList,
12964
13271
  // returnType: componentMap[compType].eventNameMap.returnSelectList,
12965
13272
  // reissueType: componentMap[compType].eventNameMap.reissueSelectList,
12966
13273
  type: componentMap$1[compType].eventNameMap.selectList
12967
- }, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList);
13274
+ }, _defineProperty(_typeMap, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList), _defineProperty(_typeMap, "".concat(componentMap$1[compType].type, "ReturnType"), componentMap$1[compType].eventNameMap.returnSelectList), _typeMap);
12968
13275
  var type = typeMap[(_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type];
12969
13276
  // console.log('onSelect', type, withInfo.current, newList);
12970
13277
  pubsub__default['default'].publish(type, {
@@ -12982,6 +13289,7 @@ var CommonGoods = function CommonGoods(props) {
12982
13289
  pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.deleteGood, deleteId);
12983
13290
  pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.reissueDeleteGood, deleteId);
12984
13291
  pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.returnDeleteGood, deleteId);
13292
+ pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.exchangeDeleteGood, deleteId);
12985
13293
  };
12986
13294
  var changeHandle = function changeHandle(list) {
12987
13295
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, componentMap$1[compType].key, list)));
@@ -13006,6 +13314,263 @@ var CommonGoods = function CommonGoods(props) {
13006
13314
  }));
13007
13315
  };
13008
13316
 
13317
+ var componentMap$2 = {
13318
+ 'WDT_RETURN_GOODS': {
13319
+ type: 'wdt',
13320
+ valueKey: 'wdtReturnGoods',
13321
+ returnTypeKey: 'wdtReturnType',
13322
+ name: '旺店通',
13323
+ eventNameMap: {
13324
+ changeShopCode: 'wdtChangeShopCode',
13325
+ returnType: 'wdtReturnType',
13326
+ returnSelectListReturn: 'wdtReturnSelectListReturn',
13327
+ returnDeleteGood: 'wdtReturnDeleteGood',
13328
+ returnSelectList: 'wdtReturnSelectList',
13329
+ exchangeCopyGood: 'wdtExchangeCopyGood',
13330
+ exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
13331
+ }
13332
+ }
13333
+ };
13334
+ var CommonReturnGoods = function CommonReturnGoods(props) {
13335
+ var value = props.value,
13336
+ onChange = props.onChange,
13337
+ _props$reasonList = props.reasonList,
13338
+ reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
13339
+ disabled = props.disabled,
13340
+ compType = props.type;
13341
+ var valueRef = React.useRef({});
13342
+ React.useEffect(function () {
13343
+ var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
13344
+ var _valueRef$current, _valueRef$current2;
13345
+ pubsub__default['default'].publish(componentMap$2[compType].eventNameMap.exchangeBackCopyGood, {
13346
+ list: lodash.cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current[componentMap$2[compType].valueKey]) || []),
13347
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode
13348
+ });
13349
+ });
13350
+ return function () {
13351
+ pubsub__default['default'].unsubscribe(subscription);
13352
+ };
13353
+ }, []);
13354
+ React.useEffect(function () {
13355
+ var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.returnSelectList, function (_, data) {
13356
+ if (disabled) return;
13357
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
13358
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
13359
+ });
13360
+ if (compType === 'WDT_RETURN_GOODS') {
13361
+ newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13362
+ if (typeof item.type === 'undefined') {
13363
+ item.type = '1';
13364
+ }
13365
+ if (typeof item.returnPrice === 'undefined') {
13366
+ item.returnPrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.sharePrice)).toString();
13367
+ }
13368
+ if (item.srcOid) {
13369
+ item.oid = item.srcOid;
13370
+ }
13371
+ return item;
13372
+ });
13373
+ } else {
13374
+ newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
13375
+ }
13376
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13377
+ });
13378
+ return function () {
13379
+ pubsub__default['default'].unsubscribe(subscription);
13380
+ };
13381
+ }, []);
13382
+ React.useEffect(function () {
13383
+ var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.returnSelectListReturn, function (_, data) {
13384
+ if (disabled) return;
13385
+ var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
13386
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
13387
+ });
13388
+ if (compType === 'WDT_RETURN_GOODS') {
13389
+ newValue[componentMap$2[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13390
+ if (typeof item.type === 'undefined') {
13391
+ item.type = '1';
13392
+ }
13393
+ if (typeof item.returnPrice === 'undefined') {
13394
+ item.returnPrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.sharePrice)).toString();
13395
+ }
13396
+ if (item.srcOid) {
13397
+ item.oid = item.srcOid;
13398
+ }
13399
+ return item;
13400
+ });
13401
+ } else {
13402
+ newValue[componentMap$2[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
13403
+ }
13404
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13405
+ });
13406
+ return function () {
13407
+ pubsub__default['default'].unsubscribe(subscription);
13408
+ };
13409
+ }, []);
13410
+ React.useEffect(function () {
13411
+ valueRef.current = value;
13412
+ pubsub__default['default'].subscribeOnce(componentMap$2[compType].eventNameMap.returnDeleteGood, function (_, data) {
13413
+ if (disabled) return;
13414
+ if (value) {
13415
+ var newValue = _objectSpread2({}, value);
13416
+ newValue[componentMap$2[compType].valueKey] = newValue[componentMap$2[compType].valueKey].filter(function (item) {
13417
+ return item.sku !== data;
13418
+ });
13419
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13420
+ }
13421
+ });
13422
+ pubsub__default['default'].subscribeOnce(componentMap$2[compType].eventNameMap.changeShopCode, function (type, data) {
13423
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13424
+ shopCode: data.shopCode
13425
+ }));
13426
+ });
13427
+ }, [value, disabled]);
13428
+ var changeTypeHandle = function changeTypeHandle(val) {
13429
+ var newValue = _objectSpread2({}, value);
13430
+ newValue[componentMap$2[compType].returnTypeKey] = val;
13431
+ newValue[componentMap$2[compType].valueKey] = [];
13432
+ if (['2'].includes(val[0])) {
13433
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13434
+ valueRef.current = newValue;
13435
+ }
13436
+ pubsub__default['default'].publish(componentMap$2[compType].eventNameMap.returnType, {
13437
+ val: val[0],
13438
+ goodValue: newValue
13439
+ });
13440
+ };
13441
+ var changeGoodHandle = function changeGoodHandle(val) {
13442
+ var newValue = _objectSpread2({}, value);
13443
+ newValue[componentMap$2[compType].valueKey] = val;
13444
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13445
+ };
13446
+ //显示选择商品按钮 原单换不显示选择商品
13447
+ // const showChangeBtn = useMemo(() => {
13448
+ // return ['2'].includes(value?.[componentMap[compType].returnTypeKey]?.[0]);
13449
+ // }, [value?.[componentMap[compType].returnTypeKey]]);
13450
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
13451
+ style: {
13452
+ marginBottom: '8px'
13453
+ },
13454
+ disabled: disabled,
13455
+ allowClear: false,
13456
+ options: reasonList,
13457
+ value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
13458
+ onChange: function onChange(val) {
13459
+ return changeTypeHandle(val);
13460
+ }
13461
+ }), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
13462
+ key: componentMap$2[compType].type
13463
+ }, props), {}, {
13464
+ disabled: disabled,
13465
+ canUpdateNumber: true,
13466
+ showChangeBtn: false,
13467
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
13468
+ value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].valueKey],
13469
+ onChange: function onChange(val) {
13470
+ return changeGoodHandle(val);
13471
+ }
13472
+ })));
13473
+ };
13474
+
13475
+ var componentMap$3 = {
13476
+ 'WDT_EXCHANGE_GOODS': {
13477
+ type: 'wdt',
13478
+ valueKey: 'wdtExchangeGoods',
13479
+ returnTypeKey: 'wdtExchangeType',
13480
+ name: '旺店通',
13481
+ eventNameMap: {
13482
+ changeShopCode: 'wdtChangeShopCode',
13483
+ exchangeDeleteGood: 'wdtExchangeDeleteGood',
13484
+ exchangeCopyGood: 'wdtExchangeCopyGood',
13485
+ exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
13486
+ }
13487
+ }
13488
+ };
13489
+ var CommonExchangeGoods = function CommonExchangeGoods(props) {
13490
+ var value = props.value,
13491
+ onChange = props.onChange,
13492
+ disabled = props.disabled,
13493
+ compType = props.type;
13494
+ var valueRef = React.useRef({});
13495
+ React.useEffect(function () {
13496
+ var subscription = pubsub__default['default'].subscribe(componentMap$3[compType].eventNameMap.exchangeBackCopyGood, function (_, data) {
13497
+ if (disabled) return;
13498
+ var newValue = {
13499
+ shopCode: data === null || data === void 0 ? void 0 : data.shopCode
13500
+ };
13501
+ if (compType === 'WDT_EXCHANGE_GOODS') {
13502
+ newValue[componentMap$3[compType].valueKey] = ((data === null || data === void 0 ? void 0 : data.list) || []).map(function (item) {
13503
+ if (typeof item.type === 'undefined') {
13504
+ item.type = '1';
13505
+ }
13506
+ item.price = item.sharePrice;
13507
+ if (typeof item.exchangePrice === 'undefined') {
13508
+ item.exchangePrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.price)).toString();
13509
+ }
13510
+ return item;
13511
+ });
13512
+ } else {
13513
+ newValue[componentMap$3[compType].valueKey] = (data === null || data === void 0 ? void 0 : data.list) || [];
13514
+ }
13515
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13516
+ });
13517
+ return function () {
13518
+ pubsub__default['default'].unsubscribe(subscription);
13519
+ };
13520
+ });
13521
+ React.useEffect(function () {
13522
+ valueRef.current = value;
13523
+ pubsub__default['default'].subscribeOnce(componentMap$3[compType].eventNameMap.exchangeDeleteGood, function (_, data) {
13524
+ if (disabled) return;
13525
+ if (value) {
13526
+ var newValue = _objectSpread2({}, value);
13527
+ newValue[componentMap$3[compType].valueKey] = newValue[componentMap$3[compType].valueKey].filter(function (item) {
13528
+ return item.sku !== data;
13529
+ });
13530
+ onChange(newValue);
13531
+ }
13532
+ });
13533
+ pubsub__default['default'].subscribeOnce(componentMap$3[compType].eventNameMap.changeShopCode, function (type, data) {
13534
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13535
+ shopCode: data.shopCode
13536
+ }));
13537
+ });
13538
+ }, [value]);
13539
+ var changeGoodHandle = function changeGoodHandle(val) {
13540
+ var newValue = _objectSpread2({}, value);
13541
+ if (compType === 'WDT_EXCHANGE_GOODS') {
13542
+ val = val.map(function (item) {
13543
+ item.exchangePrice = new BigNumber__default['default'](item.num).multipliedBy(new BigNumber__default['default'](item.price)).toString();
13544
+ return item;
13545
+ });
13546
+ }
13547
+ newValue[componentMap$3[compType].valueKey] = val;
13548
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
13549
+ };
13550
+ var copyGoods = function copyGoods() {
13551
+ var copyHandle = function copyHandle() {
13552
+ pubsub__default['default'].publish(componentMap$3[compType].eventNameMap.exchangeCopyGood, 'WDT_EXCHANGE_GOODS');
13553
+ };
13554
+ return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
13555
+ type: "link",
13556
+ onClick: copyHandle
13557
+ }, "\u590D\u5236\u9000\u56DE\u5546\u54C1");
13558
+ };
13559
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
13560
+ key: componentMap$3[compType].type
13561
+ }, props), {}, {
13562
+ disabled: disabled,
13563
+ canUpdateNumber: true,
13564
+ showChangeBtn: true,
13565
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
13566
+ value: value === null || value === void 0 ? void 0 : value[componentMap$3[compType].valueKey],
13567
+ otherOperations: copyGoods(),
13568
+ onChange: function onChange(val) {
13569
+ return changeGoodHandle(val);
13570
+ }
13571
+ })));
13572
+ };
13573
+
13009
13574
  var _excluded$g = ["value", "onChange", "reasonList", "disabled", "type"];
13010
13575
  var typeMap$1 = {
13011
13576
  WDT_REISSUE_GOODS: {
@@ -13794,7 +14359,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
13794
14359
  changeIndex = _useState2[0],
13795
14360
  setChangeIndex = _useState2[1]; //选中的包裹
13796
14361
  React.useEffect(function () {
13797
- if (!(value === null || value === void 0 ? void 0 : value.length)) {
14362
+ if (!(value === null || value === void 0 ? void 0 : value.length) && type === 1) {
13798
14363
  onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap$1[type].initValue);
13799
14364
  }
13800
14365
  }, [value, type]);
@@ -13833,7 +14398,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
13833
14398
  return setChangeIndex(index);
13834
14399
  }
13835
14400
  }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
13836
- }))) : 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.Input, {
14401
+ }))) : null, value.length || type !== 1 ? /*#__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.Input, {
13837
14402
  disabled: disabled,
13838
14403
  placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
13839
14404
  onChange: function onChange(e) {
@@ -13848,12 +14413,18 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
13848
14413
  },
13849
14414
  value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.returnGoodsTradeId
13850
14415
  })) : null, type === 3 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13851
- disabled: true,
14416
+ disabled: disabled,
13852
14417
  placeholder: "\u8BF7\u8F93\u5165\u8865\u53D1\u5355id",
14418
+ onChange: function onChange(e) {
14419
+ return changeInputHandle(e.target.value, 'billNo');
14420
+ },
13853
14421
  value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.billNo
13854
14422
  })) : null, type === 4 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
13855
- disabled: true,
14423
+ disabled: disabled,
13856
14424
  placeholder: "\u8BF7\u8F93\u5165\u6362\u8D27\u5355id",
14425
+ onChange: function onChange(e) {
14426
+ return changeInputHandle(e.target.value, 'billNo');
14427
+ },
13857
14428
  value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.billNo
13858
14429
  })) : null) : null);
13859
14430
  };
@@ -13915,7 +14486,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13915
14486
  return setChangeIndex(index);
13916
14487
  }
13917
14488
  }, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1)));
13918
- }))) : null, value.length && type === 1 || type === 2 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
14489
+ }))) : null, /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
13919
14490
  showSearch: true,
13920
14491
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
13921
14492
  filterOption: function filterOption(input, option) {
@@ -13931,7 +14502,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13931
14502
  }
13932
14503
  }))), ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.reason) ? /*#__PURE__*/React__default['default'].createElement("div", {
13933
14504
  className: "c-red"
13934
- }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
14505
+ }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
13935
14506
  };
13936
14507
 
13937
14508
  var _excluded$j = ["value", "onChange", "disabled", "failValue", "type"];
@@ -14047,8 +14618,10 @@ exports.BsSystemOrder = index$1;
14047
14618
  exports.BuyerNick = BuyerNick;
14048
14619
  exports.CalculationInput = CalculationInput;
14049
14620
  exports.ChooseBaby = ChooseBaby;
14621
+ exports.CommonExchangeGoods = CommonExchangeGoods;
14050
14622
  exports.CommonGoods = CommonGoods;
14051
14623
  exports.CommonMultiStatus = CommonSystemOrder$1;
14624
+ exports.CommonReturnGoods = CommonReturnGoods;
14052
14625
  exports.CommonStatus = CommonStatus;
14053
14626
  exports.CommonSystemOrder = CommonSystemOrder;
14054
14627
  exports.ExpressLogistics = ExpressLogistics;