@kmkf-fe-packages/services-components 0.6.3 → 0.7.1-alpha.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 (148) hide show
  1. package/README.md +2 -0
  2. package/dist/esm/commonComponents/ItemView/index.d.ts +1 -1
  3. package/dist/esm/commonComponents/OperationLog/index.d.ts +8 -0
  4. package/dist/esm/commonComponents/OperationLog/index.js +127 -0
  5. package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +7 -0
  6. package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
  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 +13 -0
  10. package/dist/esm/commonComponents/ShopList/index.js +34 -0
  11. package/dist/esm/components/ActualPayment/index.d.ts +12 -13
  12. package/dist/esm/components/ActualPayment/index.js +28 -26
  13. package/dist/esm/components/Address/index.d.ts +9 -16
  14. package/dist/esm/components/Address/index.js +17 -26
  15. package/dist/esm/components/Alipay/index.d.ts +15 -19
  16. package/dist/esm/components/Alipay/index.js +15 -20
  17. package/dist/esm/components/AlipayAccount/index.d.ts +13 -15
  18. package/dist/esm/components/AlipayAccount/index.js +29 -28
  19. package/dist/esm/components/AlipayName/index.d.ts +13 -15
  20. package/dist/esm/components/AlipayName/index.js +29 -28
  21. package/dist/esm/components/BuyerNick/index.d.ts +14 -15
  22. package/dist/esm/components/BuyerNick/index.js +41 -28
  23. package/dist/esm/components/Cascader/index.d.ts +13 -25
  24. package/dist/esm/components/Cascader/index.js +38 -31
  25. package/dist/esm/components/Checkbox/index.d.ts +15 -11
  26. package/dist/esm/components/Checkbox/index.js +45 -26
  27. package/dist/esm/components/CommonDataTime/index.d.ts +11 -11
  28. package/dist/esm/components/CommonDataTime/index.js +27 -24
  29. package/dist/esm/components/CompletedUser/index.d.ts +30 -0
  30. package/dist/esm/components/CompletedUser/index.js +64 -0
  31. package/dist/esm/components/DataTime/index.d.ts +12 -11
  32. package/dist/esm/components/DataTime/index.js +30 -26
  33. package/dist/esm/components/EItemEnCode/index.d.ts +11 -11
  34. package/dist/esm/components/EItemEnCode/index.js +34 -27
  35. package/dist/esm/components/EItemId/index.d.ts +11 -11
  36. package/dist/esm/components/EItemId/index.js +34 -27
  37. package/dist/esm/components/EItemSelect/index.d.ts +6 -12
  38. package/dist/esm/components/EItemSelect/index.js +16 -24
  39. package/dist/esm/components/ErpTradeId/index.d.ts +12 -13
  40. package/dist/esm/components/ErpTradeId/index.js +28 -26
  41. package/dist/esm/components/Express/index.d.ts +15 -17
  42. package/dist/esm/components/Express/index.js +30 -36
  43. package/dist/esm/components/ExpressCode/index.d.ts +16 -18
  44. package/dist/esm/components/ExpressCode/index.js +34 -32
  45. package/dist/esm/components/FlowStatusSelect/index.d.ts +16 -34
  46. package/dist/esm/components/FlowStatusSelect/index.js +38 -25
  47. package/dist/esm/components/GetFormItem/index.d.ts +3 -3
  48. package/dist/esm/components/GetFormItem/index.js +3 -3
  49. package/dist/esm/components/Grade/index.d.ts +6 -12
  50. package/dist/esm/components/Grade/index.js +14 -23
  51. package/dist/esm/components/Handler/index.d.ts +32 -0
  52. package/dist/esm/components/Handler/index.js +74 -0
  53. package/dist/esm/components/Input/index.d.ts +11 -12
  54. package/dist/esm/components/Input/index.js +29 -28
  55. package/dist/esm/components/JstItemSelect/index.d.ts +13 -13
  56. package/dist/esm/components/JstItemSelect/index.js +48 -28
  57. package/dist/esm/components/JstLogistics/index.d.ts +21 -13
  58. package/dist/esm/components/JstLogistics/index.js +50 -29
  59. package/dist/esm/components/JstSendGood/index.d.ts +12 -12
  60. package/dist/esm/components/JstSendGood/index.js +54 -29
  61. package/dist/esm/components/JstSupply/index.d.ts +12 -12
  62. package/dist/esm/components/JstSupply/index.js +54 -29
  63. package/dist/esm/components/Logistics/index.d.ts +23 -27
  64. package/dist/esm/components/Logistics/index.js +19 -20
  65. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +33 -0
  66. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +134 -0
  67. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
  68. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
  69. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +36 -0
  70. package/dist/esm/components/LogisticsInterception/InterceptType.js +84 -0
  71. package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
  72. package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
  73. package/dist/esm/components/LogisticsInterception/index.d.ts +75 -0
  74. package/dist/esm/components/LogisticsInterception/index.js +136 -0
  75. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
  76. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
  77. package/dist/esm/components/MultSelect/index.d.ts +12 -12
  78. package/dist/esm/components/MultSelect/index.js +31 -24
  79. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +11 -22
  80. package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -32
  81. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -22
  82. package/dist/esm/components/Ordinary/OrdinaryMoney.js +25 -31
  83. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +11 -17
  84. package/dist/esm/components/Ordinary/OrdinarySerial.js +26 -22
  85. package/dist/esm/components/Ordinary/index.d.ts +17 -24
  86. package/dist/esm/components/Ordinary/index.js +20 -12
  87. package/dist/esm/components/Payment/AlipayNick.d.ts +11 -22
  88. package/dist/esm/components/Payment/AlipayNick.js +29 -34
  89. package/dist/esm/components/Payment/AlipayNo.d.ts +11 -21
  90. package/dist/esm/components/Payment/AlipayNo.js +29 -34
  91. package/dist/esm/components/Payment/AlipayTime.d.ts +11 -23
  92. package/dist/esm/components/Payment/AlipayTime.js +26 -35
  93. package/dist/esm/components/Payment/BuyerNick.d.ts +11 -22
  94. package/dist/esm/components/Payment/BuyerNick.js +26 -32
  95. package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -22
  96. package/dist/esm/components/Payment/PaymentAmount.js +24 -30
  97. package/dist/esm/components/Payment/PaymentStatus.d.ts +17 -29
  98. package/dist/esm/components/Payment/PaymentStatus.js +48 -41
  99. package/dist/esm/components/Payment/PaymentTid.d.ts +11 -22
  100. package/dist/esm/components/Payment/PaymentTid.js +24 -30
  101. package/dist/esm/components/Payment/index.d.ts +36 -97
  102. package/dist/esm/components/Payment/index.js +22 -20
  103. package/dist/esm/components/Picture/index.d.ts +11 -11
  104. package/dist/esm/components/Picture/index.js +14 -19
  105. package/dist/esm/components/PlatForm/index.d.ts +31 -0
  106. package/dist/esm/components/PlatForm/index.js +67 -0
  107. package/dist/esm/components/Radio/index.d.ts +15 -10
  108. package/dist/esm/components/Radio/index.js +34 -20
  109. package/dist/esm/components/Rate/index.d.ts +6 -11
  110. package/dist/esm/components/Rate/index.js +17 -30
  111. package/dist/esm/components/ReceiverAddress/index.d.ts +11 -14
  112. package/dist/esm/components/ReceiverAddress/index.js +22 -29
  113. package/dist/esm/components/ReceiverMobile/index.d.ts +11 -12
  114. package/dist/esm/components/ReceiverMobile/index.js +29 -27
  115. package/dist/esm/components/ReceiverName/index.d.ts +11 -12
  116. package/dist/esm/components/ReceiverName/index.js +29 -27
  117. package/dist/esm/components/Remark/index.d.ts +14 -11
  118. package/dist/esm/components/Remark/index.js +31 -23
  119. package/dist/esm/components/ReturnLogistics/index.d.ts +26 -25
  120. package/dist/esm/components/ReturnLogistics/index.js +19 -10
  121. package/dist/esm/components/Select/index.d.ts +12 -11
  122. package/dist/esm/components/Select/index.js +28 -23
  123. package/dist/esm/components/ShopInput/index.d.ts +28 -0
  124. package/dist/esm/components/ShopInput/index.js +76 -0
  125. package/dist/esm/components/ShopName/index.d.ts +12 -13
  126. package/dist/esm/components/ShopName/index.js +28 -25
  127. package/dist/esm/components/Submitter/index.d.ts +30 -0
  128. package/dist/esm/components/Submitter/index.js +64 -0
  129. package/dist/esm/components/SystemOrderNo/index.d.ts +13 -14
  130. package/dist/esm/components/SystemOrderNo/index.js +27 -25
  131. package/dist/esm/components/TemplateSelect/index.d.ts +13 -13
  132. package/dist/esm/components/TemplateSelect/index.js +29 -24
  133. package/dist/esm/components/TextArea/index.d.ts +11 -11
  134. package/dist/esm/components/TextArea/index.js +27 -24
  135. package/dist/esm/components/ThirdItemSelect/index.d.ts +11 -11
  136. package/dist/esm/components/ThirdItemSelect/index.js +36 -28
  137. package/dist/esm/components/TradeDateTime/index.d.ts +13 -5
  138. package/dist/esm/components/TradeDateTime/index.js +52 -17
  139. package/dist/esm/components/TradeId/index.d.ts +11 -6
  140. package/dist/esm/components/TradeId/index.js +27 -14
  141. package/dist/esm/components/WorkOrderId/index.d.ts +11 -12
  142. package/dist/esm/components/WorkOrderId/index.js +36 -29
  143. package/dist/esm/factory.d.ts +3 -0
  144. package/dist/esm/factory.js +105 -0
  145. package/dist/esm/index.d.ts +52 -40
  146. package/dist/esm/index.js +13 -1
  147. package/dist/esm/type.d.ts +53 -45
  148. package/package.json +10 -5
@@ -1,6 +1,4 @@
1
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
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); } }
5
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; }
6
4
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -14,18 +12,15 @@ import GetFormItem from "../GetFormItem";
14
12
  import ItemView from "../../commonComponents/ItemView";
15
13
  import { isNull } from '@kmkf-fe-packages/kmkf-utils';
16
14
  import every from 'lodash/every';
17
- var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
15
+ var Address = /*#__PURE__*/_createClass(function Address(options) {
18
16
  var _this = this;
19
- _classCallCheck(this, BasicInput);
17
+ _classCallCheck(this, Address);
20
18
  _defineProperty(this, "name", void 0);
21
19
  _defineProperty(this, "id", void 0);
22
20
  _defineProperty(this, "type", void 0);
23
21
  _defineProperty(this, "rules", void 0);
24
- _defineProperty(this, "canFilter", void 0);
25
- _defineProperty(this, "canGroup", void 0);
26
- _defineProperty(this, "canHidden", void 0);
27
- _defineProperty(this, "dataType", void 0);
28
- _defineProperty(this, "showContains", void 0);
22
+ _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "children", void 0);
29
24
  _defineProperty(this, "componentConfig", void 0);
30
25
  _defineProperty(this, "addressDateInstance", void 0);
31
26
  _defineProperty(this, "getValue", function (value) {
@@ -34,9 +29,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
34
29
  return _this.addressDateInstance.getNameByCode(suffix);
35
30
  })) === null || _value$map === void 0 ? void 0 : _value$map.join('');
36
31
  });
37
- _defineProperty(this, "render", function (value) {
38
- return /*#__PURE__*/React.createElement("span", null, _this.getValue(value));
39
- });
40
32
  _defineProperty(this, "transTextToNumber", function (value) {
41
33
  return value ? +value : value;
42
34
  });
@@ -60,6 +52,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
60
52
  return _this.addressDateInstance.getNameByCode(suffix || '');
61
53
  }).join(''));
62
54
  });
55
+ _defineProperty(this, "renderLog", function (r) {
56
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicProvince")])) return null;
57
+ return _this.renderPc(undefined, r);
58
+ });
59
+ _defineProperty(this, "getComponentValue", function (r) {
60
+ return !isNull(r["".concat(_this.id, "_basicProvince")]) ? [r["".concat(_this.id, "_basicProvince")], r["".concat(_this.id, "_basicCity")], r["".concat(_this.id, "_basicDistrict")]] : [];
61
+ });
63
62
  _defineProperty(this, "renderExport", function (value, record) {
64
63
  var _address2;
65
64
  if (record["".concat(_this.id, "_basicProvince")] === undefined) {
@@ -73,7 +72,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
73
72
  return _this.addressDateInstance.getNameByCode(suffix || '');
74
73
  }).join('');
75
74
  });
76
- _defineProperty(this, "editRender", function (value) {
75
+ _defineProperty(this, "editRender", function () {
77
76
  var _this$componentConfig, _this$componentConfig2;
78
77
  return /*#__PURE__*/React.createElement(GetFormItem, {
79
78
  title: _this.name,
@@ -83,22 +82,14 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
83
82
  component: /*#__PURE__*/React.createElement(ApaasAddress, _this.componentConfig)
84
83
  });
85
84
  });
86
- _defineProperty(this, "getColumns", function () {
87
- return _objectSpread(_objectSpread({}, _this), {}, {
88
- dataIndex: _this.id,
89
- title: _this.name,
90
- componentType: _this.editRender,
91
- renderExport: _this.renderExport
92
- });
85
+ _defineProperty(this, "filterConfig", function () {
86
+ return [];
93
87
  });
94
88
  this.name = options.name;
95
89
  this.id = options.id;
96
90
  this.type = options.type;
97
- this.canFilter = true;
98
- this.canGroup = true;
99
- this.canHidden = true;
100
- this.dataType = 'array';
101
- this.showContains = false;
91
+ this.isCombinationComponent = false;
92
+ this.children = [];
102
93
  this.rules = [];
103
94
  this.componentConfig = options.componentConfig;
104
95
  this.addressDateInstance = AddressData.getInstance();
@@ -109,4 +100,4 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
109
100
  * @returns
110
101
  */);
111
102
 
112
- export default BasicInput;
103
+ export default Address;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
3
3
  import EAlipayAccount from '../AlipayAccount';
4
4
  import EAlipayName from '../AlipayName';
5
5
  declare class Alipay implements ComponentInterface {
@@ -7,31 +7,27 @@ declare class Alipay implements ComponentInterface {
7
7
  id: string;
8
8
  type: string;
9
9
  rules: any[];
10
- canFilter: boolean;
11
- canGroup: boolean;
12
- canHidden: boolean;
13
- dataType: DataType;
14
- showContains: boolean;
15
10
  componentConfig: ComponentInterface["componentConfig"];
16
11
  alipayAccount: EAlipayAccount;
17
12
  alipayName: EAlipayName;
13
+ isCombinationComponent: boolean;
14
+ children: ComponentInterface[];
18
15
  constructor(options: PickOption);
19
- render: () => null;
20
16
  renderClient: (record: Record) => JSX.Element;
21
17
  renderPc: () => null;
18
+ renderLog: (r: Record) => JSX.Element;
19
+ getComponentValue: (r: Record) => {
20
+ name: any;
21
+ user: any;
22
+ };
22
23
  renderExport: () => null;
23
24
  editRender: (value: any) => JSX.Element;
24
- getColumns: () => {
25
- title: string;
26
- children: (EAlipayAccount & {
27
- dataIndex: string;
28
- title: string;
29
- componentType: (value: any) => JSX.Element;
30
- renderExport: (value?: string | undefined) => string;
31
- render: (value: any, record: Record) => JSX.Element;
32
- })[];
33
- canHidden: boolean;
34
- dataIndex: string;
35
- };
25
+ filterConfig: (item: ColumnConfig) => {
26
+ type: string;
27
+ id: string;
28
+ name: string;
29
+ filterComponentType: "Input";
30
+ filterFn: (value: string) => (i: Record) => boolean;
31
+ }[];
36
32
  }
37
33
  export default Alipay;
@@ -21,23 +21,26 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
21
21
  _defineProperty(this, "id", void 0);
22
22
  _defineProperty(this, "type", void 0);
23
23
  _defineProperty(this, "rules", void 0);
24
- _defineProperty(this, "canFilter", void 0);
25
- _defineProperty(this, "canGroup", void 0);
26
- _defineProperty(this, "canHidden", void 0);
27
- _defineProperty(this, "dataType", void 0);
28
- _defineProperty(this, "showContains", void 0);
29
24
  _defineProperty(this, "componentConfig", void 0);
30
25
  _defineProperty(this, "alipayAccount", void 0);
31
26
  _defineProperty(this, "alipayName", void 0);
32
- _defineProperty(this, "render", function () {
33
- return null;
34
- });
27
+ _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "children", void 0);
35
29
  _defineProperty(this, "renderClient", function (record) {
36
30
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderClient(record), _this.alipayAccount.renderClient(record));
37
31
  });
38
32
  _defineProperty(this, "renderPc", function () {
39
33
  return null;
40
34
  });
35
+ _defineProperty(this, "renderLog", function (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)));
37
+ });
38
+ _defineProperty(this, "getComponentValue", function (r) {
39
+ return {
40
+ name: _this.alipayName.getComponentValue(r),
41
+ user: _this.alipayAccount.getComponentValue(r)
42
+ };
43
+ });
41
44
  _defineProperty(this, "renderExport", function () {
42
45
  return null;
43
46
  });
@@ -53,25 +56,17 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
53
56
  }))
54
57
  });
55
58
  });
56
- _defineProperty(this, "getColumns", function () {
57
- return {
58
- title: _this.name,
59
- children: [_this.alipayName.getColumns(), _this.alipayAccount.getColumns()],
60
- canHidden: _this.canHidden,
61
- dataIndex: _this.id
62
- };
59
+ _defineProperty(this, "filterConfig", function (item) {
60
+ return [_this.alipayName.filterConfig(_objectSpread({}, item)), _this.alipayAccount.filterConfig(_objectSpread({}, item))];
63
61
  });
64
62
  this.name = options.name;
65
63
  this.id = options.id;
66
64
  this.type = options.type;
67
- this.canFilter = false;
68
- this.canGroup = false;
69
- this.canHidden = true;
70
- this.showContains = false;
71
- this.dataType = 'string';
65
+ this.isCombinationComponent = true;
72
66
  this.componentConfig = options.componentConfig;
73
67
  this.alipayAccount = new EAlipayAccount(_objectSpread({}, options));
74
68
  this.alipayName = new EAlipayName(_objectSpread({}, options));
69
+ this.children = [this.alipayName, this.alipayAccount];
75
70
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
76
71
  validator: function validator(_, value) {
77
72
  var _this$componentConfig4;
@@ -1,31 +1,29 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  declare class EAlipayAccount 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, record: Record) => JSX.Element;
19
15
  renderClient: (record: Record) => JSX.Element | null;
20
- renderPc: (value: any, record: Record) => JSX.Element;
16
+ renderPc: (value: unknown, record: Record) => JSX.Element;
17
+ renderLog: (r: Record) => JSX.Element | null;
18
+ getComponentValue: (r: Record) => any;
21
19
  renderExport: (value?: string) => string;
22
- editRender: (value: any) => JSX.Element;
23
- getColumns: () => this & {
24
- dataIndex: string;
25
- title: string;
26
- componentType: (value: any) => JSX.Element;
27
- renderExport: (value?: string) => string;
28
- render: (value: any, record: Record) => JSX.Element;
20
+ editRender: () => JSX.Element;
21
+ filterConfig: (item: ColumnConfig) => {
22
+ type: string;
23
+ id: string;
24
+ name: string;
25
+ filterComponentType: "Input";
26
+ filterFn: (value: string) => (i: Record) => boolean;
29
27
  };
30
28
  }
31
29
  export default EAlipayAccount;
@@ -1,6 +1,4 @@
1
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
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); } }
5
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; }
6
4
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -11,7 +9,7 @@ import React from 'react';
11
9
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
12
10
  import GetFormItem from "../GetFormItem";
13
11
  import ItemView from "../../commonComponents/ItemView";
14
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
12
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
13
  var AlipayAccount = function AlipayAccount(props) {
16
14
  return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
17
15
  };
@@ -22,18 +20,12 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
22
20
  _defineProperty(this, "id", void 0);
23
21
  _defineProperty(this, "type", void 0);
24
22
  _defineProperty(this, "rules", void 0);
25
- _defineProperty(this, "canFilter", void 0);
26
- _defineProperty(this, "canGroup", void 0);
27
- _defineProperty(this, "canHidden", void 0);
28
- _defineProperty(this, "dataType", void 0);
29
- _defineProperty(this, "showContains", void 0);
30
23
  _defineProperty(this, "componentConfig", void 0);
31
24
  _defineProperty(this, "effects", void 0);
32
25
  _defineProperty(this, "align", void 0);
33
26
  _defineProperty(this, "width", void 0);
34
- _defineProperty(this, "render", function (value, record) {
35
- return /*#__PURE__*/React.createElement("span", null, value);
36
- });
27
+ _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "children", void 0);
37
29
  _defineProperty(this, "renderClient", function (record) {
38
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
39
31
  id: _this.id,
@@ -42,18 +34,26 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
42
34
  }) : null;
43
35
  });
44
36
  _defineProperty(this, "renderPc", function (value, record) {
37
+ var _record;
45
38
  return /*#__PURE__*/React.createElement("span", {
46
39
  className: "pointer",
47
40
  onClick: function onClick() {
48
- var _this$effects;
49
- return (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail(record);
41
+ var _this$effects, _this$effects2;
42
+ typeof ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
50
43
  }
51
- }, value !== null && value !== void 0 ? value : '--');
44
+ }, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
45
+ });
46
+ _defineProperty(this, "renderLog", function (r) {
47
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
48
+ return _this.renderPc(undefined, r);
49
+ });
50
+ _defineProperty(this, "getComponentValue", function (r) {
51
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
52
52
  });
53
53
  _defineProperty(this, "renderExport", function (value) {
54
54
  return value !== null && value !== void 0 ? value : '--';
55
55
  });
56
- _defineProperty(this, "editRender", function (value) {
56
+ _defineProperty(this, "editRender", function () {
57
57
  var _this$componentConfig, _this$componentConfig2;
58
58
  return /*#__PURE__*/React.createElement(GetFormItem, {
59
59
  title: _this.name,
@@ -63,23 +63,24 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
63
63
  component: /*#__PURE__*/React.createElement(AlipayAccount, _this.componentConfig)
64
64
  });
65
65
  });
66
- _defineProperty(this, "getColumns", function () {
67
- return _objectSpread(_objectSpread({}, _this), {}, {
68
- dataIndex: _this.id,
69
- title: _this.name,
70
- componentType: _this.editRender,
71
- renderExport: _this.renderExport,
72
- render: _this.renderPc
73
- });
66
+ _defineProperty(this, "filterConfig", function (item) {
67
+ return {
68
+ type: item.type,
69
+ id: "".concat(item.id, "_alipayAccount"),
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, 'alipayAccount')).includes(value);
75
+ };
76
+ }
77
+ };
74
78
  });
75
79
  this.name = '支付宝账号';
76
80
  this.id = "".concat(options.id, "_alipayAccount");
77
81
  this.type = options.type;
78
- this.canFilter = true;
79
- this.canGroup = false;
80
- this.canHidden = false;
81
- this.showContains = true;
82
- this.dataType = 'string';
82
+ this.isCombinationComponent = false;
83
+ this.children = [];
83
84
  this.align = 'left';
84
85
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
85
86
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
@@ -1,31 +1,29 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  declare class EAlipayAccount 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"];
10
+ isCombinationComponent: boolean;
11
+ children: ComponentInterface[];
15
12
  align: ALignType;
16
13
  width: number;
17
14
  constructor(options: PickOption);
18
- render: (value: string, record: any) => JSX.Element;
19
15
  renderClient: (record: any) => JSX.Element | null;
20
- renderPc: (value: any, record: Record) => JSX.Element;
16
+ renderPc: (value: unknown, record: Record) => JSX.Element;
17
+ renderLog: (r: Record) => JSX.Element | null;
18
+ getComponentValue: (r: Record) => any;
21
19
  renderExport: (value?: string) => string;
22
- editRender: (value: any) => JSX.Element;
23
- getColumns: () => this & {
24
- dataIndex: string;
25
- title: string;
26
- componentType: (value: any) => JSX.Element;
27
- renderExport: (value?: string) => string;
28
- render: (value: any, record: Record) => JSX.Element;
20
+ editRender: () => JSX.Element;
21
+ filterConfig: (item: ColumnConfig) => {
22
+ type: string;
23
+ id: string;
24
+ name: string;
25
+ filterComponentType: "Input";
26
+ filterFn: (value: string) => (i: Record) => boolean;
29
27
  };
30
28
  }
31
29
  export default EAlipayAccount;
@@ -1,6 +1,4 @@
1
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
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); } }
5
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; }
6
4
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -11,7 +9,7 @@ import React from 'react';
11
9
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
12
10
  import GetFormItem from "../GetFormItem";
13
11
  import ItemView from "../../commonComponents/ItemView";
14
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
12
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
13
  var AlipayName = function AlipayName(props) {
16
14
  return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
17
15
  };
@@ -22,18 +20,12 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
22
20
  _defineProperty(this, "id", void 0);
23
21
  _defineProperty(this, "type", void 0);
24
22
  _defineProperty(this, "rules", void 0);
25
- _defineProperty(this, "canFilter", void 0);
26
- _defineProperty(this, "canGroup", void 0);
27
- _defineProperty(this, "canHidden", void 0);
28
- _defineProperty(this, "dataType", void 0);
29
- _defineProperty(this, "showContains", void 0);
30
23
  _defineProperty(this, "componentConfig", void 0);
31
24
  _defineProperty(this, "effects", void 0);
25
+ _defineProperty(this, "isCombinationComponent", void 0);
26
+ _defineProperty(this, "children", void 0);
32
27
  _defineProperty(this, "align", void 0);
33
28
  _defineProperty(this, "width", void 0);
34
- _defineProperty(this, "render", function (value, record) {
35
- return /*#__PURE__*/React.createElement("span", null, value);
36
- });
37
29
  _defineProperty(this, "renderClient", function (record) {
38
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
39
31
  id: _this.id,
@@ -42,18 +34,26 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
42
34
  }) : null;
43
35
  });
44
36
  _defineProperty(this, "renderPc", function (value, record) {
37
+ var _record;
45
38
  return /*#__PURE__*/React.createElement("span", {
46
39
  className: "pointer",
47
40
  onClick: function onClick() {
48
- var _this$effects;
49
- return (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail(record);
41
+ var _this$effects, _this$effects2;
42
+ typeof ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
50
43
  }
51
- }, value !== null && value !== void 0 ? value : '--');
44
+ }, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
45
+ });
46
+ _defineProperty(this, "renderLog", function (r) {
47
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
48
+ return _this.renderPc(undefined, r);
49
+ });
50
+ _defineProperty(this, "getComponentValue", function (r) {
51
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
52
52
  });
53
53
  _defineProperty(this, "renderExport", function (value) {
54
54
  return value !== null && value !== void 0 ? value : '--';
55
55
  });
56
- _defineProperty(this, "editRender", function (value) {
56
+ _defineProperty(this, "editRender", function () {
57
57
  var _this$componentConfig, _this$componentConfig2;
58
58
  return /*#__PURE__*/React.createElement(GetFormItem, {
59
59
  title: _this.name,
@@ -63,23 +63,24 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
63
63
  component: /*#__PURE__*/React.createElement(AlipayName, _this.componentConfig)
64
64
  });
65
65
  });
66
- _defineProperty(this, "getColumns", function () {
67
- return _objectSpread(_objectSpread({}, _this), {}, {
68
- dataIndex: _this.id,
69
- title: _this.name,
70
- componentType: _this.editRender,
71
- renderExport: _this.renderExport,
72
- render: _this.renderPc
73
- });
66
+ _defineProperty(this, "filterConfig", function (item) {
67
+ return {
68
+ type: item.type,
69
+ id: "".concat(item.id, "_alipayName"),
70
+ name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u540D\u79F0"),
71
+ filterComponentType: 'Input',
72
+ filterFn: function filterFn(value) {
73
+ return function (i) {
74
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'alipayName')).includes(value);
75
+ };
76
+ }
77
+ };
74
78
  });
75
79
  this.name = '支付宝名称';
76
80
  this.id = "".concat(options.id, "_alipayName");
77
81
  this.type = options.type;
78
- this.canFilter = true;
79
- this.canGroup = false;
80
- this.canHidden = false;
81
- this.showContains = true;
82
- this.dataType = 'string';
82
+ this.isCombinationComponent = false;
83
+ this.children = [];
83
84
  this.align = 'left';
84
85
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
85
86
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
@@ -1,31 +1,30 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, Record } from "../../type";
3
- declare type Value = {
4
- buyerNick?: string;
5
- };
2
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
6
3
  declare class EBuyerNick implements ComponentInterface {
7
4
  name: string;
8
5
  id: string;
9
6
  type: string;
10
7
  rules: any[];
11
- canFilter: boolean;
12
- canGroup: boolean;
13
- canHidden: boolean;
14
- dataType: DataType;
15
- showContains: boolean;
16
8
  componentConfig: ComponentInterface["componentConfig"];
17
9
  effects: ComponentInterface["effects"];
10
+ isCombinationComponent: boolean;
11
+ children: ComponentInterface[];
18
12
  constructor(options: PickOption);
19
- render: (value: Value) => JSX.Element;
20
13
  renderClient: (record: any) => JSX.Element | null;
21
14
  renderPc: (value: unknown, record: Record) => JSX.Element;
15
+ renderLog: (r: Record) => JSX.Element | null;
16
+ getComponentValue: (r: Record) => {
17
+ buyerNick: any;
18
+ buyerOpenUid: any;
19
+ };
22
20
  renderExport: (value: any, record: any) => any;
23
21
  editRender: (value: any) => JSX.Element;
24
- getColumns: () => this & {
25
- dataIndex: string;
26
- title: string;
27
- renderExport: (value: any, record: any) => any;
28
- customizeFilter: (value: Value) => string | undefined;
22
+ filterConfig: (item: ColumnConfig) => {
23
+ type: string;
24
+ id: string;
25
+ name: string;
26
+ filterComponentType: "Input";
27
+ filterFn: (value: string) => (i: Record) => boolean;
29
28
  };
30
29
  }
31
30
  export default EBuyerNick;