@kmkf-fe-packages/basic-components 2.2.39-beta.1 → 2.2.39-beta.10

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
@@ -8469,7 +8469,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
8469
8469
  var map = subFields.reduce(function (cur, nxt) {
8470
8470
  return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8471
8471
  }, {});
8472
- return _defineProperty({}, nex.uniqueKey, map);
8472
+ var mapChild = subFields.reduce(function (cur, nxt) {
8473
+ return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_trajectoryApiStatus"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_").concat(nxt), getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8474
+ }, {});
8475
+ return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
8473
8476
  };
8474
8477
  };
8475
8478
  var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
@@ -8493,12 +8496,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
8493
8496
  };
8494
8497
  var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
8495
8498
  return function (nex, config) {
8496
- var _ref34;
8499
+ var _ref33;
8497
8500
  var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
8498
8501
  var map = subFields.reduce(function (cur, nxt) {
8499
8502
  return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8500
8503
  }, {});
8501
- return _ref34 = {}, _defineProperty(_ref34, nex.uniqueKey, map), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref34;
8504
+ return _ref33 = {}, _defineProperty(_ref33, nex.uniqueKey, map), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref33;
8502
8505
  };
8503
8506
  };
8504
8507
  var processJstLogistics = function processJstLogistics(getValue) {
@@ -9261,14 +9264,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9261
9264
  };
9262
9265
  var processLabel = function processLabel(getValue) {
9263
9266
  return function (nex, config) {
9264
- var _ref74;
9265
- return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
9267
+ var _ref73;
9268
+ return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
9266
9269
  };
9267
9270
  };
9268
9271
  var processMemberLevel = function processMemberLevel(getValue) {
9269
9272
  return function (nex, config) {
9270
- var _ref75;
9271
- return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
9273
+ var _ref74;
9274
+ return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
9272
9275
  };
9273
9276
  };
9274
9277
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9563,7 +9566,6 @@ var FileRender = function FileRender(_ref) {
9563
9566
  cursor: 'pointer'
9564
9567
  },
9565
9568
  onClick: function onClick(e) {
9566
- console.log('onPreview');
9567
9569
  e.preventDefault();
9568
9570
  onPreview(item);
9569
9571
  },
@@ -9659,6 +9661,9 @@ var PictureRender = function PictureRender(_ref2) {
9659
9661
  }));
9660
9662
  }));
9661
9663
  };
9664
+ var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
9665
+ return kmkfUtils.ExpressData.getInstance().getExpressNameByCode(value) || value;
9666
+ };
9662
9667
  var MultipleSelectRender = function MultipleSelectRender(_ref5) {
9663
9668
  var _ref5$value = _ref5.value,
9664
9669
  value = _ref5$value === void 0 ? [] : _ref5$value;
@@ -9693,6 +9698,16 @@ var renderMap = {
9693
9698
  });
9694
9699
  }
9695
9700
  };
9701
+ var renderSplitMap = {
9702
+ //物流轨迹-物流公司
9703
+ jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
9704
+ return LogisticsCompanyRender(value);
9705
+ },
9706
+ //退货物流-物流公司
9707
+ '0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
9708
+ return LogisticsCompanyRender(value);
9709
+ }
9710
+ };
9696
9711
  var EditPictureRender = function EditPictureRender(_ref6) {
9697
9712
  var _ref6$val = _ref6.val,
9698
9713
  val = _ref6$val === void 0 ? [] : _ref6$val,
@@ -9786,13 +9801,13 @@ var EditFileRender = function EditFileRender(_ref7) {
9786
9801
  }));
9787
9802
  };
9788
9803
  var EditRenderMap = {
9789
- INPUT: function INPUT(_ref8) {
9790
- var val = _ref8.val,
9791
- record = _ref8.record,
9792
- index = _ref8.index,
9793
- t = _ref8.t,
9794
- updateHandle = _ref8.updateHandle,
9795
- disabled = _ref8.disabled;
9804
+ INPUT: function INPUT(_ref9) {
9805
+ var val = _ref9.val,
9806
+ record = _ref9.record,
9807
+ index = _ref9.index,
9808
+ t = _ref9.t,
9809
+ updateHandle = _ref9.updateHandle,
9810
+ disabled = _ref9.disabled;
9796
9811
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
9797
9812
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
9798
9813
  style: {
@@ -9815,13 +9830,13 @@ var EditRenderMap = {
9815
9830
  }
9816
9831
  }) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
9817
9832
  },
9818
- TEXTAREA: function TEXTAREA(_ref9) {
9819
- var val = _ref9.val,
9820
- record = _ref9.record,
9821
- index = _ref9.index,
9822
- t = _ref9.t,
9823
- updateHandle = _ref9.updateHandle,
9824
- disabled = _ref9.disabled;
9833
+ TEXTAREA: function TEXTAREA(_ref10) {
9834
+ var val = _ref10.val,
9835
+ record = _ref10.record,
9836
+ index = _ref10.index,
9837
+ t = _ref10.t,
9838
+ updateHandle = _ref10.updateHandle,
9839
+ disabled = _ref10.disabled;
9825
9840
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
9826
9841
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
9827
9842
  style: {
@@ -9844,25 +9859,7 @@ var EditRenderMap = {
9844
9859
  }
9845
9860
  }) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
9846
9861
  },
9847
- PICTURE: function PICTURE(_ref10) {
9848
- var val = _ref10.val,
9849
- record = _ref10.record,
9850
- index = _ref10.index,
9851
- t = _ref10.t,
9852
- updateHandle = _ref10.updateHandle,
9853
- disabled = _ref10.disabled,
9854
- platform = _ref10.platform;
9855
- return /*#__PURE__*/React__default['default'].createElement(EditPictureRender, {
9856
- val: val,
9857
- t: t,
9858
- disabled: disabled,
9859
- index: index,
9860
- updateHandle: updateHandle,
9861
- hostUrl: hostUrl,
9862
- platform: platform
9863
- });
9864
- },
9865
- FILE: function FILE(_ref11) {
9862
+ PICTURE: function PICTURE(_ref11) {
9866
9863
  var val = _ref11.val,
9867
9864
  record = _ref11.record,
9868
9865
  index = _ref11.index,
@@ -9870,7 +9867,7 @@ var EditRenderMap = {
9870
9867
  updateHandle = _ref11.updateHandle,
9871
9868
  disabled = _ref11.disabled,
9872
9869
  platform = _ref11.platform;
9873
- return /*#__PURE__*/React__default['default'].createElement(EditFileRender, {
9870
+ return /*#__PURE__*/React__default['default'].createElement(EditPictureRender, {
9874
9871
  val: val,
9875
9872
  t: t,
9876
9873
  disabled: disabled,
@@ -9880,30 +9877,25 @@ var EditRenderMap = {
9880
9877
  platform: platform
9881
9878
  });
9882
9879
  },
9883
- RADIO: function RADIO(_ref12) {
9880
+ FILE: function FILE(_ref12) {
9884
9881
  var val = _ref12.val,
9885
9882
  record = _ref12.record,
9886
9883
  index = _ref12.index,
9887
9884
  t = _ref12.t,
9888
9885
  updateHandle = _ref12.updateHandle,
9889
9886
  disabled = _ref12.disabled,
9890
- componentDto = _ref12.componentDto;
9891
- return /*#__PURE__*/React__default['default'].createElement(ApaasSelect, _objectSpread2(_objectSpread2({
9892
- getPopupContainer: function getPopupContainer() {
9893
- return document.getElementById('subform');
9894
- }
9895
- }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9896
- value: val,
9897
- disabled: t.isEdit || disabled,
9898
- allowClear: true,
9899
- placement: "topLeft",
9900
- listHeight: 120,
9901
- onChange: function onChange(e) {
9902
- return updateHandle(e, index, t.key);
9903
- }
9904
- }));
9887
+ platform = _ref12.platform;
9888
+ return /*#__PURE__*/React__default['default'].createElement(EditFileRender, {
9889
+ val: val,
9890
+ t: t,
9891
+ disabled: disabled,
9892
+ index: index,
9893
+ updateHandle: updateHandle,
9894
+ hostUrl: hostUrl,
9895
+ platform: platform
9896
+ });
9905
9897
  },
9906
- SELECT: function SELECT(_ref13) {
9898
+ RADIO: function RADIO(_ref13) {
9907
9899
  var val = _ref13.val,
9908
9900
  record = _ref13.record,
9909
9901
  index = _ref13.index,
@@ -9926,7 +9918,7 @@ var EditRenderMap = {
9926
9918
  }
9927
9919
  }));
9928
9920
  },
9929
- CHECKBOX: function CHECKBOX(_ref14) {
9921
+ SELECT: function SELECT(_ref14) {
9930
9922
  var val = _ref14.val,
9931
9923
  record = _ref14.record,
9932
9924
  index = _ref14.index,
@@ -9934,21 +9926,22 @@ var EditRenderMap = {
9934
9926
  updateHandle = _ref14.updateHandle,
9935
9927
  disabled = _ref14.disabled,
9936
9928
  componentDto = _ref14.componentDto;
9937
- return /*#__PURE__*/React__default['default'].createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
9929
+ return /*#__PURE__*/React__default['default'].createElement(ApaasSelect, _objectSpread2(_objectSpread2({
9938
9930
  getPopupContainer: function getPopupContainer() {
9939
9931
  return document.getElementById('subform');
9940
9932
  }
9941
9933
  }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9942
9934
  value: val,
9935
+ disabled: t.isEdit || disabled,
9936
+ allowClear: true,
9943
9937
  placement: "topLeft",
9944
9938
  listHeight: 120,
9945
- disabled: t.isEdit || disabled,
9946
9939
  onChange: function onChange(e) {
9947
9940
  return updateHandle(e, index, t.key);
9948
9941
  }
9949
9942
  }));
9950
9943
  },
9951
- BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
9944
+ CHECKBOX: function CHECKBOX(_ref15) {
9952
9945
  var val = _ref15.val,
9953
9946
  record = _ref15.record,
9954
9947
  index = _ref15.index,
@@ -9969,6 +9962,59 @@ var EditRenderMap = {
9969
9962
  return updateHandle(e, index, t.key);
9970
9963
  }
9971
9964
  }));
9965
+ },
9966
+ BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref16) {
9967
+ var val = _ref16.val,
9968
+ record = _ref16.record,
9969
+ index = _ref16.index,
9970
+ t = _ref16.t,
9971
+ updateHandle = _ref16.updateHandle,
9972
+ disabled = _ref16.disabled,
9973
+ componentDto = _ref16.componentDto;
9974
+ return /*#__PURE__*/React__default['default'].createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
9975
+ getPopupContainer: function getPopupContainer() {
9976
+ return document.getElementById('subform');
9977
+ }
9978
+ }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9979
+ value: val,
9980
+ placement: "topLeft",
9981
+ listHeight: 120,
9982
+ disabled: t.isEdit || disabled,
9983
+ onChange: function onChange(e) {
9984
+ return updateHandle(e, index, t.key);
9985
+ }
9986
+ }));
9987
+ }
9988
+ };
9989
+ var EditSplitRenderMap = {
9990
+ jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
9991
+ var val = _ref17.val,
9992
+ index = _ref17.index,
9993
+ t = _ref17.t,
9994
+ updateHandle = _ref17.updateHandle,
9995
+ disabled = _ref17.disabled;
9996
+ return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
9997
+ value: val,
9998
+ onChange: function onChange(e) {
9999
+ return updateHandle(e, index, t.key);
10000
+ },
10001
+ disabled: disabled
10002
+ });
10003
+ },
10004
+ //退货物流-物流公司
10005
+ '0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
10006
+ var val = _ref18.val,
10007
+ index = _ref18.index,
10008
+ t = _ref18.t,
10009
+ updateHandle = _ref18.updateHandle,
10010
+ disabled = _ref18.disabled;
10011
+ return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
10012
+ value: val,
10013
+ onChange: function onChange(e) {
10014
+ return updateHandle(e, index, t.key);
10015
+ },
10016
+ disabled: disabled
10017
+ });
9972
10018
  }
9973
10019
  };
9974
10020
 
@@ -9996,6 +10042,7 @@ function HoverTableRowDeleteIcon(_ref) {
9996
10042
  }
9997
10043
 
9998
10044
  var WidgetMap = {
10045
+ TRADE_ID_INPUT: 'tradeId',
9999
10046
  INPUT: 'input',
10000
10047
  TEXTAREA: 'textarea',
10001
10048
  PICTURE: 'picture',
@@ -10098,7 +10145,6 @@ var SubForm = function SubForm(props) {
10098
10145
  return deleteHandle(record.uuid);
10099
10146
  }
10100
10147
  });
10101
- // return <div style={{ width: 25 }}>{index + 1}</div>;
10102
10148
  }
10103
10149
  }].concat(_toConsumableArray(newTableHeader.map(function (t) {
10104
10150
  return {
@@ -10111,27 +10157,39 @@ var SubForm = function SubForm(props) {
10111
10157
  ellipsis: true,
10112
10158
  width: t.width,
10113
10159
  render: function render(val, record, index) {
10114
- return EditRenderMap[t.workOrderComponentType] ? EditRenderMap[t.workOrderComponentType]({
10115
- val: val,
10116
- record: record,
10117
- index: index,
10118
- t: t,
10119
- updateHandle: updateHandle,
10120
- disabled: disabled,
10121
- componentDto: componentDtoList.find(function (item) {
10122
- return item.uniqueKey === t.key;
10123
- }),
10124
- platform: platform
10125
- }) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
10126
- style: {
10127
- width: '100%'
10128
- },
10129
- value: val,
10130
- onChange: function onChange(e) {
10131
- var _e$target;
10132
- return updateHandle(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value, index, t.key);
10133
- }
10134
- });
10160
+ if (EditRenderMap[t.workOrderComponentType]) {
10161
+ return EditRenderMap[t.workOrderComponentType]({
10162
+ val: val,
10163
+ record: record,
10164
+ index: index,
10165
+ t: t,
10166
+ updateHandle: updateHandle,
10167
+ disabled: disabled,
10168
+ componentDto: componentDtoList.find(function (item) {
10169
+ return item.uniqueKey === t.key;
10170
+ }),
10171
+ platform: platform
10172
+ });
10173
+ } else if (EditSplitRenderMap[t.key]) {
10174
+ return EditSplitRenderMap[t.key]({
10175
+ val: val,
10176
+ index: index,
10177
+ t: t,
10178
+ updateHandle: updateHandle,
10179
+ disabled: disabled
10180
+ });
10181
+ } else {
10182
+ return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
10183
+ style: {
10184
+ width: '100%'
10185
+ },
10186
+ value: val,
10187
+ onChange: function onChange(e) {
10188
+ var _e$target;
10189
+ return updateHandle(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value, index, t.key);
10190
+ }
10191
+ });
10192
+ }
10135
10193
  }
10136
10194
  };
10137
10195
  })), [disabled ? {} : {
@@ -10181,6 +10239,10 @@ var SubForm = function SubForm(props) {
10181
10239
  item.render = function (val) {
10182
10240
  return renderMap[t.workOrderComponentType](val, platform);
10183
10241
  };
10242
+ } else if (renderSplitMap[t.key]) {
10243
+ item.render = function (val) {
10244
+ return renderSplitMap[t.key](val);
10245
+ };
10184
10246
  }
10185
10247
  return item;
10186
10248
  })));
@@ -10195,7 +10257,11 @@ var SubForm = function SubForm(props) {
10195
10257
  if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
10196
10258
  item.defaultValue = [];
10197
10259
  }
10198
- prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
10260
+ if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
10261
+ prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
10262
+ } else {
10263
+ prv["".concat(next.key)] = item;
10264
+ }
10199
10265
  return prv;
10200
10266
  }, {});
10201
10267
  }, [newTableHeader]);
@@ -10212,7 +10278,7 @@ var SubForm = function SubForm(props) {
10212
10278
  }).map(function (item) {
10213
10279
  return {
10214
10280
  label: item.name,
10215
- value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
10281
+ value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
10216
10282
  };
10217
10283
  });
10218
10284
  setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
@@ -10254,6 +10320,7 @@ var SubForm = function SubForm(props) {
10254
10320
  _ref2$componentList,
10255
10321
  componentList,
10256
10322
  params,
10323
+ queryComponents,
10257
10324
  res,
10258
10325
  data,
10259
10326
  success,
@@ -10286,15 +10353,25 @@ var SubForm = function SubForm(props) {
10286
10353
  }]
10287
10354
  };
10288
10355
  if (selectKey && inputValue) {
10289
- params.queryComponents = [{
10356
+ queryComponents = [{
10290
10357
  key: 'flowStatus',
10291
10358
  symbol: 'in',
10292
10359
  value: flowStatus
10293
- }, {
10294
- key: selectKey,
10295
- symbol: 'in',
10296
- value: [inputValue]
10297
10360
  }];
10361
+ if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
10362
+ queryComponents.push({
10363
+ key: selectKey,
10364
+ symbol: 'like',
10365
+ value: inputValue
10366
+ });
10367
+ } else {
10368
+ queryComponents.push({
10369
+ key: selectKey,
10370
+ symbol: 'in',
10371
+ value: [inputValue]
10372
+ });
10373
+ }
10374
+ params.queryComponents = queryComponents;
10298
10375
  }
10299
10376
  _context.next = 7;
10300
10377
  return extendRequest('/qy/view/workOrderList', {
@@ -10490,7 +10567,21 @@ var SubForm = function SubForm(props) {
10490
10567
  placement: "bottom",
10491
10568
  visible: open,
10492
10569
  onVisibleChange: handleOpenChange
10493
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
10570
+ }, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
10571
+ value: undefined,
10572
+ onChange: function onChange(val) {
10573
+ onChangeInput(val);
10574
+ },
10575
+ placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
10576
+ showSearch: true,
10577
+ allowClear: true,
10578
+ style: {
10579
+ width: '180px'
10580
+ },
10581
+ filterOption: function filterOption(input, option) {
10582
+ return option.label.includes(input);
10583
+ }
10584
+ }) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
10494
10585
  placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
10495
10586
  allowClear: true,
10496
10587
  onChange: function onChange(e) {
@@ -19145,7 +19236,8 @@ var getColumns$2 = function getColumns(_ref) {
19145
19236
  title: "\u8D60\u54C1\u65B9\u5F0F",
19146
19237
  align: 'center',
19147
19238
  ellipsis: true,
19148
- width: 100
19239
+ width: 100,
19240
+ render: renderGiftType
19149
19241
  }, {
19150
19242
  dataIndex: 'unitName',
19151
19243
  title: "\u57FA\u672C\u5355\u4F4D",
@@ -21017,7 +21109,12 @@ var getColumns$6 = function getColumns(_ref) {
21017
21109
  render: renderTextEllipsis
21018
21110
  }, {
21019
21111
  dataIndex: 'skuId',
21020
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
21112
+ title: "\u5E73\u53F0\u89C4\u683CID",
21113
+ width: 170,
21114
+ render: renderTextEllipsis
21115
+ }, {
21116
+ dataIndex: 'outerSkuId',
21117
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21021
21118
  width: 170,
21022
21119
  render: renderTextEllipsis
21023
21120
  }, {
@@ -21124,7 +21221,12 @@ var getColumns$6 = function getColumns(_ref) {
21124
21221
  render: renderTextEllipsis
21125
21222
  }, {
21126
21223
  dataIndex: 'skuId',
21127
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
21224
+ title: "\u5E73\u53F0\u89C4\u683CID",
21225
+ width: 170,
21226
+ render: renderTextEllipsis
21227
+ }, {
21228
+ dataIndex: 'outerSkuId',
21229
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21128
21230
  width: 170,
21129
21231
  render: renderTextEllipsis
21130
21232
  }, {
@@ -22413,11 +22515,38 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
22413
22515
  var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
22414
22516
  onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
22415
22517
  };
22416
- var rowSelection = {
22518
+ var rowSelection = _objectSpread2({
22417
22519
  selectedRowKeys: selectedRowKeys,
22418
22520
  fixed: true,
22419
22521
  onChange: handleChangeSelectedKeys
22420
- };
22522
+ }, type === 'JST_REISSUE_GOODS' ? {
22523
+ getCheckboxProps: function getCheckboxProps(record) {
22524
+ var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
22525
+ return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
22526
+ }).map(function (item) {
22527
+ return item === null || item === void 0 ? void 0 : item.skuId;
22528
+ });
22529
+ var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
22530
+ return {
22531
+ disabled: isDisabled
22532
+ };
22533
+ },
22534
+ renderCell: function renderCell(_, record, __, originNode) {
22535
+ var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
22536
+ return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
22537
+ }).map(function (item) {
22538
+ return item === null || item === void 0 ? void 0 : item.skuId;
22539
+ });
22540
+ var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
22541
+ if (isDisabled) {
22542
+ return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
22543
+ title: "\u5DF2\u6DFB\u52A0\u5728\u7EC4\u4EF6\u4E2D\uFF0C\u76F8\u540C\u5546\u54C1\u4E0D\u80FD\u91CD\u590D\u9009\u62E9"
22544
+ }, originNode);
22545
+ } else {
22546
+ return originNode;
22547
+ }
22548
+ }
22549
+ } : {});
22421
22550
  var buttonTextMapping = {
22422
22551
  SKX_GOODS: '选择发货单商品',
22423
22552
  SKX_RETURN_GOODS: '选择退货单商品'
@@ -24030,7 +24159,10 @@ var index$2 = (function (props) {
24030
24159
  case 0:
24031
24160
  wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
24032
24161
  var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
24033
- return (item.srcTid || '').split(',').includes(orderNo);
24162
+ var _split;
24163
+ return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
24164
+ return tid.indexOf(orderNo) > -1;
24165
+ });
24034
24166
  });
24035
24167
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
24036
24168
  orders: trades,
@@ -25140,7 +25272,10 @@ var processWdtOrders = function processWdtOrders(_ref2) {
25140
25272
  var data = _ref2.data,
25141
25273
  orderNo = _ref2.orderNo;
25142
25274
  var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25143
- return (item.srcTid || '').split(',').includes(orderNo);
25275
+ var _split;
25276
+ return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
25277
+ return tid.indexOf(orderNo) > -1;
25278
+ });
25144
25279
  });
25145
25280
  return trades;
25146
25281
  };
@@ -26261,8 +26396,10 @@ var typeMap$2 = {
26261
26396
  goodDetailsKey: 'items',
26262
26397
  mergeIdenticalGoods: kmkfUtils.jstMergeIdenticalGoods,
26263
26398
  uniqueKey: 'uuid',
26264
- isShowSelectTradeGoods: true
26399
+ isShowSelectTradeGoods: true,
26400
+ isSelectTradeGoodsMerge: true //为true时,选择订单商品时,合并相同商品
26265
26401
  },
26402
+
26266
26403
  JST_RETURN_GOODS: {
26267
26404
  compType: '退货',
26268
26405
  key: 'jstReturnGoods',
@@ -26320,7 +26457,7 @@ var typeMap$2 = {
26320
26457
  }
26321
26458
  };
26322
26459
  var PublicReissue = function PublicReissue(props) {
26323
- var _typeMap$type34, _typeMap$type40, _typeMap$type41, _typeMap$type42, _typeMap$type43, _value$typeMap$type$s8, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _value$typeMap$type$s9, _typeMap$type51, _typeMap$type52, _typeMap$type53, _typeMap$type54;
26460
+ var _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56;
26324
26461
  var value = props.value,
26325
26462
  onChange = props.onChange,
26326
26463
  _props$reasonList = props.reasonList,
@@ -26437,7 +26574,7 @@ var PublicReissue = function PublicReissue(props) {
26437
26574
  }))));
26438
26575
  };
26439
26576
  var getGoodDetails = function getGoodDetails(_ref4) {
26440
- var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
26577
+ var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
26441
26578
  var mode = _ref4.mode,
26442
26579
  sysOrderNo = _ref4.sysOrderNo,
26443
26580
  _ref4$isAllOrders = _ref4.isAllOrders,
@@ -26465,7 +26602,8 @@ var PublicReissue = function PublicReissue(props) {
26465
26602
  var _order$typeMap$type$g;
26466
26603
  return 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;
26467
26604
  });
26468
- var goodDetails = hasGoodDetails ? !isAllOrders && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest)) : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest) : [];
26605
+ console.log(type, orders, (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest));
26606
+ var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
26469
26607
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
26470
26608
  var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
26471
26609
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
@@ -26473,30 +26611,30 @@ var PublicReissue = function PublicReissue(props) {
26473
26611
  return list;
26474
26612
  };
26475
26613
  var changeGoodHandle = function changeGoodHandle(val) {
26476
- var _typeMap$type23;
26614
+ var _typeMap$type25;
26477
26615
  var newValue = _objectSpread2({}, value);
26478
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)] = val || [];
26616
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)] = val || [];
26479
26617
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
26480
26618
  };
26481
26619
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
26482
- var _typeMap$type24, _typeMap$type25, _value$typeMap$type$t2, _typeMap$type30, _value$typeMap$type$t3, _typeMap$type32;
26620
+ var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
26483
26621
  var newValue = _objectSpread2({}, value);
26484
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrderNo)] = val;
26485
- if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderBillType) {
26486
- var _value$typeMap$type$s7, _typeMap$type26, _typeMap$type28, _typeMap$type29;
26487
- var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
26622
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)] = val;
26623
+ if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderBillType) {
26624
+ var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
26625
+ var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
26488
26626
  var targetOrder = val && orders.find(function (oItem) {
26489
- var _typeMap$type27;
26490
- return oItem[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.oIdKey] === val;
26627
+ var _typeMap$type29;
26628
+ return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
26491
26629
  });
26492
- newValue[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.orderTypeKey];
26630
+ newValue[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.orderTypeKey];
26493
26631
  }
26494
- if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
26495
- var _typeMap$type31;
26496
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.key)] = [];
26497
- } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
26632
+ if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
26498
26633
  var _typeMap$type33;
26499
- 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)] = getGoodDetails({
26634
+ 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)] = [];
26635
+ } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
26636
+ var _typeMap$type35;
26637
+ newValue["".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)] = getGoodDetails({
26500
26638
  mode: isStrict,
26501
26639
  sysOrderNo: val
26502
26640
  });
@@ -26504,27 +26642,27 @@ var PublicReissue = function PublicReissue(props) {
26504
26642
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
26505
26643
  };
26506
26644
  //显示选择商品按钮
26507
- var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.systemOrderNo]);
26645
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.systemOrderNo]);
26508
26646
  var selectedGoodsChange = React.useCallback(function (skuList) {
26509
- var _typeMap$type35, _typeMap$type36, _typeMap$type37, _uniqBy, _typeMap$type38;
26647
+ var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
26510
26648
  var newValue = _objectSpread2({}, value);
26511
26649
  // 原订单商品
26512
26650
  var originTradeGoodList = getGoodDetails({
26513
26651
  mode: isStrict,
26514
- isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.isShowSelectTradeGoods
26652
+ isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.isShowSelectTradeGoods
26515
26653
  }) || [];
26516
26654
  // 当前选中的所有商品【包含了原订单+商品库】
26517
- var currentSelectGoodList = (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.key)]) || [];
26518
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
26519
- var _typeMap$type39;
26520
- return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid']);
26655
+ var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)]) || [];
26656
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
26657
+ var _typeMap$type41;
26658
+ return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.uniqueKey) || 'uuid']);
26521
26659
  });
26522
26660
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
26523
- }, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.key)], isStrict]);
26661
+ }, [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)], isStrict]);
26524
26662
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
26525
26663
  gutter: 8,
26526
26664
  wrap: true,
26527
- id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key) || "".concat(Date.now())
26665
+ id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.key) || "".concat(Date.now())
26528
26666
  }, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
26529
26667
  className: "gutter-row",
26530
26668
  xs: {
@@ -26540,12 +26678,12 @@ var PublicReissue = function PublicReissue(props) {
26540
26678
  },
26541
26679
  disabled: disabled,
26542
26680
  allowClear: false,
26543
- 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.systemOrderNo)],
26681
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrderNo)],
26544
26682
  onChange: function onChange(val) {
26545
26683
  return changeSystemOrderHandle(val);
26546
26684
  },
26547
- placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.compType) || '', "\u7CFB\u7EDF\u5355")
26548
- }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
26685
+ placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.compType) || '', "\u7CFB\u7EDF\u5355")
26686
+ }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
26549
26687
  return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
26550
26688
  key: item[typeMap$2[type].oIdKey],
26551
26689
  value: item[typeMap$2[type].oIdKey],
@@ -26567,11 +26705,11 @@ var PublicReissue = function PublicReissue(props) {
26567
26705
  disabled: isSettingConfig ? !isSettingConfig : disabled,
26568
26706
  allowClear: false,
26569
26707
  options: reasonList,
26570
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.typeName)],
26708
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.typeName)],
26571
26709
  onChange: function onChange(val) {
26572
26710
  return changeTypeHandle(val);
26573
26711
  }
26574
- })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
26712
+ })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
26575
26713
  className: "gutter-row",
26576
26714
  xs: {
26577
26715
  span: 11
@@ -26580,7 +26718,7 @@ var PublicReissue = function PublicReissue(props) {
26580
26718
  span: 6
26581
26719
  }
26582
26720
  }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
26583
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType)],
26721
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.systemOrderBillType)],
26584
26722
  disabled: disabled,
26585
26723
  readOnly: true
26586
26724
  }))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
@@ -26591,25 +26729,25 @@ var PublicReissue = function PublicReissue(props) {
26591
26729
  canUpdateNumber: showChangeBtn,
26592
26730
  hasSelectedSystemOrder: showChangeBtn,
26593
26731
  // showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
26594
- alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.alwaysShowChooseErpGoodsBtn,
26732
+ alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.alwaysShowChooseErpGoodsBtn,
26595
26733
  // showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
26596
26734
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
26597
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.key)],
26735
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.key)],
26598
26736
  onChange: function onChange(val) {
26599
26737
  return changeGoodHandle(val);
26600
26738
  },
26601
26739
  onModeChange: handleModeChange,
26602
26740
  showModeBtn: false,
26603
26741
  isStrict: isStrict,
26604
- isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.isShowSelectTradeGoods,
26605
- systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
26606
- selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.systemOrderNo)]] : [],
26742
+ isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
26743
+ systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
26744
+ selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrderNo)]] : [],
26607
26745
  tradeGoods: {
26608
26746
  originDataSource: getGoodDetails({
26609
26747
  mode: isStrict,
26610
- isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.isShowSelectTradeGoods
26748
+ isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods
26611
26749
  }),
26612
- uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.uniqueKey) || 'uuid',
26750
+ uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.uniqueKey) || 'uuid',
26613
26751
  selectedGoodsChange: selectedGoodsChange
26614
26752
  }
26615
26753
  })));
@@ -28996,3 +29134,4 @@ exports.getWdtColumns = getColumns$2;
28996
29134
  exports.getWlnColumns = getColumns$3;
28997
29135
  exports.orderSubFormConstants = orderSubFormConstants;
28998
29136
  exports.renderMap = renderMap;
29137
+ exports.renderSplitMap = renderSplitMap;