@kmkf-fe-packages/basic-components 2.2.44-beta.8 → 2.2.44-beta.80

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
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, JkyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import every from 'lodash/every';
8
8
  import maxBy from 'lodash/maxBy';
9
9
  import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
@@ -7758,9 +7758,10 @@ var Province = function Province(props) {
7758
7758
  wdt: WdtAddressData.getInstance(),
7759
7759
  gy: GyAddressData.getInstance(),
7760
7760
  km: AddressData.getInstance(),
7761
- jst: JstAddressData.getInstance(),
7762
- jky: JkyAddressData.getInstance()
7761
+ jst: JstAddressData.getInstance()
7762
+ // jky: JkyAddressData.getInstance(),
7763
7763
  };
7764
+
7764
7765
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
7765
7766
  options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
7766
7767
  style: {
@@ -7935,7 +7936,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
7935
7936
  placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
7936
7937
  allowClear: true,
7937
7938
  onChange: function onChange(e) {
7938
- return changeHandle(e.target.value, 'receiverName');
7939
+ var _e$target$value;
7940
+ return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'receiverName');
7939
7941
  }
7940
7942
  }), /*#__PURE__*/React.createElement(Input, {
7941
7943
  value: value.receiverMobile,
@@ -7943,7 +7945,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
7943
7945
  allowClear: true,
7944
7946
  placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
7945
7947
  onChange: function onChange(e) {
7946
- return changeHandle(e.target.value, 'receiverMobile');
7948
+ var _e$target$value2;
7949
+ return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'receiverMobile');
7947
7950
  }
7948
7951
  })), /*#__PURE__*/React.createElement(Space, {
7949
7952
  wrap: true
@@ -7960,7 +7963,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
7960
7963
  placeholder: "\u8BE6\u7EC6\u5730\u5740",
7961
7964
  allowClear: true,
7962
7965
  onChange: function onChange(e) {
7963
- return changeHandle(e.target.value, 'detail');
7966
+ var _e$target$value3;
7967
+ return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'detail');
7964
7968
  }
7965
7969
  })));
7966
7970
  };
@@ -7996,13 +8000,14 @@ function ApaasPosting(props) {
7996
8000
  });
7997
8001
  }
7998
8002
 
7999
- var _excluded$b = ["value", "onChange", "platformType", "type"];
8003
+ var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
8000
8004
  function ApaasLogistics(props) {
8001
8005
  var value = props.value,
8002
8006
  onChange = props.onChange,
8003
8007
  platformType = props.platformType,
8004
8008
  _props$type = props.type,
8005
8009
  type = _props$type === void 0 ? 'select' : _props$type,
8010
+ placement = props.placement,
8006
8011
  other = _objectWithoutProperties(props, _excluded$b);
8007
8012
  var _useState = useState([]),
8008
8013
  _useState2 = _slicedToArray(_useState, 2),
@@ -8040,12 +8045,13 @@ function ApaasLogistics(props) {
8040
8045
  return type === 'input' ? /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
8041
8046
  value: value,
8042
8047
  onChange: handleInputChange
8043
- })) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
8048
+ })) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
8044
8049
  value: value,
8045
8050
  onChange: onChange,
8046
8051
  options: option,
8047
- virtual: true
8048
- }));
8052
+ virtual: true,
8053
+ placement: placement
8054
+ }, other));
8049
8055
  }
8050
8056
 
8051
8057
  var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
@@ -8129,6 +8135,11 @@ var systemOrderMap = {
8129
8135
  ids: 'wdtSystemSelectIds',
8130
8136
  order: 'wdtSystemShowOrder'
8131
8137
  },
8138
+ JKY_SYSTEM_ORDER: {
8139
+ no: 'jkySystemOrderNo',
8140
+ ids: 'jkySystemSelectIds',
8141
+ order: 'jkySystemShowOrder'
8142
+ },
8132
8143
  BS_E3_SYSTEM_ORDER: {
8133
8144
  no: 'bsE3SystemOrderNo',
8134
8145
  ids: 'bsE3SystemSelectIds',
@@ -8606,7 +8617,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
8606
8617
  WAREHOUSING_STATUS: 'inStockStatusItemList',
8607
8618
  BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
8608
8619
  MSG_STATUS: 'msgStatusValues',
8609
- WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
8620
+ WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
8621
+ JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
8610
8622
  };
8611
8623
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
8612
8624
  };
@@ -8674,6 +8686,21 @@ var processErpSendGood = function processErpSendGood(getValue) {
8674
8686
  return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
8675
8687
  };
8676
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
+ };
8677
8704
  var processBsPosting = function processBsPosting(getValue) {
8678
8705
  return function (nex, config) {
8679
8706
  var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
@@ -8700,6 +8727,33 @@ var processBsGoods = function processBsGoods(getValue) {
8700
8727
  return _defineProperty({}, nex.uniqueKey, _values);
8701
8728
  };
8702
8729
  };
8730
+ var processJkyGoods = function processJkyGoods(templateColumns) {
8731
+ return function (getValue) {
8732
+ return function (nex, config) {
8733
+ var _values = {
8734
+ jkyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jkyGoods")), []),
8735
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8736
+ };
8737
+ var selectIds = [];
8738
+ var orderNo = '';
8739
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8740
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8741
+ });
8742
+ if (tradeId) {
8743
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8744
+ }
8745
+ var jkySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8746
+ return col.workOrderComponentType === 'JKY_SYSTEM_ORDER';
8747
+ });
8748
+ if (jkySystemOrder) {
8749
+ selectIds = jsonParseSecurity(getValue("".concat(jkySystemOrder.uniqueKey, "_").concat(systemOrderMap[jkySystemOrder.workOrderComponentType].ids)), []);
8750
+ }
8751
+ _values.selectIds = selectIds;
8752
+ _values.orderNo = orderNo;
8753
+ return _defineProperty({}, nex.uniqueKey, _values);
8754
+ };
8755
+ };
8756
+ };
8703
8757
  var processWdtGoods = function processWdtGoods(templateColumns) {
8704
8758
  return function (getValue) {
8705
8759
  return function (nex, config) {
@@ -8946,6 +9000,14 @@ var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
8946
9000
  });
8947
9001
  };
8948
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
+ };
8949
9011
  var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
8950
9012
  return function (nex, config) {
8951
9013
  return _defineProperty({}, nex.uniqueKey, {
@@ -8991,6 +9053,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
8991
9053
  ids: 'wdtSystemSelectIds',
8992
9054
  order: 'wdtSystemShowOrder'
8993
9055
  },
9056
+ JKY_SYSTEM_ORDER: {
9057
+ no: 'jkySystemOrderNo',
9058
+ ids: 'jkySystemSelectIds',
9059
+ order: 'jkySystemShowOrder'
9060
+ },
8994
9061
  BS_E3_SYSTEM_ORDER: {
8995
9062
  no: 'bsE3SystemOrderNo',
8996
9063
  ids: 'bsE3SystemSelectIds',
@@ -9157,6 +9224,28 @@ var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
9157
9224
  };
9158
9225
  };
9159
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
+ };
9160
9249
  var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
9161
9250
  return function (getValue) {
9162
9251
  return function (nex, config) {
@@ -9250,14 +9339,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9250
9339
  };
9251
9340
  var processLabel = function processLabel(getValue) {
9252
9341
  return function (nex, config) {
9253
- var _ref73;
9254
- return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
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;
9255
9344
  };
9256
9345
  };
9257
9346
  var processMemberLevel = function processMemberLevel(getValue) {
9258
9347
  return function (nex, config) {
9259
- var _ref74;
9260
- return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
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;
9261
9350
  };
9262
9351
  };
9263
9352
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9361,6 +9450,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9361
9450
  BS_E3_WAREHOUSING_STATUS: processSceneStatus,
9362
9451
  MSG_STATUS: processSceneStatus,
9363
9452
  WDT_WAREHOUSING_STATUS: processSceneStatus,
9453
+ JKY_WAREHOUSING_STATUS: processSceneStatus,
9364
9454
  BS_LOGISTICS: processErpLogistics,
9365
9455
  WLN_LOGISTICS: processErpLogistics,
9366
9456
  WDT_LOGISTICS: processErpLogistics,
@@ -9373,19 +9463,23 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9373
9463
  BS_E3_SEND_GOOD: processErpSendGood,
9374
9464
  KM_SEND_GOOD: processErpSendGood,
9375
9465
  GY_SEND_GOOD: processErpSendGood,
9466
+ KM_RETURN_WAREHOUSE: processErpReturnWarehouse,
9376
9467
  BS_POSTING: processBsPosting,
9377
9468
  BS_GOODS: processBsGoods,
9378
9469
  WDT_GOODS: processWdtGoods(templateColumns),
9470
+ JKY_GOODS: processJkyGoods(templateColumns),
9379
9471
  WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9380
9472
  JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
9381
9473
  BS_E3_GOODS: processBsE3Goods(templateColumns),
9382
9474
  GY_GOODS: processGyGoods(templateColumns),
9383
9475
  KM_GOODS: processKmGoods(templateColumns),
9384
9476
  KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
9477
+ KM_RETURN_GOODS: processKmReturnGoods(templateColumns),
9385
9478
  JST_GOODS: processJstGoods(templateColumns),
9386
9479
  BS_REISSUE_GOODS: processBsReissueGoods,
9387
9480
  BS_EXCHANGE_GOODS: processBsExchangeGoods,
9388
9481
  WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
9482
+ KM_EXCHANGE_GOODS: processKmExchangeGoods,
9389
9483
  JST_EXCHANGE_GOODS: processJstExchangeGoods,
9390
9484
  BS_RETURN_GOODS: processBsReturnGoods,
9391
9485
  WDT_RETURN_GOODS: processWdtReturnGoods(),
@@ -9394,6 +9488,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9394
9488
  KM_SYSTEM_ORDER: processErpSystemOrder,
9395
9489
  WLN_SYSTEM_ORDER: processErpSystemOrder,
9396
9490
  WDT_SYSTEM_ORDER: processErpSystemOrder,
9491
+ JKY_SYSTEM_ORDER: processErpSystemOrder,
9397
9492
  WDT_RETURN_BILL_NO: processErpSystemOrder,
9398
9493
  BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9399
9494
  JST_SYSTEM_ORDER: processErpSystemOrder,
@@ -9990,12 +10085,21 @@ var EditSplitRenderMap = {
9990
10085
  updateHandle = _ref17.updateHandle,
9991
10086
  disabled = _ref17.disabled;
9992
10087
  return /*#__PURE__*/React.createElement(ApaasLogistics, {
10088
+ getPopupContainer: function getPopupContainer() {
10089
+ return document.getElementById('subform');
10090
+ },
9993
10091
  value: val,
9994
10092
  allowClear: true,
10093
+ showSearch: true,
9995
10094
  onChange: function onChange(e) {
9996
10095
  return updateHandle(e, index, t.key);
9997
10096
  },
9998
- disabled: t.isEdit || disabled
10097
+ disabled: t.isEdit || disabled,
10098
+ filterOption: function filterOption(input, option) {
10099
+ return option.label.includes(input);
10100
+ },
10101
+ placement: "topLeft",
10102
+ listHeight: 120
9999
10103
  });
10000
10104
  },
10001
10105
  //退货物流-物流公司
@@ -10006,12 +10110,21 @@ var EditSplitRenderMap = {
10006
10110
  updateHandle = _ref18.updateHandle,
10007
10111
  disabled = _ref18.disabled;
10008
10112
  return /*#__PURE__*/React.createElement(ApaasLogistics, {
10113
+ getPopupContainer: function getPopupContainer() {
10114
+ return document.getElementById('subform');
10115
+ },
10009
10116
  value: val,
10010
10117
  allowClear: true,
10118
+ showSearch: true,
10011
10119
  onChange: function onChange(e) {
10012
10120
  return updateHandle(e, index, t.key);
10013
10121
  },
10014
- disabled: t.isEdit || disabled
10122
+ disabled: t.isEdit || disabled,
10123
+ filterOption: function filterOption(input, option) {
10124
+ return option.label.includes(input);
10125
+ },
10126
+ placement: "topLeft",
10127
+ listHeight: 120
10015
10128
  });
10016
10129
  }
10017
10130
  };
@@ -10480,7 +10593,11 @@ var SubForm = function SubForm(props) {
10480
10593
  });
10481
10594
  }, [inputValue]);
10482
10595
  var handleOpenChange = function handleOpenChange(newOpen) {
10483
- setOpen(newOpen);
10596
+ if (!['jbCFrJV4m7_trajectoryCompany', '0qFEv9GEyd_returnLogisticsCompany'].includes(selectKey)) {
10597
+ setOpen(newOpen);
10598
+ } else {
10599
+ setOpen(false);
10600
+ }
10484
10601
  };
10485
10602
  var onChangeInput = useCallback(debounce(function (val) {
10486
10603
  setInputValue(val);
@@ -10568,6 +10685,9 @@ var SubForm = function SubForm(props) {
10568
10685
  visible: open,
10569
10686
  onVisibleChange: handleOpenChange
10570
10687
  }, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
10688
+ getPopupContainer: function getPopupContainer() {
10689
+ return document.getElementById('subform');
10690
+ },
10571
10691
  value: undefined,
10572
10692
  onChange: function onChange(val) {
10573
10693
  onChangeInput(val);
@@ -10580,7 +10700,9 @@ var SubForm = function SubForm(props) {
10580
10700
  },
10581
10701
  filterOption: function filterOption(input, option) {
10582
10702
  return option.label.includes(input);
10583
- }
10703
+ },
10704
+ placement: "topLeft",
10705
+ listHeight: 120
10584
10706
  }) : /*#__PURE__*/React.createElement(Input, {
10585
10707
  placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
10586
10708
  allowClear: true,
@@ -10657,7 +10779,8 @@ var BuyerNick = function BuyerNick(props) {
10657
10779
  disabled = props.disabled,
10658
10780
  _onBlur = props.onBlur;
10659
10781
  var changeValue = function changeValue(e, type) {
10660
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value)));
10782
+ var _e$target$value;
10783
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim())));
10661
10784
  };
10662
10785
  // useEffect(() => {
10663
10786
  // //淘宝平台和抖音平台需要展示买家id
@@ -10682,7 +10805,8 @@ var BuyerNick = function BuyerNick(props) {
10682
10805
  changeValue(e, 'buyerNick');
10683
10806
  },
10684
10807
  onBlur: function onBlur(e) {
10685
- _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e.target.value, 'buyerNick');
10808
+ var _e$target$value2;
10809
+ _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'buyerNick');
10686
10810
  }
10687
10811
  });
10688
10812
  };
@@ -10804,8 +10928,9 @@ var RemarkInput = function RemarkInput(props) {
10804
10928
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10805
10929
  };
10806
10930
  var changeRemark = function changeRemark(e) {
10931
+ var _e$target$value;
10807
10932
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
10808
- remark: e.target.value
10933
+ remark: (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim()
10809
10934
  });
10810
10935
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10811
10936
  };
@@ -10848,7 +10973,7 @@ var Logistics = function Logistics(props) {
10848
10973
  var handleInputChange = function handleInputChange(e) {
10849
10974
  var val = e.target.value;
10850
10975
  typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
10851
- order: val
10976
+ order: val === null || val === void 0 ? void 0 : val.trim()
10852
10977
  }));
10853
10978
  };
10854
10979
  var handelSelectChange = function handelSelectChange(val) {
@@ -10912,7 +11037,8 @@ var AliPay = function AliPay(props) {
10912
11037
  disabled = props.disabled,
10913
11038
  _onBlur = props.onBlur;
10914
11039
  var changeValue = function changeValue(e, type) {
10915
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value)));
11040
+ var _e$target$value;
11041
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim())));
10916
11042
  };
10917
11043
  return /*#__PURE__*/React.createElement("div", null, !isSingle ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
10918
11044
  disabled: disabled,
@@ -12099,7 +12225,7 @@ var ChooseBaby = function ChooseBaby(props) {
12099
12225
  }));
12100
12226
  };
12101
12227
 
12102
- var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
12228
+ var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n.goods-uploaded-state {\n display: flex;\n}\n.goods-uploaded-state .clear-all {\n float: right;\n color: #1966ff;\n cursor: pointer;\n margin-left: 12px;\n}\n";
12103
12229
  styleInject(css_248z$7);
12104
12230
 
12105
12231
  var GoodItem = function GoodItem(props) {
@@ -12428,13 +12554,22 @@ var GoodItem = function GoodItem(props) {
12428
12554
  var hasAttr = useMemo(function () {
12429
12555
  return hasPic ? headerList.length > 1 : headerList.length > 0;
12430
12556
  }, [hasPic, headerList]);
12557
+ var clearAll = function clearAll() {
12558
+ onChange === null || onChange === void 0 ? void 0 : onChange({
12559
+ shopId: shopId,
12560
+ imgList: []
12561
+ });
12562
+ };
12431
12563
  return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
12432
12564
  className: "goods-title"
12433
12565
  }, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
12434
12566
  className: "goods-uploaded-state"
12435
12567
  }, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React.createElement("span", {
12436
12568
  className: "goods-uploaded-count"
12437
- }, imgList.length), "/", maxLength, "\u4E2A\u5B9D\u8D1D"), /*#__PURE__*/React.createElement("div", {
12569
+ }, imgList.length), "/", maxLength, /*#__PURE__*/React.createElement("span", {
12570
+ className: 'clear-all',
12571
+ onClick: clearAll
12572
+ }, "\u6E05\u7A7A")), /*#__PURE__*/React.createElement("div", {
12438
12573
  ref: boxRef,
12439
12574
  id: "goods-wrap",
12440
12575
  className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
@@ -12574,7 +12709,8 @@ var Invoice = function Invoice(props) {
12574
12709
  }),
12575
12710
  current = _useRef.current;
12576
12711
  var handleInputChange = function handleInputChange(e) {
12577
- var ordinaryTaitou = e.target.value;
12712
+ var _e$target$value;
12713
+ var ordinaryTaitou = (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim();
12578
12714
  setVisible(false);
12579
12715
  setList([]);
12580
12716
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
@@ -12597,8 +12733,9 @@ var Invoice = function Invoice(props) {
12597
12733
  handleChange(ordinaryTaitou);
12598
12734
  };
12599
12735
  var handleValueClick = function handleValueClick(e) {
12736
+ var _e$target$value2;
12600
12737
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
12601
- ordinarySerial: e.target.value
12738
+ ordinarySerial: (_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim()
12602
12739
  });
12603
12740
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
12604
12741
  };
@@ -12909,7 +13046,8 @@ var Payment = function Payment(props) {
12909
13046
  // }
12910
13047
  // }, [shopId, shopList]);
12911
13048
  var changeValue = function changeValue(e, type) {
12912
- var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, e.target.value));
13049
+ var _e$target$value;
13050
+ var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim()));
12913
13051
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
12914
13052
  type === 'enterprisePaymentTid' && (onSearch === null || onSearch === void 0 ? void 0 : onSearch(e));
12915
13053
  };
@@ -12970,7 +13108,8 @@ var Payment = function Payment(props) {
12970
13108
  return changeValue(e, item.name);
12971
13109
  },
12972
13110
  onBlur: function onBlur(e) {
12973
- return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e.target.value, item.name);
13111
+ var _e$target$value2;
13112
+ return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), item.name);
12974
13113
  }
12975
13114
  }), (replaceValueCh === null || replaceValueCh === void 0 ? void 0 : replaceValueCh[item.name]) && /*#__PURE__*/React.createElement("p", {
12976
13115
  style: {
@@ -13263,7 +13402,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13263
13402
  disabled: disabled || isEdit,
13264
13403
  placeholder: "\u7269\u6D41\u5355\u53F7",
13265
13404
  onChange: function onChange(e) {
13266
- return changeHandle(e.target.value, 'interceptCode');
13405
+ var _e$target$value;
13406
+ return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
13267
13407
  },
13268
13408
  value: value === null || value === void 0 ? void 0 : value.interceptCode
13269
13409
  }))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
@@ -13338,7 +13478,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13338
13478
  disabled: disabled || isEdit,
13339
13479
  placeholder: senderMobileLabel,
13340
13480
  onChange: function onChange(e) {
13341
- return changeHandle(e.target.value, 'interceptSenderMobile');
13481
+ var _e$target$value2;
13482
+ return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptSenderMobile');
13342
13483
  }
13343
13484
  })), /*#__PURE__*/React.createElement(Item, {
13344
13485
  label: '退回地址',
@@ -13397,7 +13538,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13397
13538
  },
13398
13539
  placeholder: "\u5176\u4ED6",
13399
13540
  onChange: function onChange(e) {
13400
- return changeHandle(e.target.value, 'interceptLogisticsStatusOther');
13541
+ var _e$target$value3;
13542
+ return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptLogisticsStatusOther');
13401
13543
  }
13402
13544
  })), /*#__PURE__*/React.createElement(Item, {
13403
13545
  label: '拦截状态',
@@ -13451,7 +13593,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13451
13593
  disabled: true,
13452
13594
  placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
13453
13595
  onChange: function onChange(e) {
13454
- return changeHandle(e.target.value, 'interceptLogisticsApiStatusReason');
13596
+ var _e$target$value4;
13597
+ return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsApiStatusReason');
13455
13598
  }
13456
13599
  })));
13457
13600
  };
@@ -13527,7 +13670,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
13527
13670
  trajectoryApiStatus = _props$trajectoryApiS === void 0 ? false : _props$trajectoryApiS;
13528
13671
  var handleInputChange = function handleInputChange(e, type) {
13529
13672
  var val = e.target.value;
13530
- typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val)));
13673
+ typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val === null || val === void 0 ? void 0 : val.trim())));
13531
13674
  };
13532
13675
  var handelSelectChange = function handelSelectChange(val) {
13533
13676
  typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
@@ -13927,10 +14070,14 @@ var typeInitValueMap = {
13927
14070
  }],
13928
14071
  4: [{
13929
14072
  deliveryNo: null
14073
+ }],
14074
+ 5: [{
14075
+ returnWarehouseName: null,
14076
+ returnWarehouseId: null
13930
14077
  }]
13931
14078
  };
13932
14079
  var jstGoods = function jstGoods(props) {
13933
- 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;
13934
14081
  var _props$value = props.value,
13935
14082
  value = _props$value === void 0 ? [] : _props$value,
13936
14083
  onChange = props.onChange,
@@ -14003,13 +14150,28 @@ var jstGoods = function jstGoods(props) {
14003
14150
  newList[changeIndex] = changeOrderInfo;
14004
14151
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
14005
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
+ };
14006
14168
  var filterOption = function filterOption(input, option) {
14007
14169
  var _option$label;
14008
14170
  return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').includes(input);
14009
14171
  };
14010
14172
  var changeInputHandle = function changeInputHandle(val, type) {
14011
14173
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
14012
- changeOrderInfo[type] = val;
14174
+ changeOrderInfo[type] = val === null || val === void 0 ? void 0 : val.trim();
14013
14175
  var newList = _toConsumableArray(value);
14014
14176
  newList[changeIndex] = changeOrderInfo;
14015
14177
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
@@ -14117,7 +14279,35 @@ var jstGoods = function jstGoods(props) {
14117
14279
  return changeInputHandle(e.target.value, 'deliveryNo');
14118
14280
  },
14119
14281
  value: (_value$changeIndex13 = value[changeIndex]) === null || _value$changeIndex13 === void 0 ? void 0 : _value$changeIndex13.sendName
14120
- })) : 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);
14121
14311
  };
14122
14312
 
14123
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";
@@ -14931,6 +15121,13 @@ var wdtColumns = [{
14931
15121
  title: '辅助单位',
14932
15122
  width: 150,
14933
15123
  render: renderTextEllipsis
15124
+ }, {
15125
+ dataIndex: 'skuType',
15126
+ title: '是否组合装',
15127
+ width: 150,
15128
+ render: function render(type) {
15129
+ return type === 'suite' ? '组合装' : '非组合装';
15130
+ }
14934
15131
  }];
14935
15132
 
14936
15133
  var bse3Columns = [{
@@ -15321,34 +15518,75 @@ var jyColumns = [{
15321
15518
  }
15322
15519
  }];
15323
15520
 
15521
+ var getYesOrNo$2 = function getYesOrNo(val) {
15522
+ if (!isBoolean(val)) return null;
15523
+ return val ? '是' : '否';
15524
+ };
15324
15525
  var jkyColumns = [{
15325
- dataIndex: 'goodsNo',
15326
- title: "\u8D27\u54C1\u7F16\u53F7",
15526
+ dataIndex: 'goodName',
15527
+ title: "\u8D27\u54C1\u540D\u79F0",
15327
15528
  align: 'center',
15328
15529
  ellipsis: true,
15329
15530
  width: 150,
15330
15531
  render: renderTextEllipsis
15331
15532
  }, {
15332
- dataIndex: 'goodsName',
15333
- title: "\u8D27\u54C1\u540D\u79F0",
15533
+ dataIndex: 'goodNo',
15534
+ title: "\u8D27\u54C1\u7F16\u53F7",
15334
15535
  align: 'center',
15335
15536
  ellipsis: true,
15336
15537
  width: 150,
15337
15538
  render: renderTextEllipsis
15338
15539
  }, {
15339
- dataIndex: 'goodsId',
15540
+ dataIndex: 'goodId',
15340
15541
  title: "\u8D27\u54C1ID",
15341
15542
  align: 'center',
15342
15543
  ellipsis: true,
15343
15544
  width: 150,
15344
15545
  render: renderTextEllipsis
15345
15546
  }, {
15346
- dataIndex: 'barcode',
15547
+ dataIndex: 'goodPicUrl',
15548
+ title: "\u8D27\u54C1\u4E3B\u56FE",
15549
+ align: 'center',
15550
+ ellipsis: true,
15551
+ width: 150,
15552
+ render: function render(picUrl) {
15553
+ return /*#__PURE__*/React.createElement("img", {
15554
+ style: {
15555
+ width: '30px',
15556
+ height: '30px',
15557
+ objectFit: 'contain'
15558
+ },
15559
+ src: picUrl
15560
+ });
15561
+ }
15562
+ }, {
15563
+ dataIndex: 'goodShortName',
15564
+ title: "\u8D27\u54C1\u522B\u540D",
15565
+ align: 'center',
15566
+ ellipsis: true,
15567
+ width: 150,
15568
+ render: renderTextEllipsis
15569
+ }, {
15570
+ dataIndex: 'specBarcode',
15347
15571
  title: "\u8D27\u54C1\u6761\u7801",
15348
15572
  align: 'center',
15349
15573
  ellipsis: true,
15350
15574
  width: 150,
15351
15575
  render: renderTextEllipsis
15576
+ }, {
15577
+ dataIndex: 'categoryName',
15578
+ title: "\u8D27\u54C1\u7C7B\u522B",
15579
+ align: 'center',
15580
+ ellipsis: true,
15581
+ width: 150,
15582
+ render: renderTextEllipsis
15583
+ }, {
15584
+ dataIndex: 'brandName',
15585
+ title: "\u54C1\u724C",
15586
+ align: 'center',
15587
+ ellipsis: true,
15588
+ width: 200,
15589
+ render: renderTextEllipsis
15352
15590
  }, {
15353
15591
  dataIndex: 'specName',
15354
15592
  title: "\u89C4\u683C\u540D\u79F0",
@@ -15364,7 +15602,14 @@ var jkyColumns = [{
15364
15602
  width: 150,
15365
15603
  render: renderTextEllipsis
15366
15604
  }, {
15367
- dataIndex: 'skuImgUrl',
15605
+ dataIndex: 'specNo',
15606
+ title: "\u89C4\u683C\u7F16\u7801",
15607
+ align: 'center',
15608
+ ellipsis: true,
15609
+ width: 150,
15610
+ render: renderTextEllipsis
15611
+ }, {
15612
+ dataIndex: 'specImgUrl',
15368
15613
  title: "\u89C4\u683C\u56FE\u7247",
15369
15614
  align: 'center',
15370
15615
  ellipsis: true,
@@ -15380,162 +15625,78 @@ var jkyColumns = [{
15380
15625
  });
15381
15626
  }
15382
15627
  }, {
15383
- dataIndex: 'sellCount',
15384
- title: "\u6570\u91CF",
15385
- width: 100,
15386
- render: function render(val) {
15387
- return /*#__PURE__*/React.createElement("span", null, val);
15388
- }
15389
- }, {
15390
- dataIndex: 'actualSendCount',
15391
- title: "\u5B9E\u53D1\u6570\u91CF",
15628
+ dataIndex: 'colorName',
15629
+ title: "\u989C\u8272\u540D\u79F0",
15630
+ align: 'center',
15631
+ ellipsis: true,
15392
15632
  width: 150,
15393
15633
  render: renderTextEllipsis
15394
15634
  }, {
15395
- dataIndex: 'sellPrice',
15396
- title: "\u5355\u4EF7",
15397
- width: 150,
15398
- render: function render(val) {
15399
- return val || val === 0 ? Number(val).toFixed(2) : '';
15400
- }
15401
- }, {
15402
- dataIndex: 'sellTotal',
15403
- title: "\u91D1\u989D",
15404
- width: 150
15405
- }, {
15406
- dataIndex: 'discountTotal',
15407
- title: "\u62B5\u6263\u91D1\u989D",
15408
- width: 150
15409
- }, {
15410
- dataIndex: 'shareFavourableFee',
15411
- title: "\u5206\u644A\u91D1\u989D",
15412
- width: 150
15413
- }, {
15414
- dataIndex: 'shareFavourableAfterFee',
15415
- title: "\u5206\u644A\u540E\u91D1\u989D",
15416
- width: 150
15417
- }, {
15418
- dataIndex: 'customerPrice',
15419
- title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
15420
- width: 150
15421
- }, {
15422
- dataIndex: 'customerTotal',
15423
- title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
15424
- width: 150
15425
- }, {
15426
- dataIndex: 'divideSellTotal',
15427
- title: "\u5B9E\u4ED8\u91D1\u989D",
15428
- width: 150
15429
- }, {
15430
- dataIndex: 'isGift',
15431
- title: "\u662F\u5426\u8D60\u54C1",
15432
- width: 150,
15433
- render: function render(val) {
15434
- return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15435
- }
15436
- }, {
15437
- dataIndex: 'isFit',
15438
- title: "\u662F\u5426\u7EC4\u5408\u88C5",
15439
- width: 150,
15440
- render: function render(val) {
15441
- return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15442
- }
15443
- }, {
15444
- dataIndex: 'isPresell',
15445
- title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
15446
- width: 150,
15447
- render: function render(val) {
15448
- return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15449
- }
15450
- }, {
15451
- dataIndex: 'brandName',
15452
- title: "\u54C1\u724C",
15635
+ dataIndex: 'colorCode',
15636
+ title: "\u989C\u8272\u4EE3\u7801",
15453
15637
  align: 'center',
15454
15638
  ellipsis: true,
15455
- width: 200,
15639
+ width: 150,
15456
15640
  render: renderTextEllipsis
15457
15641
  }, {
15458
- dataIndex: 'cateName',
15459
- title: "\u8D27\u54C1\u7C7B\u522B",
15642
+ dataIndex: 'sizeName',
15643
+ title: "\u5C3A\u7801\u540D\u79F0",
15460
15644
  align: 'center',
15461
15645
  ellipsis: true,
15462
15646
  width: 150,
15463
15647
  render: renderTextEllipsis
15464
15648
  }, {
15465
- dataIndex: 'goodsTags',
15466
- title: "\u8D27\u54C1\u6807\u7B7E",
15649
+ dataIndex: 'sizeCode',
15650
+ title: "\u5C3A\u7801\u4EE3\u7801",
15467
15651
  align: 'center',
15468
15652
  ellipsis: true,
15469
- width: 250,
15653
+ width: 150,
15470
15654
  render: renderTextEllipsis
15471
15655
  }, {
15472
- dataIndex: 'goodsMemo',
15473
- title: "\u8D27\u54C1\u5907\u6CE8",
15656
+ dataIndex: 'marketPrice',
15657
+ title: "\u5E02\u573A\u4EF7",
15474
15658
  align: 'center',
15475
15659
  ellipsis: true,
15476
- width: 250,
15660
+ width: 150,
15477
15661
  render: renderTextEllipsis
15478
15662
  }, {
15479
- dataIndex: 'tradeGoodsNo',
15480
- title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
15663
+ dataIndex: 'retailPrice',
15664
+ title: "\u96F6\u552E\u4EF7",
15481
15665
  align: 'center',
15482
15666
  ellipsis: true,
15483
- width: 250,
15667
+ width: 150,
15484
15668
  render: renderTextEllipsis
15485
15669
  }, {
15486
- dataIndex: 'tradeGoodsName',
15487
- title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
15670
+ dataIndex: 'memberPrice',
15671
+ title: "\u4F1A\u5458\u4EF7",
15672
+ align: 'center',
15488
15673
  ellipsis: true,
15489
- width: 250,
15674
+ width: 150,
15490
15675
  render: renderTextEllipsis
15491
15676
  }, {
15492
- dataIndex: 'tradeGoodsSpec',
15493
- title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
15677
+ dataIndex: 'costPrice',
15678
+ title: "\u6210\u672C\u4EF7",
15679
+ align: 'center',
15494
15680
  ellipsis: true,
15495
- width: 250,
15681
+ width: 150,
15496
15682
  render: renderTextEllipsis
15497
15683
  }, {
15498
- dataIndex: 'sourceSubtradeNo',
15499
- title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
15684
+ dataIndex: 'isVirtual',
15685
+ title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
15686
+ align: 'center',
15500
15687
  ellipsis: true,
15501
- width: 250,
15502
- render: renderTextEllipsis
15688
+ width: 150,
15689
+ render: function render(val) {
15690
+ return renderTextEllipsis(getYesOrNo$2(val));
15691
+ }
15503
15692
  }, {
15504
- dataIndex: 'platGoodsId',
15505
- title: "\u5E73\u53F0\u5546\u54C1ID",
15693
+ dataIndex: 'skuType',
15694
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
15506
15695
  ellipsis: true,
15507
- width: 250,
15508
- render: renderTextEllipsis
15509
- }, {
15510
- dataIndex: 'subTradeId',
15511
- title: "\u5546\u54C1\u660E\u7EC6ID",
15512
- ellipsis: true,
15513
- width: 250,
15514
- render: renderTextEllipsis
15515
- }, {
15516
- dataIndex: 'batchNo',
15517
- title: "\u6279\u6B21\u53F7",
15518
- ellipsis: true,
15519
- width: 250,
15520
- render: renderTextEllipsis
15521
- }, {
15522
- dataIndex: 'sendCount',
15523
- title: "\u6279\u6B21\u6570\u91CF",
15524
- ellipsis: true,
15525
- width: 250,
15526
- render: renderTextEllipsis
15527
- }, {
15528
- dataIndex: 'productDate',
15529
- title: "\u751F\u4EA7\u65E5\u671F",
15530
- ellipsis: true,
15531
- width: 250,
15532
- render: renderTextEllipsis
15533
- }, {
15534
- dataIndex: 'expireDate',
15535
- title: "\u5230\u671F\u65E5\u671F",
15536
- ellipsis: true,
15537
- width: 250,
15538
- render: renderTextEllipsis
15696
+ width: 150,
15697
+ render: function render(val) {
15698
+ return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
15699
+ }
15539
15700
  }];
15540
15701
 
15541
15702
  var getColumnsMap = function getColumnsMap() {
@@ -15809,7 +15970,7 @@ var transformFormData = function transformFormData(formData) {
15809
15970
  if (formData[key]) {
15810
15971
  var _formData$key, _formData$key2, _formData$key3, _formData$key4;
15811
15972
  var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
15812
- var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : 'like';
15973
+ var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : Array.isArray(value) ? 'eq' : 'like';
15813
15974
  conditionList.push({
15814
15975
  leftValue: key,
15815
15976
  compareSymbol: compareSymbol,
@@ -15955,6 +16116,24 @@ var GoodList = function GoodList(props, ref) {
15955
16116
  };
15956
16117
  })
15957
16118
  }
16119
+ }, {
16120
+ label: '是否组合装',
16121
+ name: 'skuType',
16122
+ dataIndex: 'skuType',
16123
+ type: 'select',
16124
+ formItemProps: {
16125
+ mode: 'multiple',
16126
+ filterOption: function filterOption(input, option) {
16127
+ return option.label.includes(input);
16128
+ },
16129
+ options: [{
16130
+ label: '组合装',
16131
+ value: 'suite'
16132
+ }, {
16133
+ label: '非组合装',
16134
+ value: ''
16135
+ }]
16136
+ }
15958
16137
  }];
15959
16138
  var rowSelection = {
15960
16139
  selectedRowKeys: selectIds,
@@ -18778,13 +18957,15 @@ var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
18778
18957
  var getTableData$6 = function getTableData(_ref, formData) {
18779
18958
  var current = _ref.current,
18780
18959
  pageSize = _ref.pageSize;
18960
+ var conditionList = transformFormData(formData);
18781
18961
  return extendRequest('/qy/gdfw/product/product/page', {
18782
18962
  method: 'post',
18783
- data: _objectSpread2({
18963
+ data: {
18784
18964
  pageSize: pageSize,
18785
18965
  pageNo: current,
18786
- platform: 'JY_ERP'
18787
- }, formData)
18966
+ platform: 'JKY_ERP',
18967
+ conditionList: conditionList
18968
+ }
18788
18969
  }).then(function (res) {
18789
18970
  var _res$data = res.data,
18790
18971
  _res$data$productSkuL = _res$data.productSkuList,
@@ -18807,13 +18988,15 @@ var searchFormData$5 = [{
18807
18988
  }, {
18808
18989
  label: '规格编码',
18809
18990
  name: 'skuCode',
18810
- dataIndex: 'specNo'
18991
+ dataIndex: 'specNo',
18992
+ type: 'optionalInput'
18811
18993
  }, {
18812
- label: '商品名称',
18994
+ label: '货品名称',
18813
18995
  name: 'goodName'
18814
18996
  }, {
18815
- label: '商品编码',
18816
- name: 'goodNo'
18997
+ label: '货品编码',
18998
+ name: 'goodNo',
18999
+ type: 'optionalInput'
18817
19000
  }];
18818
19001
  var GoodList$6 = function GoodList(props, ref) {
18819
19002
  var _useState = useState([]),
@@ -18883,8 +19066,8 @@ var GoodList$6 = function GoodList(props, ref) {
18883
19066
  getCheckboxProps: function getCheckboxProps(record) {
18884
19067
  var options = {
18885
19068
  disabled: (props.selectedRows || []).map(function (row) {
18886
- return row.id || row.specId;
18887
- }).includes(record.id || record.specId),
19069
+ return row.specId || record.id;
19070
+ }).includes(record.specId || record.id),
18888
19071
  name: record.id
18889
19072
  };
18890
19073
  return options;
@@ -20331,7 +20514,7 @@ var getColumns$2 = function getColumns(_ref) {
20331
20514
  };
20332
20515
  };
20333
20516
 
20334
- var getYesOrNo$2 = function getYesOrNo(val) {
20517
+ var getYesOrNo$3 = function getYesOrNo(val) {
20335
20518
  if (isNull(val)) return null;
20336
20519
  return val ? '是' : '否';
20337
20520
  };
@@ -20482,7 +20665,7 @@ var getColumns$3 = function getColumns(_ref) {
20482
20665
  label: '否',
20483
20666
  value: false
20484
20667
  }]
20485
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$2(val));
20668
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20486
20669
  },
20487
20670
  width: 100
20488
20671
  }]
@@ -20494,7 +20677,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
20494
20677
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
20495
20678
  return false;
20496
20679
  };
20497
- var getYesOrNo$3 = function getYesOrNo(val) {
20680
+ var getYesOrNo$4 = function getYesOrNo(val) {
20498
20681
  if (isNull(val)) return null;
20499
20682
  return val ? '是' : '否';
20500
20683
  };
@@ -20609,7 +20792,7 @@ var getColumns$4 = function getColumns(_ref) {
20609
20792
  title: "\u662F\u5426\u53D6\u6D88",
20610
20793
  width: 150,
20611
20794
  render: function render(val) {
20612
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20795
+ return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20613
20796
  }
20614
20797
  }, {
20615
20798
  dataIndex: 'isGift',
@@ -20628,7 +20811,7 @@ var getColumns$4 = function getColumns(_ref) {
20628
20811
  label: '否',
20629
20812
  value: 0
20630
20813
  }]
20631
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20814
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20632
20815
  }
20633
20816
  }, {
20634
20817
  dataIndex: 'skuNote',
@@ -20754,7 +20937,7 @@ var getColumns$4 = function getColumns(_ref) {
20754
20937
  label: '否',
20755
20938
  value: 0
20756
20939
  }]
20757
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
20940
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20758
20941
  }
20759
20942
  }].map(function (item) {
20760
20943
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -20883,7 +21066,7 @@ var getColumns$4 = function getColumns(_ref) {
20883
21066
  label: '否',
20884
21067
  value: 0
20885
21068
  }]
20886
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
21069
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
20887
21070
  }
20888
21071
  }].map(function (item) {
20889
21072
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -21622,16 +21805,28 @@ function toNum$3(value) {
21622
21805
  }
21623
21806
  return void 0;
21624
21807
  }
21625
- var getColumns$6 = function getColumns(_ref) {
21626
- var _ref$text = _ref.text,
21808
+ var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
21809
+ if (typeof value === 'number') return true;
21810
+ if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21811
+ return false;
21812
+ };
21813
+ var getColumns$6 = function getColumns() {
21814
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
21815
+ _ref$text = _ref.text,
21627
21816
  disabled = _ref.disabled,
21628
- updateHandle = _ref.updateHandle;
21817
+ updateHandle = _ref.updateHandle,
21818
+ updateDataHandle = _ref.updateDataHandle;
21629
21819
  return {
21630
21820
  KM_GOODS: [{
21631
21821
  dataIndex: 'skuPropertiesName',
21632
21822
  title: "\u89C4\u683C\u540D\u79F0",
21633
21823
  width: 250,
21634
21824
  render: renderTextEllipsis
21825
+ }, {
21826
+ dataIndex: 'sysSkuPropertiesName',
21827
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
21828
+ width: 150,
21829
+ render: renderTextEllipsis
21635
21830
  }, {
21636
21831
  dataIndex: 'sysTitle',
21637
21832
  title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
@@ -21739,6 +21934,11 @@ var getColumns$6 = function getColumns(_ref) {
21739
21934
  title: "\u4F9B\u5E94\u5546\u7F16\u7801",
21740
21935
  width: 150,
21741
21936
  render: renderTextEllipsis
21937
+ }, {
21938
+ dataIndex: 'remark',
21939
+ title: "\u5907\u6CE8",
21940
+ width: 200,
21941
+ render: renderTextEllipsis
21742
21942
  }].map(function (item) {
21743
21943
  return _objectSpread2(_objectSpread2({}, item), {}, {
21744
21944
  align: 'center',
@@ -21750,6 +21950,11 @@ var getColumns$6 = function getColumns(_ref) {
21750
21950
  title: "\u89C4\u683C\u540D\u79F0",
21751
21951
  width: 250,
21752
21952
  render: renderTextEllipsis
21953
+ }, {
21954
+ dataIndex: 'sysSkuPropertiesName',
21955
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
21956
+ width: 150,
21957
+ render: renderTextEllipsis
21753
21958
  }, {
21754
21959
  dataIndex: 'sysTitle',
21755
21960
  title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
@@ -21794,7 +21999,9 @@ var getColumns$6 = function getColumns(_ref) {
21794
21999
  dataIndex: 'realNum',
21795
22000
  title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
21796
22001
  width: 100,
21797
- validator: function validator(_rule, value) {
22002
+ validator: function validator(_rule, value, extraParams) {
22003
+ console.log('实际补发数量-extraParams', extraParams);
22004
+ if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
21798
22005
  var title = '';
21799
22006
  if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
21800
22007
  var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
@@ -21822,8 +22029,21 @@ var getColumns$6 = function getColumns(_ref) {
21822
22029
  }
21823
22030
  }, {
21824
22031
  dataIndex: 'desiredNum',
21825
- title: "\u5E94\u8865\u53D1\u6570\u91CF",
22032
+ title: "\u7533\u8BF7\u8865\u53D1\u6570\u91CF",
21826
22033
  width: 100,
22034
+ validator: function validator(_rule, value) {
22035
+ var title = '';
22036
+ if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
22037
+ var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22038
+ var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
22039
+ if (res) {
22040
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22041
+ }
22042
+ return res;
22043
+ })) {
22044
+ return Promise.reject("".concat(title, "\u7533\u8BF7\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22045
+ }
22046
+ },
21827
22047
  render: function render(val, record, index) {
21828
22048
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21829
22049
  style: {
@@ -21892,136 +22112,60 @@ var getColumns$6 = function getColumns(_ref) {
21892
22112
  align: 'center',
21893
22113
  ellipsis: true
21894
22114
  });
21895
- })
21896
- };
21897
- };
21898
-
21899
- var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
21900
- if (typeof value === 'number') return true;
21901
- if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21902
- return false;
21903
- };
21904
- function toNum$4(value) {
21905
- if (typeof value === 'string') {
21906
- return value ? +value : void 0;
21907
- }
21908
- if (typeof value === 'number') {
21909
- return value;
21910
- }
21911
- return void 0;
21912
- }
21913
- var getColumns$7 = function getColumns(_ref) {
21914
- var _ref$text = _ref.text,
21915
- disabled = _ref.disabled,
21916
- updateHandle = _ref.updateHandle,
21917
- updateDataHandle = _ref.updateDataHandle;
21918
- return {
21919
- //巨益商品信息
21920
- JY_GOODS: [{
21921
- dataIndex: 'productName',
21922
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
21923
- align: 'center',
21924
- ellipsis: true,
21925
- width: 150,
21926
- render: renderTextEllipsis
21927
- }, {
21928
- dataIndex: 'productCode',
21929
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
21930
- align: 'center',
21931
- ellipsis: true,
21932
- width: 150,
21933
- render: renderTextEllipsis
21934
- }, {
21935
- dataIndex: 'productId',
21936
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
21937
- align: 'center',
21938
- ellipsis: true,
21939
- width: 150,
22115
+ }),
22116
+ KM_RETURN_GOODS: [{
22117
+ dataIndex: 'skuPropertiesName',
22118
+ title: "\u89C4\u683C\u540D\u79F0",
22119
+ width: 250,
21940
22120
  render: renderTextEllipsis
21941
22121
  }, {
21942
- dataIndex: 'skuName',
22122
+ dataIndex: 'sysSkuPropertiesName',
21943
22123
  title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
21944
- align: 'center',
21945
- ellipsis: true,
21946
22124
  width: 150,
21947
22125
  render: renderTextEllipsis
21948
22126
  }, {
21949
- dataIndex: 'skuCode',
21950
- title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
21951
- align: 'center',
21952
- ellipsis: true,
22127
+ dataIndex: 'sysTitle',
22128
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
21953
22129
  width: 150,
21954
22130
  render: renderTextEllipsis
21955
22131
  }, {
21956
- dataIndex: 'specId',
21957
- title: "\u89C4\u683CID",
21958
- align: 'center',
21959
- ellipsis: true,
22132
+ dataIndex: 'shortTitle',
22133
+ title: "\u5546\u54C1\u7B80\u79F0",
21960
22134
  width: 150,
21961
22135
  render: renderTextEllipsis
21962
22136
  }, {
21963
- dataIndex: 'goodsClass',
21964
- title: "\u8D27\u54C1\u7C7B\u522B",
22137
+ dataIndex: 'title',
22138
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21965
22139
  width: 150,
21966
22140
  render: renderTextEllipsis
21967
22141
  }, {
21968
- dataIndex: 'code',
21969
- title: "\u6761\u7801",
22142
+ dataIndex: 'sysOuterId',
22143
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
21970
22144
  width: 150,
21971
22145
  render: renderTextEllipsis
21972
- },
21973
- // {
21974
- // dataIndex: 'specName',
21975
- // title: `规格名称`,
21976
- // align: 'center',
21977
- // ellipsis: true,
21978
- // width: 200,
21979
- // },
21980
- // {
21981
- // dataIndex: 'specCode',
21982
- // title: `规格编号`,
21983
- // align: 'center',
21984
- // ellipsis: true,
21985
- // width: 150,
21986
- // },
21987
- {
21988
- dataIndex: 'mallProductName',
21989
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21990
- align: 'center',
21991
- ellipsis: true,
21992
- width: 250,
21993
- render: renderTextEllipsis
21994
22146
  }, {
21995
- dataIndex: 'mallProductOutCode',
21996
- title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
21997
- align: 'center',
21998
- ellipsis: true,
22147
+ dataIndex: 'itemSysId',
22148
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
21999
22149
  width: 150,
22000
22150
  render: renderTextEllipsis
22001
22151
  }, {
22002
- dataIndex: 'mallProductId',
22003
- title: "\u5E73\u53F0\u5546\u54C1ID",
22004
- align: 'center',
22005
- ellipsis: true,
22006
- width: 250,
22152
+ dataIndex: 'skuSysId',
22153
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
22154
+ width: 150,
22007
22155
  render: renderTextEllipsis
22008
22156
  }, {
22009
- dataIndex: 'mallSkuName',
22010
- title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
22011
- align: 'center',
22012
- ellipsis: true,
22013
- width: 250,
22157
+ dataIndex: 'skuId',
22158
+ title: "\u5E73\u53F0\u89C4\u683CID",
22159
+ width: 170,
22014
22160
  render: renderTextEllipsis
22015
22161
  }, {
22016
- dataIndex: 'mallSkuId',
22017
- title: "\u5E73\u53F0\u89C4\u683CID",
22018
- align: 'center',
22019
- ellipsis: true,
22020
- width: 250,
22162
+ dataIndex: 'outerSkuId',
22163
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
22164
+ width: 170,
22021
22165
  render: renderTextEllipsis
22022
22166
  }, {
22023
- dataIndex: 'sellCount',
22024
- title: "\u6570\u91CF",
22167
+ dataIndex: 'realNum',
22168
+ title: "\u5B9E\u9645\u9000\u8D27\u6570\u91CF",
22025
22169
  width: 100,
22026
22170
  render: function render(val, record, index) {
22027
22171
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
@@ -22033,48 +22177,449 @@ var getColumns$7 = function getColumns(_ref) {
22033
22177
  precision: 0,
22034
22178
  onChange: function onChange(num) {
22035
22179
  updateDataHandle({
22036
- sellCount: num,
22037
- sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22180
+ realNum: num,
22181
+ refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
22038
22182
  }, index);
22039
22183
  }
22040
22184
  }) : /*#__PURE__*/React.createElement("span", null, val);
22041
22185
  }
22042
22186
  }, {
22043
- dataIndex: 'sellPrice',
22044
- title: "\u5355\u4EF7",
22045
- width: 150,
22187
+ dataIndex: 'desiredNum',
22188
+ title: "\u7533\u8BF7\u9000\u8D27\u6570\u91CF",
22189
+ width: 100,
22190
+ validator: function validator(_rule, value) {
22191
+ var title = '';
22192
+ if (((value === null || value === void 0 ? void 0 : value.kmReturnGoods) || []).some(function (goods) {
22193
+ var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22194
+ var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
22195
+ if (res) {
22196
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22197
+ }
22198
+ return res;
22199
+ })) {
22200
+ return Promise.reject("".concat(title, "\u7533\u8BF7\u9000\u8D27\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22201
+ }
22202
+ },
22046
22203
  render: function render(val, record, index) {
22047
22204
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22048
22205
  style: {
22049
- width: 130
22206
+ width: 70
22050
22207
  },
22051
22208
  value: val,
22052
- min: 0,
22053
- precision: 2,
22209
+ min: 1,
22210
+ precision: 0,
22054
22211
  onChange: function onChange(num) {
22055
- updateDataHandle({
22056
- sellPrice: num,
22057
- sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22058
- }, index);
22212
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
22059
22213
  }
22060
22214
  }) : /*#__PURE__*/React.createElement("span", null, val);
22061
22215
  }
22062
22216
  }, {
22063
- dataIndex: 'mallSellingPrice',
22064
- title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
22065
- width: 150
22066
- }, {
22067
- dataIndex: 'sellTotal',
22068
- title: "\u91D1\u989D",
22069
- width: 150
22070
- }, {
22071
- dataIndex: 'settlementPrice',
22072
- title: "\u7ED3\u7B97\u4EF7",
22073
- width: 150
22074
- }, {
22075
- dataIndex: 'divideOrderFee',
22076
- title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
22077
- width: 150
22217
+ dataIndex: 'goodNum',
22218
+ title: "\u826F\u54C1\u6570",
22219
+ width: 100,
22220
+ render: function render(val, record, index) {
22221
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22222
+ style: {
22223
+ width: 70
22224
+ },
22225
+ value: val,
22226
+ min: 1,
22227
+ precision: 0,
22228
+ onChange: function onChange(num) {
22229
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'goodNum');
22230
+ }
22231
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22232
+ }
22233
+ }, {
22234
+ dataIndex: 'defectiveNum',
22235
+ title: "\u6B21\u54C1\u6570",
22236
+ width: 100,
22237
+ render: function render(val, record, index) {
22238
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22239
+ style: {
22240
+ width: 70
22241
+ },
22242
+ value: val,
22243
+ min: 1,
22244
+ precision: 0,
22245
+ onChange: function onChange(num) {
22246
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'defectiveNum');
22247
+ }
22248
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22249
+ }
22250
+ }, {
22251
+ dataIndex: 'price',
22252
+ title: "\u5546\u54C1\u9500\u552E\u4EF7",
22253
+ width: 150,
22254
+ render: function render(val) {
22255
+ return val || val === 0 ? Number(val).toFixed(2) : '';
22256
+ }
22257
+ }, {
22258
+ dataIndex: 'refundMoney',
22259
+ title: "\u5B9E\u9000\u91D1\u989D",
22260
+ width: 150,
22261
+ render: function render(val, record, index) {
22262
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22263
+ style: {
22264
+ width: 130
22265
+ },
22266
+ value: val,
22267
+ min: 0,
22268
+ precision: 2,
22269
+ onChange: function onChange(num) {
22270
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'refundMoney');
22271
+ }
22272
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
22273
+ }
22274
+ }, {
22275
+ dataIndex: 'type',
22276
+ title: "\u5546\u54C1\u7C7B\u578B",
22277
+ width: 150,
22278
+ render: renderTextEllipsis
22279
+ }, {
22280
+ dataIndex: 'sysPicPath',
22281
+ title: "\u5546\u54C1\u56FE\u7247",
22282
+ width: 100,
22283
+ headerComponentType: 'pic',
22284
+ render: function render(val) {
22285
+ var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
22286
+ return /*#__PURE__*/React.createElement(Image, {
22287
+ width: 30,
22288
+ src: imgUrl
22289
+ });
22290
+ }
22291
+ }].map(function (item) {
22292
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22293
+ align: 'center',
22294
+ ellipsis: true
22295
+ });
22296
+ }),
22297
+ KM_EXCHANGE_GOODS: [{
22298
+ dataIndex: 'skuPropertiesName',
22299
+ title: "\u89C4\u683C\u540D\u79F0",
22300
+ width: 250,
22301
+ render: renderTextEllipsis
22302
+ }, {
22303
+ dataIndex: 'sysSkuPropertiesName',
22304
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22305
+ width: 150,
22306
+ render: renderTextEllipsis
22307
+ }, {
22308
+ dataIndex: 'sysTitle',
22309
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22310
+ width: 150,
22311
+ render: renderTextEllipsis
22312
+ }, {
22313
+ dataIndex: 'shortTitle',
22314
+ title: "\u5546\u54C1\u7B80\u79F0",
22315
+ width: 150,
22316
+ render: renderTextEllipsis
22317
+ }, {
22318
+ dataIndex: 'title',
22319
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22320
+ width: 150,
22321
+ render: renderTextEllipsis
22322
+ }, {
22323
+ dataIndex: 'sysOuterId',
22324
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
22325
+ width: 150,
22326
+ render: renderTextEllipsis
22327
+ }, {
22328
+ dataIndex: 'itemSysId',
22329
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
22330
+ width: 150,
22331
+ render: renderTextEllipsis
22332
+ }, {
22333
+ dataIndex: 'skuSysId',
22334
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
22335
+ width: 150,
22336
+ render: renderTextEllipsis
22337
+ }, {
22338
+ dataIndex: 'skuId',
22339
+ title: "\u5E73\u53F0\u89C4\u683CID",
22340
+ width: 170,
22341
+ render: renderTextEllipsis
22342
+ }, {
22343
+ dataIndex: 'outerSkuId',
22344
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
22345
+ width: 170,
22346
+ render: renderTextEllipsis
22347
+ }, {
22348
+ dataIndex: 'realNum',
22349
+ title: "\u5B9E\u9645\u6362\u51FA\u6570\u91CF",
22350
+ width: 100,
22351
+ validator: function validator(_rule, value, extraParams) {
22352
+ if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
22353
+ var title = '';
22354
+ if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
22355
+ var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
22356
+ var res = typeof realNum === 'number' ? realNum < 1 : true;
22357
+ if (res) {
22358
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22359
+ }
22360
+ return res;
22361
+ })) {
22362
+ return Promise.reject("".concat(title, "\u5B9E\u9645\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22363
+ }
22364
+ },
22365
+ render: function render(val, record, index) {
22366
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22367
+ style: {
22368
+ width: 70
22369
+ },
22370
+ value: val,
22371
+ min: 1,
22372
+ precision: 0,
22373
+ onChange: function onChange(num) {
22374
+ updateDataHandle({
22375
+ realNum: num,
22376
+ refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
22377
+ }, index);
22378
+ }
22379
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22380
+ }
22381
+ }, {
22382
+ dataIndex: 'desiredNum',
22383
+ title: "\u5E94\u6362\u51FA\u6570\u91CF",
22384
+ width: 100,
22385
+ validator: function validator(_rule, value) {
22386
+ var title = '';
22387
+ if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
22388
+ var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
22389
+ var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
22390
+ if (res) {
22391
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22392
+ }
22393
+ return res;
22394
+ })) {
22395
+ return Promise.reject("".concat(title, "\u5E94\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22396
+ }
22397
+ },
22398
+ render: function render(val, record, index) {
22399
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22400
+ style: {
22401
+ width: 70
22402
+ },
22403
+ value: val,
22404
+ min: 1,
22405
+ precision: 0,
22406
+ onChange: function onChange(num) {
22407
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
22408
+ }
22409
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22410
+ }
22411
+ }, {
22412
+ dataIndex: 'price',
22413
+ title: "\u5546\u54C1\u9500\u552E\u4EF7",
22414
+ width: 150,
22415
+ render: function render(val) {
22416
+ return val || val === 0 ? Number(val).toFixed(2) : '';
22417
+ }
22418
+ }, {
22419
+ dataIndex: 'type',
22420
+ title: "\u5546\u54C1\u7C7B\u578B",
22421
+ width: 150,
22422
+ render: renderTextEllipsis
22423
+ }, {
22424
+ dataIndex: 'sysPicPath',
22425
+ title: "\u5546\u54C1\u56FE\u7247",
22426
+ width: 100,
22427
+ headerComponentType: 'pic',
22428
+ render: function render(val) {
22429
+ var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
22430
+ return /*#__PURE__*/React.createElement(Image, {
22431
+ width: 30,
22432
+ src: imgUrl
22433
+ });
22434
+ }
22435
+ }].map(function (item) {
22436
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22437
+ align: 'center',
22438
+ ellipsis: true
22439
+ });
22440
+ })
22441
+ };
22442
+ };
22443
+
22444
+ var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
22445
+ if (typeof value === 'number') return true;
22446
+ if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
22447
+ return false;
22448
+ };
22449
+ function toNum$4(value) {
22450
+ if (typeof value === 'string') {
22451
+ return value ? +value : void 0;
22452
+ }
22453
+ if (typeof value === 'number') {
22454
+ return value;
22455
+ }
22456
+ return void 0;
22457
+ }
22458
+ var getColumns$7 = function getColumns(_ref) {
22459
+ var _ref$text = _ref.text,
22460
+ disabled = _ref.disabled,
22461
+ updateHandle = _ref.updateHandle,
22462
+ updateDataHandle = _ref.updateDataHandle;
22463
+ return {
22464
+ //巨益商品信息
22465
+ JY_GOODS: [{
22466
+ dataIndex: 'productName',
22467
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22468
+ align: 'center',
22469
+ ellipsis: true,
22470
+ width: 150,
22471
+ render: renderTextEllipsis
22472
+ }, {
22473
+ dataIndex: 'productCode',
22474
+ title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
22475
+ align: 'center',
22476
+ ellipsis: true,
22477
+ width: 150,
22478
+ render: renderTextEllipsis
22479
+ }, {
22480
+ dataIndex: 'productId',
22481
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
22482
+ align: 'center',
22483
+ ellipsis: true,
22484
+ width: 150,
22485
+ render: renderTextEllipsis
22486
+ }, {
22487
+ dataIndex: 'skuName',
22488
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22489
+ align: 'center',
22490
+ ellipsis: true,
22491
+ width: 150,
22492
+ render: renderTextEllipsis
22493
+ }, {
22494
+ dataIndex: 'skuCode',
22495
+ title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
22496
+ align: 'center',
22497
+ ellipsis: true,
22498
+ width: 150,
22499
+ render: renderTextEllipsis
22500
+ }, {
22501
+ dataIndex: 'specId',
22502
+ title: "\u89C4\u683CID",
22503
+ align: 'center',
22504
+ ellipsis: true,
22505
+ width: 150,
22506
+ render: renderTextEllipsis
22507
+ }, {
22508
+ dataIndex: 'goodsClass',
22509
+ title: "\u8D27\u54C1\u7C7B\u522B",
22510
+ width: 150,
22511
+ render: renderTextEllipsis
22512
+ }, {
22513
+ dataIndex: 'code',
22514
+ title: "\u6761\u7801",
22515
+ width: 150,
22516
+ render: renderTextEllipsis
22517
+ },
22518
+ // {
22519
+ // dataIndex: 'specName',
22520
+ // title: `规格名称`,
22521
+ // align: 'center',
22522
+ // ellipsis: true,
22523
+ // width: 200,
22524
+ // },
22525
+ // {
22526
+ // dataIndex: 'specCode',
22527
+ // title: `规格编号`,
22528
+ // align: 'center',
22529
+ // ellipsis: true,
22530
+ // width: 150,
22531
+ // },
22532
+ {
22533
+ dataIndex: 'mallProductName',
22534
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22535
+ align: 'center',
22536
+ ellipsis: true,
22537
+ width: 250,
22538
+ render: renderTextEllipsis
22539
+ }, {
22540
+ dataIndex: 'mallProductOutCode',
22541
+ title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
22542
+ align: 'center',
22543
+ ellipsis: true,
22544
+ width: 150,
22545
+ render: renderTextEllipsis
22546
+ }, {
22547
+ dataIndex: 'mallProductId',
22548
+ title: "\u5E73\u53F0\u5546\u54C1ID",
22549
+ align: 'center',
22550
+ ellipsis: true,
22551
+ width: 250,
22552
+ render: renderTextEllipsis
22553
+ }, {
22554
+ dataIndex: 'mallSkuName',
22555
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
22556
+ align: 'center',
22557
+ ellipsis: true,
22558
+ width: 250,
22559
+ render: renderTextEllipsis
22560
+ }, {
22561
+ dataIndex: 'mallSkuId',
22562
+ title: "\u5E73\u53F0\u89C4\u683CID",
22563
+ align: 'center',
22564
+ ellipsis: true,
22565
+ width: 250,
22566
+ render: renderTextEllipsis
22567
+ }, {
22568
+ dataIndex: 'sellCount',
22569
+ title: "\u6570\u91CF",
22570
+ width: 100,
22571
+ render: function render(val, record, index) {
22572
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22573
+ style: {
22574
+ width: 70
22575
+ },
22576
+ value: val,
22577
+ min: 1,
22578
+ precision: 0,
22579
+ onChange: function onChange(num) {
22580
+ updateDataHandle({
22581
+ sellCount: num,
22582
+ sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
22583
+ }, index);
22584
+ }
22585
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22586
+ }
22587
+ }, {
22588
+ dataIndex: 'sellPrice',
22589
+ title: "\u5355\u4EF7",
22590
+ width: 150,
22591
+ render: function render(val, record, index) {
22592
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
22593
+ style: {
22594
+ width: 130
22595
+ },
22596
+ value: val,
22597
+ min: 0,
22598
+ precision: 2,
22599
+ onChange: function onChange(num) {
22600
+ updateDataHandle({
22601
+ sellPrice: num,
22602
+ sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
22603
+ }, index);
22604
+ }
22605
+ }) : /*#__PURE__*/React.createElement("span", null, val);
22606
+ }
22607
+ }, {
22608
+ dataIndex: 'mallSellingPrice',
22609
+ title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
22610
+ width: 150
22611
+ }, {
22612
+ dataIndex: 'sellTotal',
22613
+ title: "\u91D1\u989D",
22614
+ width: 150
22615
+ }, {
22616
+ dataIndex: 'settlementPrice',
22617
+ title: "\u7ED3\u7B97\u4EF7",
22618
+ width: 150
22619
+ }, {
22620
+ dataIndex: 'divideOrderFee',
22621
+ title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
22622
+ width: 150
22078
22623
  }, {
22079
22624
  dataIndex: 'bfit',
22080
22625
  title: "\u662F\u5426\u7EC4\u5408\u88C5",
@@ -22257,7 +22802,7 @@ var getColumns$7 = function getColumns(_ref) {
22257
22802
  onChange: function onChange(num) {
22258
22803
  updateDataHandle({
22259
22804
  sellCount: num,
22260
- sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22805
+ sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
22261
22806
  }, index);
22262
22807
  }
22263
22808
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22277,7 +22822,7 @@ var getColumns$7 = function getColumns(_ref) {
22277
22822
  onChange: function onChange(num) {
22278
22823
  updateDataHandle({
22279
22824
  sellPrice: num,
22280
- sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22825
+ sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
22281
22826
  }, index);
22282
22827
  }
22283
22828
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22401,7 +22946,7 @@ var getColumns$8 = function getColumns(_ref) {
22401
22946
  };
22402
22947
  };
22403
22948
 
22404
- var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
22949
+ var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
22405
22950
  if (typeof value === 'number') return true;
22406
22951
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
22407
22952
  return false;
@@ -22491,7 +23036,7 @@ var getColumns$9 = function getColumns(_ref) {
22491
23036
  onChange: function onChange(num) {
22492
23037
  updateDataHandle({
22493
23038
  sellCount: num,
22494
- sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
23039
+ sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
22495
23040
  }, index);
22496
23041
  }
22497
23042
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22516,14 +23061,14 @@ var getColumns$9 = function getColumns(_ref) {
22516
23061
  onChange: function onChange(num) {
22517
23062
  updateDataHandle({
22518
23063
  sellPrice: num,
22519
- sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
23064
+ sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
22520
23065
  }, index);
22521
23066
  }
22522
23067
  }) : /*#__PURE__*/React.createElement("span", null, val);
22523
23068
  }
22524
23069
  }, {
22525
23070
  dataIndex: 'sellTotal',
22526
- title: "\u91D1\u989D",
23071
+ title: "\u603B\u91D1\u989D",
22527
23072
  width: 150
22528
23073
  }, {
22529
23074
  dataIndex: 'discountTotal',
@@ -22548,7 +23093,22 @@ var getColumns$9 = function getColumns(_ref) {
22548
23093
  }, {
22549
23094
  dataIndex: 'divideSellTotal',
22550
23095
  title: "\u5B9E\u4ED8\u91D1\u989D",
22551
- width: 150
23096
+ width: 150,
23097
+ render: function render(val, record, index) {
23098
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
23099
+ style: {
23100
+ width: 130
23101
+ },
23102
+ value: val,
23103
+ min: 0,
23104
+ precision: 2,
23105
+ onChange: function onChange(num) {
23106
+ updateDataHandle({
23107
+ divideSellTotal: num
23108
+ }, index);
23109
+ }
23110
+ }) : /*#__PURE__*/React.createElement("span", null, val);
23111
+ }
22552
23112
  }, {
22553
23113
  dataIndex: 'isGift',
22554
23114
  title: "\u662F\u5426\u8D60\u54C1",
@@ -22567,12 +23127,12 @@ var getColumns$9 = function getColumns(_ref) {
22567
23127
  },
22568
23128
  options: [{
22569
23129
  label: '是',
22570
- value: '1'
23130
+ value: 1
22571
23131
  }, {
22572
23132
  label: '否',
22573
- value: '0'
23133
+ value: 0
22574
23134
  }]
22575
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
23135
+ }) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
22576
23136
  }
22577
23137
  }, {
22578
23138
  dataIndex: 'isFit',
@@ -22592,12 +23152,12 @@ var getColumns$9 = function getColumns(_ref) {
22592
23152
  },
22593
23153
  options: [{
22594
23154
  label: '是',
22595
- value: '1'
23155
+ value: 1
22596
23156
  }, {
22597
23157
  label: '否',
22598
- value: '0'
23158
+ value: 0
22599
23159
  }]
22600
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
23160
+ }) : /*#__PURE__*/React.createElement("span", null, val == 1 ? '是' : '否');
22601
23161
  }
22602
23162
  }, {
22603
23163
  dataIndex: 'isPresell',
@@ -22622,7 +23182,7 @@ var getColumns$9 = function getColumns(_ref) {
22622
23182
  label: '否',
22623
23183
  value: '0'
22624
23184
  }]
22625
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
23185
+ }) : /*#__PURE__*/React.createElement("span", null, val == '1' ? '是' : '否');
22626
23186
  }
22627
23187
  }, {
22628
23188
  dataIndex: 'brandName',
@@ -22800,7 +23360,7 @@ var getColumns$9 = function getColumns(_ref) {
22800
23360
  onChange: function onChange(num) {
22801
23361
  updateDataHandle({
22802
23362
  sellCount: num,
22803
- sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
23363
+ sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
22804
23364
  }, index);
22805
23365
  }
22806
23366
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22820,7 +23380,7 @@ var getColumns$9 = function getColumns(_ref) {
22820
23380
  onChange: function onChange(num) {
22821
23381
  updateDataHandle({
22822
23382
  sellPrice: num,
22823
- sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
23383
+ sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
22824
23384
  }, index);
22825
23385
  }
22826
23386
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -22841,8 +23401,8 @@ var getColumns$9 = function getColumns(_ref) {
22841
23401
  width: 250,
22842
23402
  render: function render(val, record, index) {
22843
23403
  return !disabled ? /*#__PURE__*/React.createElement(ApaasInput, {
22844
- onChange: function onChange(value) {
22845
- updateHandle(value, index, 'reason');
23404
+ onChange: function onChange(e) {
23405
+ updateHandle(e.target.value, index, 'reason');
22846
23406
  }
22847
23407
  }) : /*#__PURE__*/React.createElement("span", null, val);
22848
23408
  }
@@ -22858,12 +23418,12 @@ var getColumns$9 = function getColumns(_ref) {
22858
23418
  },
22859
23419
  options: [{
22860
23420
  label: '是',
22861
- value: '1'
23421
+ value: 1
22862
23422
  }, {
22863
23423
  label: '否',
22864
- value: '0'
23424
+ value: 0
22865
23425
  }]
22866
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
23426
+ }) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
22867
23427
  }
22868
23428
  }, {
22869
23429
  dataIndex: 'isFit',
@@ -22877,12 +23437,12 @@ var getColumns$9 = function getColumns(_ref) {
22877
23437
  },
22878
23438
  options: [{
22879
23439
  label: '是',
22880
- value: 'True'
23440
+ value: 1
22881
23441
  }, {
22882
23442
  label: '否',
22883
- value: 'False'
23443
+ value: 0
22884
23444
  }]
22885
- }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
23445
+ }) : /*#__PURE__*/React.createElement("span", null, val === 1 ? '是' : '否');
22886
23446
  }
22887
23447
  }, {
22888
23448
  dataIndex: 'brandName',
@@ -23048,7 +23608,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
23048
23608
  })), getColumns$6({
23049
23609
  text: text,
23050
23610
  disabled: disabled,
23051
- updateHandle: updateHandle
23611
+ updateHandle: updateHandle,
23612
+ updateDataHandle: updateDataHandle
23052
23613
  })), getColumns$7({
23053
23614
  text: text,
23054
23615
  disabled: disabled,
@@ -23072,7 +23633,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
23072
23633
  });
23073
23634
  };
23074
23635
  var erpColumnsMap = getColumnsMap$1();
23075
- var erpFormValidator = function erpFormValidator(_rule, value, type) {
23636
+ var erpFormValidator = function erpFormValidator(_rule, value, type, extraParams) {
23076
23637
  var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
23077
23638
  return column.validator;
23078
23639
  }).filter(Boolean);
@@ -23082,7 +23643,7 @@ var erpFormValidator = function erpFormValidator(_rule, value, type) {
23082
23643
  try {
23083
23644
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
23084
23645
  var validatorFn = _step.value;
23085
- var validatorResult = validatorFn(_rule, value, type);
23646
+ var validatorResult = validatorFn(_rule, value, extraParams);
23086
23647
  if (validatorResult) {
23087
23648
  res = validatorResult;
23088
23649
  break;
@@ -23207,7 +23768,7 @@ var isErpType = {
23207
23768
  return ['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type);
23208
23769
  },
23209
23770
  isKm: function isKm(type) {
23210
- return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
23771
+ return ['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'KM_EXCHANGE_GOODS'].includes(type);
23211
23772
  },
23212
23773
  isJy: function isJy(type) {
23213
23774
  return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
@@ -23266,6 +23827,13 @@ var processGoods$1 = function processGoods(_ref) {
23266
23827
  canUpdateNumber: canUpdateNumber,
23267
23828
  source: source
23268
23829
  });
23830
+ } else if (isErpType.isJky(type)) {
23831
+ newList = processJkyGoods$1({
23832
+ list: list,
23833
+ type: type,
23834
+ canUpdateNumber: canUpdateNumber,
23835
+ source: source
23836
+ });
23269
23837
  } else {
23270
23838
  newList = processDefaultGoods({
23271
23839
  list: list,
@@ -23314,11 +23882,45 @@ var processJyGoods = function processJyGoods(_ref2) {
23314
23882
  });
23315
23883
  });
23316
23884
  };
23317
- // 处理不同类型的商品数据
23318
- var processWdtGoods$1 = function processWdtGoods(_ref3) {
23885
+ var processJkyGoods$1 = function processJkyGoods(_ref3) {
23319
23886
  var list = _ref3.list,
23320
- type = _ref3.type,
23321
23887
  canUpdateNumber = _ref3.canUpdateNumber;
23888
+ return list.map(function (item) {
23889
+ var goodName = item.goodName,
23890
+ goodNo = item.goodNo,
23891
+ goodId = item.goodId,
23892
+ specBarcode = item.specBarcode,
23893
+ retailPrice = item.retailPrice,
23894
+ isGift = item.isGift,
23895
+ skuType = item.skuType,
23896
+ specImgUrl = item.specImgUrl,
23897
+ categoryName = item.categoryName;
23898
+ return _objectSpread2(_objectSpread2({}, item), {}, {
23899
+ cateName: categoryName,
23900
+ goodsName: goodName,
23901
+ goodsNo: goodNo,
23902
+ goodsId: goodId,
23903
+ barcode: specBarcode,
23904
+ skuImgUrl: specImgUrl,
23905
+ combinationName: goodName,
23906
+ combinationCode: goodNo,
23907
+ isGift: isGift ? 1 : 0,
23908
+ isFit: skuType === 'combine' ? 1 : 0,
23909
+ uuid: uuid(),
23910
+ canDelete: true,
23911
+ sellCount: 1,
23912
+ sellPrice: retailPrice,
23913
+ sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
23914
+ canEdit: true,
23915
+ canUpdateNumber: canUpdateNumber
23916
+ });
23917
+ });
23918
+ };
23919
+ // 处理不同类型的商品数据
23920
+ var processWdtGoods$1 = function processWdtGoods(_ref4) {
23921
+ var list = _ref4.list,
23922
+ type = _ref4.type,
23923
+ canUpdateNumber = _ref4.canUpdateNumber;
23322
23924
  return list.map(function (item) {
23323
23925
  var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
23324
23926
  uuid: uuid(),
@@ -23336,9 +23938,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
23336
23938
  return processedItem;
23337
23939
  });
23338
23940
  };
23339
- var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
23340
- var list = _ref4.list,
23341
- canUpdateNumber = _ref4.canUpdateNumber;
23941
+ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
23942
+ var list = _ref5.list,
23943
+ canUpdateNumber = _ref5.canUpdateNumber;
23342
23944
  return list.map(function (item) {
23343
23945
  var specNo = item.specNo,
23344
23946
  specId = item.specId,
@@ -23373,9 +23975,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
23373
23975
  });
23374
23976
  });
23375
23977
  };
23376
- var processGyGoods$1 = function processGyGoods(_ref5) {
23377
- var list = _ref5.list,
23378
- source = _ref5.source;
23978
+ var processGyGoods$1 = function processGyGoods(_ref6) {
23979
+ var list = _ref6.list,
23980
+ source = _ref6.source;
23379
23981
  var isFormWorkOrder = source === 'workOrder';
23380
23982
  return list.map(function (item) {
23381
23983
  var goodName = item.goodName,
@@ -23402,8 +24004,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
23402
24004
  });
23403
24005
  });
23404
24006
  };
23405
- var processJstGoods$1 = function processJstGoods(_ref6) {
23406
- var list = _ref6.list;
24007
+ var processJstGoods$1 = function processJstGoods(_ref7) {
24008
+ var list = _ref7.list;
23407
24009
  return list.map(function (item) {
23408
24010
  return {
23409
24011
  name: item.goodName,
@@ -23421,9 +24023,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
23421
24023
  };
23422
24024
  });
23423
24025
  };
23424
- var processKmGoods$1 = function processKmGoods(_ref7) {
23425
- var list = _ref7.list,
23426
- type = _ref7.type;
24026
+ var processKmGoods$1 = function processKmGoods(_ref8) {
24027
+ var list = _ref8.list,
24028
+ type = _ref8.type;
23427
24029
  var initParamsMap = {
23428
24030
  KM_GOODS: {
23429
24031
  num: 1
@@ -23431,18 +24033,26 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
23431
24033
  KM_REISSUE_GOODS: {
23432
24034
  realNum: 1,
23433
24035
  desiredNum: 1
24036
+ },
24037
+ KM_RETURN_GOODS: {},
24038
+ KM_EXCHANGE_GOODS: {
24039
+ realNum: 1,
24040
+ desiredNum: 1
23434
24041
  }
23435
24042
  };
23436
24043
  return list.map(function (item) {
23437
24044
  return _objectSpread2(_objectSpread2({}, item), {}, {
23438
24045
  skuPropertiesName: item.specName,
24046
+ sysSkuPropertiesName: item.specId,
23439
24047
  sysTitle: item.goodName,
23440
24048
  title: null,
23441
24049
  shortTitle: item.goodShortName,
23442
24050
  sysOuterId: item.goodNo,
23443
24051
  outerId: item.goodNo,
23444
24052
  skuSysId: item.specId,
24053
+ sysSkuId: item.specId,
23445
24054
  itemSysId: item.goodId,
24055
+ sysItemId: item.goodId,
23446
24056
  sysPicPath: item.goodPicUrl,
23447
24057
  payment: null,
23448
24058
  price: item.retailPrice,
@@ -23453,9 +24063,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
23453
24063
  }, initParamsMap[type] || {});
23454
24064
  });
23455
24065
  };
23456
- var processDefaultGoods = function processDefaultGoods(_ref8) {
23457
- var list = _ref8.list,
23458
- canUpdateNumber = _ref8.canUpdateNumber;
24066
+ var processDefaultGoods = function processDefaultGoods(_ref9) {
24067
+ var list = _ref9.list,
24068
+ canUpdateNumber = _ref9.canUpdateNumber;
23459
24069
  return list.map(function (item) {
23460
24070
  var goodsId = item.goodsId,
23461
24071
  name = item.name,
@@ -23498,6 +24108,8 @@ var GoodsModalMap = {
23498
24108
  JST_EXCHANGE_GOODS: JstGoodsModal,
23499
24109
  KM_GOODS: KmGoodsModal,
23500
24110
  KM_REISSUE_GOODS: KmGoodsModal,
24111
+ KM_RETURN_GOODS: KmGoodsModal,
24112
+ KM_EXCHANGE_GOODS: KmGoodsModal,
23501
24113
  JY_GOODS: JyGoodsModal$1,
23502
24114
  JY_REISSUE_GOODS: JyGoodsModal$1,
23503
24115
  JKY_GOODS: JkyGoodsModal$1,
@@ -23517,6 +24129,8 @@ var systemOrderNoMap = {
23517
24129
  JKY_GOODS: 'tradeNo',
23518
24130
  JKY_REISSUE_GOODS: 'tradeNo',
23519
24131
  KM_REISSUE_GOODS: 'sid',
24132
+ KM_RETURN_GOODS: 'sid',
24133
+ KM_EXCHANGE_GOODS: 'sid',
23520
24134
  JST_REISSUE_GOODS: 'oId',
23521
24135
  GY_REISSUE_GOODS: 'code',
23522
24136
  BS_E3_REISSUE_GOODS: 'orderSn',
@@ -23542,7 +24156,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23542
24156
  type = _ref$type === void 0 ? '' : _ref$type,
23543
24157
  width = _ref.width,
23544
24158
  _ref$isReissueType = _ref.isReissueType,
23545
- isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType;
24159
+ isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType,
24160
+ _ref$isReloadSelectTa = _ref.isReloadSelectTable,
24161
+ isReloadSelectTable = _ref$isReloadSelectTa === void 0 ? false : _ref$isReloadSelectTa,
24162
+ validSystemOrderFn = _ref.validSystemOrderFn;
23546
24163
  var _useState = useState(),
23547
24164
  _useState2 = _slicedToArray(_useState, 2),
23548
24165
  selectSystemNo = _useState2[0],
@@ -23561,7 +24178,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23561
24178
  systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
23562
24179
  return item === null || item === void 0 ? void 0 : item.sysItemId;
23563
24180
  }).map(function (item) {
23564
- return (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? 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);
24181
+ return !(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);
23565
24182
  });
23566
24183
  _context.next = 3;
23567
24184
  return servers.KM.getSupplierSingleton(systemItemIds);
@@ -23570,7 +24187,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23570
24187
  dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
23571
24188
  return item === null || item === void 0 ? void 0 : item.sysItemId;
23572
24189
  })) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
23573
- var key = (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? 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);
24190
+ 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);
23574
24191
  var supplierInfo = supplierMap.get(key);
23575
24192
  item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
23576
24193
  item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
@@ -23587,36 +24204,52 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23587
24204
  }();
23588
24205
  var openModal = /*#__PURE__*/function () {
23589
24206
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
24207
+ var flag;
23590
24208
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
23591
24209
  while (1) switch (_context2.prev = _context2.next) {
23592
24210
  case 0:
24211
+ if (!validSystemOrderFn) {
24212
+ _context2.next = 7;
24213
+ break;
24214
+ }
24215
+ _context2.next = 3;
24216
+ return validSystemOrderFn();
24217
+ case 3:
24218
+ flag = _context2.sent;
24219
+ if (!(flag === false)) {
24220
+ _context2.next = 7;
24221
+ break;
24222
+ }
24223
+ console.log('validSystemOrderFn校验不通过');
24224
+ return _context2.abrupt("return");
24225
+ case 7:
23593
24226
  if (!validSystemOrder) {
23594
- _context2.next = 3;
24227
+ _context2.next = 10;
23595
24228
  break;
23596
24229
  }
23597
24230
  message.warning('请选择补发系统单');
23598
24231
  return _context2.abrupt("return");
23599
- case 3:
23600
- if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
23601
- _context2.next = 6;
24232
+ case 10:
24233
+ if (!(getDataSourceAsync && (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || isReloadSelectTable))) {
24234
+ _context2.next = 13;
23602
24235
  break;
23603
24236
  }
23604
- _context2.next = 6;
24237
+ _context2.next = 13;
23605
24238
  return getDataSourceAsync();
23606
- case 6:
23607
- if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
23608
- _context2.next = 9;
24239
+ case 13:
24240
+ if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
24241
+ _context2.next = 16;
23609
24242
  break;
23610
24243
  }
23611
- _context2.next = 9;
24244
+ _context2.next = 16;
23612
24245
  return getKmSupplier(dataSource);
23613
- case 9:
24246
+ case 16:
23614
24247
  setTradeGoodsVisible(true);
23615
24248
  // 补发直接传入的是systemNo
23616
24249
  if (isShowSelect && isReissueType) {
23617
24250
  setSelectSystemNo(selectedSystemOrders || []);
23618
24251
  }
23619
- case 11:
24252
+ case 18:
23620
24253
  case "end":
23621
24254
  return _context2.stop();
23622
24255
  }
@@ -23728,9 +24361,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
23728
24361
  }
23729
24362
  }), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
23730
24363
  };
24364
+ SelectTradeGoods.displayName = 'SelectTradeGoods';
23731
24365
  var getButtonText = function getButtonText() {
23732
24366
  var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
23733
- if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
24367
+ if (['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_EXCHANGE_GOODS'].includes(type)) {
23734
24368
  return '选择快麦ERP商品';
23735
24369
  }
23736
24370
  if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
@@ -23801,14 +24435,16 @@ var GoodItem$1 = function GoodItem(props) {
23801
24435
  _props$templateDetail = props.templateDetail,
23802
24436
  templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
23803
24437
  _props$hasSelectedSys = props.hasSelectedSystemOrder,
23804
- hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
24438
+ hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys,
24439
+ isReloadSelectTable = props.isReloadSelectTable,
24440
+ validSystemOrderFn = props.validSystemOrderFn;
23805
24441
  var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
23806
24442
  var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
23807
24443
  // 监听聚水潭退货商品
23808
24444
  var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
23809
24445
  var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
23810
24446
  // 判断是否为是否展示系统单筛选项
23811
- 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;
24447
+ 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;
23812
24448
  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;
23813
24449
  var refModal = useRef();
23814
24450
  console.debug('表格数据', value);
@@ -23898,6 +24534,8 @@ var GoodItem$1 = function GoodItem(props) {
23898
24534
  case 'GY_RETURN_GOODS':
23899
24535
  case 'KM_GOODS':
23900
24536
  case 'KM_REISSUE_GOODS':
24537
+ case 'KM_RETURN_GOODS':
24538
+ case 'KM_EXCHANGE_GOODS':
23901
24539
  case 'JY_GOODS':
23902
24540
  case 'JY_REISSUE_GOODS':
23903
24541
  case 'JKY_GOODS':
@@ -24100,6 +24738,8 @@ var GoodItem$1 = function GoodItem(props) {
24100
24738
  checked: isStrict,
24101
24739
  onChange: handleCheckboxChange
24102
24740
  }, "\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, {
24741
+ isReloadSelectTable: isReloadSelectTable,
24742
+ validSystemOrderFn: validSystemOrderFn,
24103
24743
  validSystemOrder: validSystemOrder,
24104
24744
  isShowSelect: isShowSelect,
24105
24745
  uniqueKey: uniqueKey,
@@ -24830,7 +25470,8 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
24830
25470
  billNo: item.tradeNo,
24831
25471
  billType: WDT_ORDER_TYPE_MAP[item.tradeType],
24832
25472
  billTag: item.tagName || item.tags,
24833
- 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]
25473
+ 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],
25474
+ logisticsName: ExpressData.getInstance('wdt').getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCode, false) || (item === null || item === void 0 ? void 0 : item.logisticsName)
24834
25475
  });
24835
25476
  });
24836
25477
  }
@@ -25117,21 +25758,25 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
25117
25758
  extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
25118
25759
  method: 'post',
25119
25760
  data: {
25120
- billNo: orderNo
25761
+ sourceTradeNos: orderNo
25121
25762
  }
25122
25763
  }).then(function (res) {
25123
25764
  if (res === null || res === void 0 ? void 0 : res.success) {
25124
- var _res$data, _res$data$tradeOrderD, _res$data3;
25125
- if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$tradeOrderD = _res$data.tradeOrderDetails) === null || _res$data$tradeOrderD === void 0 ? void 0 : _res$data$tradeOrderD.length) {
25126
- var _filterJkyOrders, _res$data2;
25127
- res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
25765
+ var _res$data, _res$data2;
25766
+ if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
25767
+ var _filterJkyOrders;
25768
+ res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
25128
25769
  return _objectSpread2(_objectSpread2({}, item), {}, {
25770
+ tradeFrom: JKY_ORDER_FROM_MAP[item.tradeFrom],
25129
25771
  tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
25130
- tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
25772
+ tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus],
25773
+ logisticName: getJkyLogisticInfo(item, 'logisticName'),
25774
+ logisticCode: getJkyLogisticInfo(item, 'logisticCode'),
25775
+ logisticNo: getJkyLogisticInfo(item, 'logisticNo')
25131
25776
  });
25132
25777
  });
25133
25778
  }
25134
- resolve(((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.trades) || []);
25779
+ resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
25135
25780
  // 延迟10秒清除,保证订单的时效性
25136
25781
  setTimeout(function () {
25137
25782
  singletonMap$7.delete(orderNo);
@@ -25493,8 +26138,8 @@ var index$2 = (function (props) {
25493
26138
  while (1) switch (_context8.prev = _context8.next) {
25494
26139
  case 0:
25495
26140
  jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
25496
- var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25497
- return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
26141
+ var trades = (data || []).filter(function (item) {
26142
+ return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
25498
26143
  });
25499
26144
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
25500
26145
  orders: trades,
@@ -25524,12 +26169,9 @@ var index$2 = (function (props) {
25524
26169
  while (1) switch (_context9.prev = _context9.next) {
25525
26170
  case 0:
25526
26171
  jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
25527
- var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25528
- return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
25529
- });
25530
26172
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
25531
- orders: trades,
25532
- showOrderInfo: trades
26173
+ orders: data || [],
26174
+ showOrderInfo: data || []
25533
26175
  }));
25534
26176
  });
25535
26177
  onceRef.current = false;
@@ -26506,8 +27148,8 @@ var processGyOrders = function processGyOrders(_ref4) {
26506
27148
  var processJyOrders = function processJyOrders(_ref5) {
26507
27149
  var data = _ref5.data,
26508
27150
  orderNo = _ref5.orderNo;
26509
- var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
26510
- return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
27151
+ var trades = (data || []).filter(function (item) {
27152
+ return getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
26511
27153
  });
26512
27154
  return trades;
26513
27155
  };
@@ -26832,7 +27474,7 @@ var CommonGoods = function CommonGoods(props) {
26832
27474
  value === null || value === void 0 ? void 0 : (_value$kmGoods = value.kmGoods) === null || _value$kmGoods === void 0 ? void 0 : (_value$kmGoods$filter = _value$kmGoods.filter(function (item) {
26833
27475
  return item === null || item === void 0 ? void 0 : item.sysItemId;
26834
27476
  })) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
26835
- var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
27477
+ 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);
26836
27478
  map[key] = item;
26837
27479
  });
26838
27480
  }
@@ -26873,7 +27515,8 @@ var CommonGoods = function CommonGoods(props) {
26873
27515
  hasChange = false;
26874
27516
  currentValue = valueRef.current;
26875
27517
  kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
26876
- var supplierInfo = supplierMap.get(item.sysItemId);
27518
+ 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);
27519
+ var supplierInfo = supplierMap.get(key);
26877
27520
  var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
26878
27521
  var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
26879
27522
  // 如果供应商信息有变化,标记需要更新
@@ -27157,7 +27800,6 @@ var CommonGoods = function CommonGoods(props) {
27157
27800
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
27158
27801
  type: compType
27159
27802
  });
27160
- console.log('getDataSourceAsync', list);
27161
27803
  onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
27162
27804
  allOrders: list || []
27163
27805
  }));
@@ -27193,6 +27835,7 @@ var CommonGoods = function CommonGoods(props) {
27193
27835
  }
27194
27836
  }));
27195
27837
  };
27838
+ CommonGoods.displayName = 'CommonGoods';
27196
27839
 
27197
27840
  var componentMap$3 = {
27198
27841
  WDT_RETURN_GOODS: {
@@ -27386,6 +28029,55 @@ var componentMap$4 = {
27386
28029
  returnGoodsSysorder: 'jstReturnGoodsSysorder',
27387
28030
  returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
27388
28031
  }
28032
+ },
28033
+ KM_EXCHANGE_GOODS: {
28034
+ type: 'km',
28035
+ showChooseTradeGoodsBtn: true,
28036
+ valueKey: 'kmExchangeGoods',
28037
+ returnTypeKey: 'kmExchangeType',
28038
+ systemOrder: 'kmSystemOrder',
28039
+ systemOrderNo: 'kmSystemOrderNo',
28040
+ oIdKey: 'billNo',
28041
+ goodDetailsKey: 'subOrders',
28042
+ skuIdKey: 'skuId',
28043
+ outerOiIdKey: '',
28044
+ name: '快麦',
28045
+ updateGoodsHandle: updateKmGoodsHandle,
28046
+ isReloadSelectTable: true,
28047
+ validSystemOrderFn: function () {
28048
+ var _validSystemOrderFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(form) {
28049
+ var returnGoodsValue;
28050
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
28051
+ while (1) switch (_context.prev = _context.next) {
28052
+ case 0:
28053
+ _context.next = 2;
28054
+ return form.getFieldValue('KM3F7B91C2');
28055
+ case 2:
28056
+ returnGoodsValue = _context.sent;
28057
+ if (returnGoodsValue.kmSystemOrderNo) {
28058
+ _context.next = 6;
28059
+ break;
28060
+ }
28061
+ message.error('请选择退货系统单');
28062
+ return _context.abrupt("return", false);
28063
+ case 6:
28064
+ case "end":
28065
+ return _context.stop();
28066
+ }
28067
+ }, _callee);
28068
+ }));
28069
+ function validSystemOrderFn(_x) {
28070
+ return _validSystemOrderFn.apply(this, arguments);
28071
+ }
28072
+ return validSystemOrderFn;
28073
+ }(),
28074
+ eventNameMap: {
28075
+ // pubsub 事件
28076
+ exchangeCopyGood: 'kmExchangeCopyGood',
28077
+ exchangeBackCopyGood: 'kmExchangeBackCopyGood',
28078
+ returnGoodsSysorder: 'kmReturnGoodsSysorder',
28079
+ returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
28080
+ }
27389
28081
  }
27390
28082
  };
27391
28083
  var CommonExchangeGoods = function CommonExchangeGoods(props) {
@@ -27393,7 +28085,8 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
27393
28085
  var value = props.value,
27394
28086
  onChange = props.onChange,
27395
28087
  disabled = props.disabled,
27396
- compType = props.type;
28088
+ compType = props.type,
28089
+ form = props.form;
27397
28090
  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';
27398
28091
  var valueRef = useRef({});
27399
28092
  // PS: 目前选择订单商品,只有聚水潭换出商品,而且聚水潭不用考虑合并单,所以这个值一直是 false
@@ -27486,6 +28179,10 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
27486
28179
  return new Promise(function (resolve) {
27487
28180
  pubsub.subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
27488
28181
  resolve(data);
28182
+ console.log('getDataSourceAsync---111data--', data, getGoodDetails({
28183
+ returnGoodsValue: data,
28184
+ mode: isStrict
28185
+ }));
27489
28186
  setOriginDataSource(getGoodDetails({
27490
28187
  returnGoodsValue: data,
27491
28188
  mode: isStrict
@@ -27494,9 +28191,14 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
27494
28191
  pubsub.publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
27495
28192
  });
27496
28193
  };
28194
+ console.log('aaa--', originDataSource);
27497
28195
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
27498
28196
  key: componentMap$4[compType].type
27499
28197
  }, props), {}, {
28198
+ validSystemOrderFn: function validSystemOrderFn() {
28199
+ return componentMap$4[compType].validSystemOrderFn(form);
28200
+ },
28201
+ isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
27500
28202
  disabled: disabled,
27501
28203
  canUpdateNumber: true,
27502
28204
  showChangeBtn: true,
@@ -27830,6 +28532,30 @@ var typeMap$2 = {
27830
28532
  uniqueKey: 'id',
27831
28533
  isShowSelectTradeGoods: true
27832
28534
  },
28535
+ KM_RETURN_GOODS: {
28536
+ compType: '退货',
28537
+ key: 'kmReturnGoods',
28538
+ typeName: 'kmReturnType',
28539
+ systemOrder: 'kmSystemOrder',
28540
+ systemOrderNo: 'kmSystemOrderNo',
28541
+ getOrderList: kmUtils.getOrderListSingleton,
28542
+ updateGoodsHandle: updateKmGoodsHandle,
28543
+ alwaysShowChooseErpGoodsBtn: true,
28544
+ orderTypeKey: 'orderType',
28545
+ oIdKey: 'billNo',
28546
+ outerOiIdKey: '',
28547
+ goodDetailsKey: 'subOrders',
28548
+ uniqueKey: 'id',
28549
+ isShowSelectTradeGoods: true,
28550
+ showErpGoodsBtn: false,
28551
+ eventNameMap: {
28552
+ // pubsub 事件
28553
+ exchangeCopyGood: 'kmExchangeCopyGood',
28554
+ exchangeBackCopyGood: 'kmExchangeBackCopyGood',
28555
+ returnGoodsSysorder: 'kmReturnGoodsSysorder',
28556
+ returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
28557
+ }
28558
+ },
27833
28559
  JY_REISSUE_GOODS: {
27834
28560
  compType: '补发',
27835
28561
  key: 'jyReissueGoods',
@@ -27856,14 +28582,14 @@ var typeMap$2 = {
27856
28582
  alwaysShowChooseErpGoodsBtn: true,
27857
28583
  orderTypeKey: 'orderType',
27858
28584
  oIdKey: 'tradeNo',
27859
- outerOiIdKey: '',
27860
- goodDetailsKey: 'subOrderDetails',
28585
+ outerOiIdKey: 'sourceSubtradeNo',
28586
+ goodDetailsKey: 'goodsDetail',
27861
28587
  isShowSelectTradeGoods: true,
27862
28588
  showModeBtn: true
27863
28589
  }
27864
28590
  };
27865
28591
  var PublicReissue = function PublicReissue(props) {
27866
- var _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _typeMap$type53, _value$typeMap$type$s9, _typeMap$type54, _typeMap$type55, _typeMap$type56, _typeMap$type57;
28592
+ 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;
27867
28593
  var value = props.value,
27868
28594
  onChange = props.onChange,
27869
28595
  _props$reasonList = props.reasonList,
@@ -27981,24 +28707,25 @@ var PublicReissue = function PublicReissue(props) {
27981
28707
  };
27982
28708
  var sysItemIdMap = useMemo(function () {
27983
28709
  var map = {};
27984
- if (type === 'KM_REISSUE_GOODS') {
27985
- var _value$kmReissueGoods, _value$kmReissueGoods2;
27986
- 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) {
28710
+ if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
28711
+ var _value$goodsKey, _value$goodsKey$filte;
28712
+ var goodsKey = typeMap$2[type].key;
28713
+ 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) {
27987
28714
  return item === null || item === void 0 ? void 0 : item.sysItemId;
27988
- })) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
27989
- var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
28715
+ })) === null || _value$goodsKey$filte === void 0 ? void 0 : _value$goodsKey$filte.forEach(function (item) {
28716
+ 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);
27990
28717
  map[key] = item;
27991
28718
  });
27992
28719
  }
27993
28720
  return map;
27994
- }, [value === null || value === void 0 ? void 0 : value.kmReissueGoods]);
28721
+ }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key]]);
27995
28722
  // 用于跟踪已经处理过的 sysItemId,避免重复处理
27996
28723
  var processedSysItemIdsRef = useRef(new Set());
27997
28724
  useEffect(function () {
27998
28725
  var fetchSupplier = /*#__PURE__*/function () {
27999
28726
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
28000
- var _currentValue$kmReiss;
28001
- var needFetchIds, supplierMap, hasChange, currentValue, kmReissueGoods;
28727
+ var _currentValue$goodsKe;
28728
+ var needFetchIds, supplierMap, hasChange, currentValue, goodsKey, kmGoods;
28002
28729
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
28003
28730
  while (1) switch (_context2.prev = _context2.next) {
28004
28731
  case 0:
@@ -28026,8 +28753,10 @@ var PublicReissue = function PublicReissue(props) {
28026
28753
  // 检查是否有实际变化,避免不必要的更新
28027
28754
  hasChange = false;
28028
28755
  currentValue = valueRef.current;
28029
- kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
28030
- var supplierInfo = supplierMap.get(item.sysItemId);
28756
+ goodsKey = typeMap$2[type].key;
28757
+ kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$goodsKe = currentValue[goodsKey]) === null || _currentValue$goodsKe === void 0 ? void 0 : _currentValue$goodsKe.map(function (item) {
28758
+ 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);
28759
+ var supplierInfo = supplierMap.get(key);
28031
28760
  var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
28032
28761
  var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
28033
28762
  // 如果供应商信息有变化,标记需要更新
@@ -28042,12 +28771,10 @@ var PublicReissue = function PublicReissue(props) {
28042
28771
  }
28043
28772
  return item;
28044
28773
  }); // 只在有实际变化时才更新
28045
- if (hasChange && kmReissueGoods) {
28046
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
28047
- kmReissueGoods: kmReissueGoods
28048
- }));
28774
+ if (hasChange && kmGoods) {
28775
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, _defineProperty({}, goodsKey, kmGoods)));
28049
28776
  }
28050
- case 12:
28777
+ case 13:
28051
28778
  case "end":
28052
28779
  return _context2.stop();
28053
28780
  }
@@ -28063,20 +28790,20 @@ var PublicReissue = function PublicReissue(props) {
28063
28790
  }
28064
28791
  }, [sysItemIdMap]);
28065
28792
  var getGoodDetails = function getGoodDetails(_ref5) {
28066
- var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
28793
+ var _typeMap$type19, _typeMap$type20, _value$typeMap$type$s6, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
28067
28794
  var mode = _ref5.mode,
28068
28795
  sysOrderNo = _ref5.sysOrderNo,
28069
28796
  _ref5$isAllOrders = _ref5.isAllOrders,
28070
28797
  isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
28071
- 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];
28072
- 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];
28798
+ 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];
28799
+ 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];
28073
28800
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
28074
28801
  return order[typeMap$2[type].oIdKey] === systemOrderNo;
28075
28802
  });
28076
28803
  var orderRest = undefined;
28077
28804
  if (['JST_REISSUE_GOODS', 'JST_RETURN_GOODS'].includes(type)) {
28078
28805
  orderRest = true;
28079
- } else if (type === 'KM_REISSUE_GOODS') {
28806
+ } else if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
28080
28807
  orderRest = {
28081
28808
  orderBackGoodsLevel: props.orderBackGoodsLevel,
28082
28809
  canEdit: true
@@ -28090,13 +28817,12 @@ var PublicReissue = function PublicReissue(props) {
28090
28817
  canEdit: true
28091
28818
  };
28092
28819
  }
28093
- 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] : [];
28820
+ 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] : [];
28094
28821
  var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
28095
28822
  var _order$typeMap$type$g;
28096
28823
  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;
28097
28824
  });
28098
- console.log(type, orders, (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle(orders, orderRest));
28099
- var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
28825
+ 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) : [];
28100
28826
  var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
28101
28827
  var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
28102
28828
  return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
@@ -28223,28 +28949,29 @@ var PublicReissue = function PublicReissue(props) {
28223
28949
  hasSelectedSystemOrder: showChangeBtn,
28224
28950
  // showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
28225
28951
  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,
28226
- // showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
28952
+ 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,
28227
28953
  shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
28228
- value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.key)],
28954
+ 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)],
28229
28955
  onChange: function onChange(val) {
28230
28956
  return changeGoodHandle(val);
28231
28957
  },
28232
28958
  onModeChange: handleModeChange,
28233
- showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.showModeBtn),
28959
+ 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),
28234
28960
  isStrict: isStrict,
28235
- isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.isShowSelectTradeGoods,
28236
- systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
28237
- selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.systemOrderNo)]] : [],
28961
+ 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,
28962
+ 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,
28963
+ 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)]] : [],
28238
28964
  tradeGoods: {
28239
28965
  originDataSource: getGoodDetails({
28240
28966
  mode: isStrict,
28241
- isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.isShowSelectTradeGoods
28967
+ 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
28242
28968
  }),
28243
- uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.uniqueKey) || 'uuid',
28969
+ 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',
28244
28970
  selectedGoodsChange: selectedGoodsChange
28245
28971
  }
28246
28972
  })));
28247
28973
  };
28974
+ PublicReissue.displayName = 'PublicReissue';
28248
28975
 
28249
28976
  var css_248z$g = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\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.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
28250
28977
  styleInject(css_248z$g);