@kmkf-fe-packages/basic-components 2.10.9-beta.2 → 2.10.9

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,12 +3,13 @@ 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, 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, DxdSuppliersData, 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, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, 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, PLATFORM_AFTER_SALES_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, 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';
10
10
  import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
11
11
  import zhCN from 'antd/lib/locale/zh_CN';
12
+ import Monitor from 'kmkf-monitor';
12
13
  import pubsub from 'pubsub-js';
13
14
  import { internals, useTablePipeline, features, BaseTable } from 'ali-react-table';
14
15
  import zh_CN from 'antd/lib/locale-provider/zh_CN';
@@ -7863,7 +7864,6 @@ var ParseLogistics = function ParseLogistics(props) {
7863
7864
  onChange === null || onChange === void 0 ? void 0 : onChange(data);
7864
7865
  }).catch(function (e) {
7865
7866
  handleAIIdentify(fullAddress);
7866
- console.log(e);
7867
7867
  }).finally(function () {
7868
7868
  setLoading(false);
7869
7869
  });
@@ -7887,7 +7887,6 @@ var ParseLogistics = function ParseLogistics(props) {
7887
7887
  var data = res.data;
7888
7888
  onChange === null || onChange === void 0 ? void 0 : onChange(data);
7889
7889
  }).catch(function (e) {
7890
- console.log(e);
7891
7890
  message.error('识别失败,请输入正确的信息');
7892
7891
  }).finally(function () {
7893
7892
  setAiLoading(false);
@@ -8156,8 +8155,7 @@ var updateWorkTypeKeys = {
8156
8155
  REPAIR_ORDER_ID: 'repairOrderId',
8157
8156
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
8158
8157
  ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
8159
- WDT_SHOP: 'shopCode',
8160
- DXD_SHOP: 'shopCode'
8158
+ WDT_SHOP: 'shopCode'
8161
8159
  };
8162
8160
  var systemOrderMap = {
8163
8161
  BS_SYSTEM_ORDER: {
@@ -8204,11 +8202,6 @@ var systemOrderMap = {
8204
8202
  no: 'wdtReturnBillNo',
8205
8203
  ids: 'wdtReturnBillSelectIds',
8206
8204
  order: 'wdtReturnBillShowOrder'
8207
- },
8208
- DXD_SYSTEM_ORDER: {
8209
- no: 'dxdSystemOrderNo',
8210
- ids: 'dxdSystemSelectIds',
8211
- order: 'dxdSystemShowOrder'
8212
8205
  }
8213
8206
  };
8214
8207
  //直接将key component 添加到 transformWorkOrderData中的componentProcessors
@@ -8678,8 +8671,7 @@ var processSceneStatus = function processSceneStatus(getValue) {
8678
8671
  WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
8679
8672
  JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
8680
8673
  JST_WAREHOUSING_STATUS: 'jstInStockStatusItemList',
8681
- WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList',
8682
- KM_WAREHOUSING_STATUS: 'kmInStockStatusItemList'
8674
+ WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList'
8683
8675
  };
8684
8676
  return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
8685
8677
  };
@@ -8815,60 +8807,6 @@ var processJkyGoods = function processJkyGoods(templateColumns) {
8815
8807
  };
8816
8808
  };
8817
8809
  };
8818
- var processDxdGoods = function processDxdGoods(templateColumns) {
8819
- return function (getValue) {
8820
- return function (nex, config) {
8821
- var _values = {
8822
- dxdGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_dxdGoods")), []),
8823
- shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8824
- };
8825
- var selectIds = [];
8826
- var orderNo = '';
8827
- var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8828
- return col.workOrderComponentType === 'TRADE_ID_INPUT';
8829
- });
8830
- if (tradeId) {
8831
- orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8832
- }
8833
- var dxdSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8834
- return col.workOrderComponentType === 'DXD_SYSTEM_ORDER';
8835
- });
8836
- if (dxdSystemOrder) {
8837
- selectIds = jsonParseSecurity(getValue("".concat(dxdSystemOrder.uniqueKey, "_").concat(systemOrderMap[dxdSystemOrder.workOrderComponentType].ids)), []);
8838
- }
8839
- _values.selectIds = selectIds;
8840
- _values.orderNo = orderNo;
8841
- return _defineProperty({}, nex.uniqueKey, _values);
8842
- };
8843
- };
8844
- };
8845
- var processDxdSuppliers = function processDxdSuppliers(templateColumns) {
8846
- return function (getValue) {
8847
- return function (nex, config) {
8848
- var _values = {
8849
- dxdSuppliers: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_dxdSuppliers")), []),
8850
- shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8851
- };
8852
- var selectIds = [];
8853
- var orderNo = '';
8854
- var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8855
- return col.workOrderComponentType === 'TRADE_ID_INPUT';
8856
- });
8857
- if (tradeId) {
8858
- orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8859
- }
8860
- var dxdSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8861
- return col.workOrderComponentType === 'DXD_SYSTEM_ORDER';
8862
- });
8863
- if (dxdSystemOrder) {
8864
- selectIds = jsonParseSecurity(getValue("".concat(dxdSystemOrder.uniqueKey, "_").concat(systemOrderMap[dxdSystemOrder.workOrderComponentType].ids)), []);
8865
- }
8866
- _values.selectIds = selectIds;
8867
- _values.orderNo = orderNo;
8868
- return _defineProperty({}, nex.uniqueKey, _values);
8869
- };
8870
- };
8871
- };
8872
8810
  var processWdtGoods = function processWdtGoods(templateColumns) {
8873
8811
  return function (getValue) {
8874
8812
  return function (nex, config) {
@@ -9198,11 +9136,6 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
9198
9136
  no: 'wdtReturnBillNo',
9199
9137
  ids: 'wdtReturnBillSelectIds',
9200
9138
  order: 'wdtReturnBillShowOrder'
9201
- },
9202
- DXD_SYSTEM_ORDER: {
9203
- no: 'dxdSystemOrderNo',
9204
- ids: 'dxdSystemSelectIds',
9205
- order: 'dxdSystemShowOrder'
9206
9139
  }
9207
9140
  };
9208
9141
  return _defineProperty({}, nex.uniqueKey, _objectSpread2({
@@ -9472,14 +9405,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9472
9405
  };
9473
9406
  var processLabel = function processLabel(getValue) {
9474
9407
  return function (nex, config) {
9475
- var _ref79;
9476
- return _ref79 = {}, _defineProperty(_ref79, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref79, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref79;
9408
+ var _ref77;
9409
+ 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;
9477
9410
  };
9478
9411
  };
9479
9412
  var processMemberLevel = function processMemberLevel(getValue) {
9480
9413
  return function (nex, config) {
9481
- var _ref80;
9482
- return _ref80 = {}, _defineProperty(_ref80, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref80, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref80;
9414
+ var _ref78;
9415
+ 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;
9483
9416
  };
9484
9417
  };
9485
9418
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9588,7 +9521,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9588
9521
  WLN_WAREHOUSING_STATUS: processSceneStatus,
9589
9522
  JKY_WAREHOUSING_STATUS: processSceneStatus,
9590
9523
  JST_WAREHOUSING_STATUS: processSceneStatus,
9591
- KM_WAREHOUSING_STATUS: processSceneStatus,
9592
9524
  BS_LOGISTICS: processErpLogistics,
9593
9525
  WLN_LOGISTICS: processErpLogistics,
9594
9526
  WDT_LOGISTICS: processErpLogistics,
@@ -9606,8 +9538,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9606
9538
  BS_GOODS: processBsGoods,
9607
9539
  WDT_GOODS: processWdtGoods(templateColumns),
9608
9540
  JKY_GOODS: processJkyGoods(templateColumns),
9609
- DXD_GOODS: processDxdGoods(templateColumns),
9610
- DXD_SUPPLIERS: processDxdSuppliers(templateColumns),
9611
9541
  WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9612
9542
  JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
9613
9543
  BS_E3_GOODS: processBsE3Goods(templateColumns),
@@ -9634,7 +9564,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9634
9564
  BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9635
9565
  JST_SYSTEM_ORDER: processErpSystemOrder,
9636
9566
  GY_SYSTEM_ORDER: processErpSystemOrder,
9637
- DXD_SYSTEM_ORDER: processErpSystemOrder,
9638
9567
  BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
9639
9568
  ORDER_TYPE: processOrderType,
9640
9569
  REFUND_TYPE: processRefundType,
@@ -9678,7 +9607,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9678
9607
  BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
9679
9608
  ACTUAL_RECEIPT_PAYMENT: processSingleField,
9680
9609
  WDT_SHOP: processSingleField,
9681
- DXD_SHOP: processSingleField,
9682
9610
  KM_VIDEO: processKmVideo,
9683
9611
  WDT_TAGS: wdtTags,
9684
9612
  EXECUTE_ACTION_TYPE: processExecuteActionType,
@@ -11779,7 +11707,7 @@ var GoodsModal = function GoodsModal(props) {
11779
11707
  key: item.value
11780
11708
  }, item.label);
11781
11709
  })), /*#__PURE__*/React.createElement(Search, {
11782
- placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝标题' : '商品ID' : '宝贝标题',
11710
+ placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝链接,标题' : '商品ID' : '宝贝标题',
11783
11711
  // enterButton="搜索"
11784
11712
  className: "search",
11785
11713
  value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
@@ -12189,7 +12117,7 @@ var Goods = function Goods(props) {
12189
12117
  return querySkus({
12190
12118
  shopId: shopId,
12191
12119
  numIids: numIid
12192
- }).catch(console.debug);
12120
+ }).catch(function () {});
12193
12121
  case 5:
12194
12122
  res = _context3.sent;
12195
12123
  data = (res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data);
@@ -12573,7 +12501,7 @@ var GoodItem = function GoodItem(props) {
12573
12501
  return querySkus({
12574
12502
  shopId: shopId,
12575
12503
  numIids: numIid
12576
- }).catch(console.debug);
12504
+ }).catch(function () {});
12577
12505
  case 5:
12578
12506
  res = _context3.sent;
12579
12507
  data = (res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data);
@@ -13515,7 +13443,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
13515
13443
  });
13516
13444
  }
13517
13445
  }
13518
- console.log('newValue', newValue);
13519
13446
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
13520
13447
  };
13521
13448
  //智能识别回调
@@ -14098,21 +14025,14 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14098
14025
  }); // 1、初始值没有 传入值有请求快照
14099
14026
  // 2、初始值有 传入值有 其中有不一样的请求快照
14100
14027
  // 3、初始值有 传入值有 都一样的返回初始值
14101
- console.log('list', initList, valueList, changeList);
14102
- // console.log('old', initValue, value, changeValue);
14103
- // console.log('一样', JSON.stringify(initList) !== JSON.stringify(valueList));
14104
- // console.log(
14105
- // '一样2',
14106
- // JSON.stringify(changeList) !== JSON.stringify(valueList),
14107
- // );
14108
14028
  if (!(!initList.length && !valueList.length)) {
14109
- _context.next = 8;
14029
+ _context.next = 7;
14110
14030
  break;
14111
14031
  }
14112
14032
  return _context.abrupt("return");
14113
- case 8:
14033
+ case 7:
14114
14034
  if (!(JSON.stringify(initList) === JSON.stringify(valueList))) {
14115
- _context.next = 14;
14035
+ _context.next = 13;
14116
14036
  break;
14117
14037
  }
14118
14038
  initSnapshotList = initValue.reduce(function (prv, next) {
@@ -14131,13 +14051,13 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14131
14051
  setNewValue(initValue);
14132
14052
  onChange(initValue);
14133
14053
  }
14134
- _context.next = 30;
14054
+ _context.next = 29;
14135
14055
  break;
14136
- case 14:
14056
+ case 13:
14137
14057
  if (!(
14138
14058
  //开启了物流快照才会获取快照信息
14139
14059
  hasSnapshot && JSON.stringify(initList) !== JSON.stringify(valueList) && JSON.stringify(changeList) !== JSON.stringify(valueList))) {
14140
- _context.next = 29;
14060
+ _context.next = 28;
14141
14061
  break;
14142
14062
  }
14143
14063
  hasSave.current = false;
@@ -14146,7 +14066,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14146
14066
  });
14147
14067
  listValue = cloneDeep(value);
14148
14068
  if (!hasValue) {
14149
- _context.next = 24;
14069
+ _context.next = 23;
14150
14070
  break;
14151
14071
  }
14152
14072
  requestList = valueList.map(function (item) {
@@ -14165,9 +14085,9 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14165
14085
  });
14166
14086
  }
14167
14087
  });
14168
- _context.next = 22;
14088
+ _context.next = 21;
14169
14089
  return Promise.allSettled(requestList);
14170
- case 22:
14090
+ case 21:
14171
14091
  requestValues = _context.sent;
14172
14092
  listValue = cloneDeep(value).map(function (item, index) {
14173
14093
  var _requestValues$index, _requestValues$index$, _requestValues$index$2;
@@ -14175,15 +14095,15 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14175
14095
  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
14176
14096
  });
14177
14097
  });
14178
- case 24:
14098
+ case 23:
14179
14099
  setChangeValue(listValue);
14180
14100
  setNewValue(listValue);
14181
14101
  onChange(listValue);
14182
- _context.next = 30;
14102
+ _context.next = 29;
14183
14103
  break;
14184
- case 29:
14104
+ case 28:
14185
14105
  setNewValue(value);
14186
- case 30:
14106
+ case 29:
14187
14107
  case "end":
14188
14108
  return _context.stop();
14189
14109
  }
@@ -14259,13 +14179,14 @@ var jstGoods = function jstGoods(props) {
14259
14179
  _props$platformType = props.platformType,
14260
14180
  platformType = _props$platformType === void 0 ? 'default' : _props$platformType,
14261
14181
  onlyShowFieldSelect = props.onlyShowFieldSelect,
14262
- logisticsCompanyFormType = props.logisticsCompanyFormType;
14182
+ logisticsCompanyFormType = props.logisticsCompanyFormType,
14183
+ form = props.form;
14263
14184
  var _useState = useState(0),
14264
14185
  _useState2 = _slicedToArray(_useState, 2),
14265
14186
  changeIndex = _useState2[0],
14266
14187
  setChangeIndex = _useState2[1]; //选中的包裹
14267
14188
  var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
14268
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln', 'dxd'].includes(platformType);
14189
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln'].includes(platformType);
14269
14190
  var expressDateInstance = ExpressData.getInstance(platformType);
14270
14191
  var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
14271
14192
  useEffect(function () {
@@ -14274,6 +14195,26 @@ var jstGoods = function jstGoods(props) {
14274
14195
  onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
14275
14196
  }
14276
14197
  }, [value, type]);
14198
+ useEffect(function () {
14199
+ //丢失sendSnapshotName,未找到具体原因,兜底处理
14200
+ if (type === 3 && isSendGoodSavedId && value && value.length && value.some(function (item) {
14201
+ return !item.sendSnapshotName;
14202
+ }) && value.every(function (item) {
14203
+ return item.sendId;
14204
+ })) {
14205
+ var orderNo = form === null || form === void 0 ? void 0 : form.getFieldValue('m3ap1EvEyd');
14206
+ var newValue = cloneDeep(value).map(function (item) {
14207
+ if (item.sendSnapshotName || !item.sendId) return item;
14208
+ return _objectSpread2(_objectSpread2({}, item), {}, {
14209
+ sendSnapshotName: SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendId)
14210
+ });
14211
+ });
14212
+ Monitor.automaticReport({
14213
+ message: "\u53D1\u8D27\u4ED3\u8D70\u515C\u5E95\u5904\u7406-".concat(orderNo || '', "-oldValue-").concat(JSON.stringify(cloneDeep(value)), ",newValue-").concat(JSON.stringify(cloneDeep(newValue)))
14214
+ });
14215
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
14216
+ }
14217
+ }, [JSON.stringify(value || []), type]);
14277
14218
  useEffect(function () {
14278
14219
  if (changeIndex > (value === null || value === void 0 ? void 0 : value.length) - 1) {
14279
14220
  setChangeIndex(0);
@@ -16353,7 +16294,7 @@ var GoodList = function GoodList(props, ref) {
16353
16294
  } else {
16354
16295
  reject$1(res);
16355
16296
  }
16356
- }).catch(console.error);
16297
+ }).catch(function () {});
16357
16298
  };
16358
16299
  getMore();
16359
16300
  };
@@ -16420,33 +16361,30 @@ var GoodList = function GoodList(props, ref) {
16420
16361
  selectedRowKeys: selectIds,
16421
16362
  fixed: true,
16422
16363
  onSelect: function onSelect(record, selected) {
16423
- var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
16424
16364
  if (selected) {
16425
- setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
16365
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.specNo]));
16426
16366
  setSelect([].concat(_toConsumableArray(selectList), [record]));
16427
16367
  } else {
16428
16368
  setSelectIds(selectIds.filter(function (t) {
16429
- return t !== uniqueKey;
16369
+ return t !== record.specNo;
16430
16370
  }));
16431
16371
  setSelect(selectList.filter(function (t) {
16432
- return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
16372
+ return t.specNo !== record.specNo;
16433
16373
  }));
16434
16374
  }
16435
16375
  },
16436
16376
  onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
16437
16377
  if (selected) {
16438
- var changeKeys = changeRows.map(function (t) {
16439
- return "".concat(t.goodNo, "-").concat(t.specNo);
16440
- });
16441
- setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
16378
+ setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
16379
+ return t.specNo;
16380
+ }))));
16442
16381
  setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
16443
16382
  } else {
16444
- var _changeKeys = changeRows.map(function (t) {
16445
- return "".concat(t.goodNo, "-").concat(t.specNo);
16446
- });
16447
- setSelectIds(difference(selectIds, _changeKeys));
16383
+ setSelectIds(difference(selectIds, changeRows.map(function (t) {
16384
+ return t.specNo;
16385
+ })));
16448
16386
  var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
16449
- return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
16387
+ return arrVal.specNo !== othVal.specNo;
16450
16388
  });
16451
16389
  setSelect(list);
16452
16390
  }
@@ -16454,12 +16392,11 @@ var GoodList = function GoodList(props, ref) {
16454
16392
  };
16455
16393
  var showTable = function showTable() {
16456
16394
  var handleDelete = function handleDelete(record) {
16457
- var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
16458
16395
  setSelectIds(selectIds.filter(function (t) {
16459
- return t !== uniqueKey;
16396
+ return t !== record.specNo;
16460
16397
  }));
16461
16398
  setSelect(selectList.filter(function (t) {
16462
- return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
16399
+ return t.specNo !== record.specNo;
16463
16400
  }));
16464
16401
  };
16465
16402
  var showColumns = [{
@@ -16483,9 +16420,7 @@ var GoodList = function GoodList(props, ref) {
16483
16420
  }
16484
16421
  }, /*#__PURE__*/React.createElement(Table, {
16485
16422
  columns: showColumns,
16486
- rowKey: function rowKey(record) {
16487
- return "".concat(record.goodNo, "-").concat(record.specNo);
16488
- },
16423
+ rowKey: 'specNo',
16489
16424
  dataSource: selectList,
16490
16425
  scroll: {
16491
16426
  x: '100%',
@@ -16515,9 +16450,7 @@ var GoodList = function GoodList(props, ref) {
16515
16450
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
16516
16451
  className: "GoodModalColumns",
16517
16452
  rowSelection: rowSelection,
16518
- rowKey: function rowKey(record) {
16519
- return "".concat(record.goodNo, "-").concat(record.specNo);
16520
- },
16453
+ rowKey: "specNo",
16521
16454
  columns: columns,
16522
16455
  scroll: {
16523
16456
  x: '100%',
@@ -18412,7 +18345,6 @@ var SearchHeader = function SearchHeader(_ref) {
18412
18345
  timeOptions = _ref.timeOptions,
18413
18346
  ShopList = _ref.ShopList,
18414
18347
  onSubmit = _ref.onSubmit;
18415
- console.log('allFields', allFields);
18416
18348
  // const fixedFieldsOptions = useMemo(() => {
18417
18349
  // return allFields.filter(item => fixedFields?.includes(item.id));
18418
18350
  // }, [fixedFields, allFields]);
@@ -18668,9 +18600,7 @@ var WorkorderList = function WorkorderList(props, ref) {
18668
18600
  loading: false
18669
18601
  }));
18670
18602
  setWorkOrderList(newDataSource);
18671
- }).catch(function (error) {
18672
- console.log('**** 获取表格数据错误', error);
18673
- }));
18603
+ }).catch(function (error) {}));
18674
18604
  case 19:
18675
18605
  case "end":
18676
18606
  return _context.stop();
@@ -21087,20 +21017,9 @@ var getColumns$2 = function getColumns(_ref) {
21087
21017
  };
21088
21018
 
21089
21019
  var getYesOrNo$4 = function getYesOrNo(val) {
21090
- switch (val) {
21091
- case true:
21092
- case '1':
21093
- case 1:
21094
- return '是';
21095
- case false:
21096
- case '0':
21097
- case 0:
21098
- return '否';
21099
- default:
21100
- return null;
21101
- }
21020
+ if (isNull(val)) return null;
21021
+ return val ? '是' : '否';
21102
21022
  };
21103
-
21104
21023
  function toNum$1(value) {
21105
21024
  if (typeof value === 'string') {
21106
21025
  return value ? +value : void 0;
@@ -21296,7 +21215,7 @@ var getColumns$3 = function getColumns(_ref) {
21296
21215
  label: '非赠品',
21297
21216
  value: 0
21298
21217
  }]
21299
- }) : /*#__PURE__*/React.createElement("span", null, isNull(val) ? null : val ? '赠品' : '非赠品');
21218
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21300
21219
  }
21301
21220
  }, {
21302
21221
  dataIndex: 'isPackage',
@@ -21528,7 +21447,7 @@ var getColumns$3 = function getColumns(_ref) {
21528
21447
  label: '非赠品',
21529
21448
  value: 0
21530
21449
  }]
21531
- }) : /*#__PURE__*/React.createElement("span", null, isNull(val) ? null : val ? '赠品' : '非赠品');
21450
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21532
21451
  }
21533
21452
  }, {
21534
21453
  dataIndex: 'isPackage',
@@ -21588,6 +21507,10 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
21588
21507
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21589
21508
  return false;
21590
21509
  };
21510
+ var getYesOrNo$5 = function getYesOrNo(val) {
21511
+ if (isNull(val)) return null;
21512
+ return val ? '是' : '否';
21513
+ };
21591
21514
  function toNum$2(value) {
21592
21515
  if (typeof value === 'string') {
21593
21516
  return value ? +value : void 0;
@@ -21699,7 +21622,7 @@ var getColumns$4 = function getColumns(_ref) {
21699
21622
  title: "\u662F\u5426\u53D6\u6D88",
21700
21623
  width: 150,
21701
21624
  render: function render(val) {
21702
- return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21625
+ return /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
21703
21626
  }
21704
21627
  }, {
21705
21628
  dataIndex: 'isGift',
@@ -21718,7 +21641,7 @@ var getColumns$4 = function getColumns(_ref) {
21718
21641
  label: '否',
21719
21642
  value: 0
21720
21643
  }]
21721
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21644
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
21722
21645
  }
21723
21646
  }, {
21724
21647
  dataIndex: 'skuNote',
@@ -21844,7 +21767,7 @@ var getColumns$4 = function getColumns(_ref) {
21844
21767
  label: '否',
21845
21768
  value: 0
21846
21769
  }]
21847
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21770
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
21848
21771
  }
21849
21772
  }].map(function (item) {
21850
21773
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -21973,7 +21896,7 @@ var getColumns$4 = function getColumns(_ref) {
21973
21896
  label: '否',
21974
21897
  value: 0
21975
21898
  }]
21976
- }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21899
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
21977
21900
  }
21978
21901
  }].map(function (item) {
21979
21902
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -22996,7 +22919,6 @@ var getColumns$6 = function getColumns() {
22996
22919
  title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
22997
22920
  width: 100,
22998
22921
  validator: function validator(_rule, value, extraParams) {
22999
- console.log('实际补发数量-extraParams', extraParams);
23000
22922
  if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
23001
22923
  var title = '';
23002
22924
  if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
@@ -24457,160 +24379,7 @@ var getColumns$9 = function getColumns(_ref) {
24457
24379
  };
24458
24380
  };
24459
24381
 
24460
- var getColumns$a = function getColumns() {
24461
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
24462
- disabled = _ref.disabled,
24463
- updateDataHandle = _ref.updateDataHandle;
24464
- return {
24465
- // 大希地商品信息
24466
- DXD_GOODS: [{
24467
- dataIndex: 'skuName',
24468
- title: 'SKU名称',
24469
- width: 150,
24470
- render: renderTextEllipsis
24471
- }, {
24472
- dataIndex: 'skuCode',
24473
- title: 'SKU编码',
24474
- width: 150,
24475
- render: renderTextEllipsis
24476
- }, {
24477
- dataIndex: 'skuBarcode',
24478
- title: 'SKU条码',
24479
- width: 150,
24480
- render: renderTextEllipsis
24481
- }, {
24482
- dataIndex: 'packageName',
24483
- title: '套餐名称',
24484
- width: 150,
24485
- render: renderTextEllipsis
24486
- }, {
24487
- dataIndex: 'packageCode',
24488
- title: '套餐编码',
24489
- width: 150,
24490
- render: renderTextEllipsis
24491
- }, {
24492
- dataIndex: 'platformItemId',
24493
- title: '平台商品ID',
24494
- width: 150,
24495
- render: renderTextEllipsis
24496
- }, {
24497
- dataIndex: 'platformSkuId',
24498
- title: '平台商品SKU ID',
24499
- width: 150,
24500
- render: renderTextEllipsis
24501
- }, {
24502
- dataIndex: 'quantity',
24503
- title: '数量',
24504
- width: 100,
24505
- render: renderTextEllipsis
24506
- }, {
24507
- dataIndex: 'unit',
24508
- title: '单位',
24509
- width: 100,
24510
- render: renderTextEllipsis
24511
- }].map(function (item) {
24512
- return _objectSpread2(_objectSpread2({}, item), {}, {
24513
- align: 'center',
24514
- ellipsis: true
24515
- });
24516
- }),
24517
- // 大希地供应商商品信息
24518
- DXD_SUPPLIERS: [{
24519
- dataIndex: 'skuName',
24520
- title: 'SKU名称',
24521
- width: 150,
24522
- render: renderTextEllipsis
24523
- }, {
24524
- dataIndex: 'skuCode',
24525
- title: 'SKU编码',
24526
- width: 150,
24527
- render: renderTextEllipsis
24528
- }, {
24529
- dataIndex: 'skuBarcode',
24530
- title: 'SKU条码',
24531
- width: 150,
24532
- render: renderTextEllipsis
24533
- }, {
24534
- dataIndex: 'supplierName',
24535
- title: '供应商名称',
24536
- width: 150,
24537
- validator: function validator(_rule, value) {
24538
- var title = '';
24539
- if (((value === null || value === void 0 ? void 0 : value.dxdSuppliers) || []).some(function (goods) {
24540
- var res = !(goods === null || goods === void 0 ? void 0 : goods.supplierCode);
24541
- if (res) {
24542
- title = (goods === null || goods === void 0 ? void 0 : goods.skuName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.skuName, "]") : '';
24543
- }
24544
- return res;
24545
- })) {
24546
- return Promise.reject("".concat(title, "\u4F9B\u5E94\u5546\u4E0D\u80FD\u4E3A\u7A7A"));
24547
- }
24548
- },
24549
- render: function render(_val, record, index) {
24550
- var options = DxdSuppliersData.getInstance().getSuppliersBySkuCode(record === null || record === void 0 ? void 0 : record.skuCode);
24551
- return /*#__PURE__*/React.createElement(Select, {
24552
- style: {
24553
- width: '100%'
24554
- },
24555
- value: record === null || record === void 0 ? void 0 : record.supplierCode,
24556
- options: options,
24557
- allowClear: true,
24558
- showSearch: true,
24559
- optionFilterProp: "label",
24560
- placeholder: "\u8BF7\u9009\u62E9\u4F9B\u5E94\u5546",
24561
- onChange: function onChange(v) {
24562
- var _opt$label;
24563
- var opt = options.find(function (o) {
24564
- return o.value === v;
24565
- });
24566
- updateDataHandle({
24567
- supplierCode: v !== null && v !== void 0 ? v : '',
24568
- supplierName: (_opt$label = opt === null || opt === void 0 ? void 0 : opt.label) !== null && _opt$label !== void 0 ? _opt$label : ''
24569
- }, index);
24570
- }
24571
- });
24572
- },
24573
- conditionOptionsSetting: {
24574
- dataType: 'weakenArray',
24575
- getOptions: function getOptions() {
24576
- return DxdSuppliersData.getInstance().supplierOptions || [];
24577
- }
24578
- }
24579
- }, {
24580
- dataIndex: 'supplierCode',
24581
- title: '供应商编码',
24582
- width: 150,
24583
- render: renderTextEllipsis
24584
- }, {
24585
- dataIndex: 'packageName',
24586
- title: '套餐名称',
24587
- width: 150,
24588
- render: renderTextEllipsis
24589
- }, {
24590
- dataIndex: 'packageCode',
24591
- title: '套餐编码',
24592
- width: 150,
24593
- render: renderTextEllipsis
24594
- }, {
24595
- dataIndex: 'platformItemId',
24596
- title: '平台商品ID',
24597
- width: 150,
24598
- render: renderTextEllipsis
24599
- }, {
24600
- dataIndex: 'platformSkuId',
24601
- title: '平台商品SKU ID',
24602
- width: 150,
24603
- render: renderTextEllipsis
24604
- }].map(function (item) {
24605
- return _objectSpread2(_objectSpread2({}, item), {}, {
24606
- align: 'center',
24607
- ellipsis: true
24608
- });
24609
- })
24610
- };
24611
- };
24612
-
24613
- var getColumns$b = function getColumns(_ref) {
24382
+ var getColumns$a = function getColumns(_ref) {
24614
24383
  var _ref$text = _ref.text,
24615
24384
  text = _ref$text === void 0 ? '' : _ref$text,
24616
24385
  disabled = _ref.disabled,
@@ -24727,7 +24496,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
24727
24496
  disabled = _ref.disabled,
24728
24497
  updateHandle = _ref.updateHandle,
24729
24498
  updateDataHandle = _ref.updateDataHandle;
24730
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
24499
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
24731
24500
  text: text,
24732
24501
  disabled: disabled,
24733
24502
  updateHandle: updateHandle
@@ -24771,13 +24540,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
24771
24540
  disabled: disabled,
24772
24541
  updateHandle: updateHandle,
24773
24542
  updateDataHandle: updateDataHandle
24774
- })), getColumns$a({
24775
- text: text,
24776
- disabled: disabled,
24777
- updateHandle: updateHandle,
24778
- updateDataHandle: updateDataHandle
24779
24543
  })), {}, {
24780
- default: getColumns$b({
24544
+ default: getColumns$a({
24781
24545
  text: text,
24782
24546
  disabled: disabled,
24783
24547
  updateHandle: updateHandle
@@ -25345,7 +25109,6 @@ var systemOrderNoMap = {
25345
25109
  JY_REISSUE_GOODS: 'tradeNo',
25346
25110
  JKY_GOODS: 'tradeNo',
25347
25111
  JKY_REISSUE_GOODS: 'tradeNo',
25348
- DXD_GOODS: 'orderNo',
25349
25112
  WLN_REISSUE_GOODS: 'tradeNo',
25350
25113
  KM_REISSUE_GOODS: 'sid',
25351
25114
  KM_RETURN_GOODS: 'sid',
@@ -25381,7 +25144,6 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
25381
25144
  _ref$isReloadSelectTa = _ref.isReloadSelectTable,
25382
25145
  isReloadSelectTable = _ref$isReloadSelectTa === void 0 ? false : _ref$isReloadSelectTa,
25383
25146
  validSystemOrderFn = _ref.validSystemOrderFn;
25384
- console.log('systemOrders---', systemOrders);
25385
25147
  var _useState = useState(),
25386
25148
  _useState2 = _slicedToArray(_useState, 2),
25387
25149
  selectSystemNo = _useState2[0],
@@ -25431,7 +25193,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
25431
25193
  while (1) switch (_context2.prev = _context2.next) {
25432
25194
  case 0:
25433
25195
  if (!validSystemOrderFn) {
25434
- _context2.next = 7;
25196
+ _context2.next = 6;
25435
25197
  break;
25436
25198
  }
25437
25199
  _context2.next = 3;
@@ -25439,39 +25201,38 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
25439
25201
  case 3:
25440
25202
  flag = _context2.sent;
25441
25203
  if (!(flag === false)) {
25442
- _context2.next = 7;
25204
+ _context2.next = 6;
25443
25205
  break;
25444
25206
  }
25445
- console.log('validSystemOrderFn校验不通过');
25446
25207
  return _context2.abrupt("return");
25447
- case 7:
25208
+ case 6:
25448
25209
  if (!validSystemOrder) {
25449
- _context2.next = 10;
25210
+ _context2.next = 9;
25450
25211
  break;
25451
25212
  }
25452
25213
  message.warning('请选择补发系统单');
25453
25214
  return _context2.abrupt("return");
25454
- case 10:
25215
+ case 9:
25455
25216
  if (!(getDataSourceAsync && (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || isReloadSelectTable))) {
25456
- _context2.next = 13;
25217
+ _context2.next = 12;
25457
25218
  break;
25458
25219
  }
25459
- _context2.next = 13;
25220
+ _context2.next = 12;
25460
25221
  return getDataSourceAsync();
25461
- case 13:
25222
+ case 12:
25462
25223
  if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
25463
- _context2.next = 16;
25224
+ _context2.next = 15;
25464
25225
  break;
25465
25226
  }
25466
- _context2.next = 16;
25227
+ _context2.next = 15;
25467
25228
  return getKmSupplier(dataSource);
25468
- case 16:
25229
+ case 15:
25469
25230
  setTradeGoodsVisible(true);
25470
25231
  // 补发直接传入的是systemNo
25471
25232
  if (isShowSelect && isReissueType) {
25472
25233
  setSelectSystemNo(selectedSystemOrders || []);
25473
25234
  }
25474
- case 18:
25235
+ case 17:
25475
25236
  case "end":
25476
25237
  return _context2.stop();
25477
25238
  }
@@ -25607,12 +25368,6 @@ var getButtonText = function getButtonText() {
25607
25368
  if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
25608
25369
  return '选择吉客云ERP商品';
25609
25370
  }
25610
- if (['DXD_GOODS'].includes(type)) {
25611
- return '选择大希地ERP商品';
25612
- }
25613
- if (['DXD_SUPPLIERS'].includes(type)) {
25614
- return '选择大希地供应商商品';
25615
- }
25616
25371
  if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
25617
25372
  return '选择万里牛ERP商品';
25618
25373
  }
@@ -25676,10 +25431,9 @@ var GoodItem$1 = function GoodItem(props) {
25676
25431
  // const isShowSelectTradeGoods =
25677
25432
  // type !== 'JST_EXCHANGE_GOODS' || jstReturnGoods?.jstSystemOrderNo;
25678
25433
  // 判断是否为是否展示系统单筛选项
25679
- 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', '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;
25434
+ 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', '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;
25680
25435
  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;
25681
25436
  var refModal = useRef();
25682
- console.debug('表格数据', value);
25683
25437
  var handleDelete = function handleDelete(record, index) {
25684
25438
  onDelete === null || onDelete === void 0 ? void 0 : onDelete(value[index]);
25685
25439
  var newList = _toConsumableArray(value).filter(function (item, i) {
@@ -25772,8 +25526,6 @@ var GoodItem$1 = function GoodItem(props) {
25772
25526
  case 'JY_REISSUE_GOODS':
25773
25527
  case 'JKY_GOODS':
25774
25528
  case 'JKY_REISSUE_GOODS':
25775
- case 'DXD_GOODS':
25776
- case 'DXD_SUPPLIERS':
25777
25529
  case 'WLN_REISSUE_GOODS':
25778
25530
  case 'SKX_GOODS':
25779
25531
  case 'SKX_RETURN_GOODS':
@@ -26462,7 +26214,6 @@ var BsReissue = function BsReissue(props) {
26462
26214
  var _typeMap$type2;
26463
26215
  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) {
26464
26216
  var _typeMap$type3;
26465
- console.log('reissueSelectList', data);
26466
26217
  if (disabled) return;
26467
26218
  var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
26468
26219
  shopCode: data === null || data === void 0 ? void 0 : data.shopCode
@@ -27037,55 +26788,13 @@ var jkyUtils = {
27037
26788
  };
27038
26789
 
27039
26790
  var singletonMap$8 = new Map();
27040
- /**
27041
- * 按 platformOrderNo 拉取大希地订单详情(/qy/gdfw/daxidi/erp/orderDetail)。
27042
- * 返回订单原始数据结构:
27043
- * { platformOrderNo, shopCode, shopName, split,
27044
- * items: [{ platformItemId, platformSkuId, packageCode, packageName, quantity, skus: [{ skuCode, skuName, skuBarcode, quantity, unit }] }],
27045
- * doOrders: [{ orderNo, warehouseCode, warehouseName, logisticsCode, logisticsName, coldChain, skus }] }
27046
- * 不做 WDT 风格的 trades/billNo/billType 等转换,保留 DXD 原始结构由消费方按需处理。
27047
- */
27048
- var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
27049
- if (!singletonMap$8.has(orderNo)) {
27050
- var p = new Promise(function (resolve, reject) {
27051
- var doReject = function doReject(err) {
27052
- // 清空掉错误的请求记录
27053
- singletonMap$8.delete(orderNo);
27054
- reject(err);
27055
- };
27056
- extendRequest('/qy/gdfw/daxidi/erp/orderDetail', {
27057
- method: 'post',
27058
- data: {
27059
- platformOrderNo: orderNo
27060
- }
27061
- }).then(function (data) {
27062
- if (data === null || data === void 0 ? void 0 : data.success) {
27063
- resolve((data === null || data === void 0 ? void 0 : data.data) || {});
27064
- // 延迟10秒清除,保证订单的时效性
27065
- setTimeout(function () {
27066
- singletonMap$8.delete(orderNo);
27067
- }, 1000 * 10);
27068
- } else {
27069
- doReject(data);
27070
- }
27071
- }).catch(doReject);
27072
- });
27073
- singletonMap$8.set(orderNo, p);
27074
- }
27075
- return singletonMap$8.get(orderNo);
27076
- };
27077
- var dxdUtils = {
27078
- getOrderListSingleton: getOrderListSingleton$2
27079
- };
27080
-
27081
- var singletonMap$9 = new Map();
27082
26791
  var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
27083
26792
  var cacheKey = "".concat(params.orderNo, "_").concat(params.shopId);
27084
- if (!singletonMap$9.has(cacheKey)) {
26793
+ if (!singletonMap$8.has(cacheKey)) {
27085
26794
  var p = new Promise(function (resolve, reject) {
27086
26795
  var doReject = function doReject(err) {
27087
26796
  // 清空掉错误的请求记录
27088
- singletonMap$9.delete(cacheKey);
26797
+ singletonMap$8.delete(cacheKey);
27089
26798
  reject(err);
27090
26799
  };
27091
26800
  extendRequest('/qy/gdfw/order/queryTradeAfterSaleList', {
@@ -27096,28 +26805,28 @@ var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
27096
26805
  resolve(res.data || []);
27097
26806
  // 延迟10秒清除,保证订单的时效性
27098
26807
  setTimeout(function () {
27099
- singletonMap$9.delete(cacheKey);
26808
+ singletonMap$8.delete(cacheKey);
27100
26809
  }, 1000 * 10);
27101
26810
  } else {
27102
26811
  doReject(res);
27103
26812
  }
27104
26813
  }).catch(doReject);
27105
26814
  });
27106
- singletonMap$9.set(cacheKey, p);
26815
+ singletonMap$8.set(cacheKey, p);
27107
26816
  }
27108
- return singletonMap$9.get(cacheKey);
26817
+ return singletonMap$8.get(cacheKey);
27109
26818
  };
27110
26819
  var platformUtils = {
27111
26820
  getAfterSalesOrderList: getAfterSalesOrderList
27112
26821
  };
27113
26822
 
27114
- var singletonMap$a = new Map();
27115
- var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
27116
- if (!singletonMap$a.has(orderNo)) {
26823
+ var singletonMap$9 = new Map();
26824
+ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
26825
+ if (!singletonMap$9.has(orderNo)) {
27117
26826
  var p = new Promise(function (resolve, reject) {
27118
26827
  var doReject = function doReject(err) {
27119
26828
  // 清空掉错误的请求记录
27120
- singletonMap$a.delete(orderNo);
26829
+ singletonMap$9.delete(orderNo);
27121
26830
  reject(err);
27122
26831
  };
27123
26832
  extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
@@ -27143,24 +26852,23 @@ var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
27143
26852
  }
27144
26853
  // 延迟10秒清除,保证订单的时效性
27145
26854
  setTimeout(function () {
27146
- singletonMap$a.delete(orderNo);
26855
+ singletonMap$9.delete(orderNo);
27147
26856
  }, 1000 * 10);
27148
26857
  } else {
27149
26858
  doReject(data);
27150
26859
  }
27151
26860
  }).catch(doReject);
27152
26861
  });
27153
- singletonMap$a.set(orderNo, p);
26862
+ singletonMap$9.set(orderNo, p);
27154
26863
  }
27155
- return singletonMap$a.get(orderNo);
26864
+ return singletonMap$9.get(orderNo);
27156
26865
  };
27157
26866
  var kmUtils = {
27158
- getOrderListSingleton: getOrderListSingleton$3
26867
+ getOrderListSingleton: getOrderListSingleton$2
27159
26868
  };
27160
26869
 
27161
26870
  var _excluded$k = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
27162
- _excluded2 = ["shopCode"],
27163
- _excluded3 = ["doOrders", "isSplit", "billNo", "billType", "billTag", "sysStatus"];
26871
+ _excluded2 = ["shopCode"];
27164
26872
  var columnsMap = {
27165
26873
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
27166
26874
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
@@ -27172,8 +26880,7 @@ var columnsMap = {
27172
26880
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
27173
26881
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
27174
26882
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
27175
- PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns,
27176
- DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
26883
+ PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
27177
26884
  };
27178
26885
  var rowKeyMap = {
27179
26886
  BS_SYSTEM_ORDER: 'billNo',
@@ -27186,8 +26893,7 @@ var rowKeyMap = {
27186
26893
  JY_SYSTEM_ORDER: 'tradeNo',
27187
26894
  JKY_SYSTEM_ORDER: 'tradeNo',
27188
26895
  WDT_RETURN_BILL_NO: 'refundNo',
27189
- PLATFORM_AFTER_SALES_ORDER: 'afterSaleOrderId',
27190
- DXD_SYSTEM_ORDER: 'billNo'
26896
+ PLATFORM_AFTER_SALES_ORDER: 'afterSaleOrderId'
27191
26897
  };
27192
26898
  var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
27193
26899
  var index$2 = (function (props) {
@@ -27251,8 +26957,6 @@ var index$2 = (function (props) {
27251
26957
  getJyOrderList(value.orderNo);
27252
26958
  } else if (type === 'JKY_SYSTEM_ORDER') {
27253
26959
  getJkyOrderList(value.orderNo);
27254
- } else if (type === 'DXD_SYSTEM_ORDER') {
27255
- getDxdOrderList(value.orderNo);
27256
26960
  } else if (type === 'PLATFORM_AFTER_SALES_ORDER') {
27257
26961
  value.shopId && getPlatformAfterSalesOrderList(value.orderNo, value.shopId);
27258
26962
  }
@@ -27312,22 +27016,6 @@ var index$2 = (function (props) {
27312
27016
  // deliveryStateName - 发货状态映射 (0: "未发货", 2: "全部发货")
27313
27017
  map['deliveryStateName'] = _objectSpread2({}, GY_DELIVERY_STATE_MAPPING);
27314
27018
  }
27315
- // DXD_SYSTEM_ORDER 需要处理的字段
27316
- if (type === 'DXD_SYSTEM_ORDER') {
27317
- // billType - 订单类型映射(0: "普通订单", 1: "货到付款", ...)
27318
- map['billType'] = _objectSpread2({}, KM_ORDER_TYPE_MAP);
27319
- // sysStatus - 订单系统状态映射
27320
- map['sysStatus'] = _objectSpread2({}, KM_ORDER_STATUS);
27321
- // 布尔字段映射
27322
- map['coldChain'] = {
27323
- true: '是',
27324
- false: '否'
27325
- };
27326
- map['split'] = {
27327
- true: '是',
27328
- false: '否'
27329
- };
27330
- }
27331
27019
  return map;
27332
27020
  }, [type]);
27333
27021
  // 过滤后的表格数据 - 根据选中字段和关键词模糊匹配(不区分大小写)
@@ -27670,62 +27358,6 @@ var index$2 = (function (props) {
27670
27358
  return _ref13.apply(this, arguments);
27671
27359
  };
27672
27360
  }();
27673
- var getDxdOrderList = /*#__PURE__*/function () {
27674
- var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(orderNo) {
27675
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
27676
- while (1) switch (_context11.prev = _context11.next) {
27677
- case 0:
27678
- dxdUtils.getOrderListSingleton(orderNo).then(function (trades) {
27679
- var formatDxdOrders = (trades || []).reduce(function (prv, trade) {
27680
- var _ref15 = trade || {},
27681
- _ref15$doOrders = _ref15.doOrders,
27682
- doOrders = _ref15$doOrders === void 0 ? [] : _ref15$doOrders,
27683
- isSplit = _ref15.isSplit,
27684
- billNo = _ref15.billNo,
27685
- billType = _ref15.billType,
27686
- billTag = _ref15.billTag,
27687
- sysStatus = _ref15.sysStatus,
27688
- restTrade = _objectWithoutProperties(_ref15, _excluded3);
27689
- if (!doOrders.length) {
27690
- prv.push(_objectSpread2(_objectSpread2({}, restTrade), {}, {
27691
- billNo: billNo,
27692
- billType: billType,
27693
- billTag: billTag,
27694
- sysStatus: sysStatus,
27695
- isSplit: isSplit,
27696
- rowKey: billNo
27697
- }));
27698
- return prv;
27699
- }
27700
- doOrders.forEach(function (doOrder, index) {
27701
- var currentOrderNo = doOrder === null || doOrder === void 0 ? void 0 : doOrder.orderNo;
27702
- prv.push(_objectSpread2(_objectSpread2(_objectSpread2({}, restTrade), doOrder), {}, {
27703
- billNo: billNo,
27704
- billType: billType,
27705
- billTag: billTag,
27706
- sysStatus: sysStatus,
27707
- isSplit: isSplit,
27708
- rowKey: currentOrderNo ? "".concat(billNo, "_").concat(currentOrderNo) : "".concat(billNo, "_").concat(index)
27709
- }));
27710
- });
27711
- return prv;
27712
- }, []);
27713
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
27714
- orders: formatDxdOrders,
27715
- showOrderInfo: formatDxdOrders
27716
- }));
27717
- });
27718
- onceRef.current = false;
27719
- case 2:
27720
- case "end":
27721
- return _context11.stop();
27722
- }
27723
- }, _callee11);
27724
- }));
27725
- return function getDxdOrderList(_x12) {
27726
- return _ref14.apply(this, arguments);
27727
- };
27728
- }();
27729
27361
  var rowKey = rowKeyMap[type] || 'billNo';
27730
27362
  var handleRadioChange = function handleRadioChange(record) {
27731
27363
  var _value$selectIds;
@@ -28200,16 +27832,16 @@ var orderSubFormConstants = {
28200
27832
  };
28201
27833
 
28202
27834
  var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
28203
- var singletonMap$b = new Map();
28204
- var getOrderListSingleton$4 = function getOrderListSingleton(parmas) {
27835
+ var singletonMap$a = new Map();
27836
+ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
28205
27837
  var orderNo = parmas.orderNo,
28206
27838
  shopId = parmas.shopId;
28207
27839
  var key = "".concat(orderNo, "-").concat(shopId);
28208
- if (!singletonMap$b.has(key)) {
27840
+ if (!singletonMap$a.has(key)) {
28209
27841
  var p = new Promise(function (resolve, reject) {
28210
27842
  var doReject = function doReject(err) {
28211
27843
  // 清空掉错误的请求记录
28212
- singletonMap$b.delete(key);
27844
+ singletonMap$a.delete(key);
28213
27845
  reject(err);
28214
27846
  };
28215
27847
  extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
@@ -28225,16 +27857,16 @@ var getOrderListSingleton$4 = function getOrderListSingleton(parmas) {
28225
27857
  }
28226
27858
  // 延迟10秒清除,保证订单的时效性
28227
27859
  setTimeout(function () {
28228
- singletonMap$b.delete(key);
27860
+ singletonMap$a.delete(key);
28229
27861
  }, 1000 * 10);
28230
27862
  } else {
28231
27863
  doReject(data);
28232
27864
  }
28233
27865
  }).catch(doReject);
28234
27866
  });
28235
- singletonMap$b.set(key, p);
27867
+ singletonMap$a.set(key, p);
28236
27868
  }
28237
- return singletonMap$b.get(key);
27869
+ return singletonMap$a.get(key);
28238
27870
  };
28239
27871
  var renderEditItem = function renderEditItem(_ref) {
28240
27872
  var item = _ref.item,
@@ -28366,7 +27998,7 @@ var renderDetailItem = function renderDetailItem(_ref2) {
28366
27998
  return Component;
28367
27999
  };
28368
28000
  var utils = {
28369
- getOrderListSingleton: getOrderListSingleton$4,
28001
+ getOrderListSingleton: getOrderListSingleton$3,
28370
28002
  renderEditItem: renderEditItem,
28371
28003
  renderDetailItem: renderDetailItem
28372
28004
  };
@@ -28374,7 +28006,7 @@ var utils = {
28374
28006
  var getOrderSubformColumns$1 = orderSubFormConstants.getOrderSubformColumns;
28375
28007
  var renderEditItem$1 = utils.renderEditItem,
28376
28008
  renderDetailItem$1 = utils.renderDetailItem,
28377
- getOrderListSingleton$5 = utils.getOrderListSingleton;
28009
+ getOrderListSingleton$4 = utils.getOrderListSingleton;
28378
28010
  var OrderSubForm = function OrderSubForm(props) {
28379
28011
  var _props$value = props.value,
28380
28012
  value = _props$value === void 0 ? {} : _props$value,
@@ -28387,7 +28019,6 @@ var OrderSubForm = function OrderSubForm(props) {
28387
28019
  manual = props.manual,
28388
28020
  correlationList = props.subConfig.correlationList,
28389
28021
  effects = props.effects;
28390
- console.log('effects', effects);
28391
28022
  var valueRef = useRef(value);
28392
28023
  useEffect(function () {
28393
28024
  valueRef.current = value;
@@ -28576,7 +28207,7 @@ var OrderSubForm = function OrderSubForm(props) {
28576
28207
  var JOIN_SHOP = shopList === null || shopList === void 0 ? void 0 : shopList.find(function (item) {
28577
28208
  return !item.notJoin && item.shopId == shopId;
28578
28209
  });
28579
- return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$5({
28210
+ return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$4({
28580
28211
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
28581
28212
  shopId: shopId
28582
28213
  }).then(function (data) {
@@ -28584,7 +28215,7 @@ var OrderSubForm = function OrderSubForm(props) {
28584
28215
  onChange(_objectSpread2(_objectSpread2({}, value), {}, {
28585
28216
  allOrders: allOrders
28586
28217
  }));
28587
- }).catch(console.debug) : Promise.resolve();
28218
+ }).catch(function () {}) : Promise.resolve();
28588
28219
  };
28589
28220
  var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
28590
28221
  var goodDetails = (value === null || value === void 0 ? void 0 : value.allOrders) || [];
@@ -28670,9 +28301,6 @@ var isErpType$1 = {
28670
28301
  },
28671
28302
  isJky: function isJky(type) {
28672
28303
  return ['JKY_GOODS'].includes(type);
28673
- },
28674
- isDxd: function isDxd(type) {
28675
- return ['DXD_GOODS', 'DXD_SUPPLIERS'].includes(type);
28676
28304
  }
28677
28305
  };
28678
28306
  var processAllOrders = function processAllOrders(_ref) {
@@ -28705,9 +28333,6 @@ var processAllOrders = function processAllOrders(_ref) {
28705
28333
  data: data,
28706
28334
  orderNo: orderNo
28707
28335
  });
28708
- } else if (isErpType$1.isDxd(type)) {
28709
- // DXD 选品用出库订单 doOrders(每项含 skus[])
28710
- newList = (data === null || data === void 0 ? void 0 : data.doOrders) || [];
28711
28336
  } else {
28712
28337
  newList = processDefaultOrders({
28713
28338
  data: data
@@ -29002,48 +28627,6 @@ var componentMap$2 = {
29002
28627
  },
29003
28628
  getOrderList: jkyUtils.getJkyOrderListSingleton
29004
28629
  },
29005
- DXD_GOODS: {
29006
- type: 'dxd',
29007
- key: 'dxdGoods',
29008
- name: '大希地',
29009
- orderNo: 'srcTid',
29010
- goodDetailOrderNo: 'srcTid',
29011
- hiddenErpGoodsBtn: true,
29012
- eventNameMap: {
29013
- // pubsub 事件
29014
- type: 'dxdType',
29015
- // DXD 按自身数据格式(doOrders.skus)标准化商品,不复用 WDT
29016
- updateGoodsHandle: updateDxdGoodsHandle,
29017
- selectListReturn: 'dxdSelectListReturn',
29018
- selectList: 'dxdSelectList',
29019
- reissueSelectList: 'dxdReissueSelectList',
29020
- reissueSelectListReturn: 'dxdReissueSelectListReturn',
29021
- reissueDeleteGood: 'dxdReissueDeleteGood',
29022
- changeShopCode: 'dxdChangeShopCode',
29023
- reissueType: 'dxdReissueType',
29024
- returnType: 'dxdReturnType',
29025
- returnSelectListReturn: 'dxdReturnSelectListReturn',
29026
- returnSelectList: 'dxdReturnSelectList',
29027
- deleteGood: 'dxdDeleteGood',
29028
- returnDeleteGood: 'dxdReturnDeleteGood',
29029
- exchangeDeleteGood: 'dxdExchangeDeleteGood'
29030
- },
29031
- getOrderList: dxdUtils.getOrderListSingleton
29032
- },
29033
- DXD_SUPPLIERS: {
29034
- type: 'dxd',
29035
- key: 'dxdSuppliers',
29036
- name: '大希地供应商',
29037
- orderNo: 'srcTid',
29038
- goodDetailOrderNo: 'srcTid',
29039
- eventNameMap: {
29040
- // pubsub 事件(用 dxdSuppliers 前缀,避免与 DXD_GOODS 的 dxd 前缀事件冲突)
29041
- type: 'dxdSuppliersType',
29042
- selectListReturn: 'dxdSuppliersSelectListReturn',
29043
- selectList: 'dxdSuppliersSelectList',
29044
- changeShopCode: 'dxdSuppliersChangeShopCode'
29045
- }
29046
- },
29047
28630
  WLN_GOODS: {
29048
28631
  type: 'jky',
29049
28632
  key: 'wlnGoods',
@@ -29108,13 +28691,11 @@ var componentMap$2 = {
29108
28691
  }
29109
28692
  };
29110
28693
  var CommonGoods = function CommonGoods(props) {
29111
- var _componentMap$compTyp, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7, _componentMap$compTyp8;
28694
+ var _componentMap$compTyp, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
29112
28695
  var value = props.value,
29113
- rawDisabled = props.disabled,
28696
+ disabled = props.disabled,
29114
28697
  onChange = props.onChange,
29115
28698
  compType = props.type;
29116
- // DXD_SUPPLIERS 纯镜像 DXD_GOODS(由 FormRender useWatch 联动同步增删),禁用独立增删
29117
- var disabled = rawDisabled || compType === 'DXD_SUPPLIERS';
29118
28699
  // console.log('value?.orders', value?.orders);
29119
28700
  // 合并单订单会包含","
29120
28701
  var showModeBtn = ((_componentMap$compTyp = componentMap$2[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.checkShowModeBtn) ? componentMap$2[compType].checkShowModeBtn(value) : !['BS_E3_GOODS'].includes(compType) && ((value === null || value === void 0 ? void 0 : value.orders) || []).some(function (order) {
@@ -29474,7 +29055,6 @@ var CommonGoods = function CommonGoods(props) {
29474
29055
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
29475
29056
  type: compType
29476
29057
  });
29477
- console.log('list---', list);
29478
29058
  onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
29479
29059
  allOrders: list || []
29480
29060
  }));
@@ -29500,10 +29080,9 @@ var CommonGoods = function CommonGoods(props) {
29500
29080
  onModeChange: handleModeChange,
29501
29081
  showModeBtn: showModeBtn,
29502
29082
  isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
29503
- systemOrders: (value === null || value === void 0 ? void 0 : value.systemOrders) || (value === null || value === void 0 ? void 0 : value.allOrders),
29083
+ systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
29504
29084
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
29505
29085
  showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
29506
- showErpGoodsBtn: !((_componentMap$compTyp8 = componentMap$2[compType]) === null || _componentMap$compTyp8 === void 0 ? void 0 : _componentMap$compTyp8.hiddenErpGoodsBtn),
29507
29086
  tradeGoods: {
29508
29087
  originDataSource: originDataSource,
29509
29088
  getDataSourceAsync: getDataSourceAsync,
@@ -29871,29 +29450,23 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
29871
29450
  var getDataSourceAsync = function getDataSourceAsync() {
29872
29451
  return new Promise(function (resolve) {
29873
29452
  pubsub.subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
29874
- var _componentMap$compTyp9, _componentMap$compTyp10;
29453
+ var _componentMap$compTyp9;
29875
29454
  resolve(data);
29876
- console.log('getDataSourceAsync---111data--', data, getGoodDetails({
29877
- returnGoodsValue: data,
29878
- mode: isStrict,
29879
- 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
29880
- }));
29881
29455
  setOriginDataSource(getGoodDetails({
29882
29456
  returnGoodsValue: data,
29883
- 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,
29457
+ 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,
29884
29458
  mode: isStrict
29885
29459
  }));
29886
29460
  });
29887
29461
  pubsub.publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
29888
29462
  });
29889
29463
  };
29890
- console.log('aaa--', originDataSource);
29891
29464
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
29892
29465
  key: componentMap$4[compType].type
29893
29466
  }, props), {}, {
29894
29467
  validSystemOrderFn: function validSystemOrderFn() {
29895
- var _componentMap$compTyp11, _componentMap$compTyp12;
29896
- return (_componentMap$compTyp11 = (_componentMap$compTyp12 = componentMap$4[compType]).validSystemOrderFn) === null || _componentMap$compTyp11 === void 0 ? void 0 : _componentMap$compTyp11.call(_componentMap$compTyp12, form);
29468
+ var _componentMap$compTyp10, _componentMap$compTyp11;
29469
+ return (_componentMap$compTyp10 = (_componentMap$compTyp11 = componentMap$4[compType]).validSystemOrderFn) === null || _componentMap$compTyp10 === void 0 ? void 0 : _componentMap$compTyp10.call(_componentMap$compTyp11, form);
29897
29470
  },
29898
29471
  isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
29899
29472
  disabled: disabled,
@@ -31070,7 +30643,7 @@ var GoodsModal$5 = function GoodsModal(props) {
31070
30643
  key: item.value
31071
30644
  }, item.label);
31072
30645
  })), /*#__PURE__*/React.createElement(Search$1, {
31073
- placeholder: "\u5B9D\u8D1D\u6807\u9898",
30646
+ placeholder: "\u5B9D\u8D1D\u94FE\u63A5\uFF0C\u6807\u9898",
31074
30647
  allowClear: true,
31075
30648
  enterButton: "\u641C\u7D22",
31076
30649
  style: {
@@ -32744,20 +32317,13 @@ var IdInputSelect = function IdInputSelect(props) {
32744
32317
  tradeId = form.getFieldValue('m3ap1EvEyd');
32745
32318
  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;
32746
32319
  blurFrom = form.getFieldValue('skx_return_billNo_blur_from');
32747
- console.log('asyncQueryData---', {
32748
- skxReturnExpressCode: skxReturnExpressCode,
32749
- blurFrom: blurFrom,
32750
- tradeId: tradeId,
32751
- tradeIdRef: tradeIdRef.current,
32752
- form: form
32753
- });
32754
32320
  if (!(type === 'SKX_OUTBOUND_NOTICE_NO' && !tradeId || type === 'SKX_RETURN_BILL_NO' && !tradeId && !skxReturnExpressCode)) {
32755
- _context3.next = 7;
32321
+ _context3.next = 6;
32756
32322
  break;
32757
32323
  }
32758
32324
  setDataSource([]);
32759
32325
  return _context3.abrupt("return");
32760
- case 7:
32326
+ case 6:
32761
32327
  setSpinning(true);
32762
32328
  // 判断是从哪个组件失焦,若是从[SKX]退换物流信息(TH)失焦,则根据物流单号查询,若是从订单号组件失焦,则根据订单号查询
32763
32329
  typeMap$6[type].asyncGetData(type === 'SKX_RETURN_BILL_NO' && blurFrom === '4487c6516b' ? {
@@ -32771,7 +32337,7 @@ var IdInputSelect = function IdInputSelect(props) {
32771
32337
  }).finally(function () {
32772
32338
  setSpinning(false);
32773
32339
  });
32774
- case 9:
32340
+ case 8:
32775
32341
  case "end":
32776
32342
  return _context3.stop();
32777
32343
  }
@@ -32863,11 +32429,6 @@ var IdInputSelect = function IdInputSelect(props) {
32863
32429
  }))));
32864
32430
  };
32865
32431
  var handleChange = function handleChange(val, isInput) {
32866
- console.log('handleChange---', {
32867
- val: val,
32868
- value: value,
32869
- isInput: isInput
32870
- });
32871
32432
  var isReturnBillNoChange = type === 'SKX_RETURN_BILL_NO' && form.getFieldValue('skx_return_billNo_blur_from') === '4487c6516b';
32872
32433
  onChange === null || onChange === void 0 ? void 0 : onChange(val, value !== val && (!!isInput || isReturnBillNoChange));
32873
32434
  // 如果类型是[SKX]退换货单号,则根据blurFrom判断是从[SKX]退换物流信息(TH)失焦,则调用onBlur
@@ -33001,11 +32562,10 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
33001
32562
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
33002
32563
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
33003
32564
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
33004
- WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
33005
- DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
32565
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
33006
32566
  };
33007
32567
  var FIELD_COLUMNS_MAP = {
33008
32568
  PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
33009
32569
  };
33010
32570
 
33011
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, FIELD_COLUMNS_MAP, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$a as getDxdColumns, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };
32571
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, FIELD_COLUMNS_MAP, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };