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

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
@@ -1,14 +1,15 @@
1
1
  import React, { useState, useMemo, useEffect, useRef, forwardRef, useImperativeHandle, useCallback } from 'react';
2
- import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate as Rate$1, Form, Popover, Tooltip, Table, Tabs, ConfigProvider, Pagination, Typography, Skeleton, Empty, Tag } from 'antd';
2
+ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate as Rate$1, Form, Popover, Tooltip, Table, Tabs, ConfigProvider, Pagination, Typography, Empty, Skeleton, Tag } from 'antd';
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, normalizeYouzanStar, servers, columnsGoodsList, LogisticsAddressData, isJdLogisticsCompany, getJdCustomerCodeOptions, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, DxdSuppliersData, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, warehouseTypeMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, TTX_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, TTX_INTERNAL_ORDER_TYPE_MAP, TTX_STATUS_MAP, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, updateTtxGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import every from 'lodash/every';
8
8
  import maxBy from 'lodash/maxBy';
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';
9
+ import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, 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';
@@ -735,6 +736,12 @@ var ApaasUpload = function ApaasUpload(_ref) {
735
736
  resetProps = _objectWithoutProperties(_ref, _excluded$4);
736
737
  var inputRef = useRef(null);
737
738
  var valueRef = useRef(value);
739
+ // 当前批次的文件选择序号,用于按选择顺序展示上传结果
740
+ var batchSeqRef = useRef(0);
741
+ // 当前批次的上传结果,按序号存储,最后统一排序合并
742
+ var batchResultsRef = useRef(new Map());
743
+ // 当前批次正在处理的文件数,用于判断批次何时结束
744
+ var pendingCountRef = useRef(0);
738
745
  var _useState = useState(false),
739
746
  _useState2 = _slicedToArray(_useState, 2),
740
747
  visible = _useState2[0],
@@ -750,6 +757,32 @@ var ApaasUpload = function ApaasUpload(_ref) {
750
757
  useEffect(function () {
751
758
  valueRef.current = value;
752
759
  }, [value]);
760
+ // 获取当前批次的文件选择序号;没有正在处理的文件时视为新一批,重置批次状态
761
+ var acquireBatchSeq = function acquireBatchSeq() {
762
+ if (pendingCountRef.current === 0) {
763
+ batchSeqRef.current = 0;
764
+ batchResultsRef.current.clear();
765
+ }
766
+ return batchSeqRef.current++;
767
+ };
768
+ // 将单个文件结果存入当前批次,本批次全部完成时按选择顺序合并到 value
769
+ var appendResult = function appendResult(batchSeq, result) {
770
+ if (valueRef.current.length + batchResultsRef.current.size < maxCount) {
771
+ batchResultsRef.current.set(batchSeq, result);
772
+ }
773
+ pendingCountRef.current = Math.max(0, pendingCountRef.current - 1);
774
+ if (pendingCountRef.current === 0 && batchResultsRef.current.size > 0) {
775
+ var sorted = _toConsumableArray(batchResultsRef.current.entries()).sort(function (a, b) {
776
+ return a[0] - b[0];
777
+ }).map(function (_ref2) {
778
+ var _ref3 = _slicedToArray(_ref2, 2),
779
+ v = _ref3[1];
780
+ return v;
781
+ });
782
+ handleChange([].concat(_toConsumableArray(valueRef.current), _toConsumableArray(sorted)));
783
+ batchResultsRef.current.clear();
784
+ }
785
+ };
753
786
  var imgReader = function imgReader(item) {
754
787
  var blob = item.getAsFile(),
755
788
  reader = new FileReader();
@@ -757,14 +790,16 @@ var ApaasUpload = function ApaasUpload(_ref) {
757
790
  message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
758
791
  return;
759
792
  }
760
- if (valueRef.current.length >= maxCount) {
793
+ if (valueRef.current.length + pendingCountRef.current >= maxCount) {
761
794
  message.error("\u53EA\u80FD\u4E0A\u4F20".concat(maxCount, "\u5F20\u56FE\u7247"));
762
795
  return;
763
796
  }
797
+ var batchSeq = acquireBatchSeq();
798
+ pendingCountRef.current += 1;
764
799
  reader.onload = function (e) {
765
800
  var _e$target;
766
801
  var result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
767
- handleChange([].concat(_toConsumableArray(valueRef.current), [result]));
802
+ appendResult(batchSeq, result);
768
803
  };
769
804
  reader.readAsDataURL(blob);
770
805
  };
@@ -797,7 +832,8 @@ var ApaasUpload = function ApaasUpload(_ref) {
797
832
  // 手动上传模式, 一直返回false
798
833
  var beforeUpload = function beforeUpload(file) {
799
834
  var size = file.size / 1024 / 1024 < maxSize;
800
- if (value.length > maxCount) {
835
+ // 并发上传时用「已上传 + 待上传」一起判断,避免一次选多张时超出 maxCount
836
+ if (valueRef.current.length + pendingCountRef.current >= maxCount) {
801
837
  message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u5F20\u56FE\u7247\uFF01"));
802
838
  return Upload.LIST_IGNORE;
803
839
  }
@@ -805,8 +841,10 @@ var ApaasUpload = function ApaasUpload(_ref) {
805
841
  message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
806
842
  return Upload.LIST_IGNORE;
807
843
  }
844
+ var batchSeq = acquireBatchSeq();
845
+ pendingCountRef.current += 1;
808
846
  getBase64(file).then(function (res) {
809
- return handleChange([].concat(_toConsumableArray(valueRef.current), [res]));
847
+ appendResult(batchSeq, res);
810
848
  });
811
849
  return Upload.LIST_IGNORE;
812
850
  };
@@ -908,6 +946,7 @@ var ApaasUpload = function ApaasUpload(_ref) {
908
946
  name: "file",
909
947
  listType: "picture-card",
910
948
  maxCount: maxCount,
949
+ multiple: true,
911
950
  className: styles.upload,
912
951
  beforeUpload: beforeUpload
913
952
  }, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
@@ -1048,6 +1087,16 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1048
1087
  resetProps = _objectWithoutProperties(_ref, _excluded$6);
1049
1088
  var inputRef = useRef(null);
1050
1089
  var valueRef = useRef(value);
1090
+ // 并发上传时用于正确控制 loading 状态(多个文件同时上传)
1091
+ var uploadingCountRef = useRef(0);
1092
+ // 已选中待上传的文件数,用于数量预占,避免并发上传超过 maxCount
1093
+ var pendingCountRef = useRef(0);
1094
+ // 文件序号,保证并发上传时文件名唯一
1095
+ var seqRef = useRef(0);
1096
+ // 当前批次的文件选择序号,用于按选择顺序展示上传结果
1097
+ var batchSeqRef = useRef(0);
1098
+ // 当前批次的上传结果,按序号存储,最后统一排序合并
1099
+ var batchResultsRef = useRef(new Map());
1051
1100
  var _useState = useState(false),
1052
1101
  _useState2 = _slicedToArray(_useState, 2),
1053
1102
  uploading = _useState2[0],
@@ -1062,48 +1111,80 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1062
1111
  useEffect(function () {
1063
1112
  valueRef.current = value;
1064
1113
  }, [value]);
1114
+ var genFileName = function genFileName() {
1115
+ seqRef.current += 1;
1116
+ return "".concat(uniqueKey, "_").concat(seqRef.current, "_").concat(new Date().getTime(), ".jpg");
1117
+ };
1118
+ // 获取当前批次的文件选择序号;没有正在上传的文件时视为新一批,重置批次状态
1119
+ var acquireBatchSeq = function acquireBatchSeq() {
1120
+ if (pendingCountRef.current === 0) {
1121
+ batchSeqRef.current = 0;
1122
+ batchResultsRef.current.clear();
1123
+ }
1124
+ return batchSeqRef.current++;
1125
+ };
1065
1126
  var asyncUpload = /*#__PURE__*/function () {
1066
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1067
- var _valueRef$current;
1068
- var formData, fileName, _yield$request, success, data;
1127
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file, batchSeq) {
1128
+ var formData, fileName, _yield$request, success, data, sorted;
1069
1129
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1070
1130
  while (1) switch (_context.prev = _context.next) {
1071
1131
  case 0:
1132
+ pendingCountRef.current += 1;
1133
+ uploadingCountRef.current += 1;
1072
1134
  setUploading(true);
1073
1135
  formData = new FormData();
1074
1136
  formData.append('file', file);
1075
- fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.length) + 1, "_").concat(new Date().getTime(), ".jpg");
1137
+ fileName = genFileName();
1076
1138
  formData.append('fileName', fileName);
1077
- _context.prev = 5;
1078
- _context.next = 8;
1139
+ _context.prev = 7;
1140
+ _context.next = 10;
1079
1141
  return request(actionUrl, {
1080
1142
  method: 'post',
1081
1143
  body: formData
1082
1144
  });
1083
- case 8:
1145
+ case 10:
1084
1146
  _yield$request = _context.sent;
1085
1147
  success = _yield$request.success;
1086
1148
  data = _yield$request.data;
1087
1149
  if (success) {
1088
- handleChange([].concat(_toConsumableArray(valueRef.current), [data]));
1150
+ if (valueRef.current.length + batchResultsRef.current.size < maxCount) {
1151
+ // 先暂存到当前批次,等本批次全部完成后再按选择顺序合并
1152
+ batchResultsRef.current.set(batchSeq, data);
1153
+ }
1089
1154
  }
1090
- _context.next = 17;
1155
+ _context.next = 19;
1091
1156
  break;
1092
- case 14:
1093
- _context.prev = 14;
1094
- _context.t0 = _context["catch"](5);
1157
+ case 16:
1158
+ _context.prev = 16;
1159
+ _context.t0 = _context["catch"](7);
1095
1160
  message.error('图片上传失败');
1096
- case 17:
1097
- _context.prev = 17;
1098
- setUploading(false);
1099
- return _context.finish(17);
1100
- case 20:
1161
+ case 19:
1162
+ _context.prev = 19;
1163
+ pendingCountRef.current = Math.max(0, pendingCountRef.current - 1);
1164
+ uploadingCountRef.current = Math.max(0, uploadingCountRef.current - 1);
1165
+ // 本批次全部上传完成,按选择序号排序后一次性合并到 value
1166
+ if (pendingCountRef.current === 0 && batchResultsRef.current.size > 0) {
1167
+ sorted = _toConsumableArray(batchResultsRef.current.entries()).sort(function (a, b) {
1168
+ return a[0] - b[0];
1169
+ }).map(function (_ref3) {
1170
+ var _ref4 = _slicedToArray(_ref3, 2),
1171
+ v = _ref4[1];
1172
+ return v;
1173
+ });
1174
+ handleChange([].concat(_toConsumableArray(valueRef.current), _toConsumableArray(sorted)));
1175
+ batchResultsRef.current.clear();
1176
+ }
1177
+ if (uploadingCountRef.current === 0) {
1178
+ setUploading(false);
1179
+ }
1180
+ return _context.finish(19);
1181
+ case 25:
1101
1182
  case "end":
1102
1183
  return _context.stop();
1103
1184
  }
1104
- }, _callee, null, [[5, 14, 17, 20]]);
1185
+ }, _callee, null, [[7, 16, 19, 25]]);
1105
1186
  }));
1106
- return function asyncUpload(_x) {
1187
+ return function asyncUpload(_x, _x2) {
1107
1188
  return _ref2.apply(this, arguments);
1108
1189
  };
1109
1190
  }();
@@ -1119,24 +1200,24 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1119
1200
  return;
1120
1201
  }
1121
1202
  reader.onload = /*#__PURE__*/function () {
1122
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
1123
- var _e$target, _valueRef$current2;
1203
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
1204
+ var _e$target;
1124
1205
  var result, fileName, file;
1125
1206
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1126
1207
  while (1) switch (_context2.prev = _context2.next) {
1127
1208
  case 0:
1128
1209
  result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
1129
- fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.length) + 1, "_").concat(new Date().getTime(), ".jpg");
1210
+ fileName = genFileName();
1130
1211
  file = dataURLtoFile(result, fileName);
1131
- asyncUpload(file);
1212
+ asyncUpload(file, acquireBatchSeq());
1132
1213
  case 4:
1133
1214
  case "end":
1134
1215
  return _context2.stop();
1135
1216
  }
1136
1217
  }, _callee2);
1137
1218
  }));
1138
- return function (_x2) {
1139
- return _ref3.apply(this, arguments);
1219
+ return function (_x3) {
1220
+ return _ref5.apply(this, arguments);
1140
1221
  };
1141
1222
  }();
1142
1223
  reader.readAsDataURL(blob);
@@ -1170,7 +1251,8 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1170
1251
  // 手动上传模式, 一直返回false
1171
1252
  var beforeUpload = function beforeUpload(file) {
1172
1253
  var size = file.size / 1024 / 1024 < maxSize;
1173
- if (value.length > maxCount) {
1254
+ // 并发上传时用「已上传 + 待上传」一起判断,避免一次选多张时超出 maxCount
1255
+ if (valueRef.current.length + pendingCountRef.current >= maxCount) {
1174
1256
  message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u5F20\u56FE\u7247\uFF01"));
1175
1257
  return Upload.LIST_IGNORE;
1176
1258
  }
@@ -1178,7 +1260,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1178
1260
  message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
1179
1261
  return Upload.LIST_IGNORE;
1180
1262
  }
1181
- asyncUpload(file);
1263
+ asyncUpload(file, acquireBatchSeq());
1182
1264
  return Upload.LIST_IGNORE;
1183
1265
  };
1184
1266
  var handleDelete = function handleDelete(key) {
@@ -1275,6 +1357,7 @@ var ApaasUploadAsync = function ApaasUploadAsync(_ref, ref) {
1275
1357
  name: "file",
1276
1358
  listType: "picture-card",
1277
1359
  maxCount: maxCount,
1360
+ multiple: true,
1278
1361
  className: styles$1.upload,
1279
1362
  beforeUpload: beforeUpload
1280
1363
  }, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
@@ -1318,6 +1401,16 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
1318
1401
  resetProps = _objectWithoutProperties(_ref, _excluded$7);
1319
1402
  var inputRef = useRef(null);
1320
1403
  var valueRef = useRef(value);
1404
+ // 并发上传时用于正确控制 loading 状态(多个文件同时上传)
1405
+ var uploadingCountRef = useRef(0);
1406
+ // 已选中待上传的文件数,用于数量预占,避免并发上传超过 maxCount
1407
+ var pendingCountRef = useRef(0);
1408
+ // 文件序号,保证并发上传时文件名唯一
1409
+ var seqRef = useRef(0);
1410
+ // 当前批次的文件选择序号,用于按选择顺序展示上传结果
1411
+ var batchSeqRef = useRef(0);
1412
+ // 当前批次的上传结果,按序号存储,最后统一排序合并
1413
+ var batchResultsRef = useRef(new Map());
1321
1414
  var _useState = useState(false),
1322
1415
  _useState2 = _slicedToArray(_useState, 2),
1323
1416
  uploading = _useState2[0],
@@ -1332,61 +1425,84 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
1332
1425
  useEffect(function () {
1333
1426
  valueRef.current = value;
1334
1427
  }, [value]);
1428
+ var genFileName = function genFileName() {
1429
+ seqRef.current += 1;
1430
+ return "".concat(uniqueKey, "_").concat(seqRef.current, "_").concat(new Date().getTime(), ".jpg");
1431
+ };
1432
+ // 获取当前批次的文件选择序号;没有正在上传的文件时视为新一批,重置批次状态
1433
+ var acquireBatchSeq = function acquireBatchSeq() {
1434
+ if (pendingCountRef.current === 0) {
1435
+ batchSeqRef.current = 0;
1436
+ batchResultsRef.current.clear();
1437
+ }
1438
+ return batchSeqRef.current++;
1439
+ };
1335
1440
  var asyncUpload = /*#__PURE__*/function () {
1336
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1337
- var _valueRef$current;
1338
- var formData, fileName, showName, _yield$request, success, data;
1441
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file, batchSeq) {
1442
+ var formData, fileName, showName, _yield$request, success, data, sorted;
1339
1443
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1340
1444
  while (1) switch (_context.prev = _context.next) {
1341
1445
  case 0:
1446
+ pendingCountRef.current += 1;
1447
+ uploadingCountRef.current += 1;
1342
1448
  setUploading(true);
1343
1449
  formData = new FormData();
1344
1450
  formData.append('file', file);
1345
- fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current = valueRef.current) === null || _valueRef$current === void 0 ? void 0 : _valueRef$current.length) + 1, "_").concat(new Date().getTime(), ".jpg");
1451
+ fileName = genFileName();
1346
1452
  formData.append('fileName', fileName);
1347
1453
  showName = file.name.substring(0, file.name.lastIndexOf('.'));
1348
- _context.prev = 6;
1349
- _context.next = 9;
1454
+ _context.prev = 8;
1455
+ _context.next = 11;
1350
1456
  return request(actionUrl, {
1351
1457
  method: 'post',
1352
1458
  body: formData
1353
1459
  });
1354
- case 9:
1460
+ case 11:
1355
1461
  _yield$request = _context.sent;
1356
1462
  success = _yield$request.success;
1357
1463
  data = _yield$request.data;
1358
- if (!success) {
1359
- _context.next = 16;
1360
- break;
1361
- }
1362
- if (!(valueRef.current.length >= maxCount)) {
1363
- _context.next = 15;
1364
- break;
1464
+ if (success) {
1465
+ if (valueRef.current.length + batchResultsRef.current.size < maxCount) {
1466
+ // 先暂存到当前批次,等本批次全部完成后再按选择顺序合并
1467
+ batchResultsRef.current.set(batchSeq, {
1468
+ url: data,
1469
+ name: showName
1470
+ });
1471
+ }
1365
1472
  }
1366
- return _context.abrupt("return");
1367
- case 15:
1368
- handleChange([].concat(_toConsumableArray(valueRef.current), [{
1369
- url: data,
1370
- name: showName
1371
- }]));
1372
- case 16:
1373
- _context.next = 21;
1473
+ _context.next = 20;
1374
1474
  break;
1375
- case 18:
1376
- _context.prev = 18;
1377
- _context.t0 = _context["catch"](6);
1475
+ case 17:
1476
+ _context.prev = 17;
1477
+ _context.t0 = _context["catch"](8);
1378
1478
  message.error('图片上传失败');
1379
- case 21:
1380
- _context.prev = 21;
1381
- setUploading(false);
1382
- return _context.finish(21);
1383
- case 24:
1479
+ case 20:
1480
+ _context.prev = 20;
1481
+ pendingCountRef.current = Math.max(0, pendingCountRef.current - 1);
1482
+ uploadingCountRef.current = Math.max(0, uploadingCountRef.current - 1);
1483
+ // 本批次全部上传完成,按选择序号排序后一次性合并到 value
1484
+ if (pendingCountRef.current === 0 && batchResultsRef.current.size > 0) {
1485
+ sorted = _toConsumableArray(batchResultsRef.current.entries()).sort(function (a, b) {
1486
+ return a[0] - b[0];
1487
+ }).map(function (_ref3) {
1488
+ var _ref4 = _slicedToArray(_ref3, 2),
1489
+ v = _ref4[1];
1490
+ return v;
1491
+ });
1492
+ handleChange([].concat(_toConsumableArray(valueRef.current), _toConsumableArray(sorted)));
1493
+ batchResultsRef.current.clear();
1494
+ }
1495
+ if (uploadingCountRef.current === 0) {
1496
+ setUploading(false);
1497
+ }
1498
+ return _context.finish(20);
1499
+ case 26:
1384
1500
  case "end":
1385
1501
  return _context.stop();
1386
1502
  }
1387
- }, _callee, null, [[6, 18, 21, 24]]);
1503
+ }, _callee, null, [[8, 17, 20, 26]]);
1388
1504
  }));
1389
- return function asyncUpload(_x) {
1505
+ return function asyncUpload(_x, _x2) {
1390
1506
  return _ref2.apply(this, arguments);
1391
1507
  };
1392
1508
  }();
@@ -1402,24 +1518,24 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
1402
1518
  return;
1403
1519
  }
1404
1520
  reader.onload = /*#__PURE__*/function () {
1405
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
1406
- var _e$target, _valueRef$current2;
1521
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
1522
+ var _e$target;
1407
1523
  var result, fileName, file;
1408
1524
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1409
1525
  while (1) switch (_context2.prev = _context2.next) {
1410
1526
  case 0:
1411
1527
  result = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.result;
1412
- fileName = "".concat(uniqueKey, "_").concat(((_valueRef$current2 = valueRef.current) === null || _valueRef$current2 === void 0 ? void 0 : _valueRef$current2.length) + 1, "_").concat(new Date().getTime(), ".jpg");
1528
+ fileName = genFileName();
1413
1529
  file = dataURLtoFile(result, fileName);
1414
- asyncUpload(file);
1530
+ asyncUpload(file, acquireBatchSeq());
1415
1531
  case 4:
1416
1532
  case "end":
1417
1533
  return _context2.stop();
1418
1534
  }
1419
1535
  }, _callee2);
1420
1536
  }));
1421
- return function (_x2) {
1422
- return _ref3.apply(this, arguments);
1537
+ return function (_x3) {
1538
+ return _ref5.apply(this, arguments);
1423
1539
  };
1424
1540
  }();
1425
1541
  reader.readAsDataURL(blob);
@@ -1453,7 +1569,8 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
1453
1569
  // 手动上传模式, 一直返回false
1454
1570
  var beforeUpload = function beforeUpload(file) {
1455
1571
  var size = file.size / 1024 / 1024 < maxSize;
1456
- if (value.length > maxCount) {
1572
+ // 并发上传时用「已上传 + 待上传」一起判断,避免一次选多张时超出 maxCount
1573
+ if (valueRef.current.length + pendingCountRef.current >= maxCount) {
1457
1574
  message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u5F20\u56FE\u7247\uFF01"));
1458
1575
  return Upload.LIST_IGNORE;
1459
1576
  }
@@ -1461,7 +1578,7 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
1461
1578
  message.error("\u56FE\u7247\u4E0D\u80FD\u5927\u4E8E".concat(maxSize, "MB"));
1462
1579
  return Upload.LIST_IGNORE;
1463
1580
  }
1464
- asyncUpload(file);
1581
+ asyncUpload(file, acquireBatchSeq());
1465
1582
  return Upload.LIST_IGNORE;
1466
1583
  };
1467
1584
  var handleDelete = function handleDelete(key) {
@@ -1595,6 +1712,7 @@ var ApaasUploadProAsync = function ApaasUploadProAsync(_ref, ref) {
1595
1712
  name: "file",
1596
1713
  listType: "picture-card",
1597
1714
  maxCount: maxCount,
1715
+ multiple: true,
1598
1716
  className: styles$2.uploadPro,
1599
1717
  beforeUpload: beforeUpload
1600
1718
  }, resetProps), value.length >= maxCount ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
@@ -8228,6 +8346,11 @@ var systemOrderMap = {
8228
8346
  no: 'dxdSystemOrderNo',
8229
8347
  ids: 'dxdSystemSelectIds',
8230
8348
  order: 'dxdSystemShowOrder'
8349
+ },
8350
+ TTX_SYSTEM_ORDER: {
8351
+ no: 'ttxSystemOrderNo',
8352
+ ids: 'ttxSystemSelectIds',
8353
+ order: 'ttxSystemShowOrder'
8231
8354
  }
8232
8355
  };
8233
8356
  //直接将key component 添加到 transformWorkOrderData中的componentProcessors
@@ -8514,7 +8637,7 @@ var processLogisticsInterception = function processLogisticsInterception(getValu
8514
8637
  address = every(address, function (item) {
8515
8638
  return !item;
8516
8639
  }) ? [] : address;
8517
- var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'];
8640
+ var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey', 'interceptLogisticsCustomerCode'];
8518
8641
  var map = subFields.reduce(function (cur, nxt) {
8519
8642
  return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8520
8643
  }, {});
@@ -8695,8 +8818,11 @@ var processSceneStatus = function processSceneStatus(getValue) {
8695
8818
  BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
8696
8819
  MSG_STATUS: 'msgStatusValues',
8697
8820
  WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
8821
+ WDT_WAREHOUSING_STATUS_V2: 'wdtInStockStatusV2ItemList',
8822
+ DXD_WAREHOUSING_STATUS: 'dxdInStockStatusItemList',
8698
8823
  JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
8699
8824
  JST_WAREHOUSING_STATUS: 'jstInStockStatusItemList',
8825
+ TTX_WAREHOUSING_STATUS: 'ttxInStockStatusItemList',
8700
8826
  WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList',
8701
8827
  KM_WAREHOUSING_STATUS: 'kmInStockStatusItemList'
8702
8828
  };
@@ -8726,6 +8852,12 @@ var processErpLogistics = function processErpLogistics(getValue) {
8726
8852
  },
8727
8853
  SKX_LOGISTICS: {
8728
8854
  listKey: 'skxLogisticsList'
8855
+ },
8856
+ DXD_LOGISTICS: {
8857
+ listKey: 'dxdLogisticsList'
8858
+ },
8859
+ TTX_LOGISTICS: {
8860
+ listKey: 'ttxLogisticsList'
8729
8861
  }
8730
8862
  };
8731
8863
  var initValue = [{
@@ -8756,6 +8888,9 @@ var processErpSendGood = function processErpSendGood(getValue) {
8756
8888
  },
8757
8889
  GY_SEND_GOOD: {
8758
8890
  list: 'gySendGood'
8891
+ },
8892
+ TTX_SEND_GOOD: {
8893
+ list: 'ttxSendGood'
8759
8894
  }
8760
8895
  };
8761
8896
  var initValue = [{
@@ -8861,6 +8996,23 @@ var processDxdGoods = function processDxdGoods(templateColumns) {
8861
8996
  };
8862
8997
  };
8863
8998
  };
8999
+ var processTtxGoods = function processTtxGoods(templateColumns) {
9000
+ return function (getValue) {
9001
+ return function (nex, config) {
9002
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9003
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
9004
+ });
9005
+ var systemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
9006
+ return col.workOrderComponentType === 'TTX_SYSTEM_ORDER';
9007
+ });
9008
+ return _defineProperty({}, nex.uniqueKey, {
9009
+ ttxGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_ttxGoods")), []),
9010
+ orderNo: tradeId ? getValue("".concat(tradeId.uniqueKey, "_tradeId")) : '',
9011
+ selectIds: systemOrder ? jsonParseSecurity(getValue("".concat(systemOrder.uniqueKey, "_").concat(systemOrderMap.TTX_SYSTEM_ORDER.ids)), []) : []
9012
+ });
9013
+ };
9014
+ };
9015
+ };
8864
9016
  var processDxdSuppliers = function processDxdSuppliers(templateColumns) {
8865
9017
  return function (getValue) {
8866
9018
  return function (nex, config) {
@@ -9222,6 +9374,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
9222
9374
  no: 'dxdSystemOrderNo',
9223
9375
  ids: 'dxdSystemSelectIds',
9224
9376
  order: 'dxdSystemShowOrder'
9377
+ },
9378
+ TTX_SYSTEM_ORDER: {
9379
+ no: 'ttxSystemOrderNo',
9380
+ ids: 'ttxSystemSelectIds',
9381
+ order: 'ttxSystemShowOrder'
9225
9382
  }
9226
9383
  };
9227
9384
  return _defineProperty({}, nex.uniqueKey, _objectSpread2({
@@ -9491,14 +9648,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9491
9648
  };
9492
9649
  var processLabel = function processLabel(getValue) {
9493
9650
  return function (nex, config) {
9494
- var _ref79;
9495
- 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;
9651
+ var _ref80;
9652
+ return _ref80 = {}, _defineProperty(_ref80, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref80, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref80;
9496
9653
  };
9497
9654
  };
9498
9655
  var processMemberLevel = function processMemberLevel(getValue) {
9499
9656
  return function (nex, config) {
9500
- var _ref80;
9501
- 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;
9657
+ var _ref81;
9658
+ return _ref81 = {}, _defineProperty(_ref81, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref81, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref81;
9502
9659
  };
9503
9660
  };
9504
9661
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9604,9 +9761,12 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9604
9761
  BS_E3_WAREHOUSING_STATUS: processSceneStatus,
9605
9762
  MSG_STATUS: processSceneStatus,
9606
9763
  WDT_WAREHOUSING_STATUS: processSceneStatus,
9764
+ WDT_WAREHOUSING_STATUS_V2: processSceneStatus,
9765
+ DXD_WAREHOUSING_STATUS: processSceneStatus,
9607
9766
  WLN_WAREHOUSING_STATUS: processSceneStatus,
9608
9767
  JKY_WAREHOUSING_STATUS: processSceneStatus,
9609
9768
  JST_WAREHOUSING_STATUS: processSceneStatus,
9769
+ TTX_WAREHOUSING_STATUS: processSceneStatus,
9610
9770
  KM_WAREHOUSING_STATUS: processSceneStatus,
9611
9771
  BS_LOGISTICS: processErpLogistics,
9612
9772
  WLN_LOGISTICS: processErpLogistics,
@@ -9614,18 +9774,22 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9614
9774
  GY_LOGISTICS: processErpLogistics,
9615
9775
  BS_E3_LOGISTICS: processErpLogistics,
9616
9776
  KM_LOGISTICS: processErpLogistics,
9777
+ DXD_LOGISTICS: processErpLogistics,
9778
+ TTX_LOGISTICS: processErpLogistics,
9617
9779
  BS_SEND_GOOD: processErpSendGood,
9618
9780
  WLN_SEND_GOOD: processErpSendGood,
9619
9781
  WDT_SEND_GOOD: processErpSendGood,
9620
9782
  BS_E3_SEND_GOOD: processErpSendGood,
9621
9783
  KM_SEND_GOOD: processErpSendGood,
9622
9784
  GY_SEND_GOOD: processErpSendGood,
9785
+ TTX_SEND_GOOD: processErpSendGood,
9623
9786
  KM_RETURN_WAREHOUSE: processErpReturnWarehouse,
9624
9787
  BS_POSTING: processBsPosting,
9625
9788
  BS_GOODS: processBsGoods,
9626
9789
  WDT_GOODS: processWdtGoods(templateColumns),
9627
9790
  JKY_GOODS: processJkyGoods(templateColumns),
9628
9791
  DXD_GOODS: processDxdGoods(templateColumns),
9792
+ TTX_GOODS: processTtxGoods(templateColumns),
9629
9793
  DXD_SUPPLIERS: processDxdSuppliers(templateColumns),
9630
9794
  WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9631
9795
  JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
@@ -9654,6 +9818,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9654
9818
  JST_SYSTEM_ORDER: processErpSystemOrder,
9655
9819
  GY_SYSTEM_ORDER: processErpSystemOrder,
9656
9820
  DXD_SYSTEM_ORDER: processErpSystemOrder,
9821
+ TTX_SYSTEM_ORDER: processErpSystemOrder,
9657
9822
  BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
9658
9823
  ORDER_TYPE: processOrderType,
9659
9824
  REFUND_TYPE: processRefundType,
@@ -10347,6 +10512,7 @@ var SubForm = function SubForm(props) {
10347
10512
  maxCount = props.maxCount;
10348
10513
  var ref = useRef(null);
10349
10514
  var isRequest = useRef(false);
10515
+ var cursorIdRef = useRef(null);
10350
10516
  var _useState = useState(false),
10351
10517
  _useState2 = _slicedToArray(_useState, 2),
10352
10518
  open = _useState2[0],
@@ -10590,6 +10756,7 @@ var SubForm = function SubForm(props) {
10590
10756
  };
10591
10757
  var getWorkOrderList = /*#__PURE__*/function () {
10592
10758
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
10759
+ var _cursorIdRef$current;
10593
10760
  var _ref2,
10594
10761
  _ref2$pageNo,
10595
10762
  pageNo,
@@ -10597,9 +10764,13 @@ var SubForm = function SubForm(props) {
10597
10764
  componentList,
10598
10765
  params,
10599
10766
  queryComponents,
10767
+ cursorParams,
10768
+ queryKey,
10600
10769
  res,
10601
10770
  data,
10602
10771
  success,
10772
+ _cursorIdRef$current2,
10773
+ _cursorIdRef$current3,
10603
10774
  transDataSourceItem,
10604
10775
  headerKeys,
10605
10776
  newList,
@@ -10622,6 +10793,8 @@ var SubForm = function SubForm(props) {
10622
10793
  templateKey: workOrderTemplateId,
10623
10794
  needReturnRepeatValue: true,
10624
10795
  needFilterShopByPermission: needFilterShopByPermission,
10796
+ needTotal: false,
10797
+ useNext: true,
10625
10798
  queryComponents: [{
10626
10799
  key: 'flowStatus',
10627
10800
  symbol: 'in',
@@ -10634,30 +10807,51 @@ var SubForm = function SubForm(props) {
10634
10807
  symbol: 'in',
10635
10808
  value: flowStatus
10636
10809
  }];
10637
- if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
10638
- queryComponents.push({
10639
- key: selectKey,
10640
- symbol: 'like',
10641
- value: inputValue
10642
- });
10810
+ queryComponents.push({
10811
+ key: selectKey,
10812
+ symbol: 'in',
10813
+ value: [inputValue]
10814
+ });
10815
+ params.queryComponents = queryComponents;
10816
+ }
10817
+ params.queryComponents = params.queryComponents.filter(function (item) {
10818
+ var _item$value;
10819
+ if (item.key === 'flowStatus' && ((_item$value = item.value) === null || _item$value === void 0 ? void 0 : _item$value.length) === 4) {
10820
+ return false;
10643
10821
  } else {
10644
- queryComponents.push({
10645
- key: selectKey,
10646
- symbol: 'in',
10647
- value: [inputValue]
10648
- });
10822
+ return true;
10649
10823
  }
10650
- params.queryComponents = queryComponents;
10824
+ });
10825
+ cursorParams = _objectSpread2({}, params);
10826
+ delete cursorParams.pageNo;
10827
+ queryKey = JSON.stringify(cursorParams);
10828
+ if (((_cursorIdRef$current = cursorIdRef.current) === null || _cursorIdRef$current === void 0 ? void 0 : _cursorIdRef$current.queryKey) === queryKey) {
10829
+ if (cursorIdRef.current.cursorId) {
10830
+ params.cursorId = cursorIdRef.current.cursorId;
10831
+ }
10832
+ if (cursorIdRef.current.cursorCreated) {
10833
+ params.cursorCreated = cursorIdRef.current.cursorCreated;
10834
+ }
10835
+ } else {
10836
+ cursorIdRef.current = {
10837
+ queryKey: queryKey
10838
+ };
10651
10839
  }
10652
- _context.next = 7;
10653
- return extendRequest('/qy/view/workOrderList', {
10840
+ _context.next = 12;
10841
+ return extendRequest('/qy/view/workOrderListCached', {
10654
10842
  method: 'post',
10655
10843
  data: params
10656
10844
  });
10657
- case 7:
10845
+ case 12:
10658
10846
  res = _context.sent;
10659
10847
  data = res.data, success = res.success;
10660
10848
  if (success) {
10849
+ if ((data === null || data === void 0 ? void 0 : data.cursorId) && ((_cursorIdRef$current2 = cursorIdRef.current) === null || _cursorIdRef$current2 === void 0 ? void 0 : _cursorIdRef$current2.queryKey) === queryKey) {
10850
+ cursorIdRef.current.cursorId = data.cursorId;
10851
+ }
10852
+ if ((data === null || data === void 0 ? void 0 : data.cursorCreated) && ((_cursorIdRef$current3 = cursorIdRef.current) === null || _cursorIdRef$current3 === void 0 ? void 0 : _cursorIdRef$current3.queryKey) === queryKey) {
10853
+ cursorIdRef.current.cursorCreated = data.cursorCreated;
10854
+ }
10661
10855
  transDataSourceItem = transformWorkOrderData(componentDtoList.length ? componentDtoList : componentList, 'edit');
10662
10856
  headerKeys = correlationList.map(function (t) {
10663
10857
  return t.key;
@@ -10683,7 +10877,7 @@ var SubForm = function SubForm(props) {
10683
10877
  setHasMore((data === null || data === void 0 ? void 0 : data.list.length) === pageSize);
10684
10878
  isRequest.current = false;
10685
10879
  }
10686
- case 10:
10880
+ case 15:
10687
10881
  case "end":
10688
10882
  return _context.stop();
10689
10883
  }
@@ -11071,6 +11265,39 @@ function ApaasAddress(props) {
11071
11265
  }));
11072
11266
  }
11073
11267
 
11268
+ var YouzanStar = function YouzanStar(_ref) {
11269
+ var disabled = _ref.disabled,
11270
+ compact = _ref.compact,
11271
+ value = _ref.value,
11272
+ _onChange = _ref.onChange;
11273
+ var star = normalizeYouzanStar(value);
11274
+ if (compact) {
11275
+ return star ? /*#__PURE__*/React.createElement("span", {
11276
+ style: {
11277
+ display: 'inline-flex',
11278
+ alignItems: 'center',
11279
+ gap: 4,
11280
+ color: '#f8da14'
11281
+ }
11282
+ }, /*#__PURE__*/React.createElement("span", null, star), /*#__PURE__*/React.createElement(Rate$1, {
11283
+ count: 1,
11284
+ disabled: true,
11285
+ value: 1,
11286
+ style: {
11287
+ color: '#f8da14'
11288
+ }
11289
+ })) : null;
11290
+ }
11291
+ return /*#__PURE__*/React.createElement(Rate$1, {
11292
+ allowClear: !disabled,
11293
+ disabled: disabled,
11294
+ value: star || 0,
11295
+ onChange: function onChange(nextValue) {
11296
+ return _onChange === null || _onChange === void 0 ? void 0 : _onChange(normalizeYouzanStar(nextValue));
11297
+ }
11298
+ });
11299
+ };
11300
+
11074
11301
  var trade0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1MEQ1MkIyMjIzQUIxMUU0QjU5NjkwNDQxQkU4N0E1MiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1MEQ1MkIyMzIzQUIxMUU0QjU5NjkwNDQxQkU4N0E1MiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjUwRDUyQjIwMjNBQjExRTRCNTk2OTA0NDFCRTg3QTUyIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjUwRDUyQjIxMjNBQjExRTRCNTk2OTA0NDFCRTg3QTUyIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+PFEh+QAAAPhJREFUeNqM0MFKAkEcx/FZNcwSihBBT3oRog4RBHnqoiA+SuAL7J73Fbz7Ah5DOiw5QcdOQUhECoL1BBpC0/eP/0URUf/wYWaH+c3Ofzzf97+NMR1kcY85BuiqLxSRD8PQppgk0MC7WdQBLpWPsWzGC+qy+QEVfMBpKB7lwBKOcBUEwZkEnnCoJ/+YZbkVUjncSOBZF8sr11qvOHQngRHecK3NSnkbSDWT1tq/KIrOtfFIr9aGxRRpnGhgmNLJI1qYyW95vt/4LjR6yiAHZvDqOedkscDHpzwdm2tmS0kPhk0TSeOWcG5nQKuHY1T3DfR1vNgW+BdgACxMP/P+iLA3AAAAAElFTkSuQmCC";
11075
11302
 
11076
11303
  var trade1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpFQ0NGNkNCNjIzQUExMUU0OTZDM0UxQUI1MEVCOUU2RSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpFQ0NGNkNCNzIzQUExMUU0OTZDM0UxQUI1MEVCOUU2RSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkVDQ0Y2Q0I0MjNBQTExRTQ5NkMzRTFBQjUwRUI5RTZFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkVDQ0Y2Q0I1MjNBQTExRTQ5NkMzRTFBQjUwRUI5RTZFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+WQ64bQAAAPVJREFUeNqM0M9KQkEUx/GZwUDNhYQItjKCQNyEEOSqVZtewHcQfIE2Posv0FIiWvQHLDeuBBEXUgTX3LmxRHH6njgXrnC5eODDzFzmNzPn2jdrZ8aYDnJoYo0x7tQUxyhebrcvlsCcRYARGma3NviSzegRuHZMujjDBF43hmMKZWRx/u7ckQSekMYBviOn+wipAi4k8KofT/RZcRWGriTwgSFq2qyUjSF142hko886xQJ93KKt/X1GbvpJ6eQBLfzKtRyyCnfQaJ6hggwGxntv+LUlLPEo6yTSg+HE4D/NlBMLJqFcZH6PQ9T3DTzrWE0K/AkwAPKxWrUjgeKsAAAAAElFTkSuQmCC";
@@ -11087,6 +11314,7 @@ var TextArea$2 = Input.TextArea;
11087
11314
  var imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
11088
11315
  var RemarkInput = function RemarkInput(props) {
11089
11316
  var isShowFlag = props.isShowFlag,
11317
+ isYouzan = props.isYouzan,
11090
11318
  value = props.value,
11091
11319
  onChange = props.onChange,
11092
11320
  disabled = props.disabled;
@@ -11103,6 +11331,11 @@ var RemarkInput = function RemarkInput(props) {
11103
11331
  });
11104
11332
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
11105
11333
  };
11334
+ var changeStar = function changeStar(star) {
11335
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
11336
+ flag: star
11337
+ }));
11338
+ };
11106
11339
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TextArea$2, {
11107
11340
  disabled: disabled,
11108
11341
  rows: 4,
@@ -11110,7 +11343,19 @@ var RemarkInput = function RemarkInput(props) {
11110
11343
  placeholder: "\u8BF7\u8F93\u5165\u5907\u6CE8",
11111
11344
  key: "remark",
11112
11345
  onChange: changeRemark
11113
- }), isShowFlag && /*#__PURE__*/React.createElement(Radio.Group, {
11346
+ }), isShowFlag && isYouzan && /*#__PURE__*/React.createElement("div", {
11347
+ style: {
11348
+ marginTop: '12px'
11349
+ }
11350
+ }, /*#__PURE__*/React.createElement("span", {
11351
+ style: {
11352
+ marginRight: '8px'
11353
+ }
11354
+ }, "\u661F\u6807\uFF1A"), /*#__PURE__*/React.createElement(YouzanStar, {
11355
+ disabled: disabled,
11356
+ value: value === null || value === void 0 ? void 0 : value.flag,
11357
+ onChange: changeStar
11358
+ })), isShowFlag && !isYouzan && /*#__PURE__*/React.createElement(Radio.Group, {
11114
11359
  style: {
11115
11360
  marginTop: '12px'
11116
11361
  },
@@ -13295,7 +13540,6 @@ var Item = Form.Item;
13295
13540
  var LogisticsInterception = function LogisticsInterception(props) {
13296
13541
  var _value$interceptLogis3, _value$interceptLogis4, _value$interceptLogis5;
13297
13542
  var LogisticsAddress = LogisticsAddressData.getInstance();
13298
- var LogisticsAddressOptions = (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
13299
13543
  var address = AddressData.getInstance();
13300
13544
  var _props$value = props.value,
13301
13545
  value = _props$value === void 0 ? {} : _props$value,
@@ -13333,6 +13577,12 @@ var LogisticsInterception = function LogisticsInterception(props) {
13333
13577
  _useState8 = _slicedToArray(_useState7, 2),
13334
13578
  isInterface = _useState8[0],
13335
13579
  setIsInterface = _useState8[1];
13580
+ var _useState9 = useState(function () {
13581
+ return (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
13582
+ }),
13583
+ _useState10 = _slicedToArray(_useState9, 2),
13584
+ logisticsAddressData = _useState10[0],
13585
+ setLogisticsAddressData = _useState10[1];
13336
13586
  useEffect(function () {
13337
13587
  if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
13338
13588
  setTypeOptions([]);
@@ -13347,6 +13597,13 @@ var LogisticsInterception = function LogisticsInterception(props) {
13347
13597
  setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.logisticsStatusList) || []);
13348
13598
  setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
13349
13599
  }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
13600
+ useEffect(function () {
13601
+ if (!isJdLogisticsCompany(value === null || value === void 0 ? void 0 : value.interceptCompany) && (value === null || value === void 0 ? void 0 : value.interceptLogisticsCustomerCode) !== undefined) {
13602
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
13603
+ interceptLogisticsCustomerCode: undefined
13604
+ }));
13605
+ }
13606
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany, value === null || value === void 0 ? void 0 : value.interceptLogisticsCustomerCode]);
13350
13607
  //拦截类型切换 需要清空派送地址
13351
13608
  useEffect(function () {
13352
13609
  if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) return;
@@ -13409,6 +13666,9 @@ var LogisticsInterception = function LogisticsInterception(props) {
13409
13666
  }
13410
13667
  return isShow;
13411
13668
  }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
13669
+ var showCustomerCode = useMemo(function () {
13670
+ return isJdLogisticsCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
13671
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
13412
13672
  //判断是否能修改物流信息
13413
13673
  var isEdit = useMemo(function () {
13414
13674
  var company = expressInterceptData.find(function (item) {
@@ -13420,13 +13680,13 @@ var LogisticsInterception = function LogisticsInterception(props) {
13420
13680
  var baseFieldDisabled = disabled || isEdit && !canEditPreCreateBaseFields;
13421
13681
  //退回地址列表
13422
13682
  var logisticsAddressOptions = useMemo(function () {
13423
- return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
13683
+ return logisticsAddressData === null || logisticsAddressData === void 0 ? void 0 : logisticsAddressData.filter(function (item) {
13424
13684
  return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
13425
13685
  });
13426
- }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
13686
+ }, [logisticsAddressData, value === null || value === void 0 ? void 0 : value.interceptCompany]);
13427
13687
  // K码列表
13428
13688
  var kCodeList = useMemo(function () {
13429
- return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
13689
+ return logisticsAddressData === null || logisticsAddressData === void 0 ? void 0 : logisticsAddressData.filter(function (item) {
13430
13690
  return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany) && item.userKCode;
13431
13691
  }).map(function (item) {
13432
13692
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -13434,7 +13694,45 @@ var LogisticsInterception = function LogisticsInterception(props) {
13434
13694
  label: item === null || item === void 0 ? void 0 : item.userKCode
13435
13695
  });
13436
13696
  });
13437
- }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
13697
+ }, [logisticsAddressData, value === null || value === void 0 ? void 0 : value.interceptCompany]);
13698
+ var customerCodeOptions = useMemo(function () {
13699
+ return getJdCustomerCodeOptions(logisticsAddressData);
13700
+ }, [logisticsAddressData]);
13701
+ var refreshLogisticsAddressOptions = /*#__PURE__*/function () {
13702
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
13703
+ var _yield$request, data, latestData;
13704
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
13705
+ while (1) switch (_context.prev = _context.next) {
13706
+ case 0:
13707
+ _context.prev = 0;
13708
+ _context.next = 3;
13709
+ return request$1({
13710
+ url: '/qy/userConfig/listLogisticsAddress',
13711
+ method: 'get',
13712
+ data: {}
13713
+ });
13714
+ case 3:
13715
+ _yield$request = _context.sent;
13716
+ data = _yield$request.data;
13717
+ latestData = data || [];
13718
+ LogisticsAddress.setaddressData(latestData);
13719
+ setLogisticsAddressData(latestData);
13720
+ _context.next = 13;
13721
+ break;
13722
+ case 10:
13723
+ _context.prev = 10;
13724
+ _context.t0 = _context["catch"](0);
13725
+ console.log(_context.t0);
13726
+ case 13:
13727
+ case "end":
13728
+ return _context.stop();
13729
+ }
13730
+ }, _callee, null, [[0, 10]]);
13731
+ }));
13732
+ return function refreshLogisticsAddressOptions() {
13733
+ return _ref.apply(this, arguments);
13734
+ };
13735
+ }();
13438
13736
  var returnValue = useMemo(function () {
13439
13737
  var _value$interceptAddre, _value$interceptAddre2, _value$interceptAddre3;
13440
13738
  var uk = LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getUkByInfo({
@@ -13490,9 +13788,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
13490
13788
  // userSecretKey: '12345678',
13491
13789
  // },
13492
13790
  // ];
13493
- var matchKCodeList = LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
13494
- return item.cpCode === val && item.userKCode;
13495
- });
13496
13791
  newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
13497
13792
  interceptCompany: val,
13498
13793
  interceptType: (_defaultInterceptType = defaultInterceptType) === null || _defaultInterceptType === void 0 ? void 0 : _defaultInterceptType.value,
@@ -13511,7 +13806,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
13511
13806
  },
13512
13807
  interceptLogisticsApiStatusReason: undefined,
13513
13808
  interceptLogisticsUserKCode: undefined,
13514
- interceptLogisticsUserSecretKey: undefined
13809
+ interceptLogisticsUserSecretKey: undefined,
13810
+ interceptLogisticsCustomerCode: undefined
13515
13811
  });
13516
13812
  }
13517
13813
  if (type === 'interceptLogisticsApiStatus') {
@@ -13592,7 +13888,41 @@ var LogisticsInterception = function LogisticsInterception(props) {
13592
13888
  return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptCode');
13593
13889
  },
13594
13890
  value: value === null || value === void 0 ? void 0 : value.interceptCode
13595
- }))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
13891
+ }))), /*#__PURE__*/React.createElement(Item, {
13892
+ label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801", platform === 'pc' ? /*#__PURE__*/React.createElement(React.Fragment, null, "\uFF1A", /*#__PURE__*/React.createElement(Typography.Link, {
13893
+ style: {
13894
+ cursor: 'pointer'
13895
+ },
13896
+ onClick: function onClick() {
13897
+ return onJumpPage && (onJumpPage === null || onJumpPage === void 0 ? void 0 : onJumpPage({
13898
+ type: 'interceptConfig',
13899
+ state: {
13900
+ tab: 'JDLCodeRelation'
13901
+ }
13902
+ }));
13903
+ }
13904
+ }, 'K码/EBU码配置>>')) : null),
13905
+ required: showCustomerCode,
13906
+ key: 'interceptLogisticsCustomerCode',
13907
+ hidden: !showCustomerCode
13908
+ }, /*#__PURE__*/React.createElement(Select, {
13909
+ disabled: disabled,
13910
+ placeholder: "\u9009\u62E9\u5BA2\u6237\u7F16\u7801",
13911
+ notFoundContent: "\u6682\u65E0\u5BA2\u6237\u7F16\u7801\u914D\u7F6E\uFF0C\u8BF7\u5148\u524D\u5F80K\u7801/EBU\u7801\u914D\u7F6E>>",
13912
+ showSearch: true,
13913
+ style: {
13914
+ width: '200px'
13915
+ },
13916
+ onChange: function onChange(val) {
13917
+ return changeHandle(val, 'interceptLogisticsCustomerCode');
13918
+ },
13919
+ onFocus: refreshLogisticsAddressOptions,
13920
+ options: customerCodeOptions,
13921
+ value: value === null || value === void 0 ? void 0 : value.interceptLogisticsCustomerCode,
13922
+ filterOption: function filterOption(input, option) {
13923
+ return option.label.includes(input);
13924
+ }
13925
+ })), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
13596
13926
  label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React.createElement(Typography.Link, {
13597
13927
  style: {
13598
13928
  cursor: 'pointer'
@@ -13637,7 +13967,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
13637
13967
  value: value === null || value === void 0 ? void 0 : value.interceptLogisticsUserSecretKey
13638
13968
  }))), /*#__PURE__*/React.createElement(Item, {
13639
13969
  label: '拦截类型',
13640
- required: required,
13970
+ required: required && !showCustomerCode,
13641
13971
  key: 'interceptType'
13642
13972
  }, /*#__PURE__*/React.createElement(Select, {
13643
13973
  disabled: baseFieldDisabled,
@@ -14277,14 +14607,14 @@ var jstGoods = function jstGoods(props) {
14277
14607
  showField = _props$showField === void 0 ? '' : _props$showField,
14278
14608
  _props$platformType = props.platformType,
14279
14609
  platformType = _props$platformType === void 0 ? 'default' : _props$platformType,
14280
- onlyShowFieldSelect = props.onlyShowFieldSelect,
14281
- logisticsCompanyFormType = props.logisticsCompanyFormType;
14610
+ logisticsCompanyFormType = props.logisticsCompanyFormType,
14611
+ form = props.form;
14282
14612
  var _useState = useState(0),
14283
14613
  _useState2 = _slicedToArray(_useState, 2),
14284
14614
  changeIndex = _useState2[0],
14285
14615
  setChangeIndex = _useState2[1]; //选中的包裹
14286
14616
  var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
14287
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln', 'dxd'].includes(platformType);
14617
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln', 'dxd', 'ttx'].includes(platformType);
14288
14618
  var expressDateInstance = ExpressData.getInstance(platformType);
14289
14619
  var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
14290
14620
  useEffect(function () {
@@ -14293,6 +14623,28 @@ var jstGoods = function jstGoods(props) {
14293
14623
  onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
14294
14624
  }
14295
14625
  }, [value, type]);
14626
+ useEffect(function () {
14627
+ //丢失sendSnapshotName,未找到具体原因,兜底处理
14628
+ if (type === 3 && isSendGoodSavedId && value && value.length && value.some(function (item) {
14629
+ return !item.sendSnapshotName;
14630
+ }) && value.every(function (item) {
14631
+ return item.sendId;
14632
+ })) {
14633
+ var orderNo = form === null || form === void 0 ? void 0 : form.getFieldValue('m3ap1EvEyd');
14634
+ console.log('发货仓走兜底处理-oldValue--', orderNo, cloneDeep(value));
14635
+ var newValue = cloneDeep(value).map(function (item) {
14636
+ if (item.sendSnapshotName || !item.sendId) return item;
14637
+ return _objectSpread2(_objectSpread2({}, item), {}, {
14638
+ sendSnapshotName: SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendId)
14639
+ });
14640
+ });
14641
+ Monitor.automaticReport({
14642
+ message: "\u53D1\u8D27\u4ED3\u8D70\u515C\u5E95\u5904\u7406-".concat(orderNo || '', "-oldValue-").concat(JSON.stringify(cloneDeep(value)), ",newValue-").concat(JSON.stringify(cloneDeep(newValue)))
14643
+ });
14644
+ console.log('发货仓走兜底处理-newValue--', orderNo, cloneDeep(newValue));
14645
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
14646
+ }
14647
+ }, [JSON.stringify(value || []), type]);
14296
14648
  useEffect(function () {
14297
14649
  if (changeIndex > (value === null || value === void 0 ? void 0 : value.length) - 1) {
14298
14650
  setChangeIndex(0);
@@ -14318,12 +14670,10 @@ var jstGoods = function jstGoods(props) {
14318
14670
  }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, t.title), /*#__PURE__*/React.createElement("div", null, "\u7F16\u7801\uFF1A", t.skuId))));
14319
14671
  }));
14320
14672
  };
14321
- var handleSelected = function handleSelected(val, type, option, onlyShowFieldSelect) {
14673
+ var handleSelected = function handleSelected(val, type, option) {
14322
14674
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
14323
14675
  changeOrderInfo[type] = val;
14324
- if (!onlyShowFieldSelect) {
14325
- changeOrderInfo['sendId'] = option.value;
14326
- }
14676
+ changeOrderInfo['sendId'] = option.value;
14327
14677
  if (isSelectName && type === 'sendName') {
14328
14678
  if (isSendGoodSavedId) {
14329
14679
  // 如果发货仓名称存的是id,将名称存入快照
@@ -14338,12 +14688,10 @@ var jstGoods = function jstGoods(props) {
14338
14688
  newList[changeIndex] = changeOrderInfo;
14339
14689
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
14340
14690
  };
14341
- var handleSelectedReturn = function handleSelectedReturn(val, type, option, onlyShowFieldSelect) {
14691
+ var handleSelectedReturn = function handleSelectedReturn(val, type, option) {
14342
14692
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
14343
14693
  changeOrderInfo[type] = val;
14344
- if (!onlyShowFieldSelect) {
14345
- changeOrderInfo['returnWarehouseId'] = option.value;
14346
- }
14694
+ changeOrderInfo['returnWarehouseId'] = option.value;
14347
14695
  if (isSelectName && type === 'returnWarehouseName') {
14348
14696
  // 如果发货仓名称存的是name,将id存入快照,同时把id替换成名称
14349
14697
  changeOrderInfo['sendSnapshotId'] = option.value;
@@ -14450,7 +14798,7 @@ var jstGoods = function jstGoods(props) {
14450
14798
  filterOption: filterOption,
14451
14799
  value: ((_value$changeIndex10 = value[changeIndex]) === null || _value$changeIndex10 === void 0 ? void 0 : _value$changeIndex10.sendSnapshotId) || ((_value$changeIndex11 = value[changeIndex]) === null || _value$changeIndex11 === void 0 ? void 0 : _value$changeIndex11.sendName) || null,
14452
14800
  onChange: function onChange(value, option) {
14453
- return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
14801
+ return handleSelected(value, 'sendName', option);
14454
14802
  }
14455
14803
  }) : /*#__PURE__*/React.createElement(Input, {
14456
14804
  disabled: disabled,
@@ -14485,7 +14833,7 @@ var jstGoods = function jstGoods(props) {
14485
14833
  filterOption: filterOption,
14486
14834
  value: ((_value$changeIndex15 = value[changeIndex]) === null || _value$changeIndex15 === void 0 ? void 0 : _value$changeIndex15.sendSnapshotId) || ((_value$changeIndex16 = value[changeIndex]) === null || _value$changeIndex16 === void 0 ? void 0 : _value$changeIndex16.returnWarehouseName) || null,
14487
14835
  onChange: function onChange(value, option) {
14488
- return handleSelectedReturn(value, 'returnWarehouseName', option, onlyShowFieldSelect);
14836
+ return handleSelectedReturn(value, 'returnWarehouseName', option);
14489
14837
  }
14490
14838
  }) : /*#__PURE__*/React.createElement(Input, {
14491
14839
  disabled: disabled,
@@ -16105,6 +16453,226 @@ var useGetColumns = (function (type) {
16105
16453
  return [columns, showColumnsDataIndexList, loading];
16106
16454
  });
16107
16455
 
16456
+ var ACTION_CONFIG = {
16457
+ JST_ERP: [{
16458
+ sourceField: 'styleCode',
16459
+ requestField: 'styleCodes'
16460
+ }, {
16461
+ sourceField: 'goodNo',
16462
+ requestField: 'goodNos'
16463
+ }],
16464
+ WLN_ERP: [{
16465
+ sourceField: 'goodNo',
16466
+ requestField: 'goodNos'
16467
+ }, {
16468
+ sourceField: 'specNo',
16469
+ requestField: 'skuCodes'
16470
+ }],
16471
+ WDT_ERP: [{
16472
+ sourceField: 'goodNo',
16473
+ requestField: 'goodNos'
16474
+ }, {
16475
+ sourceField: 'skuCode',
16476
+ requestField: 'skuCodes'
16477
+ }],
16478
+ GY_ERP: [{
16479
+ sourceField: 'goodNo',
16480
+ requestField: 'goodNos'
16481
+ }],
16482
+ JY_ERP: [{
16483
+ sourceField: 'goodNo',
16484
+ requestField: 'goodNos'
16485
+ }, {
16486
+ sourceField: 'skuCode',
16487
+ requestField: 'skuCodes'
16488
+ }],
16489
+ KM_ERP: [{
16490
+ sourceField: 'goodNo',
16491
+ requestField: 'goodNos'
16492
+ }, {
16493
+ sourceField: 'skuCode',
16494
+ requestField: 'skuCodes'
16495
+ }]
16496
+ };
16497
+ var getSearchValue = function getSearchValue(value) {
16498
+ var _value$inputValue;
16499
+ var inputValue = (_value$inputValue = value === null || value === void 0 ? void 0 : value.inputValue) !== null && _value$inputValue !== void 0 ? _value$inputValue : value;
16500
+ if (inputValue === undefined || inputValue === null) return '';
16501
+ return String(inputValue).trim();
16502
+ };
16503
+ var getSkuType = function getSkuType(platform, formData) {
16504
+ if (platform !== 'JST_ERP' && platform !== 'WLN_ERP') return undefined;
16505
+ var values = Array.isArray(formData.skuType) ? formData.skuType : [formData.skuType];
16506
+ var skuTypes = values.filter(function (value) {
16507
+ return value === 'normal' || value === 'combine';
16508
+ });
16509
+ return skuTypes.length === 1 ? skuTypes[0] : undefined;
16510
+ };
16511
+ var getReSyncActions = function getReSyncActions(platform, total, formData) {
16512
+ if (total !== 0) return [];
16513
+ var skuType = getSkuType(platform, formData);
16514
+ var requestData = _objectSpread2({
16515
+ platform: platform
16516
+ }, skuType ? {
16517
+ skuType: skuType
16518
+ } : {});
16519
+ var values = [];
16520
+ ACTION_CONFIG[platform].forEach(function (config) {
16521
+ var value = getSearchValue(formData[config.sourceField]);
16522
+ if (!value) return;
16523
+ requestData[config.requestField] = [value];
16524
+ values.push(value);
16525
+ });
16526
+ if (!values.length) return [];
16527
+ return [{
16528
+ key: 'goods',
16529
+ label: '同步商品',
16530
+ targetName: '商品',
16531
+ value: values.join('、'),
16532
+ requestData: requestData
16533
+ }];
16534
+ };
16535
+
16536
+ var useGoodsReSyncQuery = function useGoodsReSyncQuery(service) {
16537
+ var _React$useState = React.useState({
16538
+ total: null,
16539
+ formData: {}
16540
+ }),
16541
+ _React$useState2 = _slicedToArray(_React$useState, 2),
16542
+ queryState = _React$useState2[0],
16543
+ setQueryState = _React$useState2[1];
16544
+ var serviceWithReSyncState = React.useCallback(function (pagination, formData) {
16545
+ var currentFormData = formData;
16546
+ setQueryState({
16547
+ total: null,
16548
+ formData: currentFormData
16549
+ });
16550
+ return service(pagination, formData).then(function (result) {
16551
+ setQueryState({
16552
+ total: result.total,
16553
+ formData: currentFormData
16554
+ });
16555
+ return result;
16556
+ }, function (error) {
16557
+ setQueryState({
16558
+ total: null,
16559
+ formData: currentFormData
16560
+ });
16561
+ throw error;
16562
+ });
16563
+ }, [service]);
16564
+ return [serviceWithReSyncState, queryState];
16565
+ };
16566
+ var getErrorMessage = function getErrorMessage(error, action) {
16567
+ var _error$data;
16568
+ return (error === null || error === void 0 ? void 0 : (_error$data = error.data) === null || _error$data === void 0 ? void 0 : _error$data.message) || (error === null || error === void 0 ? void 0 : error.message) || "".concat(action.label, "\u5931\u8D25");
16569
+ };
16570
+ var GoodsReSync = function GoodsReSync(_ref) {
16571
+ var platform = _ref.platform,
16572
+ queryState = _ref.queryState,
16573
+ onSuccess = _ref.onSuccess;
16574
+ var _React$useState3 = React.useState(null),
16575
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
16576
+ loadingAction = _React$useState4[0],
16577
+ setLoadingAction = _React$useState4[1];
16578
+ var actions = getReSyncActions(platform, queryState.total, queryState.formData);
16579
+ var handleReSync = function handleReSync(action) {
16580
+ Modal.confirm({
16581
+ title: "\u786E\u8BA4".concat(action.label),
16582
+ content: "\u5C06\u4ECE ERP \u91CD\u65B0\u62C9\u53D6".concat(action.targetName, "\u201C").concat(action.value, "\u201D\u5E76\u8986\u76D6\u672C\u5730\u6570\u636E"),
16583
+ okText: '确认同步',
16584
+ cancelText: '取消',
16585
+ onOk: function () {
16586
+ var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
16587
+ var response;
16588
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
16589
+ while (1) switch (_context.prev = _context.next) {
16590
+ case 0:
16591
+ setLoadingAction(action.key);
16592
+ _context.prev = 1;
16593
+ _context.next = 4;
16594
+ return extendRequest('/qy/gdfw/product/reSync', {
16595
+ method: 'post',
16596
+ timeout: 60000,
16597
+ data: action.requestData
16598
+ });
16599
+ case 4:
16600
+ response = _context.sent;
16601
+ if (!((response === null || response === void 0 ? void 0 : response.success) === false)) {
16602
+ _context.next = 7;
16603
+ break;
16604
+ }
16605
+ throw new Error(response.message || "".concat(action.label, "\u5931\u8D25"));
16606
+ case 7:
16607
+ message.success((response === null || response === void 0 ? void 0 : response.message) || "".concat(action.label, "\u6210\u529F"));
16608
+ _context.next = 10;
16609
+ return onSuccess();
16610
+ case 10:
16611
+ _context.next = 16;
16612
+ break;
16613
+ case 12:
16614
+ _context.prev = 12;
16615
+ _context.t0 = _context["catch"](1);
16616
+ message.error(getErrorMessage(_context.t0, action));
16617
+ throw _context.t0;
16618
+ case 16:
16619
+ _context.prev = 16;
16620
+ setLoadingAction(null);
16621
+ return _context.finish(16);
16622
+ case 19:
16623
+ case "end":
16624
+ return _context.stop();
16625
+ }
16626
+ }, _callee, null, [[1, 12, 16, 19]]);
16627
+ }));
16628
+ function onOk() {
16629
+ return _onOk.apply(this, arguments);
16630
+ }
16631
+ return onOk;
16632
+ }()
16633
+ });
16634
+ };
16635
+ return /*#__PURE__*/React.createElement(Empty, {
16636
+ image: Empty.PRESENTED_IMAGE_SIMPLE,
16637
+ description: actions.length ? /*#__PURE__*/React.createElement(Space, {
16638
+ size: 8
16639
+ }, actions.map(function (action) {
16640
+ return /*#__PURE__*/React.createElement(Button, {
16641
+ key: action.key,
16642
+ loading: loadingAction === action.key,
16643
+ disabled: loadingAction !== null && loadingAction !== action.key,
16644
+ onClick: function onClick() {
16645
+ return handleReSync(action);
16646
+ }
16647
+ }, action.label);
16648
+ })) : '暂无数据'
16649
+ });
16650
+ };
16651
+
16652
+ var transformFormData = function transformFormData(formData) {
16653
+ var conditionList = [];
16654
+ for (var key in formData) {
16655
+ if (formData[key]) {
16656
+ var _formData$key, _formData$key2, _formData$key3, _formData$key4;
16657
+ var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
16658
+ var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : Array.isArray(value) ? 'eq' : 'like';
16659
+ if (!isNull(value)) {
16660
+ conditionList.push({
16661
+ leftValue: key,
16662
+ compareSymbol: compareSymbol,
16663
+ rightValue: value
16664
+ });
16665
+ }
16666
+ }
16667
+ }
16668
+ return conditionList;
16669
+ };
16670
+ var shouldSubmitOnBlur = function shouldSubmitOnBlur(relatedTarget) {
16671
+ var _target$closest;
16672
+ var target = relatedTarget;
16673
+ return !(target === null || target === void 0 ? void 0 : (_target$closest = target.closest) === null || _target$closest === void 0 ? void 0 : _target$closest.call(target, '.search-form-actions'));
16674
+ };
16675
+
16108
16676
  var compareSymbolList = [{
16109
16677
  label: '模糊',
16110
16678
  value: 'like'
@@ -16119,11 +16687,13 @@ var OptionalInput = function OptionalInput(props) {
16119
16687
  placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
16120
16688
  onPressEnter = props.onPressEnter,
16121
16689
  onBlur = props.onBlur,
16122
- formItemProps = props.formItemProps;
16690
+ formItemProps = props.formItemProps,
16691
+ _props$defaultCompare = props.defaultCompareSymbol,
16692
+ defaultCompareSymbol = _props$defaultCompare === void 0 ? 'like' : _props$defaultCompare;
16123
16693
  var handleSelectChange = function handleSelectChange(compareSymbol) {
16124
16694
  if (typeof onChange === 'function') {
16125
16695
  onChange({
16126
- type: compareSymbol || 'like',
16696
+ type: compareSymbol || defaultCompareSymbol,
16127
16697
  inputValue: value === null || value === void 0 ? void 0 : value.inputValue
16128
16698
  });
16129
16699
  }
@@ -16131,16 +16701,22 @@ var OptionalInput = function OptionalInput(props) {
16131
16701
  var handleInputChange = function handleInputChange(e) {
16132
16702
  if (typeof onChange === 'function') {
16133
16703
  onChange({
16134
- type: (value === null || value === void 0 ? void 0 : value.type) || 'like',
16704
+ type: (value === null || value === void 0 ? void 0 : value.type) || defaultCompareSymbol,
16135
16705
  inputValue: e.target.value
16136
16706
  });
16137
16707
  }
16138
16708
  };
16709
+ var handleBlur = function handleBlur(event) {
16710
+ var nextTarget = event.relatedTarget;
16711
+ if (nextTarget && event.currentTarget.contains(nextTarget)) return;
16712
+ if (typeof onBlur === 'function') onBlur(event);
16713
+ };
16139
16714
  return /*#__PURE__*/React.createElement("div", {
16140
16715
  style: {
16141
16716
  display: 'flex',
16142
16717
  alignItems: 'center'
16143
- }
16718
+ },
16719
+ onBlur: handleBlur
16144
16720
  }, /*#__PURE__*/React.createElement(Select, {
16145
16721
  className: "optional-input-select",
16146
16722
  style: {
@@ -16148,8 +16724,7 @@ var OptionalInput = function OptionalInput(props) {
16148
16724
  },
16149
16725
  options: compareSymbolList,
16150
16726
  onChange: handleSelectChange,
16151
- value: (value === null || value === void 0 ? void 0 : value.type) || 'like',
16152
- onBlur: onBlur
16727
+ value: (value === null || value === void 0 ? void 0 : value.type) || defaultCompareSymbol
16153
16728
  }), /*#__PURE__*/React.createElement(Input, _objectSpread2({
16154
16729
  style: {
16155
16730
  width: '150px'
@@ -16158,7 +16733,6 @@ var OptionalInput = function OptionalInput(props) {
16158
16733
  placeholder: placeholder,
16159
16734
  onChange: handleInputChange,
16160
16735
  onPressEnter: onPressEnter,
16161
- onBlur: onBlur,
16162
16736
  value: value === null || value === void 0 ? void 0 : value.inputValue
16163
16737
  }, formItemProps)));
16164
16738
  };
@@ -16168,11 +16742,16 @@ function SearchForm(_ref) {
16168
16742
  form = _ref.form,
16169
16743
  showColumnsDataIndexList = _ref.showColumnsDataIndexList,
16170
16744
  submit = _ref.submit,
16171
- reset = _ref.reset;
16745
+ reset = _ref.reset,
16746
+ _ref$optionalInputDef = _ref.optionalInputDefaultCompareSymbol,
16747
+ optionalInputDefaultCompareSymbol = _ref$optionalInputDef === void 0 ? 'like' : _ref$optionalInputDef;
16172
16748
  var _useState = useState({}),
16173
16749
  _useState2 = _slicedToArray(_useState, 2),
16174
16750
  searchData = _useState2[0],
16175
16751
  setSearchData = _useState2[1];
16752
+ var visibleFieldNames = (showColumnsDataIndexList === null || showColumnsDataIndexList === void 0 ? void 0 : showColumnsDataIndexList.length) ? showColumnsDataIndexList : searchFormData.map(function (item) {
16753
+ return item.dataIndex || item.name;
16754
+ });
16176
16755
  var submitForm = /*#__PURE__*/function () {
16177
16756
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(submitBtnClickFlag) {
16178
16757
  var values;
@@ -16197,6 +16776,10 @@ function SearchForm(_ref) {
16197
16776
  return _ref2.apply(this, arguments);
16198
16777
  };
16199
16778
  }();
16779
+ var submitFormOnBlur = function submitFormOnBlur(event) {
16780
+ if (!shouldSubmitOnBlur(event.relatedTarget)) return;
16781
+ submitForm();
16782
+ };
16200
16783
  return /*#__PURE__*/React.createElement(Form, {
16201
16784
  layout: "inline",
16202
16785
  form: form,
@@ -16208,7 +16791,7 @@ function SearchForm(_ref) {
16208
16791
  type = item.type,
16209
16792
  _item$formItemProps = item.formItemProps,
16210
16793
  formItemProps = _item$formItemProps === void 0 ? {} : _item$formItemProps;
16211
- if (!showColumnsDataIndexList.includes(dataIndex || name)) return;
16794
+ if (!visibleFieldNames.includes(dataIndex || name)) return;
16212
16795
  return /*#__PURE__*/React.createElement(Form.Item, {
16213
16796
  name: name,
16214
16797
  style: {
@@ -16218,11 +16801,10 @@ function SearchForm(_ref) {
16218
16801
  onPressEnter: function onPressEnter() {
16219
16802
  return submitForm();
16220
16803
  },
16221
- onBlur: function onBlur() {
16222
- return submitForm();
16223
- },
16804
+ onBlur: submitFormOnBlur,
16224
16805
  placeholder: label,
16225
- formItemProps: formItemProps
16806
+ formItemProps: formItemProps,
16807
+ defaultCompareSymbol: optionalInputDefaultCompareSymbol
16226
16808
  }) : type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
16227
16809
  placeholder: label,
16228
16810
  showSearch: true,
@@ -16230,9 +16812,7 @@ function SearchForm(_ref) {
16230
16812
  style: {
16231
16813
  width: 150
16232
16814
  },
16233
- onBlur: function onBlur() {
16234
- return submitForm();
16235
- }
16815
+ onBlur: submitFormOnBlur
16236
16816
  }, formItemProps)) : /*#__PURE__*/React.createElement(Input, _objectSpread2({
16237
16817
  placeholder: label,
16238
16818
  allowClear: true,
@@ -16242,9 +16822,7 @@ function SearchForm(_ref) {
16242
16822
  onPressEnter: function onPressEnter() {
16243
16823
  return submitForm();
16244
16824
  },
16245
- onBlur: function onBlur() {
16246
- return submitForm();
16247
- }
16825
+ onBlur: submitFormOnBlur
16248
16826
  }, formItemProps)));
16249
16827
  }), /*#__PURE__*/React.createElement(Form.Item, {
16250
16828
  style: {
@@ -16264,21 +16842,391 @@ function SearchForm(_ref) {
16264
16842
  }, "\u91CD\u7F6E")));
16265
16843
  }
16266
16844
 
16267
- var transformFormData = function transformFormData(formData) {
16268
- var conditionList = [];
16269
- for (var key in formData) {
16270
- if (formData[key]) {
16271
- var _formData$key, _formData$key2, _formData$key3, _formData$key4;
16272
- var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
16273
- var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : Array.isArray(value) ? 'eq' : 'like';
16274
- conditionList.push({
16275
- leftValue: key,
16276
- compareSymbol: compareSymbol,
16277
- rightValue: value
16278
- });
16845
+ /**
16846
+ * Builds the search fields used by the WDT goods selector.
16847
+ * Brand options are supplied by the caller because they are loaded at runtime.
16848
+ */
16849
+ var createWdtSearchFormData = function createWdtSearchFormData() {
16850
+ var brandOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
16851
+ return [{
16852
+ label: 'SKU名称',
16853
+ name: 'skuName',
16854
+ dataIndex: 'specName'
16855
+ }, {
16856
+ label: 'SKU编码',
16857
+ name: 'skuCode',
16858
+ dataIndex: 'specNo',
16859
+ type: 'optionalInput'
16860
+ }, {
16861
+ label: '商品名称',
16862
+ name: 'goodName'
16863
+ }, {
16864
+ label: '商品编码',
16865
+ name: 'goodNo',
16866
+ type: 'optionalInput'
16867
+ }, {
16868
+ label: '品牌',
16869
+ name: 'brandIds',
16870
+ dataIndex: 'brandName',
16871
+ type: 'select',
16872
+ formItemProps: {
16873
+ mode: 'multiple',
16874
+ filterOption: function filterOption(input, option) {
16875
+ return option.label.includes(input);
16876
+ },
16877
+ options: brandOptions
16878
+ }
16879
+ }, {
16880
+ label: '是否组合装',
16881
+ name: 'skuType',
16882
+ dataIndex: 'skuType',
16883
+ type: 'select',
16884
+ formItemProps: {
16885
+ mode: 'multiple',
16886
+ filterOption: function filterOption(input, option) {
16887
+ return option.label.includes(input);
16888
+ },
16889
+ options: [{
16890
+ label: '组合装',
16891
+ value: 'suite'
16892
+ }, {
16893
+ label: '非组合装',
16894
+ value: ''
16895
+ }]
16896
+ }
16897
+ }];
16898
+ };
16899
+ var createBsE3SearchFormData = function createBsE3SearchFormData() {
16900
+ return [{
16901
+ label: '商品货号',
16902
+ name: 'goodNo',
16903
+ type: 'optionalInput'
16904
+ }, {
16905
+ label: '商品名称',
16906
+ name: 'goodName'
16907
+ }, {
16908
+ label: 'SKU',
16909
+ name: 'skuCode',
16910
+ dataIndex: 'specNo',
16911
+ type: 'optionalInput'
16912
+ }, {
16913
+ label: 'SKU ID',
16914
+ name: 'skuId',
16915
+ dataIndex: 'specId',
16916
+ type: 'optionalInput'
16917
+ }];
16918
+ };
16919
+ var createGySearchFormData = function createGySearchFormData() {
16920
+ return [{
16921
+ label: '商品简称',
16922
+ name: 'goodShortName'
16923
+ }, {
16924
+ label: '商品sku名称',
16925
+ name: 'skuName',
16926
+ dataIndex: 'specName'
16927
+ }, {
16928
+ label: '商品sku编码',
16929
+ name: 'skuCode',
16930
+ dataIndex: 'specNo',
16931
+ type: 'optionalInput'
16932
+ }, {
16933
+ label: '商品名称',
16934
+ name: 'goodName'
16935
+ }, {
16936
+ label: '商品编码',
16937
+ name: 'goodNo',
16938
+ type: 'optionalInput'
16939
+ }];
16940
+ };
16941
+ var createJstSearchFormData = function createJstSearchFormData() {
16942
+ return [{
16943
+ label: '商品名称',
16944
+ name: 'goodName'
16945
+ }, {
16946
+ label: '商品编码',
16947
+ name: 'goodNo',
16948
+ type: 'optionalInput'
16949
+ }, {
16950
+ label: '款式编码',
16951
+ name: 'styleCode',
16952
+ type: 'optionalInput'
16953
+ }, {
16954
+ label: '规格值',
16955
+ name: 'propertiesValue',
16956
+ type: 'optionalInput'
16957
+ }, {
16958
+ label: '商品类型',
16959
+ name: 'skuType',
16960
+ type: 'select',
16961
+ formItemProps: {
16962
+ options: [{
16963
+ label: '普通商品',
16964
+ value: 'normal'
16965
+ }, {
16966
+ label: '组合装商品',
16967
+ value: 'combine'
16968
+ }]
16969
+ }
16970
+ }];
16971
+ };
16972
+ var createKmSearchFormData = function createKmSearchFormData() {
16973
+ return [{
16974
+ label: '商品名称',
16975
+ name: 'goodName'
16976
+ }, {
16977
+ label: '商品编码',
16978
+ name: 'goodNo',
16979
+ type: 'optionalInput'
16980
+ }, {
16981
+ label: 'SKU名称',
16982
+ name: 'skuName',
16983
+ dataIndex: 'specName'
16984
+ }, {
16985
+ label: 'SKU编码',
16986
+ name: 'skuCode',
16987
+ dataIndex: 'specNo',
16988
+ type: 'optionalInput'
16989
+ }];
16990
+ };
16991
+ var createJySearchFormData = function createJySearchFormData() {
16992
+ return [{
16993
+ label: '规格名称',
16994
+ name: 'skuName',
16995
+ dataIndex: 'specName'
16996
+ }, {
16997
+ label: '规格编码',
16998
+ name: 'skuCode',
16999
+ dataIndex: 'specNo',
17000
+ type: 'optionalInput'
17001
+ }, {
17002
+ label: '商品名称',
17003
+ name: 'goodName'
17004
+ }, {
17005
+ label: '商品编码',
17006
+ name: 'goodNo',
17007
+ type: 'optionalInput'
17008
+ }];
17009
+ };
17010
+ var createWlnSearchFormData = function createWlnSearchFormData() {
17011
+ return [{
17012
+ label: '规格值',
17013
+ name: 'propertiesValue'
17014
+ }, {
17015
+ label: 'SKU编码',
17016
+ name: 'specNo',
17017
+ type: 'optionalInput'
17018
+ }, {
17019
+ label: '商品名称',
17020
+ name: 'goodName'
17021
+ }, {
17022
+ label: '商品编码',
17023
+ name: 'goodNo',
17024
+ type: 'optionalInput'
17025
+ }, {
17026
+ label: '是否组合装',
17027
+ name: 'skuType',
17028
+ type: 'select',
17029
+ formItemProps: {
17030
+ mode: 'multiple',
17031
+ filterOption: function filterOption(input, option) {
17032
+ return option.label.includes(input);
17033
+ },
17034
+ options: [{
17035
+ label: '普通商品',
17036
+ value: 'normal'
17037
+ }, {
17038
+ label: '组合装商品',
17039
+ value: 'combine'
17040
+ }]
16279
17041
  }
17042
+ }];
17043
+ };
17044
+ var createJkySearchFormData = function createJkySearchFormData() {
17045
+ return [{
17046
+ label: '规格名称',
17047
+ name: 'skuName',
17048
+ dataIndex: 'specName'
17049
+ }, {
17050
+ label: '规格编码',
17051
+ name: 'skuCode',
17052
+ dataIndex: 'specNo',
17053
+ type: 'optionalInput'
17054
+ }, {
17055
+ label: '货品名称',
17056
+ name: 'goodName'
17057
+ }, {
17058
+ label: '货品编码',
17059
+ name: 'goodNo',
17060
+ type: 'optionalInput'
17061
+ }];
17062
+ };
17063
+
17064
+ var WDT_BRAND_PAGE_SIZE = 100;
17065
+ var loadWdtBrandOptions = /*#__PURE__*/function () {
17066
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
17067
+ var options, pageNo, hasNextPage, _response$data, response, detailList;
17068
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
17069
+ while (1) switch (_context.prev = _context.next) {
17070
+ case 0:
17071
+ options = [];
17072
+ pageNo = 0;
17073
+ hasNextPage = true;
17074
+ case 3:
17075
+ if (!hasNextPage) {
17076
+ _context.next = 15;
17077
+ break;
17078
+ }
17079
+ _context.next = 6;
17080
+ return extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
17081
+ method: 'post',
17082
+ data: {
17083
+ pageSize: WDT_BRAND_PAGE_SIZE,
17084
+ pageNo: pageNo
17085
+ }
17086
+ });
17087
+ case 6:
17088
+ response = _context.sent;
17089
+ if (!((response === null || response === void 0 ? void 0 : response.success) !== true)) {
17090
+ _context.next = 9;
17091
+ break;
17092
+ }
17093
+ throw new Error('Failed to load WDT brand options');
17094
+ case 9:
17095
+ detailList = (response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.detailList) || [];
17096
+ options.push.apply(options, _toConsumableArray(detailList.filter(function (item) {
17097
+ return !item.isDisabled;
17098
+ }).map(function (item) {
17099
+ return {
17100
+ value: item.brandId,
17101
+ label: item.brandName
17102
+ };
17103
+ })));
17104
+ hasNextPage = detailList.length >= WDT_BRAND_PAGE_SIZE;
17105
+ pageNo += 1;
17106
+ _context.next = 3;
17107
+ break;
17108
+ case 15:
17109
+ return _context.abrupt("return", {
17110
+ brandIds: options
17111
+ });
17112
+ case 16:
17113
+ case "end":
17114
+ return _context.stop();
17115
+ }
17116
+ }, _callee);
17117
+ }));
17118
+ return function loadWdtBrandOptions() {
17119
+ return _ref.apply(this, arguments);
17120
+ };
17121
+ }();
17122
+
17123
+ var GOODS_SEARCH_FORM_CONFIG = {
17124
+ wdt: {
17125
+ createSearchFormData: function createSearchFormData(options) {
17126
+ return createWdtSearchFormData(options.brandIds || []);
17127
+ },
17128
+ loadOptions: [loadWdtBrandOptions]
17129
+ },
17130
+ bse3: {
17131
+ createSearchFormData: function createSearchFormData() {
17132
+ return createBsE3SearchFormData();
17133
+ },
17134
+ loadOptions: []
17135
+ },
17136
+ gy: {
17137
+ createSearchFormData: function createSearchFormData() {
17138
+ return createGySearchFormData();
17139
+ },
17140
+ loadOptions: []
17141
+ },
17142
+ jst: {
17143
+ createSearchFormData: function createSearchFormData() {
17144
+ return createJstSearchFormData();
17145
+ },
17146
+ loadOptions: []
17147
+ },
17148
+ km: {
17149
+ createSearchFormData: function createSearchFormData() {
17150
+ return createKmSearchFormData();
17151
+ },
17152
+ loadOptions: []
17153
+ },
17154
+ jy: {
17155
+ createSearchFormData: function createSearchFormData() {
17156
+ return createJySearchFormData();
17157
+ },
17158
+ loadOptions: []
17159
+ },
17160
+ wln: {
17161
+ createSearchFormData: function createSearchFormData() {
17162
+ return createWlnSearchFormData();
17163
+ },
17164
+ loadOptions: []
17165
+ },
17166
+ jky: {
17167
+ createSearchFormData: function createSearchFormData() {
17168
+ return createJkySearchFormData();
17169
+ },
17170
+ loadOptions: []
16280
17171
  }
16281
- return conditionList;
17172
+ };
17173
+
17174
+ var _excluded$e = ["type", "searchFormData", "loadOptions"];
17175
+ var EMPTY_LOADERS = [];
17176
+ var mergeOptionMaps = function mergeOptionMaps(optionMaps) {
17177
+ return optionMaps.reduce(function (merged, optionMap) {
17178
+ return _objectSpread2(_objectSpread2({}, merged), optionMap);
17179
+ }, {});
17180
+ };
17181
+ var GoodsSearchForm = function GoodsSearchForm(_ref) {
17182
+ var type = _ref.type,
17183
+ customSearchFormData = _ref.searchFormData,
17184
+ _ref$loadOptions = _ref.loadOptions,
17185
+ loadOptions = _ref$loadOptions === void 0 ? EMPTY_LOADERS : _ref$loadOptions,
17186
+ searchFormProps = _objectWithoutProperties(_ref, _excluded$e);
17187
+ var config = GOODS_SEARCH_FORM_CONFIG[type];
17188
+ var _useState = useState({}),
17189
+ _useState2 = _slicedToArray(_useState, 2),
17190
+ optionMap = _useState2[0],
17191
+ setOptionMap = _useState2[1];
17192
+ var loaders = useMemo(function () {
17193
+ return loadOptions === EMPTY_LOADERS ? config.loadOptions : loadOptions;
17194
+ }, [config, loadOptions]);
17195
+ useEffect(function () {
17196
+ var disposed = false;
17197
+ if (!loaders.length) return undefined;
17198
+ setOptionMap({});
17199
+ Promise.allSettled(loaders.map(function (loader) {
17200
+ return loader();
17201
+ })).then(function (results) {
17202
+ if (disposed) return;
17203
+ setOptionMap(mergeOptionMaps(results.filter(function (result) {
17204
+ return result.status === 'fulfilled';
17205
+ }).map(function (result) {
17206
+ return result.value;
17207
+ })));
17208
+ });
17209
+ return function () {
17210
+ disposed = true;
17211
+ };
17212
+ }, [loaders]);
17213
+ var applyOptions = function applyOptions(data) {
17214
+ return data.map(function (item) {
17215
+ var options = optionMap[item.name];
17216
+ if (!options) return item;
17217
+ return _objectSpread2(_objectSpread2({}, item), {}, {
17218
+ formItemProps: _objectSpread2(_objectSpread2({}, item.formItemProps || {}), {}, {
17219
+ options: options
17220
+ })
17221
+ });
17222
+ });
17223
+ };
17224
+ var searchFormData = useMemo(function () {
17225
+ return applyOptions(customSearchFormData || config.createSearchFormData(optionMap));
17226
+ }, [config, customSearchFormData, optionMap]);
17227
+ return /*#__PURE__*/React.createElement(SearchForm, _objectSpread2(_objectSpread2({}, searchFormProps), {}, {
17228
+ searchFormData: searchFormData
17229
+ }));
16282
17230
  };
16283
17231
 
16284
17232
  var getTableData = function getTableData(_ref, formData) {
@@ -16319,10 +17267,6 @@ var GoodList = function GoodList(props, ref) {
16319
17267
  _useState4 = _slicedToArray(_useState3, 2),
16320
17268
  selectIds = _useState4[0],
16321
17269
  setSelectIds = _useState4[1];
16322
- var _useState5 = useState([]),
16323
- _useState6 = _slicedToArray(_useState5, 2),
16324
- brandList = _useState6[0],
16325
- setBrandList = _useState6[1];
16326
17270
  var _useGetColumns = useGetColumns('wdt'),
16327
17271
  _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
16328
17272
  columns = _useGetColumns2[0],
@@ -16338,103 +17282,18 @@ var GoodList = function GoodList(props, ref) {
16338
17282
  var _Form$useForm = Form.useForm(),
16339
17283
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
16340
17284
  form = _Form$useForm2[0];
16341
- var _useAntdTable = useAntdTable(getTableData, {
17285
+ var _useGoodsReSyncQuery = useGoodsReSyncQuery(getTableData),
17286
+ _useGoodsReSyncQuery2 = _slicedToArray(_useGoodsReSyncQuery, 2),
17287
+ getTableDataWithReSync = _useGoodsReSyncQuery2[0],
17288
+ reSyncQueryState = _useGoodsReSyncQuery2[1];
17289
+ var _useAntdTable = useAntdTable(getTableDataWithReSync, {
16342
17290
  defaultPageSize: 10,
16343
17291
  form: form
16344
17292
  }),
16345
17293
  tableProps = _useAntdTable.tableProps,
16346
- search = _useAntdTable.search,
16347
- params = _useAntdTable.params;
17294
+ search = _useAntdTable.search;
16348
17295
  var submit = search.submit,
16349
17296
  reset = search.reset;
16350
- var setGoodBrandList = function setGoodBrandList() {
16351
- var list = [];
16352
- var pageNo = 0;
16353
- var pageSize = 100;
16354
- var getMore = function getMore() {
16355
- extendRequest('/qy/gdfw/wdt/erp/goodBrand/list', {
16356
- method: 'post',
16357
- data: {
16358
- pageSize: pageSize,
16359
- pageNo: pageNo
16360
- }
16361
- }).then(function (res) {
16362
- var _res$data2;
16363
- if (res.success && (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.detailList)) {
16364
- var _res$data3, _res$data4;
16365
- list.push.apply(list, _toConsumableArray((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.detailList) || []));
16366
- if ((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.detailList.length) === pageSize) {
16367
- pageNo += 1;
16368
- getMore();
16369
- } else {
16370
- setBrandList(list);
16371
- }
16372
- } else {
16373
- reject$1(res);
16374
- }
16375
- }).catch(console.error);
16376
- };
16377
- getMore();
16378
- };
16379
- React.useEffect(function () {
16380
- setGoodBrandList();
16381
- }, []);
16382
- var searchFormData = [{
16383
- label: 'SKU名称',
16384
- name: 'skuName',
16385
- dataIndex: 'specName'
16386
- }, {
16387
- label: 'SKU编码',
16388
- name: 'skuCode',
16389
- dataIndex: 'specNo',
16390
- type: 'optionalInput'
16391
- }, {
16392
- label: '商品名称',
16393
- name: 'goodName'
16394
- }, {
16395
- label: '商品编码',
16396
- name: 'goodNo',
16397
- type: 'optionalInput'
16398
- }, {
16399
- label: '品牌',
16400
- name: 'brandIds',
16401
- dataIndex: 'brandName',
16402
- type: 'select',
16403
- formItemProps: {
16404
- mode: 'multiple',
16405
- filterOption: function filterOption(input, option) {
16406
- return option.label.includes(input);
16407
- },
16408
- options: brandList.filter(function (item) {
16409
- return !item.isDisabled;
16410
- }).map(function (_ref2) {
16411
- var value = _ref2.brandId,
16412
- label = _ref2.brandName;
16413
- return {
16414
- value: value,
16415
- label: label
16416
- };
16417
- })
16418
- }
16419
- }, {
16420
- label: '是否组合装',
16421
- name: 'skuType',
16422
- dataIndex: 'skuType',
16423
- type: 'select',
16424
- formItemProps: {
16425
- mode: 'multiple',
16426
- filterOption: function filterOption(input, option) {
16427
- return option.label.includes(input);
16428
- },
16429
- options: [{
16430
- label: '组合装',
16431
- value: 'suite'
16432
- }, {
16433
- label: '非组合装',
16434
- value: ''
16435
- }]
16436
- }
16437
- }];
16438
17297
  var rowSelection = {
16439
17298
  selectedRowKeys: selectIds,
16440
17299
  fixed: true,
@@ -16521,8 +17380,8 @@ var GoodList = function GoodList(props, ref) {
16521
17380
  return /*#__PURE__*/React.createElement(Skeleton, {
16522
17381
  active: true,
16523
17382
  loading: loading
16524
- }, /*#__PURE__*/React.createElement(SearchForm, {
16525
- searchFormData: searchFormData,
17383
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
17384
+ type: "wdt",
16526
17385
  form: form,
16527
17386
  showColumnsDataIndexList: showColumnsDataIndexList,
16528
17387
  submit: submit,
@@ -16543,6 +17402,13 @@ var GoodList = function GoodList(props, ref) {
16543
17402
  y: 250
16544
17403
  }
16545
17404
  }, tableProps), {}, {
17405
+ locale: {
17406
+ emptyText: /*#__PURE__*/React.createElement(GoodsReSync, {
17407
+ platform: "WDT_ERP",
17408
+ queryState: reSyncQueryState,
17409
+ onSuccess: submit
17410
+ })
17411
+ },
16546
17412
  size: "small"
16547
17413
  }))), /*#__PURE__*/React.createElement(Popover, {
16548
17414
  getPopupContainer: function getPopupContainer(triggerNode) {
@@ -16634,35 +17500,6 @@ var getTableData$1 = function getTableData(_ref, formData) {
16634
17500
  };
16635
17501
  });
16636
17502
  };
16637
- var searchFormData = [{
16638
- label: '商品名称',
16639
- name: 'goodName'
16640
- }, {
16641
- label: '商品编码',
16642
- name: 'goodNo',
16643
- type: 'optionalInput'
16644
- }, {
16645
- label: '款式编码',
16646
- name: 'styleCode',
16647
- type: 'optionalInput'
16648
- }, {
16649
- label: '规格值',
16650
- name: 'propertiesValue',
16651
- type: 'optionalInput'
16652
- }, {
16653
- label: '商品类型',
16654
- name: 'skuType',
16655
- type: 'select',
16656
- formItemProps: {
16657
- options: [{
16658
- label: '普通商品',
16659
- value: 'normal'
16660
- }, {
16661
- label: '组合装商品',
16662
- value: 'combine'
16663
- }]
16664
- }
16665
- }];
16666
17503
  var GoodList$1 = function GoodList(props, ref) {
16667
17504
  var _useState = useState([]),
16668
17505
  _useState2 = _slicedToArray(_useState, 2),
@@ -16687,13 +17524,16 @@ var GoodList$1 = function GoodList(props, ref) {
16687
17524
  var _Form$useForm = Form.useForm(),
16688
17525
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
16689
17526
  form = _Form$useForm2[0];
16690
- var _useAntdTable = useAntdTable(getTableData$1, {
17527
+ var _useGoodsReSyncQuery = useGoodsReSyncQuery(getTableData$1),
17528
+ _useGoodsReSyncQuery2 = _slicedToArray(_useGoodsReSyncQuery, 2),
17529
+ getTableDataWithReSync = _useGoodsReSyncQuery2[0],
17530
+ reSyncQueryState = _useGoodsReSyncQuery2[1];
17531
+ var _useAntdTable = useAntdTable(getTableDataWithReSync, {
16691
17532
  defaultPageSize: 10,
16692
17533
  form: form
16693
17534
  }),
16694
17535
  tableProps = _useAntdTable.tableProps,
16695
- search = _useAntdTable.search,
16696
- params = _useAntdTable.params;
17536
+ search = _useAntdTable.search;
16697
17537
  var submit = search.submit,
16698
17538
  reset = search.reset;
16699
17539
  var rowSelection = {
@@ -16785,8 +17625,8 @@ var GoodList$1 = function GoodList(props, ref) {
16785
17625
  return /*#__PURE__*/React.createElement(Skeleton, {
16786
17626
  active: true,
16787
17627
  loading: loading
16788
- }, /*#__PURE__*/React.createElement(SearchForm, {
16789
- searchFormData: searchFormData,
17628
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
17629
+ type: "jst",
16790
17630
  form: form,
16791
17631
  showColumnsDataIndexList: showColumnsDataIndexList,
16792
17632
  submit: submit,
@@ -16795,7 +17635,7 @@ var GoodList$1 = function GoodList(props, ref) {
16795
17635
  style: {
16796
17636
  marginTop: '4px'
16797
17637
  }
16798
- }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
17638
+ }, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
16799
17639
  className: "GoodModalColumns",
16800
17640
  rowSelection: rowSelection,
16801
17641
  rowKey: "goodNo",
@@ -16805,7 +17645,15 @@ var GoodList$1 = function GoodList(props, ref) {
16805
17645
  y: 250
16806
17646
  },
16807
17647
  size: "small"
16808
- }, tableProps))), /*#__PURE__*/React.createElement(Popover, {
17648
+ }, tableProps), {}, {
17649
+ locale: {
17650
+ emptyText: /*#__PURE__*/React.createElement(GoodsReSync, {
17651
+ platform: "JST_ERP",
17652
+ queryState: reSyncQueryState,
17653
+ onSuccess: submit
17654
+ })
17655
+ }
17656
+ }))), /*#__PURE__*/React.createElement(Popover, {
16809
17657
  getPopupContainer: function getPopupContainer(triggerNode) {
16810
17658
  return triggerNode.parentElement;
16811
17659
  },
@@ -16895,24 +17743,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
16895
17743
  };
16896
17744
  });
16897
17745
  };
16898
- var searchFormData$1 = [{
16899
- label: '商品货号',
16900
- name: 'goodNo',
16901
- type: 'optionalInput'
16902
- }, {
16903
- label: '商品名称',
16904
- name: 'goodName'
16905
- }, {
16906
- label: 'SKU',
16907
- name: 'skuCode',
16908
- dataIndex: 'specNo',
16909
- type: 'optionalInput'
16910
- }, {
16911
- label: 'SKU ID',
16912
- name: 'skuId',
16913
- dataIndex: 'specId',
16914
- type: 'optionalInput'
16915
- }];
16916
17746
  var GoodList$2 = function GoodList(props, ref) {
16917
17747
  var _useState = useState([]),
16918
17748
  _useState2 = _slicedToArray(_useState, 2),
@@ -17026,8 +17856,8 @@ var GoodList$2 = function GoodList(props, ref) {
17026
17856
  return /*#__PURE__*/React.createElement(Skeleton, {
17027
17857
  active: true,
17028
17858
  loading: loading
17029
- }, /*#__PURE__*/React.createElement(SearchForm, {
17030
- searchFormData: searchFormData$1,
17859
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
17860
+ type: "bse3",
17031
17861
  form: form,
17032
17862
  showColumnsDataIndexList: showColumnsDataIndexList,
17033
17863
  submit: submit,
@@ -17137,23 +17967,6 @@ var getTableData$3 = function getTableData(_ref, formData) {
17137
17967
  };
17138
17968
  });
17139
17969
  };
17140
- var searchFormData$2 = [{
17141
- label: '商品名称',
17142
- name: 'goodName'
17143
- }, {
17144
- label: '商品编码',
17145
- name: 'goodNo',
17146
- type: 'optionalInput'
17147
- }, {
17148
- label: 'SKU名称',
17149
- name: 'skuName',
17150
- dataIndex: 'specName'
17151
- }, {
17152
- label: 'SKU编码',
17153
- name: 'skuCode',
17154
- dataIndex: 'specNo',
17155
- type: 'optionalInput'
17156
- }];
17157
17970
  var GoodList$3 = function GoodList(props, ref) {
17158
17971
  var _useState = useState([]),
17159
17972
  _useState2 = _slicedToArray(_useState, 2),
@@ -17178,13 +17991,16 @@ var GoodList$3 = function GoodList(props, ref) {
17178
17991
  var _Form$useForm = Form.useForm(),
17179
17992
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
17180
17993
  form = _Form$useForm2[0];
17181
- var _useAntdTable = useAntdTable(getTableData$3, {
17994
+ var _useGoodsReSyncQuery = useGoodsReSyncQuery(getTableData$3),
17995
+ _useGoodsReSyncQuery2 = _slicedToArray(_useGoodsReSyncQuery, 2),
17996
+ getTableDataWithReSync = _useGoodsReSyncQuery2[0],
17997
+ reSyncQueryState = _useGoodsReSyncQuery2[1];
17998
+ var _useAntdTable = useAntdTable(getTableDataWithReSync, {
17182
17999
  defaultPageSize: 10,
17183
18000
  form: form
17184
18001
  }),
17185
18002
  tableProps = _useAntdTable.tableProps,
17186
- search = _useAntdTable.search,
17187
- params = _useAntdTable.params;
18003
+ search = _useAntdTable.search;
17188
18004
  var submit = search.submit,
17189
18005
  reset = search.reset;
17190
18006
  var rowSelection = {
@@ -17276,8 +18092,8 @@ var GoodList$3 = function GoodList(props, ref) {
17276
18092
  return /*#__PURE__*/React.createElement(Skeleton, {
17277
18093
  active: true,
17278
18094
  loading: loading
17279
- }, /*#__PURE__*/React.createElement(SearchForm, {
17280
- searchFormData: searchFormData$2,
18095
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
18096
+ type: "km",
17281
18097
  form: form,
17282
18098
  showColumnsDataIndexList: showColumnsDataIndexList,
17283
18099
  submit: submit,
@@ -17286,7 +18102,7 @@ var GoodList$3 = function GoodList(props, ref) {
17286
18102
  style: {
17287
18103
  marginTop: '4px'
17288
18104
  }
17289
- }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
18105
+ }, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
17290
18106
  className: "GoodModalColumns",
17291
18107
  rowSelection: rowSelection,
17292
18108
  rowKey: rowCheckKey,
@@ -17296,7 +18112,15 @@ var GoodList$3 = function GoodList(props, ref) {
17296
18112
  y: 250
17297
18113
  },
17298
18114
  size: "small"
17299
- }, tableProps))), /*#__PURE__*/React.createElement(Popover, {
18115
+ }, tableProps), {}, {
18116
+ locale: {
18117
+ emptyText: /*#__PURE__*/React.createElement(GoodsReSync, {
18118
+ platform: "KM_ERP",
18119
+ queryState: reSyncQueryState,
18120
+ onSuccess: submit
18121
+ })
18122
+ }
18123
+ }))), /*#__PURE__*/React.createElement(Popover, {
17300
18124
  getPopupContainer: function getPopupContainer(triggerNode) {
17301
18125
  return triggerNode.parentElement;
17302
18126
  },
@@ -17384,26 +18208,6 @@ var getTableData$4 = function getTableData(_ref, formData) {
17384
18208
  };
17385
18209
  });
17386
18210
  };
17387
- var searchFormData$3 = [{
17388
- label: '商品简称',
17389
- name: 'goodShortName'
17390
- }, {
17391
- label: '商品sku名称',
17392
- name: 'skuName',
17393
- dataIndex: 'specName'
17394
- }, {
17395
- label: '商品sku编码',
17396
- name: 'skuCode',
17397
- dataIndex: 'specNo',
17398
- type: 'optionalInput'
17399
- }, {
17400
- label: '商品名称',
17401
- name: 'goodName'
17402
- }, {
17403
- label: '商品编码',
17404
- name: 'goodNo',
17405
- type: 'optionalInput'
17406
- }];
17407
18211
  var GoodList$4 = function GoodList(props, ref) {
17408
18212
  var _useState = useState([]),
17409
18213
  _useState2 = _slicedToArray(_useState, 2),
@@ -17428,13 +18232,16 @@ var GoodList$4 = function GoodList(props, ref) {
17428
18232
  var _Form$useForm = Form.useForm(),
17429
18233
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
17430
18234
  form = _Form$useForm2[0];
17431
- var _useAntdTable = useAntdTable(getTableData$4, {
18235
+ var _useGoodsReSyncQuery = useGoodsReSyncQuery(getTableData$4),
18236
+ _useGoodsReSyncQuery2 = _slicedToArray(_useGoodsReSyncQuery, 2),
18237
+ getTableDataWithReSync = _useGoodsReSyncQuery2[0],
18238
+ reSyncQueryState = _useGoodsReSyncQuery2[1];
18239
+ var _useAntdTable = useAntdTable(getTableDataWithReSync, {
17432
18240
  defaultPageSize: 10,
17433
18241
  form: form
17434
18242
  }),
17435
18243
  tableProps = _useAntdTable.tableProps,
17436
- search = _useAntdTable.search,
17437
- params = _useAntdTable.params;
18244
+ search = _useAntdTable.search;
17438
18245
  var submit = search.submit,
17439
18246
  reset = search.reset;
17440
18247
  var rowSelection = {
@@ -17517,8 +18324,8 @@ var GoodList$4 = function GoodList(props, ref) {
17517
18324
  return /*#__PURE__*/React.createElement(Skeleton, {
17518
18325
  active: true,
17519
18326
  loading: loading
17520
- }, /*#__PURE__*/React.createElement(SearchForm, {
17521
- searchFormData: searchFormData$3,
18327
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
18328
+ type: "gy",
17522
18329
  form: form,
17523
18330
  showColumnsDataIndexList: showColumnsDataIndexList,
17524
18331
  submit: submit,
@@ -17537,6 +18344,13 @@ var GoodList$4 = function GoodList(props, ref) {
17537
18344
  y: 250
17538
18345
  }
17539
18346
  }, tableProps), {}, {
18347
+ locale: {
18348
+ emptyText: /*#__PURE__*/React.createElement(GoodsReSync, {
18349
+ platform: "GY_ERP",
18350
+ queryState: reSyncQueryState,
18351
+ onSuccess: submit
18352
+ })
18353
+ },
17540
18354
  size: "small"
17541
18355
  }))), /*#__PURE__*/React.createElement(Popover, {
17542
18356
  getPopupContainer: function getPopupContainer(triggerNode) {
@@ -17753,11 +18567,11 @@ function multiSelect() {
17753
18567
  var css_248z$d = ".high-performance-table .lock-left {\n background: #FFF !important;\n}\n.high-performance-table .art-empty-wrapper {\n margin-top: 24px;\n}\n.high-performance-table .cell-content {\n height: 48px;\n display: flex;\n align-items: center;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding: 8px 12px;\n}\n";
17754
18568
  styleInject(css_248z$d);
17755
18569
 
17756
- var _excluded$e = ["children"];
18570
+ var _excluded$f = ["children"];
17757
18571
  var Cell = function Cell(_ref) {
17758
18572
  var tdProps = _ref.tdProps;
17759
18573
  var children = tdProps.children,
17760
- otherProps = _objectWithoutProperties(tdProps, _excluded$e);
18574
+ otherProps = _objectWithoutProperties(tdProps, _excluded$f);
17761
18575
  return /*#__PURE__*/React.createElement("td", _objectSpread2({}, otherProps), /*#__PURE__*/React.createElement("div", {
17762
18576
  className: "cell-content"
17763
18577
  }, children));
@@ -17909,7 +18723,7 @@ var reject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbS
17909
18723
 
17910
18724
  var reminder = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAjiSURBVHic7Z07bBvHFob/2eUy4sq+vjZZCLCUziJsOIDUCUphwCHcBBTUBKpcEFTltE5hA2mTAEkbFwEFBlCTRyNYXSAYcCFGnQVcwcHKJWVACMjr64dWEsnduUVIQQ+KO/uY3eXqfJUgDQ+P8HPOnDlzdsjgkmapdKujqncYcBec34CiXAfnVwGobm0RA7HA2BvY9msw9ooDz1KW9Txbrb50Y4SJDNq9f3+Uado8U9UH4HwGgOLJZcIvNhjb4Jb1hLfbK2PLy3tOL3AUeLdcLjLgG8bY7WB8JIKAc77FgcdjS0urg8adK3C9XL6WZuxbBiyCZmxcsTlQaXH+aGJp6b/9BvQVeGdxcTwN/A5gRqp7RFBstIAvxiuVndN/OCNwV9w/ANwMxTUiKP5qAfdOi3wi9NbL5WvdmUviDh8308Dv9XL52vFfnhA4zdi3oLA8zMx0NTziKETvlstFhbEVUEI17Ng25/O97JoB3X1uOr1BW6FkwDnf4q3WzNjy8p4CAEzT5knc5MAYu800bR7ohmOmqg+idYkImp6mrFkq3bJU9T+gtTdp2KplfaJ0VPUOSNwkonRU9Y7CgLtRe0LIgQF3FXB+I2pHCElwfkOBolyP2g9CEopyXeke1hNJhPOrCqgTI8molD0nnFTUDsQJJZsVGmc3m5I9CY5YCTw6NwdtchLt7W0cvniBTr0e6vtfffgQSi43cEx7exv/+/77kDzyT6wETk9NITUxAS2fh14sgpsmDmo1HG5uolOvg5tm1C4OHbERWMlmkZqYOPE7puvIFArIFArgpolOvY6DWg0HtVpEXg4fsRH4o+npgX9nug4tnz8RtpmuQzv1oTiN3f1ghE06n3ccYzUasCSv5/EReGpKaNzh5ubRzyyTwZWHDweOj2rNdPILAMzVVew9fSrVj1hsk3qz0wlummgbRggeJYdYCKwXCkLjaO11TywE1iYnhcYdD8+EGJELrOXzFJ4lErnAoskVhWdvRCow03WMzM4KjaXw7I1IBR6ZnQXTdcdxbcOg8OyRSAX2svcl3BGZwG6SK1p/vRNZJWu0WBQad1Cr+T5kED0GjMqeTCIRWM1mhWYv4D88a5OTyH73nS8bMu3JJpIQrc/NCY3r1OuUXPkkdIGZrgsnV1GcAiWN0AUeLRaFtkZEMIQqsJrNIiN4sEAEQ6gCi669RHCEJrCWzwuXJYngCE1g0X0vESyh7INFq1Zu4fv7MFcHXvQWKCyTOfo/WgGUT1shbAGlC8x0Hf8qlaTY5qZ51NPEdB3Xvv4anZ0dtAwjkAoY8E/zXHpqCqmPPz5qTLCbTRysr0tvmAsC6QLrhUIopb3UxASUXA7pXA7pqSlcWliA3WjgcHPTVV+1ms0iPT2Nj6anz+00Ubq7gQ+//hr0vxE4UgVOTUxAD2nt7Vc8UXK5E33VbcPA2ydPHG1dWlhwHJMpFLC/thb7WSw1ybosKTT3wylDZ7qOzs6ZqxzPYDWbwqdXw7Dtkybw6NzcmScVZKHl80LVMdGkxhTsVR6ZnYUa85MlKQKHGZoBscYBu9EQPriwmk20t7eFxo58+qnQuKgIXGCm67jy5ZdBmx34fiIFlIM//3Rl92B9XWhc3Is3gSdZVx48CPVAPC0Ynq1Gw5VfLcMAN01H272M+vDFC2Hbp+H7+9KenAxU4LSkgsYgMp99JjROZsJ3aWFBKPM+j7c//CCt6BFoiG4ZRqhnuL1niYnzCXwN3gtx8x/39S8OBC5wyzAcM1Bumr7XHDdN8xcZKdskp33k+59/9i2wXihQZ4gAUgRuGca5N9Hsr635yjiB7tUOgsnVRUdaJavfk+t2s4m9AI73aPaKI+2w4aBWw+jc3Im957tq1XdoVrNZV7OXm6ZQDbofqfFxxw+SH/s9bIm3B0k9TWoZxlEiZK6uBtLjrM/NuZq93DQ939FxuVRyTOT82A8DqadJvWSrbRiBXDZCfV3ukTqDrWYTh7Ua3gewN5bZGZJkpHd0vKtWA7EzWix6rnF7fp3gUuCn9i773svY3JM1CC2f99wwr+RyUh8W82M/jDu8Ir+jwwk1m6XQ7IPYC3y5VBqq53HjRuwFVh2u9yUGE3uB3weUpF1UYi9wr4md8MZQZNHm06e+Chx2o+HpdUzXhapmXu1bHl/nhqEQuNer7EVku9FA89EjT+8rUqr0Yz8MYh+ie/Q7Y6YrHpwZGoFPP3FgN5uUgAkwNAIDwOExgd9Vq1KP2ZLCUKzBPXqdIge1GtqGIVQAUXI5/Purrzy9n8hjKX7sd+p1fPjlF0+vFWWoBAaAtz/+6HrtFb1w3Cuy7fthqEI0QImVW4ZOYMIdJHDCIYETDgmccIYui3YLN03Pl6WMzM46Ptzmx34Y93tcCIG9nkZp+Tw0ifbDgEJ0wiGBE07iQzTTdYx6vO5I5JYgP/ZPY66tBX6Vw4UQWOaNP0Ha319fD1xgCtEJhwROOCRwwiGBEw4JnHBI4IRDAiecxO+D4963LBuawQmHBE44kYXoD7/9BpbJDBzjdF4q8rU6F713mv29uMijdoKQB4XohKMAsKJ2gpCGpYCxN1F7QUiCsTcKbPt11H4QkrDt1woYexW1H4QkGHulcOBZ1H4QcuDAMyVlWc8B2FE7QwSOnbKs50q2Wn0Jxjai9oYIGMY2stXqSwUAuGU5fyUnMVT0NP1H4HZ7hXO+Fa1LRFBwzrd4u70CdAUeW17e48Bj0FqcBGwOPB5bXt4DjpUqx5aWVjlQic4vIgg4UBlbWjo6gTlRi25x/ggAJVzDy0ZXwyPY6RE7i4vjaeAPADdDc4sIgr9awL3xSuXEV8CcOU0ar1R2WsA90EweJjb6iQucc1w4XqnsHHL+OQd+AiVeccbmwE+HnH/eT1ygT4g+zW65XGTAN4yx28H7R3iFc77FgcfHE6p+OAoMALv3748yTZtnqvoAnM+AGgWiwgZjG9yynvB2e6W3FRqEkMDHaZZKtzqqeocBd8H5DSjKdXB+FYDqyWXiPCww9ga2/RqMveLAs5RlPc9Wqy/dGPk/lTM43UA4NxYAAAAASUVORK5CYII=";
17911
18725
 
17912
- var _excluded$f = ["mode", "maxSelectCount", "showOnly", "getOptionsAsync", "onChange"];
18726
+ var _excluded$g = ["mode", "maxSelectCount", "showOnly", "getOptionsAsync", "onChange"];
17913
18727
  var AsyncSelect = function AsyncSelect(props) {
17914
18728
  var mode = props.mode,
17915
18729
  maxSelectCount = props.maxSelectCount,
@@ -17917,7 +18731,7 @@ var AsyncSelect = function AsyncSelect(props) {
17917
18731
  showOnly = _props$showOnly === void 0 ? false : _props$showOnly,
17918
18732
  getOptionsAsync = props.getOptionsAsync,
17919
18733
  _onChange = props.onChange,
17920
- otherProps = _objectWithoutProperties(props, _excluded$f);
18734
+ otherProps = _objectWithoutProperties(props, _excluded$g);
17921
18735
  var _React$useState = React.useState([]),
17922
18736
  _React$useState2 = _slicedToArray(_React$useState, 2),
17923
18737
  data = _React$useState2[0],
@@ -17967,7 +18781,7 @@ var AsyncSelect = function AsyncSelect(props) {
17967
18781
  }));
17968
18782
  };
17969
18783
 
17970
- var _excluded$g = ["filterComponentType", "searchDefaultConditions", "props", "ShopList"];
18784
+ var _excluded$h = ["filterComponentType", "searchDefaultConditions", "props", "ShopList"];
17971
18785
  var RangePicker = DatePicker.RangePicker;
17972
18786
  var _SelectInput = function SelectInput(props) {
17973
18787
  var _props$value = props.value,
@@ -18182,7 +18996,7 @@ var FilterSelectOption = function FilterSelectOption(props) {
18182
18996
  searchDefaultConditions = props.searchDefaultConditions,
18183
18997
  componentProps = props.props,
18184
18998
  ShopList = props.ShopList,
18185
- otherProps = _objectWithoutProperties(props, _excluded$g);
18999
+ otherProps = _objectWithoutProperties(props, _excluded$h);
18186
19000
  var handleChange = function handleChange() {
18187
19001
  var _props$onChange, _props$onSubmit;
18188
19002
  for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -19067,38 +19881,6 @@ var getTableData$5 = function getTableData(_ref, formData) {
19067
19881
  };
19068
19882
  });
19069
19883
  };
19070
- var searchFormData$4 = [{
19071
- label: '规格值',
19072
- name: 'propertiesValue'
19073
- }, {
19074
- label: 'SKU编码',
19075
- name: 'specNo',
19076
- type: 'optionalInput'
19077
- }, {
19078
- label: '商品名称',
19079
- name: 'goodName'
19080
- }, {
19081
- label: '商品编码',
19082
- name: 'goodNo',
19083
- type: 'optionalInput'
19084
- }, {
19085
- label: '是否组合装',
19086
- name: 'skuType',
19087
- type: 'select',
19088
- formItemProps: {
19089
- mode: 'multiple',
19090
- filterOption: function filterOption(input, option) {
19091
- return option.label.includes(input);
19092
- },
19093
- options: [{
19094
- label: '普通商品',
19095
- value: 'normal'
19096
- }, {
19097
- label: '组合装商品',
19098
- value: 'combine'
19099
- }]
19100
- }
19101
- }];
19102
19884
  var GoodList$5 = function GoodList(props, ref) {
19103
19885
  var _useState = useState([]),
19104
19886
  _useState2 = _slicedToArray(_useState, 2),
@@ -19123,13 +19905,16 @@ var GoodList$5 = function GoodList(props, ref) {
19123
19905
  var _Form$useForm = Form.useForm(),
19124
19906
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
19125
19907
  form = _Form$useForm2[0];
19126
- var _useAntdTable = useAntdTable(getTableData$5, {
19908
+ var _useGoodsReSyncQuery = useGoodsReSyncQuery(getTableData$5),
19909
+ _useGoodsReSyncQuery2 = _slicedToArray(_useGoodsReSyncQuery, 2),
19910
+ getTableDataWithReSync = _useGoodsReSyncQuery2[0],
19911
+ reSyncQueryState = _useGoodsReSyncQuery2[1];
19912
+ var _useAntdTable = useAntdTable(getTableDataWithReSync, {
19127
19913
  defaultPageSize: 10,
19128
19914
  form: form
19129
19915
  }),
19130
19916
  tableProps = _useAntdTable.tableProps,
19131
- search = _useAntdTable.search,
19132
- params = _useAntdTable.params;
19917
+ search = _useAntdTable.search;
19133
19918
  var submit = search.submit,
19134
19919
  reset = search.reset;
19135
19920
  var rowSelection = {
@@ -19221,8 +20006,8 @@ var GoodList$5 = function GoodList(props, ref) {
19221
20006
  return /*#__PURE__*/React.createElement(Skeleton, {
19222
20007
  active: true,
19223
20008
  loading: loading
19224
- }, /*#__PURE__*/React.createElement(SearchForm, {
19225
- searchFormData: searchFormData$4,
20009
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
20010
+ type: "wln",
19226
20011
  form: form,
19227
20012
  showColumnsDataIndexList: showColumnsDataIndexList,
19228
20013
  submit: submit,
@@ -19231,7 +20016,7 @@ var GoodList$5 = function GoodList(props, ref) {
19231
20016
  style: {
19232
20017
  marginTop: '4px'
19233
20018
  }
19234
- }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
20019
+ }, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
19235
20020
  className: "GoodModalColumns",
19236
20021
  rowSelection: rowSelection,
19237
20022
  rowKey: "id",
@@ -19241,7 +20026,15 @@ var GoodList$5 = function GoodList(props, ref) {
19241
20026
  y: 250
19242
20027
  },
19243
20028
  size: "small"
19244
- }, tableProps))), /*#__PURE__*/React.createElement(Popover, {
20029
+ }, tableProps), {}, {
20030
+ locale: {
20031
+ emptyText: /*#__PURE__*/React.createElement(GoodsReSync, {
20032
+ platform: "WLN_ERP",
20033
+ queryState: reSyncQueryState,
20034
+ onSuccess: submit
20035
+ })
20036
+ }
20037
+ }))), /*#__PURE__*/React.createElement(Popover, {
19245
20038
  getPopupContainer: function getPopupContainer(triggerNode) {
19246
20039
  return triggerNode.parentElement;
19247
20040
  },
@@ -19329,23 +20122,6 @@ var getTableData$6 = function getTableData(_ref, formData) {
19329
20122
  };
19330
20123
  });
19331
20124
  };
19332
- var searchFormData$5 = [{
19333
- label: '规格名称',
19334
- name: 'skuName',
19335
- dataIndex: 'specName'
19336
- }, {
19337
- label: '规格编码',
19338
- name: 'skuCode',
19339
- dataIndex: 'specNo',
19340
- type: 'optionalInput'
19341
- }, {
19342
- label: '商品名称',
19343
- name: 'goodName'
19344
- }, {
19345
- label: '商品编码',
19346
- name: 'goodNo',
19347
- type: 'optionalInput'
19348
- }];
19349
20125
  var GoodList$6 = function GoodList(props, ref) {
19350
20126
  var _useState = useState([]),
19351
20127
  _useState2 = _slicedToArray(_useState, 2),
@@ -19370,13 +20146,16 @@ var GoodList$6 = function GoodList(props, ref) {
19370
20146
  var _Form$useForm = Form.useForm(),
19371
20147
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
19372
20148
  form = _Form$useForm2[0];
19373
- var _useAntdTable = useAntdTable(getTableData$6, {
20149
+ var _useGoodsReSyncQuery = useGoodsReSyncQuery(getTableData$6),
20150
+ _useGoodsReSyncQuery2 = _slicedToArray(_useGoodsReSyncQuery, 2),
20151
+ getTableDataWithReSync = _useGoodsReSyncQuery2[0],
20152
+ reSyncQueryState = _useGoodsReSyncQuery2[1];
20153
+ var _useAntdTable = useAntdTable(getTableDataWithReSync, {
19374
20154
  defaultPageSize: 10,
19375
20155
  form: form
19376
20156
  }),
19377
20157
  tableProps = _useAntdTable.tableProps,
19378
- search = _useAntdTable.search,
19379
- params = _useAntdTable.params;
20158
+ search = _useAntdTable.search;
19380
20159
  var submit = search.submit,
19381
20160
  reset = search.reset;
19382
20161
  var rowSelection = {
@@ -19468,8 +20247,8 @@ var GoodList$6 = function GoodList(props, ref) {
19468
20247
  return /*#__PURE__*/React.createElement(Skeleton, {
19469
20248
  active: true,
19470
20249
  loading: loading
19471
- }, /*#__PURE__*/React.createElement(SearchForm, {
19472
- searchFormData: searchFormData$5,
20250
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
20251
+ type: "jy",
19473
20252
  form: form,
19474
20253
  showColumnsDataIndexList: showColumnsDataIndexList,
19475
20254
  submit: submit,
@@ -19478,7 +20257,7 @@ var GoodList$6 = function GoodList(props, ref) {
19478
20257
  style: {
19479
20258
  marginTop: '4px'
19480
20259
  }
19481
- }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
20260
+ }, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
19482
20261
  className: "GoodModalColumns",
19483
20262
  rowSelection: rowSelection,
19484
20263
  rowKey: "id",
@@ -19488,7 +20267,15 @@ var GoodList$6 = function GoodList(props, ref) {
19488
20267
  y: 250
19489
20268
  },
19490
20269
  size: "small"
19491
- }, tableProps))), /*#__PURE__*/React.createElement(Popover, {
20270
+ }, tableProps), {}, {
20271
+ locale: {
20272
+ emptyText: /*#__PURE__*/React.createElement(GoodsReSync, {
20273
+ platform: "JY_ERP",
20274
+ queryState: reSyncQueryState,
20275
+ onSuccess: submit
20276
+ })
20277
+ }
20278
+ }))), /*#__PURE__*/React.createElement(Popover, {
19492
20279
  getPopupContainer: function getPopupContainer(triggerNode) {
19493
20280
  return triggerNode.parentElement;
19494
20281
  },
@@ -19576,23 +20363,6 @@ var getTableData$7 = function getTableData(_ref, formData) {
19576
20363
  };
19577
20364
  });
19578
20365
  };
19579
- var searchFormData$6 = [{
19580
- label: '规格名称',
19581
- name: 'skuName',
19582
- dataIndex: 'specName'
19583
- }, {
19584
- label: '规格编码',
19585
- name: 'skuCode',
19586
- dataIndex: 'specNo',
19587
- type: 'optionalInput'
19588
- }, {
19589
- label: '货品名称',
19590
- name: 'goodName'
19591
- }, {
19592
- label: '货品编码',
19593
- name: 'goodNo',
19594
- type: 'optionalInput'
19595
- }];
19596
20366
  var GoodList$7 = function GoodList(props, ref) {
19597
20367
  var _useState = useState([]),
19598
20368
  _useState2 = _slicedToArray(_useState, 2),
@@ -19715,8 +20485,8 @@ var GoodList$7 = function GoodList(props, ref) {
19715
20485
  return /*#__PURE__*/React.createElement(Skeleton, {
19716
20486
  active: true,
19717
20487
  loading: loading
19718
- }, /*#__PURE__*/React.createElement(SearchForm, {
19719
- searchFormData: searchFormData$6,
20488
+ }, /*#__PURE__*/React.createElement(GoodsSearchForm, {
20489
+ type: "jky",
19720
20490
  form: form,
19721
20491
  showColumnsDataIndexList: showColumnsDataIndexList,
19722
20492
  submit: submit,
@@ -20701,7 +21471,7 @@ var getColumns$2 = function getColumns(_ref) {
20701
21471
  }
20702
21472
  }, {
20703
21473
  dataIndex: 'returnPrice',
20704
- title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
21474
+ title: "".concat(text, "\u9000\u6B3E\u91D1\u989D"),
20705
21475
  align: 'center',
20706
21476
  ellipsis: true,
20707
21477
  width: 100
@@ -21106,17 +21876,18 @@ var getColumns$2 = function getColumns(_ref) {
21106
21876
  };
21107
21877
 
21108
21878
  var getYesOrNo$4 = function getYesOrNo(val) {
21879
+ var content = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ['是', '否'];
21109
21880
  switch (val) {
21110
21881
  case true:
21111
21882
  case '1':
21112
21883
  case 1:
21113
- return '是';
21884
+ return content[0];
21114
21885
  case false:
21115
21886
  case '0':
21116
21887
  case 0:
21117
21888
  return '否';
21118
21889
  default:
21119
- return null;
21890
+ return content[1];
21120
21891
  }
21121
21892
  };
21122
21893
 
@@ -21315,7 +22086,7 @@ var getColumns$3 = function getColumns(_ref) {
21315
22086
  label: '非赠品',
21316
22087
  value: 0
21317
22088
  }]
21318
- }) : /*#__PURE__*/React.createElement("span", null, isNull(val) ? null : val ? '赠品' : '非赠品');
22089
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val, ['赠品', '非赠品']));
21319
22090
  }
21320
22091
  }, {
21321
22092
  dataIndex: 'isPackage',
@@ -21547,7 +22318,7 @@ var getColumns$3 = function getColumns(_ref) {
21547
22318
  label: '非赠品',
21548
22319
  value: 0
21549
22320
  }]
21550
- }) : /*#__PURE__*/React.createElement("span", null, isNull(val) ? null : val ? '赠品' : '非赠品');
22321
+ }) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val, ['赠品', '非赠品']));
21551
22322
  }
21552
22323
  }, {
21553
22324
  dataIndex: 'isPackage',
@@ -22694,10 +23465,14 @@ var getColumns$5 = function getColumns() {
22694
23465
  }, {
22695
23466
  dataIndex: 'qty',
22696
23467
  title: "\u7533\u8BF7\u6570\u91CF",
23468
+ conditionTitle: "\u7533\u8BF7\u603B\u6570\u91CF",
22697
23469
  width: 150,
22698
23470
  align: 'center',
22699
23471
  ellipsis: true,
22700
- render: renderTextEllipsis
23472
+ render: renderTextEllipsis,
23473
+ conditionOptionsSetting: {
23474
+ dataType: 'number'
23475
+ }
22701
23476
  }, {
22702
23477
  dataIndex: 'rQty',
22703
23478
  title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
@@ -24567,7 +25342,7 @@ var getColumns$a = function getColumns() {
24567
25342
  },
24568
25343
  render: function render(_val, record, index) {
24569
25344
  var options = DxdSuppliersData.getInstance().getSuppliersBySkuCode(record === null || record === void 0 ? void 0 : record.skuCode);
24570
- return /*#__PURE__*/React.createElement(Select, {
25345
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
24571
25346
  style: {
24572
25347
  width: '100%'
24573
25348
  },
@@ -24587,7 +25362,7 @@ var getColumns$a = function getColumns() {
24587
25362
  supplierName: (_opt$label = opt === null || opt === void 0 ? void 0 : opt.label) !== null && _opt$label !== void 0 ? _opt$label : ''
24588
25363
  }, index);
24589
25364
  }
24590
- });
25365
+ }) : DxdSuppliersData.getInstance().getSupplierNameByCode(record === null || record === void 0 ? void 0 : record.supplierCode);
24591
25366
  },
24592
25367
  conditionOptionsSetting: {
24593
25368
  dataType: 'weakenArray',
@@ -24629,7 +25404,128 @@ var getColumns$a = function getColumns() {
24629
25404
  };
24630
25405
  };
24631
25406
 
24632
- var getColumns$b = function getColumns(_ref) {
25407
+ var TTX_BOM_TYPE_MAP = {
25408
+ '0': '正常品',
25409
+ '1': '实物组套',
25410
+ '2': '虚拟组套',
25411
+ '3': '虚拟组套子品',
25412
+ '4': '虚拟品'
25413
+ };
25414
+ var getTtxBomTypeName = function getTtxBomTypeName(value) {
25415
+ var _TTX_BOM_TYPE_MAP$Str;
25416
+ return (_TTX_BOM_TYPE_MAP$Str = TTX_BOM_TYPE_MAP[String(value)]) !== null && _TTX_BOM_TYPE_MAP$Str !== void 0 ? _TTX_BOM_TYPE_MAP$Str : value;
25417
+ };
25418
+ var getColumns$b = function getColumns() {
25419
+ return {
25420
+ TTX_GOODS: [{
25421
+ dataIndex: 'skuName',
25422
+ title: 'SKU名称',
25423
+ width: 150,
25424
+ render: renderTextEllipsis
25425
+ }, {
25426
+ dataIndex: 'skuCode',
25427
+ title: 'SKU编码',
25428
+ width: 150,
25429
+ render: renderTextEllipsis
25430
+ }, {
25431
+ dataIndex: 'sourceSpuId',
25432
+ title: '平台商品ID',
25433
+ width: 150,
25434
+ render: renderTextEllipsis
25435
+ }, {
25436
+ dataIndex: 'sourceSkuId',
25437
+ title: '平台SKU ID',
25438
+ width: 150,
25439
+ render: renderTextEllipsis
25440
+ }, {
25441
+ dataIndex: 'requestQty',
25442
+ title: '要求发货数量',
25443
+ width: 150,
25444
+ render: renderTextEllipsis
25445
+ }, {
25446
+ dataIndex: 'shipQty',
25447
+ title: '已发货数量',
25448
+ width: 150,
25449
+ render: renderTextEllipsis
25450
+ }, {
25451
+ dataIndex: 'returnQty',
25452
+ title: '退货数量',
25453
+ width: 150,
25454
+ render: renderTextEllipsis
25455
+ }, {
25456
+ dataIndex: 'listPrice',
25457
+ title: '零售价/标价',
25458
+ width: 150,
25459
+ render: renderTextEllipsis
25460
+ }, {
25461
+ dataIndex: 'netPrice',
25462
+ title: '客户实付单价',
25463
+ width: 150,
25464
+ render: renderTextEllipsis
25465
+ }, {
25466
+ dataIndex: 'msrPrice',
25467
+ title: '建议零售价',
25468
+ width: 150,
25469
+ render: renderTextEllipsis
25470
+ }, {
25471
+ dataIndex: 'itemTotalAmount',
25472
+ title: '商品总金额',
25473
+ width: 150,
25474
+ render: renderTextEllipsis
25475
+ }, {
25476
+ dataIndex: 'totalPayAmount',
25477
+ title: '实付金额',
25478
+ width: 150,
25479
+ render: renderTextEllipsis
25480
+ }, {
25481
+ dataIndex: 'isGift',
25482
+ title: '是否赠品',
25483
+ width: 150,
25484
+ render: function render(value) {
25485
+ return renderTextEllipsis(getYesOrNo$4(value));
25486
+ },
25487
+ renderExport: getYesOrNo$4,
25488
+ headerMapping: {
25489
+ transformValue: getYesOrNo$4,
25490
+ renderExport: getYesOrNo$4
25491
+ }
25492
+ }, {
25493
+ dataIndex: 'bomType',
25494
+ title: 'BOM类型',
25495
+ width: 150,
25496
+ render: function render(value) {
25497
+ return renderTextEllipsis(getTtxBomTypeName(value));
25498
+ },
25499
+ renderExport: getTtxBomTypeName,
25500
+ headerMapping: {
25501
+ transformValue: getTtxBomTypeName,
25502
+ renderExport: getTtxBomTypeName
25503
+ }
25504
+ }, {
25505
+ dataIndex: 'bomSkuCode',
25506
+ title: 'BOM商品编码',
25507
+ width: 150,
25508
+ render: renderTextEllipsis
25509
+ }, {
25510
+ dataIndex: 'platformSpuCode',
25511
+ title: '商品货号',
25512
+ width: 150,
25513
+ render: renderTextEllipsis
25514
+ }, {
25515
+ dataIndex: 'platformSkuCode',
25516
+ title: 'SKU货号',
25517
+ width: 150,
25518
+ render: renderTextEllipsis
25519
+ }].map(function (item) {
25520
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25521
+ align: 'center',
25522
+ ellipsis: true
25523
+ });
25524
+ })
25525
+ };
25526
+ };
25527
+
25528
+ var getColumns$c = function getColumns(_ref) {
24633
25529
  var _ref$text = _ref.text,
24634
25530
  text = _ref$text === void 0 ? '' : _ref$text,
24635
25531
  disabled = _ref.disabled,
@@ -24739,6 +25635,18 @@ var getColumns$b = function getColumns(_ref) {
24739
25635
  };
24740
25636
  };
24741
25637
 
25638
+ var MIN_COLUMN_WIDTH = 80;
25639
+ var MAX_COLUMN_WIDTH = 600;
25640
+ var resolveColumnWidth = function resolveColumnWidth(width, defaultWidth) {
25641
+ if (width === undefined || width === null || width === '') {
25642
+ return defaultWidth;
25643
+ }
25644
+ var parsedWidth = Number(width);
25645
+ if (!isFinite(parsedWidth)) {
25646
+ return defaultWidth;
25647
+ }
25648
+ return Math.min(MAX_COLUMN_WIDTH, Math.max(MIN_COLUMN_WIDTH, Math.round(parsedWidth)));
25649
+ };
24742
25650
  var getColumnsMap$1 = function getColumnsMap(args) {
24743
25651
  var _ref = args || {},
24744
25652
  _ref$text = _ref.text,
@@ -24746,7 +25654,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
24746
25654
  disabled = _ref.disabled,
24747
25655
  updateHandle = _ref.updateHandle,
24748
25656
  updateDataHandle = _ref.updateDataHandle;
24749
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
25657
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
24750
25658
  text: text,
24751
25659
  disabled: disabled,
24752
25660
  updateHandle: updateHandle
@@ -24795,8 +25703,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
24795
25703
  disabled: disabled,
24796
25704
  updateHandle: updateHandle,
24797
25705
  updateDataHandle: updateDataHandle
24798
- })), {}, {
24799
- default: getColumns$b({
25706
+ })), getColumns$b()), {}, {
25707
+ default: getColumns$c({
24800
25708
  text: text,
24801
25709
  disabled: disabled,
24802
25710
  updateHandle: updateHandle
@@ -24832,11 +25740,13 @@ var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
24832
25740
  var newColumns = {};
24833
25741
  Object.keys(clone_columnsMap).forEach(function (key) {
24834
25742
  newColumns[key] = clone_columnsMap[key].map(function (col) {
24835
- return {
25743
+ return _objectSpread2({
24836
25744
  title: col.title,
24837
25745
  dataIndex: col.dataIndex,
24838
25746
  disabled: !!col.validator
24839
- };
25747
+ }, key === 'KM_REISSUE_GOODS' ? {
25748
+ width: col.width
25749
+ } : {});
24840
25750
  });
24841
25751
  });
24842
25752
  return newColumns;
@@ -24949,6 +25859,9 @@ var isErpType = {
24949
25859
  },
24950
25860
  isWln: function isWln(type) {
24951
25861
  return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
25862
+ },
25863
+ isTtx: function isTtx(type) {
25864
+ return ['TTX_GOODS'].includes(type);
24952
25865
  }
24953
25866
  };
24954
25867
  var processGoods$1 = function processGoods(_ref) {
@@ -25015,6 +25928,12 @@ var processGoods$1 = function processGoods(_ref) {
25015
25928
  canUpdateNumber: canUpdateNumber,
25016
25929
  source: source
25017
25930
  });
25931
+ } else if (isErpType.isTtx(type)) {
25932
+ newList = processTtxGoods$1({
25933
+ list: list,
25934
+ type: type,
25935
+ canUpdateNumber: canUpdateNumber
25936
+ });
25018
25937
  } else {
25019
25938
  newList = processDefaultGoods({
25020
25939
  list: list,
@@ -25025,9 +25944,21 @@ var processGoods$1 = function processGoods(_ref) {
25025
25944
  }
25026
25945
  return newList;
25027
25946
  };
25028
- var processJyGoods = function processJyGoods(_ref2) {
25947
+ var processTtxGoods$1 = function processTtxGoods(_ref2) {
25029
25948
  var list = _ref2.list,
25030
25949
  canUpdateNumber = _ref2.canUpdateNumber;
25950
+ return list.map(function (item) {
25951
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25952
+ uuid: (item === null || item === void 0 ? void 0 : item.uuid) || uuid(),
25953
+ canDelete: true,
25954
+ canEdit: true,
25955
+ canUpdateNumber: canUpdateNumber
25956
+ });
25957
+ });
25958
+ };
25959
+ var processJyGoods = function processJyGoods(_ref3) {
25960
+ var list = _ref3.list,
25961
+ canUpdateNumber = _ref3.canUpdateNumber;
25031
25962
  return list.map(function (item) {
25032
25963
  var goodName = item.goodName,
25033
25964
  goodNo = item.goodNo,
@@ -25063,9 +25994,9 @@ var processJyGoods = function processJyGoods(_ref2) {
25063
25994
  });
25064
25995
  });
25065
25996
  };
25066
- var processJkyGoods$1 = function processJkyGoods(_ref3) {
25067
- var list = _ref3.list,
25068
- canUpdateNumber = _ref3.canUpdateNumber;
25997
+ var processJkyGoods$1 = function processJkyGoods(_ref4) {
25998
+ var list = _ref4.list,
25999
+ canUpdateNumber = _ref4.canUpdateNumber;
25069
26000
  return list.map(function (item) {
25070
26001
  var goodName = item.goodName,
25071
26002
  goodNo = item.goodNo,
@@ -25097,9 +26028,9 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
25097
26028
  });
25098
26029
  });
25099
26030
  };
25100
- var processWlnGoods$1 = function processWlnGoods(_ref4) {
25101
- var list = _ref4.list,
25102
- canUpdateNumber = _ref4.canUpdateNumber;
26031
+ var processWlnGoods$1 = function processWlnGoods(_ref5) {
26032
+ var list = _ref5.list,
26033
+ canUpdateNumber = _ref5.canUpdateNumber;
25103
26034
  return list.map(function (item) {
25104
26035
  var goodName = item.goodName,
25105
26036
  goodShortName = item.goodShortName,
@@ -25150,10 +26081,10 @@ var processWlnGoods$1 = function processWlnGoods(_ref4) {
25150
26081
  });
25151
26082
  };
25152
26083
  // 处理不同类型的商品数据
25153
- var processWdtGoods$1 = function processWdtGoods(_ref5) {
25154
- var list = _ref5.list,
25155
- type = _ref5.type,
25156
- canUpdateNumber = _ref5.canUpdateNumber;
26084
+ var processWdtGoods$1 = function processWdtGoods(_ref6) {
26085
+ var list = _ref6.list,
26086
+ type = _ref6.type,
26087
+ canUpdateNumber = _ref6.canUpdateNumber;
25157
26088
  return list.map(function (item) {
25158
26089
  var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
25159
26090
  uuid: uuid(),
@@ -25171,9 +26102,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref5) {
25171
26102
  return processedItem;
25172
26103
  });
25173
26104
  };
25174
- var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
25175
- var list = _ref6.list,
25176
- canUpdateNumber = _ref6.canUpdateNumber;
26105
+ var processBsE3Goods$1 = function processBsE3Goods(_ref7) {
26106
+ var list = _ref7.list,
26107
+ canUpdateNumber = _ref7.canUpdateNumber;
25177
26108
  return list.map(function (item) {
25178
26109
  var specNo = item.specNo,
25179
26110
  specId = item.specId,
@@ -25208,9 +26139,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
25208
26139
  });
25209
26140
  });
25210
26141
  };
25211
- var processGyGoods$1 = function processGyGoods(_ref7) {
25212
- var list = _ref7.list,
25213
- source = _ref7.source;
26142
+ var processGyGoods$1 = function processGyGoods(_ref8) {
26143
+ var list = _ref8.list,
26144
+ source = _ref8.source;
25214
26145
  var isFormWorkOrder = source === 'workOrder';
25215
26146
  return list.map(function (item) {
25216
26147
  var goodName = item.goodName,
@@ -25237,8 +26168,8 @@ var processGyGoods$1 = function processGyGoods(_ref7) {
25237
26168
  });
25238
26169
  });
25239
26170
  };
25240
- var processJstGoods$1 = function processJstGoods(_ref8) {
25241
- var list = _ref8.list;
26171
+ var processJstGoods$1 = function processJstGoods(_ref9) {
26172
+ var list = _ref9.list;
25242
26173
  return list.map(function (item) {
25243
26174
  return {
25244
26175
  name: item.goodName,
@@ -25256,9 +26187,9 @@ var processJstGoods$1 = function processJstGoods(_ref8) {
25256
26187
  };
25257
26188
  });
25258
26189
  };
25259
- var processKmGoods$1 = function processKmGoods(_ref9) {
25260
- var list = _ref9.list,
25261
- type = _ref9.type;
26190
+ var processKmGoods$1 = function processKmGoods(_ref10) {
26191
+ var list = _ref10.list,
26192
+ type = _ref10.type;
25262
26193
  var initParamsMap = {
25263
26194
  KM_GOODS: {
25264
26195
  num: 1
@@ -25276,7 +26207,7 @@ var processKmGoods$1 = function processKmGoods(_ref9) {
25276
26207
  return list.map(function (item) {
25277
26208
  return _objectSpread2(_objectSpread2({}, item), {}, {
25278
26209
  skuPropertiesName: item.specName,
25279
- sysSkuPropertiesName: item.specId,
26210
+ sysSkuPropertiesName: item.propertiesValue,
25280
26211
  sysTitle: item.goodName,
25281
26212
  title: null,
25282
26213
  shortTitle: item.goodShortName,
@@ -25297,9 +26228,9 @@ var processKmGoods$1 = function processKmGoods(_ref9) {
25297
26228
  }, initParamsMap[type] || {});
25298
26229
  });
25299
26230
  };
25300
- var processDefaultGoods = function processDefaultGoods(_ref10) {
25301
- var list = _ref10.list,
25302
- canUpdateNumber = _ref10.canUpdateNumber;
26231
+ var processDefaultGoods = function processDefaultGoods(_ref11) {
26232
+ var list = _ref11.list,
26233
+ canUpdateNumber = _ref11.canUpdateNumber;
25303
26234
  return list.map(function (item) {
25304
26235
  var goodsId = item.goodsId,
25305
26236
  name = item.name,
@@ -25365,6 +26296,7 @@ var systemOrderNoMap = {
25365
26296
  JKY_GOODS: 'tradeNo',
25366
26297
  JKY_REISSUE_GOODS: 'tradeNo',
25367
26298
  DXD_GOODS: 'orderNo',
26299
+ TTX_GOODS: 'code',
25368
26300
  WLN_REISSUE_GOODS: 'tradeNo',
25369
26301
  KM_REISSUE_GOODS: 'sid',
25370
26302
  KM_RETURN_GOODS: 'sid',
@@ -25400,7 +26332,6 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
25400
26332
  _ref$isReloadSelectTa = _ref.isReloadSelectTable,
25401
26333
  isReloadSelectTable = _ref$isReloadSelectTa === void 0 ? false : _ref$isReloadSelectTa,
25402
26334
  validSystemOrderFn = _ref.validSystemOrderFn;
25403
- console.log('systemOrders---', systemOrders);
25404
26335
  var _useState = useState(),
25405
26336
  _useState2 = _slicedToArray(_useState, 2),
25406
26337
  selectSystemNo = _useState2[0],
@@ -25672,6 +26603,8 @@ var GoodItem$1 = function GoodItem(props) {
25672
26603
  otherOperations = _props$otherOperation === void 0 ? null : _props$otherOperation,
25673
26604
  _props$canUpdateNumbe = props.canUpdateNumber,
25674
26605
  canUpdateNumber = _props$canUpdateNumbe === void 0 ? false : _props$canUpdateNumbe,
26606
+ _props$notAllowedOper = props.notAllowedOperation,
26607
+ notAllowedOperation = _props$notAllowedOper === void 0 ? false : _props$notAllowedOper,
25675
26608
  shopCode = props.shopCode,
25676
26609
  _props$companyKey = props.companyKey,
25677
26610
  companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
@@ -25695,7 +26628,7 @@ var GoodItem$1 = function GoodItem(props) {
25695
26628
  // const isShowSelectTradeGoods =
25696
26629
  // type !== 'JST_EXCHANGE_GOODS' || jstReturnGoods?.jstSystemOrderNo;
25697
26630
  // 判断是否为是否展示系统单筛选项
25698
- 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;
26631
+ var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'DXD_GOODS', 'DXD_SUPPLIERS', 'TTX_GOODS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
25699
26632
  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;
25700
26633
  var refModal = useRef();
25701
26634
  console.debug('表格数据', value);
@@ -25793,6 +26726,7 @@ var GoodItem$1 = function GoodItem(props) {
25793
26726
  case 'JKY_REISSUE_GOODS':
25794
26727
  case 'DXD_GOODS':
25795
26728
  case 'DXD_SUPPLIERS':
26729
+ case 'TTX_GOODS':
25796
26730
  case 'WLN_REISSUE_GOODS':
25797
26731
  case 'SKX_GOODS':
25798
26732
  case 'SKX_RETURN_GOODS':
@@ -25858,7 +26792,9 @@ var GoodItem$1 = function GoodItem(props) {
25858
26792
  });
25859
26793
  // 如果列应该显示(show不为false)或者有验证器,则返回对应的列配置
25860
26794
  if (currentCol && (col.show !== false || (currentCol === null || currentCol === void 0 ? void 0 : currentCol.validator))) {
25861
- return currentCol;
26795
+ return _objectSpread2(_objectSpread2({}, currentCol), {}, {
26796
+ width: resolveColumnWidth(col.width, currentCol.width)
26797
+ });
25862
26798
  }
25863
26799
  return undefined;
25864
26800
  }).filter(Boolean);
@@ -25880,14 +26816,14 @@ var GoodItem$1 = function GoodItem(props) {
25880
26816
  render: function render(val, record, index) {
25881
26817
  return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
25882
26818
  index: index,
25883
- hoveredRowIndex: !disabled && (record.canDelete || canDelete) ? hoveredRowIndex : null,
26819
+ hoveredRowIndex: !disabled && !notAllowedOperation && (record.canDelete || canDelete) ? hoveredRowIndex : null,
25884
26820
  handleClick: function handleClick() {
25885
26821
  return handleDelete(record, index);
25886
26822
  }
25887
26823
  });
25888
26824
  }
25889
26825
  }].concat(_toConsumableArray(baseInfoColumns));
25890
- if (!disabled) {
26826
+ if (!disabled && !notAllowedOperation) {
25891
26827
  columnList.push({
25892
26828
  dataIndex: '',
25893
26829
  title: "\u64CD\u4F5C",
@@ -25929,22 +26865,11 @@ var GoodItem$1 = function GoodItem(props) {
25929
26865
  }
25930
26866
  }].concat(_toConsumableArray(list));
25931
26867
  }, [showHeader, value, disabled, hoveredRowIndex]);
25932
- var orderColumns = useMemo(function () {
25933
- var columns = COLUMNS_MAP('', {
25934
- operate: false,
25935
- disabled: true
25936
- })(type);
25937
- return [{
25938
- dataIndex: '',
25939
- title: '序号',
25940
- align: 'center',
25941
- ellipsis: true,
25942
- width: 50,
25943
- render: function render(val, record, index) {
25944
- return /*#__PURE__*/React.createElement("span", null, index + 1);
25945
- }
25946
- }].concat(_toConsumableArray(columns));
25947
- }, []);
26868
+ var tableScrollX = useMemo(function () {
26869
+ return newColumns.reduce(function (total, column) {
26870
+ return total + (Number(column.width) || 0);
26871
+ }, 0);
26872
+ }, [newColumns]);
25948
26873
  var onSubmit = function onSubmit(list) {
25949
26874
  var newList = processGoods$1({
25950
26875
  list: list,
@@ -25984,7 +26909,7 @@ var GoodItem$1 = function GoodItem(props) {
25984
26909
  var validSystemOrder = useMemo(function () {
25985
26910
  return ['GY_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'KM_REISSUE_GOODS'].includes(type) && !hasSelectedSystemOrder;
25986
26911
  }, [type, hasSelectedSystemOrder]);
25987
- return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && (showChangeBtn ? /*#__PURE__*/React.createElement("div", {
26912
+ return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && !notAllowedOperation && (showChangeBtn ? /*#__PURE__*/React.createElement("div", {
25988
26913
  style: {
25989
26914
  float: 'right'
25990
26915
  }
@@ -26024,7 +26949,7 @@ var GoodItem$1 = function GoodItem(props) {
26024
26949
  size: "small",
26025
26950
  pagination: false,
26026
26951
  scroll: {
26027
- x: '100%'
26952
+ x: tableScrollX
26028
26953
  },
26029
26954
  locale: {
26030
26955
  emptyText: '暂无数据'
@@ -26039,7 +26964,7 @@ var GoodItem$1 = function GoodItem(props) {
26039
26964
  }
26040
26965
  };
26041
26966
  }
26042
- })), /*#__PURE__*/React.createElement(TheGoodsModal, {
26967
+ })), showErpGoodsBtn && /*#__PURE__*/React.createElement(TheGoodsModal, {
26043
26968
  ref: refModal,
26044
26969
  onSubmit: onSubmit,
26045
26970
  width: width,
@@ -26190,7 +27115,7 @@ var BsGoods = function BsGoods(props) {
26190
27115
  }));
26191
27116
  };
26192
27117
 
26193
- var _excluded$h = ["value", "onChange", "reasonList", "disabled", "isSettingConfig"];
27118
+ var _excluded$i = ["value", "onChange", "reasonList", "disabled", "isSettingConfig"];
26194
27119
  var BsExchange = function BsExchange(props) {
26195
27120
  var _value$bsExchangeType6, _value$bsExchangeType7, _value$bsExchangeType8;
26196
27121
  var value = props.value,
@@ -26199,7 +27124,7 @@ var BsExchange = function BsExchange(props) {
26199
27124
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
26200
27125
  disabled = props.disabled,
26201
27126
  isSettingConfig = props.isSettingConfig,
26202
- other = _objectWithoutProperties(props, _excluded$h);
27127
+ other = _objectWithoutProperties(props, _excluded$i);
26203
27128
  var valueRef = useRef({});
26204
27129
  useEffect(function () {
26205
27130
  valueRef.current = value;
@@ -26438,7 +27363,7 @@ var BsExchange = function BsExchange(props) {
26438
27363
  }))) : null);
26439
27364
  };
26440
27365
 
26441
- var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
27366
+ var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
26442
27367
  var typeMap = {
26443
27368
  BS_REISSUE_GOODS: {
26444
27369
  key: 'bsReissueGoods',
@@ -26464,7 +27389,7 @@ var BsReissue = function BsReissue(props) {
26464
27389
  disabled = props.disabled,
26465
27390
  type = props.type,
26466
27391
  isSettingConfig = props.isSettingConfig,
26467
- other = _objectWithoutProperties(props, _excluded$i);
27392
+ other = _objectWithoutProperties(props, _excluded$j);
26468
27393
  var valueRef = useRef({});
26469
27394
  useEffect(function () {
26470
27395
  var _value$bsReissueType;
@@ -26592,7 +27517,7 @@ var BsReissue = function BsReissue(props) {
26592
27517
  })));
26593
27518
  };
26594
27519
 
26595
- var _excluded$j = ["value", "onChange", "reasonList", "disabled", "isSettingConfig"];
27520
+ var _excluded$k = ["value", "onChange", "reasonList", "disabled", "isSettingConfig"];
26596
27521
  var BsReturnGoods = function BsReturnGoods(props) {
26597
27522
  var value = props.value,
26598
27523
  onChange = props.onChange,
@@ -26600,7 +27525,7 @@ var BsReturnGoods = function BsReturnGoods(props) {
26600
27525
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
26601
27526
  disabled = props.disabled,
26602
27527
  isSettingConfig = props.isSettingConfig,
26603
- other = _objectWithoutProperties(props, _excluded$j);
27528
+ other = _objectWithoutProperties(props, _excluded$k);
26604
27529
  var valueRef = useRef({});
26605
27530
  useEffect(function () {
26606
27531
  pubsub.subscribe('returnSelectList', function (_, data) {
@@ -26720,12 +27645,13 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
26720
27645
  var _data$data, _data$data$trades;
26721
27646
  if (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$trades = _data$data.trades) === null || _data$data$trades === void 0 ? void 0 : _data$data$trades.length) {
26722
27647
  data.data.trades = filterWdtOrders(data === null || data === void 0 ? void 0 : data.data, orderNo).map(function (item) {
26723
- var _tradeStatusMap$data$;
27648
+ var _tradeStatusMap$data$, _warehouseTypeMap$dat;
26724
27649
  return _objectSpread2(_objectSpread2({}, item), {}, {
26725
27650
  billNo: item.tradeNo,
26726
27651
  billType: WDT_ORDER_TYPE_MAP[item.tradeType],
26727
27652
  billTag: item.tagName || item.tags,
26728
27653
  tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus],
27654
+ warehouseType: warehouseTypeMap === null || warehouseTypeMap === void 0 ? void 0 : (_warehouseTypeMap$dat = warehouseTypeMap[data.data.version]) === null || _warehouseTypeMap$dat === void 0 ? void 0 : _warehouseTypeMap$dat[item.warehouseType],
26729
27655
  logisticsName: ExpressData.getInstance('wdt').getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCode, false) || (item === null || item === void 0 ? void 0 : item.logisticsName)
26730
27656
  });
26731
27657
  });
@@ -27079,6 +28005,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
27079
28005
  }
27080
28006
  }).then(function (data) {
27081
28007
  if (data === null || data === void 0 ? void 0 : data.success) {
28008
+ var _data$data, _data$data$doOrders;
28009
+ if (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$doOrders = _data$data.doOrders) === null || _data$data$doOrders === void 0 ? void 0 : _data$data$doOrders.length) {
28010
+ var _data$data2;
28011
+ (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.doOrders.forEach(function (item) {
28012
+ item.platformOrderNo = data.platformOrderNo;
28013
+ item.shopCode = data.shopCode;
28014
+ item.shopName = data.shopName;
28015
+ item.split = data.split;
28016
+ });
28017
+ }
27082
28018
  resolve((data === null || data === void 0 ? void 0 : data.data) || {});
27083
28019
  // 延迟10秒清除,保证订单的时效性
27084
28020
  setTimeout(function () {
@@ -27098,13 +28034,43 @@ var dxdUtils = {
27098
28034
  };
27099
28035
 
27100
28036
  var singletonMap$9 = new Map();
28037
+ var normalizeOrder = function normalizeOrder(entry) {
28038
+ return _objectSpread2(_objectSpread2({}, (entry === null || entry === void 0 ? void 0 : entry.header) || entry), {}, {
28039
+ details: (entry === null || entry === void 0 ? void 0 : entry.details) || []
28040
+ });
28041
+ };
28042
+ var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
28043
+ if (!singletonMap$9.has(orderNo)) {
28044
+ var promise = extendRequest('/qy/gdfw/ttx/erp/orderDetail', {
28045
+ method: 'post',
28046
+ data: {
28047
+ sourceOrderCode: orderNo
28048
+ }
28049
+ }).then(function (response) {
28050
+ var data = response === null || response === void 0 ? void 0 : response.data;
28051
+ return Array.isArray(data) ? data.map(normalizeOrder) : [];
28052
+ });
28053
+ singletonMap$9.set(orderNo, promise);
28054
+ promise.finally(function () {
28055
+ setTimeout(function () {
28056
+ return singletonMap$9.delete(orderNo);
28057
+ }, 10000);
28058
+ });
28059
+ }
28060
+ return singletonMap$9.get(orderNo);
28061
+ };
28062
+ var ttxUtils = {
28063
+ getOrderListSingleton: getOrderListSingleton$3
28064
+ };
28065
+
28066
+ var singletonMap$a = new Map();
27101
28067
  var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
27102
28068
  var cacheKey = "".concat(params.orderNo, "_").concat(params.shopId);
27103
- if (!singletonMap$9.has(cacheKey)) {
28069
+ if (!singletonMap$a.has(cacheKey)) {
27104
28070
  var p = new Promise(function (resolve, reject) {
27105
28071
  var doReject = function doReject(err) {
27106
28072
  // 清空掉错误的请求记录
27107
- singletonMap$9.delete(cacheKey);
28073
+ singletonMap$a.delete(cacheKey);
27108
28074
  reject(err);
27109
28075
  };
27110
28076
  extendRequest('/qy/gdfw/order/queryTradeAfterSaleList', {
@@ -27115,28 +28081,28 @@ var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
27115
28081
  resolve(res.data || []);
27116
28082
  // 延迟10秒清除,保证订单的时效性
27117
28083
  setTimeout(function () {
27118
- singletonMap$9.delete(cacheKey);
28084
+ singletonMap$a.delete(cacheKey);
27119
28085
  }, 1000 * 10);
27120
28086
  } else {
27121
28087
  doReject(res);
27122
28088
  }
27123
28089
  }).catch(doReject);
27124
28090
  });
27125
- singletonMap$9.set(cacheKey, p);
28091
+ singletonMap$a.set(cacheKey, p);
27126
28092
  }
27127
- return singletonMap$9.get(cacheKey);
28093
+ return singletonMap$a.get(cacheKey);
27128
28094
  };
27129
28095
  var platformUtils = {
27130
28096
  getAfterSalesOrderList: getAfterSalesOrderList
27131
28097
  };
27132
28098
 
27133
- var singletonMap$a = new Map();
27134
- var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
27135
- if (!singletonMap$a.has(orderNo)) {
28099
+ var singletonMap$b = new Map();
28100
+ var getOrderListSingleton$4 = function getOrderListSingleton(orderNo) {
28101
+ if (!singletonMap$b.has(orderNo)) {
27136
28102
  var p = new Promise(function (resolve, reject) {
27137
28103
  var doReject = function doReject(err) {
27138
28104
  // 清空掉错误的请求记录
27139
- singletonMap$a.delete(orderNo);
28105
+ singletonMap$b.delete(orderNo);
27140
28106
  reject(err);
27141
28107
  };
27142
28108
  extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
@@ -27162,24 +28128,23 @@ var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
27162
28128
  }
27163
28129
  // 延迟10秒清除,保证订单的时效性
27164
28130
  setTimeout(function () {
27165
- singletonMap$a.delete(orderNo);
28131
+ singletonMap$b.delete(orderNo);
27166
28132
  }, 1000 * 10);
27167
28133
  } else {
27168
28134
  doReject(data);
27169
28135
  }
27170
28136
  }).catch(doReject);
27171
28137
  });
27172
- singletonMap$a.set(orderNo, p);
28138
+ singletonMap$b.set(orderNo, p);
27173
28139
  }
27174
- return singletonMap$a.get(orderNo);
28140
+ return singletonMap$b.get(orderNo);
27175
28141
  };
27176
28142
  var kmUtils = {
27177
- getOrderListSingleton: getOrderListSingleton$3
28143
+ getOrderListSingleton: getOrderListSingleton$4
27178
28144
  };
27179
28145
 
27180
- var _excluded$k = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
27181
- _excluded2 = ["shopCode"],
27182
- _excluded3 = ["doOrders", "isSplit", "billNo", "billType", "billTag", "sysStatus"];
28146
+ var _excluded$l = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
28147
+ _excluded2 = ["shopCode"];
27183
28148
  var columnsMap = {
27184
28149
  BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
27185
28150
  KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
@@ -27192,7 +28157,8 @@ var columnsMap = {
27192
28157
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
27193
28158
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
27194
28159
  PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns,
27195
- DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
28160
+ DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns,
28161
+ TTX_SYSTEM_ORDER: TTX_SYSTEM_ORDER_CONFIG.columns
27196
28162
  };
27197
28163
  var rowKeyMap = {
27198
28164
  BS_SYSTEM_ORDER: 'billNo',
@@ -27206,7 +28172,8 @@ var rowKeyMap = {
27206
28172
  JKY_SYSTEM_ORDER: 'tradeNo',
27207
28173
  WDT_RETURN_BILL_NO: 'refundNo',
27208
28174
  PLATFORM_AFTER_SALES_ORDER: 'afterSaleOrderId',
27209
- DXD_SYSTEM_ORDER: 'billNo'
28175
+ DXD_SYSTEM_ORDER: 'billNo',
28176
+ TTX_SYSTEM_ORDER: 'code'
27210
28177
  };
27211
28178
  var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
27212
28179
  var index$2 = (function (props) {
@@ -27272,6 +28239,8 @@ var index$2 = (function (props) {
27272
28239
  getJkyOrderList(value.orderNo);
27273
28240
  } else if (type === 'DXD_SYSTEM_ORDER') {
27274
28241
  getDxdOrderList(value.orderNo);
28242
+ } else if (type === 'TTX_SYSTEM_ORDER') {
28243
+ getTtxOrderList(value.orderNo);
27275
28244
  } else if (type === 'PLATFORM_AFTER_SALES_ORDER') {
27276
28245
  value.shopId && getPlatformAfterSalesOrderList(value.orderNo, value.shopId);
27277
28246
  }
@@ -27347,6 +28316,14 @@ var index$2 = (function (props) {
27347
28316
  false: '否'
27348
28317
  };
27349
28318
  }
28319
+ if (type === 'TTX_SYSTEM_ORDER') {
28320
+ map['internalOrderType'] = _objectSpread2({}, TTX_INTERNAL_ORDER_TYPE_MAP);
28321
+ map['status'] = _objectSpread2({}, TTX_STATUS_MAP);
28322
+ map['split'] = {
28323
+ '1': '拆单',
28324
+ '0': ''
28325
+ };
28326
+ }
27350
28327
  return map;
27351
28328
  }, [type]);
27352
28329
  // 过滤后的表格数据 - 根据选中字段和关键词模糊匹配(不区分大小写)
@@ -27585,7 +28562,7 @@ var index$2 = (function (props) {
27585
28562
  vipCode = _ref9.vipCode,
27586
28563
  shopCode = _ref9.shopCode,
27587
28564
  cancel = _ref9.cancel,
27588
- rest = _objectWithoutProperties(_ref9, _excluded$k);
28565
+ rest = _objectWithoutProperties(_ref9, _excluded$l);
27589
28566
  return _objectSpread2(_objectSpread2({}, rest), {}, {
27590
28567
  billNo: billNo,
27591
28568
  billType: billType,
@@ -27694,44 +28671,17 @@ var index$2 = (function (props) {
27694
28671
  return _regeneratorRuntime().wrap(function _callee11$(_context11) {
27695
28672
  while (1) switch (_context11.prev = _context11.next) {
27696
28673
  case 0:
27697
- dxdUtils.getOrderListSingleton(orderNo).then(function (trades) {
27698
- var formatDxdOrders = (trades || []).reduce(function (prv, trade) {
27699
- var _ref15 = trade || {},
27700
- _ref15$doOrders = _ref15.doOrders,
27701
- doOrders = _ref15$doOrders === void 0 ? [] : _ref15$doOrders,
27702
- isSplit = _ref15.isSplit,
27703
- billNo = _ref15.billNo,
27704
- billType = _ref15.billType,
27705
- billTag = _ref15.billTag,
27706
- sysStatus = _ref15.sysStatus,
27707
- restTrade = _objectWithoutProperties(_ref15, _excluded3);
27708
- if (!doOrders.length) {
27709
- prv.push(_objectSpread2(_objectSpread2({}, restTrade), {}, {
27710
- billNo: billNo,
27711
- billType: billType,
27712
- billTag: billTag,
27713
- sysStatus: sysStatus,
27714
- isSplit: isSplit,
27715
- rowKey: billNo
27716
- }));
27717
- return prv;
27718
- }
27719
- doOrders.forEach(function (doOrder, index) {
27720
- var currentOrderNo = doOrder === null || doOrder === void 0 ? void 0 : doOrder.orderNo;
27721
- prv.push(_objectSpread2(_objectSpread2(_objectSpread2({}, restTrade), doOrder), {}, {
27722
- billNo: billNo,
27723
- billType: billType,
27724
- billTag: billTag,
27725
- sysStatus: sysStatus,
27726
- isSplit: isSplit,
27727
- rowKey: currentOrderNo ? "".concat(billNo, "_").concat(currentOrderNo) : "".concat(billNo, "_").concat(index)
27728
- }));
28674
+ dxdUtils.getOrderListSingleton(orderNo).then(function (trade) {
28675
+ var _trade$doOrders;
28676
+ var data = (_trade$doOrders = trade.doOrders) === null || _trade$doOrders === void 0 ? void 0 : _trade$doOrders.map(function (order) {
28677
+ return _objectSpread2(_objectSpread2({}, order), {}, {
28678
+ billNo: order.orderNo,
28679
+ billType: (trade === null || trade === void 0 ? void 0 : trade.split) ? '拆分订单' : '普通订单'
27729
28680
  });
27730
- return prv;
27731
- }, []);
28681
+ });
27732
28682
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
27733
- orders: formatDxdOrders,
27734
- showOrderInfo: formatDxdOrders
28683
+ orders: data || [],
28684
+ showOrderInfo: data || []
27735
28685
  }));
27736
28686
  });
27737
28687
  onceRef.current = false;
@@ -27745,6 +28695,34 @@ var index$2 = (function (props) {
27745
28695
  return _ref14.apply(this, arguments);
27746
28696
  };
27747
28697
  }();
28698
+ var getTtxOrderList = /*#__PURE__*/function () {
28699
+ var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(orderNo) {
28700
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
28701
+ while (1) switch (_context12.prev = _context12.next) {
28702
+ case 0:
28703
+ ttxUtils.getOrderListSingleton(orderNo).then(function (data) {
28704
+ var orders = (data || []).map(function (order) {
28705
+ return _objectSpread2(_objectSpread2({}, order), {}, {
28706
+ code: order.code || order.orderCode || order.orderNo,
28707
+ billNo: order.code || order.orderCode || order.orderNo
28708
+ });
28709
+ });
28710
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
28711
+ orders: orders,
28712
+ showOrderInfo: orders
28713
+ }));
28714
+ });
28715
+ onceRef.current = false;
28716
+ case 2:
28717
+ case "end":
28718
+ return _context12.stop();
28719
+ }
28720
+ }, _callee12);
28721
+ }));
28722
+ return function getTtxOrderList(_x13) {
28723
+ return _ref15.apply(this, arguments);
28724
+ };
28725
+ }();
27748
28726
  var rowKey = rowKeyMap[type] || 'billNo';
27749
28727
  var handleRadioChange = function handleRadioChange(record) {
27750
28728
  var _value$selectIds;
@@ -28219,16 +29197,16 @@ var orderSubFormConstants = {
28219
29197
  };
28220
29198
 
28221
29199
  var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
28222
- var singletonMap$b = new Map();
28223
- var getOrderListSingleton$4 = function getOrderListSingleton(parmas) {
29200
+ var singletonMap$c = new Map();
29201
+ var getOrderListSingleton$5 = function getOrderListSingleton(parmas) {
28224
29202
  var orderNo = parmas.orderNo,
28225
29203
  shopId = parmas.shopId;
28226
29204
  var key = "".concat(orderNo, "-").concat(shopId);
28227
- if (!singletonMap$b.has(key)) {
29205
+ if (!singletonMap$c.has(key)) {
28228
29206
  var p = new Promise(function (resolve, reject) {
28229
29207
  var doReject = function doReject(err) {
28230
29208
  // 清空掉错误的请求记录
28231
- singletonMap$b.delete(key);
29209
+ singletonMap$c.delete(key);
28232
29210
  reject(err);
28233
29211
  };
28234
29212
  extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
@@ -28244,16 +29222,16 @@ var getOrderListSingleton$4 = function getOrderListSingleton(parmas) {
28244
29222
  }
28245
29223
  // 延迟10秒清除,保证订单的时效性
28246
29224
  setTimeout(function () {
28247
- singletonMap$b.delete(key);
29225
+ singletonMap$c.delete(key);
28248
29226
  }, 1000 * 10);
28249
29227
  } else {
28250
29228
  doReject(data);
28251
29229
  }
28252
29230
  }).catch(doReject);
28253
29231
  });
28254
- singletonMap$b.set(key, p);
29232
+ singletonMap$c.set(key, p);
28255
29233
  }
28256
- return singletonMap$b.get(key);
29234
+ return singletonMap$c.get(key);
28257
29235
  };
28258
29236
  var renderEditItem = function renderEditItem(_ref) {
28259
29237
  var item = _ref.item,
@@ -28385,7 +29363,7 @@ var renderDetailItem = function renderDetailItem(_ref2) {
28385
29363
  return Component;
28386
29364
  };
28387
29365
  var utils = {
28388
- getOrderListSingleton: getOrderListSingleton$4,
29366
+ getOrderListSingleton: getOrderListSingleton$5,
28389
29367
  renderEditItem: renderEditItem,
28390
29368
  renderDetailItem: renderDetailItem
28391
29369
  };
@@ -28393,7 +29371,7 @@ var utils = {
28393
29371
  var getOrderSubformColumns$1 = orderSubFormConstants.getOrderSubformColumns;
28394
29372
  var renderEditItem$1 = utils.renderEditItem,
28395
29373
  renderDetailItem$1 = utils.renderDetailItem,
28396
- getOrderListSingleton$5 = utils.getOrderListSingleton;
29374
+ getOrderListSingleton$6 = utils.getOrderListSingleton;
28397
29375
  var OrderSubForm = function OrderSubForm(props) {
28398
29376
  var _props$value = props.value,
28399
29377
  value = _props$value === void 0 ? {} : _props$value,
@@ -28595,7 +29573,7 @@ var OrderSubForm = function OrderSubForm(props) {
28595
29573
  var JOIN_SHOP = shopList === null || shopList === void 0 ? void 0 : shopList.find(function (item) {
28596
29574
  return !item.notJoin && item.shopId == shopId;
28597
29575
  });
28598
- return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$5({
29576
+ return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$6({
28599
29577
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
28600
29578
  shopId: shopId
28601
29579
  }).then(function (data) {
@@ -28692,6 +29670,9 @@ var isErpType$1 = {
28692
29670
  },
28693
29671
  isDxd: function isDxd(type) {
28694
29672
  return ['DXD_GOODS', 'DXD_SUPPLIERS'].includes(type);
29673
+ },
29674
+ isTtx: function isTtx(type) {
29675
+ return ['TTX_GOODS'].includes(type);
28695
29676
  }
28696
29677
  };
28697
29678
  var processAllOrders = function processAllOrders(_ref) {
@@ -28726,7 +29707,13 @@ var processAllOrders = function processAllOrders(_ref) {
28726
29707
  });
28727
29708
  } else if (isErpType$1.isDxd(type)) {
28728
29709
  // DXD 选品用出库订单 doOrders(每项含 skus[])
28729
- newList = (data === null || data === void 0 ? void 0 : data.doOrders) || [];
29710
+ newList = processDxdOrders({
29711
+ data: data
29712
+ });
29713
+ } else if (isErpType$1.isTtx(type)) {
29714
+ newList = processTtxOrders({
29715
+ data: data
29716
+ });
28730
29717
  } else {
28731
29718
  newList = processDefaultOrders({
28732
29719
  data: data
@@ -28773,8 +29760,32 @@ var processWlnOrders = function processWlnOrders(_ref6) {
28773
29760
  var data = _ref6.data;
28774
29761
  return (data === null || data === void 0 ? void 0 : data.orders) || [];
28775
29762
  };
28776
- var processDefaultOrders = function processDefaultOrders(_ref7) {
29763
+ var processDxdOrders = function processDxdOrders(_ref7) {
29764
+ var _data$doOrders;
28777
29765
  var data = _ref7.data;
29766
+ var _ref8 = data || {},
29767
+ isSplit = _ref8.isSplit,
29768
+ billNo = _ref8.billNo,
29769
+ billType = _ref8.billType,
29770
+ billTag = _ref8.billTag,
29771
+ sysStatus = _ref8.sysStatus;
29772
+ var trades = (_data$doOrders = data.doOrders) === null || _data$doOrders === void 0 ? void 0 : _data$doOrders.map(function (item) {
29773
+ return _objectSpread2(_objectSpread2({}, item), {}, {
29774
+ billNo: billNo,
29775
+ billType: billType,
29776
+ billTag: billTag,
29777
+ isSplit: isSplit,
29778
+ sysStatus: sysStatus
29779
+ });
29780
+ });
29781
+ return trades;
29782
+ };
29783
+ var processTtxOrders = function processTtxOrders(_ref9) {
29784
+ var data = _ref9.data;
29785
+ return Array.isArray(data) ? data : [];
29786
+ };
29787
+ var processDefaultOrders = function processDefaultOrders(_ref10) {
29788
+ var data = _ref10.data;
28778
29789
  return data || [];
28779
29790
  };
28780
29791
 
@@ -29063,6 +30074,23 @@ var componentMap$2 = {
29063
30074
  changeShopCode: 'dxdSuppliersChangeShopCode'
29064
30075
  }
29065
30076
  },
30077
+ TTX_GOODS: {
30078
+ type: 'ttx',
30079
+ key: 'ttxGoods',
30080
+ name: '通天晓',
30081
+ orderNo: 'code',
30082
+ goodDetailOrderNo: 'code',
30083
+ hiddenErpGoodsBtn: true,
30084
+ eventNameMap: {
30085
+ type: 'ttxType',
30086
+ updateGoodsHandle: updateTtxGoodsHandle,
30087
+ selectListReturn: 'ttxSelectListReturn',
30088
+ selectList: 'ttxSelectList',
30089
+ changeShopCode: 'ttxChangeShopCode',
30090
+ deleteGood: 'ttxDeleteGood'
30091
+ },
30092
+ getOrderList: ttxUtils.getOrderListSingleton
30093
+ },
29066
30094
  WLN_GOODS: {
29067
30095
  type: 'jky',
29068
30096
  key: 'wlnGoods',
@@ -29129,13 +30157,13 @@ var componentMap$2 = {
29129
30157
  var CommonGoods = function CommonGoods(props) {
29130
30158
  var _componentMap$compTyp, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7, _componentMap$compTyp8;
29131
30159
  var value = props.value,
29132
- rawDisabled = props.disabled,
30160
+ disabled = props.disabled,
29133
30161
  onChange = props.onChange,
29134
30162
  compType = props.type;
29135
30163
  // DXD_SUPPLIERS 纯镜像 DXD_GOODS(由 FormRender useWatch 联动同步增删),禁用独立增删
29136
- var disabled = rawDisabled || compType === 'DXD_SUPPLIERS';
29137
30164
  // console.log('value?.orders', value?.orders);
29138
30165
  // 合并单订单会包含","
30166
+ var notAllowedOperation = ['DXD_SUPPLIERS'].includes(compType);
29139
30167
  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) {
29140
30168
  var _order$componentMap$c;
29141
30169
  return order === null || order === void 0 ? void 0 : (_order$componentMap$c = order[componentMap$2[compType].orderNo]) === null || _order$componentMap$c === void 0 ? void 0 : _order$componentMap$c.includes(',');
@@ -29493,7 +30521,6 @@ var CommonGoods = function CommonGoods(props) {
29493
30521
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
29494
30522
  type: compType
29495
30523
  });
29496
- console.log('list---', list);
29497
30524
  onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
29498
30525
  allOrders: list || []
29499
30526
  }));
@@ -29523,6 +30550,7 @@ var CommonGoods = function CommonGoods(props) {
29523
30550
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
29524
30551
  showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
29525
30552
  showErpGoodsBtn: !((_componentMap$compTyp8 = componentMap$2[compType]) === null || _componentMap$compTyp8 === void 0 ? void 0 : _componentMap$compTyp8.hiddenErpGoodsBtn),
30553
+ notAllowedOperation: notAllowedOperation,
29526
30554
  tradeGoods: {
29527
30555
  originDataSource: originDataSource,
29528
30556
  getDataSourceAsync: getDataSourceAsync,
@@ -29934,7 +30962,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
29934
30962
  })));
29935
30963
  };
29936
30964
 
29937
- var _excluded$l = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
30965
+ var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
29938
30966
  var typeMap$1 = {
29939
30967
  WDT_REISSUE_GOODS: {
29940
30968
  key: 'wdtReissueGoods',
@@ -29964,7 +30992,7 @@ var wdtReissue = function wdtReissue(props) {
29964
30992
  disabled = props.disabled,
29965
30993
  type = props.type,
29966
30994
  isSettingConfig = props.isSettingConfig,
29967
- other = _objectWithoutProperties(props, _excluded$l);
30995
+ other = _objectWithoutProperties(props, _excluded$m);
29968
30996
  var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
29969
30997
  var _order$srcTid;
29970
30998
  return order === null || order === void 0 ? void 0 : (_order$srcTid = order.srcTid) === null || _order$srcTid === void 0 ? void 0 : _order$srcTid.includes(',');
@@ -30188,7 +31216,7 @@ var wdtReissue = function wdtReissue(props) {
30188
31216
  })));
30189
31217
  };
30190
31218
 
30191
- var _excluded$m = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
31219
+ var _excluded$n = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
30192
31220
  var typeMap$2 = {
30193
31221
  JST_REISSUE_GOODS: {
30194
31222
  compType: '补发',
@@ -30339,7 +31367,7 @@ var PublicReissue = function PublicReissue(props) {
30339
31367
  disabled = props.disabled,
30340
31368
  type = props.type,
30341
31369
  isSettingConfig = props.isSettingConfig,
30342
- other = _objectWithoutProperties(props, _excluded$m);
31370
+ other = _objectWithoutProperties(props, _excluded$n);
30343
31371
  var showModeBtn = ((_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.checkShowModeBtn) ? typeMap$2[type].checkShowModeBtn(value) : !!((_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.showModeBtn) || false;
30344
31372
  var getOrderFlag = useRef(false);
30345
31373
  var _useState = useState(false),
@@ -31204,12 +32232,12 @@ var Goods$1 = function Goods(props, ref) {
31204
32232
  };
31205
32233
  var index$3 = /*#__PURE__*/forwardRef(Goods$1);
31206
32234
 
31207
- var _excluded$n = ["onChange", "value", "failValue"];
32235
+ var _excluded$o = ["onChange", "value", "failValue"];
31208
32236
  function CommonStatus(props) {
31209
32237
  var onChange = props.onChange,
31210
32238
  value = props.value,
31211
32239
  failValue = props.failValue,
31212
- other = _objectWithoutProperties(props, _excluded$n);
32240
+ other = _objectWithoutProperties(props, _excluded$o);
31213
32241
  var changeHandle = function changeHandle(val) {
31214
32242
  onChange === null || onChange === void 0 ? void 0 : onChange({
31215
32243
  status: val,
@@ -31348,7 +32376,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
31348
32376
  })) : null) : null);
31349
32377
  };
31350
32378
 
31351
- var _excluded$o = ["value", "onChange", "disabled", "failValue", "type"];
32379
+ var _excluded$p = ["value", "onChange", "disabled", "failValue", "type"];
31352
32380
  var CommonSystemOrder$1 = function CommonSystemOrder(props) {
31353
32381
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
31354
32382
  var _props$value = props.value,
@@ -31358,7 +32386,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
31358
32386
  failValue = props.failValue,
31359
32387
  _props$type = props.type,
31360
32388
  type = _props$type === void 0 ? 1 : _props$type,
31361
- other = _objectWithoutProperties(props, _excluded$o);
32389
+ other = _objectWithoutProperties(props, _excluded$p);
31362
32390
  var _useState = useState(0),
31363
32391
  _useState2 = _slicedToArray(_useState, 2),
31364
32392
  changeIndex = _useState2[0],
@@ -31424,7 +32452,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
31424
32452
  }, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null));
31425
32453
  };
31426
32454
 
31427
- var _excluded$p = ["value", "onChange", "disabled", "failValue", "type"];
32455
+ var _excluded$q = ["value", "onChange", "disabled", "failValue", "type"];
31428
32456
  var MsgStatus = function MsgStatus(props) {
31429
32457
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3;
31430
32458
  var _props$value = props.value,
@@ -31434,7 +32462,7 @@ var MsgStatus = function MsgStatus(props) {
31434
32462
  failValue = props.failValue,
31435
32463
  _props$type = props.type,
31436
32464
  type = _props$type === void 0 ? 1 : _props$type,
31437
- other = _objectWithoutProperties(props, _excluded$p);
32465
+ other = _objectWithoutProperties(props, _excluded$q);
31438
32466
  var _useState = useState(0),
31439
32467
  _useState2 = _slicedToArray(_useState, 2),
31440
32468
  changeIndex = _useState2[0],
@@ -31503,7 +32531,7 @@ var CalculationInput = function CalculationInput(props) {
31503
32531
  }, config === null || config === void 0 ? void 0 : config.unit));
31504
32532
  };
31505
32533
 
31506
- var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
32534
+ var _excluded$r = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
31507
32535
  var typeMap$3 = {
31508
32536
  BS_E3_REISSUE_GOODS: {
31509
32537
  key: 'bsE3ReissueGoods',
@@ -31523,7 +32551,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
31523
32551
  disabled = props.disabled,
31524
32552
  type = props.type,
31525
32553
  isSettingConfig = props.isSettingConfig,
31526
- other = _objectWithoutProperties(props, _excluded$q);
32554
+ other = _objectWithoutProperties(props, _excluded$r);
31527
32555
  var getOrderFlag = useRef(false);
31528
32556
  var valueRef = useRef(null);
31529
32557
  var _useState = useState(false),
@@ -31762,7 +32790,7 @@ var css_248z$h = ".index-module_systemNoDisabled__1s7aJ.ant-select-item-option-d
31762
32790
  var styles$6 = {"systemNoDisabled":"index-module_systemNoDisabled__1s7aJ"};
31763
32791
  styleInject(css_248z$h);
31764
32792
 
31765
- var _excluded$r = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
32793
+ var _excluded$s = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
31766
32794
  _excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
31767
32795
  var typeMap$4 = {
31768
32796
  GY_REISSUE_GOODS: {
@@ -31793,7 +32821,7 @@ var GyReissue = function GyReissue(props) {
31793
32821
  disabled = props.disabled,
31794
32822
  type = props.type,
31795
32823
  isSettingConfig = props.isSettingConfig,
31796
- other = _objectWithoutProperties(props, _excluded$r);
32824
+ other = _objectWithoutProperties(props, _excluded$s);
31797
32825
  // const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
31798
32826
  // order?.platformCode?.includes(';'),
31799
32827
  // );
@@ -32087,7 +33115,7 @@ var GyReissue = function GyReissue(props) {
32087
33115
  })));
32088
33116
  };
32089
33117
 
32090
- var _excluded$s = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
33118
+ var _excluded$t = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
32091
33119
  _excluded2$2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
32092
33120
  var typeMap$5 = {
32093
33121
  GY_RETURN_GOODS: {
@@ -32117,7 +33145,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
32117
33145
  disabled = props.disabled,
32118
33146
  type = props.type,
32119
33147
  isSettingConfig = props.isSettingConfig,
32120
- other = _objectWithoutProperties(props, _excluded$s);
33148
+ other = _objectWithoutProperties(props, _excluded$t);
32121
33149
  var valueRef = useRef({});
32122
33150
  var getOrderFlag = useRef(false);
32123
33151
  var _useState = useState(false),
@@ -32389,7 +33417,7 @@ var css_248z$i = ".index-module_imageBox__1f2AI {\n display: flex;\n flex-wrap
32389
33417
  var styles$7 = {"imageBox":"index-module_imageBox__1f2AI","addBtn":"index-module_addBtn__1DY59","tips":"index-module_tips__1XQjf"};
32390
33418
  styleInject(css_248z$i);
32391
33419
 
32392
- var _excluded$t = ["maxCount", "maxSize", "onChange", "value", "disabled", "hostUrl", "canDownload", "actionUrl"];
33420
+ var _excluded$u = ["maxCount", "maxSize", "onChange", "value", "disabled", "hostUrl", "canDownload", "actionUrl"];
32393
33421
  var Dragger$1 = Upload.Dragger;
32394
33422
  var fn$4 = function fn() {
32395
33423
  return void 0;
@@ -32412,7 +33440,7 @@ var KmVideo = function KmVideo(_ref) {
32412
33440
  canDownload = _ref$canDownload === void 0 ? false : _ref$canDownload,
32413
33441
  _ref$actionUrl = _ref.actionUrl,
32414
33442
  actionUrl = _ref$actionUrl === void 0 ? '/qy/common/uploadWorkOrderImg' : _ref$actionUrl,
32415
- resetProps = _objectWithoutProperties(_ref, _excluded$t);
33443
+ resetProps = _objectWithoutProperties(_ref, _excluded$u);
32416
33444
  var _useState = useState(false),
32417
33445
  _useState2 = _slicedToArray(_useState, 2),
32418
33446
  visible = _useState2[0],
@@ -33021,10 +34049,11 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
33021
34049
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
33022
34050
  JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
33023
34051
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
33024
- DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
34052
+ DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns,
34053
+ TTX_SYSTEM_ORDER: TTX_SYSTEM_ORDER_CONFIG.columns
33025
34054
  };
33026
34055
  var FIELD_COLUMNS_MAP = {
33027
34056
  PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
33028
34057
  };
33029
34058
 
33030
- 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 };
34059
+ 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_SEARCH_FORM_CONFIG, Goods, GoodsReSync, GoodsSearchForm, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MAX_COLUMN_WIDTH, MIN_COLUMN_WIDTH, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, SearchForm, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, YouzanStar, columnsBaseInfoMap, createBsE3SearchFormData, createGySearchFormData, createJkySearchFormData, createJstSearchFormData, createJySearchFormData, createKmSearchFormData, createWdtSearchFormData, createWlnSearchFormData, 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$b as getTtxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, loadWdtBrandOptions, orderSubFormConstants, renderMap, renderSplitMap, resolveColumnWidth, shouldSubmitOnBlur, transformFormData, useGoodsReSyncQuery };