@kmkf-fe-packages/basic-components 2.11.1 → 2.12.0

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, request as request$1, ExpressData, isNull, imgResize, uuid, normalizeYouzanStar, servers, columnsGoodsList, LogisticsAddressData, isJdLogisticsCompany, getJdCustomerCodeOptions, 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, DxdSuppliersData, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, warehouseTypeMap, 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, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, TTX_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, TTX_INTERNAL_ORDER_TYPE_MAP, TTX_STATUS_MAP, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, updateTtxGoodsHandle, 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, normalizeYouzanStar, servers, columnsGoodsList, LogisticsAddressData, isJdLogisticsCompany, getJdCustomerCodeOptions, 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, DxdSuppliersData, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, warehouseTypeMap, 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, isPlatformAfterSalesOrderMultiple, 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, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, TTX_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, TTX_INTERNAL_ORDER_TYPE_MAP, TTX_STATUS_MAP, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, updateTtxGoodsHandle, 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, intersection, isEmpty } from 'lodash';
@@ -7996,6 +7996,7 @@ var ParseLogistics = function ParseLogistics(props) {
7996
7996
  onChange === null || onChange === void 0 ? void 0 : onChange(data);
7997
7997
  }).catch(function (e) {
7998
7998
  handleAIIdentify(fullAddress);
7999
+ console.log(e);
7999
8000
  }).finally(function () {
8000
8001
  setLoading(false);
8001
8002
  });
@@ -8023,6 +8024,7 @@ var ParseLogistics = function ParseLogistics(props) {
8023
8024
  }
8024
8025
  onChange === null || onChange === void 0 ? void 0 : onChange(data);
8025
8026
  }).catch(function (e) {
8027
+ console.log(e);
8026
8028
  message.error('识别失败,请输入正确的信息');
8027
8029
  }).finally(function () {
8028
8030
  setAiLoading(false);
@@ -12453,7 +12455,7 @@ var Goods = function Goods(props) {
12453
12455
  return querySkus({
12454
12456
  shopId: shopId,
12455
12457
  numIids: numIid
12456
- }).catch(function () {});
12458
+ }).catch(console.debug);
12457
12459
  case 5:
12458
12460
  res = _context3.sent;
12459
12461
  data = (res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data);
@@ -12837,7 +12839,7 @@ var GoodItem = function GoodItem(props) {
12837
12839
  return querySkus({
12838
12840
  shopId: shopId,
12839
12841
  numIids: numIid
12840
- }).catch(function () {});
12842
+ }).catch(console.debug);
12841
12843
  case 5:
12842
12844
  res = _context3.sent;
12843
12845
  data = (res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data);
@@ -13717,12 +13719,13 @@ var LogisticsInterception = function LogisticsInterception(props) {
13717
13719
  latestData = data || [];
13718
13720
  LogisticsAddress.setaddressData(latestData);
13719
13721
  setLogisticsAddressData(latestData);
13720
- _context.next = 12;
13722
+ _context.next = 13;
13721
13723
  break;
13722
13724
  case 10:
13723
13725
  _context.prev = 10;
13724
13726
  _context.t0 = _context["catch"](0);
13725
- case 12:
13727
+ console.log(_context.t0);
13728
+ case 13:
13726
13729
  case "end":
13727
13730
  return _context.stop();
13728
13731
  }
@@ -13829,6 +13832,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
13829
13832
  });
13830
13833
  }
13831
13834
  }
13835
+ console.log('newValue', newValue);
13832
13836
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
13833
13837
  };
13834
13838
  //智能识别回调
@@ -14445,14 +14449,21 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14445
14449
  }); // 1、初始值没有 传入值有请求快照
14446
14450
  // 2、初始值有 传入值有 其中有不一样的请求快照
14447
14451
  // 3、初始值有 传入值有 都一样的返回初始值
14452
+ console.log('list', initList, valueList, changeList);
14453
+ // console.log('old', initValue, value, changeValue);
14454
+ // console.log('一样', JSON.stringify(initList) !== JSON.stringify(valueList));
14455
+ // console.log(
14456
+ // '一样2',
14457
+ // JSON.stringify(changeList) !== JSON.stringify(valueList),
14458
+ // );
14448
14459
  if (!(!initList.length && !valueList.length)) {
14449
- _context.next = 7;
14460
+ _context.next = 8;
14450
14461
  break;
14451
14462
  }
14452
14463
  return _context.abrupt("return");
14453
- case 7:
14464
+ case 8:
14454
14465
  if (!(JSON.stringify(initList) === JSON.stringify(valueList))) {
14455
- _context.next = 13;
14466
+ _context.next = 14;
14456
14467
  break;
14457
14468
  }
14458
14469
  initSnapshotList = initValue.reduce(function (prv, next) {
@@ -14471,13 +14482,13 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14471
14482
  setNewValue(initValue);
14472
14483
  onChange(initValue);
14473
14484
  }
14474
- _context.next = 29;
14485
+ _context.next = 30;
14475
14486
  break;
14476
- case 13:
14487
+ case 14:
14477
14488
  if (!(
14478
14489
  //开启了物流快照才会获取快照信息
14479
14490
  hasSnapshot && JSON.stringify(initList) !== JSON.stringify(valueList) && JSON.stringify(changeList) !== JSON.stringify(valueList))) {
14480
- _context.next = 28;
14491
+ _context.next = 29;
14481
14492
  break;
14482
14493
  }
14483
14494
  hasSave.current = false;
@@ -14486,7 +14497,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14486
14497
  });
14487
14498
  listValue = cloneDeep(value);
14488
14499
  if (!hasValue) {
14489
- _context.next = 23;
14500
+ _context.next = 24;
14490
14501
  break;
14491
14502
  }
14492
14503
  requestList = valueList.map(function (item) {
@@ -14505,9 +14516,9 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14505
14516
  });
14506
14517
  }
14507
14518
  });
14508
- _context.next = 21;
14519
+ _context.next = 22;
14509
14520
  return Promise.allSettled(requestList);
14510
- case 21:
14521
+ case 22:
14511
14522
  requestValues = _context.sent;
14512
14523
  listValue = cloneDeep(value).map(function (item, index) {
14513
14524
  var _requestValues$index, _requestValues$index$, _requestValues$index$2;
@@ -14515,15 +14526,15 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14515
14526
  trajectorySnapshot: (_requestValues$index = requestValues[index]) === null || _requestValues$index === void 0 ? void 0 : (_requestValues$index$ = _requestValues$index.value) === null || _requestValues$index$ === void 0 ? void 0 : (_requestValues$index$2 = _requestValues$index$.data) === null || _requestValues$index$2 === void 0 ? void 0 : _requestValues$index$2.logisticsStatusDesc
14516
14527
  });
14517
14528
  });
14518
- case 23:
14529
+ case 24:
14519
14530
  setChangeValue(listValue);
14520
14531
  setNewValue(listValue);
14521
14532
  onChange(listValue);
14522
- _context.next = 29;
14533
+ _context.next = 30;
14523
14534
  break;
14524
- case 28:
14525
- setNewValue(value);
14526
14535
  case 29:
14536
+ setNewValue(value);
14537
+ case 30:
14527
14538
  case "end":
14528
14539
  return _context.stop();
14529
14540
  }
@@ -14622,6 +14633,7 @@ var jstGoods = function jstGoods(props) {
14622
14633
  return item.sendId;
14623
14634
  })) {
14624
14635
  var orderNo = form === null || form === void 0 ? void 0 : form.getFieldValue('m3ap1EvEyd');
14636
+ console.log('发货仓走兜底处理-oldValue--', orderNo, cloneDeep(value));
14625
14637
  var newValue = cloneDeep(value).map(function (item) {
14626
14638
  if (item.sendSnapshotName || !item.sendId) return item;
14627
14639
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -14631,6 +14643,7 @@ var jstGoods = function jstGoods(props) {
14631
14643
  Monitor.automaticReport({
14632
14644
  message: "\u53D1\u8D27\u4ED3\u8D70\u515C\u5E95\u5904\u7406-".concat(orderNo || '', "-oldValue-").concat(JSON.stringify(cloneDeep(value)), ",newValue-").concat(JSON.stringify(cloneDeep(newValue)))
14633
14645
  });
14646
+ console.log('发货仓走兜底处理-newValue--', orderNo, cloneDeep(newValue));
14634
14647
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
14635
14648
  }
14636
14649
  }, [JSON.stringify(value || []), type]);
@@ -19269,6 +19282,7 @@ var SearchHeader = function SearchHeader(_ref) {
19269
19282
  timeOptions = _ref.timeOptions,
19270
19283
  ShopList = _ref.ShopList,
19271
19284
  onSubmit = _ref.onSubmit;
19285
+ console.log('allFields', allFields);
19272
19286
  // const fixedFieldsOptions = useMemo(() => {
19273
19287
  // return allFields.filter(item => fixedFields?.includes(item.id));
19274
19288
  // }, [fixedFields, allFields]);
@@ -19524,7 +19538,9 @@ var WorkorderList = function WorkorderList(props, ref) {
19524
19538
  loading: false
19525
19539
  }));
19526
19540
  setWorkOrderList(newDataSource);
19527
- }).catch(function (error) {}));
19541
+ }).catch(function (error) {
19542
+ console.log('**** 获取表格数据错误', error);
19543
+ }));
19528
19544
  case 19:
19529
19545
  case "end":
19530
19546
  return _context.stop();
@@ -23811,6 +23827,7 @@ var getColumns$6 = function getColumns() {
23811
23827
  title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
23812
23828
  width: 100,
23813
23829
  validator: function validator(_rule, value, extraParams) {
23830
+ console.log('实际补发数量-extraParams', extraParams);
23814
23831
  if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
23815
23832
  var title = '';
23816
23833
  if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
@@ -26401,7 +26418,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
26401
26418
  while (1) switch (_context2.prev = _context2.next) {
26402
26419
  case 0:
26403
26420
  if (!validSystemOrderFn) {
26404
- _context2.next = 6;
26421
+ _context2.next = 7;
26405
26422
  break;
26406
26423
  }
26407
26424
  _context2.next = 3;
@@ -26409,38 +26426,39 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
26409
26426
  case 3:
26410
26427
  flag = _context2.sent;
26411
26428
  if (!(flag === false)) {
26412
- _context2.next = 6;
26429
+ _context2.next = 7;
26413
26430
  break;
26414
26431
  }
26432
+ console.log('validSystemOrderFn校验不通过');
26415
26433
  return _context2.abrupt("return");
26416
- case 6:
26434
+ case 7:
26417
26435
  if (!validSystemOrder) {
26418
- _context2.next = 9;
26436
+ _context2.next = 10;
26419
26437
  break;
26420
26438
  }
26421
26439
  message.warning('请选择补发系统单');
26422
26440
  return _context2.abrupt("return");
26423
- case 9:
26441
+ case 10:
26424
26442
  if (!(getDataSourceAsync && (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || isReloadSelectTable))) {
26425
- _context2.next = 12;
26443
+ _context2.next = 13;
26426
26444
  break;
26427
26445
  }
26428
- _context2.next = 12;
26446
+ _context2.next = 13;
26429
26447
  return getDataSourceAsync();
26430
- case 12:
26448
+ case 13:
26431
26449
  if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
26432
- _context2.next = 15;
26450
+ _context2.next = 16;
26433
26451
  break;
26434
26452
  }
26435
- _context2.next = 15;
26453
+ _context2.next = 16;
26436
26454
  return getKmSupplier(dataSource);
26437
- case 15:
26455
+ case 16:
26438
26456
  setTradeGoodsVisible(true);
26439
26457
  // 补发直接传入的是systemNo
26440
26458
  if (isShowSelect && isReissueType) {
26441
26459
  setSelectSystemNo(selectedSystemOrders || []);
26442
26460
  }
26443
- case 17:
26461
+ case 18:
26444
26462
  case "end":
26445
26463
  return _context2.stop();
26446
26464
  }
@@ -26650,6 +26668,7 @@ var GoodItem$1 = function GoodItem(props) {
26650
26668
  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', 'DXD_GOODS', 'DXD_SUPPLIERS', 'TTX_GOODS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
26651
26669
  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', 'WLN_REISSUE_GOODS'].includes(type) || false;
26652
26670
  var refModal = useRef();
26671
+ console.debug('表格数据', value);
26653
26672
  var handleDelete = function handleDelete(record, index) {
26654
26673
  onDelete === null || onDelete === void 0 ? void 0 : onDelete(value[index]);
26655
26674
  var newList = _toConsumableArray(value).filter(function (item, i) {
@@ -27424,6 +27443,7 @@ var BsReissue = function BsReissue(props) {
27424
27443
  var _typeMap$type2;
27425
27444
  pubsub.subscribe("".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$type2 = typeMap[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.reissueSelectList), function (_, data) {
27426
27445
  var _typeMap$type3;
27446
+ console.log('reissueSelectList', data);
27427
27447
  if (disabled) return;
27428
27448
  var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
27429
27449
  shopCode: data === null || data === void 0 ? void 0 : data.shopCode
@@ -28202,7 +28222,8 @@ var index$2 = (function (props) {
28202
28222
  showHeader = _props$showHeader === void 0 ? [] : _props$showHeader;
28203
28223
  var onceRef = useRef(false);
28204
28224
  var valueRef = useRef(null);
28205
- var isRadio = RADIO_TABLE_KEYS.includes(type);
28225
+ var isMultiple = type === 'PLATFORM_AFTER_SALES_ORDER' && isPlatformAfterSalesOrderMultiple(props);
28226
+ var isRadio = RADIO_TABLE_KEYS.includes(type) && !isMultiple;
28206
28227
  // 字段筛选状态 - 用户选择要筛选的字段(单选)
28207
28228
  var _useState = useState(''),
28208
28229
  _useState2 = _slicedToArray(_useState, 2),
@@ -29402,6 +29423,7 @@ var OrderSubForm = function OrderSubForm(props) {
29402
29423
  manual = props.manual,
29403
29424
  correlationList = props.subConfig.correlationList,
29404
29425
  effects = props.effects;
29426
+ console.log('effects', effects);
29405
29427
  var valueRef = useRef(value);
29406
29428
  useEffect(function () {
29407
29429
  valueRef.current = value;
@@ -29598,7 +29620,7 @@ var OrderSubForm = function OrderSubForm(props) {
29598
29620
  onChange(_objectSpread2(_objectSpread2({}, value), {}, {
29599
29621
  allOrders: allOrders
29600
29622
  }));
29601
- }).catch(function () {}) : Promise.resolve();
29623
+ }).catch(console.debug) : Promise.resolve();
29602
29624
  };
29603
29625
  var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
29604
29626
  var goodDetails = (value === null || value === void 0 ? void 0 : value.allOrders) || [];
@@ -30935,23 +30957,29 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
30935
30957
  var getDataSourceAsync = function getDataSourceAsync() {
30936
30958
  return new Promise(function (resolve) {
30937
30959
  pubsub.subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
30938
- var _componentMap$compTyp9;
30960
+ var _componentMap$compTyp9, _componentMap$compTyp10;
30939
30961
  resolve(data);
30962
+ console.log('getDataSourceAsync---111data--', data, getGoodDetails({
30963
+ returnGoodsValue: data,
30964
+ mode: isStrict,
30965
+ isAllOrders: componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp9 = componentMap$4[compType]) === null || _componentMap$compTyp9 === void 0 ? void 0 : _componentMap$compTyp9.isShowSelectTradeGoods
30966
+ }));
30940
30967
  setOriginDataSource(getGoodDetails({
30941
30968
  returnGoodsValue: data,
30942
- isAllOrders: componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp9 = componentMap$4[compType]) === null || _componentMap$compTyp9 === void 0 ? void 0 : _componentMap$compTyp9.isShowSelectTradeGoods,
30969
+ isAllOrders: componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp10 = componentMap$4[compType]) === null || _componentMap$compTyp10 === void 0 ? void 0 : _componentMap$compTyp10.isShowSelectTradeGoods,
30943
30970
  mode: isStrict
30944
30971
  }));
30945
30972
  });
30946
30973
  pubsub.publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
30947
30974
  });
30948
30975
  };
30976
+ console.log('aaa--', originDataSource);
30949
30977
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
30950
30978
  key: componentMap$4[compType].type
30951
30979
  }, props), {}, {
30952
30980
  validSystemOrderFn: function validSystemOrderFn() {
30953
- var _componentMap$compTyp10, _componentMap$compTyp11;
30954
- return (_componentMap$compTyp10 = (_componentMap$compTyp11 = componentMap$4[compType]).validSystemOrderFn) === null || _componentMap$compTyp10 === void 0 ? void 0 : _componentMap$compTyp10.call(_componentMap$compTyp11, form);
30981
+ var _componentMap$compTyp11, _componentMap$compTyp12;
30982
+ return (_componentMap$compTyp11 = (_componentMap$compTyp12 = componentMap$4[compType]).validSystemOrderFn) === null || _componentMap$compTyp11 === void 0 ? void 0 : _componentMap$compTyp11.call(_componentMap$compTyp12, form);
30955
30983
  },
30956
30984
  isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
30957
30985
  disabled: disabled,
@@ -33802,13 +33830,20 @@ var IdInputSelect = function IdInputSelect(props) {
33802
33830
  tradeId = form.getFieldValue('m3ap1EvEyd');
33803
33831
  skxReturnExpressCode = (_form$getFieldValue = form.getFieldValue('4487c6516b')) === null || _form$getFieldValue === void 0 ? void 0 : (_form$getFieldValue$ = _form$getFieldValue[0]) === null || _form$getFieldValue$ === void 0 ? void 0 : _form$getFieldValue$.logisticsCode;
33804
33832
  blurFrom = form.getFieldValue('skx_return_billNo_blur_from');
33833
+ console.log('asyncQueryData---', {
33834
+ skxReturnExpressCode: skxReturnExpressCode,
33835
+ blurFrom: blurFrom,
33836
+ tradeId: tradeId,
33837
+ tradeIdRef: tradeIdRef.current,
33838
+ form: form
33839
+ });
33805
33840
  if (!(type === 'SKX_OUTBOUND_NOTICE_NO' && !tradeId || type === 'SKX_RETURN_BILL_NO' && !tradeId && !skxReturnExpressCode)) {
33806
- _context3.next = 6;
33841
+ _context3.next = 7;
33807
33842
  break;
33808
33843
  }
33809
33844
  setDataSource([]);
33810
33845
  return _context3.abrupt("return");
33811
- case 6:
33846
+ case 7:
33812
33847
  setSpinning(true);
33813
33848
  // 判断是从哪个组件失焦,若是从[SKX]退换物流信息(TH)失焦,则根据物流单号查询,若是从订单号组件失焦,则根据订单号查询
33814
33849
  typeMap$6[type].asyncGetData(type === 'SKX_RETURN_BILL_NO' && blurFrom === '4487c6516b' ? {
@@ -33822,7 +33857,7 @@ var IdInputSelect = function IdInputSelect(props) {
33822
33857
  }).finally(function () {
33823
33858
  setSpinning(false);
33824
33859
  });
33825
- case 8:
33860
+ case 9:
33826
33861
  case "end":
33827
33862
  return _context3.stop();
33828
33863
  }
@@ -33914,6 +33949,11 @@ var IdInputSelect = function IdInputSelect(props) {
33914
33949
  }))));
33915
33950
  };
33916
33951
  var handleChange = function handleChange(val, isInput) {
33952
+ console.log('handleChange---', {
33953
+ val: val,
33954
+ value: value,
33955
+ isInput: isInput
33956
+ });
33917
33957
  var isReturnBillNoChange = type === 'SKX_RETURN_BILL_NO' && form.getFieldValue('skx_return_billNo_blur_from') === '4487c6516b';
33918
33958
  onChange === null || onChange === void 0 ? void 0 : onChange(val, value !== val && (!!isInput || isReturnBillNoChange));
33919
33959
  // 如果类型是[SKX]退换货单号,则根据blurFrom判断是从[SKX]退换物流信息(TH)失焦,则调用onBlur
@@ -16,6 +16,7 @@ interface BsSystemOrderProps {
16
16
  disabled: boolean;
17
17
  onChange: (val: any) => void;
18
18
  onChangeOrder?: (val: any) => void;
19
+ selectMode?: string;
19
20
  }
20
21
  export declare const rowKeyMap: Record<string, string>;
21
22
  declare const _default: (props: BsSystemOrderProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.11.1",
3
+ "version": "2.12.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "2.11.1",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.12.0",
24
24
  "ahooks": "^3.7.4",
25
25
  "ali-react-table": "2.6.1",
26
26
  "bignumber.js": "^9.1.2",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "3f2986bf8a306c1778d357bbbea27f6bb1e7e39e"
69
+ "gitHead": "9ce1cd19d8f3743fc148d451beee0c0b65493762"
70
70
  }