@kmkf-fe-packages/basic-components 2.2.39-beta.0 → 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.esm.js CHANGED
@@ -8454,7 +8454,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
8454
8454
  var map = subFields.reduce(function (cur, nxt) {
8455
8455
  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))));
8456
8456
  }, {});
8457
- return _defineProperty({}, nex.uniqueKey, map);
8457
+ var mapChild = subFields.reduce(function (cur, nxt) {
8458
+ 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))));
8459
+ }, {});
8460
+ return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
8458
8461
  };
8459
8462
  };
8460
8463
  var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
@@ -8478,12 +8481,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
8478
8481
  };
8479
8482
  var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
8480
8483
  return function (nex, config) {
8481
- var _ref34;
8484
+ var _ref33;
8482
8485
  var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
8483
8486
  var map = subFields.reduce(function (cur, nxt) {
8484
8487
  return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8485
8488
  }, {});
8486
- 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;
8489
+ 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;
8487
8490
  };
8488
8491
  };
8489
8492
  var processJstLogistics = function processJstLogistics(getValue) {
@@ -9246,14 +9249,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9246
9249
  };
9247
9250
  var processLabel = function processLabel(getValue) {
9248
9251
  return function (nex, config) {
9249
- var _ref74;
9250
- 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;
9252
+ var _ref73;
9253
+ 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;
9251
9254
  };
9252
9255
  };
9253
9256
  var processMemberLevel = function processMemberLevel(getValue) {
9254
9257
  return function (nex, config) {
9255
- var _ref75;
9256
- 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;
9258
+ var _ref74;
9259
+ 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;
9257
9260
  };
9258
9261
  };
9259
9262
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9548,7 +9551,6 @@ var FileRender = function FileRender(_ref) {
9548
9551
  cursor: 'pointer'
9549
9552
  },
9550
9553
  onClick: function onClick(e) {
9551
- console.log('onPreview');
9552
9554
  e.preventDefault();
9553
9555
  onPreview(item);
9554
9556
  },
@@ -9644,6 +9646,9 @@ var PictureRender = function PictureRender(_ref2) {
9644
9646
  }));
9645
9647
  }));
9646
9648
  };
9649
+ var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
9650
+ return ExpressData.getInstance().getExpressNameByCode(value) || value;
9651
+ };
9647
9652
  var MultipleSelectRender = function MultipleSelectRender(_ref5) {
9648
9653
  var _ref5$value = _ref5.value,
9649
9654
  value = _ref5$value === void 0 ? [] : _ref5$value;
@@ -9678,6 +9683,16 @@ var renderMap = {
9678
9683
  });
9679
9684
  }
9680
9685
  };
9686
+ var renderSplitMap = {
9687
+ //物流轨迹-物流公司
9688
+ jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
9689
+ return LogisticsCompanyRender(value);
9690
+ },
9691
+ //退货物流-物流公司
9692
+ '0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
9693
+ return LogisticsCompanyRender(value);
9694
+ }
9695
+ };
9681
9696
  var EditPictureRender = function EditPictureRender(_ref6) {
9682
9697
  var _ref6$val = _ref6.val,
9683
9698
  val = _ref6$val === void 0 ? [] : _ref6$val,
@@ -9771,13 +9786,13 @@ var EditFileRender = function EditFileRender(_ref7) {
9771
9786
  }));
9772
9787
  };
9773
9788
  var EditRenderMap = {
9774
- INPUT: function INPUT(_ref8) {
9775
- var val = _ref8.val,
9776
- record = _ref8.record,
9777
- index = _ref8.index,
9778
- t = _ref8.t,
9779
- updateHandle = _ref8.updateHandle,
9780
- disabled = _ref8.disabled;
9789
+ INPUT: function INPUT(_ref9) {
9790
+ var val = _ref9.val,
9791
+ record = _ref9.record,
9792
+ index = _ref9.index,
9793
+ t = _ref9.t,
9794
+ updateHandle = _ref9.updateHandle,
9795
+ disabled = _ref9.disabled;
9781
9796
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
9782
9797
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
9783
9798
  style: {
@@ -9800,13 +9815,13 @@ var EditRenderMap = {
9800
9815
  }
9801
9816
  }) : /*#__PURE__*/React.createElement("div", null, val);
9802
9817
  },
9803
- TEXTAREA: function TEXTAREA(_ref9) {
9804
- var val = _ref9.val,
9805
- record = _ref9.record,
9806
- index = _ref9.index,
9807
- t = _ref9.t,
9808
- updateHandle = _ref9.updateHandle,
9809
- disabled = _ref9.disabled;
9818
+ TEXTAREA: function TEXTAREA(_ref10) {
9819
+ var val = _ref10.val,
9820
+ record = _ref10.record,
9821
+ index = _ref10.index,
9822
+ t = _ref10.t,
9823
+ updateHandle = _ref10.updateHandle,
9824
+ disabled = _ref10.disabled;
9810
9825
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
9811
9826
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React.createElement(InputNumber, {
9812
9827
  style: {
@@ -9829,25 +9844,7 @@ var EditRenderMap = {
9829
9844
  }
9830
9845
  }) : /*#__PURE__*/React.createElement("div", null, val);
9831
9846
  },
9832
- PICTURE: function PICTURE(_ref10) {
9833
- var val = _ref10.val,
9834
- record = _ref10.record,
9835
- index = _ref10.index,
9836
- t = _ref10.t,
9837
- updateHandle = _ref10.updateHandle,
9838
- disabled = _ref10.disabled,
9839
- platform = _ref10.platform;
9840
- return /*#__PURE__*/React.createElement(EditPictureRender, {
9841
- val: val,
9842
- t: t,
9843
- disabled: disabled,
9844
- index: index,
9845
- updateHandle: updateHandle,
9846
- hostUrl: hostUrl,
9847
- platform: platform
9848
- });
9849
- },
9850
- FILE: function FILE(_ref11) {
9847
+ PICTURE: function PICTURE(_ref11) {
9851
9848
  var val = _ref11.val,
9852
9849
  record = _ref11.record,
9853
9850
  index = _ref11.index,
@@ -9855,7 +9852,7 @@ var EditRenderMap = {
9855
9852
  updateHandle = _ref11.updateHandle,
9856
9853
  disabled = _ref11.disabled,
9857
9854
  platform = _ref11.platform;
9858
- return /*#__PURE__*/React.createElement(EditFileRender, {
9855
+ return /*#__PURE__*/React.createElement(EditPictureRender, {
9859
9856
  val: val,
9860
9857
  t: t,
9861
9858
  disabled: disabled,
@@ -9865,30 +9862,25 @@ var EditRenderMap = {
9865
9862
  platform: platform
9866
9863
  });
9867
9864
  },
9868
- RADIO: function RADIO(_ref12) {
9865
+ FILE: function FILE(_ref12) {
9869
9866
  var val = _ref12.val,
9870
9867
  record = _ref12.record,
9871
9868
  index = _ref12.index,
9872
9869
  t = _ref12.t,
9873
9870
  updateHandle = _ref12.updateHandle,
9874
9871
  disabled = _ref12.disabled,
9875
- componentDto = _ref12.componentDto;
9876
- return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({
9877
- getPopupContainer: function getPopupContainer() {
9878
- return document.getElementById('subform');
9879
- }
9880
- }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9881
- value: val,
9882
- disabled: t.isEdit || disabled,
9883
- allowClear: true,
9884
- placement: "topLeft",
9885
- listHeight: 120,
9886
- onChange: function onChange(e) {
9887
- return updateHandle(e, index, t.key);
9888
- }
9889
- }));
9872
+ platform = _ref12.platform;
9873
+ return /*#__PURE__*/React.createElement(EditFileRender, {
9874
+ val: val,
9875
+ t: t,
9876
+ disabled: disabled,
9877
+ index: index,
9878
+ updateHandle: updateHandle,
9879
+ hostUrl: hostUrl,
9880
+ platform: platform
9881
+ });
9890
9882
  },
9891
- SELECT: function SELECT(_ref13) {
9883
+ RADIO: function RADIO(_ref13) {
9892
9884
  var val = _ref13.val,
9893
9885
  record = _ref13.record,
9894
9886
  index = _ref13.index,
@@ -9911,7 +9903,7 @@ var EditRenderMap = {
9911
9903
  }
9912
9904
  }));
9913
9905
  },
9914
- CHECKBOX: function CHECKBOX(_ref14) {
9906
+ SELECT: function SELECT(_ref14) {
9915
9907
  var val = _ref14.val,
9916
9908
  record = _ref14.record,
9917
9909
  index = _ref14.index,
@@ -9919,21 +9911,22 @@ var EditRenderMap = {
9919
9911
  updateHandle = _ref14.updateHandle,
9920
9912
  disabled = _ref14.disabled,
9921
9913
  componentDto = _ref14.componentDto;
9922
- return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
9914
+ return /*#__PURE__*/React.createElement(ApaasSelect, _objectSpread2(_objectSpread2({
9923
9915
  getPopupContainer: function getPopupContainer() {
9924
9916
  return document.getElementById('subform');
9925
9917
  }
9926
9918
  }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9927
9919
  value: val,
9920
+ disabled: t.isEdit || disabled,
9921
+ allowClear: true,
9928
9922
  placement: "topLeft",
9929
9923
  listHeight: 120,
9930
- disabled: t.isEdit || disabled,
9931
9924
  onChange: function onChange(e) {
9932
9925
  return updateHandle(e, index, t.key);
9933
9926
  }
9934
9927
  }));
9935
9928
  },
9936
- BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
9929
+ CHECKBOX: function CHECKBOX(_ref15) {
9937
9930
  var val = _ref15.val,
9938
9931
  record = _ref15.record,
9939
9932
  index = _ref15.index,
@@ -9954,6 +9947,59 @@ var EditRenderMap = {
9954
9947
  return updateHandle(e, index, t.key);
9955
9948
  }
9956
9949
  }));
9950
+ },
9951
+ BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref16) {
9952
+ var val = _ref16.val,
9953
+ record = _ref16.record,
9954
+ index = _ref16.index,
9955
+ t = _ref16.t,
9956
+ updateHandle = _ref16.updateHandle,
9957
+ disabled = _ref16.disabled,
9958
+ componentDto = _ref16.componentDto;
9959
+ return /*#__PURE__*/React.createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
9960
+ getPopupContainer: function getPopupContainer() {
9961
+ return document.getElementById('subform');
9962
+ }
9963
+ }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9964
+ value: val,
9965
+ placement: "topLeft",
9966
+ listHeight: 120,
9967
+ disabled: t.isEdit || disabled,
9968
+ onChange: function onChange(e) {
9969
+ return updateHandle(e, index, t.key);
9970
+ }
9971
+ }));
9972
+ }
9973
+ };
9974
+ var EditSplitRenderMap = {
9975
+ jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
9976
+ var val = _ref17.val,
9977
+ index = _ref17.index,
9978
+ t = _ref17.t,
9979
+ updateHandle = _ref17.updateHandle,
9980
+ disabled = _ref17.disabled;
9981
+ return /*#__PURE__*/React.createElement(ApaasLogistics, {
9982
+ value: val,
9983
+ onChange: function onChange(e) {
9984
+ return updateHandle(e, index, t.key);
9985
+ },
9986
+ disabled: disabled
9987
+ });
9988
+ },
9989
+ //退货物流-物流公司
9990
+ '0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
9991
+ var val = _ref18.val,
9992
+ index = _ref18.index,
9993
+ t = _ref18.t,
9994
+ updateHandle = _ref18.updateHandle,
9995
+ disabled = _ref18.disabled;
9996
+ return /*#__PURE__*/React.createElement(ApaasLogistics, {
9997
+ value: val,
9998
+ onChange: function onChange(e) {
9999
+ return updateHandle(e, index, t.key);
10000
+ },
10001
+ disabled: disabled
10002
+ });
9957
10003
  }
9958
10004
  };
9959
10005
 
@@ -9981,6 +10027,7 @@ function HoverTableRowDeleteIcon(_ref) {
9981
10027
  }
9982
10028
 
9983
10029
  var WidgetMap = {
10030
+ TRADE_ID_INPUT: 'tradeId',
9984
10031
  INPUT: 'input',
9985
10032
  TEXTAREA: 'textarea',
9986
10033
  PICTURE: 'picture',
@@ -10083,7 +10130,6 @@ var SubForm = function SubForm(props) {
10083
10130
  return deleteHandle(record.uuid);
10084
10131
  }
10085
10132
  });
10086
- // return <div style={{ width: 25 }}>{index + 1}</div>;
10087
10133
  }
10088
10134
  }].concat(_toConsumableArray(newTableHeader.map(function (t) {
10089
10135
  return {
@@ -10096,27 +10142,39 @@ var SubForm = function SubForm(props) {
10096
10142
  ellipsis: true,
10097
10143
  width: t.width,
10098
10144
  render: function render(val, record, index) {
10099
- return EditRenderMap[t.workOrderComponentType] ? EditRenderMap[t.workOrderComponentType]({
10100
- val: val,
10101
- record: record,
10102
- index: index,
10103
- t: t,
10104
- updateHandle: updateHandle,
10105
- disabled: disabled,
10106
- componentDto: componentDtoList.find(function (item) {
10107
- return item.uniqueKey === t.key;
10108
- }),
10109
- platform: platform
10110
- }) : /*#__PURE__*/React.createElement(Input, {
10111
- style: {
10112
- width: '100%'
10113
- },
10114
- value: val,
10115
- onChange: function onChange(e) {
10116
- var _e$target;
10117
- 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);
10118
- }
10119
- });
10145
+ if (EditRenderMap[t.workOrderComponentType]) {
10146
+ return EditRenderMap[t.workOrderComponentType]({
10147
+ val: val,
10148
+ record: record,
10149
+ index: index,
10150
+ t: t,
10151
+ updateHandle: updateHandle,
10152
+ disabled: disabled,
10153
+ componentDto: componentDtoList.find(function (item) {
10154
+ return item.uniqueKey === t.key;
10155
+ }),
10156
+ platform: platform
10157
+ });
10158
+ } else if (EditSplitRenderMap[t.key]) {
10159
+ return EditSplitRenderMap[t.key]({
10160
+ val: val,
10161
+ index: index,
10162
+ t: t,
10163
+ updateHandle: updateHandle,
10164
+ disabled: disabled
10165
+ });
10166
+ } else {
10167
+ return /*#__PURE__*/React.createElement(Input, {
10168
+ style: {
10169
+ width: '100%'
10170
+ },
10171
+ value: val,
10172
+ onChange: function onChange(e) {
10173
+ var _e$target;
10174
+ 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);
10175
+ }
10176
+ });
10177
+ }
10120
10178
  }
10121
10179
  };
10122
10180
  })), [disabled ? {} : {
@@ -10166,6 +10224,10 @@ var SubForm = function SubForm(props) {
10166
10224
  item.render = function (val) {
10167
10225
  return renderMap[t.workOrderComponentType](val, platform);
10168
10226
  };
10227
+ } else if (renderSplitMap[t.key]) {
10228
+ item.render = function (val) {
10229
+ return renderSplitMap[t.key](val);
10230
+ };
10169
10231
  }
10170
10232
  return item;
10171
10233
  })));
@@ -10180,7 +10242,11 @@ var SubForm = function SubForm(props) {
10180
10242
  if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
10181
10243
  item.defaultValue = [];
10182
10244
  }
10183
- prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
10245
+ if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
10246
+ prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
10247
+ } else {
10248
+ prv["".concat(next.key)] = item;
10249
+ }
10184
10250
  return prv;
10185
10251
  }, {});
10186
10252
  }, [newTableHeader]);
@@ -10197,7 +10263,7 @@ var SubForm = function SubForm(props) {
10197
10263
  }).map(function (item) {
10198
10264
  return {
10199
10265
  label: item.name,
10200
- value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
10266
+ value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
10201
10267
  };
10202
10268
  });
10203
10269
  setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
@@ -10239,6 +10305,7 @@ var SubForm = function SubForm(props) {
10239
10305
  _ref2$componentList,
10240
10306
  componentList,
10241
10307
  params,
10308
+ queryComponents,
10242
10309
  res,
10243
10310
  data,
10244
10311
  success,
@@ -10271,15 +10338,25 @@ var SubForm = function SubForm(props) {
10271
10338
  }]
10272
10339
  };
10273
10340
  if (selectKey && inputValue) {
10274
- params.queryComponents = [{
10341
+ queryComponents = [{
10275
10342
  key: 'flowStatus',
10276
10343
  symbol: 'in',
10277
10344
  value: flowStatus
10278
- }, {
10279
- key: selectKey,
10280
- symbol: 'in',
10281
- value: [inputValue]
10282
10345
  }];
10346
+ if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
10347
+ queryComponents.push({
10348
+ key: selectKey,
10349
+ symbol: 'like',
10350
+ value: inputValue
10351
+ });
10352
+ } else {
10353
+ queryComponents.push({
10354
+ key: selectKey,
10355
+ symbol: 'in',
10356
+ value: [inputValue]
10357
+ });
10358
+ }
10359
+ params.queryComponents = queryComponents;
10283
10360
  }
10284
10361
  _context.next = 7;
10285
10362
  return extendRequest('/qy/view/workOrderList', {
@@ -10475,7 +10552,21 @@ var SubForm = function SubForm(props) {
10475
10552
  placement: "bottom",
10476
10553
  visible: open,
10477
10554
  onVisibleChange: handleOpenChange
10478
- }, /*#__PURE__*/React.createElement(Input, {
10555
+ }, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
10556
+ value: undefined,
10557
+ onChange: function onChange(val) {
10558
+ onChangeInput(val);
10559
+ },
10560
+ placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
10561
+ showSearch: true,
10562
+ allowClear: true,
10563
+ style: {
10564
+ width: '180px'
10565
+ },
10566
+ filterOption: function filterOption(input, option) {
10567
+ return option.label.includes(input);
10568
+ }
10569
+ }) : /*#__PURE__*/React.createElement(Input, {
10479
10570
  placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
10480
10571
  allowClear: true,
10481
10572
  onChange: function onChange(e) {
@@ -19130,7 +19221,8 @@ var getColumns$2 = function getColumns(_ref) {
19130
19221
  title: "\u8D60\u54C1\u65B9\u5F0F",
19131
19222
  align: 'center',
19132
19223
  ellipsis: true,
19133
- width: 100
19224
+ width: 100,
19225
+ render: renderGiftType
19134
19226
  }, {
19135
19227
  dataIndex: 'unitName',
19136
19228
  title: "\u57FA\u672C\u5355\u4F4D",
@@ -21002,7 +21094,12 @@ var getColumns$6 = function getColumns(_ref) {
21002
21094
  render: renderTextEllipsis
21003
21095
  }, {
21004
21096
  dataIndex: 'skuId',
21005
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
21097
+ title: "\u5E73\u53F0\u89C4\u683CID",
21098
+ width: 170,
21099
+ render: renderTextEllipsis
21100
+ }, {
21101
+ dataIndex: 'outerSkuId',
21102
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21006
21103
  width: 170,
21007
21104
  render: renderTextEllipsis
21008
21105
  }, {
@@ -21109,7 +21206,12 @@ var getColumns$6 = function getColumns(_ref) {
21109
21206
  render: renderTextEllipsis
21110
21207
  }, {
21111
21208
  dataIndex: 'skuId',
21112
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
21209
+ title: "\u5E73\u53F0\u89C4\u683CID",
21210
+ width: 170,
21211
+ render: renderTextEllipsis
21212
+ }, {
21213
+ dataIndex: 'outerSkuId',
21214
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21113
21215
  width: 170,
21114
21216
  render: renderTextEllipsis
21115
21217
  }, {
@@ -22398,11 +22500,38 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
22398
22500
  var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
22399
22501
  onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
22400
22502
  };
22401
- var rowSelection = {
22503
+ var rowSelection = _objectSpread2({
22402
22504
  selectedRowKeys: selectedRowKeys,
22403
22505
  fixed: true,
22404
22506
  onChange: handleChangeSelectedKeys
22405
- };
22507
+ }, type === 'JST_REISSUE_GOODS' ? {
22508
+ getCheckboxProps: function getCheckboxProps(record) {
22509
+ var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
22510
+ return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
22511
+ }).map(function (item) {
22512
+ return item === null || item === void 0 ? void 0 : item.skuId;
22513
+ });
22514
+ var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
22515
+ return {
22516
+ disabled: isDisabled
22517
+ };
22518
+ },
22519
+ renderCell: function renderCell(_, record, __, originNode) {
22520
+ var allSelectedGoodsSukIdList = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
22521
+ return selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.includes(item === null || item === void 0 ? void 0 : item[uniqueKey]);
22522
+ }).map(function (item) {
22523
+ return item === null || item === void 0 ? void 0 : item.skuId;
22524
+ });
22525
+ var isDisabled = allSelectedGoodsSukIdList.includes(record === null || record === void 0 ? void 0 : record.skuId) && !selectedRowKeys.includes(record === null || record === void 0 ? void 0 : record[uniqueKey]);
22526
+ if (isDisabled) {
22527
+ return /*#__PURE__*/React.createElement(Tooltip, {
22528
+ title: "\u5DF2\u6DFB\u52A0\u5728\u7EC4\u4EF6\u4E2D\uFF0C\u76F8\u540C\u5546\u54C1\u4E0D\u80FD\u91CD\u590D\u9009\u62E9"
22529
+ }, originNode);
22530
+ } else {
22531
+ return originNode;
22532
+ }
22533
+ }
22534
+ } : {});
22406
22535
  var buttonTextMapping = {
22407
22536
  SKX_GOODS: '选择发货单商品',
22408
22537
  SKX_RETURN_GOODS: '选择退货单商品'
@@ -24015,7 +24144,10 @@ var index$2 = (function (props) {
24015
24144
  case 0:
24016
24145
  wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
24017
24146
  var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
24018
- return (item.srcTid || '').split(',').includes(orderNo);
24147
+ var _split;
24148
+ return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
24149
+ return tid.indexOf(orderNo) > -1;
24150
+ });
24019
24151
  });
24020
24152
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
24021
24153
  orders: trades,
@@ -25125,7 +25257,10 @@ var processWdtOrders = function processWdtOrders(_ref2) {
25125
25257
  var data = _ref2.data,
25126
25258
  orderNo = _ref2.orderNo;
25127
25259
  var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25128
- return (item.srcTid || '').split(',').includes(orderNo);
25260
+ var _split;
25261
+ return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
25262
+ return tid.indexOf(orderNo) > -1;
25263
+ });
25129
25264
  });
25130
25265
  return trades;
25131
25266
  };
@@ -26246,8 +26381,10 @@ var typeMap$2 = {
26246
26381
  goodDetailsKey: 'items',
26247
26382
  mergeIdenticalGoods: jstMergeIdenticalGoods,
26248
26383
  uniqueKey: 'uuid',
26249
- isShowSelectTradeGoods: true
26384
+ isShowSelectTradeGoods: true,
26385
+ isSelectTradeGoodsMerge: true //为true时,选择订单商品时,合并相同商品
26250
26386
  },
26387
+
26251
26388
  JST_RETURN_GOODS: {
26252
26389
  compType: '退货',
26253
26390
  key: 'jstReturnGoods',
@@ -26305,7 +26442,7 @@ var typeMap$2 = {
26305
26442
  }
26306
26443
  };
26307
26444
  var PublicReissue = function PublicReissue(props) {
26308
- 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;
26445
+ 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;
26309
26446
  var value = props.value,
26310
26447
  onChange = props.onChange,
26311
26448
  _props$reasonList = props.reasonList,
@@ -26422,7 +26559,7 @@ var PublicReissue = function PublicReissue(props) {
26422
26559
  }))));
26423
26560
  };
26424
26561
  var getGoodDetails = function getGoodDetails(_ref4) {
26425
- var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22;
26562
+ var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
26426
26563
  var mode = _ref4.mode,
26427
26564
  sysOrderNo = _ref4.sysOrderNo,
26428
26565
  _ref4$isAllOrders = _ref4.isAllOrders,
@@ -26450,7 +26587,8 @@ var PublicReissue = function PublicReissue(props) {
26450
26587
  var _order$typeMap$type$g;
26451
26588
  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;
26452
26589
  });
26453
- 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) : [];
26590
+ console.log(type, orders, (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest));
26591
+ 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) : [];
26454
26592
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
26455
26593
  var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
26456
26594
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
@@ -26458,30 +26596,30 @@ var PublicReissue = function PublicReissue(props) {
26458
26596
  return list;
26459
26597
  };
26460
26598
  var changeGoodHandle = function changeGoodHandle(val) {
26461
- var _typeMap$type23;
26599
+ var _typeMap$type25;
26462
26600
  var newValue = _objectSpread2({}, value);
26463
- 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 || [];
26601
+ 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 || [];
26464
26602
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
26465
26603
  };
26466
26604
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
26467
- var _typeMap$type24, _typeMap$type25, _value$typeMap$type$t2, _typeMap$type30, _value$typeMap$type$t3, _typeMap$type32;
26605
+ var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
26468
26606
  var newValue = _objectSpread2({}, value);
26469
- 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;
26470
- 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) {
26471
- var _value$typeMap$type$s7, _typeMap$type26, _typeMap$type28, _typeMap$type29;
26472
- 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) || [];
26607
+ 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;
26608
+ 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) {
26609
+ var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
26610
+ 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) || [];
26473
26611
  var targetOrder = val && orders.find(function (oItem) {
26474
- var _typeMap$type27;
26475
- return oItem[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.oIdKey] === val;
26612
+ var _typeMap$type29;
26613
+ return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
26476
26614
  });
26477
- 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];
26615
+ 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];
26478
26616
  }
26479
- 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])) {
26480
- var _typeMap$type31;
26481
- 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)] = [];
26482
- } 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])) {
26617
+ 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])) {
26483
26618
  var _typeMap$type33;
26484
- 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({
26619
+ 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)] = [];
26620
+ } 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])) {
26621
+ var _typeMap$type35;
26622
+ 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({
26485
26623
  mode: isStrict,
26486
26624
  sysOrderNo: val
26487
26625
  });
@@ -26489,27 +26627,27 @@ var PublicReissue = function PublicReissue(props) {
26489
26627
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
26490
26628
  };
26491
26629
  //显示选择商品按钮
26492
- 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]);
26630
+ 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]);
26493
26631
  var selectedGoodsChange = useCallback(function (skuList) {
26494
- var _typeMap$type35, _typeMap$type36, _typeMap$type37, _uniqBy, _typeMap$type38;
26632
+ var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
26495
26633
  var newValue = _objectSpread2({}, value);
26496
26634
  // 原订单商品
26497
26635
  var originTradeGoodList = getGoodDetails({
26498
26636
  mode: isStrict,
26499
- 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
26637
+ 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
26500
26638
  }) || [];
26501
26639
  // 当前选中的所有商品【包含了原订单+商品库】
26502
- 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)]) || [];
26503
- 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 = 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) {
26504
- var _typeMap$type39;
26505
- 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']);
26640
+ 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)]) || [];
26641
+ 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 = 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) {
26642
+ var _typeMap$type41;
26643
+ 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']);
26506
26644
  });
26507
26645
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
26508
- }, [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]);
26646
+ }, [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]);
26509
26647
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
26510
26648
  gutter: 8,
26511
26649
  wrap: true,
26512
- 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())
26650
+ 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())
26513
26651
  }, /*#__PURE__*/React.createElement(Col, {
26514
26652
  className: "gutter-row",
26515
26653
  xs: {
@@ -26525,12 +26663,12 @@ var PublicReissue = function PublicReissue(props) {
26525
26663
  },
26526
26664
  disabled: disabled,
26527
26665
  allowClear: false,
26528
- 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)],
26666
+ 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)],
26529
26667
  onChange: function onChange(val) {
26530
26668
  return changeSystemOrderHandle(val);
26531
26669
  },
26532
- 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")
26533
- }, ((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) {
26670
+ 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")
26671
+ }, ((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) {
26534
26672
  return /*#__PURE__*/React.createElement(Select.Option, {
26535
26673
  key: item[typeMap$2[type].oIdKey],
26536
26674
  value: item[typeMap$2[type].oIdKey],
@@ -26552,11 +26690,11 @@ var PublicReissue = function PublicReissue(props) {
26552
26690
  disabled: isSettingConfig ? !isSettingConfig : disabled,
26553
26691
  allowClear: false,
26554
26692
  options: reasonList,
26555
- 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)],
26693
+ 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)],
26556
26694
  onChange: function onChange(val) {
26557
26695
  return changeTypeHandle(val);
26558
26696
  }
26559
- })), (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.createElement(Col, {
26697
+ })), (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.createElement(Col, {
26560
26698
  className: "gutter-row",
26561
26699
  xs: {
26562
26700
  span: 11
@@ -26565,7 +26703,7 @@ var PublicReissue = function PublicReissue(props) {
26565
26703
  span: 6
26566
26704
  }
26567
26705
  }, /*#__PURE__*/React.createElement(Input, {
26568
- 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)],
26706
+ 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)],
26569
26707
  disabled: disabled,
26570
26708
  readOnly: true
26571
26709
  }))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
@@ -26576,25 +26714,25 @@ var PublicReissue = function PublicReissue(props) {
26576
26714
  canUpdateNumber: showChangeBtn,
26577
26715
  hasSelectedSystemOrder: showChangeBtn,
26578
26716
  // showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
26579
- 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,
26717
+ 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,
26580
26718
  // showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
26581
26719
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
26582
- 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)],
26720
+ 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)],
26583
26721
  onChange: function onChange(val) {
26584
26722
  return changeGoodHandle(val);
26585
26723
  },
26586
26724
  onModeChange: handleModeChange,
26587
26725
  showModeBtn: false,
26588
26726
  isStrict: isStrict,
26589
- 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,
26590
- 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,
26591
- 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)]] : [],
26727
+ 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,
26728
+ 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,
26729
+ 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)]] : [],
26592
26730
  tradeGoods: {
26593
26731
  originDataSource: getGoodDetails({
26594
26732
  mode: isStrict,
26595
- 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
26733
+ 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
26596
26734
  }),
26597
- 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',
26735
+ 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',
26598
26736
  selectedGoodsChange: selectedGoodsChange
26599
26737
  }
26600
26738
  })));
@@ -28894,4 +29032,4 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
28894
29032
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
28895
29033
  };
28896
29034
 
28897
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
29035
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };