@kmkf-fe-packages/basic-components 2.7.7-beta.0 → 2.7.7-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
@@ -13309,13 +13309,26 @@ var LogisticsInterception = function LogisticsInterception(props) {
13309
13309
  var changeHandle = function changeHandle(val, type) {
13310
13310
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
13311
13311
  if (type === 'interceptCompany') {
13312
+ var _props$interceptTypeD, _defaultInterceptType;
13312
13313
  var interceptCompany = expressInterceptData.find(function (item) {
13313
13314
  return item.value === val;
13314
13315
  });
13315
- var _returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
13316
- var _item$config4;
13317
- return item === null || item === void 0 ? void 0 : (_item$config4 = item.config) === null || _item$config4 === void 0 ? void 0 : _item$config4.isDefault;
13318
- });
13316
+ // 优先使用配置的默认值
13317
+ var defaultInterceptType;
13318
+ var configuredDefault = (_props$interceptTypeD = props.interceptTypeDefaults) === null || _props$interceptTypeD === void 0 ? void 0 : _props$interceptTypeD[val];
13319
+ if (configuredDefault) {
13320
+ // 使用配置的默认值
13321
+ defaultInterceptType = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
13322
+ return item.value === configuredDefault;
13323
+ });
13324
+ }
13325
+ // 如果没有配置默认值,使用原有的 isDefault 逻辑
13326
+ if (!defaultInterceptType) {
13327
+ defaultInterceptType = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
13328
+ var _item$config4;
13329
+ return item === null || item === void 0 ? void 0 : (_item$config4 = item.config) === null || _item$config4 === void 0 ? void 0 : _item$config4.isDefault;
13330
+ });
13331
+ }
13319
13332
  // const demoList = [
13320
13333
  // {
13321
13334
  // city: 330100,
@@ -13339,7 +13352,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
13339
13352
  });
13340
13353
  newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
13341
13354
  interceptCompany: val,
13342
- interceptType: _returnValue === null || _returnValue === void 0 ? void 0 : _returnValue.value,
13355
+ interceptType: (_defaultInterceptType = defaultInterceptType) === null || _defaultInterceptType === void 0 ? void 0 : _defaultInterceptType.value,
13343
13356
  interceptSenderMobile: undefined,
13344
13357
  interceptAddress: [],
13345
13358
  interceptDetail: undefined,
@@ -13637,7 +13650,8 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
13637
13650
  disabled = props.disabled,
13638
13651
  onChange = props.onChange,
13639
13652
  isEditing = props.isEditing,
13640
- effects = props.effects;
13653
+ effects = props.effects,
13654
+ interceptTypeDefaults = props.interceptTypeDefaults;
13641
13655
  var _useState = useState(0),
13642
13656
  _useState2 = _slicedToArray(_useState, 2),
13643
13657
  changeIndex = _useState2[0],
@@ -13683,7 +13697,8 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
13683
13697
  onJumpPage: effects === null || effects === void 0 ? void 0 : effects.onJumpPage,
13684
13698
  onChange: function onChange(val) {
13685
13699
  return handleChange(val, index);
13686
- }
13700
+ },
13701
+ interceptTypeDefaults: interceptTypeDefaults
13687
13702
  }) : null;
13688
13703
  }) : null);
13689
13704
  };
@@ -14246,8 +14261,7 @@ var jstGoods = function jstGoods(props) {
14246
14261
  return option.label.includes(input);
14247
14262
  },
14248
14263
  style: {
14249
- minWidth: '100px',
14250
- maxWidth: '180px'
14264
+ width: '180px'
14251
14265
  },
14252
14266
  platformType: platformType
14253
14267
  })) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
@@ -20956,6 +20970,15 @@ var getYesOrNo$4 = function getYesOrNo(val) {
20956
20970
  if (isNull(val)) return null;
20957
20971
  return val ? '是' : '否';
20958
20972
  };
20973
+ function toNum$1(value) {
20974
+ if (typeof value === 'string') {
20975
+ return value ? +value : void 0;
20976
+ }
20977
+ if (typeof value === 'number') {
20978
+ return value;
20979
+ }
20980
+ return void 0;
20981
+ }
20959
20982
  var getColumns$3 = function getColumns(_ref) {
20960
20983
  var _ref$text = _ref.text,
20961
20984
  text = _ref$text === void 0 ? '' : _ref$text,
@@ -20970,13 +20993,6 @@ var getColumns$3 = function getColumns(_ref) {
20970
20993
  ellipsis: true,
20971
20994
  width: 250,
20972
20995
  render: renderTextEllipsis
20973
- }, {
20974
- dataIndex: 'goodsCode',
20975
- title: "\u5546\u54C1\u7F16\u7801",
20976
- align: 'center',
20977
- ellipsis: true,
20978
- width: 250,
20979
- render: renderTextEllipsis
20980
20996
  }, {
20981
20997
  dataIndex: 'wlnSkuName',
20982
20998
  title: "sku\u540D\u79F0",
@@ -21032,7 +21048,7 @@ var getColumns$3 = function getColumns(_ref) {
21032
21048
  });
21033
21049
  }
21034
21050
  }, {
21035
- dataIndex: 'olnItemCOde',
21051
+ dataIndex: 'olnItemCode',
21036
21052
  title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
21037
21053
  align: 'center',
21038
21054
  ellipsis: true,
@@ -21066,7 +21082,7 @@ var getColumns$3 = function getColumns(_ref) {
21066
21082
  ellipsis: true,
21067
21083
  width: 100,
21068
21084
  render: function render(val, record, index) {
21069
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21085
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21070
21086
  style: {
21071
21087
  width: 70
21072
21088
  },
@@ -21092,44 +21108,76 @@ var getColumns$3 = function getColumns(_ref) {
21092
21108
  ellipsis: true,
21093
21109
  width: 250,
21094
21110
  render: renderTextEllipsis
21095
- }, {
21096
- dataIndex: 'originPrice',
21097
- title: "\u539F\u4EF7",
21098
- align: 'center',
21099
- ellipsis: true,
21100
- width: 250,
21101
- render: renderTextEllipsis
21102
21111
  }, {
21103
21112
  dataIndex: 'price',
21104
21113
  title: "\u5355\u4EF7",
21105
21114
  align: 'center',
21106
21115
  ellipsis: true,
21107
21116
  width: 250,
21108
- render: renderTextEllipsis
21117
+ render: function render(val, record, index) {
21118
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21119
+ style: {
21120
+ width: 70
21121
+ },
21122
+ value: val,
21123
+ min: 0,
21124
+ precision: 2,
21125
+ onChange: function onChange(num) {
21126
+ return updateHandle(num, index, 'price');
21127
+ }
21128
+ }) : /*#__PURE__*/React.createElement("span", null, val);
21129
+ }
21109
21130
  }, {
21110
21131
  dataIndex: 'receivable',
21111
21132
  title: "\u9500\u552E\u91D1\u989D",
21112
21133
  align: 'center',
21113
21134
  ellipsis: true,
21114
21135
  width: 250,
21115
- render: renderTextEllipsis
21136
+ render: function render(val, record, index) {
21137
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21138
+ style: {
21139
+ width: 70
21140
+ },
21141
+ value: val,
21142
+ min: 0,
21143
+ precision: 2,
21144
+ onChange: function onChange(num) {
21145
+ return updateHandle(num, index, 'receivable');
21146
+ }
21147
+ }) : /*#__PURE__*/React.createElement("span", null, val);
21148
+ }
21116
21149
  }, {
21117
21150
  dataIndex: 'type',
21118
21151
  title: "\u8D60\u54C1\u7C7B\u578B",
21119
21152
  align: 'center',
21120
21153
  ellipsis: true,
21121
21154
  width: 100,
21122
- render: renderTextEllipsis
21155
+ render: function render(val, record, index) {
21156
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21157
+ value: val,
21158
+ onChange: function onChange(value) {
21159
+ updateHandle(value, index, 'type');
21160
+ },
21161
+ options: [{
21162
+ label: '赠品',
21163
+ value: 1
21164
+ }, {
21165
+ label: '非赠品',
21166
+ value: 0
21167
+ }]
21168
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21169
+ }
21123
21170
  }, {
21124
21171
  dataIndex: 'isPackage',
21125
21172
  title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
21126
21173
  align: 'center',
21127
21174
  ellipsis: true,
21175
+ width: 200,
21128
21176
  render: function render(val, record, index) {
21129
21177
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21130
21178
  value: val,
21131
21179
  onChange: function onChange(value) {
21132
- updateHandle(value, index, 'isGift');
21180
+ updateHandle(value, index, 'isPackage');
21133
21181
  },
21134
21182
  options: [{
21135
21183
  label: '是',
@@ -21139,28 +21187,15 @@ var getColumns$3 = function getColumns(_ref) {
21139
21187
  value: false
21140
21188
  }]
21141
21189
  }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21142
- },
21143
- width: 200
21190
+ }
21144
21191
  }, {
21145
21192
  dataIndex: 'hasRefund',
21146
21193
  title: "\u662F\u5426\u9000\u6B3E",
21147
21194
  align: 'center',
21148
21195
  ellipsis: true,
21149
21196
  width: 100,
21150
- render: function render(val, record, index) {
21151
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21152
- value: val,
21153
- onChange: function onChange(value) {
21154
- updateHandle(value, index, 'isGift');
21155
- },
21156
- options: [{
21157
- label: '是',
21158
- value: 1
21159
- }, {
21160
- label: '否',
21161
- value: 0
21162
- }]
21163
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21197
+ render: function render(val) {
21198
+ return getYesOrNo$4(val);
21164
21199
  }
21165
21200
  }, {
21166
21201
  dataIndex: 'unit',
@@ -21198,13 +21233,6 @@ var getColumns$3 = function getColumns(_ref) {
21198
21233
  ellipsis: true,
21199
21234
  width: 250,
21200
21235
  render: renderTextEllipsis
21201
- }, {
21202
- dataIndex: 'goodsCode',
21203
- title: "\u5546\u54C1\u7F16\u7801",
21204
- align: 'center',
21205
- ellipsis: true,
21206
- width: 250,
21207
- render: renderTextEllipsis
21208
21236
  }, {
21209
21237
  dataIndex: 'wlnSkuName',
21210
21238
  title: "sku\u540D\u79F0",
@@ -21260,7 +21288,7 @@ var getColumns$3 = function getColumns(_ref) {
21260
21288
  });
21261
21289
  }
21262
21290
  }, {
21263
- dataIndex: 'olnItemCOde',
21291
+ dataIndex: 'olnItemCode',
21264
21292
  title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
21265
21293
  align: 'center',
21266
21294
  ellipsis: true,
@@ -21286,15 +21314,41 @@ var getColumns$3 = function getColumns(_ref) {
21286
21314
  align: 'center',
21287
21315
  ellipsis: true,
21288
21316
  width: 250,
21289
- render: renderTextEllipsis
21317
+ render: function render(val, record, index) {
21318
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21319
+ style: {
21320
+ width: 70
21321
+ },
21322
+ value: val,
21323
+ min: 0,
21324
+ precision: 2,
21325
+ onChange: function onChange(num) {
21326
+ updateHandle(num, index, 'price');
21327
+ if ((num || num === 0) && (record.number || record.number === 0)) updateHandle(num * (record.number || 0), index, 'money');
21328
+ }
21329
+ }) : /*#__PURE__*/React.createElement("span", null, val);
21330
+ }
21290
21331
  }, {
21291
21332
  dataIndex: 'number',
21292
21333
  title: "".concat(text, "\u6570\u91CF"),
21293
21334
  align: 'center',
21294
21335
  ellipsis: true,
21295
21336
  width: 100,
21337
+ validator: function validator(_rule, value) {
21338
+ var productName = '';
21339
+ if (((value === null || value === void 0 ? void 0 : value.wlnReissueGoods) || []).some(function (goods) {
21340
+ var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.number);
21341
+ var res = typeof qty === 'number' ? qty < 1 : true;
21342
+ if (res) {
21343
+ productName = (goods === null || goods === void 0 ? void 0 : goods.wlnItemName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.wlnItemName, "]") : '';
21344
+ }
21345
+ return res;
21346
+ })) {
21347
+ return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21348
+ }
21349
+ },
21296
21350
  render: function render(val, record, index) {
21297
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21351
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21298
21352
  style: {
21299
21353
  width: 70
21300
21354
  },
@@ -21302,33 +21356,27 @@ var getColumns$3 = function getColumns(_ref) {
21302
21356
  min: 1,
21303
21357
  precision: 0,
21304
21358
  onChange: function onChange(num) {
21305
- return updateHandle(num, index, 'number');
21359
+ updateHandle(num, index, 'number');
21360
+ if ((num || num === 0) && (record.price || record.price === 0)) updateHandle(num * (record.price || 0), index, 'money');
21306
21361
  }
21307
21362
  }) : /*#__PURE__*/React.createElement("span", null, val);
21308
21363
  }
21309
21364
  }, {
21310
- dataIndex: 'outPrice',
21365
+ dataIndex: 'money',
21311
21366
  title: "\u5B9E\u4ED8\u91D1\u989D",
21312
21367
  width: 150,
21313
- render: function render(_, record, index) {
21314
- var value;
21315
- if ((typeof record.number === 'number' || record.number) && (typeof record.price === 'number' || record.price)) {
21316
- value = +(record.number * record.price).toFixed(2);
21317
- }
21318
- if (record.canUpdateNumber && !disabled) {
21319
- return /*#__PURE__*/React.createElement(InputNumber, {
21320
- style: {
21321
- width: 70
21322
- },
21323
- value: value,
21324
- min: 1,
21325
- precision: 0,
21326
- onChange: function onChange(num) {
21327
- return updateHandle(num, index, 'total');
21328
- }
21329
- });
21330
- }
21331
- return value || value === 0 ? value : '';
21368
+ render: function render(val, record, index) {
21369
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21370
+ style: {
21371
+ width: 130
21372
+ },
21373
+ value: val,
21374
+ min: 0,
21375
+ precision: 2,
21376
+ onChange: function onChange(num) {
21377
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'money');
21378
+ }
21379
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21332
21380
  }
21333
21381
  }, {
21334
21382
  dataIndex: 'type',
@@ -21336,17 +21384,32 @@ var getColumns$3 = function getColumns(_ref) {
21336
21384
  align: 'center',
21337
21385
  ellipsis: true,
21338
21386
  width: 100,
21339
- render: renderTextEllipsis
21387
+ render: function render(val, record, index) {
21388
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21389
+ value: val,
21390
+ onChange: function onChange(value) {
21391
+ updateHandle(value, index, 'type');
21392
+ },
21393
+ options: [{
21394
+ label: '赠品',
21395
+ value: 1
21396
+ }, {
21397
+ label: '非赠品',
21398
+ value: 0
21399
+ }]
21400
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21401
+ }
21340
21402
  }, {
21341
21403
  dataIndex: 'isPackage',
21342
21404
  title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
21343
21405
  align: 'center',
21344
21406
  ellipsis: true,
21407
+ width: 200,
21345
21408
  render: function render(val, record, index) {
21346
21409
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21347
21410
  value: val,
21348
21411
  onChange: function onChange(value) {
21349
- updateHandle(value, index, 'isGift');
21412
+ updateHandle(value, index, 'isPackage');
21350
21413
  },
21351
21414
  options: [{
21352
21415
  label: '是',
@@ -21356,8 +21419,7 @@ var getColumns$3 = function getColumns(_ref) {
21356
21419
  value: false
21357
21420
  }]
21358
21421
  }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21359
- },
21360
- width: 100
21422
+ }
21361
21423
  }, {
21362
21424
  dataIndex: 'unit',
21363
21425
  title: "\u5355\u4F4D",
@@ -21399,7 +21461,7 @@ var getYesOrNo$5 = function getYesOrNo(val) {
21399
21461
  if (isNull(val)) return null;
21400
21462
  return val ? '是' : '否';
21401
21463
  };
21402
- function toNum$1(value) {
21464
+ function toNum$2(value) {
21403
21465
  if (typeof value === 'string') {
21404
21466
  return value ? +value : void 0;
21405
21467
  }
@@ -21579,7 +21641,7 @@ var getColumns$4 = function getColumns(_ref) {
21579
21641
  validator: function validator(_rule, value) {
21580
21642
  var goodsName = '';
21581
21643
  if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
21582
- var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
21644
+ var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
21583
21645
  var res = typeof qty === 'number' ? qty < 1 : true;
21584
21646
  if (res) {
21585
21647
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -21700,7 +21762,7 @@ var getColumns$4 = function getColumns(_ref) {
21700
21762
  validator: function validator(_rule, value) {
21701
21763
  var goodsName = '';
21702
21764
  if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
21703
- var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
21765
+ var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
21704
21766
  var res = typeof qty === 'number' ? qty < 1 : true;
21705
21767
  if (res) {
21706
21768
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -21801,7 +21863,7 @@ var fillAttrs = function fillAttrs(item) {
21801
21863
  if (!item.align) item.align = 'center';
21802
21864
  return item;
21803
21865
  };
21804
- function toNum$2(value) {
21866
+ function toNum$3(value) {
21805
21867
  if (typeof value === 'string') {
21806
21868
  return value ? +value : void 0;
21807
21869
  }
@@ -22041,7 +22103,7 @@ var getColumns$5 = function getColumns() {
22041
22103
  validator: function validator(_rule, value) {
22042
22104
  var goodsName = '';
22043
22105
  if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
22044
- var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
22106
+ var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.qty);
22045
22107
  var res = typeof qty === 'number' ? qty < 1 : true;
22046
22108
  if (res) {
22047
22109
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
@@ -22142,7 +22204,7 @@ var getColumns$5 = function getColumns() {
22142
22204
  validator: function validator(_rule, value) {
22143
22205
  var goodsName = '';
22144
22206
  if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
22145
- var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
22207
+ var v = toNum$3(goods === null || goods === void 0 ? void 0 : goods.salePrice);
22146
22208
  var res = typeof v === 'number' ? v < 0 : true;
22147
22209
  if (res) {
22148
22210
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
@@ -22172,7 +22234,7 @@ var getColumns$5 = function getColumns() {
22172
22234
  validator: function validator(_rule, value) {
22173
22235
  var goodsName = '';
22174
22236
  if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
22175
- var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
22237
+ var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.qty);
22176
22238
  var res = typeof qty === 'number' ? qty < 1 : true;
22177
22239
  if (res) {
22178
22240
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
@@ -22517,7 +22579,7 @@ var getColumns$5 = function getColumns() {
22517
22579
  };
22518
22580
  };
22519
22581
 
22520
- function toNum$3(value) {
22582
+ function toNum$4(value) {
22521
22583
  if (typeof value === 'string') {
22522
22584
  return value ? +value : void 0;
22523
22585
  }
@@ -22735,7 +22797,7 @@ var getColumns$6 = function getColumns() {
22735
22797
  if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
22736
22798
  var title = '';
22737
22799
  if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
22738
- var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
22800
+ var realNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.realNum);
22739
22801
  var res = typeof realNum === 'number' ? realNum < 1 : true;
22740
22802
  if (res) {
22741
22803
  title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -22765,7 +22827,7 @@ var getColumns$6 = function getColumns() {
22765
22827
  validator: function validator(_rule, value) {
22766
22828
  var title = '';
22767
22829
  if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
22768
- var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22830
+ var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22769
22831
  var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
22770
22832
  if (res) {
22771
22833
  title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -22926,7 +22988,7 @@ var getColumns$6 = function getColumns() {
22926
22988
  validator: function validator(_rule, value) {
22927
22989
  var title = '';
22928
22990
  if (((value === null || value === void 0 ? void 0 : value.kmReturnGoods) || []).some(function (goods) {
22929
- var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22991
+ var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22930
22992
  var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
22931
22993
  if (res) {
22932
22994
  title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -23093,7 +23155,7 @@ var getColumns$6 = function getColumns() {
23093
23155
  if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
23094
23156
  var title = '';
23095
23157
  if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
23096
- var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
23158
+ var realNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.realNum);
23097
23159
  var res = typeof realNum === 'number' ? realNum < 1 : true;
23098
23160
  if (res) {
23099
23161
  title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -23126,7 +23188,7 @@ var getColumns$6 = function getColumns() {
23126
23188
  validator: function validator(_rule, value) {
23127
23189
  var title = '';
23128
23190
  if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
23129
- var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
23191
+ var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
23130
23192
  var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
23131
23193
  if (res) {
23132
23194
  title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -23187,7 +23249,7 @@ var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
23187
23249
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
23188
23250
  return false;
23189
23251
  };
23190
- function toNum$4(value) {
23252
+ function toNum$5(value) {
23191
23253
  if (typeof value === 'string') {
23192
23254
  return value ? +value : void 0;
23193
23255
  }
@@ -23522,7 +23584,7 @@ var getColumns$7 = function getColumns(_ref) {
23522
23584
  validator: function validator(_rule, value) {
23523
23585
  var productName = '';
23524
23586
  if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
23525
- var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
23587
+ var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
23526
23588
  var res = typeof qty === 'number' ? qty < 1 : true;
23527
23589
  if (res) {
23528
23590
  productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
@@ -23680,7 +23742,7 @@ var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
23680
23742
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
23681
23743
  return false;
23682
23744
  };
23683
- function toNum$5(value) {
23745
+ function toNum$6(value) {
23684
23746
  if (typeof value === 'string') {
23685
23747
  return value ? +value : void 0;
23686
23748
  }
@@ -24068,7 +24130,7 @@ var getColumns$9 = function getColumns(_ref) {
24068
24130
  validator: function validator(_rule, value) {
24069
24131
  var goodsName = '';
24070
24132
  if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
24071
- var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
24133
+ var qty = toNum$6(goods === null || goods === void 0 ? void 0 : goods.sellCount);
24072
24134
  var res = typeof qty === 'number' ? qty < 1 : true;
24073
24135
  if (res) {
24074
24136
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
@@ -26436,6 +26498,7 @@ var jstUtils = {
26436
26498
 
26437
26499
  var singletonMap$4 = new Map();
26438
26500
  var getOrderListSingleton = function getOrderListSingleton(orderNo) {
26501
+ var isSplit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
26439
26502
  if (!singletonMap$4.has(orderNo)) {
26440
26503
  var p = new Promise(function (resolve, reject) {
26441
26504
  var doReject = function doReject(err) {
@@ -26446,7 +26509,8 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
26446
26509
  extendRequest('/qy/gdfw/order/wlnOrderList', {
26447
26510
  method: 'post',
26448
26511
  data: {
26449
- billCode: orderNo
26512
+ billCode: orderNo,
26513
+ isSplit: isSplit
26450
26514
  }
26451
26515
  }).then(function (data) {
26452
26516
  if (data === null || data === void 0 ? void 0 : data.success) {
@@ -28444,7 +28508,7 @@ var componentMap$2 = {
28444
28508
  key: 'wlnGoods',
28445
28509
  name: '吉客云',
28446
28510
  orderNo: 'tradeNo',
28447
- goodDetailOrderNo: 'tradeNo',
28511
+ goodDetailOrderNo: 'tpTid',
28448
28512
  eventNameMap: {
28449
28513
  // pubsub 事件
28450
28514
  type: 'wlnType',
@@ -28463,7 +28527,13 @@ var componentMap$2 = {
28463
28527
  returnDeleteGood: 'wlnReturnDeleteGood',
28464
28528
  exchangeDeleteGood: 'wlnExchangeDeleteGood'
28465
28529
  },
28466
- getOrderList: wlnUtils.getOrderListSingleton
28530
+ getOrderList: wlnUtils.getOrderListSingleton,
28531
+ checkShowModeBtn: function checkShowModeBtn(value) {
28532
+ var _value$allOrders;
28533
+ return value === null || value === void 0 ? void 0 : (_value$allOrders = value.allOrders) === null || _value$allOrders === void 0 ? void 0 : _value$allOrders.some(function (order) {
28534
+ return order === null || order === void 0 ? void 0 : order.tpTid.includes('|');
28535
+ });
28536
+ }
28467
28537
  },
28468
28538
  WDT_AFTERSALE_GOODS: {
28469
28539
  type: 'wdtAftersale',
@@ -28496,14 +28566,14 @@ var componentMap$2 = {
28496
28566
  }
28497
28567
  };
28498
28568
  var CommonGoods = function CommonGoods(props) {
28499
- var _withInfo$current3, _withInfo$current4, _componentMap$compTyp6;
28569
+ var _componentMap$compTyp, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
28500
28570
  var value = props.value,
28501
28571
  disabled = props.disabled,
28502
28572
  onChange = props.onChange,
28503
28573
  compType = props.type;
28504
28574
  // console.log('value?.orders', value?.orders);
28505
28575
  // 合并单订单会包含","
28506
- var showModeBtn = !['BS_E3_GOODS'].includes(compType) && ((value === null || value === void 0 ? void 0 : value.orders) || []).some(function (order) {
28576
+ var showModeBtn = ((_componentMap$compTyp = componentMap$2[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.checkShowModeBtn) ? componentMap$2[compType].checkShowModeBtn(value) : !['BS_E3_GOODS'].includes(compType) && ((value === null || value === void 0 ? void 0 : value.orders) || []).some(function (order) {
28507
28577
  var _order$componentMap$c;
28508
28578
  return order === null || order === void 0 ? void 0 : (_order$componentMap$c = order[componentMap$2[compType].orderNo]) === null || _order$componentMap$c === void 0 ? void 0 : _order$componentMap$c.includes(',');
28509
28579
  });
@@ -28747,8 +28817,8 @@ var CommonGoods = function CommonGoods(props) {
28747
28817
  });
28748
28818
  var orderNo = value === null || value === void 0 ? void 0 : value.orderNo;
28749
28819
  return mode ? goodDetails.filter(function (goodItem) {
28750
- var _componentMap$compTyp;
28751
- return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp = componentMap$2[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.goodDetailOrderNo]) === orderNo;
28820
+ var _componentMap$compTyp2;
28821
+ return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp2 = componentMap$2[compType]) === null || _componentMap$compTyp2 === void 0 ? void 0 : _componentMap$compTyp2.goodDetailOrderNo]) === orderNo;
28752
28822
  }) : goodDetails;
28753
28823
  };
28754
28824
  // 找到该订单号下所有商品
@@ -28773,8 +28843,8 @@ var CommonGoods = function CommonGoods(props) {
28773
28843
  // await getKmSupplier(goodDetails);
28774
28844
  // }
28775
28845
  return _context3.abrupt("return", mode ? goodDetails.filter(function (goodItem) {
28776
- var _componentMap$compTyp2;
28777
- return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp2 = componentMap$2[compType]) === null || _componentMap$compTyp2 === void 0 ? void 0 : _componentMap$compTyp2.goodDetailOrderNo]) === orderNo;
28846
+ var _componentMap$compTyp3;
28847
+ return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp3 = componentMap$2[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.goodDetailOrderNo]) === orderNo;
28778
28848
  }) : goodDetails);
28779
28849
  case 7:
28780
28850
  case "end":
@@ -28815,7 +28885,7 @@ var CommonGoods = function CommonGoods(props) {
28815
28885
  }, [value === null || value === void 0 ? void 0 : value.allOrders, value === null || value === void 0 ? void 0 : value.isStrict, value === null || value === void 0 ? void 0 : value.orderNo, compType]);
28816
28886
  var selectedGoodsChange = /*#__PURE__*/function () {
28817
28887
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(skuList) {
28818
- var _valueRef$current9, _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
28888
+ var _valueRef$current9, _componentMap$compTyp4, _componentMap$compTyp5, _uniqBy;
28819
28889
  var newValue, isStrict, originTradeGoodList, currentSelectGoodList;
28820
28890
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
28821
28891
  while (1) switch (_context5.prev = _context5.next) {
@@ -28836,8 +28906,8 @@ var CommonGoods = function CommonGoods(props) {
28836
28906
  case 7:
28837
28907
  originTradeGoodList = _context5.t0;
28838
28908
  // 当前选中的所有商品【包含了原订单+商品库】
28839
- currentSelectGoodList = ((_valueRef$current9 = valueRef.current) === null || _valueRef$current9 === void 0 ? void 0 : _valueRef$current9["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp3 = componentMap$2[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.key)]) || [];
28840
- newValue["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$2[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
28909
+ currentSelectGoodList = ((_valueRef$current9 = valueRef.current) === null || _valueRef$current9 === void 0 ? void 0 : _valueRef$current9["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$2[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.key)]) || [];
28910
+ newValue["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp5 = componentMap$2[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
28841
28911
  return skuList.includes(item.uuid);
28842
28912
  });
28843
28913
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
@@ -28853,8 +28923,8 @@ var CommonGoods = function CommonGoods(props) {
28853
28923
  }();
28854
28924
  // 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
28855
28925
  var getDataSourceAsync = function getDataSourceAsync() {
28856
- var _componentMap$compTyp5;
28857
- return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$compTyp5 = componentMap$2[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.getOrderList(value === null || value === void 0 ? void 0 : value.orderNo).then(function (data) {
28926
+ var _componentMap$compTyp6;
28927
+ return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.getOrderList(value === null || value === void 0 ? void 0 : value.orderNo).then(function (data) {
28858
28928
  var list = processAllOrders({
28859
28929
  data: data,
28860
28930
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
@@ -28887,7 +28957,7 @@ var CommonGoods = function CommonGoods(props) {
28887
28957
  isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
28888
28958
  systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
28889
28959
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
28890
- showChangeBtn: (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.showChangeBtn,
28960
+ showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
28891
28961
  tradeGoods: {
28892
28962
  originDataSource: originDataSource,
28893
28963
  getDataSourceAsync: getDataSourceAsync,
@@ -29660,15 +29730,21 @@ var typeMap$2 = {
29660
29730
  updateGoodsHandle: updateWlnGoodsHandle,
29661
29731
  alwaysShowChooseErpGoodsBtn: true,
29662
29732
  orderTypeKey: 'orderType',
29663
- oIdKey: 'billNo',
29733
+ oIdKey: 'tradeNo',
29664
29734
  outerOiIdKey: 'tpTid',
29665
29735
  goodDetailsKey: 'items',
29666
29736
  isShowSelectTradeGoods: true,
29667
- showModeBtn: true
29737
+ checkShowModeBtn: function checkShowModeBtn(value) {
29738
+ var _value$wlnSystemOrder, _value$wlnSystemOrder2;
29739
+ var selectOrder = (value === null || value === void 0 ? void 0 : value.wlnSystemOrderNo) && (value === null || value === void 0 ? void 0 : (_value$wlnSystemOrder = value.wlnSystemOrder) === null || _value$wlnSystemOrder === void 0 ? void 0 : (_value$wlnSystemOrder2 = _value$wlnSystemOrder.orders) === null || _value$wlnSystemOrder2 === void 0 ? void 0 : _value$wlnSystemOrder2.find(function (order) {
29740
+ return (value === null || value === void 0 ? void 0 : value.wlnSystemOrderNo) === (order === null || order === void 0 ? void 0 : order.billNo);
29741
+ }));
29742
+ return (selectOrder === null || selectOrder === void 0 ? void 0 : selectOrder.tpTid.includes('|')) || (selectOrder === null || selectOrder === void 0 ? void 0 : selectOrder.tid.includes('|'));
29743
+ }
29668
29744
  }
29669
29745
  };
29670
29746
  var PublicReissue = function PublicReissue(props) {
29671
- var _typeMap$type18, _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, _typeMap$type53, _typeMap$type54, _value$typeMap$type$s9, _typeMap$type55, _typeMap$type56, _typeMap$type57, _typeMap$type58;
29747
+ var _typeMap$type, _typeMap$type2, _typeMap$type20, _typeMap$type38, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _value$typeMap$type$s8, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _typeMap$type53, _typeMap$type54, _typeMap$type55, _value$typeMap$type$s9, _typeMap$type56, _typeMap$type57, _typeMap$type58, _typeMap$type59;
29672
29748
  var value = props.value,
29673
29749
  onChange = props.onChange,
29674
29750
  _props$reasonList = props.reasonList,
@@ -29677,6 +29753,7 @@ var PublicReissue = function PublicReissue(props) {
29677
29753
  type = props.type,
29678
29754
  isSettingConfig = props.isSettingConfig,
29679
29755
  other = _objectWithoutProperties(props, _excluded$m);
29756
+ var showModeBtn = ((_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.checkShowModeBtn) ? typeMap$2[type].checkShowModeBtn(value) : !!((_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.showModeBtn) || false;
29680
29757
  var getOrderFlag = useRef(false);
29681
29758
  var _useState = useState(false),
29682
29759
  _useState2 = _slicedToArray(_useState, 2),
@@ -29684,11 +29761,11 @@ var PublicReissue = function PublicReissue(props) {
29684
29761
  setIsStrict = _useState2[1];
29685
29762
  // TODO: 在修改场景下手动获取一次订单详情中数据
29686
29763
  useEffect(function () {
29687
- var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type, _value$typeMap$type$s3, _typeMap$type2, _value$typeMap$type$s4, _typeMap$type3;
29688
- if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo) && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type3 = typeMap$2[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.isRequest)) {
29689
- var _value$typeMap$type$s5, _typeMap$type4;
29764
+ var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type3, _value$typeMap$type$s3, _typeMap$type4, _value$typeMap$type$s4, _typeMap$type5;
29765
+ if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type3 = typeMap$2[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo) && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.isRequest)) {
29766
+ var _value$typeMap$type$s5, _typeMap$type6;
29690
29767
  getOrderFlag.current = true;
29691
- getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.orderNo);
29768
+ getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type6 = typeMap$2[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.orderNo, type === 'WLN_REISSUE_GOODS' ? props.orderBackGoodsLevel !== '2' : void 0);
29692
29769
  }
29693
29770
  return;
29694
29771
  }, [value]);
@@ -29718,27 +29795,30 @@ var PublicReissue = function PublicReissue(props) {
29718
29795
  }, []);
29719
29796
  var getOrderList = /*#__PURE__*/function () {
29720
29797
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
29721
- var _typeMap$type5;
29798
+ var _typeMap$type7;
29799
+ var isSplit,
29800
+ _args = arguments;
29722
29801
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29723
29802
  while (1) switch (_context.prev = _context.next) {
29724
29803
  case 0:
29725
- (_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.getOrderList(orderNo).then(function (data) {
29726
- var _valueRef$current3, _typeMap$type6, _typeMap$type7, _typeMap$type11, _ref3, _typeMap$type12;
29804
+ isSplit = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
29805
+ (_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.getOrderList(orderNo, isSplit).then(function (data) {
29806
+ var _valueRef$current3, _typeMap$type8, _typeMap$type9, _typeMap$type13, _ref3, _typeMap$type14;
29727
29807
  var orders = (type === 'WLN_REISSUE_GOODS' ? data === null || data === void 0 ? void 0 : data.orders : data) || [];
29728
29808
  var showOrderInfo = orders === null || orders === void 0 ? void 0 : orders.map(function (orderItem) {
29729
29809
  return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
29730
29810
  });
29731
29811
  var typeObj = {};
29732
- var systemOrderNo = valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3[(_typeMap$type6 = typeMap$2[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrderNo];
29733
- if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.systemOrderBillType) {
29734
- var _typeMap$type9, _typeMap$type10;
29812
+ var systemOrderNo = valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3[(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.systemOrderNo];
29813
+ if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type9 = typeMap$2[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrderBillType) {
29814
+ var _typeMap$type11, _typeMap$type12;
29735
29815
  var targetOrder = orders.find(function (oItem) {
29736
- var _typeMap$type8;
29737
- return oItem[(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.oIdKey] === systemOrderNo;
29816
+ var _typeMap$type10;
29817
+ return oItem[(_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.oIdKey] === systemOrderNo;
29738
29818
  });
29739
- typeObj[(_typeMap$type9 = typeMap$2[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.orderTypeKey];
29819
+ typeObj[(_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type12 = typeMap$2[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.orderTypeKey];
29740
29820
  }
29741
- var newValue = _objectSpread2(_objectSpread2(_objectSpread2({}, valueRef.current || {}), typeObj), {}, _defineProperty({}, (_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type12 = typeMap$2[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.systemOrder]) || {}), {}, {
29821
+ var newValue = _objectSpread2(_objectSpread2(_objectSpread2({}, valueRef.current || {}), typeObj), {}, _defineProperty({}, (_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type14 = typeMap$2[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrder]) || {}), {}, {
29742
29822
  showOrderInfo: showOrderInfo,
29743
29823
  orders: orders
29744
29824
  })));
@@ -29746,7 +29826,7 @@ var PublicReissue = function PublicReissue(props) {
29746
29826
  onChange(newValue);
29747
29827
  }
29748
29828
  });
29749
- case 1:
29829
+ case 2:
29750
29830
  case "end":
29751
29831
  return _context.stop();
29752
29832
  }
@@ -29757,31 +29837,30 @@ var PublicReissue = function PublicReissue(props) {
29757
29837
  };
29758
29838
  }();
29759
29839
  var changeTypeHandle = function changeTypeHandle(val) {
29760
- var _typeMap$type13;
29840
+ var _typeMap$type15;
29761
29841
  var typeName = val === null || val === void 0 ? void 0 : val[0];
29762
29842
  // if (typeName === value?.[typeMap[type]?.typeName]?.[0]) return
29763
29843
  // const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
29764
29844
  var newValue = _objectSpread2({}, value);
29765
- newValue[(_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.typeName] = val;
29845
+ newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.typeName] = val;
29766
29846
  if (typeName === '1') {
29767
- var _typeMap$type14;
29768
- newValue[(_typeMap$type14 = typeMap$2[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.key] = getGoodDetails({
29847
+ var _typeMap$type16;
29848
+ newValue[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.key] = getGoodDetails({
29769
29849
  mode: isStrict
29770
29850
  });
29771
29851
  } else if (typeName === '2') {
29772
- var _typeMap$type15;
29852
+ var _typeMap$type17;
29773
29853
  // 切换到非原单,清空列表
29774
- newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key] = [];
29854
+ newValue[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.key] = [];
29775
29855
  }
29776
- console.log('**** changeTypeHandle', newValue);
29777
29856
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
29778
29857
  };
29779
29858
  var handleModeChange = function handleModeChange(mode) {
29780
- var _value$typeMap$type$t, _typeMap$type16, _typeMap$type17;
29781
- var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0]) === '1';
29859
+ var _value$typeMap$type$t, _typeMap$type18, _typeMap$type19;
29860
+ var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0]) === '1';
29782
29861
  setIsStrict(mode);
29783
29862
  if (!isOriginalOrder) return;
29784
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.key, getGoodDetails({
29863
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.key, getGoodDetails({
29785
29864
  mode: mode
29786
29865
  }))));
29787
29866
  };
@@ -29798,7 +29877,7 @@ var PublicReissue = function PublicReissue(props) {
29798
29877
  });
29799
29878
  }
29800
29879
  return map;
29801
- }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key]]);
29880
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key]]);
29802
29881
  // 用于跟踪已经处理过的 sysItemId,避免重复处理
29803
29882
  var processedSysItemIdsRef = useRef(new Set());
29804
29883
  useEffect(function () {
@@ -29870,13 +29949,13 @@ var PublicReissue = function PublicReissue(props) {
29870
29949
  }
29871
29950
  }, [sysItemIdMap]);
29872
29951
  var getGoodDetails = function getGoodDetails(_ref5) {
29873
- var _typeMap$type19, _typeMap$type20, _value$typeMap$type$s6, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
29952
+ var _typeMap$type21, _typeMap$type22, _value$typeMap$type$s6, _typeMap$type23, _typeMap$type24, _typeMap$type25, _typeMap$type26;
29874
29953
  var mode = _ref5.mode,
29875
29954
  sysOrderNo = _ref5.sysOrderNo,
29876
29955
  _ref5$isAllOrders = _ref5.isAllOrders,
29877
29956
  isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
29878
- var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrder];
29879
- var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo];
29957
+ var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrder];
29958
+ var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo];
29880
29959
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
29881
29960
  return order[typeMap$2[type].oIdKey] === systemOrderNo;
29882
29961
  });
@@ -29903,12 +29982,12 @@ var PublicReissue = function PublicReissue(props) {
29903
29982
  canEdit: true
29904
29983
  };
29905
29984
  }
29906
- var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
29985
+ var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
29907
29986
  var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
29908
29987
  var _order$typeMap$type$g;
29909
29988
  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;
29910
29989
  });
29911
- 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, type)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest, type) : [];
29990
+ var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.updateGoodsHandle(orders, orderRest, type)) : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.updateGoodsHandle(orders, orderRest, type) : [];
29912
29991
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
29913
29992
  var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
29914
29993
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
@@ -29916,30 +29995,30 @@ var PublicReissue = function PublicReissue(props) {
29916
29995
  return list;
29917
29996
  };
29918
29997
  var changeGoodHandle = function changeGoodHandle(val) {
29919
- var _typeMap$type25;
29998
+ var _typeMap$type27;
29920
29999
  var newValue = _objectSpread2({}, value);
29921
- 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 || [];
30000
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.key)] = val || [];
29922
30001
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
29923
30002
  };
29924
30003
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
29925
- var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
30004
+ var _typeMap$type28, _typeMap$type29, _value$typeMap$type$t2, _typeMap$type34, _value$typeMap$type$t3, _typeMap$type36;
29926
30005
  var newValue = _objectSpread2({}, value);
29927
- 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;
29928
- 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) {
29929
- var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
29930
- 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) || [];
30006
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo)] = val;
30007
+ if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderBillType) {
30008
+ var _value$typeMap$type$s7, _typeMap$type30, _typeMap$type32, _typeMap$type33;
30009
+ var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
29931
30010
  var targetOrder = val && orders.find(function (oItem) {
29932
- var _typeMap$type29;
29933
- return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
30011
+ var _typeMap$type31;
30012
+ return oItem[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.oIdKey] === val;
29934
30013
  });
29935
- 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];
30014
+ newValue[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.orderTypeKey];
29936
30015
  }
29937
- 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])) {
29938
- var _typeMap$type33;
29939
- 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)] = [];
29940
- } 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])) {
30016
+ if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
29941
30017
  var _typeMap$type35;
29942
- 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({
30018
+ 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)] = [];
30019
+ } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
30020
+ var _typeMap$type37;
30021
+ 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)] = getGoodDetails({
29943
30022
  mode: isStrict,
29944
30023
  sysOrderNo: val
29945
30024
  });
@@ -29947,27 +30026,27 @@ var PublicReissue = function PublicReissue(props) {
29947
30026
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
29948
30027
  };
29949
30028
  //显示选择商品按钮
29950
- 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]);
30029
+ var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.systemOrderNo]);
29951
30030
  var selectedGoodsChange = useCallback(function (skuList) {
29952
- var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
30031
+ var _typeMap$type39, _typeMap$type40, _typeMap$type41, _uniqBy, _typeMap$type42;
29953
30032
  var newValue = _objectSpread2({}, value);
29954
30033
  // 原订单商品
29955
30034
  var originTradeGoodList = getGoodDetails({
29956
30035
  mode: isStrict,
29957
- 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
30036
+ isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.isShowSelectTradeGoods
29958
30037
  }) || [];
29959
30038
  // 当前选中的所有商品【包含了原订单+商品库】
29960
- 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)]) || [];
29961
- 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) {
29962
- var _typeMap$type41;
29963
- 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']);
30039
+ var currentSelectGoodList = (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)]) || [];
30040
+ newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
30041
+ var _typeMap$type43;
30042
+ return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.uniqueKey) || 'uuid']);
29964
30043
  });
29965
30044
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
29966
- }, [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]);
30045
+ }, [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.key)], isStrict]);
29967
30046
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
29968
30047
  gutter: 8,
29969
30048
  wrap: true,
29970
- 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())
30049
+ id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.key) || "".concat(Date.now())
29971
30050
  }, /*#__PURE__*/React.createElement(Col, {
29972
30051
  className: "gutter-row",
29973
30052
  xs: {
@@ -29983,12 +30062,12 @@ var PublicReissue = function PublicReissue(props) {
29983
30062
  },
29984
30063
  disabled: disabled,
29985
30064
  allowClear: false,
29986
- 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)],
30065
+ value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrderNo)],
29987
30066
  onChange: function onChange(val) {
29988
30067
  return changeSystemOrderHandle(val);
29989
30068
  },
29990
- 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")
29991
- }, ((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) {
30069
+ placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.compType) || '', "\u7CFB\u7EDF\u5355")
30070
+ }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
29992
30071
  return /*#__PURE__*/React.createElement(Select.Option, {
29993
30072
  key: item[typeMap$2[type].oIdKey],
29994
30073
  value: item[typeMap$2[type].oIdKey],
@@ -30010,11 +30089,11 @@ var PublicReissue = function PublicReissue(props) {
30010
30089
  disabled: isSettingConfig ? !isSettingConfig : disabled,
30011
30090
  allowClear: false,
30012
30091
  options: reasonList,
30013
- 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)],
30092
+ 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.typeName)],
30014
30093
  onChange: function onChange(val) {
30015
30094
  return changeTypeHandle(val);
30016
30095
  }
30017
- })), (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, {
30096
+ })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
30018
30097
  className: "gutter-row",
30019
30098
  xs: {
30020
30099
  span: 11
@@ -30023,7 +30102,7 @@ var PublicReissue = function PublicReissue(props) {
30023
30102
  span: 6
30024
30103
  }
30025
30104
  }, /*#__PURE__*/React.createElement(Input, {
30026
- 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)],
30105
+ 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.systemOrderBillType)],
30027
30106
  disabled: disabled,
30028
30107
  readOnly: true
30029
30108
  }))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
@@ -30034,25 +30113,25 @@ var PublicReissue = function PublicReissue(props) {
30034
30113
  canUpdateNumber: showChangeBtn,
30035
30114
  hasSelectedSystemOrder: showChangeBtn,
30036
30115
  // showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
30037
- 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,
30038
- showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.showErpGoodsBtn,
30116
+ alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.alwaysShowChooseErpGoodsBtn,
30117
+ showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.showErpGoodsBtn,
30039
30118
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
30040
- value: 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.key)],
30119
+ value: 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.key)],
30041
30120
  onChange: function onChange(val) {
30042
30121
  return changeGoodHandle(val);
30043
30122
  },
30044
30123
  onModeChange: handleModeChange,
30045
- showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.showModeBtn),
30124
+ showModeBtn: showModeBtn,
30046
30125
  isStrict: isStrict,
30047
- isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.isShowSelectTradeGoods,
30048
- systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
30049
- selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.systemOrderNo)]] : [],
30126
+ isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods,
30127
+ systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
30128
+ selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.systemOrderNo)]] : [],
30050
30129
  tradeGoods: {
30051
30130
  originDataSource: getGoodDetails({
30052
30131
  mode: isStrict,
30053
- isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.isShowSelectTradeGoods
30132
+ isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type58 = typeMap$2[type]) === null || _typeMap$type58 === void 0 ? void 0 : _typeMap$type58.isShowSelectTradeGoods
30054
30133
  }),
30055
- uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type58 = typeMap$2[type]) === null || _typeMap$type58 === void 0 ? void 0 : _typeMap$type58.uniqueKey) || 'uuid',
30134
+ uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type59 = typeMap$2[type]) === null || _typeMap$type59 === void 0 ? void 0 : _typeMap$type59.uniqueKey) || 'uuid',
30056
30135
  selectedGoodsChange: selectedGoodsChange
30057
30136
  }
30058
30137
  })));
@@ -32,6 +32,7 @@ interface LogisticsInterceptionProps {
32
32
  showReason?: boolean;
33
33
  onJumpPage?: (val: any) => void;
34
34
  preCreateAndNotModified?: boolean;
35
+ interceptTypeDefaults?: Record<string, string>;
35
36
  }
36
37
  declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => React.JSX.Element;
37
38
  export default LogisticsInterception;
@@ -33,8 +33,20 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
33
33
  title: string;
34
34
  dataIndex: string;
35
35
  width: number;
36
- render: (val: any, record: any) => any;
37
- renderExport: (val: any, record: any) => any;
36
+ render: (val: boolean) => "否" | "是";
37
+ renderExport: (val: boolean) => "否" | "是";
38
+ } | {
39
+ title: string;
40
+ dataIndex: string;
41
+ width: number;
42
+ render: (val: string[]) => string;
43
+ renderExport: (val: string[]) => string;
44
+ } | {
45
+ title: string;
46
+ dataIndex: string;
47
+ width: number;
48
+ render: (val: any, record: any, _?: any, parent?: any, index?: number | undefined) => any;
49
+ renderExport: (val: any, record: any, _?: any, parent?: any, index?: number | undefined) => any;
38
50
  })[];
39
51
  WDT_SYSTEM_ORDER: {
40
52
  title: string;
@@ -1,3 +1,3 @@
1
1
  export declare const wlnUtils: {
2
- getOrderListSingleton: (orderNo: string) => Promise<any>;
2
+ getOrderListSingleton: (orderNo: string, isSplit?: boolean) => Promise<any>;
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.7.7-beta.0",
3
+ "version": "2.7.7-beta.10",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "2.7.7-beta.0",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.7.7-beta.9",
24
24
  "ahooks": "^3.7.4",
25
25
  "ali-react-table": "2.6.1",
26
26
  "bignumber.js": "^9.1.2",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "a671b946cfc210a0f9446c8ea9edb1b43f0a9831"
69
+ "gitHead": "5e7df843f7c481d3b61e55cc660ad41e7e956608"
70
70
  }