@kmkf-fe-packages/basic-components 2.7.7-beta.3 → 2.7.7-beta.4

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
@@ -14246,8 +14246,7 @@ var jstGoods = function jstGoods(props) {
14246
14246
  return option.label.includes(input);
14247
14247
  },
14248
14248
  style: {
14249
- minWidth: '100px',
14250
- maxWidth: '180px'
14249
+ width: '180px'
14251
14250
  },
14252
14251
  platformType: platformType
14253
14252
  })) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
@@ -20956,6 +20955,15 @@ var getYesOrNo$4 = function getYesOrNo(val) {
20956
20955
  if (isNull(val)) return null;
20957
20956
  return val ? '是' : '否';
20958
20957
  };
20958
+ function toNum$1(value) {
20959
+ if (typeof value === 'string') {
20960
+ return value ? +value : void 0;
20961
+ }
20962
+ if (typeof value === 'number') {
20963
+ return value;
20964
+ }
20965
+ return void 0;
20966
+ }
20959
20967
  var getColumns$3 = function getColumns(_ref) {
20960
20968
  var _ref$text = _ref.text,
20961
20969
  text = _ref$text === void 0 ? '' : _ref$text,
@@ -20970,13 +20978,6 @@ var getColumns$3 = function getColumns(_ref) {
20970
20978
  ellipsis: true,
20971
20979
  width: 250,
20972
20980
  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
20981
  }, {
20981
20982
  dataIndex: 'wlnSkuName',
20982
20983
  title: "sku\u540D\u79F0",
@@ -21032,7 +21033,7 @@ var getColumns$3 = function getColumns(_ref) {
21032
21033
  });
21033
21034
  }
21034
21035
  }, {
21035
- dataIndex: 'olnItemCOde',
21036
+ dataIndex: 'olnItemCode',
21036
21037
  title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
21037
21038
  align: 'center',
21038
21039
  ellipsis: true,
@@ -21066,7 +21067,7 @@ var getColumns$3 = function getColumns(_ref) {
21066
21067
  ellipsis: true,
21067
21068
  width: 100,
21068
21069
  render: function render(val, record, index) {
21069
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21070
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21070
21071
  style: {
21071
21072
  width: 70
21072
21073
  },
@@ -21092,44 +21093,76 @@ var getColumns$3 = function getColumns(_ref) {
21092
21093
  ellipsis: true,
21093
21094
  width: 250,
21094
21095
  render: renderTextEllipsis
21095
- }, {
21096
- dataIndex: 'originPrice',
21097
- title: "\u539F\u4EF7",
21098
- align: 'center',
21099
- ellipsis: true,
21100
- width: 250,
21101
- render: renderTextEllipsis
21102
21096
  }, {
21103
21097
  dataIndex: 'price',
21104
21098
  title: "\u5355\u4EF7",
21105
21099
  align: 'center',
21106
21100
  ellipsis: true,
21107
21101
  width: 250,
21108
- render: renderTextEllipsis
21102
+ render: function render(val, record, index) {
21103
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21104
+ style: {
21105
+ width: 70
21106
+ },
21107
+ value: val,
21108
+ min: 0,
21109
+ precision: 2,
21110
+ onChange: function onChange(num) {
21111
+ return updateHandle(num, index, 'price');
21112
+ }
21113
+ }) : /*#__PURE__*/React.createElement("span", null, val);
21114
+ }
21109
21115
  }, {
21110
21116
  dataIndex: 'receivable',
21111
21117
  title: "\u9500\u552E\u91D1\u989D",
21112
21118
  align: 'center',
21113
21119
  ellipsis: true,
21114
21120
  width: 250,
21115
- render: renderTextEllipsis
21121
+ render: function render(val, record, index) {
21122
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21123
+ style: {
21124
+ width: 70
21125
+ },
21126
+ value: val,
21127
+ min: 0,
21128
+ precision: 2,
21129
+ onChange: function onChange(num) {
21130
+ return updateHandle(num, index, 'receivable');
21131
+ }
21132
+ }) : /*#__PURE__*/React.createElement("span", null, val);
21133
+ }
21116
21134
  }, {
21117
21135
  dataIndex: 'type',
21118
21136
  title: "\u8D60\u54C1\u7C7B\u578B",
21119
21137
  align: 'center',
21120
21138
  ellipsis: true,
21121
21139
  width: 100,
21122
- render: renderTextEllipsis
21140
+ render: function render(val, record, index) {
21141
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21142
+ value: val,
21143
+ onChange: function onChange(value) {
21144
+ updateHandle(value, index, 'type');
21145
+ },
21146
+ options: [{
21147
+ label: '赠品',
21148
+ value: 1
21149
+ }, {
21150
+ label: '非赠品',
21151
+ value: 0
21152
+ }]
21153
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21154
+ }
21123
21155
  }, {
21124
21156
  dataIndex: 'isPackage',
21125
21157
  title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
21126
21158
  align: 'center',
21127
21159
  ellipsis: true,
21160
+ width: 200,
21128
21161
  render: function render(val, record, index) {
21129
21162
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21130
21163
  value: val,
21131
21164
  onChange: function onChange(value) {
21132
- updateHandle(value, index, 'isGift');
21165
+ updateHandle(value, index, 'isPackage');
21133
21166
  },
21134
21167
  options: [{
21135
21168
  label: '是',
@@ -21139,28 +21172,15 @@ var getColumns$3 = function getColumns(_ref) {
21139
21172
  value: false
21140
21173
  }]
21141
21174
  }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21142
- },
21143
- width: 200
21175
+ }
21144
21176
  }, {
21145
21177
  dataIndex: 'hasRefund',
21146
21178
  title: "\u662F\u5426\u9000\u6B3E",
21147
21179
  align: 'center',
21148
21180
  ellipsis: true,
21149
21181
  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));
21182
+ render: function render(val) {
21183
+ return getYesOrNo$4(val);
21164
21184
  }
21165
21185
  }, {
21166
21186
  dataIndex: 'unit',
@@ -21198,13 +21218,6 @@ var getColumns$3 = function getColumns(_ref) {
21198
21218
  ellipsis: true,
21199
21219
  width: 250,
21200
21220
  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
21221
  }, {
21209
21222
  dataIndex: 'wlnSkuName',
21210
21223
  title: "sku\u540D\u79F0",
@@ -21260,7 +21273,7 @@ var getColumns$3 = function getColumns(_ref) {
21260
21273
  });
21261
21274
  }
21262
21275
  }, {
21263
- dataIndex: 'olnItemCOde',
21276
+ dataIndex: 'olnItemCode',
21264
21277
  title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
21265
21278
  align: 'center',
21266
21279
  ellipsis: true,
@@ -21286,15 +21299,40 @@ var getColumns$3 = function getColumns(_ref) {
21286
21299
  align: 'center',
21287
21300
  ellipsis: true,
21288
21301
  width: 250,
21289
- render: renderTextEllipsis
21302
+ render: function render(val, record, index) {
21303
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21304
+ style: {
21305
+ width: 70
21306
+ },
21307
+ value: val,
21308
+ min: 0,
21309
+ precision: 2,
21310
+ onChange: function onChange(num) {
21311
+ return updateHandle(num, index, 'price');
21312
+ }
21313
+ }) : /*#__PURE__*/React.createElement("span", null, val);
21314
+ }
21290
21315
  }, {
21291
21316
  dataIndex: 'number',
21292
21317
  title: "".concat(text, "\u6570\u91CF"),
21293
21318
  align: 'center',
21294
21319
  ellipsis: true,
21295
21320
  width: 100,
21321
+ validator: function validator(_rule, value) {
21322
+ var productName = '';
21323
+ if (((value === null || value === void 0 ? void 0 : value.wlnReissueGoods) || []).some(function (goods) {
21324
+ var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.number);
21325
+ var res = typeof qty === 'number' ? qty < 1 : true;
21326
+ if (res) {
21327
+ productName = (goods === null || goods === void 0 ? void 0 : goods.wlnItemName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.wlnItemName, "]") : '';
21328
+ }
21329
+ return res;
21330
+ })) {
21331
+ return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21332
+ }
21333
+ },
21296
21334
  render: function render(val, record, index) {
21297
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21335
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21298
21336
  style: {
21299
21337
  width: 70
21300
21338
  },
@@ -21307,28 +21345,21 @@ var getColumns$3 = function getColumns(_ref) {
21307
21345
  }) : /*#__PURE__*/React.createElement("span", null, val);
21308
21346
  }
21309
21347
  }, {
21310
- dataIndex: 'outPrice',
21348
+ dataIndex: 'money',
21311
21349
  title: "\u5B9E\u4ED8\u91D1\u989D",
21312
21350
  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 : '';
21351
+ render: function render(val, record, index) {
21352
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21353
+ style: {
21354
+ width: 130
21355
+ },
21356
+ value: val,
21357
+ min: 0,
21358
+ precision: 2,
21359
+ onChange: function onChange(num) {
21360
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'money');
21361
+ }
21362
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21332
21363
  }
21333
21364
  }, {
21334
21365
  dataIndex: 'type',
@@ -21336,17 +21367,32 @@ var getColumns$3 = function getColumns(_ref) {
21336
21367
  align: 'center',
21337
21368
  ellipsis: true,
21338
21369
  width: 100,
21339
- render: renderTextEllipsis
21370
+ render: function render(val, record, index) {
21371
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21372
+ value: val,
21373
+ onChange: function onChange(value) {
21374
+ updateHandle(value, index, 'type');
21375
+ },
21376
+ options: [{
21377
+ label: '赠品',
21378
+ value: 1
21379
+ }, {
21380
+ label: '非赠品',
21381
+ value: 0
21382
+ }]
21383
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21384
+ }
21340
21385
  }, {
21341
21386
  dataIndex: 'isPackage',
21342
21387
  title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
21343
21388
  align: 'center',
21344
21389
  ellipsis: true,
21390
+ width: 200,
21345
21391
  render: function render(val, record, index) {
21346
21392
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21347
21393
  value: val,
21348
21394
  onChange: function onChange(value) {
21349
- updateHandle(value, index, 'isGift');
21395
+ updateHandle(value, index, 'isPackage');
21350
21396
  },
21351
21397
  options: [{
21352
21398
  label: '是',
@@ -21356,8 +21402,7 @@ var getColumns$3 = function getColumns(_ref) {
21356
21402
  value: false
21357
21403
  }]
21358
21404
  }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21359
- },
21360
- width: 100
21405
+ }
21361
21406
  }, {
21362
21407
  dataIndex: 'unit',
21363
21408
  title: "\u5355\u4F4D",
@@ -21399,7 +21444,7 @@ var getYesOrNo$5 = function getYesOrNo(val) {
21399
21444
  if (isNull(val)) return null;
21400
21445
  return val ? '是' : '否';
21401
21446
  };
21402
- function toNum$1(value) {
21447
+ function toNum$2(value) {
21403
21448
  if (typeof value === 'string') {
21404
21449
  return value ? +value : void 0;
21405
21450
  }
@@ -21579,7 +21624,7 @@ var getColumns$4 = function getColumns(_ref) {
21579
21624
  validator: function validator(_rule, value) {
21580
21625
  var goodsName = '';
21581
21626
  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);
21627
+ var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
21583
21628
  var res = typeof qty === 'number' ? qty < 1 : true;
21584
21629
  if (res) {
21585
21630
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -21700,7 +21745,7 @@ var getColumns$4 = function getColumns(_ref) {
21700
21745
  validator: function validator(_rule, value) {
21701
21746
  var goodsName = '';
21702
21747
  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);
21748
+ var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
21704
21749
  var res = typeof qty === 'number' ? qty < 1 : true;
21705
21750
  if (res) {
21706
21751
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -21801,7 +21846,7 @@ var fillAttrs = function fillAttrs(item) {
21801
21846
  if (!item.align) item.align = 'center';
21802
21847
  return item;
21803
21848
  };
21804
- function toNum$2(value) {
21849
+ function toNum$3(value) {
21805
21850
  if (typeof value === 'string') {
21806
21851
  return value ? +value : void 0;
21807
21852
  }
@@ -22041,7 +22086,7 @@ var getColumns$5 = function getColumns() {
22041
22086
  validator: function validator(_rule, value) {
22042
22087
  var goodsName = '';
22043
22088
  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);
22089
+ var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.qty);
22045
22090
  var res = typeof qty === 'number' ? qty < 1 : true;
22046
22091
  if (res) {
22047
22092
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
@@ -22142,7 +22187,7 @@ var getColumns$5 = function getColumns() {
22142
22187
  validator: function validator(_rule, value) {
22143
22188
  var goodsName = '';
22144
22189
  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);
22190
+ var v = toNum$3(goods === null || goods === void 0 ? void 0 : goods.salePrice);
22146
22191
  var res = typeof v === 'number' ? v < 0 : true;
22147
22192
  if (res) {
22148
22193
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
@@ -22172,7 +22217,7 @@ var getColumns$5 = function getColumns() {
22172
22217
  validator: function validator(_rule, value) {
22173
22218
  var goodsName = '';
22174
22219
  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);
22220
+ var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.qty);
22176
22221
  var res = typeof qty === 'number' ? qty < 1 : true;
22177
22222
  if (res) {
22178
22223
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
@@ -22517,7 +22562,7 @@ var getColumns$5 = function getColumns() {
22517
22562
  };
22518
22563
  };
22519
22564
 
22520
- function toNum$3(value) {
22565
+ function toNum$4(value) {
22521
22566
  if (typeof value === 'string') {
22522
22567
  return value ? +value : void 0;
22523
22568
  }
@@ -22735,7 +22780,7 @@ var getColumns$6 = function getColumns() {
22735
22780
  if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
22736
22781
  var title = '';
22737
22782
  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);
22783
+ var realNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.realNum);
22739
22784
  var res = typeof realNum === 'number' ? realNum < 1 : true;
22740
22785
  if (res) {
22741
22786
  title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -22765,7 +22810,7 @@ var getColumns$6 = function getColumns() {
22765
22810
  validator: function validator(_rule, value) {
22766
22811
  var title = '';
22767
22812
  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);
22813
+ var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22769
22814
  var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
22770
22815
  if (res) {
22771
22816
  title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -22926,7 +22971,7 @@ var getColumns$6 = function getColumns() {
22926
22971
  validator: function validator(_rule, value) {
22927
22972
  var title = '';
22928
22973
  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);
22974
+ var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22930
22975
  var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
22931
22976
  if (res) {
22932
22977
  title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -23093,7 +23138,7 @@ var getColumns$6 = function getColumns() {
23093
23138
  if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
23094
23139
  var title = '';
23095
23140
  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);
23141
+ var realNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.realNum);
23097
23142
  var res = typeof realNum === 'number' ? realNum < 1 : true;
23098
23143
  if (res) {
23099
23144
  title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -23126,7 +23171,7 @@ var getColumns$6 = function getColumns() {
23126
23171
  validator: function validator(_rule, value) {
23127
23172
  var title = '';
23128
23173
  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);
23174
+ var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
23130
23175
  var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
23131
23176
  if (res) {
23132
23177
  title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
@@ -23187,7 +23232,7 @@ var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
23187
23232
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
23188
23233
  return false;
23189
23234
  };
23190
- function toNum$4(value) {
23235
+ function toNum$5(value) {
23191
23236
  if (typeof value === 'string') {
23192
23237
  return value ? +value : void 0;
23193
23238
  }
@@ -23522,7 +23567,7 @@ var getColumns$7 = function getColumns(_ref) {
23522
23567
  validator: function validator(_rule, value) {
23523
23568
  var productName = '';
23524
23569
  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);
23570
+ var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
23526
23571
  var res = typeof qty === 'number' ? qty < 1 : true;
23527
23572
  if (res) {
23528
23573
  productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
@@ -23680,7 +23725,7 @@ var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
23680
23725
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
23681
23726
  return false;
23682
23727
  };
23683
- function toNum$5(value) {
23728
+ function toNum$6(value) {
23684
23729
  if (typeof value === 'string') {
23685
23730
  return value ? +value : void 0;
23686
23731
  }
@@ -24068,7 +24113,7 @@ var getColumns$9 = function getColumns(_ref) {
24068
24113
  validator: function validator(_rule, value) {
24069
24114
  var goodsName = '';
24070
24115
  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);
24116
+ var qty = toNum$6(goods === null || goods === void 0 ? void 0 : goods.sellCount);
24072
24117
  var res = typeof qty === 'number' ? qty < 1 : true;
24073
24118
  if (res) {
24074
24119
  goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
@@ -26436,6 +26481,7 @@ var jstUtils = {
26436
26481
 
26437
26482
  var singletonMap$4 = new Map();
26438
26483
  var getOrderListSingleton = function getOrderListSingleton(orderNo) {
26484
+ var isSplit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
26439
26485
  if (!singletonMap$4.has(orderNo)) {
26440
26486
  var p = new Promise(function (resolve, reject) {
26441
26487
  var doReject = function doReject(err) {
@@ -26446,7 +26492,8 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
26446
26492
  extendRequest('/qy/gdfw/order/wlnOrderList', {
26447
26493
  method: 'post',
26448
26494
  data: {
26449
- billCode: orderNo
26495
+ billCode: orderNo,
26496
+ isSplit: isSplit
26450
26497
  }
26451
26498
  }).then(function (data) {
26452
26499
  if (data === null || data === void 0 ? void 0 : data.success) {
@@ -29660,15 +29707,21 @@ var typeMap$2 = {
29660
29707
  updateGoodsHandle: updateWlnGoodsHandle,
29661
29708
  alwaysShowChooseErpGoodsBtn: true,
29662
29709
  orderTypeKey: 'orderType',
29663
- oIdKey: 'billNo',
29710
+ oIdKey: 'tradeNo',
29664
29711
  outerOiIdKey: 'tpTid',
29665
29712
  goodDetailsKey: 'items',
29666
29713
  isShowSelectTradeGoods: true,
29667
- showModeBtn: true
29714
+ checkShowModeBtn: function checkShowModeBtn(value) {
29715
+ var _value$wlnSystemOrder, _value$wlnSystemOrder2;
29716
+ 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) {
29717
+ return (value === null || value === void 0 ? void 0 : value.wlnSystemOrderNo) === (order === null || order === void 0 ? void 0 : order.billNo);
29718
+ }));
29719
+ return (selectOrder === null || selectOrder === void 0 ? void 0 : selectOrder.tpTid.includes('|')) || (selectOrder === null || selectOrder === void 0 ? void 0 : selectOrder.tid.includes('|'));
29720
+ }
29668
29721
  }
29669
29722
  };
29670
29723
  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;
29724
+ 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
29725
  var value = props.value,
29673
29726
  onChange = props.onChange,
29674
29727
  _props$reasonList = props.reasonList,
@@ -29677,6 +29730,7 @@ var PublicReissue = function PublicReissue(props) {
29677
29730
  type = props.type,
29678
29731
  isSettingConfig = props.isSettingConfig,
29679
29732
  other = _objectWithoutProperties(props, _excluded$m);
29733
+ 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
29734
  var getOrderFlag = useRef(false);
29681
29735
  var _useState = useState(false),
29682
29736
  _useState2 = _slicedToArray(_useState, 2),
@@ -29684,11 +29738,11 @@ var PublicReissue = function PublicReissue(props) {
29684
29738
  setIsStrict = _useState2[1];
29685
29739
  // TODO: 在修改场景下手动获取一次订单详情中数据
29686
29740
  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;
29741
+ var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type3, _value$typeMap$type$s3, _typeMap$type4, _value$typeMap$type$s4, _typeMap$type5;
29742
+ 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)) {
29743
+ var _value$typeMap$type$s5, _typeMap$type6;
29690
29744
  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);
29745
+ 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
29746
  }
29693
29747
  return;
29694
29748
  }, [value]);
@@ -29718,27 +29772,30 @@ var PublicReissue = function PublicReissue(props) {
29718
29772
  }, []);
29719
29773
  var getOrderList = /*#__PURE__*/function () {
29720
29774
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
29721
- var _typeMap$type5;
29775
+ var _typeMap$type7;
29776
+ var isSplit,
29777
+ _args = arguments;
29722
29778
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29723
29779
  while (1) switch (_context.prev = _context.next) {
29724
29780
  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;
29781
+ isSplit = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
29782
+ (_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.getOrderList(orderNo, isSplit).then(function (data) {
29783
+ var _valueRef$current3, _typeMap$type8, _typeMap$type9, _typeMap$type13, _ref3, _typeMap$type14;
29727
29784
  var orders = (type === 'WLN_REISSUE_GOODS' ? data === null || data === void 0 ? void 0 : data.orders : data) || [];
29728
29785
  var showOrderInfo = orders === null || orders === void 0 ? void 0 : orders.map(function (orderItem) {
29729
29786
  return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
29730
29787
  });
29731
29788
  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;
29789
+ 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];
29790
+ 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) {
29791
+ var _typeMap$type11, _typeMap$type12;
29735
29792
  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;
29793
+ var _typeMap$type10;
29794
+ return oItem[(_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.oIdKey] === systemOrderNo;
29738
29795
  });
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];
29796
+ 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
29797
  }
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]) || {}), {}, {
29798
+ 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
29799
  showOrderInfo: showOrderInfo,
29743
29800
  orders: orders
29744
29801
  })));
@@ -29746,7 +29803,7 @@ var PublicReissue = function PublicReissue(props) {
29746
29803
  onChange(newValue);
29747
29804
  }
29748
29805
  });
29749
- case 1:
29806
+ case 2:
29750
29807
  case "end":
29751
29808
  return _context.stop();
29752
29809
  }
@@ -29757,31 +29814,30 @@ var PublicReissue = function PublicReissue(props) {
29757
29814
  };
29758
29815
  }();
29759
29816
  var changeTypeHandle = function changeTypeHandle(val) {
29760
- var _typeMap$type13;
29817
+ var _typeMap$type15;
29761
29818
  var typeName = val === null || val === void 0 ? void 0 : val[0];
29762
29819
  // if (typeName === value?.[typeMap[type]?.typeName]?.[0]) return
29763
29820
  // const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
29764
29821
  var newValue = _objectSpread2({}, value);
29765
- newValue[(_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.typeName] = val;
29822
+ newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.typeName] = val;
29766
29823
  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({
29824
+ var _typeMap$type16;
29825
+ newValue[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.key] = getGoodDetails({
29769
29826
  mode: isStrict
29770
29827
  });
29771
29828
  } else if (typeName === '2') {
29772
- var _typeMap$type15;
29829
+ var _typeMap$type17;
29773
29830
  // 切换到非原单,清空列表
29774
- newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.key] = [];
29831
+ newValue[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.key] = [];
29775
29832
  }
29776
- console.log('**** changeTypeHandle', newValue);
29777
29833
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
29778
29834
  };
29779
29835
  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';
29836
+ var _value$typeMap$type$t, _typeMap$type18, _typeMap$type19;
29837
+ 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
29838
  setIsStrict(mode);
29783
29839
  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({
29840
+ 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
29841
  mode: mode
29786
29842
  }))));
29787
29843
  };
@@ -29798,7 +29854,7 @@ var PublicReissue = function PublicReissue(props) {
29798
29854
  });
29799
29855
  }
29800
29856
  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]]);
29857
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key]]);
29802
29858
  // 用于跟踪已经处理过的 sysItemId,避免重复处理
29803
29859
  var processedSysItemIdsRef = useRef(new Set());
29804
29860
  useEffect(function () {
@@ -29870,13 +29926,13 @@ var PublicReissue = function PublicReissue(props) {
29870
29926
  }
29871
29927
  }, [sysItemIdMap]);
29872
29928
  var getGoodDetails = function getGoodDetails(_ref5) {
29873
- var _typeMap$type19, _typeMap$type20, _value$typeMap$type$s6, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
29929
+ var _typeMap$type21, _typeMap$type22, _value$typeMap$type$s6, _typeMap$type23, _typeMap$type24, _typeMap$type25, _typeMap$type26;
29874
29930
  var mode = _ref5.mode,
29875
29931
  sysOrderNo = _ref5.sysOrderNo,
29876
29932
  _ref5$isAllOrders = _ref5.isAllOrders,
29877
29933
  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];
29934
+ 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];
29935
+ 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
29936
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
29881
29937
  return order[typeMap$2[type].oIdKey] === systemOrderNo;
29882
29938
  });
@@ -29903,12 +29959,12 @@ var PublicReissue = function PublicReissue(props) {
29903
29959
  canEdit: true
29904
29960
  };
29905
29961
  }
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] : [];
29962
+ 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
29963
  var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
29908
29964
  var _order$typeMap$type$g;
29909
29965
  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
29966
  });
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) : [];
29967
+ 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
29968
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
29913
29969
  var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
29914
29970
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
@@ -29916,30 +29972,30 @@ var PublicReissue = function PublicReissue(props) {
29916
29972
  return list;
29917
29973
  };
29918
29974
  var changeGoodHandle = function changeGoodHandle(val) {
29919
- var _typeMap$type25;
29975
+ var _typeMap$type27;
29920
29976
  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 || [];
29977
+ 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
29978
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
29923
29979
  };
29924
29980
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
29925
- var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
29981
+ var _typeMap$type28, _typeMap$type29, _value$typeMap$type$t2, _typeMap$type34, _value$typeMap$type$t3, _typeMap$type36;
29926
29982
  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) || [];
29983
+ 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;
29984
+ 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) {
29985
+ var _value$typeMap$type$s7, _typeMap$type30, _typeMap$type32, _typeMap$type33;
29986
+ 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
29987
  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;
29988
+ var _typeMap$type31;
29989
+ return oItem[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.oIdKey] === val;
29934
29990
  });
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];
29991
+ 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
29992
  }
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])) {
29993
+ 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
29994
  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({
29995
+ 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)] = [];
29996
+ } 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])) {
29997
+ var _typeMap$type37;
29998
+ 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
29999
  mode: isStrict,
29944
30000
  sysOrderNo: val
29945
30001
  });
@@ -29947,27 +30003,27 @@ var PublicReissue = function PublicReissue(props) {
29947
30003
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
29948
30004
  };
29949
30005
  //显示选择商品按钮
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]);
30006
+ 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
30007
  var selectedGoodsChange = useCallback(function (skuList) {
29952
- var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
30008
+ var _typeMap$type39, _typeMap$type40, _typeMap$type41, _uniqBy, _typeMap$type42;
29953
30009
  var newValue = _objectSpread2({}, value);
29954
30010
  // 原订单商品
29955
30011
  var originTradeGoodList = getGoodDetails({
29956
30012
  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
30013
+ 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
30014
  }) || [];
29959
30015
  // 当前选中的所有商品【包含了原订单+商品库】
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']);
30016
+ 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)]) || [];
30017
+ 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) {
30018
+ var _typeMap$type43;
30019
+ 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
30020
  });
29965
30021
  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]);
30022
+ }, [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
30023
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
29968
30024
  gutter: 8,
29969
30025
  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())
30026
+ 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
30027
  }, /*#__PURE__*/React.createElement(Col, {
29972
30028
  className: "gutter-row",
29973
30029
  xs: {
@@ -29983,12 +30039,12 @@ var PublicReissue = function PublicReissue(props) {
29983
30039
  },
29984
30040
  disabled: disabled,
29985
30041
  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)],
30042
+ 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
30043
  onChange: function onChange(val) {
29988
30044
  return changeSystemOrderHandle(val);
29989
30045
  },
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) {
30046
+ 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")
30047
+ }, ((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
30048
  return /*#__PURE__*/React.createElement(Select.Option, {
29993
30049
  key: item[typeMap$2[type].oIdKey],
29994
30050
  value: item[typeMap$2[type].oIdKey],
@@ -30010,11 +30066,11 @@ var PublicReissue = function PublicReissue(props) {
30010
30066
  disabled: isSettingConfig ? !isSettingConfig : disabled,
30011
30067
  allowClear: false,
30012
30068
  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)],
30069
+ 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
30070
  onChange: function onChange(val) {
30015
30071
  return changeTypeHandle(val);
30016
30072
  }
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, {
30073
+ })), (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
30074
  className: "gutter-row",
30019
30075
  xs: {
30020
30076
  span: 11
@@ -30023,7 +30079,7 @@ var PublicReissue = function PublicReissue(props) {
30023
30079
  span: 6
30024
30080
  }
30025
30081
  }, /*#__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)],
30082
+ 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
30083
  disabled: disabled,
30028
30084
  readOnly: true
30029
30085
  }))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
@@ -30034,25 +30090,25 @@ var PublicReissue = function PublicReissue(props) {
30034
30090
  canUpdateNumber: showChangeBtn,
30035
30091
  hasSelectedSystemOrder: showChangeBtn,
30036
30092
  // 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,
30093
+ 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,
30094
+ 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
30095
  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)],
30096
+ 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
30097
  onChange: function onChange(val) {
30042
30098
  return changeGoodHandle(val);
30043
30099
  },
30044
30100
  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),
30101
+ showModeBtn: showModeBtn,
30046
30102
  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)]] : [],
30103
+ 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,
30104
+ 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,
30105
+ 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
30106
  tradeGoods: {
30051
30107
  originDataSource: getGoodDetails({
30052
30108
  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
30109
+ 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
30110
  }),
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',
30111
+ 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
30112
  selectedGoodsChange: selectedGoodsChange
30057
30113
  }
30058
30114
  })));
@@ -29,6 +29,18 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
29
29
  width: number;
30
30
  render?: undefined;
31
31
  renderExport?: undefined;
32
+ } | {
33
+ title: string;
34
+ dataIndex: string;
35
+ width: number;
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;
32
44
  } | {
33
45
  title: string;
34
46
  dataIndex: 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.3",
3
+ "version": "2.7.7-beta.4",
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.3",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.7.7-beta.4",
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": "1bcc57eaa970d01d8d2195f3087ec20f3ab93060"
69
+ "gitHead": "ecbbbefda110b23e43e64db43301f165434c3d17"
70
70
  }