@kmkf-fe-packages/basic-components 2.3.15 → 2.3.17

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
@@ -8686,6 +8686,21 @@ var processErpSendGood = function processErpSendGood(getValue) {
8686
8686
  return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8687
8687
  };
8688
8688
  };
8689
+ var processErpReturnWarehouse = function processErpReturnWarehouse(getValue) {
8690
+ return function (nex, config) {
8691
+ var kmReturnWarehouseMap = {
8692
+ KM_RETURN_WAREHOUSE: {
8693
+ list: 'kmReturnWarehouse'
8694
+ }
8695
+ };
8696
+ var initValue = [{
8697
+ kmReturnWarehouseName: '',
8698
+ kmReturnWarehouseId: ''
8699
+ }];
8700
+ var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(kmReturnWarehouseMap[nex.workOrderComponentType].list)), initValue);
8701
+ return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8702
+ };
8703
+ };
8689
8704
  var processBsPosting = function processBsPosting(getValue) {
8690
8705
  return function (nex, config) {
8691
8706
  var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
@@ -8985,6 +9000,14 @@ var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
8985
9000
  });
8986
9001
  };
8987
9002
  };
9003
+ var processKmExchangeGoods = function processKmExchangeGoods(getValue) {
9004
+ return function (nex, config) {
9005
+ return _defineProperty({}, nex.uniqueKey, {
9006
+ kmExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmExchangeGoods")), []),
9007
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
9008
+ });
9009
+ };
9010
+ };
8988
9011
  var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
8989
9012
  return function (nex, config) {
8990
9013
  return _defineProperty({}, nex.uniqueKey, {
@@ -9201,6 +9224,28 @@ var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
9201
9224
  };
9202
9225
  };
9203
9226
  };
9227
+ var processKmReturnGoods = function processKmReturnGoods(templateColumns) {
9228
+ return function (getValue) {
9229
+ return function (nex, config) {
9230
+ var orderNo = '';
9231
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9232
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9233
+ });
9234
+ if (tradeId) {
9235
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
9236
+ }
9237
+ return _defineProperty({}, nex.uniqueKey, {
9238
+ kmSystemOrder: {
9239
+ orderNo: orderNo
9240
+ },
9241
+ kmReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
9242
+ kmReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnGoods")), []),
9243
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
9244
+ kmSystemOrderNo: getValue("".concat(nex.uniqueKey, "_kmSystemOrderNo"))
9245
+ });
9246
+ };
9247
+ };
9248
+ };
9204
9249
  var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
9205
9250
  return function (getValue) {
9206
9251
  return function (nex, config) {
@@ -9294,14 +9339,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9294
9339
  };
9295
9340
  var processLabel = function processLabel(getValue) {
9296
9341
  return function (nex, config) {
9297
- var _ref74;
9298
- return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
9342
+ var _ref77;
9343
+ return _ref77 = {}, _defineProperty(_ref77, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref77, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref77;
9299
9344
  };
9300
9345
  };
9301
9346
  var processMemberLevel = function processMemberLevel(getValue) {
9302
9347
  return function (nex, config) {
9303
- var _ref75;
9304
- return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
9348
+ var _ref78;
9349
+ return _ref78 = {}, _defineProperty(_ref78, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref78, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref78;
9305
9350
  };
9306
9351
  };
9307
9352
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9418,6 +9463,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9418
9463
  BS_E3_SEND_GOOD: processErpSendGood,
9419
9464
  KM_SEND_GOOD: processErpSendGood,
9420
9465
  GY_SEND_GOOD: processErpSendGood,
9466
+ KM_RETURN_WAREHOUSE: processErpReturnWarehouse,
9421
9467
  BS_POSTING: processBsPosting,
9422
9468
  BS_GOODS: processBsGoods,
9423
9469
  WDT_GOODS: processWdtGoods(templateColumns),
@@ -9428,10 +9474,12 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9428
9474
  GY_GOODS: processGyGoods(templateColumns),
9429
9475
  KM_GOODS: processKmGoods(templateColumns),
9430
9476
  KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
9477
+ KM_RETURN_GOODS: processKmReturnGoods(templateColumns),
9431
9478
  JST_GOODS: processJstGoods(templateColumns),
9432
9479
  BS_REISSUE_GOODS: processBsReissueGoods,
9433
9480
  BS_EXCHANGE_GOODS: processBsExchangeGoods,
9434
9481
  WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
9482
+ KM_EXCHANGE_GOODS: processKmExchangeGoods,
9435
9483
  JST_EXCHANGE_GOODS: processJstExchangeGoods,
9436
9484
  BS_RETURN_GOODS: processBsReturnGoods,
9437
9485
  WDT_RETURN_GOODS: processWdtReturnGoods(),
@@ -14022,10 +14070,14 @@ var typeInitValueMap = {
14022
14070
  }],
14023
14071
  4: [{
14024
14072
  deliveryNo: null
14073
+ }],
14074
+ 5: [{
14075
+ returnWarehouseName: null,
14076
+ returnWarehouseId: null
14025
14077
  }]
14026
14078
  };
14027
14079
  var jstGoods = function jstGoods(props) {
14028
- var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12, _value$changeIndex13;
14080
+ var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12, _value$changeIndex13, _value$changeIndex14, _value$changeIndex15, _value$changeIndex16, _value$changeIndex17;
14029
14081
  var _props$value = props.value,
14030
14082
  value = _props$value === void 0 ? [] : _props$value,
14031
14083
  onChange = props.onChange,
@@ -14098,6 +14150,21 @@ var jstGoods = function jstGoods(props) {
14098
14150
  newList[changeIndex] = changeOrderInfo;
14099
14151
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
14100
14152
  };
14153
+ var handleSelectedReturn = function handleSelectedReturn(val, type, option, onlyShowFieldSelect) {
14154
+ var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
14155
+ changeOrderInfo[type] = val;
14156
+ if (!onlyShowFieldSelect) {
14157
+ changeOrderInfo['returnWarehouseId'] = option.value;
14158
+ }
14159
+ if (isSelectName && type === 'returnWarehouseName') {
14160
+ // 如果发货仓名称存的是name,将id存入快照,同时把id替换成名称
14161
+ changeOrderInfo['sendSnapshotId'] = option.value;
14162
+ changeOrderInfo['returnWarehouseName'] = option.label;
14163
+ }
14164
+ var newList = _toConsumableArray(value);
14165
+ newList[changeIndex] = changeOrderInfo;
14166
+ onChange === null || onChange === void 0 ? void 0 : onChange(newList);
14167
+ };
14101
14168
  var filterOption = function filterOption(input, option) {
14102
14169
  var _option$label;
14103
14170
  return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').includes(input);
@@ -14212,7 +14279,35 @@ var jstGoods = function jstGoods(props) {
14212
14279
  return changeInputHandle(e.target.value, 'deliveryNo');
14213
14280
  },
14214
14281
  value: (_value$changeIndex13 = value[changeIndex]) === null || _value$changeIndex13 === void 0 ? void 0 : _value$changeIndex13.sendName
14215
- })) : null) : null);
14282
+ })) : null, type === 5 ? /*#__PURE__*/React.createElement(Space, null, ['returnWarehouseId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
14283
+ disabled: disabled,
14284
+ placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u7F16\u7801",
14285
+ onChange: function onChange(e) {
14286
+ return changeInputHandle(e.target.value, 'returnWarehouseId');
14287
+ },
14288
+ value: (_value$changeIndex14 = value[changeIndex]) === null || _value$changeIndex14 === void 0 ? void 0 : _value$changeIndex14.returnWarehouseId
14289
+ }), ['returnWarehouseName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React.createElement(Select, {
14290
+ style: {
14291
+ minWidth: '100px',
14292
+ maxWidth: '180px'
14293
+ },
14294
+ disabled: disabled,
14295
+ placeholder: "\u9000\u8D27\u4ED3\u540D\u79F0",
14296
+ showSearch: true,
14297
+ options: sendOptions,
14298
+ filterOption: filterOption,
14299
+ value: ((_value$changeIndex15 = value[changeIndex]) === null || _value$changeIndex15 === void 0 ? void 0 : _value$changeIndex15.sendSnapshotId) || ((_value$changeIndex16 = value[changeIndex]) === null || _value$changeIndex16 === void 0 ? void 0 : _value$changeIndex16.returnWarehouseName) || null,
14300
+ onChange: function onChange(value, option) {
14301
+ return handleSelectedReturn(value, 'returnWarehouseName', option, onlyShowFieldSelect);
14302
+ }
14303
+ }) : /*#__PURE__*/React.createElement(Input, {
14304
+ disabled: disabled,
14305
+ placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u540D\u79F0",
14306
+ onChange: function onChange(e) {
14307
+ return changeInputHandle(e.target.value, 'returnWarehouseName');
14308
+ },
14309
+ value: (_value$changeIndex17 = value[changeIndex]) === null || _value$changeIndex17 === void 0 ? void 0 : _value$changeIndex17.returnWarehouseName
14310
+ }))) : null) : null);
14216
14311
  };
14217
14312
 
14218
14313
  var css_248z$a = ".jstGoodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.jstGoodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.jstGoodsBox .right-context {\n font-size: 12px;\n}\n.jstGoodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.jstGoodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.jstGoodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.jstimgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n display: flex;\n justify-items: center;\n align-items: center;\n}\n.jstimgBox .add-btn {\n color: #86909c;\n}\n.jstimgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
@@ -21681,16 +21776,28 @@ function toNum$3(value) {
21681
21776
  }
21682
21777
  return void 0;
21683
21778
  }
21684
- var getColumns$6 = function getColumns(_ref) {
21685
- var _ref$text = _ref.text,
21779
+ var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
21780
+ if (typeof value === 'number') return true;
21781
+ if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21782
+ return false;
21783
+ };
21784
+ var getColumns$6 = function getColumns() {
21785
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
21786
+ _ref$text = _ref.text,
21686
21787
  disabled = _ref.disabled,
21687
- updateHandle = _ref.updateHandle;
21788
+ updateHandle = _ref.updateHandle,
21789
+ updateDataHandle = _ref.updateDataHandle;
21688
21790
  return {
21689
21791
  KM_GOODS: [{
21690
21792
  dataIndex: 'skuPropertiesName',
21691
21793
  title: "\u89C4\u683C\u540D\u79F0",
21692
21794
  width: 250,
21693
21795
  render: renderTextEllipsis
21796
+ }, {
21797
+ dataIndex: 'sysSkuPropertiesName',
21798
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
21799
+ width: 150,
21800
+ render: renderTextEllipsis
21694
21801
  }, {
21695
21802
  dataIndex: 'sysTitle',
21696
21803
  title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
@@ -21814,6 +21921,11 @@ var getColumns$6 = function getColumns(_ref) {
21814
21921
  title: "\u89C4\u683C\u540D\u79F0",
21815
21922
  width: 250,
21816
21923
  render: renderTextEllipsis
21924
+ }, {
21925
+ dataIndex: 'sysSkuPropertiesName',
21926
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
21927
+ width: 150,
21928
+ render: renderTextEllipsis
21817
21929
  }, {
21818
21930
  dataIndex: 'sysTitle',
21819
21931
  title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
@@ -21858,7 +21970,9 @@ var getColumns$6 = function getColumns(_ref) {
21858
21970
  dataIndex: 'realNum',
21859
21971
  title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
21860
21972
  width: 100,
21861
- validator: function validator(_rule, value) {
21973
+ validator: function validator(_rule, value, extraParams) {
21974
+ console.log('实际补发数量-extraParams', extraParams);
21975
+ if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
21862
21976
  var title = '';
21863
21977
  if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
21864
21978
  var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
@@ -21886,8 +22000,21 @@ var getColumns$6 = function getColumns(_ref) {
21886
22000
  }
21887
22001
  }, {
21888
22002
  dataIndex: 'desiredNum',
21889
- title: "\u5E94\u8865\u53D1\u6570\u91CF",
22003
+ title: "\u7533\u8BF7\u8865\u53D1\u6570\u91CF",
21890
22004
  width: 100,
22005
+ validator: function validator(_rule, value) {
22006
+ var title = '';
22007
+ if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
22008
+ var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22009
+ var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
22010
+ if (res) {
22011
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22012
+ }
22013
+ return res;
22014
+ })) {
22015
+ return Promise.reject("".concat(title, "\u7533\u8BF7\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22016
+ }
22017
+ },
21891
22018
  render: function render(val, record, index) {
21892
22019
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21893
22020
  style: {
@@ -21956,11 +22083,336 @@ var getColumns$6 = function getColumns(_ref) {
21956
22083
  align: 'center',
21957
22084
  ellipsis: true
21958
22085
  });
22086
+ }),
22087
+ KM_RETURN_GOODS: [{
22088
+ dataIndex: 'skuPropertiesName',
22089
+ title: "\u89C4\u683C\u540D\u79F0",
22090
+ width: 250,
22091
+ render: renderTextEllipsis
22092
+ }, {
22093
+ dataIndex: 'sysSkuPropertiesName',
22094
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22095
+ width: 150,
22096
+ render: renderTextEllipsis
22097
+ }, {
22098
+ dataIndex: 'sysTitle',
22099
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22100
+ width: 150,
22101
+ render: renderTextEllipsis
22102
+ }, {
22103
+ dataIndex: 'shortTitle',
22104
+ title: "\u5546\u54C1\u7B80\u79F0",
22105
+ width: 150,
22106
+ render: renderTextEllipsis
22107
+ }, {
22108
+ dataIndex: 'title',
22109
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22110
+ width: 150,
22111
+ render: renderTextEllipsis
22112
+ }, {
22113
+ dataIndex: 'sysOuterId',
22114
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
22115
+ width: 150,
22116
+ render: renderTextEllipsis
22117
+ }, {
22118
+ dataIndex: 'itemSysId',
22119
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
22120
+ width: 150,
22121
+ render: renderTextEllipsis
22122
+ }, {
22123
+ dataIndex: 'skuSysId',
22124
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
22125
+ width: 150,
22126
+ render: renderTextEllipsis
22127
+ }, {
22128
+ dataIndex: 'skuId',
22129
+ title: "\u5E73\u53F0\u89C4\u683CID",
22130
+ width: 170,
22131
+ render: renderTextEllipsis
22132
+ }, {
22133
+ dataIndex: 'outerSkuId',
22134
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
22135
+ width: 170,
22136
+ render: renderTextEllipsis
22137
+ }, {
22138
+ dataIndex: 'realNum',
22139
+ title: "\u5B9E\u9645\u9000\u8D27\u6570\u91CF",
22140
+ width: 100,
22141
+ render: function render(val, record, index) {
22142
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22143
+ style: {
22144
+ width: 70
22145
+ },
22146
+ value: val,
22147
+ min: 1,
22148
+ precision: 0,
22149
+ onChange: function onChange(num) {
22150
+ updateDataHandle({
22151
+ realNum: num,
22152
+ refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
22153
+ }, index);
22154
+ }
22155
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22156
+ }
22157
+ }, {
22158
+ dataIndex: 'desiredNum',
22159
+ title: "\u7533\u8BF7\u9000\u8D27\u6570\u91CF",
22160
+ width: 100,
22161
+ validator: function validator(_rule, value) {
22162
+ var title = '';
22163
+ if (((value === null || value === void 0 ? void 0 : value.kmReturnGoods) || []).some(function (goods) {
22164
+ var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22165
+ var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
22166
+ if (res) {
22167
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22168
+ }
22169
+ return res;
22170
+ })) {
22171
+ return Promise.reject("".concat(title, "\u7533\u8BF7\u9000\u8D27\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22172
+ }
22173
+ },
22174
+ render: function render(val, record, index) {
22175
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22176
+ style: {
22177
+ width: 70
22178
+ },
22179
+ value: val,
22180
+ min: 1,
22181
+ precision: 0,
22182
+ onChange: function onChange(num) {
22183
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
22184
+ }
22185
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22186
+ }
22187
+ }, {
22188
+ dataIndex: 'goodNum',
22189
+ title: "\u826F\u54C1\u6570",
22190
+ width: 100,
22191
+ render: function render(val, record, index) {
22192
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22193
+ style: {
22194
+ width: 70
22195
+ },
22196
+ value: val,
22197
+ min: 1,
22198
+ precision: 0,
22199
+ onChange: function onChange(num) {
22200
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'goodNum');
22201
+ }
22202
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22203
+ }
22204
+ }, {
22205
+ dataIndex: 'defectiveNum',
22206
+ title: "\u6B21\u54C1\u6570",
22207
+ width: 100,
22208
+ render: function render(val, record, index) {
22209
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22210
+ style: {
22211
+ width: 70
22212
+ },
22213
+ value: val,
22214
+ min: 1,
22215
+ precision: 0,
22216
+ onChange: function onChange(num) {
22217
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'defectiveNum');
22218
+ }
22219
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22220
+ }
22221
+ }, {
22222
+ dataIndex: 'price',
22223
+ title: "\u5546\u54C1\u9500\u552E\u4EF7",
22224
+ width: 150,
22225
+ render: function render(val) {
22226
+ return val || val === 0 ? Number(val).toFixed(2) : '';
22227
+ }
22228
+ }, {
22229
+ dataIndex: 'refundMoney',
22230
+ title: "\u5B9E\u9000\u91D1\u989D",
22231
+ width: 150,
22232
+ render: function render(val, record, index) {
22233
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22234
+ style: {
22235
+ width: 130
22236
+ },
22237
+ value: val,
22238
+ min: 0,
22239
+ precision: 2,
22240
+ onChange: function onChange(num) {
22241
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'refundMoney');
22242
+ }
22243
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
22244
+ }
22245
+ }, {
22246
+ dataIndex: 'type',
22247
+ title: "\u5546\u54C1\u7C7B\u578B",
22248
+ width: 150,
22249
+ render: renderTextEllipsis
22250
+ }, {
22251
+ dataIndex: 'sysPicPath',
22252
+ title: "\u5546\u54C1\u56FE\u7247",
22253
+ width: 100,
22254
+ headerComponentType: 'pic',
22255
+ render: function render(val) {
22256
+ var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
22257
+ return /*#__PURE__*/React.createElement(Image, {
22258
+ width: 30,
22259
+ src: imgUrl
22260
+ });
22261
+ }
22262
+ }].map(function (item) {
22263
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22264
+ align: 'center',
22265
+ ellipsis: true
22266
+ });
22267
+ }),
22268
+ KM_EXCHANGE_GOODS: [{
22269
+ dataIndex: 'skuPropertiesName',
22270
+ title: "\u89C4\u683C\u540D\u79F0",
22271
+ width: 250,
22272
+ render: renderTextEllipsis
22273
+ }, {
22274
+ dataIndex: 'sysSkuPropertiesName',
22275
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22276
+ width: 150,
22277
+ render: renderTextEllipsis
22278
+ }, {
22279
+ dataIndex: 'sysTitle',
22280
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22281
+ width: 150,
22282
+ render: renderTextEllipsis
22283
+ }, {
22284
+ dataIndex: 'shortTitle',
22285
+ title: "\u5546\u54C1\u7B80\u79F0",
22286
+ width: 150,
22287
+ render: renderTextEllipsis
22288
+ }, {
22289
+ dataIndex: 'title',
22290
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22291
+ width: 150,
22292
+ render: renderTextEllipsis
22293
+ }, {
22294
+ dataIndex: 'sysOuterId',
22295
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
22296
+ width: 150,
22297
+ render: renderTextEllipsis
22298
+ }, {
22299
+ dataIndex: 'itemSysId',
22300
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
22301
+ width: 150,
22302
+ render: renderTextEllipsis
22303
+ }, {
22304
+ dataIndex: 'skuSysId',
22305
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
22306
+ width: 150,
22307
+ render: renderTextEllipsis
22308
+ }, {
22309
+ dataIndex: 'skuId',
22310
+ title: "\u5E73\u53F0\u89C4\u683CID",
22311
+ width: 170,
22312
+ render: renderTextEllipsis
22313
+ }, {
22314
+ dataIndex: 'outerSkuId',
22315
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
22316
+ width: 170,
22317
+ render: renderTextEllipsis
22318
+ }, {
22319
+ dataIndex: 'realNum',
22320
+ title: "\u5B9E\u9645\u6362\u51FA\u6570\u91CF",
22321
+ width: 100,
22322
+ validator: function validator(_rule, value, extraParams) {
22323
+ if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
22324
+ var title = '';
22325
+ if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
22326
+ var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
22327
+ var res = typeof realNum === 'number' ? realNum < 1 : true;
22328
+ if (res) {
22329
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22330
+ }
22331
+ return res;
22332
+ })) {
22333
+ return Promise.reject("".concat(title, "\u5B9E\u9645\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22334
+ }
22335
+ },
22336
+ render: function render(val, record, index) {
22337
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22338
+ style: {
22339
+ width: 70
22340
+ },
22341
+ value: val,
22342
+ min: 1,
22343
+ precision: 0,
22344
+ onChange: function onChange(num) {
22345
+ updateDataHandle({
22346
+ realNum: num,
22347
+ refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
22348
+ }, index);
22349
+ }
22350
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22351
+ }
22352
+ }, {
22353
+ dataIndex: 'desiredNum',
22354
+ title: "\u5E94\u6362\u51FA\u6570\u91CF",
22355
+ width: 100,
22356
+ validator: function validator(_rule, value) {
22357
+ var title = '';
22358
+ if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
22359
+ var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22360
+ var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
22361
+ if (res) {
22362
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22363
+ }
22364
+ return res;
22365
+ })) {
22366
+ return Promise.reject("".concat(title, "\u5E94\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22367
+ }
22368
+ },
22369
+ render: function render(val, record, index) {
22370
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22371
+ style: {
22372
+ width: 70
22373
+ },
22374
+ value: val,
22375
+ min: 1,
22376
+ precision: 0,
22377
+ onChange: function onChange(num) {
22378
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
22379
+ }
22380
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22381
+ }
22382
+ }, {
22383
+ dataIndex: 'price',
22384
+ title: "\u5546\u54C1\u9500\u552E\u4EF7",
22385
+ width: 150,
22386
+ render: function render(val) {
22387
+ return val || val === 0 ? Number(val).toFixed(2) : '';
22388
+ }
22389
+ }, {
22390
+ dataIndex: 'type',
22391
+ title: "\u5546\u54C1\u7C7B\u578B",
22392
+ width: 150,
22393
+ render: renderTextEllipsis
22394
+ }, {
22395
+ dataIndex: 'sysPicPath',
22396
+ title: "\u5546\u54C1\u56FE\u7247",
22397
+ width: 100,
22398
+ headerComponentType: 'pic',
22399
+ render: function render(val) {
22400
+ var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
22401
+ return /*#__PURE__*/React.createElement(Image, {
22402
+ width: 30,
22403
+ src: imgUrl
22404
+ });
22405
+ }
22406
+ }].map(function (item) {
22407
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22408
+ align: 'center',
22409
+ ellipsis: true
22410
+ });
21959
22411
  })
21960
22412
  };
21961
22413
  };
21962
22414
 
21963
- var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
22415
+ var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
21964
22416
  if (typeof value === 'number') return true;
21965
22417
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21966
22418
  return false;
@@ -22098,7 +22550,7 @@ var getColumns$7 = function getColumns(_ref) {
22098
22550
  onChange: function onChange(num) {
22099
22551
  updateDataHandle({
22100
22552
  sellCount: num,
22101
- sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22553
+ sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
22102
22554
  }, index);
22103
22555
  }
22104
22556
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22118,7 +22570,7 @@ var getColumns$7 = function getColumns(_ref) {
22118
22570
  onChange: function onChange(num) {
22119
22571
  updateDataHandle({
22120
22572
  sellPrice: num,
22121
- sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22573
+ sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
22122
22574
  }, index);
22123
22575
  }
22124
22576
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22321,7 +22773,7 @@ var getColumns$7 = function getColumns(_ref) {
22321
22773
  onChange: function onChange(num) {
22322
22774
  updateDataHandle({
22323
22775
  sellCount: num,
22324
- sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22776
+ sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
22325
22777
  }, index);
22326
22778
  }
22327
22779
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22341,7 +22793,7 @@ var getColumns$7 = function getColumns(_ref) {
22341
22793
  onChange: function onChange(num) {
22342
22794
  updateDataHandle({
22343
22795
  sellPrice: num,
22344
- sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22796
+ sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
22345
22797
  }, index);
22346
22798
  }
22347
22799
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22453,7 +22905,7 @@ var getColumns$8 = function getColumns(_ref) {
22453
22905
  };
22454
22906
  };
22455
22907
 
22456
- var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
22908
+ var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
22457
22909
  if (typeof value === 'number') return true;
22458
22910
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
22459
22911
  return false;
@@ -22543,7 +22995,7 @@ var getColumns$9 = function getColumns(_ref) {
22543
22995
  onChange: function onChange(num) {
22544
22996
  updateDataHandle({
22545
22997
  sellCount: num,
22546
- sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
22998
+ sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
22547
22999
  }, index);
22548
23000
  }
22549
23001
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22568,7 +23020,7 @@ var getColumns$9 = function getColumns(_ref) {
22568
23020
  onChange: function onChange(num) {
22569
23021
  updateDataHandle({
22570
23022
  sellPrice: num,
22571
- sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
23023
+ sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
22572
23024
  }, index);
22573
23025
  }
22574
23026
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22867,7 +23319,7 @@ var getColumns$9 = function getColumns(_ref) {
22867
23319
  onChange: function onChange(num) {
22868
23320
  updateDataHandle({
22869
23321
  sellCount: num,
22870
- sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
23322
+ sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
22871
23323
  }, index);
22872
23324
  }
22873
23325
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22887,7 +23339,7 @@ var getColumns$9 = function getColumns(_ref) {
22887
23339
  onChange: function onChange(num) {
22888
23340
  updateDataHandle({
22889
23341
  sellPrice: num,
22890
- sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
23342
+ sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
22891
23343
  }, index);
22892
23344
  }
22893
23345
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -23115,7 +23567,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
23115
23567
  })), getColumns$6({
23116
23568
  text: text,
23117
23569
  disabled: disabled,
23118
- updateHandle: updateHandle
23570
+ updateHandle: updateHandle,
23571
+ updateDataHandle: updateDataHandle
23119
23572
  })), getColumns$7({
23120
23573
  text: text,
23121
23574
  disabled: disabled,
@@ -23139,7 +23592,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
23139
23592
  });
23140
23593
  };
23141
23594
  var erpColumnsMap = getColumnsMap$1();
23142
- var erpFormValidator = function erpFormValidator(_rule, value, type) {
23595
+ var erpFormValidator = function erpFormValidator(_rule, value, type, extraParams) {
23143
23596
  var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
23144
23597
  return column.validator;
23145
23598
  }).filter(Boolean);
@@ -23149,7 +23602,7 @@ var erpFormValidator = function erpFormValidator(_rule, value, type) {
23149
23602
  try {
23150
23603
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
23151
23604
  var validatorFn = _step.value;
23152
- var validatorResult = validatorFn(_rule, value, type);
23605
+ var validatorResult = validatorFn(_rule, value, extraParams);
23153
23606
  if (validatorResult) {
23154
23607
  res = validatorResult;
23155
23608
  break;
@@ -23274,7 +23727,7 @@ var isErpType = {
23274
23727
  return ['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type);
23275
23728
  },
23276
23729
  isKm: function isKm(type) {
23277
- return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
23730
+ return ['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'KM_EXCHANGE_GOODS'].includes(type);
23278
23731
  },
23279
23732
  isJy: function isJy(type) {
23280
23733
  return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
@@ -23539,11 +23992,17 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
23539
23992
  KM_REISSUE_GOODS: {
23540
23993
  realNum: 1,
23541
23994
  desiredNum: 1
23995
+ },
23996
+ KM_RETURN_GOODS: {},
23997
+ KM_EXCHANGE_GOODS: {
23998
+ realNum: 1,
23999
+ desiredNum: 1
23542
24000
  }
23543
24001
  };
23544
24002
  return list.map(function (item) {
23545
24003
  return _objectSpread2(_objectSpread2({}, item), {}, {
23546
24004
  skuPropertiesName: item.specName,
24005
+ sysSkuPropertiesName: item.specId,
23547
24006
  sysTitle: item.goodName,
23548
24007
  title: null,
23549
24008
  shortTitle: item.goodShortName,
@@ -23608,6 +24067,8 @@ var GoodsModalMap = {
23608
24067
  JST_EXCHANGE_GOODS: JstGoodsModal,
23609
24068
  KM_GOODS: KmGoodsModal,
23610
24069
  KM_REISSUE_GOODS: KmGoodsModal,
24070
+ KM_RETURN_GOODS: KmGoodsModal,
24071
+ KM_EXCHANGE_GOODS: KmGoodsModal,
23611
24072
  JY_GOODS: JyGoodsModal$1,
23612
24073
  JY_REISSUE_GOODS: JyGoodsModal$1,
23613
24074
  JKY_GOODS: JkyGoodsModal$1,
@@ -23627,6 +24088,8 @@ var systemOrderNoMap = {
23627
24088
  JKY_GOODS: 'tradeNo',
23628
24089
  JKY_REISSUE_GOODS: 'tradeNo',
23629
24090
  KM_REISSUE_GOODS: 'sid',
24091
+ KM_RETURN_GOODS: 'sid',
24092
+ KM_EXCHANGE_GOODS: 'sid',
23630
24093
  JST_REISSUE_GOODS: 'oId',
23631
24094
  GY_REISSUE_GOODS: 'code',
23632
24095
  BS_E3_REISSUE_GOODS: 'orderSn',
@@ -23652,7 +24115,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23652
24115
  type = _ref$type === void 0 ? '' : _ref$type,
23653
24116
  width = _ref.width,
23654
24117
  _ref$isReissueType = _ref.isReissueType,
23655
- isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType;
24118
+ isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType,
24119
+ _ref$isReloadSelectTa = _ref.isReloadSelectTable,
24120
+ isReloadSelectTable = _ref$isReloadSelectTa === void 0 ? false : _ref$isReloadSelectTa,
24121
+ validSystemOrderFn = _ref.validSystemOrderFn;
23656
24122
  var _useState = useState(),
23657
24123
  _useState2 = _slicedToArray(_useState, 2),
23658
24124
  selectSystemNo = _useState2[0],
@@ -23697,36 +24163,52 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23697
24163
  }();
23698
24164
  var openModal = /*#__PURE__*/function () {
23699
24165
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
24166
+ var flag;
23700
24167
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
23701
24168
  while (1) switch (_context2.prev = _context2.next) {
23702
24169
  case 0:
24170
+ if (!validSystemOrderFn) {
24171
+ _context2.next = 7;
24172
+ break;
24173
+ }
24174
+ _context2.next = 3;
24175
+ return validSystemOrderFn();
24176
+ case 3:
24177
+ flag = _context2.sent;
24178
+ if (!(flag === false)) {
24179
+ _context2.next = 7;
24180
+ break;
24181
+ }
24182
+ console.log('validSystemOrderFn校验不通过');
24183
+ return _context2.abrupt("return");
24184
+ case 7:
23703
24185
  if (!validSystemOrder) {
23704
- _context2.next = 3;
24186
+ _context2.next = 10;
23705
24187
  break;
23706
24188
  }
23707
24189
  message.warning('请选择补发系统单');
23708
24190
  return _context2.abrupt("return");
23709
- case 3:
23710
- if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
23711
- _context2.next = 6;
24191
+ case 10:
24192
+ if (!(getDataSourceAsync && (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || isReloadSelectTable))) {
24193
+ _context2.next = 13;
23712
24194
  break;
23713
24195
  }
23714
- _context2.next = 6;
24196
+ _context2.next = 13;
23715
24197
  return getDataSourceAsync();
23716
- case 6:
23717
- if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
23718
- _context2.next = 9;
24198
+ case 13:
24199
+ if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
24200
+ _context2.next = 16;
23719
24201
  break;
23720
24202
  }
23721
- _context2.next = 9;
24203
+ _context2.next = 16;
23722
24204
  return getKmSupplier(dataSource);
23723
- case 9:
24205
+ case 16:
23724
24206
  setTradeGoodsVisible(true);
23725
24207
  // 补发直接传入的是systemNo
23726
24208
  if (isShowSelect && isReissueType) {
23727
24209
  setSelectSystemNo(selectedSystemOrders || []);
23728
24210
  }
23729
- case 11:
24211
+ case 18:
23730
24212
  case "end":
23731
24213
  return _context2.stop();
23732
24214
  }
@@ -23841,7 +24323,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23841
24323
  SelectTradeGoods.displayName = 'SelectTradeGoods';
23842
24324
  var getButtonText = function getButtonText() {
23843
24325
  var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
23844
- if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
24326
+ if (['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_EXCHANGE_GOODS'].includes(type)) {
23845
24327
  return '选择快麦ERP商品';
23846
24328
  }
23847
24329
  if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
@@ -23912,14 +24394,16 @@ var GoodItem$1 = function GoodItem(props) {
23912
24394
  _props$templateDetail = props.templateDetail,
23913
24395
  templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
23914
24396
  _props$hasSelectedSys = props.hasSelectedSystemOrder,
23915
- hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
24397
+ hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys,
24398
+ isReloadSelectTable = props.isReloadSelectTable,
24399
+ validSystemOrderFn = props.validSystemOrderFn;
23916
24400
  var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
23917
24401
  var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
23918
24402
  // 监听聚水潭退货商品
23919
24403
  var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
23920
24404
  var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
23921
24405
  // 判断是否为是否展示系统单筛选项
23922
- var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
24406
+ var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
23923
24407
  var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
23924
24408
  var refModal = useRef();
23925
24409
  console.debug('表格数据', value);
@@ -24009,6 +24493,8 @@ var GoodItem$1 = function GoodItem(props) {
24009
24493
  case 'GY_RETURN_GOODS':
24010
24494
  case 'KM_GOODS':
24011
24495
  case 'KM_REISSUE_GOODS':
24496
+ case 'KM_RETURN_GOODS':
24497
+ case 'KM_EXCHANGE_GOODS':
24012
24498
  case 'JY_GOODS':
24013
24499
  case 'JY_REISSUE_GOODS':
24014
24500
  case 'JKY_GOODS':
@@ -24211,6 +24697,8 @@ var GoodItem$1 = function GoodItem(props) {
24211
24697
  checked: isStrict,
24212
24698
  onChange: handleCheckboxChange
24213
24699
  }, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && isShowSelectTradeGoods && /*#__PURE__*/React.createElement(SelectTradeGoods, {
24700
+ isReloadSelectTable: isReloadSelectTable,
24701
+ validSystemOrderFn: validSystemOrderFn,
24214
24702
  validSystemOrder: validSystemOrder,
24215
24703
  isShowSelect: isShowSelect,
24216
24704
  uniqueKey: uniqueKey,
@@ -24941,7 +25429,8 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
24941
25429
  billNo: item.tradeNo,
24942
25430
  billType: WDT_ORDER_TYPE_MAP[item.tradeType],
24943
25431
  billTag: item.tagName || item.tags,
24944
- tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus]
25432
+ tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus],
25433
+ logisticsName: ExpressData.getInstance('wdt').getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCode, false) || (item === null || item === void 0 ? void 0 : item.logisticsName)
24945
25434
  });
24946
25435
  });
24947
25436
  }
@@ -27499,6 +27988,55 @@ var componentMap$4 = {
27499
27988
  returnGoodsSysorder: 'jstReturnGoodsSysorder',
27500
27989
  returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
27501
27990
  }
27991
+ },
27992
+ KM_EXCHANGE_GOODS: {
27993
+ type: 'km',
27994
+ showChooseTradeGoodsBtn: true,
27995
+ valueKey: 'kmExchangeGoods',
27996
+ returnTypeKey: 'kmExchangeType',
27997
+ systemOrder: 'kmSystemOrder',
27998
+ systemOrderNo: 'kmSystemOrderNo',
27999
+ oIdKey: 'billNo',
28000
+ goodDetailsKey: 'subOrders',
28001
+ skuIdKey: 'skuId',
28002
+ outerOiIdKey: '',
28003
+ name: '快麦',
28004
+ updateGoodsHandle: updateKmGoodsHandle,
28005
+ isReloadSelectTable: true,
28006
+ validSystemOrderFn: function () {
28007
+ var _validSystemOrderFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(form) {
28008
+ var returnGoodsValue;
28009
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
28010
+ while (1) switch (_context.prev = _context.next) {
28011
+ case 0:
28012
+ _context.next = 2;
28013
+ return form.getFieldValue('KM3F7B91C2');
28014
+ case 2:
28015
+ returnGoodsValue = _context.sent;
28016
+ if (returnGoodsValue.kmSystemOrderNo) {
28017
+ _context.next = 6;
28018
+ break;
28019
+ }
28020
+ message.error('请选择退货系统单');
28021
+ return _context.abrupt("return", false);
28022
+ case 6:
28023
+ case "end":
28024
+ return _context.stop();
28025
+ }
28026
+ }, _callee);
28027
+ }));
28028
+ function validSystemOrderFn(_x) {
28029
+ return _validSystemOrderFn.apply(this, arguments);
28030
+ }
28031
+ return validSystemOrderFn;
28032
+ }(),
28033
+ eventNameMap: {
28034
+ // pubsub 事件
28035
+ exchangeCopyGood: 'kmExchangeCopyGood',
28036
+ exchangeBackCopyGood: 'kmExchangeBackCopyGood',
28037
+ returnGoodsSysorder: 'kmReturnGoodsSysorder',
28038
+ returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
28039
+ }
27502
28040
  }
27503
28041
  };
27504
28042
  var CommonExchangeGoods = function CommonExchangeGoods(props) {
@@ -27506,7 +28044,8 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
27506
28044
  var value = props.value,
27507
28045
  onChange = props.onChange,
27508
28046
  disabled = props.disabled,
27509
- compType = props.type;
28047
+ compType = props.type,
28048
+ form = props.form;
27510
28049
  var uniqueKey = (componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp = componentMap$4[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.skuIdKey) || 'uuid';
27511
28050
  var valueRef = useRef({});
27512
28051
  // PS: 目前选择订单商品,只有聚水潭换出商品,而且聚水潭不用考虑合并单,所以这个值一直是 false
@@ -27599,6 +28138,10 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
27599
28138
  return new Promise(function (resolve) {
27600
28139
  pubsub.subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
27601
28140
  resolve(data);
28141
+ console.log('getDataSourceAsync---111data--', data, getGoodDetails({
28142
+ returnGoodsValue: data,
28143
+ mode: isStrict
28144
+ }));
27602
28145
  setOriginDataSource(getGoodDetails({
27603
28146
  returnGoodsValue: data,
27604
28147
  mode: isStrict
@@ -27607,9 +28150,14 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
27607
28150
  pubsub.publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
27608
28151
  });
27609
28152
  };
28153
+ console.log('aaa--', originDataSource);
27610
28154
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
27611
28155
  key: componentMap$4[compType].type
27612
28156
  }, props), {}, {
28157
+ validSystemOrderFn: function validSystemOrderFn() {
28158
+ return componentMap$4[compType].validSystemOrderFn(form);
28159
+ },
28160
+ isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
27613
28161
  disabled: disabled,
27614
28162
  canUpdateNumber: true,
27615
28163
  showChangeBtn: true,
@@ -27785,7 +28333,8 @@ var wdtReissue = function wdtReissue(props) {
27785
28333
  var newValue = _objectSpread2({}, value);
27786
28334
  // 原订单商品
27787
28335
  var originTradeGoodList = getGoodDetails({
27788
- mode: isStrict
28336
+ mode: isStrict,
28337
+ isAllOrders: true
27789
28338
  }) || [];
27790
28339
  // 当前选中的所有商品【包含了原订单+商品库】
27791
28340
  var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)]) || [];
@@ -27943,6 +28492,30 @@ var typeMap$2 = {
27943
28492
  uniqueKey: 'id',
27944
28493
  isShowSelectTradeGoods: true
27945
28494
  },
28495
+ KM_RETURN_GOODS: {
28496
+ compType: '退货',
28497
+ key: 'kmReturnGoods',
28498
+ typeName: 'kmReturnType',
28499
+ systemOrder: 'kmSystemOrder',
28500
+ systemOrderNo: 'kmSystemOrderNo',
28501
+ getOrderList: kmUtils.getOrderListSingleton,
28502
+ updateGoodsHandle: updateKmGoodsHandle,
28503
+ alwaysShowChooseErpGoodsBtn: true,
28504
+ orderTypeKey: 'orderType',
28505
+ oIdKey: 'billNo',
28506
+ outerOiIdKey: '',
28507
+ goodDetailsKey: 'subOrders',
28508
+ uniqueKey: 'id',
28509
+ isShowSelectTradeGoods: true,
28510
+ showErpGoodsBtn: false,
28511
+ eventNameMap: {
28512
+ // pubsub 事件
28513
+ exchangeCopyGood: 'kmExchangeCopyGood',
28514
+ exchangeBackCopyGood: 'kmExchangeBackCopyGood',
28515
+ returnGoodsSysorder: 'kmReturnGoodsSysorder',
28516
+ returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
28517
+ }
28518
+ },
27946
28519
  JY_REISSUE_GOODS: {
27947
28520
  compType: '补发',
27948
28521
  key: 'jyReissueGoods',
@@ -27976,7 +28549,7 @@ var typeMap$2 = {
27976
28549
  }
27977
28550
  };
27978
28551
  var PublicReissue = function PublicReissue(props) {
27979
- var _typeMap$type35, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44, _value$typeMap$type$s8, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56;
28552
+ 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;
27980
28553
  var value = props.value,
27981
28554
  onChange = props.onChange,
27982
28555
  _props$reasonList = props.reasonList,
@@ -28094,24 +28667,25 @@ var PublicReissue = function PublicReissue(props) {
28094
28667
  };
28095
28668
  var sysItemIdMap = useMemo(function () {
28096
28669
  var map = {};
28097
- if (type === 'KM_REISSUE_GOODS') {
28098
- var _value$kmReissueGoods, _value$kmReissueGoods2;
28099
- value === null || value === void 0 ? void 0 : (_value$kmReissueGoods = value.kmReissueGoods) === null || _value$kmReissueGoods === void 0 ? void 0 : (_value$kmReissueGoods2 = _value$kmReissueGoods.filter(function (item) {
28670
+ if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
28671
+ var _value$goodsKey, _value$goodsKey$filte;
28672
+ var goodsKey = typeMap$2[type].key;
28673
+ value === null || value === void 0 ? void 0 : (_value$goodsKey = value[goodsKey]) === null || _value$goodsKey === void 0 ? void 0 : (_value$goodsKey$filte = _value$goodsKey.filter(function (item) {
28100
28674
  return item === null || item === void 0 ? void 0 : item.sysItemId;
28101
- })) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
28675
+ })) === null || _value$goodsKey$filte === void 0 ? void 0 : _value$goodsKey$filte.forEach(function (item) {
28102
28676
  var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
28103
28677
  map[key] = item;
28104
28678
  });
28105
28679
  }
28106
28680
  return map;
28107
- }, [value === null || value === void 0 ? void 0 : value.kmReissueGoods]);
28681
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key]]);
28108
28682
  // 用于跟踪已经处理过的 sysItemId,避免重复处理
28109
28683
  var processedSysItemIdsRef = useRef(new Set());
28110
28684
  useEffect(function () {
28111
28685
  var fetchSupplier = /*#__PURE__*/function () {
28112
28686
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
28113
- var _currentValue$kmReiss;
28114
- var needFetchIds, supplierMap, hasChange, currentValue, kmReissueGoods;
28687
+ var _currentValue$goodsKe;
28688
+ var needFetchIds, supplierMap, hasChange, currentValue, goodsKey, kmGoods;
28115
28689
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
28116
28690
  while (1) switch (_context2.prev = _context2.next) {
28117
28691
  case 0:
@@ -28139,7 +28713,8 @@ var PublicReissue = function PublicReissue(props) {
28139
28713
  // 检查是否有实际变化,避免不必要的更新
28140
28714
  hasChange = false;
28141
28715
  currentValue = valueRef.current;
28142
- kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
28716
+ goodsKey = typeMap$2[type].key;
28717
+ kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$goodsKe = currentValue[goodsKey]) === null || _currentValue$goodsKe === void 0 ? void 0 : _currentValue$goodsKe.map(function (item) {
28143
28718
  var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
28144
28719
  var supplierInfo = supplierMap.get(key);
28145
28720
  var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
@@ -28156,12 +28731,10 @@ var PublicReissue = function PublicReissue(props) {
28156
28731
  }
28157
28732
  return item;
28158
28733
  }); // 只在有实际变化时才更新
28159
- if (hasChange && kmReissueGoods) {
28160
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
28161
- kmReissueGoods: kmReissueGoods
28162
- }));
28734
+ if (hasChange && kmGoods) {
28735
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, _defineProperty({}, goodsKey, kmGoods)));
28163
28736
  }
28164
- case 12:
28737
+ case 13:
28165
28738
  case "end":
28166
28739
  return _context2.stop();
28167
28740
  }
@@ -28177,20 +28750,20 @@ var PublicReissue = function PublicReissue(props) {
28177
28750
  }
28178
28751
  }, [sysItemIdMap]);
28179
28752
  var getGoodDetails = function getGoodDetails(_ref5) {
28180
- var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
28753
+ var _typeMap$type19, _typeMap$type20, _value$typeMap$type$s6, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
28181
28754
  var mode = _ref5.mode,
28182
28755
  sysOrderNo = _ref5.sysOrderNo,
28183
28756
  _ref5$isAllOrders = _ref5.isAllOrders,
28184
28757
  isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
28185
- var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrder];
28186
- var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo];
28758
+ 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];
28759
+ 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];
28187
28760
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
28188
28761
  return order[typeMap$2[type].oIdKey] === systemOrderNo;
28189
28762
  });
28190
28763
  var orderRest = undefined;
28191
28764
  if (['JST_REISSUE_GOODS', 'JST_RETURN_GOODS'].includes(type)) {
28192
28765
  orderRest = true;
28193
- } else if (type === 'KM_REISSUE_GOODS') {
28766
+ } else if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
28194
28767
  orderRest = {
28195
28768
  orderBackGoodsLevel: props.orderBackGoodsLevel,
28196
28769
  canEdit: true
@@ -28204,12 +28777,12 @@ var PublicReissue = function PublicReissue(props) {
28204
28777
  canEdit: true
28205
28778
  };
28206
28779
  }
28207
- var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
28780
+ 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] : [];
28208
28781
  var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
28209
28782
  var _order$typeMap$type$g;
28210
28783
  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;
28211
28784
  });
28212
- var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest)) : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest) : [];
28785
+ 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) : [];
28213
28786
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
28214
28787
  var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
28215
28788
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
@@ -28217,30 +28790,30 @@ var PublicReissue = function PublicReissue(props) {
28217
28790
  return list;
28218
28791
  };
28219
28792
  var changeGoodHandle = function changeGoodHandle(val) {
28220
- var _typeMap$type24;
28793
+ var _typeMap$type25;
28221
28794
  var newValue = _objectSpread2({}, value);
28222
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = val || [];
28795
+ 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 || [];
28223
28796
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
28224
28797
  };
28225
28798
  var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
28226
- var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
28799
+ var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
28227
28800
  var newValue = _objectSpread2({}, value);
28228
- 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.systemOrderNo)] = val;
28229
- if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderBillType) {
28230
- var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
28231
- var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
28801
+ 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;
28802
+ 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) {
28803
+ var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
28804
+ 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) || [];
28232
28805
  var targetOrder = val && orders.find(function (oItem) {
28233
- var _typeMap$type28;
28234
- return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
28806
+ var _typeMap$type29;
28807
+ return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
28235
28808
  });
28236
- newValue[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.orderTypeKey];
28237
- }
28238
- if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
28239
- var _typeMap$type32;
28240
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)] = [];
28241
- } else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
28242
- var _typeMap$type34;
28243
- newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)] = getGoodDetails({
28809
+ 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];
28810
+ }
28811
+ 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])) {
28812
+ var _typeMap$type33;
28813
+ 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)] = [];
28814
+ } 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])) {
28815
+ var _typeMap$type35;
28816
+ 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({
28244
28817
  mode: isStrict,
28245
28818
  sysOrderNo: val
28246
28819
  });
@@ -28248,27 +28821,27 @@ var PublicReissue = function PublicReissue(props) {
28248
28821
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
28249
28822
  };
28250
28823
  //显示选择商品按钮
28251
- var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.systemOrderNo]);
28824
+ 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]);
28252
28825
  var selectedGoodsChange = useCallback(function (skuList) {
28253
- var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
28826
+ var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
28254
28827
  var newValue = _objectSpread2({}, value);
28255
28828
  // 原订单商品
28256
28829
  var originTradeGoodList = getGoodDetails({
28257
28830
  mode: isStrict,
28258
- isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.isShowSelectTradeGoods
28831
+ 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
28259
28832
  }) || [];
28260
28833
  // 当前选中的所有商品【包含了原订单+商品库】
28261
- var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)]) || [];
28262
- newValue["".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)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
28263
- var _typeMap$type40;
28264
- return skuList.includes(item[(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']);
28834
+ 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)]) || [];
28835
+ 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) {
28836
+ var _typeMap$type41;
28837
+ 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']);
28265
28838
  });
28266
28839
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
28267
- }, [value === null || value === void 0 ? void 0 : value["".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)], isStrict]);
28840
+ }, [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]);
28268
28841
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
28269
28842
  gutter: 8,
28270
28843
  wrap: true,
28271
- id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key) || "".concat(Date.now())
28844
+ 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())
28272
28845
  }, /*#__PURE__*/React.createElement(Col, {
28273
28846
  className: "gutter-row",
28274
28847
  xs: {
@@ -28284,12 +28857,12 @@ var PublicReissue = function PublicReissue(props) {
28284
28857
  },
28285
28858
  disabled: disabled,
28286
28859
  allowClear: false,
28287
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.systemOrderNo)],
28860
+ 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)],
28288
28861
  onChange: function onChange(val) {
28289
28862
  return changeSystemOrderHandle(val);
28290
28863
  },
28291
- placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.compType) || '', "\u7CFB\u7EDF\u5355")
28292
- }, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
28864
+ 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")
28865
+ }, ((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) {
28293
28866
  return /*#__PURE__*/React.createElement(Select.Option, {
28294
28867
  key: item[typeMap$2[type].oIdKey],
28295
28868
  value: item[typeMap$2[type].oIdKey],
@@ -28311,11 +28884,11 @@ var PublicReissue = function PublicReissue(props) {
28311
28884
  disabled: isSettingConfig ? !isSettingConfig : disabled,
28312
28885
  allowClear: false,
28313
28886
  options: reasonList,
28314
- 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.typeName)],
28887
+ 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)],
28315
28888
  onChange: function onChange(val) {
28316
28889
  return changeTypeHandle(val);
28317
28890
  }
28318
- })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
28891
+ })), (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, {
28319
28892
  className: "gutter-row",
28320
28893
  xs: {
28321
28894
  span: 11
@@ -28324,7 +28897,7 @@ var PublicReissue = function PublicReissue(props) {
28324
28897
  span: 6
28325
28898
  }
28326
28899
  }, /*#__PURE__*/React.createElement(Input, {
28327
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType)],
28900
+ 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)],
28328
28901
  disabled: disabled,
28329
28902
  readOnly: true
28330
28903
  }))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
@@ -28335,25 +28908,25 @@ var PublicReissue = function PublicReissue(props) {
28335
28908
  canUpdateNumber: showChangeBtn,
28336
28909
  hasSelectedSystemOrder: showChangeBtn,
28337
28910
  // showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
28338
- alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.alwaysShowChooseErpGoodsBtn,
28339
- // showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
28911
+ 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,
28912
+ 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,
28340
28913
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
28341
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.key)],
28914
+ 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)],
28342
28915
  onChange: function onChange(val) {
28343
28916
  return changeGoodHandle(val);
28344
28917
  },
28345
28918
  onModeChange: handleModeChange,
28346
- showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.showModeBtn),
28919
+ 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),
28347
28920
  isStrict: isStrict,
28348
- isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
28349
- systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
28350
- selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrderNo)]] : [],
28921
+ 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,
28922
+ 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,
28923
+ 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)]] : [],
28351
28924
  tradeGoods: {
28352
28925
  originDataSource: getGoodDetails({
28353
28926
  mode: isStrict,
28354
- isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods
28927
+ 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
28355
28928
  }),
28356
- uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.uniqueKey) || 'uuid',
28929
+ 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',
28357
28930
  selectedGoodsChange: selectedGoodsChange
28358
28931
  }
28359
28932
  })));