@kmkf-fe-packages/services-components 0.6.3-alpha.9 → 0.7.0

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 +2 -2
  3. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  4. package/dist/esm/commonComponents/OperationLog/index.js +28 -27
  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 +6 -6
  12. package/dist/esm/components/ActualPayment/index.js +2 -4
  13. package/dist/esm/components/Address/index.d.ts +5 -6
  14. package/dist/esm/components/Address/index.js +1 -4
  15. package/dist/esm/components/Alipay/index.d.ts +5 -5
  16. package/dist/esm/components/Alipay/index.js +1 -4
  17. package/dist/esm/components/AlipayAccount/index.d.ts +6 -6
  18. package/dist/esm/components/AlipayAccount/index.js +2 -4
  19. package/dist/esm/components/AlipayName/index.d.ts +6 -6
  20. package/dist/esm/components/AlipayName/index.js +2 -4
  21. package/dist/esm/components/BuyerNick/index.d.ts +6 -9
  22. package/dist/esm/components/BuyerNick/index.js +1 -3
  23. package/dist/esm/components/Cascader/index.d.ts +6 -6
  24. package/dist/esm/components/Cascader/index.js +2 -4
  25. package/dist/esm/components/Checkbox/index.d.ts +5 -5
  26. package/dist/esm/components/Checkbox/index.js +8 -14
  27. package/dist/esm/components/Common/index.d.ts +5 -5
  28. package/dist/esm/components/CommonDataTime/index.d.ts +5 -5
  29. package/dist/esm/components/CommonDataTime/index.js +1 -4
  30. package/dist/esm/components/CompletedUser/index.d.ts +4 -4
  31. package/dist/esm/components/CompletedUser/index.js +2 -4
  32. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  33. package/dist/esm/components/DataTime/index.d.ts +7 -7
  34. package/dist/esm/components/DataTime/index.js +1 -3
  35. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  36. package/dist/esm/components/EItemEnCode/index.d.ts +6 -6
  37. package/dist/esm/components/EItemEnCode/index.js +5 -7
  38. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  39. package/dist/esm/components/EItemId/index.d.ts +6 -6
  40. package/dist/esm/components/EItemId/index.js +5 -7
  41. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  42. package/dist/esm/components/EItemSelect/index.d.ts +5 -6
  43. package/dist/esm/components/EItemSelect/index.js +3 -6
  44. package/dist/esm/components/ErpTradeId/index.d.ts +6 -6
  45. package/dist/esm/components/ErpTradeId/index.js +3 -5
  46. package/dist/esm/components/Express/index.d.ts +8 -8
  47. package/dist/esm/components/Express/index.js +3 -5
  48. package/dist/esm/components/ExpressCode/index.d.ts +8 -8
  49. package/dist/esm/components/ExpressCode/index.js +11 -12
  50. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  51. package/dist/esm/components/FlowStatusSelect/index.d.ts +6 -6
  52. package/dist/esm/components/FlowStatusSelect/index.js +1 -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 +5 -6
  56. package/dist/esm/components/Grade/index.js +1 -4
  57. package/dist/esm/components/Handler/index.d.ts +4 -4
  58. package/dist/esm/components/Handler/index.js +11 -8
  59. package/dist/esm/components/Input/index.d.ts +6 -6
  60. package/dist/esm/components/Input/index.js +2 -4
  61. package/dist/esm/components/JstItemSelect/index.d.ts +7 -7
  62. package/dist/esm/components/JstItemSelect/index.js +21 -24
  63. package/dist/esm/components/JstLogistics/index.d.ts +8 -7
  64. package/dist/esm/components/JstLogistics/index.js +11 -9
  65. package/dist/esm/components/JstSendGood/index.d.ts +6 -6
  66. package/dist/esm/components/JstSendGood/index.js +11 -9
  67. package/dist/esm/components/JstSupply/index.d.ts +6 -6
  68. package/dist/esm/components/JstSupply/index.js +11 -9
  69. package/dist/esm/components/Logistics/index.d.ts +7 -6
  70. package/dist/esm/components/Logistics/index.js +1 -4
  71. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +17 -11
  72. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +68 -29
  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 +54 -9
  80. package/dist/esm/components/LogisticsInterception/index.js +50 -16
  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 +6 -7
  84. package/dist/esm/components/MultSelect/index.js +3 -4
  85. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +4 -4
  86. package/dist/esm/components/Ordinary/OrdinaryHeader.js +2 -4
  87. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +4 -4
  88. package/dist/esm/components/Ordinary/OrdinaryMoney.js +2 -4
  89. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +4 -4
  90. package/dist/esm/components/Ordinary/OrdinarySerial.js +2 -4
  91. package/dist/esm/components/Ordinary/index.d.ts +5 -5
  92. package/dist/esm/components/Ordinary/index.js +2 -5
  93. package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
  94. package/dist/esm/components/Payment/AlipayNick.d.ts +6 -6
  95. package/dist/esm/components/Payment/AlipayNick.js +3 -4
  96. package/dist/esm/components/Payment/AlipayNo.d.ts +6 -6
  97. package/dist/esm/components/Payment/AlipayNo.js +4 -5
  98. package/dist/esm/components/Payment/AlipayTime.d.ts +6 -6
  99. package/dist/esm/components/Payment/AlipayTime.js +2 -6
  100. package/dist/esm/components/Payment/BuyerNick.d.ts +6 -6
  101. package/dist/esm/components/Payment/BuyerNick.js +2 -3
  102. package/dist/esm/components/Payment/PaymentAmount.d.ts +6 -6
  103. package/dist/esm/components/Payment/PaymentAmount.js +1 -3
  104. package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
  105. package/dist/esm/components/Payment/PaymentStatus.js +2 -4
  106. package/dist/esm/components/Payment/PaymentTid.d.ts +6 -6
  107. package/dist/esm/components/Payment/PaymentTid.js +1 -3
  108. package/dist/esm/components/Payment/index.d.ts +7 -5
  109. package/dist/esm/components/Payment/index.js +1 -4
  110. package/dist/esm/components/Picture/index.d.ts +6 -6
  111. package/dist/esm/components/Picture/index.js +1 -1
  112. package/dist/esm/components/PlatForm/index.d.ts +4 -4
  113. package/dist/esm/components/PlatForm/index.js +1 -3
  114. package/dist/esm/components/Popover/index.d.ts +2 -2
  115. package/dist/esm/components/Radio/index.d.ts +7 -6
  116. package/dist/esm/components/Radio/index.js +1 -0
  117. package/dist/esm/components/Rate/index.d.ts +6 -6
  118. package/dist/esm/components/Rate/index.js +4 -11
  119. package/dist/esm/components/ReceiverAddress/index.d.ts +6 -6
  120. package/dist/esm/components/ReceiverAddress/index.js +3 -3
  121. package/dist/esm/components/ReceiverMobile/index.d.ts +6 -6
  122. package/dist/esm/components/ReceiverMobile/index.js +2 -4
  123. package/dist/esm/components/ReceiverName/index.d.ts +6 -6
  124. package/dist/esm/components/ReceiverName/index.js +2 -4
  125. package/dist/esm/components/Remark/index.d.ts +7 -6
  126. package/dist/esm/components/Remark/index.js +1 -0
  127. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  128. package/dist/esm/components/ReturnLogistics/index.js +1 -4
  129. package/dist/esm/components/Select/index.d.ts +6 -6
  130. package/dist/esm/components/Select/index.js +1 -3
  131. package/dist/esm/components/ShopInput/index.d.ts +3 -3
  132. package/dist/esm/components/ShopInput/index.js +1 -3
  133. package/dist/esm/components/ShopName/index.d.ts +6 -6
  134. package/dist/esm/components/ShopName/index.js +3 -5
  135. package/dist/esm/components/Submitter/index.d.ts +4 -4
  136. package/dist/esm/components/Submitter/index.js +2 -4
  137. package/dist/esm/components/SystemOrderNo/index.d.ts +6 -6
  138. package/dist/esm/components/SystemOrderNo/index.js +2 -4
  139. package/dist/esm/components/TemplateSelect/index.d.ts +5 -5
  140. package/dist/esm/components/TemplateSelect/index.js +2 -4
  141. package/dist/esm/components/TextArea/index.d.ts +6 -6
  142. package/dist/esm/components/TextArea/index.js +2 -4
  143. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  144. package/dist/esm/components/ThirdItemSelect/index.d.ts +6 -6
  145. package/dist/esm/components/ThirdItemSelect/index.js +5 -8
  146. package/dist/esm/components/TradeDateTime/index.d.ts +7 -6
  147. package/dist/esm/components/TradeDateTime/index.js +1 -0
  148. package/dist/esm/components/TradeId/index.d.ts +6 -6
  149. package/dist/esm/components/TradeId/index.js +2 -4
  150. package/dist/esm/components/WorkOrderId/index.d.ts +5 -5
  151. package/dist/esm/components/WorkOrderId/index.js +1 -3
  152. package/dist/esm/index.d.ts +2 -0
  153. package/dist/esm/index.js +3 -1
  154. package/dist/esm/type.d.ts +13 -15
  155. package/package.json +10 -5
package/README.md CHANGED
@@ -1 +1,3 @@
1
1
  ### 企业工单组件库
2
+
3
+ 1111
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare const ItemView: ({ label, value, id }: {
3
3
  label: string;
4
4
  value: string | JSX.Element | JSX.Element[] | null;
5
5
  id: any;
6
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
7
7
  export default ItemView;
@@ -1,8 +1,9 @@
1
+ import React from "react";
1
2
  declare type OperationLogProps = {
2
3
  content: string;
3
4
  operation: string;
4
5
  componentDtoList: any[];
5
6
  };
6
7
  export declare const unTransField: (key: string) => boolean;
7
- declare const OperationLog: ({ content, operation, componentDtoList }: OperationLogProps) => JSX.Element | null;
8
+ declare const OperationLog: ({ content, operation, componentDtoList, }: OperationLogProps) => React.JSX.Element | null;
8
9
  export default OperationLog;
@@ -4,11 +4,11 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
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
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
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import React from 'react';
8
- import { factory } from '@kmkf-fe-packages/services-components';
9
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
7
+ import React from "react";
8
+ import { factory } from "@kmkf-fe-packages/services-components";
9
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
10
  export var unTransField = function unTransField(key) {
11
- return ['itemList', 'jstItemList', 'dateTime', 'basicMultSelect', 'checkbox', 'multSelect', 'rate', 'picture'].reduce(function (cur, nxt) {
11
+ return ["itemList", "jstItemList", "dateTime", "basicMultSelect", "checkbox", "multSelect", "rate", "picture"].reduce(function (cur, nxt) {
12
12
  return cur || (key === null || key === void 0 ? void 0 : key.includes(nxt));
13
13
  }, false);
14
14
  };
@@ -18,10 +18,9 @@ var OperationLog = function OperationLog(_ref) {
18
18
  componentDtoList = _ref.componentDtoList;
19
19
  if (!content) return null;
20
20
  try {
21
- var record = JSON.parse(content);
22
21
  if (/^TRANSFER/.test(operation)) {
23
22
  if (/^\[.*?\]-->>\[.*?\]$/.test(content)) {
24
- var _content$split = content.split('-->>'),
23
+ var _content$split = content.split("-->>"),
25
24
  _content$split2 = _slicedToArray(_content$split, 2),
26
25
  before = _content$split2[0],
27
26
  after = _content$split2[1];
@@ -37,38 +36,39 @@ var OperationLog = function OperationLog(_ref) {
37
36
  }
38
37
  return /*#__PURE__*/React.createElement("div", {
39
38
  className: "log-info-wrap"
40
- }, "".concat(beforeList.join(','), " => ").concat(afterList.join(',')));
39
+ }, "".concat(beforeList.join(","), " => ").concat(afterList.join(",")));
41
40
  }
42
41
  } else if (/^(UPDATE|ADD)/.test(operation)) {
42
+ var record = JSON.parse(content);
43
43
  if (/^\[.+\]$/.test(content)) {
44
44
  var currentContent = record === null || record === void 0 ? void 0 : record.reduce(function (nxt, cur) {
45
- if (!unTransField(cur['uniqueKey'])) {
46
- nxt[cur['uniqueKey']] = cur['content'];
45
+ if (!unTransField(cur["uniqueKey"])) {
46
+ nxt[cur["uniqueKey"]] = cur["content"];
47
47
  return nxt;
48
48
  }
49
49
  try {
50
- nxt[cur['uniqueKey']] = JSON.parse(cur['content']);
50
+ nxt[cur["uniqueKey"]] = JSON.parse(cur["content"]);
51
51
  } catch (e) {
52
- nxt[cur['uniqueKey']] = cur['content'];
52
+ nxt[cur["uniqueKey"]] = cur["content"];
53
53
  } finally {
54
+ // eslint-disable-next-line no-unsafe-finally
54
55
  return nxt;
55
56
  }
56
57
  }, {});
57
58
  var oldContent = record === null || record === void 0 ? void 0 : record.reduce(function (nxt, cur) {
58
- if (!unTransField(cur['uniqueKey'])) {
59
- nxt[cur['uniqueKey']] = cur['oldContent'];
59
+ if (!unTransField(cur["uniqueKey"])) {
60
+ nxt[cur["uniqueKey"]] = cur["oldContent"];
60
61
  return nxt;
61
62
  }
62
63
  try {
63
- nxt[cur['uniqueKey']] = JSON.parse(cur['content']);
64
+ nxt[cur["uniqueKey"]] = JSON.parse(cur["oldContent"]);
64
65
  } catch (e) {
65
- nxt[cur['uniqueKey']] = cur['content'];
66
+ nxt[cur["uniqueKey"]] = cur["oldContent"];
66
67
  } finally {
68
+ // eslint-disable-next-line no-unsafe-finally
67
69
  return nxt;
68
70
  }
69
71
  }, {});
70
- console.debug('currentContent', currentContent);
71
- console.debug('oldContent', oldContent);
72
72
  var currentNeedContentId = Object.keys(currentContent);
73
73
  var newTemplateColumns = componentDtoList === null || componentDtoList === void 0 ? void 0 : componentDtoList.filter(function (item) {
74
74
  return currentNeedContentId.findIndex(function (id) {
@@ -82,28 +82,29 @@ var OperationLog = function OperationLog(_ref) {
82
82
  componentConfig: item.componentConfig,
83
83
  type: item.workOrderComponentType
84
84
  });
85
- console.debug('xxxx', instance.getComponentValue(currentContent), isNull(instance.getComponentValue(currentContent)));
86
- if (operation !== null && operation !== void 0 && operation.startsWith('UPDATE') && !isNull(instance.getComponentValue(oldContent)) && !isNull(instance.getComponentValue(currentContent))) {
85
+ if (operation !== null && operation !== void 0 && operation.startsWith("UPDATE")) {
87
86
  return /*#__PURE__*/React.createElement("span", {
88
87
  style: {
89
- display: 'flex'
88
+ display: "flex"
90
89
  }
91
90
  }, /*#__PURE__*/React.createElement("span", {
92
91
  style: {
93
- maxWidth: '66px',
92
+ maxWidth: "66px",
93
+ marginRight: "8px",
94
94
  flexShrink: 1
95
95
  }
96
96
  }, item === null || item === void 0 ? void 0 : item.name, ":"), /*#__PURE__*/React.createElement("span", {
97
97
  className: "value"
98
- }, /*#__PURE__*/React.createElement("span", null, instance.renderLog(oldContent), /*#__PURE__*/React.createElement("span", null, '=>'), instance.renderLog(currentContent))));
99
- } else if (operation !== null && operation !== void 0 && operation.startsWith('ADD') && !isNull(instance.getComponentValue(currentContent))) {
98
+ }, /*#__PURE__*/React.createElement("span", null, instance.renderLog(oldContent), /*#__PURE__*/React.createElement("span", null, "=>"), instance.renderLog(currentContent))));
99
+ } else if (operation !== null && operation !== void 0 && operation.startsWith("ADD") && !isNull(instance.getComponentValue(currentContent))) {
100
100
  return /*#__PURE__*/React.createElement("span", {
101
101
  style: {
102
- display: 'flex'
102
+ display: "flex"
103
103
  }
104
104
  }, /*#__PURE__*/React.createElement("span", {
105
105
  style: {
106
- maxWidth: '66px',
106
+ maxWidth: "66px",
107
+ marginRight: "8px",
107
108
  flexShrink: 1
108
109
  }
109
110
  }, item === null || item === void 0 ? void 0 : item.name, ":"), /*#__PURE__*/React.createElement("span", {
@@ -119,8 +120,8 @@ var OperationLog = function OperationLog(_ref) {
119
120
  }
120
121
  return /*#__PURE__*/React.createElement("div", null, content);
121
122
  } catch (e) {
122
- console.error('日志信息JSON转换异常', e);
123
- return null;
123
+ console.error("日志信息JSON转换异常", e);
124
+ return /*#__PURE__*/React.createElement("div", null, content);
124
125
  }
125
126
  };
126
127
  export default OperationLog;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare type PlatBuyerProp = {
3
3
  shopId: string;
4
4
  buyerNick: string;
5
5
  buyerOpenUid: string;
6
6
  shopList: any[];
7
7
  };
8
- declare const PlatBuyer: ({ shopId, buyerNick, buyerOpenUid, shopList }: PlatBuyerProp) => JSX.Element;
8
+ declare const PlatBuyer: ({ shopId, buyerNick, buyerOpenUid, shopList }: PlatBuyerProp) => React.JSX.Element;
9
9
  export default PlatBuyer;
@@ -1,7 +1,7 @@
1
- import { CSSProperties, PropsWithChildren } from 'react';
1
+ import React, { CSSProperties, PropsWithChildren } from 'react';
2
2
  declare type PlatformAvatarProps = {
3
3
  type: number | string;
4
4
  styles?: CSSProperties;
5
5
  };
6
- declare const PlatformAvatar: (props: PropsWithChildren<PlatformAvatarProps>) => JSX.Element;
6
+ declare const PlatformAvatar: (props: PropsWithChildren<PlatformAvatarProps>) => React.JSX.Element;
7
7
  export default PlatformAvatar;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, }: {
3
+ title?: string | undefined;
4
+ modelWidth?: string | number | undefined;
5
+ interceptCompany: string;
6
+ interceptCode: string;
7
+ interceptSenderMobile: string | number;
8
+ }) => React.JSX.Element;
9
+ export default QueryLogisticsTrack;
@@ -0,0 +1,92 @@
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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ import React from "react";
6
+ import { Modal, Timeline, message } from "antd";
7
+ import { request } from "@kmkf-fe-packages/kmkf-utils";
8
+ var info = Modal.info;
9
+ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
10
+ var _ref$title = _ref.title,
11
+ title = _ref$title === void 0 ? "查轨迹" : _ref$title,
12
+ _ref$modelWidth = _ref.modelWidth,
13
+ modelWidth = _ref$modelWidth === void 0 ? 500 : _ref$modelWidth,
14
+ interceptCompany = _ref.interceptCompany,
15
+ interceptCode = _ref.interceptCode,
16
+ interceptSenderMobile = _ref.interceptSenderMobile;
17
+ var LogisticsList = function LogisticsList(list) {
18
+ return /*#__PURE__*/React.createElement("div", {
19
+ style: {
20
+ maxHeight: "500px",
21
+ padding: "8px 0",
22
+ overflowY: "auto"
23
+ }
24
+ }, /*#__PURE__*/React.createElement(Timeline, null, list.map(function (item, index) {
25
+ return /*#__PURE__*/React.createElement(Timeline.Item, {
26
+ key: index
27
+ }, item);
28
+ })));
29
+ };
30
+ var handleQueryLogistics = /*#__PURE__*/function () {
31
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33
+ while (1) switch (_context.prev = _context.next) {
34
+ case 0:
35
+ if (!(!interceptCode || !interceptCompany)) {
36
+ _context.next = 2;
37
+ break;
38
+ }
39
+ return _context.abrupt("return", message.error("缺少物流公司或物流单号"));
40
+ case 2:
41
+ try {
42
+ request({
43
+ url: "/qy/logistics/logisticsTraceSearch",
44
+ method: "post",
45
+ data: {
46
+ mailNo: interceptCode,
47
+ cpCode: interceptCompany,
48
+ mobile: interceptSenderMobile
49
+ },
50
+ handleError: function handleError(msg) {
51
+ msg && message.error(msg);
52
+ }
53
+ }).then(function (res) {
54
+ var result = res.result,
55
+ success = res.success,
56
+ data = res.data,
57
+ message = res.message;
58
+ if (result === 100 || success) {
59
+ info({
60
+ title: "物流轨迹",
61
+ okText: "确定",
62
+ icon: null,
63
+ width: modelWidth,
64
+ content: LogisticsList(data)
65
+ });
66
+ } else {
67
+ message && message.error(message);
68
+ }
69
+ });
70
+ } catch (err) {
71
+ (err === null || err === void 0 ? void 0 : err.message) && message.error(err === null || err === void 0 ? void 0 : err.message);
72
+ }
73
+ case 3:
74
+ case "end":
75
+ return _context.stop();
76
+ }
77
+ }, _callee);
78
+ }));
79
+ return function handleQueryLogistics() {
80
+ return _ref2.apply(this, arguments);
81
+ };
82
+ }();
83
+ return /*#__PURE__*/React.createElement("span", {
84
+ style: {
85
+ margin: "0 8px",
86
+ color: "#1890ff",
87
+ cursor: "pointer"
88
+ },
89
+ onClick: handleQueryLogistics
90
+ }, title);
91
+ };
92
+ export default QueryLogisticsTrack;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare type Shop = {
3
3
  auditStatus: number;
4
4
  shopId: string;
@@ -9,5 +9,5 @@ declare type ShopListProps = {
9
9
  shopList: Shop[];
10
10
  [prop: string]: any;
11
11
  };
12
- declare const ShopList: ({ shopList, onChange, setShopId, ...prop }: ShopListProps) => JSX.Element;
12
+ declare const ShopList: ({ shopList, onChange, setShopId, ...prop }: ShopListProps) => React.JSX.Element;
13
13
  export default ShopList;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare type WangwangProps = {
3
3
  nick: string;
4
4
  buyerOpenUid: string;
5
5
  };
6
- declare const Wangwang: (props: WangwangProps) => JSX.Element;
6
+ declare const Wangwang: (props: WangwangProps) => React.JSX.Element;
7
7
  export default Wangwang;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class ActualPayment implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -9,14 +9,14 @@ declare class ActualPayment implements ComponentInterface {
9
9
  children: ComponentInterface[];
10
10
  componentConfig: ComponentInterface["componentConfig"];
11
11
  constructor(options: PickOption);
12
- render: (value: number) => JSX.Element;
13
- renderClient: (record: any) => JSX.Element | null;
14
- renderPc: (value: unknown, record: Record) => JSX.Element;
15
- renderLog: (r: Record) => JSX.Element | null;
12
+ renderClient: (record: any) => React.JSX.Element | null;
13
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
14
+ renderLog: (r: Record) => React.JSX.Element | null;
16
15
  getComponentValue: (r: Record) => any;
17
16
  renderExport: (value: unknown, record: Record) => any;
18
- editRender: (value: any) => JSX.Element;
17
+ editRender: () => React.JSX.Element;
19
18
  filterConfig: (item: ColumnConfig) => {
19
+ type: string;
20
20
  id: string;
21
21
  name: string;
22
22
  filterComponentType: "Input";
@@ -21,9 +21,6 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
21
21
  _defineProperty(this, "isCombinationComponent", void 0);
22
22
  _defineProperty(this, "children", void 0);
23
23
  _defineProperty(this, "componentConfig", void 0);
24
- _defineProperty(this, "render", function (value) {
25
- return /*#__PURE__*/React.createElement("span", null, value);
26
- });
27
24
  _defineProperty(this, "renderClient", function (record) {
28
25
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
29
26
  id: _this.id,
@@ -46,7 +43,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
46
43
  var _record2;
47
44
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_actualPayment")]) !== null && _record2 !== void 0 ? _record2 : '--';
48
45
  });
49
- _defineProperty(this, "editRender", function (value) {
46
+ _defineProperty(this, "editRender", function () {
50
47
  var _this$componentConfig, _this$componentConfig2;
51
48
  return /*#__PURE__*/React.createElement(GetFormItem, {
52
49
  title: _this.name,
@@ -60,6 +57,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
60
57
  });
61
58
  _defineProperty(this, "filterConfig", function (item) {
62
59
  return {
60
+ type: item.type,
63
61
  id: item.id,
64
62
  // 过滤组件id
65
63
  name: item.name,
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import React from 'react';
3
3
  import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare type Value = (string | number)[] | undefined;
5
5
  declare class Address implements ComponentInterface {
@@ -18,14 +18,13 @@ declare class Address implements ComponentInterface {
18
18
  * @returns
19
19
  */
20
20
  getValue: (value: Value) => string | undefined;
21
- render: (value: Value) => JSX.Element;
22
21
  transTextToNumber: (value?: string) => string | number | undefined;
23
- renderClient: (record: any) => JSX.Element | null;
24
- renderPc: (value: any, record: Record) => JSX.Element;
25
- renderLog: (r: Record) => JSX.Element | null;
22
+ renderClient: (record: any) => React.JSX.Element | null;
23
+ renderPc: (value: any, record: Record) => React.JSX.Element;
24
+ renderLog: (r: Record) => React.JSX.Element | null;
26
25
  getComponentValue: (r: Record) => any[];
27
26
  renderExport: (value: any, record: any) => string;
28
- editRender: (value: any) => JSX.Element;
27
+ editRender: () => React.JSX.Element;
29
28
  filterConfig: () => never[];
30
29
  }
31
30
  export default Address;
@@ -29,9 +29,6 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
29
29
  return _this.addressDateInstance.getNameByCode(suffix);
30
30
  })) === null || _value$map === void 0 ? void 0 : _value$map.join('');
31
31
  });
32
- _defineProperty(this, "render", function (value) {
33
- return /*#__PURE__*/React.createElement("span", null, _this.getValue(value));
34
- });
35
32
  _defineProperty(this, "transTextToNumber", function (value) {
36
33
  return value ? +value : value;
37
34
  });
@@ -75,7 +72,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
75
72
  return _this.addressDateInstance.getNameByCode(suffix || '');
76
73
  }).join('');
77
74
  });
78
- _defineProperty(this, "editRender", function (value) {
75
+ _defineProperty(this, "editRender", function () {
79
76
  var _this$componentConfig, _this$componentConfig2;
80
77
  return /*#__PURE__*/React.createElement(GetFormItem, {
81
78
  title: _this.name,
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import React from 'react';
3
3
  import EAlipayAccount from '../AlipayAccount';
4
4
  import EAlipayName from '../AlipayName';
5
5
  declare class Alipay implements ComponentInterface {
@@ -13,17 +13,17 @@ declare class Alipay implements ComponentInterface {
13
13
  isCombinationComponent: boolean;
14
14
  children: ComponentInterface[];
15
15
  constructor(options: PickOption);
16
- render: () => null;
17
- renderClient: (record: Record) => JSX.Element;
16
+ renderClient: (record: Record) => React.JSX.Element;
18
17
  renderPc: () => null;
19
- renderLog: (r: Record) => JSX.Element;
18
+ renderLog: (r: Record) => React.JSX.Element;
20
19
  getComponentValue: (r: Record) => {
21
20
  name: any;
22
21
  user: any;
23
22
  };
24
23
  renderExport: () => null;
25
- editRender: (value: any) => JSX.Element;
24
+ editRender: (value: any) => React.JSX.Element;
26
25
  filterConfig: (item: ColumnConfig) => {
26
+ type: string;
27
27
  id: string;
28
28
  name: string;
29
29
  filterComponentType: "Input";
@@ -26,9 +26,6 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
26
26
  _defineProperty(this, "alipayName", void 0);
27
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
28
  _defineProperty(this, "children", void 0);
29
- _defineProperty(this, "render", function () {
30
- return null;
31
- });
32
29
  _defineProperty(this, "renderClient", function (record) {
33
30
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderClient(record), _this.alipayAccount.renderClient(record));
34
31
  });
@@ -36,7 +33,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
36
33
  return null;
37
34
  });
38
35
  _defineProperty(this, "renderLog", function (r) {
39
- return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderLog(r), _this.alipayAccount.renderLog(r));
36
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.alipayName.name, ": ", _this.alipayName.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.alipayAccount.name, ": ", _this.alipayAccount.renderLog(r)));
40
37
  });
41
38
  _defineProperty(this, "getComponentValue", function (r) {
42
39
  return {
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class EAlipayAccount implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -12,14 +12,14 @@ declare class EAlipayAccount implements ComponentInterface {
12
12
  isCombinationComponent: boolean;
13
13
  children: ComponentInterface[];
14
14
  constructor(options: PickOption);
15
- render: (value: string) => JSX.Element;
16
- renderClient: (record: Record) => JSX.Element | null;
17
- renderPc: (value: unknown, record: Record) => JSX.Element;
18
- renderLog: (r: Record) => JSX.Element | null;
15
+ renderClient: (record: Record) => React.JSX.Element | null;
16
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
17
+ renderLog: (r: Record) => React.JSX.Element | null;
19
18
  getComponentValue: (r: Record) => any;
20
19
  renderExport: (value?: string) => string;
21
- editRender: (value: any) => JSX.Element;
20
+ editRender: () => React.JSX.Element;
22
21
  filterConfig: (item: ColumnConfig) => {
22
+ type: string;
23
23
  id: string;
24
24
  name: string;
25
25
  filterComponentType: "Input";
@@ -26,9 +26,6 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
26
26
  _defineProperty(this, "width", void 0);
27
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
28
  _defineProperty(this, "children", void 0);
29
- _defineProperty(this, "render", function (value) {
30
- return /*#__PURE__*/React.createElement("span", null, value);
31
- });
32
29
  _defineProperty(this, "renderClient", function (record) {
33
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
34
31
  id: _this.id,
@@ -56,7 +53,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
56
53
  _defineProperty(this, "renderExport", function (value) {
57
54
  return value !== null && value !== void 0 ? value : '--';
58
55
  });
59
- _defineProperty(this, "editRender", function (value) {
56
+ _defineProperty(this, "editRender", function () {
60
57
  var _this$componentConfig, _this$componentConfig2;
61
58
  return /*#__PURE__*/React.createElement(GetFormItem, {
62
59
  title: _this.name,
@@ -68,6 +65,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
68
65
  });
69
66
  _defineProperty(this, "filterConfig", function (item) {
70
67
  return {
68
+ type: item.type,
71
69
  id: "".concat(item.id, "_alipayAccount"),
72
70
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
73
71
  filterComponentType: 'Input',
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class EAlipayAccount implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -12,14 +12,14 @@ declare class EAlipayAccount implements ComponentInterface {
12
12
  align: ALignType;
13
13
  width: number;
14
14
  constructor(options: PickOption);
15
- render: (value: string, record: any) => JSX.Element;
16
- renderClient: (record: any) => JSX.Element | null;
17
- renderPc: (value: unknown, record: Record) => JSX.Element;
18
- renderLog: (r: Record) => JSX.Element | null;
15
+ renderClient: (record: any) => React.JSX.Element | null;
16
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
17
+ renderLog: (r: Record) => React.JSX.Element | null;
19
18
  getComponentValue: (r: Record) => any;
20
19
  renderExport: (value?: string) => string;
21
- editRender: (value: any) => JSX.Element;
20
+ editRender: () => React.JSX.Element;
22
21
  filterConfig: (item: ColumnConfig) => {
22
+ type: string;
23
23
  id: string;
24
24
  name: string;
25
25
  filterComponentType: "Input";
@@ -26,9 +26,6 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
26
26
  _defineProperty(this, "children", void 0);
27
27
  _defineProperty(this, "align", void 0);
28
28
  _defineProperty(this, "width", void 0);
29
- _defineProperty(this, "render", function (value, record) {
30
- return /*#__PURE__*/React.createElement("span", null, value);
31
- });
32
29
  _defineProperty(this, "renderClient", function (record) {
33
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
34
31
  id: _this.id,
@@ -56,7 +53,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
56
53
  _defineProperty(this, "renderExport", function (value) {
57
54
  return value !== null && value !== void 0 ? value : '--';
58
55
  });
59
- _defineProperty(this, "editRender", function (value) {
56
+ _defineProperty(this, "editRender", function () {
60
57
  var _this$componentConfig, _this$componentConfig2;
61
58
  return /*#__PURE__*/React.createElement(GetFormItem, {
62
59
  title: _this.name,
@@ -68,6 +65,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
68
65
  });
69
66
  _defineProperty(this, "filterConfig", function (item) {
70
67
  return {
68
+ type: item.type,
71
69
  id: "".concat(item.id, "_alipayName"),
72
70
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u540D\u79F0"),
73
71
  filterComponentType: 'Input',
@@ -1,8 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
3
- declare type Value = {
4
- buyerNick?: string;
5
- };
2
+ import React from 'react';
6
3
  declare class EBuyerNick implements ComponentInterface {
7
4
  name: string;
8
5
  id: string;
@@ -13,17 +10,17 @@ declare class EBuyerNick implements ComponentInterface {
13
10
  isCombinationComponent: boolean;
14
11
  children: ComponentInterface[];
15
12
  constructor(options: PickOption);
16
- render: (value: Value) => JSX.Element;
17
- renderClient: (record: any) => JSX.Element | null;
18
- renderPc: (value: unknown, record: Record) => JSX.Element;
19
- renderLog: (r: Record) => JSX.Element | null;
13
+ renderClient: (record: any) => React.JSX.Element | null;
14
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
15
+ renderLog: (r: Record) => React.JSX.Element | null;
20
16
  getComponentValue: (r: Record) => {
21
17
  buyerNick: any;
22
18
  buyerOpenUid: any;
23
19
  };
24
20
  renderExport: (value: any, record: any) => any;
25
- editRender: (value: any) => JSX.Element;
21
+ editRender: (value: any) => React.JSX.Element;
26
22
  filterConfig: (item: ColumnConfig) => {
23
+ type: string;
27
24
  id: string;
28
25
  name: string;
29
26
  filterComponentType: "Input";