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

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
@@ -8815,60 +8808,6 @@ var processJkyGoods = function processJkyGoods(templateColumns) {
8815
8808
  };
8816
8809
  };
8817
8810
  };
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
8811
  var processWdtGoods = function processWdtGoods(templateColumns) {
8873
8812
  return function (getValue) {
8874
8813
  return function (nex, config) {
@@ -9198,11 +9137,6 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
9198
9137
  no: 'wdtReturnBillNo',
9199
9138
  ids: 'wdtReturnBillSelectIds',
9200
9139
  order: 'wdtReturnBillShowOrder'
9201
- },
9202
- DXD_SYSTEM_ORDER: {
9203
- no: 'dxdSystemOrderNo',
9204
- ids: 'dxdSystemSelectIds',
9205
- order: 'dxdSystemShowOrder'
9206
9140
  }
9207
9141
  };
9208
9142
  return _defineProperty({}, nex.uniqueKey, _objectSpread2({
@@ -9472,14 +9406,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9472
9406
  };
9473
9407
  var processLabel = function processLabel(getValue) {
9474
9408
  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;
9409
+ var _ref77;
9410
+ 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
9411
  };
9478
9412
  };
9479
9413
  var processMemberLevel = function processMemberLevel(getValue) {
9480
9414
  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;
9415
+ var _ref78;
9416
+ 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
9417
  };
9484
9418
  };
9485
9419
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9606,8 +9540,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9606
9540
  BS_GOODS: processBsGoods,
9607
9541
  WDT_GOODS: processWdtGoods(templateColumns),
9608
9542
  JKY_GOODS: processJkyGoods(templateColumns),
9609
- DXD_GOODS: processDxdGoods(templateColumns),
9610
- DXD_SUPPLIERS: processDxdSuppliers(templateColumns),
9611
9543
  WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9612
9544
  JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
9613
9545
  BS_E3_GOODS: processBsE3Goods(templateColumns),
@@ -9634,7 +9566,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9634
9566
  BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9635
9567
  JST_SYSTEM_ORDER: processErpSystemOrder,
9636
9568
  GY_SYSTEM_ORDER: processErpSystemOrder,
9637
- DXD_SYSTEM_ORDER: processErpSystemOrder,
9638
9569
  BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
9639
9570
  ORDER_TYPE: processOrderType,
9640
9571
  REFUND_TYPE: processRefundType,
@@ -9678,7 +9609,6 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9678
9609
  BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
9679
9610
  ACTUAL_RECEIPT_PAYMENT: processSingleField,
9680
9611
  WDT_SHOP: processSingleField,
9681
- DXD_SHOP: processSingleField,
9682
9612
  KM_VIDEO: processKmVideo,
9683
9613
  WDT_TAGS: wdtTags,
9684
9614
  EXECUTE_ACTION_TYPE: processExecuteActionType,
@@ -11779,7 +11709,7 @@ var GoodsModal = function GoodsModal(props) {
11779
11709
  key: item.value
11780
11710
  }, item.label);
11781
11711
  })), /*#__PURE__*/React.createElement(Search, {
11782
- placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝标题' : '商品ID' : '宝贝标题',
11712
+ placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝链接,标题' : '商品ID' : '宝贝标题',
11783
11713
  // enterButton="搜索"
11784
11714
  className: "search",
11785
11715
  value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
@@ -12189,7 +12119,7 @@ var Goods = function Goods(props) {
12189
12119
  return querySkus({
12190
12120
  shopId: shopId,
12191
12121
  numIids: numIid
12192
- }).catch(console.debug);
12122
+ }).catch(function () {});
12193
12123
  case 5:
12194
12124
  res = _context3.sent;
12195
12125
  data = (res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data);
@@ -12573,7 +12503,7 @@ var GoodItem = function GoodItem(props) {
12573
12503
  return querySkus({
12574
12504
  shopId: shopId,
12575
12505
  numIids: numIid
12576
- }).catch(console.debug);
12506
+ }).catch(function () {});
12577
12507
  case 5:
12578
12508
  res = _context3.sent;
12579
12509
  data = (res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data);
@@ -13515,7 +13445,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
13515
13445
  });
13516
13446
  }
13517
13447
  }
13518
- console.log('newValue', newValue);
13519
13448
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
13520
13449
  };
13521
13450
  //智能识别回调
@@ -14098,21 +14027,14 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14098
14027
  }); // 1、初始值没有 传入值有请求快照
14099
14028
  // 2、初始值有 传入值有 其中有不一样的请求快照
14100
14029
  // 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
14030
  if (!(!initList.length && !valueList.length)) {
14109
- _context.next = 8;
14031
+ _context.next = 7;
14110
14032
  break;
14111
14033
  }
14112
14034
  return _context.abrupt("return");
14113
- case 8:
14035
+ case 7:
14114
14036
  if (!(JSON.stringify(initList) === JSON.stringify(valueList))) {
14115
- _context.next = 14;
14037
+ _context.next = 13;
14116
14038
  break;
14117
14039
  }
14118
14040
  initSnapshotList = initValue.reduce(function (prv, next) {
@@ -14131,13 +14053,13 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14131
14053
  setNewValue(initValue);
14132
14054
  onChange(initValue);
14133
14055
  }
14134
- _context.next = 30;
14056
+ _context.next = 29;
14135
14057
  break;
14136
- case 14:
14058
+ case 13:
14137
14059
  if (!(
14138
14060
  //开启了物流快照才会获取快照信息
14139
14061
  hasSnapshot && JSON.stringify(initList) !== JSON.stringify(valueList) && JSON.stringify(changeList) !== JSON.stringify(valueList))) {
14140
- _context.next = 29;
14062
+ _context.next = 28;
14141
14063
  break;
14142
14064
  }
14143
14065
  hasSave.current = false;
@@ -14146,7 +14068,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14146
14068
  });
14147
14069
  listValue = cloneDeep(value);
14148
14070
  if (!hasValue) {
14149
- _context.next = 24;
14071
+ _context.next = 23;
14150
14072
  break;
14151
14073
  }
14152
14074
  requestList = valueList.map(function (item) {
@@ -14165,9 +14087,9 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14165
14087
  });
14166
14088
  }
14167
14089
  });
14168
- _context.next = 22;
14090
+ _context.next = 21;
14169
14091
  return Promise.allSettled(requestList);
14170
- case 22:
14092
+ case 21:
14171
14093
  requestValues = _context.sent;
14172
14094
  listValue = cloneDeep(value).map(function (item, index) {
14173
14095
  var _requestValues$index, _requestValues$index$, _requestValues$index$2;
@@ -14175,15 +14097,15 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
14175
14097
  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
14098
  });
14177
14099
  });
14178
- case 24:
14100
+ case 23:
14179
14101
  setChangeValue(listValue);
14180
14102
  setNewValue(listValue);
14181
14103
  onChange(listValue);
14182
- _context.next = 30;
14104
+ _context.next = 29;
14183
14105
  break;
14184
- case 29:
14106
+ case 28:
14185
14107
  setNewValue(value);
14186
- case 30:
14108
+ case 29:
14187
14109
  case "end":
14188
14110
  return _context.stop();
14189
14111
  }
@@ -14259,13 +14181,14 @@ var jstGoods = function jstGoods(props) {
14259
14181
  _props$platformType = props.platformType,
14260
14182
  platformType = _props$platformType === void 0 ? 'default' : _props$platformType,
14261
14183
  onlyShowFieldSelect = props.onlyShowFieldSelect,
14262
- logisticsCompanyFormType = props.logisticsCompanyFormType;
14184
+ logisticsCompanyFormType = props.logisticsCompanyFormType,
14185
+ form = props.form;
14263
14186
  var _useState = useState(0),
14264
14187
  _useState2 = _slicedToArray(_useState, 2),
14265
14188
  changeIndex = _useState2[0],
14266
14189
  setChangeIndex = _useState2[1]; //选中的包裹
14267
14190
  var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
14268
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln', 'dxd'].includes(platformType);
14191
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln'].includes(platformType);
14269
14192
  var expressDateInstance = ExpressData.getInstance(platformType);
14270
14193
  var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
14271
14194
  useEffect(function () {
@@ -14274,6 +14197,26 @@ var jstGoods = function jstGoods(props) {
14274
14197
  onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
14275
14198
  }
14276
14199
  }, [value, type]);
14200
+ useEffect(function () {
14201
+ //丢失sendSnapshotName,未找到具体原因,兜底处理
14202
+ if (type === 3 && isSendGoodSavedId && value && value.length && value.some(function (item) {
14203
+ return !item.sendSnapshotName;
14204
+ }) && value.every(function (item) {
14205
+ return item.sendId;
14206
+ })) {
14207
+ var orderNo = form === null || form === void 0 ? void 0 : form.getFieldValue('m3ap1EvEyd');
14208
+ var newValue = cloneDeep(value).map(function (item) {
14209
+ if (item.sendSnapshotName || !item.sendId) return item;
14210
+ return _objectSpread2(_objectSpread2({}, item), {}, {
14211
+ sendSnapshotName: SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendId)
14212
+ });
14213
+ });
14214
+ Monitor.automaticReport({
14215
+ message: "\u53D1\u8D27\u4ED3\u8D70\u515C\u5E95\u5904\u7406-".concat(orderNo || '', "-oldValue-").concat(JSON.stringify(cloneDeep(value)), ",newValue-").concat(JSON.stringify(cloneDeep(newValue)))
14216
+ });
14217
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
14218
+ }
14219
+ }, [JSON.stringify(value || []), type]);
14277
14220
  useEffect(function () {
14278
14221
  if (changeIndex > (value === null || value === void 0 ? void 0 : value.length) - 1) {
14279
14222
  setChangeIndex(0);
@@ -16353,7 +16296,7 @@ var GoodList = function GoodList(props, ref) {
16353
16296
  } else {
16354
16297
  reject$1(res);
16355
16298
  }
16356
- }).catch(console.error);
16299
+ }).catch(function () {});
16357
16300
  };
16358
16301
  getMore();
16359
16302
  };
@@ -16420,33 +16363,30 @@ var GoodList = function GoodList(props, ref) {
16420
16363
  selectedRowKeys: selectIds,
16421
16364
  fixed: true,
16422
16365
  onSelect: function onSelect(record, selected) {
16423
- var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
16424
16366
  if (selected) {
16425
- setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
16367
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.specNo]));
16426
16368
  setSelect([].concat(_toConsumableArray(selectList), [record]));
16427
16369
  } else {
16428
16370
  setSelectIds(selectIds.filter(function (t) {
16429
- return t !== uniqueKey;
16371
+ return t !== record.specNo;
16430
16372
  }));
16431
16373
  setSelect(selectList.filter(function (t) {
16432
- return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
16374
+ return t.specNo !== record.specNo;
16433
16375
  }));
16434
16376
  }
16435
16377
  },
16436
16378
  onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
16437
16379
  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)));
16380
+ setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
16381
+ return t.specNo;
16382
+ }))));
16442
16383
  setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
16443
16384
  } else {
16444
- var _changeKeys = changeRows.map(function (t) {
16445
- return "".concat(t.goodNo, "-").concat(t.specNo);
16446
- });
16447
- setSelectIds(difference(selectIds, _changeKeys));
16385
+ setSelectIds(difference(selectIds, changeRows.map(function (t) {
16386
+ return t.specNo;
16387
+ })));
16448
16388
  var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
16449
- return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
16389
+ return arrVal.specNo !== othVal.specNo;
16450
16390
  });
16451
16391
  setSelect(list);
16452
16392
  }
@@ -16454,12 +16394,11 @@ var GoodList = function GoodList(props, ref) {
16454
16394
  };
16455
16395
  var showTable = function showTable() {
16456
16396
  var handleDelete = function handleDelete(record) {
16457
- var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
16458
16397
  setSelectIds(selectIds.filter(function (t) {
16459
- return t !== uniqueKey;
16398
+ return t !== record.specNo;
16460
16399
  }));
16461
16400
  setSelect(selectList.filter(function (t) {
16462
- return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
16401
+ return t.specNo !== record.specNo;
16463
16402
  }));
16464
16403
  };
16465
16404
  var showColumns = [{
@@ -16483,9 +16422,7 @@ var GoodList = function GoodList(props, ref) {
16483
16422
  }
16484
16423
  }, /*#__PURE__*/React.createElement(Table, {
16485
16424
  columns: showColumns,
16486
- rowKey: function rowKey(record) {
16487
- return "".concat(record.goodNo, "-").concat(record.specNo);
16488
- },
16425
+ rowKey: 'specNo',
16489
16426
  dataSource: selectList,
16490
16427
  scroll: {
16491
16428
  x: '100%',
@@ -16515,9 +16452,7 @@ var GoodList = function GoodList(props, ref) {
16515
16452
  }, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
16516
16453
  className: "GoodModalColumns",
16517
16454
  rowSelection: rowSelection,
16518
- rowKey: function rowKey(record) {
16519
- return "".concat(record.goodNo, "-").concat(record.specNo);
16520
- },
16455
+ rowKey: "specNo",
16521
16456
  columns: columns,
16522
16457
  scroll: {
16523
16458
  x: '100%',
@@ -18412,7 +18347,6 @@ var SearchHeader = function SearchHeader(_ref) {
18412
18347
  timeOptions = _ref.timeOptions,
18413
18348
  ShopList = _ref.ShopList,
18414
18349
  onSubmit = _ref.onSubmit;
18415
- console.log('allFields', allFields);
18416
18350
  // const fixedFieldsOptions = useMemo(() => {
18417
18351
  // return allFields.filter(item => fixedFields?.includes(item.id));
18418
18352
  // }, [fixedFields, allFields]);
@@ -18668,9 +18602,7 @@ var WorkorderList = function WorkorderList(props, ref) {
18668
18602
  loading: false
18669
18603
  }));
18670
18604
  setWorkOrderList(newDataSource);
18671
- }).catch(function (error) {
18672
- console.log('**** 获取表格数据错误', error);
18673
- }));
18605
+ }).catch(function (error) {}));
18674
18606
  case 19:
18675
18607
  case "end":
18676
18608
  return _context.stop();
@@ -21296,7 +21228,7 @@ var getColumns$3 = function getColumns(_ref) {
21296
21228
  label: '非赠品',
21297
21229
  value: 0
21298
21230
  }]
21299
- }) : /*#__PURE__*/React.createElement("span", null, isNull(val) ? null : val ? '赠品' : '非赠品');
21231
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21300
21232
  }
21301
21233
  }, {
21302
21234
  dataIndex: 'isPackage',
@@ -21528,7 +21460,7 @@ var getColumns$3 = function getColumns(_ref) {
21528
21460
  label: '非赠品',
21529
21461
  value: 0
21530
21462
  }]
21531
- }) : /*#__PURE__*/React.createElement("span", null, isNull(val) ? null : val ? '赠品' : '非赠品');
21463
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
21532
21464
  }
21533
21465
  }, {
21534
21466
  dataIndex: 'isPackage',
@@ -22996,7 +22928,6 @@ var getColumns$6 = function getColumns() {
22996
22928
  title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
22997
22929
  width: 100,
22998
22930
  validator: function validator(_rule, value, extraParams) {
22999
- console.log('实际补发数量-extraParams', extraParams);
23000
22931
  if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
23001
22932
  var title = '';
23002
22933
  if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
@@ -24457,160 +24388,7 @@ var getColumns$9 = function getColumns(_ref) {
24457
24388
  };
24458
24389
  };
24459
24390
 
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) {
24391
+ var getColumns$a = function getColumns(_ref) {
24614
24392
  var _ref$text = _ref.text,
24615
24393
  text = _ref$text === void 0 ? '' : _ref$text,
24616
24394
  disabled = _ref.disabled,
@@ -24727,7 +24505,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
24727
24505
  disabled = _ref.disabled,
24728
24506
  updateHandle = _ref.updateHandle,
24729
24507
  updateDataHandle = _ref.updateDataHandle;
24730
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
24508
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
24731
24509
  text: text,
24732
24510
  disabled: disabled,
24733
24511
  updateHandle: updateHandle
@@ -24771,13 +24549,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
24771
24549
  disabled: disabled,
24772
24550
  updateHandle: updateHandle,
24773
24551
  updateDataHandle: updateDataHandle
24774
- })), getColumns$a({
24775
- text: text,
24776
- disabled: disabled,
24777
- updateHandle: updateHandle,
24778
- updateDataHandle: updateDataHandle
24779
24552
  })), {}, {
24780
- default: getColumns$b({
24553
+ default: getColumns$a({
24781
24554
  text: text,
24782
24555
  disabled: disabled,
24783
24556
  updateHandle: updateHandle
@@ -25345,7 +25118,6 @@ var systemOrderNoMap = {
25345
25118
  JY_REISSUE_GOODS: 'tradeNo',
25346
25119
  JKY_GOODS: 'tradeNo',
25347
25120
  JKY_REISSUE_GOODS: 'tradeNo',
25348
- DXD_GOODS: 'orderNo',
25349
25121
  WLN_REISSUE_GOODS: 'tradeNo',
25350
25122
  KM_REISSUE_GOODS: 'sid',
25351
25123
  KM_RETURN_GOODS: 'sid',
@@ -25381,7 +25153,6 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
25381
25153
  _ref$isReloadSelectTa = _ref.isReloadSelectTable,
25382
25154
  isReloadSelectTable = _ref$isReloadSelectTa === void 0 ? false : _ref$isReloadSelectTa,
25383
25155
  validSystemOrderFn = _ref.validSystemOrderFn;
25384
- console.log('systemOrders---', systemOrders);
25385
25156
  var _useState = useState(),
25386
25157
  _useState2 = _slicedToArray(_useState, 2),
25387
25158
  selectSystemNo = _useState2[0],
@@ -25431,7 +25202,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
25431
25202
  while (1) switch (_context2.prev = _context2.next) {
25432
25203
  case 0:
25433
25204
  if (!validSystemOrderFn) {
25434
- _context2.next = 7;
25205
+ _context2.next = 6;
25435
25206
  break;
25436
25207
  }
25437
25208
  _context2.next = 3;
@@ -25439,39 +25210,38 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
25439
25210
  case 3:
25440
25211
  flag = _context2.sent;
25441
25212
  if (!(flag === false)) {
25442
- _context2.next = 7;
25213
+ _context2.next = 6;
25443
25214
  break;
25444
25215
  }
25445
- console.log('validSystemOrderFn校验不通过');
25446
25216
  return _context2.abrupt("return");
25447
- case 7:
25217
+ case 6:
25448
25218
  if (!validSystemOrder) {
25449
- _context2.next = 10;
25219
+ _context2.next = 9;
25450
25220
  break;
25451
25221
  }
25452
25222
  message.warning('请选择补发系统单');
25453
25223
  return _context2.abrupt("return");
25454
- case 10:
25224
+ case 9:
25455
25225
  if (!(getDataSourceAsync && (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || isReloadSelectTable))) {
25456
- _context2.next = 13;
25226
+ _context2.next = 12;
25457
25227
  break;
25458
25228
  }
25459
- _context2.next = 13;
25229
+ _context2.next = 12;
25460
25230
  return getDataSourceAsync();
25461
- case 13:
25231
+ case 12:
25462
25232
  if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
25463
- _context2.next = 16;
25233
+ _context2.next = 15;
25464
25234
  break;
25465
25235
  }
25466
- _context2.next = 16;
25236
+ _context2.next = 15;
25467
25237
  return getKmSupplier(dataSource);
25468
- case 16:
25238
+ case 15:
25469
25239
  setTradeGoodsVisible(true);
25470
25240
  // 补发直接传入的是systemNo
25471
25241
  if (isShowSelect && isReissueType) {
25472
25242
  setSelectSystemNo(selectedSystemOrders || []);
25473
25243
  }
25474
- case 18:
25244
+ case 17:
25475
25245
  case "end":
25476
25246
  return _context2.stop();
25477
25247
  }
@@ -25607,12 +25377,6 @@ var getButtonText = function getButtonText() {
25607
25377
  if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
25608
25378
  return '选择吉客云ERP商品';
25609
25379
  }
25610
- if (['DXD_GOODS'].includes(type)) {
25611
- return '选择大希地ERP商品';
25612
- }
25613
- if (['DXD_SUPPLIERS'].includes(type)) {
25614
- return '选择大希地供应商商品';
25615
- }
25616
25380
  if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
25617
25381
  return '选择万里牛ERP商品';
25618
25382
  }
@@ -25676,10 +25440,9 @@ var GoodItem$1 = function GoodItem(props) {
25676
25440
  // const isShowSelectTradeGoods =
25677
25441
  // type !== 'JST_EXCHANGE_GOODS' || jstReturnGoods?.jstSystemOrderNo;
25678
25442
  // 判断是否为是否展示系统单筛选项
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;
25443
+ 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
25444
  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
25445
  var refModal = useRef();
25682
- console.debug('表格数据', value);
25683
25446
  var handleDelete = function handleDelete(record, index) {
25684
25447
  onDelete === null || onDelete === void 0 ? void 0 : onDelete(value[index]);
25685
25448
  var newList = _toConsumableArray(value).filter(function (item, i) {
@@ -25772,8 +25535,6 @@ var GoodItem$1 = function GoodItem(props) {
25772
25535
  case 'JY_REISSUE_GOODS':
25773
25536
  case 'JKY_GOODS':
25774
25537
  case 'JKY_REISSUE_GOODS':
25775
- case 'DXD_GOODS':
25776
- case 'DXD_SUPPLIERS':
25777
25538
  case 'WLN_REISSUE_GOODS':
25778
25539
  case 'SKX_GOODS':
25779
25540
  case 'SKX_RETURN_GOODS':
@@ -26462,7 +26223,6 @@ var BsReissue = function BsReissue(props) {
26462
26223
  var _typeMap$type2;
26463
26224
  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
26225
  var _typeMap$type3;
26465
- console.log('reissueSelectList', data);
26466
26226
  if (disabled) return;
26467
26227
  var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
26468
26228
  shopCode: data === null || data === void 0 ? void 0 : data.shopCode
@@ -27037,55 +26797,13 @@ var jkyUtils = {
27037
26797
  };
27038
26798
 
27039
26799
  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
26800
  var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
27083
26801
  var cacheKey = "".concat(params.orderNo, "_").concat(params.shopId);
27084
- if (!singletonMap$9.has(cacheKey)) {
26802
+ if (!singletonMap$8.has(cacheKey)) {
27085
26803
  var p = new Promise(function (resolve, reject) {
27086
26804
  var doReject = function doReject(err) {
27087
26805
  // 清空掉错误的请求记录
27088
- singletonMap$9.delete(cacheKey);
26806
+ singletonMap$8.delete(cacheKey);
27089
26807
  reject(err);
27090
26808
  };
27091
26809
  extendRequest('/qy/gdfw/order/queryTradeAfterSaleList', {
@@ -27096,28 +26814,28 @@ var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
27096
26814
  resolve(res.data || []);
27097
26815
  // 延迟10秒清除,保证订单的时效性
27098
26816
  setTimeout(function () {
27099
- singletonMap$9.delete(cacheKey);
26817
+ singletonMap$8.delete(cacheKey);
27100
26818
  }, 1000 * 10);
27101
26819
  } else {
27102
26820
  doReject(res);
27103
26821
  }
27104
26822
  }).catch(doReject);
27105
26823
  });
27106
- singletonMap$9.set(cacheKey, p);
26824
+ singletonMap$8.set(cacheKey, p);
27107
26825
  }
27108
- return singletonMap$9.get(cacheKey);
26826
+ return singletonMap$8.get(cacheKey);
27109
26827
  };
27110
26828
  var platformUtils = {
27111
26829
  getAfterSalesOrderList: getAfterSalesOrderList
27112
26830
  };
27113
26831
 
27114
- var singletonMap$a = new Map();
27115
- var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
27116
- if (!singletonMap$a.has(orderNo)) {
26832
+ var singletonMap$9 = new Map();
26833
+ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
26834
+ if (!singletonMap$9.has(orderNo)) {
27117
26835
  var p = new Promise(function (resolve, reject) {
27118
26836
  var doReject = function doReject(err) {
27119
26837
  // 清空掉错误的请求记录
27120
- singletonMap$a.delete(orderNo);
26838
+ singletonMap$9.delete(orderNo);
27121
26839
  reject(err);
27122
26840
  };
27123
26841
  extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
@@ -27143,24 +26861,23 @@ var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
27143
26861
  }
27144
26862
  // 延迟10秒清除,保证订单的时效性
27145
26863
  setTimeout(function () {
27146
- singletonMap$a.delete(orderNo);
26864
+ singletonMap$9.delete(orderNo);
27147
26865
  }, 1000 * 10);
27148
26866
  } else {
27149
26867
  doReject(data);
27150
26868
  }
27151
26869
  }).catch(doReject);
27152
26870
  });
27153
- singletonMap$a.set(orderNo, p);
26871
+ singletonMap$9.set(orderNo, p);
27154
26872
  }
27155
- return singletonMap$a.get(orderNo);
26873
+ return singletonMap$9.get(orderNo);
27156
26874
  };
27157
26875
  var kmUtils = {
27158
- getOrderListSingleton: getOrderListSingleton$3
26876
+ getOrderListSingleton: getOrderListSingleton$2
27159
26877
  };
27160
26878
 
27161
26879
  var _excluded$k = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
27162
- _excluded2 = ["shopCode"],
27163
- _excluded3 = ["doOrders", "isSplit", "billNo", "billType", "billTag", "sysStatus"];
26880
+ _excluded2 = ["shopCode"];
27164
26881
  var columnsMap = {
27165
26882
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
27166
26883
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
@@ -27172,8 +26889,7 @@ var columnsMap = {
27172
26889
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
27173
26890
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
27174
26891
  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
26892
+ PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
27177
26893
  };
27178
26894
  var rowKeyMap = {
27179
26895
  BS_SYSTEM_ORDER: 'billNo',
@@ -27186,8 +26902,7 @@ var rowKeyMap = {
27186
26902
  JY_SYSTEM_ORDER: 'tradeNo',
27187
26903
  JKY_SYSTEM_ORDER: 'tradeNo',
27188
26904
  WDT_RETURN_BILL_NO: 'refundNo',
27189
- PLATFORM_AFTER_SALES_ORDER: 'afterSaleOrderId',
27190
- DXD_SYSTEM_ORDER: 'billNo'
26905
+ PLATFORM_AFTER_SALES_ORDER: 'afterSaleOrderId'
27191
26906
  };
27192
26907
  var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
27193
26908
  var index$2 = (function (props) {
@@ -27251,8 +26966,6 @@ var index$2 = (function (props) {
27251
26966
  getJyOrderList(value.orderNo);
27252
26967
  } else if (type === 'JKY_SYSTEM_ORDER') {
27253
26968
  getJkyOrderList(value.orderNo);
27254
- } else if (type === 'DXD_SYSTEM_ORDER') {
27255
- getDxdOrderList(value.orderNo);
27256
26969
  } else if (type === 'PLATFORM_AFTER_SALES_ORDER') {
27257
26970
  value.shopId && getPlatformAfterSalesOrderList(value.orderNo, value.shopId);
27258
26971
  }
@@ -27312,22 +27025,6 @@ var index$2 = (function (props) {
27312
27025
  // deliveryStateName - 发货状态映射 (0: "未发货", 2: "全部发货")
27313
27026
  map['deliveryStateName'] = _objectSpread2({}, GY_DELIVERY_STATE_MAPPING);
27314
27027
  }
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
27028
  return map;
27332
27029
  }, [type]);
27333
27030
  // 过滤后的表格数据 - 根据选中字段和关键词模糊匹配(不区分大小写)
@@ -27670,62 +27367,6 @@ var index$2 = (function (props) {
27670
27367
  return _ref13.apply(this, arguments);
27671
27368
  };
27672
27369
  }();
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
27370
  var rowKey = rowKeyMap[type] || 'billNo';
27730
27371
  var handleRadioChange = function handleRadioChange(record) {
27731
27372
  var _value$selectIds;
@@ -28200,16 +27841,16 @@ var orderSubFormConstants = {
28200
27841
  };
28201
27842
 
28202
27843
  var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
28203
- var singletonMap$b = new Map();
28204
- var getOrderListSingleton$4 = function getOrderListSingleton(parmas) {
27844
+ var singletonMap$a = new Map();
27845
+ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
28205
27846
  var orderNo = parmas.orderNo,
28206
27847
  shopId = parmas.shopId;
28207
27848
  var key = "".concat(orderNo, "-").concat(shopId);
28208
- if (!singletonMap$b.has(key)) {
27849
+ if (!singletonMap$a.has(key)) {
28209
27850
  var p = new Promise(function (resolve, reject) {
28210
27851
  var doReject = function doReject(err) {
28211
27852
  // 清空掉错误的请求记录
28212
- singletonMap$b.delete(key);
27853
+ singletonMap$a.delete(key);
28213
27854
  reject(err);
28214
27855
  };
28215
27856
  extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
@@ -28225,16 +27866,16 @@ var getOrderListSingleton$4 = function getOrderListSingleton(parmas) {
28225
27866
  }
28226
27867
  // 延迟10秒清除,保证订单的时效性
28227
27868
  setTimeout(function () {
28228
- singletonMap$b.delete(key);
27869
+ singletonMap$a.delete(key);
28229
27870
  }, 1000 * 10);
28230
27871
  } else {
28231
27872
  doReject(data);
28232
27873
  }
28233
27874
  }).catch(doReject);
28234
27875
  });
28235
- singletonMap$b.set(key, p);
27876
+ singletonMap$a.set(key, p);
28236
27877
  }
28237
- return singletonMap$b.get(key);
27878
+ return singletonMap$a.get(key);
28238
27879
  };
28239
27880
  var renderEditItem = function renderEditItem(_ref) {
28240
27881
  var item = _ref.item,
@@ -28366,7 +28007,7 @@ var renderDetailItem = function renderDetailItem(_ref2) {
28366
28007
  return Component;
28367
28008
  };
28368
28009
  var utils = {
28369
- getOrderListSingleton: getOrderListSingleton$4,
28010
+ getOrderListSingleton: getOrderListSingleton$3,
28370
28011
  renderEditItem: renderEditItem,
28371
28012
  renderDetailItem: renderDetailItem
28372
28013
  };
@@ -28374,7 +28015,7 @@ var utils = {
28374
28015
  var getOrderSubformColumns$1 = orderSubFormConstants.getOrderSubformColumns;
28375
28016
  var renderEditItem$1 = utils.renderEditItem,
28376
28017
  renderDetailItem$1 = utils.renderDetailItem,
28377
- getOrderListSingleton$5 = utils.getOrderListSingleton;
28018
+ getOrderListSingleton$4 = utils.getOrderListSingleton;
28378
28019
  var OrderSubForm = function OrderSubForm(props) {
28379
28020
  var _props$value = props.value,
28380
28021
  value = _props$value === void 0 ? {} : _props$value,
@@ -28387,7 +28028,6 @@ var OrderSubForm = function OrderSubForm(props) {
28387
28028
  manual = props.manual,
28388
28029
  correlationList = props.subConfig.correlationList,
28389
28030
  effects = props.effects;
28390
- console.log('effects', effects);
28391
28031
  var valueRef = useRef(value);
28392
28032
  useEffect(function () {
28393
28033
  valueRef.current = value;
@@ -28576,7 +28216,7 @@ var OrderSubForm = function OrderSubForm(props) {
28576
28216
  var JOIN_SHOP = shopList === null || shopList === void 0 ? void 0 : shopList.find(function (item) {
28577
28217
  return !item.notJoin && item.shopId == shopId;
28578
28218
  });
28579
- return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$5({
28219
+ return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$4({
28580
28220
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
28581
28221
  shopId: shopId
28582
28222
  }).then(function (data) {
@@ -28584,7 +28224,7 @@ var OrderSubForm = function OrderSubForm(props) {
28584
28224
  onChange(_objectSpread2(_objectSpread2({}, value), {}, {
28585
28225
  allOrders: allOrders
28586
28226
  }));
28587
- }).catch(console.debug) : Promise.resolve();
28227
+ }).catch(function () {}) : Promise.resolve();
28588
28228
  };
28589
28229
  var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
28590
28230
  var goodDetails = (value === null || value === void 0 ? void 0 : value.allOrders) || [];
@@ -28670,9 +28310,6 @@ var isErpType$1 = {
28670
28310
  },
28671
28311
  isJky: function isJky(type) {
28672
28312
  return ['JKY_GOODS'].includes(type);
28673
- },
28674
- isDxd: function isDxd(type) {
28675
- return ['DXD_GOODS', 'DXD_SUPPLIERS'].includes(type);
28676
28313
  }
28677
28314
  };
28678
28315
  var processAllOrders = function processAllOrders(_ref) {
@@ -28705,9 +28342,6 @@ var processAllOrders = function processAllOrders(_ref) {
28705
28342
  data: data,
28706
28343
  orderNo: orderNo
28707
28344
  });
28708
- } else if (isErpType$1.isDxd(type)) {
28709
- // DXD 选品用出库订单 doOrders(每项含 skus[])
28710
- newList = (data === null || data === void 0 ? void 0 : data.doOrders) || [];
28711
28345
  } else {
28712
28346
  newList = processDefaultOrders({
28713
28347
  data: data
@@ -29002,48 +28636,6 @@ var componentMap$2 = {
29002
28636
  },
29003
28637
  getOrderList: jkyUtils.getJkyOrderListSingleton
29004
28638
  },
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
28639
  WLN_GOODS: {
29048
28640
  type: 'jky',
29049
28641
  key: 'wlnGoods',
@@ -29108,13 +28700,11 @@ var componentMap$2 = {
29108
28700
  }
29109
28701
  };
29110
28702
  var CommonGoods = function CommonGoods(props) {
29111
- var _componentMap$compTyp, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7, _componentMap$compTyp8;
28703
+ var _componentMap$compTyp, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
29112
28704
  var value = props.value,
29113
- rawDisabled = props.disabled,
28705
+ disabled = props.disabled,
29114
28706
  onChange = props.onChange,
29115
28707
  compType = props.type;
29116
- // DXD_SUPPLIERS 纯镜像 DXD_GOODS(由 FormRender useWatch 联动同步增删),禁用独立增删
29117
- var disabled = rawDisabled || compType === 'DXD_SUPPLIERS';
29118
28708
  // console.log('value?.orders', value?.orders);
29119
28709
  // 合并单订单会包含","
29120
28710
  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 +29064,6 @@ var CommonGoods = function CommonGoods(props) {
29474
29064
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
29475
29065
  type: compType
29476
29066
  });
29477
- console.log('list---', list);
29478
29067
  onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
29479
29068
  allOrders: list || []
29480
29069
  }));
@@ -29500,10 +29089,9 @@ var CommonGoods = function CommonGoods(props) {
29500
29089
  onModeChange: handleModeChange,
29501
29090
  showModeBtn: showModeBtn,
29502
29091
  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),
29092
+ systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
29504
29093
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
29505
29094
  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
29095
  tradeGoods: {
29508
29096
  originDataSource: originDataSource,
29509
29097
  getDataSourceAsync: getDataSourceAsync,
@@ -29871,29 +29459,23 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
29871
29459
  var getDataSourceAsync = function getDataSourceAsync() {
29872
29460
  return new Promise(function (resolve) {
29873
29461
  pubsub.subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
29874
- var _componentMap$compTyp9, _componentMap$compTyp10;
29462
+ var _componentMap$compTyp9;
29875
29463
  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
29464
  setOriginDataSource(getGoodDetails({
29882
29465
  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,
29466
+ 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
29467
  mode: isStrict
29885
29468
  }));
29886
29469
  });
29887
29470
  pubsub.publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
29888
29471
  });
29889
29472
  };
29890
- console.log('aaa--', originDataSource);
29891
29473
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
29892
29474
  key: componentMap$4[compType].type
29893
29475
  }, props), {}, {
29894
29476
  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);
29477
+ var _componentMap$compTyp10, _componentMap$compTyp11;
29478
+ return (_componentMap$compTyp10 = (_componentMap$compTyp11 = componentMap$4[compType]).validSystemOrderFn) === null || _componentMap$compTyp10 === void 0 ? void 0 : _componentMap$compTyp10.call(_componentMap$compTyp11, form);
29897
29479
  },
29898
29480
  isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
29899
29481
  disabled: disabled,
@@ -31070,7 +30652,7 @@ var GoodsModal$5 = function GoodsModal(props) {
31070
30652
  key: item.value
31071
30653
  }, item.label);
31072
30654
  })), /*#__PURE__*/React.createElement(Search$1, {
31073
- placeholder: "\u5B9D\u8D1D\u6807\u9898",
30655
+ placeholder: "\u5B9D\u8D1D\u94FE\u63A5\uFF0C\u6807\u9898",
31074
30656
  allowClear: true,
31075
30657
  enterButton: "\u641C\u7D22",
31076
30658
  style: {
@@ -32744,20 +32326,13 @@ var IdInputSelect = function IdInputSelect(props) {
32744
32326
  tradeId = form.getFieldValue('m3ap1EvEyd');
32745
32327
  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
32328
  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
32329
  if (!(type === 'SKX_OUTBOUND_NOTICE_NO' && !tradeId || type === 'SKX_RETURN_BILL_NO' && !tradeId && !skxReturnExpressCode)) {
32755
- _context3.next = 7;
32330
+ _context3.next = 6;
32756
32331
  break;
32757
32332
  }
32758
32333
  setDataSource([]);
32759
32334
  return _context3.abrupt("return");
32760
- case 7:
32335
+ case 6:
32761
32336
  setSpinning(true);
32762
32337
  // 判断是从哪个组件失焦,若是从[SKX]退换物流信息(TH)失焦,则根据物流单号查询,若是从订单号组件失焦,则根据订单号查询
32763
32338
  typeMap$6[type].asyncGetData(type === 'SKX_RETURN_BILL_NO' && blurFrom === '4487c6516b' ? {
@@ -32771,7 +32346,7 @@ var IdInputSelect = function IdInputSelect(props) {
32771
32346
  }).finally(function () {
32772
32347
  setSpinning(false);
32773
32348
  });
32774
- case 9:
32349
+ case 8:
32775
32350
  case "end":
32776
32351
  return _context3.stop();
32777
32352
  }
@@ -32863,11 +32438,6 @@ var IdInputSelect = function IdInputSelect(props) {
32863
32438
  }))));
32864
32439
  };
32865
32440
  var handleChange = function handleChange(val, isInput) {
32866
- console.log('handleChange---', {
32867
- val: val,
32868
- value: value,
32869
- isInput: isInput
32870
- });
32871
32441
  var isReturnBillNoChange = type === 'SKX_RETURN_BILL_NO' && form.getFieldValue('skx_return_billNo_blur_from') === '4487c6516b';
32872
32442
  onChange === null || onChange === void 0 ? void 0 : onChange(val, value !== val && (!!isInput || isReturnBillNoChange));
32873
32443
  // 如果类型是[SKX]退换货单号,则根据blurFrom判断是从[SKX]退换物流信息(TH)失焦,则调用onBlur
@@ -33001,11 +32571,10 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
33001
32571
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
33002
32572
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
33003
32573
  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
32574
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
33006
32575
  };
33007
32576
  var FIELD_COLUMNS_MAP = {
33008
32577
  PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
33009
32578
  };
33010
32579
 
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 };
32580
+ 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 };