@kmkf-fe-packages/services-components 0.5.2-alpha.1 → 0.5.2-alpha.11

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 (126) hide show
  1. package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +7 -0
  2. package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
  3. package/dist/esm/components/ActualPayment/index.d.ts +7 -1
  4. package/dist/esm/components/ActualPayment/index.js +15 -1
  5. package/dist/esm/components/Address/index.d.ts +3 -2
  6. package/dist/esm/components/Address/index.js +6 -3
  7. package/dist/esm/components/Alipay/index.d.ts +7 -1
  8. package/dist/esm/components/Alipay/index.js +3 -0
  9. package/dist/esm/components/AlipayAccount/index.d.ts +7 -1
  10. package/dist/esm/components/AlipayAccount/index.js +13 -1
  11. package/dist/esm/components/AlipayName/index.d.ts +7 -1
  12. package/dist/esm/components/AlipayName/index.js +13 -1
  13. package/dist/esm/components/BuyerNick/index.d.ts +7 -1
  14. package/dist/esm/components/BuyerNick/index.js +15 -1
  15. package/dist/esm/components/Cascader/index.d.ts +8 -1
  16. package/dist/esm/components/Cascader/index.js +18 -1
  17. package/dist/esm/components/Checkbox/index.d.ts +8 -1
  18. package/dist/esm/components/Checkbox/index.js +21 -1
  19. package/dist/esm/components/CommonDataTime/index.d.ts +7 -1
  20. package/dist/esm/components/CommonDataTime/index.js +16 -1
  21. package/dist/esm/components/CompletedUser/index.d.ts +28 -0
  22. package/dist/esm/components/CompletedUser/index.js +60 -0
  23. package/dist/esm/components/DataTime/index.d.ts +8 -1
  24. package/dist/esm/components/DataTime/index.js +18 -1
  25. package/dist/esm/components/EItemEnCode/index.d.ts +7 -1
  26. package/dist/esm/components/EItemEnCode/index.js +19 -1
  27. package/dist/esm/components/EItemId/index.d.ts +7 -1
  28. package/dist/esm/components/EItemId/index.js +19 -1
  29. package/dist/esm/components/EItemSelect/index.d.ts +1 -0
  30. package/dist/esm/components/EItemSelect/index.js +3 -0
  31. package/dist/esm/components/ErpTradeId/index.d.ts +7 -1
  32. package/dist/esm/components/ErpTradeId/index.js +15 -1
  33. package/dist/esm/components/Express/index.d.ts +8 -1
  34. package/dist/esm/components/Express/index.js +15 -1
  35. package/dist/esm/components/ExpressCode/index.d.ts +7 -1
  36. package/dist/esm/components/ExpressCode/index.js +14 -1
  37. package/dist/esm/components/FlowStatusSelect/index.d.ts +11 -1
  38. package/dist/esm/components/FlowStatusSelect/index.js +22 -0
  39. package/dist/esm/components/Grade/index.d.ts +1 -0
  40. package/dist/esm/components/Grade/index.js +3 -0
  41. package/dist/esm/components/Handler/index.d.ts +32 -0
  42. package/dist/esm/components/Handler/index.js +64 -0
  43. package/dist/esm/components/Input/index.d.ts +7 -1
  44. package/dist/esm/components/Input/index.js +15 -1
  45. package/dist/esm/components/JstItemSelect/index.d.ts +7 -1
  46. package/dist/esm/components/JstItemSelect/index.js +32 -1
  47. package/dist/esm/components/JstLogistics/index.d.ts +14 -1
  48. package/dist/esm/components/JstLogistics/index.js +28 -1
  49. package/dist/esm/components/JstSendGood/index.d.ts +7 -1
  50. package/dist/esm/components/JstSendGood/index.js +32 -1
  51. package/dist/esm/components/JstSupply/index.d.ts +7 -1
  52. package/dist/esm/components/JstSupply/index.js +32 -1
  53. package/dist/esm/components/Logistics/index.d.ts +12 -1
  54. package/dist/esm/components/Logistics/index.js +7 -0
  55. package/dist/esm/components/MultSelect/index.d.ts +8 -1
  56. package/dist/esm/components/MultSelect/index.js +18 -1
  57. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +7 -1
  58. package/dist/esm/components/Ordinary/OrdinaryHeader.js +13 -1
  59. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +7 -1
  60. package/dist/esm/components/Ordinary/OrdinaryMoney.js +13 -1
  61. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +7 -1
  62. package/dist/esm/components/Ordinary/OrdinarySerial.js +13 -1
  63. package/dist/esm/components/Ordinary/index.d.ts +7 -1
  64. package/dist/esm/components/Ordinary/index.js +5 -0
  65. package/dist/esm/components/Payment/AlipayNick.d.ts +7 -1
  66. package/dist/esm/components/Payment/AlipayNick.js +13 -1
  67. package/dist/esm/components/Payment/AlipayNo.d.ts +7 -1
  68. package/dist/esm/components/Payment/AlipayNo.js +13 -1
  69. package/dist/esm/components/Payment/AlipayTime.d.ts +7 -1
  70. package/dist/esm/components/Payment/AlipayTime.js +14 -1
  71. package/dist/esm/components/Payment/BuyerNick.d.ts +7 -1
  72. package/dist/esm/components/Payment/BuyerNick.js +13 -1
  73. package/dist/esm/components/Payment/PaymentAmount.d.ts +7 -1
  74. package/dist/esm/components/Payment/PaymentAmount.js +13 -1
  75. package/dist/esm/components/Payment/PaymentStatus.d.ts +15 -1
  76. package/dist/esm/components/Payment/PaymentStatus.js +37 -1
  77. package/dist/esm/components/Payment/PaymentTid.d.ts +7 -1
  78. package/dist/esm/components/Payment/PaymentTid.js +13 -1
  79. package/dist/esm/components/Payment/index.d.ts +16 -1
  80. package/dist/esm/components/Payment/index.js +5 -0
  81. package/dist/esm/components/Picture/index.d.ts +5 -0
  82. package/dist/esm/components/Picture/index.js +3 -0
  83. package/dist/esm/components/PlatForm/index.d.ts +26 -0
  84. package/dist/esm/components/PlatForm/index.js +62 -0
  85. package/dist/esm/components/Radio/index.d.ts +8 -1
  86. package/dist/esm/components/Radio/index.js +20 -1
  87. package/dist/esm/components/Rate/index.d.ts +1 -0
  88. package/dist/esm/components/Rate/index.js +3 -0
  89. package/dist/esm/components/ReceiverAddress/index.d.ts +1 -0
  90. package/dist/esm/components/ReceiverAddress/index.js +3 -0
  91. package/dist/esm/components/ReceiverMobile/index.d.ts +7 -1
  92. package/dist/esm/components/ReceiverMobile/index.js +15 -1
  93. package/dist/esm/components/ReceiverName/index.d.ts +7 -1
  94. package/dist/esm/components/ReceiverName/index.js +15 -1
  95. package/dist/esm/components/Remark/index.d.ts +7 -1
  96. package/dist/esm/components/Remark/index.js +15 -1
  97. package/dist/esm/components/ReturnLogistics/index.d.ts +12 -1
  98. package/dist/esm/components/ReturnLogistics/index.js +7 -0
  99. package/dist/esm/components/Select/index.d.ts +8 -1
  100. package/dist/esm/components/Select/index.js +17 -1
  101. package/dist/esm/components/ShopInput/index.d.ts +26 -0
  102. package/dist/esm/components/ShopInput/index.js +71 -0
  103. package/dist/esm/components/ShopName/index.d.ts +7 -1
  104. package/dist/esm/components/ShopName/index.js +15 -1
  105. package/dist/esm/components/Submitter/index.d.ts +28 -0
  106. package/dist/esm/components/Submitter/index.js +60 -0
  107. package/dist/esm/components/SystemOrderNo/index.d.ts +7 -1
  108. package/dist/esm/components/SystemOrderNo/index.js +15 -1
  109. package/dist/esm/components/TemplateSelect/index.d.ts +8 -1
  110. package/dist/esm/components/TemplateSelect/index.js +17 -0
  111. package/dist/esm/components/TextArea/index.d.ts +7 -1
  112. package/dist/esm/components/TextArea/index.js +15 -1
  113. package/dist/esm/components/ThirdItemSelect/index.d.ts +7 -1
  114. package/dist/esm/components/ThirdItemSelect/index.js +21 -1
  115. package/dist/esm/components/TradeDateTime/index.d.ts +8 -1
  116. package/dist/esm/components/TradeDateTime/index.js +31 -1
  117. package/dist/esm/components/TradeId/index.d.ts +7 -1
  118. package/dist/esm/components/TradeId/index.js +15 -1
  119. package/dist/esm/components/WorkOrderId/index.d.ts +7 -1
  120. package/dist/esm/components/WorkOrderId/index.js +15 -0
  121. package/dist/esm/factory.d.ts +3 -0
  122. package/dist/esm/factory.js +105 -0
  123. package/dist/esm/index.d.ts +6 -0
  124. package/dist/esm/index.js +7 -1
  125. package/dist/esm/type.d.ts +35 -6
  126. package/package.json +3 -3
@@ -11,7 +11,7 @@ import GetFormItem from "../GetFormItem";
11
11
  import ItemEncode from "./ItemEncode";
12
12
  import { GoodImage } from "../Common";
13
13
  import ItemView from "../../commonComponents/ItemView";
14
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
14
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
15
  var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
16
16
  var _this = this,
17
17
  _this$componentConfig;
@@ -67,6 +67,24 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
67
67
  }))
68
68
  });
69
69
  });
70
+ _defineProperty(this, "filterConfig", function (item) {
71
+ return {
72
+ id: item.id,
73
+ // 过滤组件id
74
+ name: item.name,
75
+ // 过滤组件名称
76
+ filterComponentType: 'Input',
77
+ filterFn: function filterFn(value) {
78
+ return function (i) {
79
+ var _ref2;
80
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'itemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
81
+ var _String;
82
+ return item !== null && item !== void 0 && item.outerId ? (_String = String(item === null || item === void 0 ? void 0 : item.outerId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
83
+ });
84
+ };
85
+ }
86
+ };
87
+ });
70
88
  this.name = options.name;
71
89
  this.id = options.id;
72
90
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
3
3
  declare class EItemId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -15,5 +15,11 @@ declare class EItemId implements ComponentInterface {
15
15
  renderPc: (value: unknown, record: Record) => JSX.Element;
16
16
  renderExport: (value: any, record: any) => any;
17
17
  editRender: () => JSX.Element;
18
+ filterConfig: (item: ColumnConfig) => {
19
+ id: string;
20
+ name: string;
21
+ filterComponentType: "Input";
22
+ filterFn: (value: string) => (i: Record) => any;
23
+ };
18
24
  }
19
25
  export default EItemId;
@@ -11,7 +11,7 @@ import GetFormItem from "../GetFormItem";
11
11
  import ItemId from "./ItemId";
12
12
  import { GoodImage } from "../Common";
13
13
  import ItemView from "../../commonComponents/ItemView";
14
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
14
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
15
  var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
16
16
  var _this = this,
17
17
  _this$componentConfig2;
@@ -68,6 +68,24 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
68
68
  }))
69
69
  });
70
70
  });
71
+ _defineProperty(this, "filterConfig", function (item) {
72
+ return {
73
+ id: item.id,
74
+ // 过滤组件id
75
+ name: item.name,
76
+ // 过滤组件名称
77
+ filterComponentType: 'Input',
78
+ filterFn: function filterFn(value) {
79
+ return function (i) {
80
+ var _ref2;
81
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'itemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
82
+ var _String;
83
+ return item !== null && item !== void 0 && item.numIid ? (_String = String(item === null || item === void 0 ? void 0 : item.numIid)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
84
+ });
85
+ };
86
+ }
87
+ };
88
+ });
71
89
  this.name = options.name;
72
90
  this.id = options.id;
73
91
  this.type = options.type;
@@ -15,5 +15,6 @@ declare class EItemSelect implements ComponentInterface {
15
15
  renderPc: (value: unknown, record: Record) => JSX.Element;
16
16
  renderExport: (value: any, record: any) => any;
17
17
  editRender: () => JSX.Element;
18
+ filterConfig: () => never[];
18
19
  }
19
20
  export default EItemSelect;
@@ -64,6 +64,9 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
64
64
  }))
65
65
  });
66
66
  });
67
+ _defineProperty(this, "filterConfig", function () {
68
+ return [];
69
+ });
67
70
  this.name = options.name;
68
71
  this.id = options.id;
69
72
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
3
3
  declare class ErpTradeId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -14,5 +14,11 @@ declare class ErpTradeId implements ComponentInterface {
14
14
  renderPc: (value: any, record: Record) => JSX.Element;
15
15
  renderExport: (value: any, record: Record) => any;
16
16
  editRender: (value: any) => JSX.Element;
17
+ filterConfig: (item: ColumnConfig) => {
18
+ id: string;
19
+ name: string;
20
+ filterComponentType: "Input";
21
+ filterFn: (value: string) => (i: Record) => boolean;
22
+ };
17
23
  }
18
24
  export default ErpTradeId;
@@ -9,7 +9,7 @@ import React from 'react';
9
9
  import { TradeId } 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 ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
14
14
  var _this = this;
15
15
  _classCallCheck(this, ErpTradeId);
@@ -48,6 +48,20 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
48
48
  component: /*#__PURE__*/React.createElement(TradeId, null)
49
49
  });
50
50
  });
51
+ _defineProperty(this, "filterConfig", function (item) {
52
+ return {
53
+ id: item.id,
54
+ // 过滤组件id
55
+ name: item.name,
56
+ // 过滤组件名称
57
+ filterComponentType: 'Input',
58
+ filterFn: function filterFn(value) {
59
+ return function (i) {
60
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
61
+ };
62
+ }
63
+ };
64
+ });
51
65
  this.name = options.name;
52
66
  this.id = options.id;
53
67
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class Express implements ComponentInterface {
5
5
  name: string;
@@ -18,5 +18,12 @@ declare class Express implements ComponentInterface {
18
18
  renderPc: (value: string, record: Record) => JSX.Element;
19
19
  renderExport: (value: string, record: Record) => string | number;
20
20
  editRender: () => JSX.Element;
21
+ filterConfig: (item: ColumnConfig) => {
22
+ id: string;
23
+ name: string;
24
+ filterComponentType: "MultipleSelect";
25
+ options: any[];
26
+ filterFn: (value: string) => (i: Record) => boolean;
27
+ };
21
28
  }
22
29
  export default Express;
@@ -10,7 +10,7 @@ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
10
10
  import GetFormItem from "../GetFormItem";
11
11
  import ExpressCompany from "../ExpressCompany";
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 Express = /*#__PURE__*/_createClass(function Express(options) {
15
15
  var _this = this;
16
16
  _classCallCheck(this, Express);
@@ -55,6 +55,20 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
55
55
  }) : null
56
56
  });
57
57
  });
58
+ _defineProperty(this, "filterConfig", function (item) {
59
+ var subKey = item.subKey;
60
+ return {
61
+ id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
62
+ name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
63
+ filterComponentType: 'MultipleSelect',
64
+ options: _this.expressDateInstance.getExpressData() || [],
65
+ filterFn: function filterFn(value) {
66
+ return function (i) {
67
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)));
68
+ };
69
+ }
70
+ };
71
+ });
58
72
  this.name = options.name;
59
73
  this.id = options.id;
60
74
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  declare class ExpressCode implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -16,5 +16,11 @@ declare class ExpressCode implements ComponentInterface {
16
16
  renderPc: (value: any, record: Record) => JSX.Element;
17
17
  renderExport: (value: string, record: Record) => string;
18
18
  editRender: () => JSX.Element;
19
+ filterConfig: (item: ColumnConfig) => {
20
+ id: string;
21
+ name: string;
22
+ filterComponentType: "Input";
23
+ filterFn: (value: string) => (i: Record) => boolean;
24
+ };
19
25
  }
20
26
  export default ExpressCode;
@@ -9,7 +9,7 @@ import React from 'react';
9
9
  import { Input } from 'antd';
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 ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
14
14
  var _this = this,
15
15
  _this$componentConfig5;
@@ -49,6 +49,19 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
49
49
  component: !((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingle) || ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) === 'EXPRESS_WAYBILL_CODE' ? /*#__PURE__*/React.createElement(Input, null) : null
50
50
  });
51
51
  });
52
+ _defineProperty(this, "filterConfig", function (item) {
53
+ var subKey = item.subKey;
54
+ return {
55
+ id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
56
+ name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
57
+ filterComponentType: 'Input',
58
+ filterFn: function filterFn(value) {
59
+ return function (i) {
60
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
61
+ };
62
+ }
63
+ };
64
+ });
52
65
  this.name = options.name;
53
66
  this.id = options.id;
54
67
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
3
3
  declare class WorkOrderId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -17,5 +17,15 @@ declare class WorkOrderId implements ComponentInterface {
17
17
  render: () => null;
18
18
  renderClient: () => null;
19
19
  editRender: () => JSX.Element;
20
+ filterConfig: (item: ColumnConfig) => {
21
+ id: string;
22
+ name: string;
23
+ filterComponentType: "MultipleSelect";
24
+ options: {
25
+ label: any;
26
+ value: string;
27
+ }[];
28
+ filterFn: (value: string[]) => (i: Record) => boolean;
29
+ };
20
30
  }
21
31
  export default WorkOrderId;
@@ -9,6 +9,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
9
9
  import React from 'react';
10
10
  import { Dropdown, Menu } from 'antd';
11
11
  import { ApaasSelect } from '@kmkf-fe-packages/basic-components';
12
+ import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
12
13
  import GetFormItem from "../GetFormItem";
13
14
  import get from 'lodash/get';
14
15
  var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
@@ -74,6 +75,27 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
74
75
  }))
75
76
  });
76
77
  });
78
+ _defineProperty(this, "filterConfig", function (item) {
79
+ var _Object$keys;
80
+ return {
81
+ id: item.id,
82
+ // 过滤组件id
83
+ name: item.name,
84
+ // 过滤组件名称
85
+ filterComponentType: 'MultipleSelect',
86
+ options: (_Object$keys = Object.keys(_this.workOrderStatus)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(function (item) {
87
+ return {
88
+ label: _this.workOrderStatus[item].label,
89
+ value: item
90
+ };
91
+ }),
92
+ filterFn: function filterFn(value) {
93
+ return function (i) {
94
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
95
+ };
96
+ }
97
+ };
98
+ });
77
99
  this.name = options.name;
78
100
  this.id = options.id;
79
101
  this.type = options.type;
@@ -14,5 +14,6 @@ declare class BasicGrade implements ComponentInterface {
14
14
  renderPc: (value: any, record: Record) => JSX.Element;
15
15
  renderExport: (value: any, record: Record) => any;
16
16
  editRender: () => JSX.Element;
17
+ filterConfig: () => never[];
17
18
  }
18
19
  export default BasicGrade;
@@ -48,6 +48,9 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
48
48
  component: /*#__PURE__*/React.createElement(ApaasSlider, _this.componentConfig)
49
49
  });
50
50
  });
51
+ _defineProperty(this, "filterConfig", function () {
52
+ return [];
53
+ });
51
54
  this.name = options.name;
52
55
  this.id = options.id;
53
56
  this.type = options.type;
@@ -0,0 +1,32 @@
1
+ /// <reference types="react" />
2
+ import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type';
3
+ declare class Handler implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ type: string;
7
+ componentConfig: ComponentInterface["componentConfig"];
8
+ effects: ComponentInterface["effects"];
9
+ isCombinationComponent: boolean;
10
+ children: ComponentInterface[];
11
+ constructor(options: PickOption);
12
+ renderPc: (value: {
13
+ account: string;
14
+ }[], record: Record) => JSX.Element;
15
+ renderExport: (value: {
16
+ account: string;
17
+ }[], record: Record) => string;
18
+ render: () => null;
19
+ renderClient: () => null;
20
+ editRender: () => null;
21
+ filterConfig: (item: ColumnConfig) => {
22
+ id: string;
23
+ name: string;
24
+ filterComponentType: "MultipleSelect";
25
+ options: {
26
+ label: string;
27
+ value: string;
28
+ }[];
29
+ filterFn: (value: string) => (i: Record) => boolean;
30
+ };
31
+ }
32
+ export default Handler;
@@ -0,0 +1,64 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import React from 'react';
9
+ import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
10
+ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
11
+ var _this = this;
12
+ _classCallCheck(this, Handler);
13
+ _defineProperty(this, "name", void 0);
14
+ _defineProperty(this, "id", void 0);
15
+ _defineProperty(this, "type", void 0);
16
+ _defineProperty(this, "componentConfig", void 0);
17
+ _defineProperty(this, "effects", void 0);
18
+ _defineProperty(this, "isCombinationComponent", void 0);
19
+ _defineProperty(this, "children", void 0);
20
+ _defineProperty(this, "renderPc", function (value, record) {
21
+ var _value$map$join, _value$map;
22
+ return /*#__PURE__*/React.createElement("span", null, (_value$map$join = value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
23
+ return item.account;
24
+ })) === null || _value$map === void 0 ? void 0 : _value$map.join('、')) !== null && _value$map$join !== void 0 ? _value$map$join : '--');
25
+ });
26
+ _defineProperty(this, "renderExport", function (value, record) {
27
+ var _value$map$join2, _value$map2;
28
+ return (_value$map$join2 = value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
29
+ return item.account;
30
+ })) === null || _value$map2 === void 0 ? void 0 : _value$map2.join('、')) !== null && _value$map$join2 !== void 0 ? _value$map$join2 : '--';
31
+ });
32
+ _defineProperty(this, "render", function () {
33
+ return null;
34
+ });
35
+ _defineProperty(this, "renderClient", function () {
36
+ return null;
37
+ });
38
+ _defineProperty(this, "editRender", function () {
39
+ return null;
40
+ });
41
+ _defineProperty(this, "filterConfig", function (item) {
42
+ var _this$effects;
43
+ return {
44
+ id: item.id,
45
+ // 过滤组件id
46
+ name: item.name,
47
+ // 过滤组件名称
48
+ filterComponentType: 'MultipleSelect',
49
+ options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || [],
50
+ filterFn: function filterFn(value) {
51
+ return function (i) {
52
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
53
+ };
54
+ }
55
+ };
56
+ });
57
+ this.name = "处理人";
58
+ this.id = "handlerList";
59
+ this.type = "HANDLER_INPUT";
60
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
61
+ this.isCombinationComponent = false;
62
+ this.children = [];
63
+ });
64
+ export default Handler;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
3
3
  declare class BasicInput implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -14,5 +14,11 @@ declare class BasicInput implements ComponentInterface {
14
14
  render: (value: string | number) => JSX.Element;
15
15
  renderClient: (record: Record) => JSX.Element | null;
16
16
  editRender: () => JSX.Element;
17
+ filterConfig: (item: ColumnConfig) => {
18
+ id: string;
19
+ name: string;
20
+ filterComponentType: "Input";
21
+ filterFn: (value: string) => (i: Record) => boolean;
22
+ };
17
23
  }
18
24
  export default BasicInput;
@@ -10,7 +10,7 @@ import React from 'react';
10
10
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
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 BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
15
15
  var _this = this,
16
16
  _options$componentCon;
@@ -52,6 +52,20 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
52
52
  }))
53
53
  });
54
54
  });
55
+ _defineProperty(this, "filterConfig", function (item) {
56
+ return {
57
+ id: item.id,
58
+ // 过滤组件id
59
+ name: item.name,
60
+ // 过滤组件名称
61
+ filterComponentType: 'Input',
62
+ filterFn: function filterFn(value) {
63
+ return function (i) {
64
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'input')).includes(value);
65
+ };
66
+ }
67
+ };
68
+ });
55
69
  this.name = options.name;
56
70
  this.id = options.id;
57
71
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class JstItemSelect implements ComponentInterface {
5
5
  name: string;
@@ -17,5 +17,11 @@ declare class JstItemSelect implements ComponentInterface {
17
17
  renderPc: (value: any, record: Record) => JSX.Element;
18
18
  renderExport: (value: any, record: any) => any;
19
19
  editRender: () => JSX.Element;
20
+ filterConfig: (item: ColumnConfig) => {
21
+ id: string;
22
+ name: string;
23
+ filterComponentType: "Input";
24
+ filterFn: (value: string) => (i: Record) => any;
25
+ }[];
20
26
  }
21
27
  export default JstItemSelect;
@@ -12,7 +12,7 @@ import GetFormItem from "../GetFormItem";
12
12
  import { GoodImage } from "../Common";
13
13
  import { JstItemList } from '@kmkf-fe-packages/basic-components';
14
14
  import ItemView from "../../commonComponents/ItemView";
15
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
16
  var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
17
17
  var _this = this,
18
18
  _this$componentConfig;
@@ -65,6 +65,37 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
65
65
  }))
66
66
  });
67
67
  });
68
+ _defineProperty(this, "filterConfig", function (item) {
69
+ return [{
70
+ id: "".concat(item.id, "_itemId"),
71
+ name: "jst\u4F9B\u5E94\u5546\u7F16\u7801",
72
+ filterComponentType: 'Input',
73
+ filterFn: function filterFn(value) {
74
+ return function (i) {
75
+ var _ref;
76
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
77
+ var _String;
78
+ var id = item !== null && item !== void 0 && item.itemId ? (_String = String(item === null || item === void 0 ? void 0 : item.itemId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
79
+ return id;
80
+ });
81
+ };
82
+ }
83
+ }, {
84
+ id: "".concat(item.id, "_supplierName"),
85
+ name: "jst\u4F9B\u5E94\u5546\u540D\u79F0",
86
+ filterComponentType: 'Input',
87
+ filterFn: function filterFn(value) {
88
+ return function (i) {
89
+ var _ref2;
90
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
91
+ var _String2;
92
+ var name = item !== null && item !== void 0 && item.supplierName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.supplierName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
93
+ return name;
94
+ });
95
+ };
96
+ }
97
+ }];
98
+ });
68
99
  this.name = options.name;
69
100
  this.id = options.id;
70
101
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class JstLogistics implements ComponentInterface {
5
5
  name: string;
@@ -17,5 +17,18 @@ declare class JstLogistics implements ComponentInterface {
17
17
  renderPc: (value: any, record: Record) => JSX.Element;
18
18
  renderExport: (value: any, record: any) => any;
19
19
  editRender: () => JSX.Element;
20
+ filterConfig: (item: ColumnConfig) => ({
21
+ id: string;
22
+ name: string;
23
+ filterComponentType: "Input";
24
+ filterFn: (value: string) => (i: Record) => boolean;
25
+ options?: undefined;
26
+ } | {
27
+ id: string;
28
+ name: string;
29
+ filterComponentType: "MultipleSelect";
30
+ options: any[];
31
+ filterFn: (value: string) => (i: Record) => any;
32
+ })[];
20
33
  }
21
34
  export default JstLogistics;
@@ -12,7 +12,7 @@ import GetFormItem from "../GetFormItem";
12
12
  import { JstGoodImage } from "../Common";
13
13
  import { JstGoods } from '@kmkf-fe-packages/basic-components';
14
14
  import ItemView from "../../commonComponents/ItemView";
15
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
16
  var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
17
17
  var _this = this,
18
18
  _this$componentConfig3;
@@ -67,6 +67,33 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
67
67
  }))
68
68
  });
69
69
  });
70
+ _defineProperty(this, "filterConfig", function (item) {
71
+ return [{
72
+ id: "".concat(item.id, "_logisticsCode"),
73
+ name: "jst\u7269\u6D41\u5355\u53F7",
74
+ filterComponentType: 'Input',
75
+ filterFn: function filterFn(value) {
76
+ return function (i) {
77
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCode'), value);
78
+ };
79
+ }
80
+ }, {
81
+ id: "".concat(item.id, "_logisticsCompany"),
82
+ name: "jst\u7269\u6D41\u516C\u53F8",
83
+ filterComponentType: 'MultipleSelect',
84
+ options: _this.expressDateInstance.getExpressData() || [],
85
+ filterFn: function filterFn(value) {
86
+ return function (i) {
87
+ var _ref;
88
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCompany').split(',') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
89
+ var _String;
90
+ var logisticsCompany = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
91
+ return logisticsCompany;
92
+ });
93
+ };
94
+ }
95
+ }];
96
+ });
70
97
  this.name = options.name;
71
98
  this.id = options.id;
72
99
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  declare class JstSendGood implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -15,5 +15,11 @@ declare class JstSendGood implements ComponentInterface {
15
15
  renderPc: (value: any, record: Record) => JSX.Element;
16
16
  renderExport: (value: any, record: any) => any;
17
17
  editRender: () => JSX.Element;
18
+ filterConfig: (item: ColumnConfig) => {
19
+ id: string;
20
+ name: string;
21
+ filterComponentType: "Input";
22
+ filterFn: (value: string) => (i: Record) => any;
23
+ }[];
18
24
  }
19
25
  export default JstSendGood;