@kmkf-fe-packages/services-components 2.10.9-beta.6 → 2.10.9-beta.60

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 (80) hide show
  1. package/dist/esm/Hooks/useColumnsConfig.d.ts +1 -1
  2. package/dist/esm/Hooks/useColumnsConfig.js +1 -1
  3. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  4. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +3 -2
  5. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +13 -12
  6. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +12 -9
  7. package/dist/esm/components/BS/BsExchange/index.d.ts +7 -0
  8. package/dist/esm/components/BS/BsExchange/index.js +6 -0
  9. package/dist/esm/components/BS/BsGoods/index.d.ts +7 -0
  10. package/dist/esm/components/BS/BsGoods/index.js +6 -0
  11. package/dist/esm/components/BS/BsLogistics/index.js +9 -0
  12. package/dist/esm/components/BS/BsReissue/index.d.ts +7 -0
  13. package/dist/esm/components/BS/BsReissue/index.js +6 -0
  14. package/dist/esm/components/BS/BsReturn/index.d.ts +7 -0
  15. package/dist/esm/components/BS/BsReturn/index.js +6 -0
  16. package/dist/esm/components/BS/BsSystemOrder/index.js +3 -2
  17. package/dist/esm/components/BS/common/expressCode.js +3 -0
  18. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  19. package/dist/esm/components/BsE3/BsGoods/index.d.ts +7 -0
  20. package/dist/esm/components/BsE3/BsGoods/index.js +6 -0
  21. package/dist/esm/components/BsE3/BsReissueE3/index.d.ts +7 -0
  22. package/dist/esm/components/BsE3/BsReissueE3/index.js +6 -0
  23. package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +6 -0
  24. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +18 -2
  25. package/dist/esm/components/Common/constants/wdt.js +13 -3
  26. package/dist/esm/components/Common/index.js +21 -6
  27. package/dist/esm/components/CommonHeaderGood/index.js +81 -42
  28. package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -1
  29. package/dist/esm/components/CommonMultiStatus/index.js +123 -6
  30. package/dist/esm/components/GY/GyGoods/index.d.ts +7 -0
  31. package/dist/esm/components/GY/GyGoods/index.js +6 -0
  32. package/dist/esm/components/GY/GyReissue/index.d.ts +7 -0
  33. package/dist/esm/components/GY/GyReissue/index.js +6 -0
  34. package/dist/esm/components/GY/GyReturn/index.d.ts +7 -0
  35. package/dist/esm/components/GY/GyReturn/index.js +6 -0
  36. package/dist/esm/components/JST/JstSendGood/index.d.ts +2 -1
  37. package/dist/esm/components/JST/JstSendGood/index.js +16 -2
  38. package/dist/esm/components/JST/JstSupply/index.d.ts +1 -1
  39. package/dist/esm/components/JST/JstSupply/index.js +3 -0
  40. package/dist/esm/components/KM/KmExchange/index.d.ts +7 -0
  41. package/dist/esm/components/KM/KmExchange/index.js +6 -0
  42. package/dist/esm/components/KmErpSendGood/index.d.ts +1 -1
  43. package/dist/esm/components/KmErpSendGood/index.js +3 -0
  44. package/dist/esm/components/LogisticsInterception/index.d.ts +3 -0
  45. package/dist/esm/components/LogisticsInterception/index.js +14 -7
  46. package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.d.ts +42 -0
  47. package/dist/esm/components/LogisticsInterception/interceptLogisticsCustomerCode.js +102 -0
  48. package/dist/esm/components/LogisticsMoreInterception/index.d.ts +2 -0
  49. package/dist/esm/components/LogisticsMoreInterception/index.js +19 -5
  50. package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsCustomerCode.d.ts +39 -0
  51. package/dist/esm/components/LogisticsMoreInterception/interceptLogisticsCustomerCode.js +101 -0
  52. package/dist/esm/components/Public/AsyncSelect/index.js +23 -22
  53. package/dist/esm/components/Public/Exchange/index.d.ts +7 -0
  54. package/dist/esm/components/Public/Exchange/index.js +6 -0
  55. package/dist/esm/components/Public/Goods/index.js +6 -12
  56. package/dist/esm/components/Public/ReissueGoods/index.d.ts +7 -0
  57. package/dist/esm/components/Public/ReissueGoods/index.js +6 -0
  58. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +1 -1
  59. package/dist/esm/components/Public/ReturnWarehouse/index.js +3 -0
  60. package/dist/esm/components/Reissue/Logistics/index.d.ts +1 -1
  61. package/dist/esm/components/Reissue/Logistics/index.js +3 -0
  62. package/dist/esm/components/Remark/index.d.ts +4 -1
  63. package/dist/esm/components/Remark/index.js +46 -9
  64. package/dist/esm/components/SKX/SkxGoods/index.d.ts +7 -0
  65. package/dist/esm/components/SKX/SkxGoods/index.js +6 -0
  66. package/dist/esm/components/WDT/WdtExchange/index.d.ts +7 -0
  67. package/dist/esm/components/WDT/WdtExchange/index.js +6 -0
  68. package/dist/esm/components/WDT/WdtGoods/index.d.ts +7 -0
  69. package/dist/esm/components/WDT/WdtGoods/index.js +6 -0
  70. package/dist/esm/components/WDT/WdtRessuie/index.d.ts +7 -0
  71. package/dist/esm/components/WDT/WdtRessuie/index.js +6 -0
  72. package/dist/esm/components/WDT/WdtReturn/index.d.ts +7 -0
  73. package/dist/esm/components/WDT/WdtReturn/index.js +6 -0
  74. package/dist/esm/constant.js +0 -3
  75. package/dist/esm/factory.d.ts +1 -1
  76. package/dist/esm/factory.js +12 -1
  77. package/dist/esm/service/api.d.ts +1 -0
  78. package/dist/esm/service/api.js +6 -0
  79. package/dist/esm/type.d.ts +1 -0
  80. package/package.json +4 -4
@@ -134,6 +134,60 @@ var typeMap = {
134
134
  failValue: "失败",
135
135
  dataType: "array_object"
136
136
  },
137
+ WDT_WAREHOUSING_STATUS_V2: {
138
+ options: [{
139
+ value: "0",
140
+ label: "无需入库",
141
+ color: "#333333"
142
+ }, {
143
+ value: "1",
144
+ label: "未入库",
145
+ color: "#ff4d4f"
146
+ }, {
147
+ value: "2",
148
+ label: "部分入库",
149
+ color: "#e7780f"
150
+ }, {
151
+ value: "3",
152
+ label: "已入库",
153
+ color: "#52c41a"
154
+ }, {
155
+ value: "4",
156
+ label: "已入库-多收",
157
+ color: "#e7780f"
158
+ }],
159
+ key: "wdtInStockStatusV2ItemList",
160
+ code: "wdtInStockStatusV2List",
161
+ name: "旺店通商品入库状态V2",
162
+ type: 2,
163
+ valueKey: "status",
164
+ idKey: "systemOrderId",
165
+ failValue: "失败",
166
+ dataType: "array_object"
167
+ },
168
+ DXD_WAREHOUSING_STATUS: {
169
+ options: [{
170
+ value: "1",
171
+ label: "已入库",
172
+ color: "#52c41a"
173
+ }, {
174
+ value: "2",
175
+ label: "未入库",
176
+ color: "#ff4d4f"
177
+ }, {
178
+ value: "3",
179
+ label: "查无此单",
180
+ color: "#e7780f"
181
+ }],
182
+ key: "dxdInStockStatusItemList",
183
+ code: "dxdInStockStatusList",
184
+ name: "商品入库状态",
185
+ type: 2,
186
+ valueKey: "status",
187
+ idKey: "systemOrderId",
188
+ failValue: "失败",
189
+ dataType: "array_object"
190
+ },
137
191
  WLN_WAREHOUSING_STATUS: {
138
192
  options: [{
139
193
  value: "1",
@@ -219,6 +273,33 @@ var typeMap = {
219
273
  failValue: "失败",
220
274
  dataType: "array_object"
221
275
  },
276
+ TTX_WAREHOUSING_STATUS: {
277
+ options: [{
278
+ value: "1",
279
+ label: "未入库",
280
+ color: "#ff4d4f"
281
+ }, {
282
+ value: "2",
283
+ label: "部分入库",
284
+ color: "#e7780f"
285
+ }, {
286
+ value: "3",
287
+ label: "已入库",
288
+ color: "#52c41a"
289
+ }, {
290
+ label: "已入库-多收",
291
+ value: "4",
292
+ color: "#e7780f"
293
+ }],
294
+ key: "ttxInStockStatusItemList",
295
+ code: "ttxInStockStatusList",
296
+ name: "通天晓商品入库状态",
297
+ type: 2,
298
+ valueKey: "status",
299
+ idKey: "sourceTradeNo",
300
+ failValue: "失败",
301
+ dataType: "array_object"
302
+ },
222
303
  KM_WAREHOUSING_STATUS: {
223
304
  options: [{
224
305
  value: "0",
@@ -241,6 +322,37 @@ var typeMap = {
241
322
  idKey: "systemOrderId",
242
323
  failValue: "失败",
243
324
  dataType: "array_object"
325
+ },
326
+ JY_WAREHOUSING_STATUS: {
327
+ options: [{
328
+ value: "0",
329
+ label: "无需入库",
330
+ color: "#333333"
331
+ }, {
332
+ value: "1",
333
+ label: "未入库",
334
+ color: "#ff4d4f"
335
+ }, {
336
+ value: "2",
337
+ label: "部分入库",
338
+ color: "#e7780f"
339
+ }, {
340
+ value: "3",
341
+ label: "已入库",
342
+ color: "#52c41a"
343
+ }, {
344
+ value: "4",
345
+ label: "已入库-多收",
346
+ color: "#e7780f"
347
+ }],
348
+ key: "jyInStockStatusItemList",
349
+ code: "jyInStockStatusList",
350
+ name: "巨益商品入库状态",
351
+ type: 2,
352
+ valueKey: "status",
353
+ idKey: "sourceTradeNo",
354
+ failValue: "失败",
355
+ dataType: "array_object"
244
356
  }
245
357
  };
246
358
  var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
@@ -250,7 +362,9 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
250
362
  _typeMap$options$type3,
251
363
  _typeMap$options$type4,
252
364
  _this$componentConfig5,
253
- _this$componentConfig6;
365
+ _this$componentConfig6,
366
+ _this$ext4;
367
+ var ext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
254
368
  _classCallCheck(this, CommonMultiStatus);
255
369
  _defineProperty(this, "name", void 0);
256
370
  _defineProperty(this, "id", void 0);
@@ -265,6 +379,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
265
379
  _defineProperty(this, "children", void 0);
266
380
  _defineProperty(this, "dataType", void 0);
267
381
  _defineProperty(this, "isSingleValue", void 0);
382
+ _defineProperty(this, "ext", void 0);
268
383
  _defineProperty(this, "renderClient", function (record) {
269
384
  var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4;
270
385
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
@@ -343,13 +458,13 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
343
458
  });
344
459
  });
345
460
  _defineProperty(this, "filterConfig", function (item) {
346
- var _typeMap$_this$type21, _item$templateConfig;
461
+ var _this$ext, _typeMap$_this$type21, _this$ext2, _item$templateConfig, _this$ext3;
347
462
  return {
348
- searchDefaultConditions: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS", "KM_WAREHOUSING_STATUS"].includes(_this.type) ? SYMBOL.in : SYMBOL.like,
463
+ searchDefaultConditions: (_this$ext = _this.ext) !== null && _this$ext !== void 0 && _this$ext.isWarehousingStatus ? SYMBOL.in : SYMBOL.like,
349
464
  type: item.type,
350
465
  id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.code),
351
466
  name: "".concat(_this.name),
352
- filterComponentType: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS", "KM_WAREHOUSING_STATUS"].includes(_this.type) ? "MultipleSelect" : "SelectInput",
467
+ filterComponentType: (_this$ext2 = _this.ext) !== null && _this$ext2 !== void 0 && _this$ext2.isWarehousingStatus ? "MultipleSelect" : "SelectInput",
353
468
  props: {
354
469
  options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
355
470
  fieldNames: {
@@ -364,7 +479,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
364
479
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.code), value);
365
480
  };
366
481
  },
367
- formatFilterValue: ["BS_E3_WAREHOUSING_STATUS", "WAREHOUSING_STATUS", "WDT_WAREHOUSING_STATUS", "WLN_WAREHOUSING_STATUS", "JKY_WAREHOUSING_STATUS", "JST_WAREHOUSING_STATUS", "KM_WAREHOUSING_STATUS"].includes(_this.type) ? null : function (value) {
482
+ formatFilterValue: (_this$ext3 = _this.ext) !== null && _this$ext3 !== void 0 && _this$ext3.isWarehousingStatus ? null : function (value) {
368
483
  if (value.type === "in") {
369
484
  return value.keywords;
370
485
  } else {
@@ -384,6 +499,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
384
499
  this.isCombinationComponent = false;
385
500
  this.canSort = false;
386
501
  this.children = [];
502
+ this.ext = ext;
387
503
  this.dataType = (_typeMap$options$type3 = (_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.dataType) !== null && _typeMap$options$type3 !== void 0 ? _typeMap$options$type3 : "object";
388
504
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
389
505
  required: true,
@@ -400,6 +516,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
400
516
  }
401
517
  }] : [];
402
518
  this.align = "left";
403
- this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === "BS_E3_WAREHOUSING_STATUS" || this.type === "WDT_WAREHOUSING_STATUS" || this.type === "WLN_WAREHOUSING_STATUS" || this.type === "JST_WAREHOUSING_STATUS" || this.type === "JKY_WAREHOUSING_STATUS";
519
+ //优化写法,this.type !== "WAREHOUSING_STATUS"不修改原有逻辑
520
+ this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || ((_this$ext4 = this.ext) === null || _this$ext4 === void 0 ? void 0 : _this$ext4.isWarehousingStatus) && this.type !== "WAREHOUSING_STATUS";
404
521
  });
405
522
  export default CommonMultiStatus;
@@ -14,8 +14,15 @@ declare class GyGoods implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  gyGoods: CommonHeaderGoods;
18
19
  constructor(options: PickOption);
20
+ getSortChildFields: () => {
21
+ name: any;
22
+ key: string;
23
+ dataType: string;
24
+ conditionOptionsSetting: any;
25
+ }[];
19
26
  renderClient: (record: any) => React.JSX.Element | null;
20
27
  renderPc: () => null;
21
28
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -17,6 +17,7 @@ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { CommonGoods as Goods } from "@kmkf-fe-packages/basic-components";
18
18
  import { SYMBOL } from "../../../constant";
19
19
  import { useGoodsSourceFormat } from "../../../Hooks";
20
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
20
21
  var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
21
22
  var _this = this,
22
23
  _this$componentConfig6;
@@ -33,7 +34,11 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
33
34
  _defineProperty(this, "canSort", void 0);
34
35
  _defineProperty(this, "children", void 0);
35
36
  _defineProperty(this, "dataType", void 0);
37
+ _defineProperty(this, "sortChildField", void 0);
36
38
  _defineProperty(this, "gyGoods", void 0);
39
+ _defineProperty(this, "getSortChildFields", function () {
40
+ return getGoodsSortChildFields(_this.type, _this.id);
41
+ });
37
42
  _defineProperty(this, "renderClient", function (record) {
38
43
  var _record, _this$componentConfig;
39
44
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
@@ -123,5 +128,6 @@ var GyGoods = /*#__PURE__*/_createClass(function GyGoods(options) {
123
128
  }
124
129
  }] : [];
125
130
  this.dataType = "object";
131
+ this.sortChildField = this.getSortChildFields();
126
132
  });
127
133
  export default GyGoods;
@@ -15,11 +15,18 @@ declare class GyReissue implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
18
19
  bsType: BsType;
19
20
  bsMemo: BsMemo;
20
21
  systemOrderNo: SystemOrderNo;
21
22
  reissueGoods: BsHeaderGood | CommonHeaderGoods;
22
23
  constructor(options: PickOption);
24
+ getSortChildFields: () => {
25
+ name: any;
26
+ key: string;
27
+ dataType: string;
28
+ conditionOptionsSetting: any;
29
+ }[];
23
30
  renderClient: (record: any) => React.JSX.Element | null;
24
31
  renderPc: () => null;
25
32
  renderLog: (r: Record) => React.JSX.Element;
@@ -18,6 +18,7 @@ import { BsGoodsTable } from "../../Common/index";
18
18
  import { BsType, BsMemo, SystemOrderNo } from "../../BS/common/index";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
20
  import { useGoodsSourceFormat } from "../../../Hooks";
21
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
21
22
  var typeMap = {
22
23
  GY_REISSUE_GOODS: {
23
24
  key: "gyReissueGoods",
@@ -56,10 +57,14 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
56
57
  _defineProperty(this, "canSort", void 0);
57
58
  _defineProperty(this, "children", void 0);
58
59
  _defineProperty(this, "dataType", void 0);
60
+ _defineProperty(this, "sortChildField", void 0);
59
61
  _defineProperty(this, "bsType", void 0);
60
62
  _defineProperty(this, "bsMemo", void 0);
61
63
  _defineProperty(this, "systemOrderNo", void 0);
62
64
  _defineProperty(this, "reissueGoods", void 0);
65
+ _defineProperty(this, "getSortChildFields", function () {
66
+ return getGoodsSortChildFields(_this.type, _this.id);
67
+ });
63
68
  _defineProperty(this, "renderClient", function (record) {
64
69
  var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
65
70
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -206,5 +211,6 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
206
211
  }
207
212
  }];
208
213
  this.dataType = "object";
214
+ this.sortChildField = this.getSortChildFields();
209
215
  });
210
216
  export default GyReissue;
@@ -15,10 +15,17 @@ declare class GyReturn implements ComponentInterface {
15
15
  canSort: boolean;
16
16
  children: ComponentInterface[];
17
17
  dataType: ComponentInterface["dataType"];
18
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
18
19
  gyType: BsType;
19
20
  systemOrderNo: SystemOrderNo;
20
21
  returnGoods: BsHeaderGood | CommonHeaderGoods;
21
22
  constructor(options: PickOption);
23
+ getSortChildFields: () => {
24
+ name: any;
25
+ key: string;
26
+ dataType: string;
27
+ conditionOptionsSetting: any;
28
+ }[];
22
29
  renderClient: (record: any) => React.JSX.Element | null;
23
30
  renderPc: () => null;
24
31
  renderLog: (r: Record) => React.JSX.Element;
@@ -18,6 +18,7 @@ import CommonHeaderGoods from "../../CommonHeaderGood";
18
18
  import { GyReturn as Return, erpFormValidator } from "@kmkf-fe-packages/basic-components";
19
19
  import { BsType, SystemOrderNo } from "../../BS/common/index";
20
20
  import { useGoodsSourceFormat } from "../../../Hooks";
21
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
21
22
  var typeMap = {
22
23
  GY_RETURN_GOODS: {
23
24
  key: "gyReturnGoods",
@@ -54,9 +55,13 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
54
55
  _defineProperty(this, "canSort", void 0);
55
56
  _defineProperty(this, "children", void 0);
56
57
  _defineProperty(this, "dataType", void 0);
58
+ _defineProperty(this, "sortChildField", void 0);
57
59
  _defineProperty(this, "gyType", void 0);
58
60
  _defineProperty(this, "systemOrderNo", void 0);
59
61
  _defineProperty(this, "returnGoods", void 0);
62
+ _defineProperty(this, "getSortChildFields", function () {
63
+ return getGoodsSortChildFields(_this.type, _this.id);
64
+ });
60
65
  _defineProperty(this, "renderClient", function (record) {
61
66
  var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
62
67
  return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.gyType.renderClient(record), _this.systemOrderNo.renderClient(record), record !== null && record !== void 0 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
@@ -198,5 +203,6 @@ var GyReturn = /*#__PURE__*/_createClass(function GyReturn(options) {
198
203
  }
199
204
  }];
200
205
  this.dataType = "object";
206
+ this.sortChildField = this.getSortChildFields();
201
207
  });
202
208
  export default GyReturn;
@@ -20,13 +20,14 @@ declare class JstSendGood implements ComponentInterface {
20
20
  children: ComponentInterface[];
21
21
  dataType: ComponentInterface["dataType"];
22
22
  format: ComponentInterface["format"];
23
+ effects: ComponentInterface["effects"];
23
24
  constructor(options: PickOption);
24
25
  getSortChildFields: (type: string, options: PickOption, fieldType?: string) => any;
25
26
  renderClient: (record: Record) => React.JSX.Element | null;
26
27
  renderPc: (value: any, record: Record) => React.JSX.Element;
27
28
  renderLog: (r: Record) => React.JSX.Element | null;
28
29
  getComponentValue: (r: Record) => any;
29
- renderExport: (value: any, record: any) => any;
30
+ renderExport: (value: any, record: any) => string;
30
31
  editRender: (p: any) => React.JSX.Element;
31
32
  filterConfig: (item: ColumnConfig) => ({
32
33
  searchDefaultConditions: "in";
@@ -99,6 +99,14 @@ var typeMap = {
99
99
  sendName: "dxdSendName",
100
100
  platformType: "dxd",
101
101
  dataType: "weakenArray"
102
+ },
103
+ TTX_SEND_GOOD: {
104
+ key: "ttxSendGood",
105
+ name: "ttx",
106
+ sendId: "ttxSendId",
107
+ sendName: "ttxSendName",
108
+ platformType: "ttx",
109
+ dataType: "weakenArray"
102
110
  }
103
111
  };
104
112
  var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
@@ -123,6 +131,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
123
131
  _defineProperty(this, "children", void 0);
124
132
  _defineProperty(this, "dataType", void 0);
125
133
  _defineProperty(this, "format", void 0);
134
+ _defineProperty(this, "effects", void 0);
126
135
  _defineProperty(this, "getSortChildFields", function (type, options, fieldType) {
127
136
  var _typeMap$options$type, _typeMap$options$type2, _typeMap$options$type3;
128
137
  var sendName = {
@@ -182,12 +191,15 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
182
191
  _defineProperty(this, "renderExport", function (value, record) {
183
192
  var _typeMap$_this$type6;
184
193
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.key)];
194
+ if (!Array.isArray(list)) {
195
+ return '';
196
+ }
185
197
  return (list || []).map(function (item) {
186
198
  return [item === null || item === void 0 ? void 0 : item.sendId, SendDataCenter.getInstance(_this.type).getSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName)].join("/");
187
199
  }).join(",");
188
200
  });
189
201
  _defineProperty(this, "editRender", function (p) {
190
- var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type7;
202
+ var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type7, _this$effects;
191
203
  return /*#__PURE__*/React.createElement(GetFormItem, {
192
204
  title: _this.name,
193
205
  name: _this.id,
@@ -199,6 +211,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
199
211
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
200
212
  type: 3,
201
213
  platformType: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.platformType,
214
+ form: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.form,
202
215
  onlyShowFieldSelect: _this.componentConfig ? _this.componentConfig.showField === "sendName" : false
203
216
  }))
204
217
  });
@@ -232,7 +245,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
232
245
  });
233
246
  };
234
247
  }
235
- } : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD", "DXD_SEND_GOOD"].includes(_this.type) ? {
248
+ } : ["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "KM_SEND_GOOD", "GY_SEND_GOOD", "JY_SEND_GOOD", "JKY_SEND_GOOD", "DXD_SEND_GOOD", "TTX_SEND_GOOD"].includes(_this.type) ? {
236
249
  searchDefaultConditions: SYMBOL.in,
237
250
  type: item.type,
238
251
  id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
@@ -293,6 +306,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
293
306
  this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "", _options, _options.type);
294
307
  this.type = _options.type;
295
308
  this.dataType = (_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.dataType;
309
+ this.effects = _options === null || _options === void 0 ? void 0 : _options.effects;
296
310
  this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
297
311
  required: true,
298
312
  validator: function validator(_, value) {
@@ -25,7 +25,7 @@ declare class JstSupply implements ComponentInterface {
25
25
  renderPc: (value: any, record: Record) => React.JSX.Element;
26
26
  renderLog: (r: Record) => React.JSX.Element | null;
27
27
  getComponentValue: (r: Record) => any;
28
- renderExport: (value: any, record: any) => any;
28
+ renderExport: (value: any, record: any) => string;
29
29
  editRender: (p: any) => React.JSX.Element;
30
30
  filterConfig: (item: ColumnConfig) => {
31
31
  searchDefaultConditions: "like";
@@ -80,6 +80,9 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(_options) {
80
80
  });
81
81
  _defineProperty(this, "renderExport", function (value, record) {
82
82
  var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")]) || [];
83
+ if (!Array.isArray(list)) {
84
+ return '';
85
+ }
83
86
  return list.map(function (item) {
84
87
  return [item === null || item === void 0 ? void 0 : item.supplyId, item === null || item === void 0 ? void 0 : item.supplyName].join("/");
85
88
  }).join(",");
@@ -14,8 +14,15 @@ declare class KmExchange implements ComponentInterface {
14
14
  canSort: boolean;
15
15
  children: ComponentInterface[];
16
16
  dataType: ComponentInterface["dataType"];
17
+ sortChildField: NonNullable<ComponentInterface["sortChildField"]>;
17
18
  returnGoods: CommonHeaderGoods;
18
19
  constructor(options: PickOption);
20
+ getSortChildFields: () => {
21
+ name: any;
22
+ key: string;
23
+ dataType: string;
24
+ conditionOptionsSetting: any;
25
+ }[];
19
26
  renderClient: (record: any) => React.JSX.Element | null;
20
27
  renderPc: () => null;
21
28
  renderLog: (r: Record) => React.JSX.Element;
@@ -17,6 +17,7 @@ import { SYMBOL } from "../../../constant";
17
17
  // import { BsType, BsMemo } from "../../Bs/common";
18
18
  import { CommonExchangeGoods, erpFormValidator } from "@kmkf-fe-packages/basic-components";
19
19
  import CommonHeaderGoods from "../../CommonHeaderGood";
20
+ import { getGoodsSortChildFields } from "../../Common/constants/columnsBaseInfoMap";
20
21
  var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
21
22
  var _this = this,
22
23
  _this$componentConfig6,
@@ -34,7 +35,11 @@ var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
34
35
  _defineProperty(this, "canSort", void 0);
35
36
  _defineProperty(this, "children", void 0);
36
37
  _defineProperty(this, "dataType", void 0);
38
+ _defineProperty(this, "sortChildField", void 0);
37
39
  _defineProperty(this, "returnGoods", void 0);
40
+ _defineProperty(this, "getSortChildFields", function () {
41
+ return getGoodsSortChildFields(_this.type, _this.id);
42
+ });
38
43
  _defineProperty(this, "renderClient", function (record) {
39
44
  var _this$componentConfig;
40
45
  var kmExchangeGoods = JSON.parse((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_kmExchangeGoods")]) || "[]");
@@ -132,5 +137,6 @@ var KmExchange = /*#__PURE__*/_createClass(function KmExchange(options) {
132
137
  }
133
138
  }];
134
139
  this.dataType = "object";
140
+ this.sortChildField = this.getSortChildFields();
135
141
  });
136
142
  export default KmExchange;
@@ -28,7 +28,7 @@ declare class JstSendGood implements ComponentInterface {
28
28
  renderPc: (value: any, record: Record) => React.JSX.Element;
29
29
  renderLog: (r: Record) => React.JSX.Element | null;
30
30
  getComponentValue: (r: Record) => any;
31
- renderExport: (value: any, record: any) => any;
31
+ renderExport: (value: any, record: any) => string;
32
32
  editRender: (p: any) => React.JSX.Element;
33
33
  filterConfig: (item: ColumnConfig) => ({
34
34
  searchDefaultConditions: "in";
@@ -85,6 +85,9 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
85
85
  });
86
86
  _defineProperty(this, "renderExport", function (value, record) {
87
87
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
88
+ if (!Array.isArray(list)) {
89
+ return '';
90
+ }
88
91
  return (list || []).map(function (item) {
89
92
  return [item === null || item === void 0 ? void 0 : item.sendId, SendDataCenter.getInstance(_this.type).getSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName)].join("/");
90
93
  }).join(",");
@@ -11,6 +11,7 @@ import InterceptState from "./InterceptState";
11
11
  import InterceptApiStatus from "./InterceptApiStatus";
12
12
  import Express from "../Express";
13
13
  import ExpressCode from "../ExpressCode";
14
+ import InterceptLogisticsCustomerCode from "./interceptLogisticsCustomerCode";
14
15
  declare class Logistics implements ComponentInterface {
15
16
  name: string;
16
17
  columnHeader: string | JSX.Element;
@@ -25,6 +26,7 @@ declare class Logistics implements ComponentInterface {
25
26
  interceptApiStatus: InterceptApiStatus;
26
27
  interceptSenderMobile: InterceptSenderMobile;
27
28
  interceptApiStatusReason: InterceptApiStatusReason;
29
+ interceptLogisticsCustomerCode: InterceptLogisticsCustomerCode;
28
30
  interceptSnapshot: InterceptSnapshot;
29
31
  interceptState: InterceptState;
30
32
  isCombinationComponent: boolean;
@@ -60,6 +62,7 @@ declare class Logistics implements ComponentInterface {
60
62
  interceptSnapshot: any;
61
63
  interceptState: any;
62
64
  interceptApiStatusReason: any;
65
+ interceptLogisticsCustomerCode: string;
63
66
  };
64
67
  renderPc: () => null;
65
68
  renderExport: () => null;
@@ -10,7 +10,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
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
11
  import React from "react";
12
12
  import { LogisticsInterception } from "@kmkf-fe-packages/basic-components";
13
- import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull } from "@kmkf-fe-packages/kmkf-utils";
13
+ import { ExpressData, ExpressInterceptData, isJdLogisticsCompany, LogisticsAddressData, isNull } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import GetFormItem from "../GetFormItem";
15
15
  import InterceptSenderMobile from "./interceptSenderMobile";
16
16
  import InterceptApiStatusReason from "./interceptApiStatusReason";
@@ -23,6 +23,7 @@ import InterceptApiStatus from "./InterceptApiStatus";
23
23
  import Express from "../Express";
24
24
  import ExpressCode from "../ExpressCode";
25
25
  import ColumnHeader from "./columnHeader";
26
+ import InterceptLogisticsCustomerCode from "./interceptLogisticsCustomerCode";
26
27
  // import InterceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
27
28
  // import InterceptLogisticsUserSecretKey from "./interceptLogisticsUserSecretKey";
28
29
  // import interceptLogisticsUserKCode from "./interceptLogisticsUserKCode";
@@ -46,6 +47,7 @@ function Logistics(options) {
46
47
  _defineProperty(this, "interceptApiStatus", void 0);
47
48
  _defineProperty(this, "interceptSenderMobile", void 0);
48
49
  _defineProperty(this, "interceptApiStatusReason", void 0);
50
+ _defineProperty(this, "interceptLogisticsCustomerCode", void 0);
49
51
  _defineProperty(this, "interceptSnapshot", void 0);
50
52
  _defineProperty(this, "interceptState", void 0);
51
53
  _defineProperty(this, "isCombinationComponent", void 0);
@@ -61,10 +63,10 @@ function Logistics(options) {
61
63
  _defineProperty(this, "dataType", void 0);
62
64
  _defineProperty(this, "isChange", void 0);
63
65
  _defineProperty(this, "renderClient", function (record) {
64
- return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptApiStatus.renderClient(record), _this.interceptApiStatusReason.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
66
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record), _this.interceptApiStatus.renderClient(record), _this.interceptApiStatusReason.renderClient(record), _this.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record), _this.interceptLogisticsCustomerCode.renderClient(record));
65
67
  });
66
68
  _defineProperty(this, "renderLog", function (record) {
67
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptApiStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatus.name, ":", " ", _this.interceptApiStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptApiStatusReason.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatusReason.name, ":", " ", _this.interceptApiStatusReason.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptState.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptState.name, ":", " ", _this.interceptState.renderLog(record))));
69
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsCustomerCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsCustomerCode.name, ":", " ", _this.interceptLogisticsCustomerCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptApiStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatus.name, ":", " ", _this.interceptApiStatus.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptApiStatusReason.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptApiStatusReason.name, ":", " ", _this.interceptApiStatusReason.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSnapshot.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSnapshot.name, ":", " ", _this.interceptSnapshot.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptState.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptState.name, ":", " ", _this.interceptState.renderLog(record))));
68
70
  });
69
71
  _defineProperty(this, "getComponentValue", function (r) {
70
72
  return {
@@ -77,7 +79,8 @@ function Logistics(options) {
77
79
  interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
78
80
  interceptSnapshot: _this.interceptSnapshot.getComponentValue(r),
79
81
  interceptState: _this.interceptState.getComponentValue(r),
80
- interceptApiStatusReason: _this.interceptApiStatusReason.getComponentValue(r)
82
+ interceptApiStatusReason: _this.interceptApiStatusReason.getComponentValue(r),
83
+ interceptLogisticsCustomerCode: _this.interceptLogisticsCustomerCode.getComponentValue(r)
81
84
  // interceptLogisticsUserKCode:
82
85
  // this.interceptLogisticsUserKCode.getComponentValue(r),
83
86
  // interceptLogisticsUserSecretKey:
@@ -133,7 +136,7 @@ function Logistics(options) {
133
136
  subKey: "interceptCompany"
134
137
  })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
135
138
  subKey: "interceptCode"
136
- })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptApiStatusReason.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)
139
+ })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptApiStatusReason.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item), _this.interceptLogisticsCustomerCode.filterConfig(item)
137
140
  // this.interceptLogisticsUserKCode.filterConfig(item),
138
141
  // this.interceptLogisticsUserSecretKey.filterConfig(item),
139
142
  ];
@@ -159,6 +162,7 @@ function Logistics(options) {
159
162
  this.interceptSnapshot = new InterceptSnapshot(options);
160
163
  this.interceptState = new InterceptState(options);
161
164
  this.interceptApiStatusReason = new InterceptApiStatusReason(options);
165
+ this.interceptLogisticsCustomerCode = new InterceptLogisticsCustomerCode(options);
162
166
  // this.interceptLogisticsUserSecretKey = new InterceptLogisticsUserSecretKey(
163
167
  // options,
164
168
  // );
@@ -175,7 +179,7 @@ function Logistics(options) {
175
179
  this.canSort = false;
176
180
  this.dataType = "object";
177
181
  this.isChange = false;
178
- this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptApiStatusReason, this.interceptSnapshot, this.interceptState
182
+ this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptApiStatusReason, this.interceptSnapshot, this.interceptState, this.interceptLogisticsCustomerCode
179
183
  // this.interceptLogisticsUserKCode,
180
184
  // this.interceptLogisticsUserSecretKey,
181
185
  ];
@@ -186,7 +190,10 @@ function Logistics(options) {
186
190
  if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required && (!(value !== null && value !== void 0 && value.interceptCompany) || !value.interceptCode)) {
187
191
  return Promise.reject(new Error("请填写物流信息"));
188
192
  }
189
- if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required && !(value !== null && value !== void 0 && value.interceptType)) {
193
+ if (isJdLogisticsCompany(value === null || value === void 0 ? void 0 : value.interceptCompany) && !(value !== null && value !== void 0 && value.interceptLogisticsCustomerCode)) {
194
+ return Promise.reject(new Error("请选择客户编码"));
195
+ }
196
+ if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required && !isJdLogisticsCompany(value === null || value === void 0 ? void 0 : value.interceptCompany) && !(value !== null && value !== void 0 && value.interceptType)) {
190
197
  return Promise.reject(new Error("请选择拦截类型"));
191
198
  }
192
199
  var showAddress = _this.expressInterceptData.getShowNewAddressMap()["".concat(value === null || value === void 0 ? void 0 : value.interceptType)];