@kmkf-fe-packages/kmkf-utils 2.10.18-rc.0 → 2.10.18-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/constants/constant.d.ts +4 -0
  3. package/dist/esm/constants/constant.js +6 -2
  4. package/dist/esm/constants/index.d.ts +1 -0
  5. package/dist/esm/constants/index.js +1 -0
  6. package/dist/esm/constants/youzan.d.ts +26 -0
  7. package/dist/esm/constants/youzan.js +29 -0
  8. package/dist/esm/global.d.ts +5 -0
  9. package/dist/esm/servers/TTX/index.d.ts +2 -0
  10. package/dist/esm/servers/TTX/index.js +2 -0
  11. package/dist/esm/servers/TTX/logisticsData.d.ts +2 -0
  12. package/dist/esm/servers/TTX/logisticsData.js +20 -0
  13. package/dist/esm/servers/TTX/warehouseData.d.ts +2 -0
  14. package/dist/esm/servers/TTX/warehouseData.js +20 -0
  15. package/dist/esm/servers/index.d.ts +1 -0
  16. package/dist/esm/servers/index.js +2 -0
  17. package/dist/esm/utils/SendData.js +4 -2
  18. package/dist/esm/utils/afterSalesOrder.js +4 -43
  19. package/dist/esm/utils/bsE3OrderBackFormValues.js +2 -25
  20. package/dist/esm/utils/bsOrderBackFormValues.js +2 -25
  21. package/dist/esm/utils/dxdOrderBackFormValues.js +2 -29
  22. package/dist/esm/utils/gyOrderBackFormValues.js +2 -31
  23. package/dist/esm/utils/index.d.ts +2 -1
  24. package/dist/esm/utils/index.js +2 -1
  25. package/dist/esm/utils/jkyOrderBackFormValues.js +2 -31
  26. package/dist/esm/utils/jstOrderBackFormValues.js +4 -43
  27. package/dist/esm/utils/jyOrderBackFormValues.js +2 -31
  28. package/dist/esm/utils/kmOrderBackFormValues.js +2 -26
  29. package/dist/esm/utils/logisticsInterceptionCustomerCode.d.ts +1 -0
  30. package/dist/esm/utils/logisticsInterceptionCustomerCode.js +1 -1
  31. package/dist/esm/utils/orderBackFormValues.js +3 -1
  32. package/dist/esm/utils/platformAfterSalesOrderBackFormValues.js +6 -1
  33. package/dist/esm/utils/skxOrderBackFormValues.js +15 -21
  34. package/dist/esm/utils/skxReturnOrderBackFormValues.js +15 -21
  35. package/dist/esm/utils/transformList.d.ts +0 -1
  36. package/dist/esm/utils/transformList.js +1 -5
  37. package/dist/esm/utils/ttxOrderBackFormValues.d.ts +46 -0
  38. package/dist/esm/utils/ttxOrderBackFormValues.js +358 -0
  39. package/dist/esm/utils/unTransField.js +1 -1
  40. package/dist/esm/utils/wdtOrderBackFormValues.d.ts +27 -2
  41. package/dist/esm/utils/wdtOrderBackFormValues.js +102 -38
  42. package/dist/esm/utils/wlnOrderBackFormValues.js +2 -25
  43. package/package.json +2 -2
package/README.md CHANGED
@@ -1 +1 @@
1
- 11231111111111
1
+ 11231111116
@@ -109,6 +109,10 @@ export declare const DATA_SPLIT_COMPONENT_FIELDS_MAP: {
109
109
  DXD_LOGISTICS: string[];
110
110
  DXD_GOODS: string[];
111
111
  DXD_SUPPLIERS: string[];
112
+ TTX_SYSTEM_ORDER: string[];
113
+ TTX_LOGISTICS: string[];
114
+ TTX_GOODS: string[];
115
+ TTX_SEND_GOOD: string[];
112
116
  };
113
117
  export declare const SEARCH_OPTIONS: {
114
118
  label: string;
@@ -124,7 +124,7 @@ export var SYMBOL = {
124
124
  BETWEEN: "between",
125
125
  EQ: "eq"
126
126
  };
127
- export var hasAddNullComponent = ["RADIO", "SELECT", "CHECKBOX", "BASIC_MULT_SELECT", "FLOW_TAG", "WAREHOUSING_STATUS", "BS_E3_WAREHOUSING_STATUS", "ADJUST_WORK_ORDER_STATUS", "ERP_REMARK", "REISSUE_STATUS", "INVOICE_STATUS", "INVOICING_STATUS", "MSG_STATUS", "AGREE_REFUND_STATUS", "REPAIR_ORDER_STATUS", "ERP_AFTER_SALE_STATUS", "ERP_AFTER_SALES_ORDER_REVIEW_STATUS", "REJECT_REFUND_STATUS", "LOGISTICS_INTERCEPTION", "AGREE_RETURN_GOODS_STATUS", "REJECT_RETURN_GOODS_STATUS", "RETURN_EXCHANGE_GOODS_REVIEW_STATUS", "GY_PAYMENT_METHOD"];
127
+ export var hasAddNullComponent = ["RADIO", "SELECT", "CHECKBOX", "BASIC_MULT_SELECT", "FLOW_TAG", "WAREHOUSING_STATUS", "BS_E3_WAREHOUSING_STATUS", "TTX_WAREHOUSING_STATUS", "ADJUST_WORK_ORDER_STATUS", "ERP_REMARK", "REISSUE_STATUS", "INVOICE_STATUS", "INVOICING_STATUS", "MSG_STATUS", "AGREE_REFUND_STATUS", "REPAIR_ORDER_STATUS", "ERP_AFTER_SALE_STATUS", "ERP_AFTER_SALES_ORDER_REVIEW_STATUS", "REJECT_REFUND_STATUS", "LOGISTICS_INTERCEPTION", "AGREE_RETURN_GOODS_STATUS", "REJECT_RETURN_GOODS_STATUS", "RETURN_EXCHANGE_GOODS_REVIEW_STATUS", "GY_PAYMENT_METHOD"];
128
128
  export var SelectInputComponent = ["INPUT", "TEXTAREA", "SHOP_NAME_INPUT", "BUYER_NICK_INPUT", "RECEIVER_NAME_INPUT", "REMARK_INPUT", "RETURN_GOODS_STATUS", "EXCHANGE_STATUS", "BS_LOGISTICS", "WLN_LOGISTICS", "WDT_LOGISTICS", "KM_LOGISTICS", "GY_LOGISTICS", "JST_LOGISTICS", "DXD_LOGISTICS", "AFTER_SALES_ORDER_ID"];
129
129
 
130
130
  // 表单默认值
@@ -181,7 +181,11 @@ export var DATA_SPLIT_COMPONENT_FIELDS_MAP = {
181
181
  DXD_SYSTEM_ORDER: ["dxdSystemShowOrder"],
182
182
  DXD_LOGISTICS: ["dxdLogisticsList"],
183
183
  DXD_GOODS: ["dxdGoods"],
184
- DXD_SUPPLIERS: ["dxdSuppliers"]
184
+ DXD_SUPPLIERS: ["dxdSuppliers"],
185
+ TTX_SYSTEM_ORDER: ["ttxSystemShowOrder"],
186
+ TTX_LOGISTICS: ["ttxLogisticsList"],
187
+ TTX_GOODS: ["ttxGoods"],
188
+ TTX_SEND_GOOD: ["ttxSendGood"]
185
189
  };
186
190
  export var SEARCH_OPTIONS = [{
187
191
  label: "关键字",
@@ -1,6 +1,7 @@
1
1
  export { default as columnsGoodsList } from "./columnsGoodsList";
2
2
  export { default as componentsOptionsMapping } from "./componentsOptionsMapping";
3
3
  export * from './constant';
4
+ export * from './youzan';
4
5
  export declare const getMapping: (data: {
5
6
  dataIndex: string;
6
7
  title: string;
@@ -1,6 +1,7 @@
1
1
  export { default as columnsGoodsList } from "./columnsGoodsList";
2
2
  export { default as componentsOptionsMapping } from "./componentsOptionsMapping";
3
3
  export * from "./constant";
4
+ export * from "./youzan";
4
5
  export var getMapping = function getMapping(data) {
5
6
  var mapping = {};
6
7
  data.forEach(function (item) {
@@ -0,0 +1,26 @@
1
+ export declare const YOUZAN_SHOP_SOURCE = 25;
2
+ export declare const YOUZAN_FLAG_STAR_MAPPING: readonly [{
3
+ readonly flagNum: "1";
4
+ readonly flagName: "红";
5
+ readonly star: "1";
6
+ }, {
7
+ readonly flagNum: "2";
8
+ readonly flagName: "橙";
9
+ readonly star: "2";
10
+ }, {
11
+ readonly flagNum: "3";
12
+ readonly flagName: "绿";
13
+ readonly star: "3";
14
+ }, {
15
+ readonly flagNum: "4";
16
+ readonly flagName: "蓝";
17
+ readonly star: "4";
18
+ }, {
19
+ readonly flagNum: "5";
20
+ readonly flagName: "紫";
21
+ readonly star: "5";
22
+ }];
23
+ export declare const isYouzanShop: (shop?: {
24
+ shopSource?: string | number;
25
+ } | null) => boolean;
26
+ export declare const normalizeYouzanStar: (value: unknown) => number | undefined;
@@ -0,0 +1,29 @@
1
+ export var YOUZAN_SHOP_SOURCE = 25;
2
+ export var YOUZAN_FLAG_STAR_MAPPING = [{
3
+ flagNum: "1",
4
+ flagName: "红",
5
+ star: "1"
6
+ }, {
7
+ flagNum: "2",
8
+ flagName: "橙",
9
+ star: "2"
10
+ }, {
11
+ flagNum: "3",
12
+ flagName: "绿",
13
+ star: "3"
14
+ }, {
15
+ flagNum: "4",
16
+ flagName: "蓝",
17
+ star: "4"
18
+ }, {
19
+ flagNum: "5",
20
+ flagName: "紫",
21
+ star: "5"
22
+ }];
23
+ export var isYouzanShop = function isYouzanShop(shop) {
24
+ return Number(shop === null || shop === void 0 ? void 0 : shop.shopSource) === YOUZAN_SHOP_SOURCE;
25
+ };
26
+ export var normalizeYouzanStar = function normalizeYouzanStar(value) {
27
+ var star = Number(value);
28
+ return Number.isInteger(star) && star >= 1 && star <= 5 ? star : undefined;
29
+ };
@@ -72,6 +72,11 @@ declare enum TComponentType {
72
72
  DXD_SHOP = "DXD_SHOP",
73
73
  DXD_GOODS = "DXD_GOODS",
74
74
  DXD_SUPPLIERS = "DXD_SUPPLIERS",
75
+ TTX_WAREHOUSING_STATUS = "TTX_WAREHOUSING_STATUS",
76
+ TTX_SYSTEM_ORDER = "TTX_SYSTEM_ORDER",
77
+ TTX_SEND_GOOD = "TTX_SEND_GOOD",
78
+ TTX_LOGISTICS = "TTX_LOGISTICS",
79
+ TTX_GOODS = "TTX_GOODS",
75
80
  BS_SIGNING_TIME = "BS_SIGNING_TIME",
76
81
  BS_SEND_TIME = "BS_SEND_TIME",
77
82
  BS_TRADE_PAYMENT_TIME = "BS_TRADE_PAYMENT_TIME",
@@ -0,0 +1,2 @@
1
+ export { default as getLogisticsDataAsync } from './logisticsData';
2
+ export { default as getWarehouseDataAsync } from './warehouseData';
@@ -0,0 +1,2 @@
1
+ export { default as getLogisticsDataAsync } from "./logisticsData";
2
+ export { default as getWarehouseDataAsync } from "./warehouseData";
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<any[]>;
2
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import request from "../../request";
2
+ export default (function () {
3
+ return request({
4
+ url: '/qy/gdfw/ttx/erp/logistics/list',
5
+ method: 'get',
6
+ data: {}
7
+ }).then(function (res) {
8
+ var list = Array.isArray(res === null || res === void 0 ? void 0 : res.data) ? res.data : [];
9
+ var valueMap = {};
10
+ list.forEach(function (item) {
11
+ if (!(item !== null && item !== void 0 && item.code)) return;
12
+ valueMap[item.code] = {
13
+ label: item.name || item.code,
14
+ value: item.code,
15
+ disabled: String(item.status) === '0'
16
+ };
17
+ });
18
+ return Object.values(valueMap);
19
+ });
20
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<any[]>;
2
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import request from "../../request";
2
+ export default (function () {
3
+ return request({
4
+ url: '/qy/gdfw/ttx/erp/warehouse/list',
5
+ method: 'get',
6
+ data: {}
7
+ }).then(function (res) {
8
+ var list = Array.isArray(res === null || res === void 0 ? void 0 : res.data) ? res.data : [];
9
+ var valueMap = {};
10
+ list.forEach(function (item) {
11
+ if (!(item !== null && item !== void 0 && item.bizCode)) return;
12
+ valueMap[item.bizCode] = {
13
+ label: item.name || item.bizCode,
14
+ value: item.bizCode,
15
+ disabled: String(item.status) === '1'
16
+ };
17
+ });
18
+ return Object.values(valueMap);
19
+ });
20
+ });
@@ -11,6 +11,7 @@ export * as orderSubForm from "./orderSubForm";
11
11
  export * as SKX from "./SKX";
12
12
  export * as JKY from "./JKY";
13
13
  export * as DXD from "./DXD";
14
+ export * as TTX from "./TTX";
14
15
  export * from "./workOrder";
15
16
  export * from "./constants";
16
17
  export declare const queryWdtAddressData: (instance?: WdtAddressData) => Promise<void>;
@@ -25,6 +25,8 @@ import * as _JKY from "./JKY";
25
25
  export { _JKY as JKY };
26
26
  import * as _DXD from "./DXD";
27
27
  export { _DXD as DXD };
28
+ import * as _TTX from "./TTX";
29
+ export { _TTX as TTX };
28
30
  export * from "./workOrder";
29
31
  export * from "./constants";
30
32
  var transformData = function transformData(list) {
@@ -8,7 +8,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
8
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
9
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
10
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
- import { BSE3, WDT, KM, GY, JST, JY, JKY, WLN, DXD } from "../servers/index";
11
+ import { BSE3, WDT, KM, GY, JST, JY, JKY, WLN, DXD, TTX } from "../servers/index";
12
12
  var SendData = /*#__PURE__*/_createClass(function SendData(platform) {
13
13
  var _this = this;
14
14
  _classCallCheck(this, SendData);
@@ -72,7 +72,8 @@ var SendData = /*#__PURE__*/_createClass(function SendData(platform) {
72
72
  jy: JY,
73
73
  jky: JKY,
74
74
  wln: WLN,
75
- dxd: DXD
75
+ dxd: DXD,
76
+ ttx: TTX
76
77
  }[this.platform];
77
78
  });
78
79
  export var SendDataCenter = /*#__PURE__*/function () {
@@ -92,6 +93,7 @@ export var SendDataCenter = /*#__PURE__*/function () {
92
93
  if (platform === "JKY_SEND_GOOD") platform = "jky";
93
94
  if (platform === "WLN_SEND_GOOD") platform = "wln";
94
95
  if (platform === "DXD_SEND_GOOD") platform = "dxd";
96
+ if (platform === "TTX_SEND_GOOD") platform = "ttx";
95
97
  if (!this.instanceMap.has(platform)) {
96
98
  this.instanceMap.set(platform, new SendData(platform));
97
99
  }
@@ -178,45 +178,6 @@ var updateJstItemListHandle = function updateJstItemListHandle(list, type, comLi
178
178
  }
179
179
  return newList;
180
180
  };
181
- var updateJstItemListByConfigHandle = function updateJstItemListByConfigHandle(list, type) {
182
- var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
183
- var showField = config.showField,
184
- enableItemId = config.enableItemId,
185
- enableSupplierName = config.enableSupplierName;
186
- return list === null || list === void 0 ? void 0 : list.reduce(function (prv, next) {
187
- if (type === "logistics") {
188
- if (!["logisticsCompany", ""].includes(showField || "")) {
189
- next.logisticsCompany = undefined;
190
- }
191
- if (!["logisticsCode", ""].includes(showField || "")) {
192
- next.logisticsCode = undefined;
193
- }
194
- } else if (type === "send") {
195
- if (!["sendId", "all"].includes(showField || "")) {
196
- next.sendId = undefined;
197
- }
198
- if (!["sendName", "all"].includes(showField || "")) {
199
- next.sendName = undefined;
200
- }
201
- } else if (type === "supply") {
202
- if (!["supplyId", "all"].includes(showField || "")) {
203
- next.supplyId = undefined;
204
- }
205
- if (!["supplyName", "all"].includes(showField || "")) {
206
- next.supplyName = undefined;
207
- }
208
- } else if (type === "itemList") {
209
- if (!enableItemId) {
210
- next.itemId = undefined;
211
- }
212
- if (!enableSupplierName) {
213
- next.supplierName = undefined;
214
- }
215
- }
216
- prv.push(next);
217
- return prv;
218
- }, []);
219
- };
220
181
  export var jstMergeIdenticalGoods = function jstMergeIdenticalGoods() {
221
182
  var goodDetails = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
222
183
  var list = [];
@@ -272,16 +233,16 @@ export var jstOrderBackFormValues = function jstOrderBackFormValues() {
272
233
  }
273
234
  break;
274
235
  case "JST_ITEM_SELECT_THIRD":
275
- prv[uniqueKey] = updateJstItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jstItemSelectThird, "itemList", config);
236
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jstItemSelectThird;
276
237
  break;
277
238
  case "JST_SUPPLY":
278
- prv[uniqueKey] = updateJstItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jstSupply, "supply", config);
239
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jstSupply;
279
240
  break;
280
241
  case "JST_LOGISTICS":
281
- prv[uniqueKey] = updateJstItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jstLogistics, "logistics", config);
242
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jstLogistics;
282
243
  break;
283
244
  case "JST_SEND_GOOD":
284
- prv[uniqueKey] = updateJstItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jstSendGood, "send", config);
245
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jstSendGood;
285
246
  break;
286
247
  }
287
248
  return prv;
@@ -241,29 +241,6 @@ var updateBsE3SystemItemListHandle = function updateBsE3SystemItemListHandle(lis
241
241
  }
242
242
  return newList;
243
243
  };
244
- var updateBsE3ItemListByConfigHandle = function updateBsE3ItemListByConfigHandle(list, type) {
245
- var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
246
- var showField = config.showField;
247
- return list === null || list === void 0 ? void 0 : list.reduce(function (prv, next) {
248
- if (type === "logistics") {
249
- if (!["logisticsCompany", ""].includes(showField || "")) {
250
- next.logisticsCompany = undefined;
251
- }
252
- if (!["logisticsCode", ""].includes(showField || "")) {
253
- next.logisticsCode = undefined;
254
- }
255
- } else if (type === "send") {
256
- if (!["sendId", "all"].includes(showField || "")) {
257
- next.sendId = undefined;
258
- }
259
- if (!["sendName", "all"].includes(showField || "")) {
260
- next.sendName = undefined;
261
- }
262
- }
263
- prv.push(next);
264
- return prv;
265
- }, []);
266
- };
267
244
  export var bsE3OrderBackFormValues = function bsE3OrderBackFormValues() {
268
245
  var detail = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
269
246
  var templateDetail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -313,10 +290,10 @@ export var bsE3OrderBackFormValues = function bsE3OrderBackFormValues() {
313
290
  // prv[uniqueKey] = detail?.bsReturnGoods;
314
291
  // break;
315
292
  case "BS_E3_LOGISTICS":
316
- prv[uniqueKey] = updateBsE3ItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.bsE3Logistics, "logistics", config);
293
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.bsE3Logistics;
317
294
  break;
318
295
  case "BS_E3_SEND_GOOD":
319
- prv[uniqueKey] = updateBsE3ItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.bsE3SendGood, "send", config);
296
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.bsE3SendGood;
320
297
  break;
321
298
  // case "BS_DELIVERY_NO":
322
299
  // prv[uniqueKey] = detail?.bsDeliveryNo;
@@ -166,29 +166,6 @@ var updateBsSystemItemListHandle = function updateBsSystemItemListHandle(list, t
166
166
  }
167
167
  return newList;
168
168
  };
169
- var updateBsItemListByConfigHandle = function updateBsItemListByConfigHandle(list, type) {
170
- var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
171
- var showField = config.showField;
172
- return list === null || list === void 0 ? void 0 : list.reduce(function (prv, next) {
173
- if (type === "logistics") {
174
- if (!["logisticsCompany", ""].includes(showField || "")) {
175
- next.logisticsCompany = undefined;
176
- }
177
- if (!["logisticsCode", ""].includes(showField || "")) {
178
- next.logisticsCode = undefined;
179
- }
180
- } else if (type === "send") {
181
- if (!["sendId", "all"].includes(showField || "")) {
182
- next.sendId = undefined;
183
- }
184
- if (!["sendName", "all"].includes(showField || "")) {
185
- next.sendName = undefined;
186
- }
187
- }
188
- prv.push(next);
189
- return prv;
190
- }, []);
191
- };
192
169
  export var bsOrderBackFormValues = function bsOrderBackFormValues() {
193
170
  var detail = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
194
171
  var templateDetail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -254,10 +231,10 @@ export var bsOrderBackFormValues = function bsOrderBackFormValues() {
254
231
  }
255
232
  break;
256
233
  case "BS_LOGISTICS":
257
- prv[uniqueKey] = updateBsItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.bsLogistics, "logistics", config);
234
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.bsLogistics;
258
235
  break;
259
236
  case "BS_SEND_GOOD":
260
- prv[uniqueKey] = updateBsItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.bsSendGood, "send", config);
237
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.bsSendGood;
261
238
  break;
262
239
  case "BS_DELIVERY_NO":
263
240
  prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.bsDeliveryNo;
@@ -163,32 +163,6 @@ var updateDxdItemListHandle = function updateDxdItemListHandle(list, type, comLi
163
163
  return newList;
164
164
  };
165
165
 
166
- // 物流/发货仓按 showField 过滤反填字段(参考 KM:只反填组件配置要显示的字段)
167
- var updateDxdItemListByConfigHandle = function updateDxdItemListByConfigHandle(list, type) {
168
- var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
169
- var showField = config.showField;
170
- return list === null || list === void 0 ? void 0 : list.reduce(function (prv, next) {
171
- if (type === "logistics") {
172
- if (!["logisticsCompany", ""].includes(showField || "")) {
173
- next.logisticsCompany = undefined;
174
- }
175
- if (!["logisticsCode", ""].includes(showField || "")) {
176
- next.logisticsCode = undefined;
177
- }
178
- } else if (type === "send") {
179
- if (!["sendId", "all"].includes(showField || "")) {
180
- next.sendId = undefined;
181
- }
182
- if (!["sendName", "all"].includes(showField || "")) {
183
- next.sendName = undefined;
184
- next.sendSnapshotName = undefined;
185
- }
186
- }
187
- prv.push(next);
188
- return prv;
189
- }, []);
190
- };
191
-
192
166
  // DXD 订单数据转换
193
167
  export var dxdOrderTransform = function dxdOrderTransform(detail, form) {
194
168
  var _doOrders$3, _doOrders$4, _doOrders$5, _doOrders$6;
@@ -319,7 +293,6 @@ export var dxdOrderBackFormValues = function dxdOrderBackFormValues() {
319
293
  var templateDetail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
320
294
  return ((templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList) || []).reduce(function (prv, next) {
321
295
  var uniqueKey = next.uniqueKey;
322
- var config = next.componentConfig;
323
296
  switch (next.workOrderComponentType) {
324
297
  case "DXD_SYSTEM_ORDER":
325
298
  prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.dxdSystemOrder;
@@ -328,10 +301,10 @@ export var dxdOrderBackFormValues = function dxdOrderBackFormValues() {
328
301
  prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.dxdGoods;
329
302
  break;
330
303
  case "DXD_LOGISTICS":
331
- prv[uniqueKey] = updateDxdItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.dxdLogistics, "logistics", config);
304
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.dxdLogistics;
332
305
  break;
333
306
  case "DXD_SEND_GOOD":
334
- prv[uniqueKey] = updateDxdItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.dxdSendGood, "send", config);
307
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.dxdSendGood;
335
308
  break;
336
309
  case "DXD_SHOP":
337
310
  prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.shopCode;
@@ -302,10 +302,10 @@ export var gyOrderBackFormValues = function gyOrderBackFormValues() {
302
302
  }
303
303
  break;
304
304
  case "GY_LOGISTICS":
305
- prv[uniqueKey] = updateGyItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.gyLogistics, "logistics", config);
305
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.gyLogistics;
306
306
  break;
307
307
  case "GY_SEND_GOOD":
308
- prv[uniqueKey] = updateGyItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.gySendGood, "send", config);
308
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.gySendGood;
309
309
  break;
310
310
  case "GY_RETURN_GOODS":
311
311
  {
@@ -324,35 +324,6 @@ export var gyOrderBackFormValues = function gyOrderBackFormValues() {
324
324
  return prv;
325
325
  }, {});
326
326
  };
327
- var updateGyItemListByConfigHandle = function updateGyItemListByConfigHandle(list, type) {
328
- var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
329
- var showField = config.showField,
330
- _config$notOrderBack = config.notOrderBack,
331
- notOrderBack = _config$notOrderBack === void 0 ? false : _config$notOrderBack;
332
- if (notOrderBack) {
333
- return list;
334
- }
335
- return list === null || list === void 0 ? void 0 : list.reduce(function (prv, next) {
336
- if (type === "logistics") {
337
- if (!["logisticsCompany", ""].includes(showField || "")) {
338
- next.logisticsCompany = undefined;
339
- }
340
- if (!["logisticsCode", ""].includes(showField || "")) {
341
- next.logisticsCode = undefined;
342
- }
343
- } else if (type === "send") {
344
- if (!["sendId", "all"].includes(showField || "")) {
345
- next.sendId = undefined;
346
- }
347
- if (!["sendName", "all"].includes(showField || "")) {
348
- next.sendName = undefined;
349
- next.sendSnapshotName = undefined;
350
- }
351
- }
352
- prv.push(next);
353
- return prv;
354
- }, []);
355
- };
356
327
 
357
328
  // 管易根据订单号请求返回的platformCode会有多个订单号组合在一起的数据 排除其他的,返回当前订单号
358
329
  export var filterGyOrders = function filterGyOrders(trades, order_no) {
@@ -12,9 +12,10 @@ export * from "./transformList";
12
12
  export { BS_SYSTEM_ORDER_CONFIG, bsOrderBackFormValues, bsOrderTransform, } from "./bsOrderBackFormValues";
13
13
  export { bsE3OrderBackFormValues, bsE3OrderTransform, updateBsE3GoodsHandle, filterBsE3Orders, BS_E3_ORDER_STATUS_MAP, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_SYSTEM_ORDER_CONFIG, } from "./bsE3OrderBackFormValues";
14
14
  export { WLN_SYSTEM_ORDER_CONFIG, wlnOrderBackFormValues, wlnOrderTransform, updateWlnGoodsHandle, } from "./wlnOrderBackFormValues";
15
- export { WDT_RETURN_BILL_NO_CONFIG, WDT_SYSTEM_ORDER_CONFIG, wdtOrderBackFormValues, wdtOrderTransform, WDT_ORDER_TYPE_MAP, filterWdtOrders, updateWdtGoodsHandle, updateWdtAftersaleGoodsHandle, tradeStatusMap, } from "./wdtOrderBackFormValues";
15
+ export { WDT_RETURN_BILL_NO_CONFIG, WDT_SYSTEM_ORDER_CONFIG, wdtOrderBackFormValues, wdtOrderTransform, WDT_ORDER_TYPE_MAP, filterWdtOrders, updateWdtGoodsHandle, updateWdtAftersaleGoodsHandle, tradeStatusMap, warehouseTypeMap, } from "./wdtOrderBackFormValues";
16
16
  export { DXD_SYSTEM_ORDER_CONFIG } from "./dxdOrderBackFormValues";
17
17
  export { dxdOrderBackFormValues, dxdOrderTransform, updateDxdGoodsHandle, } from "./dxdOrderBackFormValues";
18
+ export { TTX_SYSTEM_ORDER_CONFIG, TTX_INTERNAL_ORDER_TYPE_MAP, TTX_STATUS_MAP, ttxOrderBackFormValues, ttxOrderTransform, updateTtxGoodsHandle, } from "./ttxOrderBackFormValues";
18
19
  export * from "./jstOrderBackFormValues";
19
20
  export * from "./platformAfterSalesOrderBackFormValues";
20
21
  export { kmOrderBackFormValues, kmOrderTransform, KM_SYSTEM_ORDER_CONFIG, filterKmOrders, updateKmGoodsHandle, handleKmAddressIdentify, kmSkuTypeMap, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, } from "./kmOrderBackFormValues";
@@ -12,9 +12,10 @@ export * from "./transformList";
12
12
  export { BS_SYSTEM_ORDER_CONFIG, bsOrderBackFormValues, bsOrderTransform } from "./bsOrderBackFormValues";
13
13
  export { bsE3OrderBackFormValues, bsE3OrderTransform, updateBsE3GoodsHandle, filterBsE3Orders, BS_E3_ORDER_STATUS_MAP, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_SYSTEM_ORDER_CONFIG } from "./bsE3OrderBackFormValues";
14
14
  export { WLN_SYSTEM_ORDER_CONFIG, wlnOrderBackFormValues, wlnOrderTransform, updateWlnGoodsHandle } from "./wlnOrderBackFormValues";
15
- export { WDT_RETURN_BILL_NO_CONFIG, WDT_SYSTEM_ORDER_CONFIG, wdtOrderBackFormValues, wdtOrderTransform, WDT_ORDER_TYPE_MAP, filterWdtOrders, updateWdtGoodsHandle, updateWdtAftersaleGoodsHandle, tradeStatusMap } from "./wdtOrderBackFormValues";
15
+ export { WDT_RETURN_BILL_NO_CONFIG, WDT_SYSTEM_ORDER_CONFIG, wdtOrderBackFormValues, wdtOrderTransform, WDT_ORDER_TYPE_MAP, filterWdtOrders, updateWdtGoodsHandle, updateWdtAftersaleGoodsHandle, tradeStatusMap, warehouseTypeMap } from "./wdtOrderBackFormValues";
16
16
  export { DXD_SYSTEM_ORDER_CONFIG } from "./dxdOrderBackFormValues";
17
17
  export { dxdOrderBackFormValues, dxdOrderTransform, updateDxdGoodsHandle } from "./dxdOrderBackFormValues";
18
+ export { TTX_SYSTEM_ORDER_CONFIG, TTX_INTERNAL_ORDER_TYPE_MAP, TTX_STATUS_MAP, ttxOrderBackFormValues, ttxOrderTransform, updateTtxGoodsHandle } from "./ttxOrderBackFormValues";
18
19
  // export { default as jstOrderBackFormValues } from "./jstOrderBackFormValues";
19
20
  export * from "./jstOrderBackFormValues";
20
21
  export * from "./platformAfterSalesOrderBackFormValues";
@@ -452,10 +452,10 @@ export var jkyOrderBackFormValues = function jkyOrderBackFormValues() {
452
452
  }
453
453
  break;
454
454
  case "JKY_LOGISTICS":
455
- prv[uniqueKey] = updateJkyItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jkyLogistics, "logistics", config);
455
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jkyLogistics;
456
456
  break;
457
457
  case "JKY_SEND_GOOD":
458
- prv[uniqueKey] = updateJkyItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jkySendGood, "send", config);
458
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jkySendGood;
459
459
  break;
460
460
  case "JKY_RETURN_GOODS":
461
461
  {
@@ -474,35 +474,6 @@ export var jkyOrderBackFormValues = function jkyOrderBackFormValues() {
474
474
  return prv;
475
475
  }, {});
476
476
  };
477
- var updateJkyItemListByConfigHandle = function updateJkyItemListByConfigHandle(list, type) {
478
- var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
479
- var showField = config.showField,
480
- _config$notOrderBack = config.notOrderBack,
481
- notOrderBack = _config$notOrderBack === void 0 ? false : _config$notOrderBack;
482
- if (notOrderBack) {
483
- return list;
484
- }
485
- return list === null || list === void 0 ? void 0 : list.reduce(function (prv, next) {
486
- if (type === "logistics") {
487
- if (!["logisticsCompany", ""].includes(showField || "")) {
488
- next.logisticsCompany = undefined;
489
- }
490
- if (!["logisticsCode", ""].includes(showField || "")) {
491
- next.logisticsCode = undefined;
492
- }
493
- } else if (type === "send") {
494
- if (!["sendId", "all"].includes(showField || "")) {
495
- next.sendId = undefined;
496
- }
497
- if (!["sendName", "all"].includes(showField || "")) {
498
- next.sendName = undefined;
499
- next.sendSnapshotName = undefined;
500
- }
501
- }
502
- prv.push(next);
503
- return prv;
504
- }, []);
505
- };
506
477
 
507
478
  // 根据订单号请求返回的platformCode会有多个订单号组合在一起的数据 排除其他的,返回当前订单号
508
479
  export var filterJkyOrders = function filterJkyOrders(trades, order_no) {
@@ -183,45 +183,6 @@ var updateJstItemListHandle = function updateJstItemListHandle(list, type, comLi
183
183
  }
184
184
  return newList;
185
185
  };
186
- var updateJstItemListByConfigHandle = function updateJstItemListByConfigHandle(list, type) {
187
- var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
188
- var showField = config.showField,
189
- enableItemId = config.enableItemId,
190
- enableSupplierName = config.enableSupplierName;
191
- return list === null || list === void 0 ? void 0 : list.reduce(function (prv, next) {
192
- if (type === "logistics") {
193
- if (!["logisticsCompany", ""].includes(showField || "")) {
194
- next.logisticsCompany = undefined;
195
- }
196
- if (!["logisticsCode", ""].includes(showField || "")) {
197
- next.logisticsCode = undefined;
198
- }
199
- } else if (type === "send") {
200
- if (!["sendId", "all"].includes(showField || "")) {
201
- next.sendId = undefined;
202
- }
203
- if (!["sendName", "all"].includes(showField || "")) {
204
- next.sendName = undefined;
205
- }
206
- } else if (type === "supply") {
207
- if (!["supplyId", "all"].includes(showField || "")) {
208
- next.supplyId = undefined;
209
- }
210
- if (!["supplyName", "all"].includes(showField || "")) {
211
- next.supplyName = undefined;
212
- }
213
- } else if (type === "itemList") {
214
- if (!enableItemId) {
215
- next.itemId = undefined;
216
- }
217
- if (!enableSupplierName) {
218
- next.supplierName = undefined;
219
- }
220
- }
221
- prv.push(next);
222
- return prv;
223
- }, []);
224
- };
225
186
  export var jstMergeIdenticalGoods = function jstMergeIdenticalGoods() {
226
187
  var goodDetails = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
227
188
  var list = [];
@@ -280,16 +241,16 @@ export var jstOrderBackFormValues = function jstOrderBackFormValues() {
280
241
 
281
242
  break;
282
243
  case "JST_ITEM_SELECT_THIRD":
283
- prv[uniqueKey] = updateJstItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jstItemSelectThird, "itemList", config);
244
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jstItemSelectThird;
284
245
  break;
285
246
  case "JST_SUPPLY":
286
- prv[uniqueKey] = updateJstItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jstSupply, "supply", config);
247
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jstSupply;
287
248
  break;
288
249
  case "JST_LOGISTICS":
289
- prv[uniqueKey] = updateJstItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jstLogistics, "logistics", config);
250
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jstLogistics;
290
251
  break;
291
252
  case "JST_SEND_GOOD":
292
- prv[uniqueKey] = updateJstItemListByConfigHandle(detail === null || detail === void 0 ? void 0 : detail.jstSendGood, "send", config);
253
+ prv[uniqueKey] = detail === null || detail === void 0 ? void 0 : detail.jstSendGood;
293
254
  break;
294
255
  }
295
256
  return prv;