@kmkf-fe-packages/services-components 0.6.3-alpha.6 → 0.6.3-alpha.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 (155) hide show
  1. package/README.md +2 -0
  2. package/dist/esm/commonComponents/ItemView/index.d.ts +3 -3
  3. package/dist/esm/commonComponents/OperationLog/index.d.ts +9 -0
  4. package/dist/esm/commonComponents/OperationLog/index.js +127 -0
  5. package/dist/esm/commonComponents/PlatBuyer/index.d.ts +2 -2
  6. package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +2 -2
  7. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +9 -0
  8. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +92 -0
  9. package/dist/esm/commonComponents/ShopList/index.d.ts +2 -2
  10. package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
  11. package/dist/esm/components/ActualPayment/index.d.ts +7 -5
  12. package/dist/esm/components/ActualPayment/index.js +9 -4
  13. package/dist/esm/components/Address/index.d.ts +6 -5
  14. package/dist/esm/components/Address/index.js +8 -4
  15. package/dist/esm/components/Alipay/index.d.ts +9 -4
  16. package/dist/esm/components/Alipay/index.js +9 -3
  17. package/dist/esm/components/AlipayAccount/index.d.ts +7 -5
  18. package/dist/esm/components/AlipayAccount/index.js +11 -5
  19. package/dist/esm/components/AlipayName/index.d.ts +7 -5
  20. package/dist/esm/components/AlipayName/index.js +11 -5
  21. package/dist/esm/components/BuyerNick/index.d.ts +10 -8
  22. package/dist/esm/components/BuyerNick/index.js +11 -3
  23. package/dist/esm/components/Cascader/index.d.ts +9 -7
  24. package/dist/esm/components/Cascader/index.js +9 -4
  25. package/dist/esm/components/Checkbox/index.d.ts +10 -5
  26. package/dist/esm/components/Checkbox/index.js +21 -6
  27. package/dist/esm/components/Common/index.d.ts +5 -5
  28. package/dist/esm/components/CommonDataTime/index.d.ts +7 -5
  29. package/dist/esm/components/CommonDataTime/index.js +8 -4
  30. package/dist/esm/components/CompletedUser/index.d.ts +5 -3
  31. package/dist/esm/components/CompletedUser/index.js +7 -3
  32. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  33. package/dist/esm/components/DataTime/index.d.ts +9 -7
  34. package/dist/esm/components/DataTime/index.js +8 -3
  35. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  36. package/dist/esm/components/EItemEnCode/index.d.ts +7 -5
  37. package/dist/esm/components/EItemEnCode/index.js +12 -7
  38. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  39. package/dist/esm/components/EItemId/index.d.ts +7 -5
  40. package/dist/esm/components/EItemId/index.js +12 -7
  41. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  42. package/dist/esm/components/EItemSelect/index.d.ts +6 -5
  43. package/dist/esm/components/EItemSelect/index.js +10 -6
  44. package/dist/esm/components/ErpTradeId/index.d.ts +8 -6
  45. package/dist/esm/components/ErpTradeId/index.js +10 -5
  46. package/dist/esm/components/Express/index.d.ts +8 -6
  47. package/dist/esm/components/Express/index.js +12 -7
  48. package/dist/esm/components/ExpressCode/index.d.ts +10 -8
  49. package/dist/esm/components/ExpressCode/index.js +19 -12
  50. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  51. package/dist/esm/components/FlowStatusSelect/index.d.ts +7 -5
  52. package/dist/esm/components/FlowStatusSelect/index.js +11 -3
  53. package/dist/esm/components/GetFormItem/index.d.ts +3 -3
  54. package/dist/esm/components/GetFormItem/index.js +3 -3
  55. package/dist/esm/components/Grade/index.d.ts +6 -5
  56. package/dist/esm/components/Grade/index.js +8 -4
  57. package/dist/esm/components/Handler/index.d.ts +5 -5
  58. package/dist/esm/components/Handler/index.js +18 -8
  59. package/dist/esm/components/Input/index.d.ts +7 -5
  60. package/dist/esm/components/Input/index.js +9 -4
  61. package/dist/esm/components/JstItemSelect/index.d.ts +8 -6
  62. package/dist/esm/components/JstItemSelect/index.js +29 -24
  63. package/dist/esm/components/JstLogistics/index.d.ts +10 -7
  64. package/dist/esm/components/JstLogistics/index.js +19 -9
  65. package/dist/esm/components/JstSendGood/index.d.ts +7 -5
  66. package/dist/esm/components/JstSendGood/index.js +19 -9
  67. package/dist/esm/components/JstSupply/index.d.ts +7 -5
  68. package/dist/esm/components/JstSupply/index.js +19 -9
  69. package/dist/esm/components/Logistics/index.d.ts +12 -6
  70. package/dist/esm/components/Logistics/index.js +9 -3
  71. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +17 -9
  72. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +72 -27
  73. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
  74. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
  75. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +21 -9
  76. package/dist/esm/components/LogisticsInterception/InterceptType.js +40 -18
  77. package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
  78. package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
  79. package/dist/esm/components/LogisticsInterception/index.d.ts +55 -8
  80. package/dist/esm/components/LogisticsInterception/index.js +54 -14
  81. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
  82. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
  83. package/dist/esm/components/MultSelect/index.d.ts +7 -6
  84. package/dist/esm/components/MultSelect/index.js +10 -4
  85. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +7 -5
  86. package/dist/esm/components/Ordinary/OrdinaryHeader.js +12 -6
  87. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +7 -5
  88. package/dist/esm/components/Ordinary/OrdinaryMoney.js +11 -5
  89. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +7 -5
  90. package/dist/esm/components/Ordinary/OrdinarySerial.js +12 -6
  91. package/dist/esm/components/Ordinary/index.d.ts +12 -6
  92. package/dist/esm/components/Ordinary/index.js +12 -5
  93. package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
  94. package/dist/esm/components/Payment/AlipayNick.d.ts +7 -5
  95. package/dist/esm/components/Payment/AlipayNick.js +13 -6
  96. package/dist/esm/components/Payment/AlipayNo.d.ts +7 -5
  97. package/dist/esm/components/Payment/AlipayNo.js +13 -7
  98. package/dist/esm/components/Payment/AlipayTime.d.ts +8 -6
  99. package/dist/esm/components/Payment/AlipayTime.js +11 -8
  100. package/dist/esm/components/Payment/BuyerNick.d.ts +7 -5
  101. package/dist/esm/components/Payment/BuyerNick.js +12 -6
  102. package/dist/esm/components/Payment/PaymentAmount.d.ts +7 -5
  103. package/dist/esm/components/Payment/PaymentAmount.js +10 -4
  104. package/dist/esm/components/Payment/PaymentStatus.d.ts +7 -5
  105. package/dist/esm/components/Payment/PaymentStatus.js +11 -5
  106. package/dist/esm/components/Payment/PaymentTid.d.ts +8 -6
  107. package/dist/esm/components/Payment/PaymentTid.js +10 -4
  108. package/dist/esm/components/Payment/index.d.ts +20 -8
  109. package/dist/esm/components/Payment/index.js +14 -3
  110. package/dist/esm/components/Picture/index.d.ts +7 -5
  111. package/dist/esm/components/Picture/index.js +8 -1
  112. package/dist/esm/components/PlatForm/index.d.ts +10 -5
  113. package/dist/esm/components/PlatForm/index.js +8 -3
  114. package/dist/esm/components/Popover/index.d.ts +2 -2
  115. package/dist/esm/components/Radio/index.d.ts +11 -5
  116. package/dist/esm/components/Radio/index.js +11 -0
  117. package/dist/esm/components/Rate/index.d.ts +7 -5
  118. package/dist/esm/components/Rate/index.js +11 -11
  119. package/dist/esm/components/ReceiverAddress/index.d.ts +10 -5
  120. package/dist/esm/components/ReceiverAddress/index.js +13 -3
  121. package/dist/esm/components/ReceiverMobile/index.d.ts +7 -5
  122. package/dist/esm/components/ReceiverMobile/index.js +9 -4
  123. package/dist/esm/components/ReceiverName/index.d.ts +7 -5
  124. package/dist/esm/components/ReceiverName/index.js +9 -4
  125. package/dist/esm/components/Remark/index.d.ts +11 -5
  126. package/dist/esm/components/Remark/index.js +11 -0
  127. package/dist/esm/components/ReturnLogistics/index.d.ts +14 -8
  128. package/dist/esm/components/ReturnLogistics/index.js +9 -3
  129. package/dist/esm/components/Select/index.d.ts +7 -5
  130. package/dist/esm/components/Select/index.js +8 -3
  131. package/dist/esm/components/ShopInput/index.d.ts +5 -3
  132. package/dist/esm/components/ShopInput/index.js +9 -4
  133. package/dist/esm/components/ShopName/index.d.ts +7 -5
  134. package/dist/esm/components/ShopName/index.js +10 -5
  135. package/dist/esm/components/Submitter/index.d.ts +5 -3
  136. package/dist/esm/components/Submitter/index.js +7 -3
  137. package/dist/esm/components/SystemOrderNo/index.d.ts +8 -6
  138. package/dist/esm/components/SystemOrderNo/index.js +9 -4
  139. package/dist/esm/components/TemplateSelect/index.d.ts +6 -4
  140. package/dist/esm/components/TemplateSelect/index.js +10 -5
  141. package/dist/esm/components/TextArea/index.d.ts +7 -5
  142. package/dist/esm/components/TextArea/index.js +9 -4
  143. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  144. package/dist/esm/components/ThirdItemSelect/index.d.ts +7 -5
  145. package/dist/esm/components/ThirdItemSelect/index.js +12 -8
  146. package/dist/esm/components/TradeDateTime/index.d.ts +10 -6
  147. package/dist/esm/components/TradeDateTime/index.js +18 -7
  148. package/dist/esm/components/TradeId/index.d.ts +8 -6
  149. package/dist/esm/components/TradeId/index.js +9 -4
  150. package/dist/esm/components/WorkOrderId/index.d.ts +6 -4
  151. package/dist/esm/components/WorkOrderId/index.js +10 -4
  152. package/dist/esm/index.d.ts +3 -0
  153. package/dist/esm/index.js +4 -1
  154. package/dist/esm/type.d.ts +20 -14
  155. package/package.json +10 -5
@@ -5,12 +5,12 @@ 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 { ApaasInput } from '@kmkf-fe-packages/basic-components';
8
+ import React from "react";
9
+ import { ApaasInput } from "@kmkf-fe-packages/basic-components";
10
10
  import GetFormItem from "../GetFormItem";
11
11
  import ItemView from "../../commonComponents/ItemView";
12
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
13
- import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
12
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
13
+ import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
14
14
  var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
15
15
  var _this = this;
16
16
  _classCallCheck(this, PaymentTid);
@@ -26,39 +26,84 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
26
26
  _defineProperty(this, "children", void 0);
27
27
  _defineProperty(this, "originId", void 0);
28
28
  _defineProperty(this, "addressDateInstance", void 0);
29
- _defineProperty(this, "render", function (value, record) {
29
+ _defineProperty(this, "renderClient", function (record) {
30
30
  var _ref;
31
- var address = JSON.parse(record["".concat(_this.id, "_interceptAddress")] || '[]');
32
- var detail = record["".concat(_this.id, "_interceptDetail")];
31
+ var province = record["".concat(_this.originId, "_interceptProvince")];
32
+ var city = record["".concat(_this.originId, "_interceptCity")];
33
+ var district = record["".concat(_this.originId, "_interceptDistrict")];
34
+ var detail = record["".concat(_this.originId, "_interceptDetail")];
33
35
  var name = record["".concat(_this.originId, "_interceptReceiverName")];
34
36
  var mobile = record["".concat(_this.originId, "_interceptReceiverMobile")];
35
- var addressText = (_ref = address || []) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
37
+ var addressText = (_ref = [province, city, district]) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
36
38
  return _this.addressDateInstance.getNameByCode(suffix);
37
- }).join('');
39
+ }).join("");
38
40
  var hasValue = addressText || detail || name || mobile;
39
- return hasValue ? /*#__PURE__*/React.createElement("div", null, [addressText, detail].join('/'), /*#__PURE__*/React.createElement("br", null), [name, mobile].join('/')) : null;
40
- });
41
- _defineProperty(this, "renderClient", function (record) {
41
+ var value = hasValue ? /*#__PURE__*/React.createElement("div", null, [addressText, detail].join("/"), /*#__PURE__*/React.createElement("br", null), [name, mobile].join("/")) : null;
42
42
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
43
43
  id: _this.id,
44
44
  label: _this.name,
45
- value: record === null || record === void 0 ? void 0 : record[_this.id]
45
+ value: value
46
46
  }) : null;
47
47
  });
48
48
  _defineProperty(this, "renderPc", function (value, record) {
49
- if (value === undefined) {
49
+ var _ref2;
50
+ var province = record["".concat(_this.originId, "_interceptProvince")];
51
+ var city = record["".concat(_this.originId, "_interceptCity")];
52
+ var district = record["".concat(_this.originId, "_interceptDistrict")];
53
+ var detail = record["".concat(_this.originId, "_interceptDetail")];
54
+ var name = record["".concat(_this.originId, "_interceptReceiverName")];
55
+ var mobile = record["".concat(_this.originId, "_interceptReceiverMobile")];
56
+ if (province === undefined) {
50
57
  return /*#__PURE__*/React.createElement("span", null, "--");
51
58
  }
52
- return /*#__PURE__*/React.createElement("span", {
53
- className: "pointer",
54
- onClick: function onClick() {
55
- var _this$effects, _this$effects2;
56
- typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
57
- }
58
- }, value);
59
+ var addressText = (_ref2 = [province, city, district]) === null || _ref2 === void 0 ? void 0 : _ref2.map(function (suffix) {
60
+ return _this.addressDateInstance.getNameByCode(suffix);
61
+ }).join("");
62
+ return /*#__PURE__*/React.createElement("span", null, "".concat(addressText).concat(detail), /*#__PURE__*/React.createElement("br", null), "".concat(name, " ").concat(mobile));
63
+ });
64
+ _defineProperty(this, "renderLog", function (r) {
65
+ var _ref3;
66
+ var _this$getComponentVal = _this.getComponentValue(r),
67
+ province = _this$getComponentVal.province,
68
+ city = _this$getComponentVal.city,
69
+ district = _this$getComponentVal.district,
70
+ detail = _this$getComponentVal.detail,
71
+ name = _this$getComponentVal.name,
72
+ mobile = _this$getComponentVal.mobile;
73
+ if ([province, detail, name, mobile].every(function (item) {
74
+ return isNull(item);
75
+ })) return null;
76
+ var addressText = (_ref3 = [province, city, district]) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (suffix) {
77
+ return _this.addressDateInstance.getNameByCode(suffix);
78
+ }).join("");
79
+ return /*#__PURE__*/React.createElement(React.Fragment, null, "".concat(addressText).concat(detail, " ").concat(name).concat(mobile));
80
+ });
81
+ _defineProperty(this, "getComponentValue", function (r) {
82
+ return {
83
+ province: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptProvince")],
84
+ city: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptCity")],
85
+ district: r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptDistrict")],
86
+ detail: (r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptDetail")]) || '',
87
+ name: (r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptReceiverName")]) || '',
88
+ mobile: (r === null || r === void 0 ? void 0 : r["".concat(_this.originId, "_interceptReceiverMobile")]) || ''
89
+ };
59
90
  });
60
91
  _defineProperty(this, "renderExport", function (value, record) {
61
- return value !== null && value !== void 0 ? value : '--';
92
+ var _ref4;
93
+ var _this$getComponentVal2 = _this.getComponentValue(record),
94
+ province = _this$getComponentVal2.province,
95
+ city = _this$getComponentVal2.city,
96
+ district = _this$getComponentVal2.district,
97
+ detail = _this$getComponentVal2.detail,
98
+ name = _this$getComponentVal2.name,
99
+ mobile = _this$getComponentVal2.mobile;
100
+ if ([province, detail, name, mobile].every(function (item) {
101
+ return isNull(item);
102
+ })) return null;
103
+ var addressText = (_ref4 = [province, city, district]) === null || _ref4 === void 0 ? void 0 : _ref4.map(function (suffix) {
104
+ return _this.addressDateInstance.getNameByCode(suffix);
105
+ }).join("");
106
+ return "".concat(addressText).concat(detail, " ").concat(name).concat(mobile);
62
107
  });
63
108
  _defineProperty(this, "editRender", function () {
64
109
  var _this$componentConfig, _this$componentConfig2;
@@ -70,16 +115,16 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
70
115
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
71
116
  });
72
117
  });
73
- _defineProperty(this, "filterConfig", function (item) {
118
+ _defineProperty(this, "filterConfig", function () {
74
119
  return [];
75
120
  });
76
- this.name = '新派送地';
77
- this.id = "".concat(options.id, "_interceptAddress");
121
+ this.name = "派送地址";
122
+ this.id = "".concat(options.id, "_interceptProvince");
78
123
  this.type = options.type;
79
124
  this.componentConfig = options.componentConfig;
80
125
  this.rules = [];
81
- this.align = 'left';
82
- this.width = 200;
126
+ this.align = "left";
127
+ this.width = 350;
83
128
  this.originId = options.id;
84
129
  this.isCombinationComponent = false;
85
130
  this.children = [];
@@ -0,0 +1,38 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class InterceptStatus implements ComponentInterface {
5
+ name: string;
6
+ parentId: string;
7
+ id: string;
8
+ companyId: string;
9
+ type: string;
10
+ rules: any[];
11
+ componentConfig: ComponentInterface["componentConfig"];
12
+ effects: ComponentInterface["effects"];
13
+ align: ALignType;
14
+ width: number;
15
+ isCombinationComponent: boolean;
16
+ children: ComponentInterface[];
17
+ expressInterceptInstance: ExpressInterceptData;
18
+ constructor(options: PickOption);
19
+ getComponentValue: (r: Record) => any;
20
+ renderStatus: (record: any, w?: number) => React.JSX.Element;
21
+ renderClient: (record: any) => React.JSX.Element | null;
22
+ renderPc: (value: any, record: Record) => React.JSX.Element;
23
+ renderLog: (r: Record) => any;
24
+ renderExport: (value: any, record: Record) => any;
25
+ editRender: () => null;
26
+ filterConfig: (item: ColumnConfig) => {
27
+ type: string;
28
+ id: string;
29
+ name: string;
30
+ filterComponentType: "MultipleSelect";
31
+ options: {
32
+ label: string;
33
+ value: string;
34
+ }[];
35
+ filterFn: (value: string[]) => (i: Record) => boolean;
36
+ };
37
+ }
38
+ export default InterceptStatus;
@@ -0,0 +1,102 @@
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 { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
12
+ import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
13
+ var InterceptStatus = /*#__PURE__*/_createClass(function InterceptStatus(options) {
14
+ var _this = this;
15
+ _classCallCheck(this, InterceptStatus);
16
+ _defineProperty(this, "name", void 0);
17
+ _defineProperty(this, "parentId", void 0);
18
+ _defineProperty(this, "id", void 0);
19
+ _defineProperty(this, "companyId", void 0);
20
+ _defineProperty(this, "type", void 0);
21
+ _defineProperty(this, "rules", void 0);
22
+ _defineProperty(this, "componentConfig", void 0);
23
+ _defineProperty(this, "effects", void 0);
24
+ _defineProperty(this, "align", void 0);
25
+ _defineProperty(this, "width", void 0);
26
+ _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "children", void 0);
28
+ _defineProperty(this, "expressInterceptInstance", void 0);
29
+ _defineProperty(this, "getComponentValue", function (r) {
30
+ return r === null || r === void 0 ? void 0 : r[_this.id];
31
+ });
32
+ _defineProperty(this, "renderStatus", function (record) {
33
+ var _this$expressIntercep;
34
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
35
+ var interceptCode = "".concat(_this.parentId, "_interceptCode");
36
+ var interceptSenderMobile = "".concat(_this.parentId, "_interceptSenderMobile");
37
+ var value = (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep["".concat(record === null || record === void 0 ? void 0 : record[_this.id])];
38
+ return /*#__PURE__*/React.createElement("div", null, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
39
+ modelWidth: w,
40
+ interceptCompany: record[_this.companyId],
41
+ interceptCode: record[interceptCode],
42
+ interceptSenderMobile: record[interceptSenderMobile]
43
+ }) : null);
44
+ });
45
+ _defineProperty(this, "renderClient", function (record) {
46
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
47
+ id: _this.id,
48
+ label: _this.name,
49
+ value: _this.renderStatus(record)
50
+ }) : null;
51
+ });
52
+ _defineProperty(this, "renderPc", function (value, record) {
53
+ return _this.renderStatus(record, 700);
54
+ });
55
+ _defineProperty(this, "renderLog", function (r) {
56
+ var _this$expressIntercep2;
57
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
58
+ return (_this$expressIntercep2 = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep2 === void 0 ? void 0 : _this$expressIntercep2[r === null || r === void 0 ? void 0 : r["".concat(_this.id)]];
59
+ });
60
+ _defineProperty(this, "renderExport", function (value, record) {
61
+ var _this$expressIntercep3, _this$expressIntercep4;
62
+ return (_this$expressIntercep3 = (_this$expressIntercep4 = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep4 === void 0 ? void 0 : _this$expressIntercep4["".concat(record === null || record === void 0 ? void 0 : record[_this.id])]) !== null && _this$expressIntercep3 !== void 0 ? _this$expressIntercep3 : "--";
63
+ });
64
+ _defineProperty(this, "editRender", function () {
65
+ return null;
66
+ });
67
+ _defineProperty(this, "filterConfig", function (item) {
68
+ return {
69
+ type: item.type,
70
+ id: "".concat(item.id, "_interceptLogisticsStatus"),
71
+ name: "".concat(item.name, "-\u7269\u6D41\u72B6\u6001"),
72
+ filterComponentType: "MultipleSelect",
73
+ options: _this.expressInterceptInstance.getStatusOptions() || [],
74
+ filterFn: function filterFn(value) {
75
+ return function (i) {
76
+ var _value$map, _value$map$flat;
77
+ return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
78
+ return v === null || v === void 0 ? void 0 : v.split(",");
79
+ })) === null || _value$map === void 0 ? void 0 : (_value$map$flat = _value$map.flat()) === null || _value$map$flat === void 0 ? void 0 : _value$map$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "interceptLogisticsStatus"));
80
+ };
81
+ }
82
+ };
83
+ });
84
+ this.name = "物流状态";
85
+ this.parentId = options.id;
86
+ this.id = "".concat(options.id, "_interceptLogisticsStatus");
87
+ this.companyId = "".concat(options.id, "_interceptCompany");
88
+ this.type = options.type;
89
+ this.componentConfig = options.componentConfig;
90
+ this.rules = [];
91
+ this.align = "left";
92
+ this.width = 220;
93
+ this.isCombinationComponent = false;
94
+ this.children = [];
95
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
96
+ this.expressInterceptInstance = ExpressInterceptData.getInstance();
97
+ }
98
+
99
+ //物流轨迹查询
100
+ );
101
+
102
+ export default InterceptStatus;
@@ -1,9 +1,10 @@
1
- /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
- import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
4
- declare class PaymentTid implements ComponentInterface {
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class InterceptType implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
+ companyId: string;
7
8
  type: string;
8
9
  rules: any[];
9
10
  componentConfig: ComponentInterface["componentConfig"];
@@ -12,13 +13,24 @@ declare class PaymentTid implements ComponentInterface {
12
13
  width: number;
13
14
  isCombinationComponent: boolean;
14
15
  children: ComponentInterface[];
15
- addressDateInstance: AddressData;
16
+ expressInterceptInstance: ExpressInterceptData;
16
17
  constructor(options: PickOption);
17
- render: (value: any, record: any) => JSX.Element;
18
- renderClient: (record: any) => JSX.Element | null;
18
+ getComponentValue: (r: Record) => any;
19
+ renderClient: (record: any) => React.JSX.Element | null;
19
20
  renderPc: (value: any, record: Record) => any;
21
+ renderLog: (r: Record) => any;
20
22
  renderExport: (value: any, record: Record) => any;
21
23
  editRender: () => null;
22
- filterConfig: (item: ColumnConfig) => never[];
24
+ filterConfig: (item: ColumnConfig) => {
25
+ type: string;
26
+ id: string;
27
+ name: string;
28
+ filterComponentType: "MultipleSelect";
29
+ options: {
30
+ label: string;
31
+ value: string;
32
+ }[];
33
+ filterFn: (value: string[]) => (i: Record) => boolean;
34
+ };
23
35
  }
24
- export default PaymentTid;
36
+ export default InterceptType;
@@ -5,15 +5,16 @@ 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';
8
+ import React from "react";
9
9
  import ItemView from "../../commonComponents/ItemView";
10
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
11
- import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
12
- var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
10
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
12
+ var InterceptType = /*#__PURE__*/_createClass(function InterceptType(options) {
13
13
  var _this = this;
14
- _classCallCheck(this, PaymentTid);
14
+ _classCallCheck(this, InterceptType);
15
15
  _defineProperty(this, "name", void 0);
16
16
  _defineProperty(this, "id", void 0);
17
+ _defineProperty(this, "companyId", void 0);
17
18
  _defineProperty(this, "type", void 0);
18
19
  _defineProperty(this, "rules", void 0);
19
20
  _defineProperty(this, "componentConfig", void 0);
@@ -22,41 +23,62 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
22
23
  _defineProperty(this, "width", void 0);
23
24
  _defineProperty(this, "isCombinationComponent", void 0);
24
25
  _defineProperty(this, "children", void 0);
25
- _defineProperty(this, "addressDateInstance", void 0);
26
- _defineProperty(this, "render", function (value, record) {
27
- return /*#__PURE__*/React.createElement("span", null, "TODO");
26
+ _defineProperty(this, "expressInterceptInstance", void 0);
27
+ _defineProperty(this, "getComponentValue", function (r) {
28
+ return r === null || r === void 0 ? void 0 : r[_this.id];
28
29
  });
29
30
  _defineProperty(this, "renderClient", function (record) {
31
+ var _this$expressIntercep;
30
32
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
31
33
  id: _this.id,
32
34
  label: _this.name,
33
- value: record === null || record === void 0 ? void 0 : record[_this.id]
35
+ value: (_this$expressIntercep = _this.expressInterceptInstance.getTypeNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep["".concat(record === null || record === void 0 ? void 0 : record[_this.id])]
34
36
  }) : null;
35
37
  });
36
38
  _defineProperty(this, "renderPc", function (value, record) {
37
- var _record;
38
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_interceptType")]) !== null && _record !== void 0 ? _record : '--';
39
+ var _this$expressIntercep2;
40
+ return (_this$expressIntercep2 = _this.expressInterceptInstance.getTypeNameMap()["".concat(record === null || record === void 0 ? void 0 : record[_this.id])]) !== null && _this$expressIntercep2 !== void 0 ? _this$expressIntercep2 : "--";
41
+ });
42
+ _defineProperty(this, "renderLog", function (r) {
43
+ var _this$expressIntercep3;
44
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
45
+ return (_this$expressIntercep3 = _this.expressInterceptInstance.getTypeNameMap()) === null || _this$expressIntercep3 === void 0 ? void 0 : _this$expressIntercep3[r === null || r === void 0 ? void 0 : r["".concat(_this.id)]];
39
46
  });
40
47
  _defineProperty(this, "renderExport", function (value, record) {
41
- var _record2;
42
- return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_interceptType")]) !== null && _record2 !== void 0 ? _record2 : '--';
48
+ var _this$expressIntercep4, _this$expressIntercep5;
49
+ return (_this$expressIntercep4 = (_this$expressIntercep5 = _this.expressInterceptInstance.getTypeNameMap()) === null || _this$expressIntercep5 === void 0 ? void 0 : _this$expressIntercep5["".concat(record === null || record === void 0 ? void 0 : record[_this.id])]) !== null && _this$expressIntercep4 !== void 0 ? _this$expressIntercep4 : "--";
43
50
  });
44
51
  _defineProperty(this, "editRender", function () {
45
52
  return null;
46
53
  });
47
54
  _defineProperty(this, "filterConfig", function (item) {
48
- return [];
55
+ return {
56
+ type: item.type,
57
+ id: "".concat(item.id, "_interceptType"),
58
+ name: "".concat(item.name, "-\u62E6\u622A\u7C7B\u578B"),
59
+ filterComponentType: 'MultipleSelect',
60
+ options: _this.expressInterceptInstance.getTypeOptions() || [],
61
+ filterFn: function filterFn(value) {
62
+ return function (i) {
63
+ var _value$map, _value$map$flat;
64
+ return value === null || value === void 0 ? void 0 : (_value$map = value.map(function (v) {
65
+ return v === null || v === void 0 ? void 0 : v.split(',');
66
+ })) === null || _value$map === void 0 ? void 0 : (_value$map$flat = _value$map.flat()) === null || _value$map$flat === void 0 ? void 0 : _value$map$flat.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'interceptType'));
67
+ };
68
+ }
69
+ };
49
70
  });
50
- this.name = '拦截类型';
71
+ this.name = "拦截类型";
51
72
  this.id = "".concat(options.id, "_interceptType");
73
+ this.companyId = "".concat(options.id, "_interceptCompany");
52
74
  this.type = options.type;
53
75
  this.componentConfig = options.componentConfig;
54
76
  this.rules = [];
55
- this.align = 'left';
77
+ this.align = "left";
56
78
  this.width = 200;
57
79
  this.isCombinationComponent = false;
58
80
  this.children = [];
59
81
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
60
- this.addressDateInstance = AddressData.getInstance();
82
+ this.expressInterceptInstance = ExpressInterceptData.getInstance();
61
83
  });
62
- export default PaymentTid;
84
+ export default InterceptType;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ declare const ColumnHeader: ({ name }: {
3
+ name: string | JSX.Element;
4
+ }) => React.JSX.Element;
5
+ export default ColumnHeader;
@@ -0,0 +1,55 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useState } from "react";
8
+ import { Modal } from "antd";
9
+ import { QuestionCircleOutlined } from "@ant-design/icons";
10
+ var ColumnHeader = function ColumnHeader(_ref) {
11
+ var name = _ref.name;
12
+ var _useState = useState(false),
13
+ _useState2 = _slicedToArray(_useState, 2),
14
+ visible = _useState2[0],
15
+ setVisible = _useState2[1];
16
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", null, name, /*#__PURE__*/React.createElement(QuestionCircleOutlined, {
17
+ style: {
18
+ fontSize: "14px",
19
+ marginLeft: "6px",
20
+ marginRight: "auto"
21
+ },
22
+ onClick: function onClick(e) {
23
+ e.stopPropagation();
24
+ setVisible(true);
25
+ }
26
+ })), /*#__PURE__*/React.createElement(Modal, {
27
+ visible: visible,
28
+ title: "物流拦截字段解释",
29
+ onCancel: function onCancel() {
30
+ return setVisible(false);
31
+ },
32
+ footer: null
33
+ }, /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u516C\u53F8\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u516C\u53F8\u540D\u79F0"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u5355\u53F7\uFF1A\u672C\u6B21\u5DE5\u5355\u9700\u8981\u62E6\u622A\u7684\u7269\u6D41\u5355\u53F7"), /*#__PURE__*/React.createElement("p", null, "\u62E6\u622A\u7C7B\u578B\uFF1A\u672C\u6B21\u62E6\u622A\u6240\u8981\u505A\u7684\u52A8\u4F5C\u662F\u4EC0\u4E48\uFF1B\u4F8B\u5982\uFF1A\u662F\u9000\u56DE\u8FD8\u662F\u8F6C\u5BC4"), /*#__PURE__*/React.createElement("div", null, "\u6D3E\u9001\u5730\u5740\uFF1A"), /*#__PURE__*/React.createElement("div", null, "\u4E2D\u901A/\u987A\u4E30\uFF1A\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u8F6C\u5BC4\u7684\u8BDD\uFF0C\u9700\u8981\u586B\u5199\u65B0\u7684\u6D3E\u9001\u5730\u5740\uFF1B\u5982\u679C\u62E6\u622A\u7C7B\u578B\u4E3A\u9000\u56DE\u5219\u4E0D\u9700\u8981"), /*#__PURE__*/React.createElement("p", null, "\u6781\u5154\uFF1A\u65E0\u8BBA\u54EA\u79CD\u7C7B\u578B\u90FD\u9700\u8981\u586B\u5199\u6D3E\u9001\u5730\u5740"), /*#__PURE__*/React.createElement("p", null, "\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF1A\u5982\u679C\u7269\u6D41\u516C\u53F8\u4E3A\u987A\u4E30\uFF0C\u5219\u9700\u8981\u586B\u5199\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7\uFF0C\u7528\u6765\u67E5\u8BE2 \u7269\u6D41\u8F68\u8FF9"), /*#__PURE__*/React.createElement("p", null, "\u7269\u6D41\u72B6\u6001\uFF1A\u62E6\u622A\u5F53\u524D\u8FD9\u4E2A\u7269\u6D41\u5355\u53F7\u7684\u7269\u6D41\u8F68\u8FF9\u72B6\u6001\uFF08", /*#__PURE__*/React.createElement("span", {
34
+ style: {
35
+ color: "#ff4d4f"
36
+ }
37
+ }, "\u8F6C\u5355\u6216\u4FEE\u6539\u5730\u5740\u8F6C\u5BC4/\u5DF2\u7B7E\u6536/\u4ECE\u5FEB\u9012\u67DC\u6216\u8005\u9A7F\u7AD9\u53D6\u51FA/\u9000\u56DE\u7B7E\u6536/\u5305\u88F9\u5F02\u5E38/\u62D2\u6536/\u6D3E\u4EF6\u5F02\u5E38/\u6EDE\u7559\u4EF6/\u95EE\u9898\u4EF6/\u9000\u56DE\u4EF6/\u7834\u635F/\u63FD\u4EF6\u53D6\u6D88 \u662F\u6700\u7EC8\u72B6\u6001\uFF0C\u4E0D\u518D\u505A\u66F4\u65B0\uFF0C\u53EF\u901A\u8FC7\u67E5\u8BE2\u7269\u6D41\u8F68\u8FF9\u6765\u83B7\u53D6\u6700\u65B0\u7269\u6D41\u72B6\u6001"), "\uFF09\uFF0C\u53EF\u4EE5\u901A\u8FC7\u67E5\u770B\u8BE5\u72B6\u6001\u6765\u5224\u65AD\u6B64\u6B21\u62E6\u622A\u662F\u5426\u6210\u529F\uFF08\u5BF9\u5173\u7CFB\u5982\u4E0B\uFF09"), /*#__PURE__*/React.createElement("p", null, "1.", /*#__PURE__*/React.createElement("b", {
38
+ style: {
39
+ color: "#1890ff"
40
+ }
41
+ }, "\u62E6\u622A\u4E2D"), "\uFF1A\u62E6\u622A\u8BF7\u6C42\u5DF2\u7ECF\u53D1\u9001\u7ED9\u5FEB\u9012\u516C\u53F8\uFF0C\u7269\u6D41\u72B6\u6001\u5927\u6982\u4E3A", /*#__PURE__*/React.createElement("b", null, "\u3010\u63A5\u5355\u4E2D\u3001\u5F85\u63FD\u6536\u3001\u5DF2\u63FD\u6536\u3001\u8FD0\u8F93\u4E2D\u3001\u5230\u8FBE\u76EE\u7684\u57CE\u5E02\u3001\u5305\u88F9\u5F02\u5E38\u3001\u95EE\u9898\u4EF6\u3001\u7834\u635F\u3011")), /*#__PURE__*/React.createElement("p", null, "2.", /*#__PURE__*/React.createElement("b", {
42
+ style: {
43
+ color: "#1890ff"
44
+ }
45
+ }, "\u62E6\u622A\u6210\u529F"), "\uFF1A\u8BE5\u7269\u6D41\u5355\u53F7\u5DF2\u7ECF\u88AB\u6210\u529F\u62E6\u622A\uFF0C\u7269\u6D41\u72B6\u6001\u5927\u6982\u4E3A", /*#__PURE__*/React.createElement("b", null, "\u3010\u9000\u56DE\u7B7E\u6536\u3001\u9000\u56DE\u4EF6\u3001\u62E6\u622A\u53D6\u6D88\u3001\u8F6C\u5355\u6216\u8005\u4FEE\u6539\u5730\u5740\u8F6C\u5BC4\u3011")), /*#__PURE__*/React.createElement("p", null, "3.", /*#__PURE__*/React.createElement("b", {
46
+ style: {
47
+ color: "#1890ff"
48
+ }
49
+ }, "\u62E6\u622A\u5931\u8D25"), "\uFF1A\u8BE5\u7269\u6D41\u5355\u53F7\u51FA\u73B0\u5F02\u5E38\u6216\u8005\u88AB\u7B7E\u6536\uFF0C\u7269\u6D41\u72B6\u6001\u5927\u6982\u4E3A", /*#__PURE__*/React.createElement("b", null, "\u3010\u6D3E\u4EF6\u4E2D\u3001\u5DF2\u653E\u5165\u5FEB\u9012\u67DC\u6216\u9A7F\u7AD9\u3001\u5DF2\u4EE3\u7B7E\u6536\u3001\u5DF2\u7B7E\u6536\u3001\u4ECE\u5FEB\u9012\u67DC\u6216\u8005\u9A7F\u7AD9\u53D6\u51FA\u3001\u62D2\u6536\u3001\u6D3E\u4EF6\u5F02\u5E38\u3001\u6EDE\u7559\u4EF6\u3011")), /*#__PURE__*/React.createElement("p", {
50
+ style: {
51
+ color: "#ff4d4f"
52
+ }
53
+ }, "\u6CE8\uFF1A\u7269\u6D41\u72B6\u6001\u4EC5\u9002\u7528\u4E8E\u4F7F\u7528\u81EA\u52A8\u62E6\u622A\u63A5\u53E3\u7684\u5FEB\u9012\u516C\u53F8\uFF0C\u4E0D\u5305\u542B\u7269\u6D41\u5BA2\u670D\u624B\u52A8\u62E6\u622A\u7684")));
54
+ };
55
+ export default ColumnHeader;
@@ -1,27 +1,74 @@
1
- /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ColumnConfig } from "../../type";
3
- import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
+ import React from "react";
3
+ import { ExpressData, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
4
+ import InterceptSenderMobile from "./interceptSenderMobile";
4
5
  import InterceptAddress from "./InterceptAddress";
6
+ import InterceptType from "./InterceptType";
7
+ import InterceptStatus from "./InterceptStatus";
5
8
  import Express from "../Express";
6
9
  import ExpressCode from "../ExpressCode";
7
10
  declare class Logistics implements ComponentInterface {
8
11
  name: string;
12
+ columnHeader: string | JSX.Element;
9
13
  id: string;
10
14
  type: string;
11
15
  rules: any[];
12
16
  componentConfig: ComponentInterface["componentConfig"];
13
17
  interceptAddress: InterceptAddress;
18
+ interceptType: InterceptType;
19
+ interceptLogisticsStatus: InterceptStatus;
20
+ interceptSenderMobile: InterceptSenderMobile;
14
21
  isCombinationComponent: boolean;
15
22
  children: ComponentInterface[];
16
23
  express: Express;
17
24
  expressCode: ExpressCode;
18
- expressDateInstance: ExpressData;
25
+ expressDateInstance: InstanceType<typeof ExpressData>;
26
+ expressInterceptData: InstanceType<typeof ExpressInterceptData>;
27
+ effects: ComponentInterface["effects"];
19
28
  constructor(options: PickOption);
20
- render: () => null;
21
- renderClient: (record: any) => JSX.Element;
29
+ renderClient: (record: any) => React.JSX.Element;
30
+ renderLog: (record: any) => React.JSX.Element;
31
+ getComponentValue: (r: Record) => {
32
+ interceptCompany: any;
33
+ interceptCode: any;
34
+ interceptSenderMobile: any;
35
+ interceptType: any;
36
+ interceptLogisticsStatus: any;
37
+ interceptRedirectTo: {
38
+ province: any;
39
+ city: any;
40
+ district: any;
41
+ detail: any;
42
+ name: any;
43
+ mobile: any;
44
+ };
45
+ };
22
46
  renderPc: () => null;
23
47
  renderExport: () => null;
24
- editRender: (value: any) => JSX.Element;
25
- filterConfig: (item: ColumnConfig) => never[];
48
+ editRender: () => React.JSX.Element;
49
+ filterConfig: (item: ColumnConfig) => ({
50
+ type: string;
51
+ id: string;
52
+ name: string;
53
+ filterComponentType: "MultipleSelect";
54
+ options: any[];
55
+ filterFn: (value: string) => (i: Record) => boolean;
56
+ } | {
57
+ type: string;
58
+ id: string;
59
+ name: string;
60
+ filterComponentType: "Input";
61
+ filterFn: (value: string) => (i: Record) => boolean;
62
+ } | {
63
+ type: string;
64
+ id: string;
65
+ name: string;
66
+ filterComponentType: "MultipleSelect";
67
+ options: {
68
+ label: string;
69
+ value: string;
70
+ }[];
71
+ filterFn: (value: string[]) => (i: Record) => boolean;
72
+ })[];
26
73
  }
27
74
  export default Logistics;