@kmkf-fe-packages/basic-components 2.0.12-beta.3 → 2.0.12-beta.31

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
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, msgTypeCh } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, uuid, columnsGoodsList, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, isNull, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterKmOrders, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, jstMergeIdenticalGoods, msgTypeCh } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
8
8
  import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
9
9
  import zhCN from 'antd/lib/locale/zh_CN';
@@ -14376,8 +14376,15 @@ var getColumns$4 = function getColumns(_ref) {
14376
14376
  };
14377
14377
  };
14378
14378
 
14379
- var getColumns$5 = function getColumns(_ref) {
14380
- var _ref$text = _ref.text,
14379
+ var fillAttrs = function fillAttrs(item) {
14380
+ if (!item.width) item.width = 150;
14381
+ if (typeof item.ellipsis !== 'boolean') item.ellipsis = true;
14382
+ if (!item.align) item.align = 'center';
14383
+ return item;
14384
+ };
14385
+ var getColumns$5 = function getColumns() {
14386
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
14387
+ _ref$text = _ref.text,
14381
14388
  disabled = _ref.disabled,
14382
14389
  updateHandle = _ref.updateHandle;
14383
14390
  return {
@@ -14441,7 +14448,7 @@ var getColumns$5 = function getColumns(_ref) {
14441
14448
  min: 0,
14442
14449
  precision: 2,
14443
14450
  onChange: function onChange(num) {
14444
- return updateHandle(num, index, 'salePrice');
14451
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
14445
14452
  }
14446
14453
  }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
14447
14454
  }
@@ -14460,7 +14467,7 @@ var getColumns$5 = function getColumns(_ref) {
14460
14467
  min: 1,
14461
14468
  precision: 0,
14462
14469
  onChange: function onChange(num) {
14463
- return updateHandle(num, index, 'qty');
14470
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
14464
14471
  }
14465
14472
  }) : /*#__PURE__*/React.createElement("span", null, val);
14466
14473
  }
@@ -14489,7 +14496,7 @@ var getColumns$5 = function getColumns(_ref) {
14489
14496
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
14490
14497
  value: val,
14491
14498
  onChange: function onChange(value) {
14492
- updateHandle(value, index, 'isGift');
14499
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
14493
14500
  },
14494
14501
  options: [{
14495
14502
  label: '是',
@@ -14567,7 +14574,7 @@ var getColumns$5 = function getColumns(_ref) {
14567
14574
  min: 0,
14568
14575
  precision: 2,
14569
14576
  onChange: function onChange(num) {
14570
- return updateHandle(num, index, 'salePrice');
14577
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
14571
14578
  }
14572
14579
  }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
14573
14580
  }
@@ -14586,7 +14593,7 @@ var getColumns$5 = function getColumns(_ref) {
14586
14593
  min: 1,
14587
14594
  precision: 0,
14588
14595
  onChange: function onChange(num) {
14589
- return updateHandle(num, index, 'qty');
14596
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
14590
14597
  }
14591
14598
  }) : /*#__PURE__*/React.createElement("span", null, val);
14592
14599
  }
@@ -14600,7 +14607,7 @@ var getColumns$5 = function getColumns(_ref) {
14600
14607
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
14601
14608
  value: val,
14602
14609
  onChange: function onChange(value) {
14603
- updateHandle(value, index, 'isGift');
14610
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
14604
14611
  },
14605
14612
  options: [{
14606
14613
  label: '是',
@@ -14624,11 +14631,222 @@ var getColumns$5 = function getColumns(_ref) {
14624
14631
  },
14625
14632
  value: val,
14626
14633
  onChange: function onChange(e) {
14627
- return updateHandle(e.target.value, index, 'remark');
14634
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
14628
14635
  }
14629
14636
  }) : /*#__PURE__*/React.createElement("span", null, val);
14630
14637
  }
14631
- }]
14638
+ }],
14639
+ JST_RETURN_GOODS: [{
14640
+ dataIndex: 'name',
14641
+ title: '商品名称'
14642
+ }, {
14643
+ dataIndex: 'skuId',
14644
+ title: '商品编码'
14645
+ }, {
14646
+ dataIndex: 'iId',
14647
+ title: '款式编码'
14648
+ }, {
14649
+ dataIndex: 'pic',
14650
+ title: '商品图片',
14651
+ width: 100,
14652
+ render: function render(val) {
14653
+ return /*#__PURE__*/React.createElement(Image, {
14654
+ width: 60,
14655
+ src: val
14656
+ });
14657
+ }
14658
+ }, {
14659
+ dataIndex: 'propertiesValue',
14660
+ title: '规格值'
14661
+ }, {
14662
+ dataIndex: 'saleBasePrice',
14663
+ title: '原价',
14664
+ render: function render(price) {
14665
+ return price || price === 0 ? Number(price).toFixed(2) : '';
14666
+ }
14667
+ }, {
14668
+ dataIndex: 'salePrice',
14669
+ title: '单价',
14670
+ width: 120,
14671
+ render: function render(val, record, index) {
14672
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
14673
+ style: {
14674
+ width: 70
14675
+ },
14676
+ value: val,
14677
+ min: 0,
14678
+ precision: 2,
14679
+ onChange: function onChange(num) {
14680
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
14681
+ }
14682
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
14683
+ }
14684
+ }, {
14685
+ dataIndex: 'qty',
14686
+ title: '数量',
14687
+ width: 100,
14688
+ render: function render(val, record, index) {
14689
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
14690
+ style: {
14691
+ width: 70
14692
+ },
14693
+ value: val,
14694
+ min: 1,
14695
+ precision: 0,
14696
+ onChange: function onChange(num) {
14697
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
14698
+ }
14699
+ }) : /*#__PURE__*/React.createElement("span", null, val);
14700
+ }
14701
+ }, {
14702
+ dataIndex: 'saleAmount',
14703
+ title: '总金额',
14704
+ render: function render(val, record) {
14705
+ return (record.qty || 0) * (+record.salePrice || 0);
14706
+ }
14707
+ }, {
14708
+ dataIndex: 'batchId',
14709
+ title: '批次号'
14710
+ }, {
14711
+ dataIndex: 'isGift',
14712
+ title: '是否赠品',
14713
+ width: 100,
14714
+ render: function render(val, record, index) {
14715
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
14716
+ value: val,
14717
+ onChange: function onChange(value) {
14718
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
14719
+ },
14720
+ options: [{
14721
+ label: '是',
14722
+ value: true
14723
+ }, {
14724
+ label: '否',
14725
+ value: false
14726
+ }]
14727
+ }) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
14728
+ }
14729
+ }, {
14730
+ dataIndex: 'remark',
14731
+ title: '备注',
14732
+ render: function render(val, record, index) {
14733
+ return !disabled ? /*#__PURE__*/React.createElement(Input, {
14734
+ style: {
14735
+ width: 70
14736
+ },
14737
+ value: val,
14738
+ onChange: function onChange(e) {
14739
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
14740
+ }
14741
+ }) : /*#__PURE__*/React.createElement("span", null, val);
14742
+ }
14743
+ }, {
14744
+ dataIndex: 'outerOiId',
14745
+ title: '子订单号',
14746
+ width: 240
14747
+ }].map(fillAttrs),
14748
+ JST_EXCHANGE_GOODS: [{
14749
+ dataIndex: 'name',
14750
+ title: '商品名称'
14751
+ }, {
14752
+ dataIndex: 'skuId',
14753
+ title: '商品编码'
14754
+ }, {
14755
+ dataIndex: 'iId',
14756
+ title: '款式编码'
14757
+ }, {
14758
+ dataIndex: 'pic',
14759
+ title: '商品图片',
14760
+ width: 100,
14761
+ render: function render(val) {
14762
+ return /*#__PURE__*/React.createElement(Image, {
14763
+ width: 60,
14764
+ src: val
14765
+ });
14766
+ }
14767
+ }, {
14768
+ dataIndex: 'propertiesValue',
14769
+ title: '规格值'
14770
+ }, {
14771
+ dataIndex: 'saleBasePrice',
14772
+ title: '原价',
14773
+ render: function render(price) {
14774
+ return price || price === 0 ? Number(price).toFixed(2) : '';
14775
+ }
14776
+ }, {
14777
+ dataIndex: 'salePrice',
14778
+ title: '单价',
14779
+ width: 120,
14780
+ render: function render(val, record, index) {
14781
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
14782
+ style: {
14783
+ width: 70
14784
+ },
14785
+ value: val,
14786
+ min: 0,
14787
+ precision: 2,
14788
+ onChange: function onChange(num) {
14789
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
14790
+ }
14791
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
14792
+ }
14793
+ }, {
14794
+ dataIndex: 'qty',
14795
+ title: '数量',
14796
+ width: 100,
14797
+ render: function render(val, record, index) {
14798
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
14799
+ style: {
14800
+ width: 70
14801
+ },
14802
+ value: val,
14803
+ min: 1,
14804
+ precision: 0,
14805
+ onChange: function onChange(num) {
14806
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
14807
+ }
14808
+ }) : /*#__PURE__*/React.createElement("span", null, val);
14809
+ }
14810
+ }, {
14811
+ dataIndex: 'saleAmount',
14812
+ title: '总金额',
14813
+ render: function render(val, record) {
14814
+ return (record.qty || 0) * (+record.salePrice || 0);
14815
+ }
14816
+ }, {
14817
+ dataIndex: 'isGift',
14818
+ title: '是否赠品',
14819
+ width: 100,
14820
+ render: function render(val, record, index) {
14821
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
14822
+ value: val,
14823
+ onChange: function onChange(value) {
14824
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
14825
+ },
14826
+ options: [{
14827
+ label: '是',
14828
+ value: true
14829
+ }, {
14830
+ label: '否',
14831
+ value: false
14832
+ }]
14833
+ }) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
14834
+ }
14835
+ }, {
14836
+ dataIndex: 'remark',
14837
+ title: '备注',
14838
+ render: function render(val, record, index) {
14839
+ return !disabled ? /*#__PURE__*/React.createElement(Input, {
14840
+ style: {
14841
+ width: 70
14842
+ },
14843
+ value: val,
14844
+ onChange: function onChange(e) {
14845
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
14846
+ }
14847
+ }) : /*#__PURE__*/React.createElement("span", null, val);
14848
+ }
14849
+ }].map(fillAttrs)
14632
14850
  };
14633
14851
  };
14634
14852
 
@@ -14876,39 +15094,49 @@ var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
14876
15094
  };
14877
15095
 
14878
15096
  var GoodsModalMap = {
14879
- 'WDT_REISSUE_GOODS': WdtGoodsModal,
14880
- 'WDT_GOODS': WdtGoodsModal,
14881
- 'WDT_EXCHANGE_GOODS': WdtGoodsModal,
14882
- 'BS_E3_REISSUE_GOODS': BsE3GoodsModal,
14883
- 'BS_E3_GOODS': BsE3GoodsModal,
14884
- 'BS_E3_EXCHANGE_GOODS': BsE3GoodsModal,
14885
- 'GY_GOODS': GyGoodsModal$2,
14886
- 'GY_REISSUE_GOODS': GyGoodsModal$2,
14887
- 'JST_GOODS': JstGoodsModal,
14888
- 'JST_REISSUE_GOODS': JstGoodsModal,
14889
- 'OTHER_GOODS': GoodsModal$2
15097
+ WDT_REISSUE_GOODS: WdtGoodsModal,
15098
+ WDT_GOODS: WdtGoodsModal,
15099
+ WDT_EXCHANGE_GOODS: WdtGoodsModal,
15100
+ BS_E3_REISSUE_GOODS: BsE3GoodsModal,
15101
+ BS_E3_GOODS: BsE3GoodsModal,
15102
+ BS_E3_EXCHANGE_GOODS: BsE3GoodsModal,
15103
+ GY_GOODS: GyGoodsModal$2,
15104
+ GY_REISSUE_GOODS: GyGoodsModal$2,
15105
+ JST_GOODS: JstGoodsModal,
15106
+ JST_REISSUE_GOODS: JstGoodsModal,
15107
+ JST_RETURN_GOODS: JstGoodsModal,
15108
+ JST_EXCHANGE_GOODS: JstGoodsModal,
15109
+ OTHER_GOODS: GoodsModal$2
14890
15110
  };
14891
- var MAIN_FIELD = 'uuid';
14892
15111
  var SelectTradeGoods = function SelectTradeGoods(_ref) {
14893
15112
  var columns = _ref.columns,
14894
15113
  dataSource = _ref.dataSource,
15114
+ getDataSourceAsync = _ref.getDataSourceAsync,
14895
15115
  selectedRowKeys = _ref.selectedRowKeys,
14896
- onChangeSelectedKeys = _ref.onChangeSelectedKeys;
15116
+ onChangeSelectedKeys = _ref.onChangeSelectedKeys,
15117
+ _ref$uniqueKey = _ref.uniqueKey,
15118
+ uniqueKey = _ref$uniqueKey === void 0 ? 'uuid' : _ref$uniqueKey;
14897
15119
  var _useState = useState(false),
14898
15120
  _useState2 = _slicedToArray(_useState, 2),
14899
15121
  tradeGoodsVisible = _useState2[0],
14900
15122
  setTradeGoodsVisible = _useState2[1];
14901
15123
  var openModal = function openModal() {
14902
- return setTradeGoodsVisible(true);
15124
+ if (getDataSourceAsync) {
15125
+ getDataSourceAsync().then(function () {
15126
+ setTradeGoodsVisible(true);
15127
+ });
15128
+ } else {
15129
+ setTradeGoodsVisible(true);
15130
+ }
14903
15131
  };
14904
15132
  var closeModal = function closeModal() {
14905
15133
  return setTradeGoodsVisible(false);
14906
15134
  };
14907
15135
  var currentTradeOriginGoods = intersection(dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
14908
- return item === null || item === void 0 ? void 0 : item[MAIN_FIELD];
15136
+ return item === null || item === void 0 ? void 0 : item[uniqueKey];
14909
15137
  }), selectedRowKeys);
14910
15138
  var unCurrentTradeOriginGoods = difference(selectedRowKeys, dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
14911
- return item === null || item === void 0 ? void 0 : item[MAIN_FIELD];
15139
+ return item === null || item === void 0 ? void 0 : item[uniqueKey];
14912
15140
  }));
14913
15141
  var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
14914
15142
  console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
@@ -14927,7 +15155,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
14927
15155
  footer: null,
14928
15156
  onCancel: closeModal
14929
15157
  }, /*#__PURE__*/React.createElement(Table, {
14930
- rowKey: MAIN_FIELD,
15158
+ rowKey: uniqueKey,
14931
15159
  rowSelection: rowSelection,
14932
15160
  columns: columns,
14933
15161
  dataSource: dataSource,
@@ -14949,7 +15177,7 @@ var getButtonText = function getButtonText() {
14949
15177
  if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
14950
15178
  return '选择管易ERP商品';
14951
15179
  }
14952
- if (['JST_GOODS', 'JST_REISSUE_GOODS'].includes(type)) {
15180
+ if (['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type)) {
14953
15181
  return '选择聚水潭ERP商品';
14954
15182
  }
14955
15183
  return '选择商品';
@@ -14971,6 +15199,8 @@ var GoodItem$1 = function GoodItem(props) {
14971
15199
  maxLength = _props$maxLength === void 0 ? 20 : _props$maxLength,
14972
15200
  _props$showChangeBtn = props.showChangeBtn,
14973
15201
  showChangeBtn = _props$showChangeBtn === void 0 ? true : _props$showChangeBtn,
15202
+ _props$showErpGoodsBt = props.showErpGoodsBtn,
15203
+ showErpGoodsBtn = _props$showErpGoodsBt === void 0 ? true : _props$showErpGoodsBt,
14974
15204
  _props$showModeBtn = props.showModeBtn,
14975
15205
  showModeBtn = _props$showModeBtn === void 0 ? false : _props$showModeBtn,
14976
15206
  _props$isStrict = props.isStrict,
@@ -14989,7 +15219,12 @@ var GoodItem$1 = function GoodItem(props) {
14989
15219
  onSelect = props.onSelect,
14990
15220
  onDelete = props.onDelete,
14991
15221
  onModeChange = props.onModeChange,
14992
- tradeGoods = props.tradeGoods;
15222
+ tradeGoods = props.tradeGoods,
15223
+ form = props.form;
15224
+ var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
15225
+ // 监听聚水潭退货商品
15226
+ var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
15227
+ var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
14993
15228
  var refModal = useRef();
14994
15229
  console.debug('表格数据', value);
14995
15230
  var handleDelete = function handleDelete(record, index) {
@@ -15009,7 +15244,7 @@ var GoodItem$1 = function GoodItem(props) {
15009
15244
  // TODO: 商品订单中以选中商品
15010
15245
  var selectedGoods = useMemo(function () {
15011
15246
  return value === null || value === void 0 ? void 0 : value.map(function (v) {
15012
- return v === null || v === void 0 ? void 0 : v[MAIN_FIELD];
15247
+ return v === null || v === void 0 ? void 0 : v[uniqueKey];
15013
15248
  });
15014
15249
  }, [value]);
15015
15250
  var updateHandle = function updateHandle(val, index, columnType) {
@@ -15064,6 +15299,8 @@ var GoodItem$1 = function GoodItem(props) {
15064
15299
  case 'GY_GOODS':
15065
15300
  case 'JST_GOODS':
15066
15301
  case 'JST_REISSUE_GOODS':
15302
+ case 'JST_EXCHANGE_GOODS':
15303
+ case 'JST_RETURN_GOODS':
15067
15304
  case 'GY_REISSUE_GOODS':
15068
15305
  {
15069
15306
  columns = getColumnsMap({
@@ -15245,7 +15482,7 @@ var GoodItem$1 = function GoodItem(props) {
15245
15482
  originAmount: !isNull(retailPrice) ? Number(retailPrice) : null
15246
15483
  });
15247
15484
  });
15248
- } else if (['JST_GOODS', 'JST_REISSUE_GOODS'].includes(type)) {
15485
+ } else if (['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type)) {
15249
15486
  newList = list.map(function (item) {
15250
15487
  return {
15251
15488
  name: item.goodName,
@@ -15293,7 +15530,7 @@ var GoodItem$1 = function GoodItem(props) {
15293
15530
  var onSelectChange = function onSelectChange(newSelectedRowKeys) {
15294
15531
  setSelectedRowKeys(newSelectedRowKeys);
15295
15532
  onSelect === null || onSelect === void 0 ? void 0 : onSelect(value.filter(function (t) {
15296
- return newSelectedRowKeys.includes(t.uuid);
15533
+ return newSelectedRowKeys.includes(t[uniqueKey]);
15297
15534
  }));
15298
15535
  };
15299
15536
  var handleChangeGoods = function handleChangeGoods() {
@@ -15324,18 +15561,20 @@ var GoodItem$1 = function GoodItem(props) {
15324
15561
  }, showModeBtn && /*#__PURE__*/React.createElement(Checkbox, {
15325
15562
  checked: isStrict,
15326
15563
  onChange: handleCheckboxChange
15327
- }, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && /*#__PURE__*/React.createElement(SelectTradeGoods, {
15564
+ }, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && isShowSelectTradeGoods && /*#__PURE__*/React.createElement(SelectTradeGoods, {
15565
+ uniqueKey: uniqueKey,
15328
15566
  columns: orderColumns,
15329
15567
  dataSource: tradeGoods.originDataSource,
15568
+ getDataSourceAsync: tradeGoods.getDataSourceAsync,
15330
15569
  selectedRowKeys: selectedGoods,
15331
15570
  onChangeSelectedKeys: tradeGoods.selectedGoodsChange
15332
- }), /*#__PURE__*/React.createElement(Button, {
15571
+ }), showErpGoodsBtn && /*#__PURE__*/React.createElement(Button, {
15333
15572
  type: "link",
15334
15573
  onClick: handleChangeGoods
15335
15574
  }, getButtonText(type)), otherOperations), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
15336
15575
  columns: newColumns,
15337
15576
  dataSource: value,
15338
- rowKey: 'uuid',
15577
+ rowKey: uniqueKey,
15339
15578
  size: "small",
15340
15579
  pagination: false,
15341
15580
  scroll: {
@@ -16987,27 +17226,58 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
16987
17226
  };
16988
17227
 
16989
17228
  var componentMap$3 = {
16990
- 'WDT_EXCHANGE_GOODS': {
17229
+ WDT_EXCHANGE_GOODS: {
16991
17230
  type: 'wdt',
16992
17231
  valueKey: 'wdtExchangeGoods',
16993
17232
  returnTypeKey: 'wdtExchangeType',
16994
17233
  name: '旺店通',
16995
17234
  eventNameMap: {
16996
- changeShopCode: 'wdtChangeShopCode',
16997
- exchangeDeleteGood: 'wdtExchangeDeleteGood',
17235
+ // pubsub 事件
16998
17236
  exchangeCopyGood: 'wdtExchangeCopyGood',
16999
17237
  exchangeBackCopyGood: 'wdtExchangeBackCopyGood'
17000
17238
  }
17239
+ },
17240
+ JST_EXCHANGE_GOODS: {
17241
+ type: 'jst',
17242
+ showChooseTradeGoodsBtn: true,
17243
+ valueKey: 'jstExchangeGoods',
17244
+ returnTypeKey: 'jstExchangeType',
17245
+ systemOrder: 'jstSystemOrder',
17246
+ systemOrderNo: 'jstSystemOrderNo',
17247
+ oIdKey: 'oId',
17248
+ goodDetailsKey: 'items',
17249
+ skuIdKey: 'skuId',
17250
+ outerOiIdKey: '',
17251
+ name: '聚水潭',
17252
+ updateGoodsHandle: updateJstGoodsHandle,
17253
+ eventNameMap: {
17254
+ // pubsub 事件
17255
+ exchangeCopyGood: 'jstExchangeCopyGood',
17256
+ exchangeBackCopyGood: 'jstExchangeBackCopyGood',
17257
+ returnGoodsSysorder: 'jstReturnGoodsSysorder',
17258
+ returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
17259
+ }
17001
17260
  }
17002
17261
  };
17003
17262
  var CommonExchangeGoods = function CommonExchangeGoods(props) {
17263
+ var _componentMap$compTyp, _componentMap$compTyp4;
17004
17264
  var value = props.value,
17005
17265
  onChange = props.onChange,
17006
17266
  disabled = props.disabled,
17007
17267
  compType = props.type;
17268
+ var uniqueKey = (componentMap$3 === null || componentMap$3 === void 0 ? void 0 : (_componentMap$compTyp = componentMap$3[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.skuIdKey) || 'uuid';
17008
17269
  var valueRef = useRef({});
17270
+ // PS: 目前选择订单商品,只有聚水潭换出商品,而且聚水潭不用考虑合并单,所以这个值一直是 false
17271
+ var _useState = useState(false),
17272
+ _useState2 = _slicedToArray(_useState, 2),
17273
+ isStrict = _useState2[0],
17274
+ setIsStrict = _useState2[1];
17275
+ var _useState3 = useState([]),
17276
+ _useState4 = _slicedToArray(_useState3, 2),
17277
+ originDataSource = _useState4[0],
17278
+ setOriginDataSource = _useState4[1];
17009
17279
  useEffect(function () {
17010
- var subscription = pubsub.subscribe(componentMap$3[compType].eventNameMap.exchangeBackCopyGood, function (_, data) {
17280
+ var subscription = componentMap$3[compType].eventNameMap.exchangeBackCopyGood && pubsub.subscribe(componentMap$3[compType].eventNameMap.exchangeBackCopyGood, function (_, data) {
17011
17281
  if (disabled) return;
17012
17282
  var newValue = {
17013
17283
  shopCode: data === null || data === void 0 ? void 0 : data.shopCode
@@ -17029,26 +17299,11 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
17029
17299
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
17030
17300
  });
17031
17301
  return function () {
17032
- pubsub.unsubscribe(subscription);
17302
+ subscription && pubsub.unsubscribe(subscription);
17033
17303
  };
17034
- });
17304
+ }, []);
17035
17305
  useEffect(function () {
17036
17306
  valueRef.current = value;
17037
- pubsub.subscribeOnce(componentMap$3[compType].eventNameMap.exchangeDeleteGood, function (_, data) {
17038
- if (disabled) return;
17039
- if (value) {
17040
- var newValue = _objectSpread2({}, value);
17041
- newValue[componentMap$3[compType].valueKey] = newValue[componentMap$3[compType].valueKey].filter(function (item) {
17042
- return item.sku !== data;
17043
- });
17044
- onChange(newValue);
17045
- }
17046
- });
17047
- pubsub.subscribeOnce(componentMap$3[compType].eventNameMap.changeShopCode, function (type, data) {
17048
- onChange(_objectSpread2(_objectSpread2({}, value), {}, {
17049
- shopCode: data.shopCode
17050
- }));
17051
- });
17052
17307
  }, [value]);
17053
17308
  var changeGoodHandle = function changeGoodHandle(val) {
17054
17309
  var newValue = _objectSpread2({}, value);
@@ -17063,13 +17318,53 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
17063
17318
  };
17064
17319
  var copyGoods = function copyGoods() {
17065
17320
  var copyHandle = function copyHandle() {
17066
- pubsub.publish(componentMap$3[compType].eventNameMap.exchangeCopyGood, 'WDT_EXCHANGE_GOODS');
17321
+ pubsub.publish(componentMap$3[compType].eventNameMap.exchangeCopyGood, compType);
17067
17322
  };
17068
17323
  return /*#__PURE__*/React.createElement(Button, {
17069
17324
  type: "link",
17070
17325
  onClick: copyHandle
17071
17326
  }, "\u590D\u5236\u9000\u56DE\u5546\u54C1");
17072
17327
  };
17328
+ var selectedGoodsChange = useCallback(function (skuList) {
17329
+ var _componentMap$compTyp2, _componentMap$compTyp3, _uniqBy;
17330
+ var newValue = _objectSpread2({}, value);
17331
+ // 原订单商品
17332
+ var originTradeGoodList = originDataSource || [];
17333
+ // 当前选中的所有商品【包含了原订单+商品库】
17334
+ var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value[componentMap$3 === null || componentMap$3 === void 0 ? void 0 : (_componentMap$compTyp2 = componentMap$3[compType]) === null || _componentMap$compTyp2 === void 0 ? void 0 : _componentMap$compTyp2.valueKey]) || [];
17335
+ newValue[componentMap$3 === null || componentMap$3 === void 0 ? void 0 : (_componentMap$compTyp3 = componentMap$3[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.valueKey] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), uniqueKey)) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
17336
+ return skuList.includes(item[uniqueKey]);
17337
+ });
17338
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
17339
+ }, [value === null || value === void 0 ? void 0 : value[componentMap$3 === null || componentMap$3 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$3[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.valueKey], isStrict, originDataSource]);
17340
+ var getGoodDetails = function getGoodDetails(_ref) {
17341
+ var _componentMap$compTyp5, _componentMap$compTyp6, _order$componentMap$c, _componentMap$compTyp7;
17342
+ var returnGoodsValue = _ref.returnGoodsValue,
17343
+ mode = _ref.mode,
17344
+ sysOrderNo = _ref.sysOrderNo;
17345
+ var systemOrder = returnGoodsValue === null || returnGoodsValue === void 0 ? void 0 : returnGoodsValue[(_componentMap$compTyp5 = componentMap$3[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.systemOrder];
17346
+ var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : returnGoodsValue === null || returnGoodsValue === void 0 ? void 0 : returnGoodsValue[(_componentMap$compTyp6 = componentMap$3[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.systemOrderNo];
17347
+ var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
17348
+ return order[componentMap$3[compType].oIdKey] === systemOrderNo;
17349
+ });
17350
+ var goodDetails = jstMergeIdenticalGoods((order === null || order === void 0 ? void 0 : (_order$componentMap$c = order[componentMap$3[compType].goodDetailsKey]) === null || _order$componentMap$c === void 0 ? void 0 : _order$componentMap$c.length) ? (_componentMap$compTyp7 = componentMap$3[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.updateGoodsHandle([order], true) : []);
17351
+ var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
17352
+ return mode ? goodDetails.filter(function (goodItem) {
17353
+ return !orderNo || goodItem[componentMap$3[compType].outerOiIdKey] === orderNo;
17354
+ }) : goodDetails;
17355
+ };
17356
+ var getDataSourceAsync = function getDataSourceAsync() {
17357
+ return new Promise(function (resolve) {
17358
+ pubsub.subscribeOnce(componentMap$3[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
17359
+ resolve(data);
17360
+ setOriginDataSource(getGoodDetails({
17361
+ returnGoodsValue: data,
17362
+ mode: isStrict
17363
+ }));
17364
+ });
17365
+ pubsub.publish(componentMap$3[compType].eventNameMap.returnGoodsSysorder, compType);
17366
+ });
17367
+ };
17073
17368
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
17074
17369
  key: componentMap$3[compType].type
17075
17370
  }, props), {}, {
@@ -17079,6 +17374,12 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
17079
17374
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
17080
17375
  value: value === null || value === void 0 ? void 0 : value[componentMap$3[compType].valueKey],
17081
17376
  otherOperations: copyGoods(),
17377
+ tradeGoods: componentMap$3[compType].showChooseTradeGoodsBtn ? {
17378
+ uniqueKey: uniqueKey,
17379
+ originDataSource: originDataSource,
17380
+ getDataSourceAsync: getDataSourceAsync,
17381
+ selectedGoodsChange: selectedGoodsChange
17382
+ } : void 0,
17082
17383
  onChange: function onChange(val) {
17083
17384
  return changeGoodHandle(val);
17084
17385
  }
@@ -17360,6 +17661,7 @@ var wdtReissue = function wdtReissue(props) {
17360
17661
  var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
17361
17662
  var typeMap$2 = {
17362
17663
  JST_REISSUE_GOODS: {
17664
+ compType: '补发',
17363
17665
  key: 'jstReissueGoods',
17364
17666
  typeName: 'jstReissueType',
17365
17667
  systemOrder: 'jstSystemOrder',
@@ -17369,12 +17671,34 @@ var typeMap$2 = {
17369
17671
  updateGoodsHandle: updateJstGoodsHandle,
17370
17672
  orderTypeKey: 'orderType',
17371
17673
  oIdKey: 'oId',
17372
- outerOiIdKey: 'outerOiId',
17674
+ outerOiIdKey: '',
17373
17675
  goodDetailsKey: 'items'
17676
+ },
17677
+ JST_RETURN_GOODS: {
17678
+ compType: '退货',
17679
+ key: 'jstReturnGoods',
17680
+ typeName: 'jstReturnType',
17681
+ systemOrder: 'jstSystemOrder',
17682
+ systemOrderNo: 'jstSystemOrderNo',
17683
+ systemOrderBillType: 'jstSystemOrderBillType',
17684
+ getOrderList: jstUtils.getJstOrderListSingleton,
17685
+ updateGoodsHandle: updateJstGoodsHandle,
17686
+ orderTypeKey: 'orderType',
17687
+ oIdKey: 'oId',
17688
+ outerOiIdKey: '',
17689
+ goodDetailsKey: 'items',
17690
+ showErpGoodsBtn: false,
17691
+ eventNameMap: {
17692
+ // pubsub 事件
17693
+ exchangeCopyGood: 'jstExchangeCopyGood',
17694
+ exchangeBackCopyGood: 'jstExchangeBackCopyGood',
17695
+ returnGoodsSysorder: 'jstReturnGoodsSysorder',
17696
+ returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
17697
+ }
17374
17698
  }
17375
17699
  };
17376
17700
  var PublicReissue = function PublicReissue(props) {
17377
- var _typeMap$type32, _typeMap$type35, _typeMap$type36, _typeMap$type37, _value$typeMap$type$s6, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _typeMap$type42;
17701
+ var _typeMap$type31, _typeMap$type34, _typeMap$type35, _typeMap$type36, _typeMap$type37, _value$typeMap$type$s6, _typeMap$type38, _typeMap$type39, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43;
17378
17702
  var value = props.value,
17379
17703
  onChange = props.onChange,
17380
17704
  _props$reasonList = props.reasonList,
@@ -17397,6 +17721,30 @@ var PublicReissue = function PublicReissue(props) {
17397
17721
  }
17398
17722
  return;
17399
17723
  }, [value]);
17724
+ var valueRef = useRef({});
17725
+ useEffect(function () {
17726
+ valueRef.current = value;
17727
+ }, [value]);
17728
+ useEffect(function () {
17729
+ var subscription;
17730
+ var subscription2;
17731
+ if (typeMap$2[type].eventNameMap) {
17732
+ subscription = pubsub.subscribe(typeMap$2[type].eventNameMap.exchangeCopyGood, function () {
17733
+ var _valueRef$current, _valueRef$current2;
17734
+ pubsub.publish(typeMap$2[type].eventNameMap.exchangeBackCopyGood, {
17735
+ list: cloneDeep((valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current[typeMap$2[type].key]) || []),
17736
+ shopCode: valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.shopCode
17737
+ });
17738
+ });
17739
+ subscription2 = pubsub.subscribe(typeMap$2[type].eventNameMap.returnGoodsSysorder, function () {
17740
+ pubsub.publish(typeMap$2[type].eventNameMap.returnGoodsSysorderBack, cloneDeep(valueRef.current));
17741
+ });
17742
+ }
17743
+ return function () {
17744
+ subscription && pubsub.unsubscribe(subscription);
17745
+ subscription2 && pubsub.unsubscribe(subscription2);
17746
+ };
17747
+ }, []);
17400
17748
  var getOrderList = /*#__PURE__*/function () {
17401
17749
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
17402
17750
  var _typeMap$type4;
@@ -17471,7 +17819,7 @@ var PublicReissue = function PublicReissue(props) {
17471
17819
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
17472
17820
  return order[typeMap$2[type].oIdKey] === systemOrderNo;
17473
17821
  });
17474
- var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.updateGoodsHandle([order], true) : [];
17822
+ var goodDetails = jstMergeIdenticalGoods((order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.updateGoodsHandle([order], true) : []);
17475
17823
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
17476
17824
  return mode ? goodDetails.filter(function (goodItem) {
17477
17825
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
@@ -17508,29 +17856,26 @@ var PublicReissue = function PublicReissue(props) {
17508
17856
  }
17509
17857
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
17510
17858
  };
17511
- //显示选择商品按钮 原单换不显示选择商品
17512
- var showChangeBtn = useMemo(function () {
17513
- var _typeMap$type31;
17514
- return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrderNo]);
17515
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrderNo]]);
17859
+ //显示选择商品按钮
17860
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrderNo]);
17516
17861
  var selectedGoodsChange = useCallback(function (skuList) {
17517
- var _typeMap$type33, _typeMap$type34, _uniqBy;
17862
+ var _typeMap$type32, _typeMap$type33, _uniqBy;
17518
17863
  var newValue = _objectSpread2({}, value);
17519
17864
  // 原订单商品
17520
17865
  var originTradeGoodList = getGoodDetails({
17521
17866
  mode: isStrict
17522
17867
  }) || [];
17523
17868
  // 当前选中的所有商品【包含了原订单+商品库】
17524
- var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)]) || [];
17525
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
17869
+ var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)]) || [];
17870
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
17526
17871
  return skuList.includes(item.uuid);
17527
17872
  });
17528
17873
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
17529
- }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)], isStrict]);
17874
+ }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)], isStrict]);
17530
17875
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
17531
17876
  gutter: 8,
17532
17877
  wrap: true,
17533
- id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.key) || "".concat(Date.now())
17878
+ id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key) || "".concat(Date.now())
17534
17879
  }, /*#__PURE__*/React.createElement(Col, {
17535
17880
  className: "gutter-row",
17536
17881
  xs: {
@@ -17545,11 +17890,11 @@ var PublicReissue = function PublicReissue(props) {
17545
17890
  },
17546
17891
  disabled: disabled,
17547
17892
  allowClear: false,
17548
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.systemOrderNo)],
17893
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.systemOrderNo)],
17549
17894
  onChange: function onChange(val) {
17550
17895
  return changeSystemOrderHandle(val);
17551
17896
  },
17552
- placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
17897
+ placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.compType) || '', "\u7CFB\u7EDF\u5355")
17553
17898
  }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.showOrderInfo) || []).map(function (item) {
17554
17899
  return /*#__PURE__*/React.createElement(Select.Option, {
17555
17900
  key: item[typeMap$2[type].oIdKey],
@@ -17594,8 +17939,9 @@ var PublicReissue = function PublicReissue(props) {
17594
17939
  disabled: disabled,
17595
17940
  canUpdateNumber: showChangeBtn,
17596
17941
  showChangeBtn: showChangeBtn,
17942
+ showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.showErpGoodsBtn,
17597
17943
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
17598
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key)],
17944
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.key)],
17599
17945
  onChange: function onChange(val) {
17600
17946
  return changeGoodHandle(val);
17601
17947
  },
@@ -18871,4 +19217,4 @@ var GyReissue = function GyReissue(props) {
18871
19217
  })));
18872
19218
  };
18873
19219
 
18874
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, GyReissue, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap };
19220
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, GyReissue, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, getColumns$5 as getJstColumns };