@kmkf-fe-packages/services-components 2.4.0-rc.0 → 2.4.1

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 (123) hide show
  1. package/dist/esm/Hooks/index.d.ts +2 -0
  2. package/dist/esm/Hooks/index.js +2 -0
  3. package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
  4. package/dist/esm/Hooks/useColumnsConfig.js +243 -0
  5. package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
  6. package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
  7. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
  8. package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -2
  9. package/dist/esm/commonComponents/GlobalContext/index.js +10 -3
  10. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
  11. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
  12. package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +11 -9
  13. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  14. package/dist/esm/commonComponents/OperationLog/index.js +4 -2
  15. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
  16. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
  17. package/dist/esm/commonComponents/ShopList/index.js +3 -1
  18. package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -2
  19. package/dist/esm/components/BS/BsLogistics/index.js +61 -8
  20. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
  21. package/dist/esm/components/BS/BsSystemOrder/index.js +56 -9
  22. package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
  23. package/dist/esm/components/BS/common/BsHeaderChild.js +8 -8
  24. package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
  25. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
  26. package/dist/esm/components/BS/common/BsHeaderPic.js +20 -10
  27. package/dist/esm/components/BS/common/BsMemo.js +4 -1
  28. package/dist/esm/components/BS/common/BsType.js +4 -1
  29. package/dist/esm/components/BS/common/SystemOrderNo.js +4 -1
  30. package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
  31. package/dist/esm/components/BS/common/expressCode.js +16 -4
  32. package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
  33. package/dist/esm/components/BS/common/expressCompany.js +31 -5
  34. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  35. package/dist/esm/components/Cascader/index.d.ts +8 -6
  36. package/dist/esm/components/Cascader/index.js +26 -22
  37. package/dist/esm/components/Common/constants/bs.js +2 -2
  38. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
  39. package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
  40. package/dist/esm/components/Common/constants/wdt.js +104 -0
  41. package/dist/esm/components/Common/index.d.ts +3 -3
  42. package/dist/esm/components/Common/index.js +49 -28
  43. package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
  44. package/dist/esm/components/CommonDataTime/index.js +2 -2
  45. package/dist/esm/components/CommonHeaderGood/index.js +1165 -18
  46. package/dist/esm/components/CommonInput/index.js +11 -3
  47. package/dist/esm/components/CommonMultiStatus/index.js +73 -36
  48. package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
  49. package/dist/esm/components/ErpTradeId/index.js +7 -4
  50. package/dist/esm/components/File/index.d.ts +6 -6
  51. package/dist/esm/components/File/index.js +9 -10
  52. package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
  53. package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
  54. package/dist/esm/components/GY/GyGoods/index.js +5 -1
  55. package/dist/esm/components/GY/GyReissue/index.js +5 -1
  56. package/dist/esm/components/GY/GyReturn/index.js +5 -1
  57. package/dist/esm/components/Input/index.d.ts +4 -4
  58. package/dist/esm/components/Input/index.js +35 -31
  59. package/dist/esm/components/JST/JstSendGood/index.js +17 -1
  60. package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
  61. package/dist/esm/components/KM/KmExchange/index.js +136 -0
  62. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  63. package/dist/esm/components/Logistics/index.d.ts +1 -0
  64. package/dist/esm/components/Logistics/index.js +10 -0
  65. package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
  66. package/dist/esm/components/LogisticsInterception/index.d.ts +20 -0
  67. package/dist/esm/components/LogisticsInterception/index.js +10 -5
  68. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
  69. package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
  70. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
  71. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
  72. package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
  73. package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
  74. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
  75. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
  76. package/dist/esm/components/OrderSubForm/index.d.ts +56 -0
  77. package/dist/esm/components/OrderSubForm/index.js +285 -0
  78. package/dist/esm/components/Payment/index.d.ts +13 -12
  79. package/dist/esm/components/Payment/index.js +31 -11
  80. package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
  81. package/dist/esm/components/Picture/index.d.ts +5 -5
  82. package/dist/esm/components/Picture/index.js +20 -20
  83. package/dist/esm/components/PicturePro/index.d.ts +15 -6
  84. package/dist/esm/components/PicturePro/index.js +42 -25
  85. package/dist/esm/components/PostIng/index.d.ts +5 -0
  86. package/dist/esm/components/PostIng/index.js +42 -8
  87. package/dist/esm/components/Public/Goods/index.d.ts +10 -8
  88. package/dist/esm/components/Public/Goods/index.js +42 -2
  89. package/dist/esm/components/Public/ReissueGoods/index.js +62 -4
  90. package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
  91. package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
  92. package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
  93. package/dist/esm/components/ReceiverAddress/index.js +41 -27
  94. package/dist/esm/components/Reissue/Logistics/index.js +2 -2
  95. package/dist/esm/components/Remark/index.d.ts +18 -2
  96. package/dist/esm/components/Remark/index.js +37 -2
  97. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  98. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  99. package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
  100. package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
  101. package/dist/esm/components/Select/index.d.ts +1 -0
  102. package/dist/esm/components/Select/index.js +22 -11
  103. package/dist/esm/components/ShopInput/index.d.ts +5 -5
  104. package/dist/esm/components/ShopInput/index.js +12 -9
  105. package/dist/esm/components/StatusSelect/index.js +4 -0
  106. package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
  107. package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
  108. package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
  109. package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
  110. package/dist/esm/components/SubForm/index.js +78 -6
  111. package/dist/esm/components/TradeId/index.d.ts +5 -5
  112. package/dist/esm/components/TradeId/index.js +17 -14
  113. package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
  114. package/dist/esm/factory.d.ts +2 -2
  115. package/dist/esm/factory.js +37 -7
  116. package/dist/esm/index.d.ts +5 -0
  117. package/dist/esm/index.js +7 -1
  118. package/dist/esm/service/api.d.ts +3 -0
  119. package/dist/esm/service/api.js +34 -1
  120. package/dist/esm/type.d.ts +38 -0
  121. package/package.json +4 -4
  122. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  123. package/dist/esm/components/Common/constants/gy.js +0 -219
@@ -13,6 +13,7 @@ import { LogisticsInterception } from "@kmkf-fe-packages/basic-components";
13
13
  import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import GetFormItem from "../GetFormItem";
15
15
  import InterceptSenderMobile from "./interceptSenderMobile";
16
+ import InterceptApiStatusReason from "./interceptApiStatusReason";
16
17
  import InterceptSnapshot from "./interceptSnapshot";
17
18
  import InterceptAddress from "./InterceptAddress";
18
19
  import InterceptType from "./InterceptType";
@@ -44,6 +45,7 @@ function Logistics(options) {
44
45
  _defineProperty(this, "interceptLogisticsStatus", void 0);
45
46
  _defineProperty(this, "interceptApiStatus", void 0);
46
47
  _defineProperty(this, "interceptSenderMobile", void 0);
48
+ _defineProperty(this, "interceptApiStatusReason", void 0);
47
49
  _defineProperty(this, "interceptSnapshot", void 0);
48
50
  _defineProperty(this, "interceptState", void 0);
49
51
  _defineProperty(this, "isCombinationComponent", void 0);
@@ -58,10 +60,10 @@ function Logistics(options) {
58
60
  _defineProperty(this, "effects", void 0);
59
61
  _defineProperty(this, "dataType", void 0);
60
62
  _defineProperty(this, "renderClient", function (record) {
61
- 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.interceptSnapshot.renderClient(record), _this.interceptState.renderClient(record));
63
+ 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));
62
64
  });
63
65
  _defineProperty(this, "renderLog", function (record) {
64
- 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.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))));
66
+ 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))));
65
67
  });
66
68
  _defineProperty(this, "getComponentValue", function (r) {
67
69
  return {
@@ -73,7 +75,8 @@ function Logistics(options) {
73
75
  interceptApiStatus: _this.interceptApiStatus.getComponentValue(r),
74
76
  interceptRedirectTo: _this.interceptAddress.getComponentValue(r),
75
77
  interceptSnapshot: _this.interceptSnapshot.getComponentValue(r),
76
- interceptState: _this.interceptState.getComponentValue(r)
78
+ interceptState: _this.interceptState.getComponentValue(r),
79
+ interceptApiStatusReason: _this.interceptApiStatusReason.getComponentValue(r)
77
80
  // interceptLogisticsUserKCode:
78
81
  // this.interceptLogisticsUserKCode.getComponentValue(r),
79
82
  // interceptLogisticsUserSecretKey:
@@ -100,6 +103,7 @@ function Logistics(options) {
100
103
  platform: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env,
101
104
  onJumpPage: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.onJumpPage
102
105
  }, _this.componentConfig, {
106
+ showReason: true,
103
107
  logisticsOptions: _this.expressDateInstance.getExpressData(),
104
108
  expressInterceptData: _this.expressInterceptData.getExpressData(),
105
109
  logisticsAddressData: _this.logisticsAddressData.getAddressData(),
@@ -112,7 +116,7 @@ function Logistics(options) {
112
116
  subKey: "interceptCompany"
113
117
  })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
114
118
  subKey: "interceptCode"
115
- })), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptApiStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item), _this.interceptState.filterConfig(item)
119
+ })), _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)
116
120
  // this.interceptLogisticsUserKCode.filterConfig(item),
117
121
  // this.interceptLogisticsUserSecretKey.filterConfig(item),
118
122
  ];
@@ -137,6 +141,7 @@ function Logistics(options) {
137
141
  this.interceptSenderMobile = new InterceptSenderMobile(options);
138
142
  this.interceptSnapshot = new InterceptSnapshot(options);
139
143
  this.interceptState = new InterceptState(options);
144
+ this.interceptApiStatusReason = new InterceptApiStatusReason(options);
140
145
  // this.interceptLogisticsUserSecretKey = new InterceptLogisticsUserSecretKey(
141
146
  // options,
142
147
  // );
@@ -152,7 +157,7 @@ function Logistics(options) {
152
157
  this.isCombinationComponent = true;
153
158
  this.canSort = false;
154
159
  this.dataType = "object";
155
- this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptSnapshot, this.interceptState
160
+ this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptApiStatus, this.interceptApiStatusReason, this.interceptSnapshot, this.interceptState
156
161
  // this.interceptLogisticsUserKCode,
157
162
  // this.interceptLogisticsUserSecretKey,
158
163
  ];
@@ -0,0 +1,45 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class InterceptApiStatusReason implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ companyId: string;
7
+ type: string;
8
+ rules: any[];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
+ effects: ComponentInterface["effects"];
11
+ align: ALignType;
12
+ width: number;
13
+ isCombinationComponent: boolean;
14
+ sortField: string;
15
+ formField: string;
16
+ canSort: boolean;
17
+ dataType: ComponentInterface["dataType"];
18
+ children: ComponentInterface[];
19
+ constructor(options: PickOption);
20
+ getComponentValue: (r: Record) => any;
21
+ renderClient: (record: any) => React.JSX.Element | null;
22
+ renderPc: (value: any, record: Record) => any;
23
+ renderLog: (r: Record) => any;
24
+ renderExport: (value: any, record: Record) => any;
25
+ editRender: () => null;
26
+ filterConfig: (item: ColumnConfig) => {
27
+ searchDefaultConditions: {
28
+ in: "in";
29
+ anylike: "anylike";
30
+ };
31
+ type: string;
32
+ id: string;
33
+ name: string;
34
+ filterComponentType: "SelectInput";
35
+ props: {
36
+ filterOptions: {
37
+ label: string;
38
+ value: string;
39
+ }[];
40
+ };
41
+ filterFn: (value: string) => (i: Record) => boolean;
42
+ formatFilterValue: (value: any) => any;
43
+ };
44
+ }
45
+ export default InterceptApiStatusReason;
@@ -0,0 +1,97 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ 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; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ 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); }
8
+ import React from "react";
9
+ import ItemView from "../../commonComponents/ItemView";
10
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { SYMBOL, batchInput, SEARCH_OPTIONS } from "../../constant";
12
+ var InterceptApiStatusReason = /*#__PURE__*/_createClass(function InterceptApiStatusReason(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, InterceptApiStatusReason);
15
+ _defineProperty(this, "name", void 0);
16
+ _defineProperty(this, "id", void 0);
17
+ _defineProperty(this, "companyId", void 0);
18
+ _defineProperty(this, "type", void 0);
19
+ _defineProperty(this, "rules", void 0);
20
+ _defineProperty(this, "componentConfig", void 0);
21
+ _defineProperty(this, "effects", void 0);
22
+ _defineProperty(this, "align", void 0);
23
+ _defineProperty(this, "width", void 0);
24
+ _defineProperty(this, "isCombinationComponent", void 0);
25
+ _defineProperty(this, "sortField", void 0);
26
+ _defineProperty(this, "formField", void 0);
27
+ _defineProperty(this, "canSort", void 0);
28
+ _defineProperty(this, "dataType", void 0);
29
+ _defineProperty(this, "children", void 0);
30
+ _defineProperty(this, "getComponentValue", function (r) {
31
+ return r === null || r === void 0 ? void 0 : r[_this.id];
32
+ });
33
+ _defineProperty(this, "renderClient", function (record) {
34
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
35
+ id: _this.id,
36
+ label: _this.name,
37
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
38
+ }) : null;
39
+ });
40
+ _defineProperty(this, "renderPc", function (value, record) {
41
+ return record === null || record === void 0 ? void 0 : record[_this.id];
42
+ });
43
+ _defineProperty(this, "renderLog", function (r) {
44
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
45
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
46
+ });
47
+ _defineProperty(this, "renderExport", function (value, record) {
48
+ var _record;
49
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--";
50
+ });
51
+ _defineProperty(this, "editRender", function () {
52
+ return null;
53
+ });
54
+ _defineProperty(this, "filterConfig", function (item) {
55
+ return {
56
+ searchDefaultConditions: {
57
+ in: SYMBOL.in,
58
+ anylike: SYMBOL.anylike
59
+ },
60
+ type: _this.type,
61
+ id: "".concat(item.id, "_interceptLogisticsApiStatusReason"),
62
+ name: "".concat(item.name, "-\u63A5\u53E3\u72B6\u6001\u539F\u56E0"),
63
+ filterComponentType: "SelectInput",
64
+ props: {
65
+ filterOptions: SEARCH_OPTIONS
66
+ },
67
+ filterFn: function filterFn(value) {
68
+ return function (i) {
69
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'interceptLogisticsApiStatusReason')).includes(value);
70
+ };
71
+ },
72
+ formatFilterValue: function formatFilterValue(value) {
73
+ if (['in', 'anylike'].includes(value.type)) {
74
+ return batchInput(value.keywords);
75
+ } else {
76
+ return value;
77
+ }
78
+ }
79
+ };
80
+ });
81
+ this.name = "接口状态原因";
82
+ this.id = "".concat(options.id, "_interceptLogisticsApiStatusReason");
83
+ this.companyId = "".concat(options.id, "_interceptCompany");
84
+ this.formField = "".concat(options.id, "_interceptLogisticsApiStatusReason");
85
+ this.sortField = "".concat(options.id, "_interceptLogisticsApiStatusReason");
86
+ this.dataType = "string";
87
+ this.type = options.type + '_API_STATUS_REASON';
88
+ this.componentConfig = options.componentConfig;
89
+ this.rules = [];
90
+ this.align = "left";
91
+ this.width = 200;
92
+ this.isCombinationComponent = false;
93
+ this.canSort = true;
94
+ this.children = [];
95
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
96
+ });
97
+ export default InterceptApiStatusReason;
@@ -31,9 +31,10 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
31
31
  return r === null || r === void 0 ? void 0 : r[_this.id];
32
32
  });
33
33
  _defineProperty(this, "renderClient", function (record) {
34
+ var name = (record === null || record === void 0 ? void 0 : record[_this.companyId]) === "ZTO" ? "发件人/收件人手机号" : _this.name;
34
35
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
35
36
  id: _this.id,
36
- label: _this.name,
37
+ label: name,
37
38
  value: record === null || record === void 0 ? void 0 : record[_this.id]
38
39
  }) : null;
39
40
  });
@@ -56,7 +57,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
56
57
  searchDefaultConditions: SYMBOL.like,
57
58
  type: item.type,
58
59
  id: "".concat(item.id, "_interceptSenderMobile"),
59
- name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
60
+ name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7"),
60
61
  filterComponentType: "Input",
61
62
  filterFn: function filterFn(value) {
62
63
  return function (i) {
@@ -8,6 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  import React from "react";
9
9
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
10
  import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { isEmpty } from "lodash";
11
12
  var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
12
13
  var _this = this;
13
14
  _classCallCheck(this, PaymentTid);
@@ -52,9 +53,10 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
52
53
  });
53
54
  _defineProperty(this, "renderExport", function (value, record) {
54
55
  var logisticsInterceptList = record["".concat(_this.originId, "_logisticsInterceptList")] || [];
55
- console.log("renderExport", record["".concat(_this.originId, "_logisticsInterceptList")]);
56
- return logisticsInterceptList.reduce(function (prv, item) {
56
+ return logisticsInterceptList === null || logisticsInterceptList === void 0 ? void 0 : logisticsInterceptList.reduce(function (prv, item) {
57
57
  var _item$interceptAddres2;
58
+ // item 若为空对象,则跳过
59
+ if (isEmpty(item)) return prv;
58
60
  var addressText = (_item$interceptAddres2 = item.interceptAddress) === null || _item$interceptAddres2 === void 0 ? void 0 : _item$interceptAddres2.map(function (suffix) {
59
61
  return _this.addressDateInstance.getNameByCode(suffix);
60
62
  }).join("");
@@ -30,7 +30,7 @@ var InterceptApiStatus = /*#__PURE__*/_createClass(function InterceptApiStatus(o
30
30
  _defineProperty(this, "getComponentValue", function (r) {
31
31
  var _ref;
32
32
  return (_ref = (r === null || r === void 0 ? void 0 : r[_this.id]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
33
- return "".concat(item === null || item === void 0 ? void 0 : item.status).concat(item !== null && item !== void 0 && item.reason ? ",".concat(item === null || item === void 0 ? void 0 : item.reason) : "");
33
+ return "".concat((item === null || item === void 0 ? void 0 : item.status) || "").concat(item !== null && item !== void 0 && item.reason ? ",".concat(item === null || item === void 0 ? void 0 : item.reason) : "");
34
34
  }).join(";");
35
35
  });
36
36
  _defineProperty(this, "renderStatus", function (record) {
@@ -113,6 +113,7 @@ function Logistics(options) {
113
113
  name: _this.id,
114
114
  rules: _this.rules,
115
115
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
116
+ display: p === null || p === void 0 ? void 0 : p.display,
116
117
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
117
118
  tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
118
119
  component: /*#__PURE__*/React.createElement(LogisticsMoreInterception, _extends({}, _this.componentConfig, {
@@ -1,20 +1,20 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
3
  declare class InterceptSenderMobile implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  companyId: string;
7
7
  type: string;
8
8
  rules: any[];
9
- componentConfig: ComponentInterface['componentConfig'];
10
- effects: ComponentInterface['effects'];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
+ effects: ComponentInterface["effects"];
11
11
  align: ALignType;
12
12
  width: number;
13
13
  isCombinationComponent: boolean;
14
14
  sortField: string;
15
15
  formField: string;
16
16
  canSort: boolean;
17
- dataType: ComponentInterface['dataType'];
17
+ dataType: ComponentInterface["dataType"];
18
18
  children: ComponentInterface[];
19
19
  constructor(options: PickOption);
20
20
  renderMobile: (record: any) => React.JSX.Element;
@@ -5,8 +5,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
5
5
  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; }
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  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); }
8
- import React from 'react';
9
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
8
+ import React from "react";
9
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
10
  import { SYMBOL } from "../../constant";
11
11
  var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMobile(options) {
12
12
  var _this = this;
@@ -35,7 +35,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
35
35
  _defineProperty(this, "getComponentValue", function (r) {
36
36
  return ((r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) || []).map(function (t) {
37
37
  return t.interceptSenderMobile;
38
- }).join(',');
38
+ }).join(",");
39
39
  });
40
40
  _defineProperty(this, "renderClient", function () {
41
41
  return null;
@@ -49,7 +49,7 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
49
49
  });
50
50
  _defineProperty(this, "renderExport", function (value, record) {
51
51
  var _this$getComponentVal;
52
- return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
52
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
53
53
  });
54
54
  _defineProperty(this, "editRender", function () {
55
55
  return null;
@@ -59,20 +59,20 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
59
59
  searchDefaultConditions: SYMBOL.like,
60
60
  type: item.type,
61
61
  id: "".concat(item.id, "_logisticsInterceptList"),
62
- name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
63
- filterComponentType: 'Input'
62
+ name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA/\u6536\u4EF6\u4EBA\u624B\u673A\u53F7"),
63
+ filterComponentType: "Input"
64
64
  };
65
65
  });
66
- this.name = '发件人手机号';
66
+ this.name = "发件人手机号";
67
67
  this.id = "".concat(options.id, "_interceptMobileList");
68
68
  this.companyId = "".concat(options.id);
69
69
  this.formField = "".concat(options.id);
70
70
  this.sortField = "".concat(options.id);
71
- this.dataType = 'string';
71
+ this.dataType = "string";
72
72
  this.type = options.type;
73
73
  this.componentConfig = options.componentConfig;
74
74
  this.rules = [];
75
- this.align = 'left';
75
+ this.align = "left";
76
76
  this.width = 200;
77
77
  this.isCombinationComponent = false;
78
78
  this.canSort = false;
@@ -0,0 +1,56 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
+ import React from "react";
3
+ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare type subConfigType = {
5
+ isEdit: boolean;
6
+ isRequired: boolean;
7
+ isShow: boolean;
8
+ key: string;
9
+ name: string;
10
+ workOrderComponentType: string;
11
+ width: number;
12
+ dataIndex: string;
13
+ title: string;
14
+ widget: string;
15
+ settingName?: string;
16
+ };
17
+ declare class OrderSubForm implements ComponentInterface {
18
+ name: string;
19
+ id: string;
20
+ sortField: string;
21
+ type: string;
22
+ rules: any[];
23
+ componentConfig: ComponentInterface["componentConfig"];
24
+ effects: ComponentInterface["effects"];
25
+ isCombinationComponent: boolean;
26
+ formField: string;
27
+ canSort: boolean;
28
+ expressDateInstance: InstanceType<typeof ExpressData>;
29
+ children: ComponentInterface[];
30
+ dataType: ComponentInterface["dataType"];
31
+ sortChildField: {
32
+ name: string;
33
+ key: string;
34
+ dataType: string;
35
+ [key: string]: any;
36
+ }[];
37
+ constructor(options: PickOption);
38
+ getSortChildFields: () => any;
39
+ renderTransformItem: (item: subConfigType, val: any) => any;
40
+ getNewTableHeader: () => any;
41
+ renderTabel: (list: any) => React.JSX.Element;
42
+ renderPc: () => null;
43
+ renderLog: (r: Record) => React.JSX.Element | null;
44
+ getComponentValue: (r: Record) => any;
45
+ renderExport: () => null;
46
+ renderClient: (record: Record) => React.JSX.Element | null;
47
+ editRender: (p: any) => React.JSX.Element;
48
+ filterConfig: (item: ColumnConfig) => {
49
+ searchDefaultConditions: "like";
50
+ type: string;
51
+ id: string;
52
+ name: string;
53
+ filterComponentType: "Input";
54
+ }[];
55
+ }
56
+ export default OrderSubForm;