@kmkf-fe-packages/services-components 0.6.3 → 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 (159) 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 +7 -0
  7. package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
  8. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +9 -0
  9. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +92 -0
  10. package/dist/esm/commonComponents/ShopList/index.d.ts +13 -0
  11. package/dist/esm/commonComponents/ShopList/index.js +34 -0
  12. package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
  13. package/dist/esm/components/ActualPayment/index.d.ts +15 -16
  14. package/dist/esm/components/ActualPayment/index.js +28 -26
  15. package/dist/esm/components/Address/index.d.ts +12 -19
  16. package/dist/esm/components/Address/index.js +17 -26
  17. package/dist/esm/components/Alipay/index.d.ts +18 -22
  18. package/dist/esm/components/Alipay/index.js +15 -20
  19. package/dist/esm/components/AlipayAccount/index.d.ts +15 -17
  20. package/dist/esm/components/AlipayAccount/index.js +29 -28
  21. package/dist/esm/components/AlipayName/index.d.ts +15 -17
  22. package/dist/esm/components/AlipayName/index.js +29 -28
  23. package/dist/esm/components/BuyerNick/index.d.ts +18 -19
  24. package/dist/esm/components/BuyerNick/index.js +41 -28
  25. package/dist/esm/components/Cascader/index.d.ts +16 -28
  26. package/dist/esm/components/Cascader/index.js +38 -31
  27. package/dist/esm/components/Checkbox/index.d.ts +19 -15
  28. package/dist/esm/components/Checkbox/index.js +45 -26
  29. package/dist/esm/components/Common/index.d.ts +5 -5
  30. package/dist/esm/components/CommonDataTime/index.d.ts +14 -14
  31. package/dist/esm/components/CommonDataTime/index.js +27 -24
  32. package/dist/esm/components/CompletedUser/index.d.ts +30 -0
  33. package/dist/esm/components/CompletedUser/index.js +64 -0
  34. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  35. package/dist/esm/components/DataTime/index.d.ts +17 -16
  36. package/dist/esm/components/DataTime/index.js +30 -26
  37. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  38. package/dist/esm/components/EItemEnCode/index.d.ts +15 -15
  39. package/dist/esm/components/EItemEnCode/index.js +34 -27
  40. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  41. package/dist/esm/components/EItemId/index.d.ts +15 -15
  42. package/dist/esm/components/EItemId/index.js +34 -27
  43. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  44. package/dist/esm/components/EItemSelect/index.d.ts +10 -16
  45. package/dist/esm/components/EItemSelect/index.js +16 -24
  46. package/dist/esm/components/ErpTradeId/index.d.ts +15 -16
  47. package/dist/esm/components/ErpTradeId/index.js +28 -26
  48. package/dist/esm/components/Express/index.d.ts +18 -20
  49. package/dist/esm/components/Express/index.js +30 -36
  50. package/dist/esm/components/ExpressCode/index.d.ts +16 -18
  51. package/dist/esm/components/ExpressCode/index.js +34 -32
  52. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  53. package/dist/esm/components/FlowStatusSelect/index.d.ts +20 -38
  54. package/dist/esm/components/FlowStatusSelect/index.js +38 -25
  55. package/dist/esm/components/GetFormItem/index.d.ts +3 -3
  56. package/dist/esm/components/GetFormItem/index.js +3 -3
  57. package/dist/esm/components/Grade/index.d.ts +10 -16
  58. package/dist/esm/components/Grade/index.js +14 -23
  59. package/dist/esm/components/Handler/index.d.ts +32 -0
  60. package/dist/esm/components/Handler/index.js +74 -0
  61. package/dist/esm/components/Input/index.d.ts +15 -16
  62. package/dist/esm/components/Input/index.js +29 -28
  63. package/dist/esm/components/JstItemSelect/index.d.ts +17 -17
  64. package/dist/esm/components/JstItemSelect/index.js +48 -28
  65. package/dist/esm/components/JstLogistics/index.d.ts +25 -17
  66. package/dist/esm/components/JstLogistics/index.js +50 -29
  67. package/dist/esm/components/JstSendGood/index.d.ts +16 -16
  68. package/dist/esm/components/JstSendGood/index.js +54 -29
  69. package/dist/esm/components/JstSupply/index.d.ts +16 -16
  70. package/dist/esm/components/JstSupply/index.js +54 -29
  71. package/dist/esm/components/Logistics/index.d.ts +26 -30
  72. package/dist/esm/components/Logistics/index.js +19 -20
  73. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +33 -0
  74. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +134 -0
  75. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
  76. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
  77. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +36 -0
  78. package/dist/esm/components/LogisticsInterception/InterceptType.js +84 -0
  79. package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
  80. package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
  81. package/dist/esm/components/LogisticsInterception/index.d.ts +74 -0
  82. package/dist/esm/components/LogisticsInterception/index.js +133 -0
  83. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
  84. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
  85. package/dist/esm/components/MultSelect/index.d.ts +16 -16
  86. package/dist/esm/components/MultSelect/index.js +31 -24
  87. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +14 -25
  88. package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -32
  89. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +14 -25
  90. package/dist/esm/components/Ordinary/OrdinaryMoney.js +25 -31
  91. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +14 -20
  92. package/dist/esm/components/Ordinary/OrdinarySerial.js +26 -22
  93. package/dist/esm/components/Ordinary/index.d.ts +19 -26
  94. package/dist/esm/components/Ordinary/index.js +20 -12
  95. package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
  96. package/dist/esm/components/Payment/AlipayNick.d.ts +14 -25
  97. package/dist/esm/components/Payment/AlipayNick.js +29 -34
  98. package/dist/esm/components/Payment/AlipayNo.d.ts +14 -24
  99. package/dist/esm/components/Payment/AlipayNo.js +29 -34
  100. package/dist/esm/components/Payment/AlipayTime.d.ts +14 -26
  101. package/dist/esm/components/Payment/AlipayTime.js +26 -35
  102. package/dist/esm/components/Payment/BuyerNick.d.ts +14 -25
  103. package/dist/esm/components/Payment/BuyerNick.js +26 -32
  104. package/dist/esm/components/Payment/PaymentAmount.d.ts +14 -25
  105. package/dist/esm/components/Payment/PaymentAmount.js +24 -30
  106. package/dist/esm/components/Payment/PaymentStatus.d.ts +19 -31
  107. package/dist/esm/components/Payment/PaymentStatus.js +48 -41
  108. package/dist/esm/components/Payment/PaymentTid.d.ts +14 -25
  109. package/dist/esm/components/Payment/PaymentTid.js +24 -30
  110. package/dist/esm/components/Payment/index.d.ts +39 -100
  111. package/dist/esm/components/Payment/index.js +22 -20
  112. package/dist/esm/components/Picture/index.d.ts +15 -15
  113. package/dist/esm/components/Picture/index.js +14 -19
  114. package/dist/esm/components/PlatForm/index.d.ts +31 -0
  115. package/dist/esm/components/PlatForm/index.js +67 -0
  116. package/dist/esm/components/Popover/index.d.ts +2 -2
  117. package/dist/esm/components/Radio/index.d.ts +20 -15
  118. package/dist/esm/components/Radio/index.js +34 -20
  119. package/dist/esm/components/Rate/index.d.ts +11 -16
  120. package/dist/esm/components/Rate/index.js +17 -30
  121. package/dist/esm/components/ReceiverAddress/index.d.ts +14 -17
  122. package/dist/esm/components/ReceiverAddress/index.js +22 -29
  123. package/dist/esm/components/ReceiverMobile/index.d.ts +15 -16
  124. package/dist/esm/components/ReceiverMobile/index.js +29 -27
  125. package/dist/esm/components/ReceiverName/index.d.ts +15 -16
  126. package/dist/esm/components/ReceiverName/index.js +29 -27
  127. package/dist/esm/components/Remark/index.d.ts +19 -16
  128. package/dist/esm/components/Remark/index.js +31 -23
  129. package/dist/esm/components/ReturnLogistics/index.d.ts +26 -25
  130. package/dist/esm/components/ReturnLogistics/index.js +19 -10
  131. package/dist/esm/components/Select/index.d.ts +16 -15
  132. package/dist/esm/components/Select/index.js +28 -23
  133. package/dist/esm/components/ShopInput/index.d.ts +28 -0
  134. package/dist/esm/components/ShopInput/index.js +76 -0
  135. package/dist/esm/components/ShopName/index.d.ts +15 -16
  136. package/dist/esm/components/ShopName/index.js +28 -25
  137. package/dist/esm/components/Submitter/index.d.ts +30 -0
  138. package/dist/esm/components/Submitter/index.js +64 -0
  139. package/dist/esm/components/SystemOrderNo/index.d.ts +15 -16
  140. package/dist/esm/components/SystemOrderNo/index.js +27 -25
  141. package/dist/esm/components/TemplateSelect/index.d.ts +15 -15
  142. package/dist/esm/components/TemplateSelect/index.js +29 -24
  143. package/dist/esm/components/TextArea/index.d.ts +15 -15
  144. package/dist/esm/components/TextArea/index.js +27 -24
  145. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  146. package/dist/esm/components/ThirdItemSelect/index.d.ts +15 -15
  147. package/dist/esm/components/ThirdItemSelect/index.js +36 -28
  148. package/dist/esm/components/TradeDateTime/index.d.ts +18 -10
  149. package/dist/esm/components/TradeDateTime/index.js +52 -17
  150. package/dist/esm/components/TradeId/index.d.ts +15 -10
  151. package/dist/esm/components/TradeId/index.js +27 -14
  152. package/dist/esm/components/WorkOrderId/index.d.ts +14 -15
  153. package/dist/esm/components/WorkOrderId/index.js +36 -29
  154. package/dist/esm/factory.d.ts +3 -0
  155. package/dist/esm/factory.js +105 -0
  156. package/dist/esm/index.d.ts +12 -0
  157. package/dist/esm/index.js +13 -1
  158. package/dist/esm/type.d.ts +53 -45
  159. package/package.json +10 -5
@@ -9,7 +9,7 @@ import React from 'react';
9
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';
12
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
13
13
  var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
14
14
  var _this = this;
15
15
  _classCallCheck(this, PaymentTid);
@@ -17,18 +17,12 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
17
17
  _defineProperty(this, "id", void 0);
18
18
  _defineProperty(this, "type", void 0);
19
19
  _defineProperty(this, "rules", void 0);
20
- _defineProperty(this, "canFilter", void 0);
21
- _defineProperty(this, "canGroup", void 0);
22
- _defineProperty(this, "canHidden", void 0);
23
- _defineProperty(this, "dataType", void 0);
24
- _defineProperty(this, "showContains", void 0);
25
20
  _defineProperty(this, "componentConfig", void 0);
26
21
  _defineProperty(this, "effects", void 0);
27
22
  _defineProperty(this, "align", void 0);
28
23
  _defineProperty(this, "width", void 0);
29
- _defineProperty(this, "render", function (value, record) {
30
- return /*#__PURE__*/React.createElement("span", null, value);
31
- });
24
+ _defineProperty(this, "isCombinationComponent", void 0);
25
+ _defineProperty(this, "children", void 0);
32
26
  _defineProperty(this, "renderClient", function (record) {
33
27
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
34
28
  id: _this.id,
@@ -37,19 +31,27 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
37
31
  }) : null;
38
32
  });
39
33
  _defineProperty(this, "renderPc", function (value, record) {
40
- if (value === undefined) {
34
+ if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
41
35
  return /*#__PURE__*/React.createElement("span", null, "--");
42
36
  }
43
37
  return /*#__PURE__*/React.createElement("span", {
44
38
  className: "pointer",
45
39
  onClick: function onClick() {
46
- var _this$effects;
47
- return _this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail(record);
40
+ var _this$effects, _this$effects2;
41
+ 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));
48
42
  }
49
- }, value);
43
+ }, record === null || record === void 0 ? void 0 : record[_this.id]);
44
+ });
45
+ _defineProperty(this, "renderLog", function (r) {
46
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
47
+ return _this.renderPc(undefined, r);
48
+ });
49
+ _defineProperty(this, "getComponentValue", function (r) {
50
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
50
51
  });
51
52
  _defineProperty(this, "renderExport", function (value, record) {
52
- return value !== null && value !== void 0 ? value : '--';
53
+ var _record$_this$id;
54
+ return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
53
55
  });
54
56
  _defineProperty(this, "editRender", function () {
55
57
  var _this$componentConfig, _this$componentConfig2;
@@ -61,35 +63,28 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
61
63
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
62
64
  });
63
65
  });
64
- _defineProperty(this, "getColumns", function () {
66
+ _defineProperty(this, "filterConfig", function (item) {
65
67
  return {
66
- title: _this.name,
67
- align: _this.align,
68
- dataIndex: _this.id,
69
- dataType: _this.dataType,
70
- canHidden: _this.canHidden,
71
- canFilter: _this.canFilter,
72
- canGroup: _this.canGroup,
73
- type: _this.type,
74
- width: _this.width,
75
- render: _this.renderPc,
76
- renderPc: _this.renderPc,
77
- componentType: _this.editRender,
78
- showContains: _this.showContains,
79
- renderExport: _this.renderExport
68
+ type: item.type,
69
+ id: "".concat(item.id, "_enterprisePaymentAlipayNick"),
70
+ name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u59D3\u540D"),
71
+ filterComponentType: 'Input',
72
+ filterFn: function filterFn(value) {
73
+ return function (i) {
74
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentAlipayNick')).includes(value);
75
+ };
76
+ }
80
77
  };
81
78
  });
82
79
  this.name = '支付宝姓名';
83
80
  this.id = "".concat(options.id, "_enterprisePaymentAlipayNick");
84
81
  this.type = options.type;
85
- this.canFilter = true;
86
- this.canGroup = true;
87
- this.canHidden = false;
88
- this.showContains = false;
89
- this.dataType = 'string';
90
82
  this.componentConfig = options.componentConfig;
83
+ this.effects = options.effects;
91
84
  this.rules = [];
92
85
  this.align = 'left';
93
86
  this.width = 200;
87
+ this.isCombinationComponent = false;
88
+ this.children = [];
94
89
  });
95
90
  export default PaymentTid;
@@ -1,39 +1,29 @@
1
- /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class AlipayNo implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  type: string;
7
7
  rules: any[];
8
- canFilter: boolean;
9
- canGroup: boolean;
10
- canHidden: boolean;
11
- dataType: DataType;
12
- showContains: boolean;
13
8
  componentConfig: ComponentInterface["componentConfig"];
14
9
  effects: ComponentInterface["effects"];
15
10
  align: ALignType;
16
11
  width: number;
12
+ isCombinationComponent: boolean;
13
+ children: ComponentInterface[];
17
14
  constructor(options: PickOption);
18
- render: (value: string) => JSX.Element;
19
- renderClient: (record: any) => JSX.Element | null;
20
- renderPc: (value: any, record: any) => JSX.Element;
15
+ renderClient: (record: any) => React.JSX.Element | null;
16
+ renderPc: (value: unknown, record: any) => React.JSX.Element;
17
+ renderLog: (r: Record) => React.JSX.Element | null;
18
+ getComponentValue: (r: Record) => any;
21
19
  renderExport: (value: any, record: Record) => any;
22
- editRender: () => JSX.Element;
23
- getColumns: () => {
24
- title: string;
25
- align: ALignType;
26
- dataIndex: string;
27
- width: number;
28
- dataType: DataType;
29
- canHidden: boolean;
30
- canFilter: boolean;
31
- canGroup: boolean;
20
+ editRender: () => React.JSX.Element;
21
+ filterConfig: (item: ColumnConfig) => {
32
22
  type: string;
33
- render: (value: any, record: any) => JSX.Element;
34
- renderPc: (value: any, record: any) => JSX.Element;
35
- componentType: () => JSX.Element;
36
- showContains: boolean;
23
+ id: string;
24
+ name: string;
25
+ filterComponentType: "Input";
26
+ filterFn: (value: string) => (i: Record) => boolean;
37
27
  };
38
28
  }
39
29
  export default AlipayNo;
@@ -9,7 +9,7 @@ import React from 'react';
9
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';
12
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
13
13
  var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
14
14
  var _this = this;
15
15
  _classCallCheck(this, AlipayNo);
@@ -17,18 +17,12 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
17
17
  _defineProperty(this, "id", void 0);
18
18
  _defineProperty(this, "type", void 0);
19
19
  _defineProperty(this, "rules", void 0);
20
- _defineProperty(this, "canFilter", void 0);
21
- _defineProperty(this, "canGroup", void 0);
22
- _defineProperty(this, "canHidden", void 0);
23
- _defineProperty(this, "dataType", void 0);
24
- _defineProperty(this, "showContains", void 0);
25
20
  _defineProperty(this, "componentConfig", void 0);
26
21
  _defineProperty(this, "effects", void 0);
27
22
  _defineProperty(this, "align", void 0);
28
23
  _defineProperty(this, "width", void 0);
29
- _defineProperty(this, "render", function (value) {
30
- return /*#__PURE__*/React.createElement("span", null, value);
31
- });
24
+ _defineProperty(this, "isCombinationComponent", void 0);
25
+ _defineProperty(this, "children", void 0);
32
26
  _defineProperty(this, "renderClient", function (record) {
33
27
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
34
28
  id: _this.id,
@@ -37,19 +31,27 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
37
31
  }) : null;
38
32
  });
39
33
  _defineProperty(this, "renderPc", function (value, record) {
40
- if (value === undefined) {
34
+ if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
41
35
  return /*#__PURE__*/React.createElement("span", null, "--");
42
36
  }
43
37
  return /*#__PURE__*/React.createElement("span", {
44
38
  className: "pointer",
45
39
  onClick: function onClick() {
46
- var _this$effects;
47
- return _this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail(record);
40
+ var _this$effects, _this$effects2;
41
+ 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));
48
42
  }
49
- }, value);
43
+ }, record === null || record === void 0 ? void 0 : record[_this.id]);
44
+ });
45
+ _defineProperty(this, "renderLog", function (r) {
46
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
47
+ return _this.renderPc(undefined, r);
48
+ });
49
+ _defineProperty(this, "getComponentValue", function (r) {
50
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
50
51
  });
51
52
  _defineProperty(this, "renderExport", function (value, record) {
52
- return value !== null && value !== void 0 ? value : '--';
53
+ var _record$_this$id;
54
+ return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
53
55
  });
54
56
  _defineProperty(this, "editRender", function () {
55
57
  var _this$componentConfig, _this$componentConfig2;
@@ -61,37 +63,30 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
61
63
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
62
64
  });
63
65
  });
64
- _defineProperty(this, "getColumns", function () {
66
+ _defineProperty(this, "filterConfig", function (item) {
65
67
  return {
66
- title: _this.name,
67
- align: _this.align,
68
- dataIndex: _this.id,
69
- width: _this.width,
70
- dataType: _this.dataType,
71
- canHidden: _this.canHidden,
72
- canFilter: _this.canFilter,
73
- canGroup: _this.canGroup,
74
- type: _this.type,
75
- render: _this.renderPc,
76
- renderPc: _this.renderPc,
77
- componentType: _this.editRender,
78
- showContains: _this.showContains
68
+ type: item.type,
69
+ id: "".concat(item.id, "_enterprisePaymentAlipayNo"),
70
+ name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
71
+ filterComponentType: 'Input',
72
+ filterFn: function filterFn(value) {
73
+ return function (i) {
74
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentAlipayNo')).includes(value);
75
+ };
76
+ }
79
77
  };
80
78
  });
81
79
  this.name = '支付宝账号';
82
80
  this.id = "".concat(options.id, "_enterprisePaymentAlipayNo");
83
81
  this.type = options.type;
84
- this.canFilter = true;
85
- this.canGroup = true;
86
- this.canHidden = false;
87
- this.showContains = false;
88
- this.dataType = 'string';
89
82
  this.componentConfig = options.componentConfig;
90
83
  this.effects = options.effects;
91
84
  this.width = 200;
85
+ this.isCombinationComponent = false;
86
+ this.children = [];
92
87
  this.rules = [{
93
88
  validator: function validator(_, value) {
94
- if (/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value)) {
89
+ if (/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value)) {
95
90
  return Promise.resolve();
96
91
  }
97
92
  return Promise.reject(new Error('请输入有效的邮箱或者手机号'));
@@ -1,40 +1,28 @@
1
- /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class AlipayTime implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  type: string;
7
7
  rules: any[];
8
- canFilter: boolean;
9
- canGroup: boolean;
10
- canHidden: boolean;
11
- dataType: DataType;
12
- showContains: boolean;
13
8
  componentConfig: ComponentInterface["componentConfig"];
14
9
  align: ALignType;
15
10
  width: number;
11
+ isCombinationComponent: boolean;
12
+ children: ComponentInterface[];
16
13
  constructor(options: PickOption);
17
- render: (value: string) => JSX.Element;
18
- renderClient: (record: Record) => JSX.Element | null;
19
- renderPc: (value: any, record: Record) => JSX.Element;
14
+ renderClient: (record: Record) => React.JSX.Element | null;
15
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
16
+ renderLog: (r: Record) => React.JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
20
18
  renderExport: (value: string) => string | null;
21
- editRender: () => JSX.Element;
22
- getColumns: () => {
23
- title: string;
24
- align: ALignType;
25
- dataIndex: string;
26
- width: number;
27
- dataType: DataType;
28
- canHidden: boolean;
29
- canFilter: boolean;
30
- canGroup: boolean;
19
+ editRender: () => React.JSX.Element;
20
+ filterConfig: (item: ColumnConfig) => {
31
21
  type: string;
32
- render: (value: any, record: Record) => JSX.Element;
33
- renderPc: (value: any, record: Record) => JSX.Element;
34
- componentType: () => JSX.Element;
35
- showContains: boolean;
36
- renderExport: (value: string) => string | null;
37
- widget: null;
22
+ id: string;
23
+ name: string;
24
+ filterComponentType: "Input";
25
+ filterFn: (value: string[]) => (i: Record) => boolean;
38
26
  };
39
27
  }
40
28
  export default AlipayTime;
@@ -10,7 +10,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
10
10
  import moment from 'moment';
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
13
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
14
  var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
15
15
  var _this = this;
16
16
  _classCallCheck(this, AlipayTime);
@@ -18,33 +18,32 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
18
18
  _defineProperty(this, "id", void 0);
19
19
  _defineProperty(this, "type", void 0);
20
20
  _defineProperty(this, "rules", void 0);
21
- _defineProperty(this, "canFilter", void 0);
22
- _defineProperty(this, "canGroup", void 0);
23
- _defineProperty(this, "canHidden", void 0);
24
- _defineProperty(this, "dataType", void 0);
25
- _defineProperty(this, "showContains", void 0);
26
21
  _defineProperty(this, "componentConfig", void 0);
27
22
  _defineProperty(this, "align", void 0);
28
23
  _defineProperty(this, "width", void 0);
29
- _defineProperty(this, "render", function (value) {
30
- return /*#__PURE__*/React.createElement("span", {
31
- className: "pointer"
32
- }, value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : '--');
33
- });
24
+ _defineProperty(this, "isCombinationComponent", void 0);
25
+ _defineProperty(this, "children", void 0);
34
26
  _defineProperty(this, "renderClient", function (record) {
35
27
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
36
28
  id: _this.id,
37
29
  label: _this.name,
38
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
30
+ value: record !== null && record !== void 0 && record[_this.id] ? moment(+(record === null || record === void 0 ? void 0 : record[_this.id])).format('YYYY-MM-DD HH:mm:ss') : '--'
39
31
  }) : null;
40
32
  });
41
33
  _defineProperty(this, "renderPc", function (value, record) {
42
- if (value === undefined) {
34
+ if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
43
35
  return /*#__PURE__*/React.createElement("span", null, "--");
44
36
  }
45
37
  return /*#__PURE__*/React.createElement("span", {
46
38
  className: "pointer"
47
- }, value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : '--');
39
+ }, record !== null && record !== void 0 && record[_this.id] ? moment(+(record === null || record === void 0 ? void 0 : record[_this.id])).format('YYYY-MM-DD HH:mm:ss') : '--');
40
+ });
41
+ _defineProperty(this, "renderLog", function (r) {
42
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
43
+ return _this.renderPc(undefined, r);
44
+ });
45
+ _defineProperty(this, "getComponentValue", function (r) {
46
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
48
47
  });
49
48
  _defineProperty(this, "renderExport", function (value) {
50
49
  return value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : null;
@@ -59,36 +58,28 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
59
58
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
60
59
  });
61
60
  });
62
- _defineProperty(this, "getColumns", function () {
61
+ _defineProperty(this, "filterConfig", function (item) {
63
62
  return {
64
- title: _this.name,
65
- align: _this.align,
66
- dataIndex: _this.id,
67
- width: _this.width,
68
- dataType: _this.dataType,
69
- canHidden: _this.canHidden,
70
- canFilter: _this.canFilter,
71
- canGroup: _this.canGroup,
72
- type: _this.type,
73
- render: _this.renderPc,
74
- renderPc: _this.renderPc,
75
- componentType: _this.editRender,
76
- showContains: _this.showContains,
77
- renderExport: _this.renderExport,
78
- widget: null
63
+ type: item.type,
64
+ id: "".concat(item.id, "_enterprisePaymentTime"),
65
+ name: "".concat(item.name, "-\u6253\u6B3E\u65F6\u95F4"),
66
+ filterComponentType: 'Input',
67
+ filterFn: function filterFn(value) {
68
+ return function (i) {
69
+ var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentTime');
70
+ return _filterFn.filterDateFn(value, recordDateTime);
71
+ };
72
+ }
79
73
  };
80
74
  });
81
75
  this.name = '打款时间';
82
76
  this.id = "".concat(options.id, "_enterprisePaymentTime");
83
77
  this.type = options.type;
84
- this.canFilter = true;
85
- this.canGroup = true;
86
- this.canHidden = false;
87
- this.showContains = false;
88
- this.dataType = 'date';
89
78
  this.componentConfig = options.componentConfig;
90
79
  this.rules = [];
91
80
  this.align = 'left';
92
81
  this.width = 200;
82
+ this.isCombinationComponent = false;
83
+ this.children = [];
93
84
  });
94
85
  export default AlipayTime;
@@ -1,40 +1,29 @@
1
- /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class BuyerNick implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  type: string;
7
7
  rules: any[];
8
- canFilter: boolean;
9
- canGroup: boolean;
10
- canHidden: boolean;
11
- dataType: DataType;
12
- showContains: boolean;
13
8
  componentConfig: ComponentInterface["componentConfig"];
14
9
  effects: ComponentInterface["effects"];
15
10
  align: ALignType;
16
11
  width: number;
12
+ isCombinationComponent: boolean;
13
+ children: ComponentInterface[];
17
14
  constructor(options: PickOption);
18
- render: (value: string) => JSX.Element;
19
- renderClient: (record: Record) => JSX.Element | null;
20
- editRender: () => JSX.Element;
21
- renderPc: (value: any, record: Record) => JSX.Element;
15
+ renderClient: (record: Record) => React.JSX.Element | null;
16
+ editRender: () => React.JSX.Element;
17
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
18
+ renderLog: (r: Record) => React.JSX.Element | null;
19
+ getComponentValue: (r: Record) => any;
22
20
  renderExport: (value: string) => string;
23
- getColumns: () => {
24
- title: string;
25
- align: ALignType;
26
- dataIndex: string;
27
- width: number;
28
- dataType: DataType;
29
- canHidden: boolean;
30
- canFilter: boolean;
31
- canGroup: boolean;
21
+ filterConfig: (item: ColumnConfig) => {
32
22
  type: string;
33
- render: (value: any, record: Record) => JSX.Element;
34
- renderPc: (value: any, record: Record) => JSX.Element;
35
- componentType: () => JSX.Element;
36
- showContains: boolean;
37
- renderExport: (value: string) => string;
23
+ id: string;
24
+ name: string;
25
+ filterComponentType: "Input";
26
+ filterFn: (value: string) => (i: Record) => boolean;
38
27
  };
39
28
  }
40
29
  export default BuyerNick;
@@ -16,7 +16,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
16
16
  import GetFormItem from "../GetFormItem";
17
17
  import ItemView from "../../commonComponents/ItemView";
18
18
  import PlatBuyer from "../../commonComponents/PlatBuyer";
19
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
19
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
20
20
  var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
21
21
  var _this = this;
22
22
  _classCallCheck(this, BuyerNick);
@@ -24,18 +24,12 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
24
24
  _defineProperty(this, "id", void 0);
25
25
  _defineProperty(this, "type", void 0);
26
26
  _defineProperty(this, "rules", void 0);
27
- _defineProperty(this, "canFilter", void 0);
28
- _defineProperty(this, "canGroup", void 0);
29
- _defineProperty(this, "canHidden", void 0);
30
- _defineProperty(this, "dataType", void 0);
31
- _defineProperty(this, "showContains", void 0);
32
27
  _defineProperty(this, "componentConfig", void 0);
33
28
  _defineProperty(this, "effects", void 0);
34
29
  _defineProperty(this, "align", void 0);
35
30
  _defineProperty(this, "width", void 0);
36
- _defineProperty(this, "render", function (value) {
37
- return /*#__PURE__*/React.createElement("span", null, value);
38
- });
31
+ _defineProperty(this, "isCombinationComponent", void 0);
32
+ _defineProperty(this, "children", void 0);
39
33
  _defineProperty(this, "renderClient", function (record) {
40
34
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
41
35
  id: _this.id,
@@ -55,10 +49,11 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
55
49
  });
56
50
  _defineProperty(this, "renderPc", function (value, record) {
57
51
  var _this$effects;
58
- if (value === undefined) {
52
+ if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
59
53
  return /*#__PURE__*/React.createElement("span", null, "--");
60
54
  }
61
55
  var buyerOpenUid = (record === null || record === void 0 ? void 0 : record.buyerOpenUid) || Object.keys(record).reduce(function (prv, next) {
56
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
62
57
  var _next$split = next.split('_'),
63
58
  _next$split2 = _slicedToArray(_next$split, 2),
64
59
  _ = _next$split2[0],
@@ -68,46 +63,45 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
68
63
  }
69
64
  return prv;
70
65
  }, '');
71
- return /*#__PURE__*/React.createElement("span", null, value && /*#__PURE__*/React.createElement(PlatBuyer, {
66
+ return /*#__PURE__*/React.createElement("span", null, (record === null || record === void 0 ? void 0 : record[_this.id]) && /*#__PURE__*/React.createElement(PlatBuyer, {
72
67
  shopId: record === null || record === void 0 ? void 0 : record.shopId,
73
- buyerNick: value,
68
+ buyerNick: record === null || record === void 0 ? void 0 : record[_this.id],
74
69
  buyerOpenUid: buyerOpenUid,
75
70
  shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
76
71
  }));
77
72
  });
73
+ _defineProperty(this, "renderLog", function (r) {
74
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
75
+ return _this.renderPc(undefined, r);
76
+ });
77
+ _defineProperty(this, "getComponentValue", function (r) {
78
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
79
+ });
78
80
  _defineProperty(this, "renderExport", function (value) {
79
81
  return value !== null && value !== void 0 ? value : '--';
80
82
  });
81
- _defineProperty(this, "getColumns", function () {
83
+ _defineProperty(this, "filterConfig", function (item) {
82
84
  return {
83
- title: _this.name,
84
- align: _this.align,
85
- dataIndex: _this.id,
86
- width: _this.width,
87
- dataType: _this.dataType,
88
- canHidden: _this.canHidden,
89
- canFilter: _this.canFilter,
90
- canGroup: _this.canGroup,
91
- type: _this.type,
92
- render: _this.renderPc,
93
- renderPc: _this.renderPc,
94
- componentType: _this.editRender,
95
- showContains: _this.showContains,
96
- renderExport: _this.renderExport
85
+ type: item.type,
86
+ id: "".concat(item.id, "_enterprisePaymentBuyerNick"),
87
+ name: "".concat(item.name, "-\u4E70\u5BB6\u6635\u79F0"),
88
+ filterComponentType: 'Input',
89
+ filterFn: function filterFn(value) {
90
+ return function (i) {
91
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentBuyerNick')).includes(value);
92
+ };
93
+ }
97
94
  };
98
95
  });
99
96
  this.name = '买家昵称';
100
97
  this.id = "".concat(options.id, "_enterprisePaymentBuyerNick");
101
98
  this.type = options.type;
102
- this.canFilter = true;
103
- this.canGroup = true;
104
- this.canHidden = false;
105
- this.showContains = false;
106
- this.dataType = 'string';
107
99
  this.componentConfig = options.componentConfig;
108
100
  this.effects = options.effects;
109
101
  this.rules = [];
110
102
  this.align = 'left';
111
103
  this.width = 200;
104
+ this.isCombinationComponent = false;
105
+ this.children = [];
112
106
  });
113
107
  export default BuyerNick;