@kmkf-fe-packages/services-components 0.5.2-alpha.4 → 0.5.2-alpha.6

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 (108) hide show
  1. package/dist/esm/components/ActualPayment/index.d.ts +7 -1
  2. package/dist/esm/components/ActualPayment/index.js +15 -1
  3. package/dist/esm/components/Alipay/index.d.ts +7 -1
  4. package/dist/esm/components/Alipay/index.js +3 -0
  5. package/dist/esm/components/AlipayAccount/index.d.ts +7 -1
  6. package/dist/esm/components/AlipayAccount/index.js +13 -1
  7. package/dist/esm/components/AlipayName/index.d.ts +7 -1
  8. package/dist/esm/components/AlipayName/index.js +13 -1
  9. package/dist/esm/components/BuyerNick/index.d.ts +7 -1
  10. package/dist/esm/components/BuyerNick/index.js +15 -1
  11. package/dist/esm/components/Cascader/index.d.ts +8 -1
  12. package/dist/esm/components/Cascader/index.js +18 -1
  13. package/dist/esm/components/Checkbox/index.d.ts +8 -1
  14. package/dist/esm/components/Checkbox/index.js +21 -1
  15. package/dist/esm/components/CommonDataTime/index.d.ts +7 -1
  16. package/dist/esm/components/CommonDataTime/index.js +16 -1
  17. package/dist/esm/components/CompletedUser/index.d.ts +13 -2
  18. package/dist/esm/components/CompletedUser/index.js +20 -1
  19. package/dist/esm/components/DataTime/index.d.ts +8 -1
  20. package/dist/esm/components/DataTime/index.js +18 -1
  21. package/dist/esm/components/EItemEnCode/index.d.ts +7 -1
  22. package/dist/esm/components/EItemEnCode/index.js +19 -1
  23. package/dist/esm/components/EItemId/index.d.ts +7 -1
  24. package/dist/esm/components/EItemId/index.js +19 -1
  25. package/dist/esm/components/Express/index.d.ts +7 -1
  26. package/dist/esm/components/Express/index.js +14 -1
  27. package/dist/esm/components/ExpressCode/index.d.ts +7 -1
  28. package/dist/esm/components/ExpressCode/index.js +14 -1
  29. package/dist/esm/components/FlowStatusSelect/index.d.ts +11 -1
  30. package/dist/esm/components/FlowStatusSelect/index.js +22 -0
  31. package/dist/esm/components/Handler/index.d.ts +13 -2
  32. package/dist/esm/components/Handler/index.js +21 -1
  33. package/dist/esm/components/Input/index.d.ts +7 -1
  34. package/dist/esm/components/Input/index.js +15 -1
  35. package/dist/esm/components/JstItemSelect/index.d.ts +7 -1
  36. package/dist/esm/components/JstItemSelect/index.js +32 -1
  37. package/dist/esm/components/JstLogistics/index.d.ts +17 -1
  38. package/dist/esm/components/JstLogistics/index.js +34 -1
  39. package/dist/esm/components/JstSendGood/index.d.ts +7 -1
  40. package/dist/esm/components/JstSendGood/index.js +32 -1
  41. package/dist/esm/components/JstSupply/index.d.ts +7 -1
  42. package/dist/esm/components/JstSupply/index.js +32 -1
  43. package/dist/esm/components/Logistics/index.d.ts +12 -1
  44. package/dist/esm/components/Logistics/index.js +7 -0
  45. package/dist/esm/components/MultSelect/index.d.ts +8 -1
  46. package/dist/esm/components/MultSelect/index.js +18 -1
  47. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +7 -1
  48. package/dist/esm/components/Ordinary/OrdinaryHeader.js +13 -1
  49. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +7 -1
  50. package/dist/esm/components/Ordinary/OrdinaryMoney.js +13 -1
  51. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +7 -1
  52. package/dist/esm/components/Ordinary/OrdinarySerial.js +13 -1
  53. package/dist/esm/components/Ordinary/index.d.ts +7 -1
  54. package/dist/esm/components/Ordinary/index.js +5 -0
  55. package/dist/esm/components/Payment/AlipayNick.d.ts +7 -1
  56. package/dist/esm/components/Payment/AlipayNick.js +13 -1
  57. package/dist/esm/components/Payment/AlipayNo.d.ts +7 -1
  58. package/dist/esm/components/Payment/AlipayNo.js +13 -1
  59. package/dist/esm/components/Payment/AlipayTime.d.ts +7 -1
  60. package/dist/esm/components/Payment/AlipayTime.js +14 -1
  61. package/dist/esm/components/Payment/BuyerNick.d.ts +7 -1
  62. package/dist/esm/components/Payment/BuyerNick.js +13 -1
  63. package/dist/esm/components/Payment/PaymentAmount.d.ts +7 -1
  64. package/dist/esm/components/Payment/PaymentAmount.js +13 -1
  65. package/dist/esm/components/Payment/PaymentStatus.d.ts +15 -1
  66. package/dist/esm/components/Payment/PaymentStatus.js +37 -1
  67. package/dist/esm/components/Payment/PaymentTid.d.ts +7 -1
  68. package/dist/esm/components/Payment/PaymentTid.js +13 -1
  69. package/dist/esm/components/Payment/index.d.ts +16 -1
  70. package/dist/esm/components/Payment/index.js +5 -0
  71. package/dist/esm/components/Picture/index.d.ts +5 -0
  72. package/dist/esm/components/Picture/index.js +3 -0
  73. package/dist/esm/components/PlatForm/index.d.ts +9 -2
  74. package/dist/esm/components/PlatForm/index.js +19 -3
  75. package/dist/esm/components/Radio/index.d.ts +8 -1
  76. package/dist/esm/components/Radio/index.js +20 -1
  77. package/dist/esm/components/ReceiverMobile/index.d.ts +7 -1
  78. package/dist/esm/components/ReceiverMobile/index.js +15 -1
  79. package/dist/esm/components/ReceiverName/index.d.ts +7 -1
  80. package/dist/esm/components/ReceiverName/index.js +15 -1
  81. package/dist/esm/components/Remark/index.d.ts +7 -1
  82. package/dist/esm/components/Remark/index.js +15 -1
  83. package/dist/esm/components/ReturnLogistics/index.d.ts +12 -1
  84. package/dist/esm/components/ReturnLogistics/index.js +7 -0
  85. package/dist/esm/components/Select/index.d.ts +8 -1
  86. package/dist/esm/components/Select/index.js +17 -1
  87. package/dist/esm/components/ShopInput/index.d.ts +11 -2
  88. package/dist/esm/components/ShopInput/index.js +26 -1
  89. package/dist/esm/components/ShopName/index.d.ts +7 -1
  90. package/dist/esm/components/ShopName/index.js +15 -1
  91. package/dist/esm/components/Submitter/index.d.ts +13 -2
  92. package/dist/esm/components/Submitter/index.js +20 -1
  93. package/dist/esm/components/SystemOrderNo/index.d.ts +7 -1
  94. package/dist/esm/components/SystemOrderNo/index.js +15 -1
  95. package/dist/esm/components/TemplateSelect/index.d.ts +8 -1
  96. package/dist/esm/components/TemplateSelect/index.js +17 -0
  97. package/dist/esm/components/TextArea/index.d.ts +7 -1
  98. package/dist/esm/components/TextArea/index.js +15 -1
  99. package/dist/esm/components/ThirdItemSelect/index.d.ts +7 -1
  100. package/dist/esm/components/ThirdItemSelect/index.js +21 -1
  101. package/dist/esm/components/TradeDateTime/index.d.ts +8 -1
  102. package/dist/esm/components/TradeDateTime/index.js +31 -1
  103. package/dist/esm/components/TradeId/index.d.ts +7 -1
  104. package/dist/esm/components/TradeId/index.js +15 -1
  105. package/dist/esm/components/WorkOrderId/index.d.ts +7 -1
  106. package/dist/esm/components/WorkOrderId/index.js +15 -0
  107. package/dist/esm/type.d.ts +21 -0
  108. package/package.json +3 -3
@@ -10,7 +10,7 @@ import React from 'react';
10
10
  import GetFormItem from "../GetFormItem";
11
11
  import Header from "../OrdinaryHeader";
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 OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options) {
15
15
  var _this = this;
16
16
  _classCallCheck(this, OrdinaryHeader);
@@ -56,6 +56,18 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
56
56
  }))
57
57
  });
58
58
  });
59
+ _defineProperty(this, "filterConfig", function (item) {
60
+ return {
61
+ id: "".concat(item.id, "_ordinaryMoney"),
62
+ name: "".concat(item.name, "-\u5F00\u7968\u91D1\u989D"),
63
+ filterComponentType: 'Input',
64
+ filterFn: function filterFn(value) {
65
+ return function (i) {
66
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryMoney')).includes(value);
67
+ };
68
+ }
69
+ };
70
+ });
59
71
  this.name = '发票抬头';
60
72
  this.id = "".concat(options.id, "_ordinaryTaitou");
61
73
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ALignType } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  declare class OrdinaryMoney implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -17,5 +17,11 @@ declare class OrdinaryMoney implements ComponentInterface {
17
17
  renderExport: (value: any) => any;
18
18
  renderClient: (record: any) => JSX.Element | null;
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
+ };
20
26
  }
21
27
  export default OrdinaryMoney;
@@ -9,7 +9,7 @@ import React from 'react';
9
9
  import GetFormItem from "../GetFormItem";
10
10
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
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 OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
14
14
  var _this = this;
15
15
  _classCallCheck(this, OrdinaryMoney);
@@ -49,6 +49,18 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
49
49
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
50
50
  });
51
51
  });
52
+ _defineProperty(this, "filterConfig", function (item) {
53
+ return {
54
+ id: "".concat(item.id, "_ordinaryTaitou"),
55
+ name: "".concat(item.name, "-\u53D1\u7968\u62AC\u5934"),
56
+ filterComponentType: 'Input',
57
+ filterFn: function filterFn(value) {
58
+ return function (i) {
59
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryTaitou')).includes(value);
60
+ };
61
+ }
62
+ };
63
+ });
52
64
  this.name = '开票金额';
53
65
  this.id = "".concat(options.id, "_ordinaryMoney");
54
66
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, ALignType } from '../../type';
2
+ import { ComponentInterface, PickOption, DataType, ALignType, Record, ColumnConfig } from '../../type';
3
3
  declare class OrdinarySerial implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -22,5 +22,11 @@ declare class OrdinarySerial implements ComponentInterface {
22
22
  renderPc: (value: any) => any;
23
23
  renderExport: (value: any) => any;
24
24
  editRender: () => JSX.Element;
25
+ filterConfig: (item: ColumnConfig) => {
26
+ id: string;
27
+ name: string;
28
+ filterComponentType: "Input";
29
+ filterFn: (value: string) => (i: Record) => boolean;
30
+ };
25
31
  }
26
32
  export default OrdinarySerial;
@@ -9,7 +9,7 @@ import React from 'react';
9
9
  import GetFormItem from "../GetFormItem";
10
10
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
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 OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options) {
14
14
  var _this = this;
15
15
  _classCallCheck(this, OrdinarySerial);
@@ -54,6 +54,18 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
54
54
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
55
55
  });
56
56
  });
57
+ _defineProperty(this, "filterConfig", function (item) {
58
+ return {
59
+ id: "".concat(item.id, "_ordinarySerial"),
60
+ name: "".concat(item.name, "-\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7"),
61
+ filterComponentType: 'Input',
62
+ filterFn: function filterFn(value) {
63
+ return function (i) {
64
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinarySerial')).includes(value);
65
+ };
66
+ }
67
+ };
68
+ });
57
69
  this.name = '纳税人识别号';
58
70
  this.id = "".concat(options.id, "_ordinarySerial");
59
71
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType } from '../../type';
2
+ import { ComponentInterface, PickOption, DataType, ColumnConfig } from '../../type';
3
3
  import OrdinaryHeader from './OrdinaryHeader';
4
4
  import OrdinaryMoney from './OrdinaryMoney';
5
5
  import OrdinarySerial from './OrdinarySerial';
@@ -25,5 +25,11 @@ declare class Ordinary implements ComponentInterface {
25
25
  renderPc: () => null;
26
26
  renderExport: () => null;
27
27
  renderClient: (record: any) => JSX.Element;
28
+ filterConfig: (item: ColumnConfig) => {
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "Input";
32
+ filterFn: (value: string) => (i: import("../../type").Record) => boolean;
33
+ }[];
28
34
  }
29
35
  export default Ordinary;
@@ -1,4 +1,6 @@
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; }
2
4
  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
5
  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
6
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -52,6 +54,9 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
52
54
  _defineProperty(this, "renderClient", function (record) {
53
55
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.ordinaryMoney.renderClient(record), _this.ordinaryHeader.renderClient(record), _this.ordinarySerial.renderClient(record));
54
56
  });
57
+ _defineProperty(this, "filterConfig", function (item) {
58
+ return [_this.ordinaryMoney.filterConfig(_objectSpread({}, item)), _this.ordinaryHeader.filterConfig(_objectSpread({}, item)), _this.ordinarySerial.filterConfig(_objectSpread({}, item))];
59
+ });
55
60
  this.name = options.name;
56
61
  this.id = options.id;
57
62
  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 PaymentTid implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -17,5 +17,11 @@ declare class PaymentTid implements ComponentInterface {
17
17
  renderPc: (value: any, record: Record) => JSX.Element;
18
18
  renderExport: (value: any, record: Record) => 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
+ };
20
26
  }
21
27
  export default PaymentTid;
@@ -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);
@@ -58,6 +58,18 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
58
58
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
59
59
  });
60
60
  });
61
+ _defineProperty(this, "filterConfig", function (item) {
62
+ return {
63
+ id: "".concat(item.id, "_enterprisePaymentAlipayNick"),
64
+ name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u59D3\u540D"),
65
+ filterComponentType: 'Input',
66
+ filterFn: function filterFn(value) {
67
+ return function (i) {
68
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentAlipayNick')).includes(value);
69
+ };
70
+ }
71
+ };
72
+ });
61
73
  this.name = '支付宝姓名';
62
74
  this.id = "".concat(options.id, "_enterprisePaymentAlipayNick");
63
75
  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 AlipayNo implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -17,5 +17,11 @@ declare class AlipayNo implements ComponentInterface {
17
17
  renderPc: (value: any, record: any) => JSX.Element;
18
18
  renderExport: (value: any, record: Record) => 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
+ };
20
26
  }
21
27
  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);
@@ -58,6 +58,18 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
58
58
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
59
59
  });
60
60
  });
61
+ _defineProperty(this, "filterConfig", function (item) {
62
+ return {
63
+ id: "".concat(item.id, "_enterprisePaymentAlipayNo"),
64
+ name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
65
+ filterComponentType: 'Input',
66
+ filterFn: function filterFn(value) {
67
+ return function (i) {
68
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentAlipayNo')).includes(value);
69
+ };
70
+ }
71
+ };
72
+ });
61
73
  this.name = '支付宝账号';
62
74
  this.id = "".concat(options.id, "_enterprisePaymentAlipayNo");
63
75
  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 AlipayTime implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -16,5 +16,11 @@ declare class AlipayTime implements ComponentInterface {
16
16
  renderPc: (value: any, record: Record) => JSX.Element;
17
17
  renderExport: (value: string) => string | null;
18
18
  editRender: () => JSX.Element;
19
+ filterConfig: (item: ColumnConfig) => {
20
+ id: string;
21
+ name: string;
22
+ filterComponentType: "Input";
23
+ filterFn: (value: string) => (i: Record) => any;
24
+ };
19
25
  }
20
26
  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);
@@ -56,6 +56,19 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
56
56
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
57
57
  });
58
58
  });
59
+ _defineProperty(this, "filterConfig", function (item) {
60
+ return {
61
+ id: "".concat(item.id, "_enterprisePaymentTime"),
62
+ name: "".concat(item.name, "-\u6253\u6B3E\u65F6\u95F4"),
63
+ filterComponentType: 'Input',
64
+ filterFn: function filterFn(value) {
65
+ return function (i) {
66
+ var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentTime');
67
+ return _filterFn.dateFilterFn(value, recordDateTime);
68
+ };
69
+ }
70
+ };
71
+ });
59
72
  this.name = '打款时间';
60
73
  this.id = "".concat(options.id, "_enterprisePaymentTime");
61
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 BuyerNick implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -17,5 +17,11 @@ declare class BuyerNick implements ComponentInterface {
17
17
  editRender: () => JSX.Element;
18
18
  renderPc: (value: any, record: Record) => JSX.Element;
19
19
  renderExport: (value: string) => string;
20
+ filterConfig: (item: ColumnConfig) => {
21
+ id: string;
22
+ name: string;
23
+ filterComponentType: "Input";
24
+ filterFn: (value: string) => (i: Record) => boolean;
25
+ };
20
26
  }
21
27
  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);
@@ -75,6 +75,18 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
75
75
  _defineProperty(this, "renderExport", function (value) {
76
76
  return value !== null && value !== void 0 ? value : '--';
77
77
  });
78
+ _defineProperty(this, "filterConfig", function (item) {
79
+ return {
80
+ id: "".concat(item.id, "_enterprisePaymentBuyerNick"),
81
+ name: "".concat(item.name, "-\u4E70\u5BB6\u6635\u79F0"),
82
+ filterComponentType: 'Input',
83
+ filterFn: function filterFn(value) {
84
+ return function (i) {
85
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentBuyerNick')).includes(value);
86
+ };
87
+ }
88
+ };
89
+ });
78
90
  this.name = '买家昵称';
79
91
  this.id = "".concat(options.id, "_enterprisePaymentBuyerNick");
80
92
  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 PaymentAmount implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -16,5 +16,11 @@ declare class PaymentAmount implements ComponentInterface {
16
16
  renderPc: (value: any, record: Record) => JSX.Element;
17
17
  renderExport: (value: string) => 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 PaymentAmount;
@@ -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 PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
14
14
  var _this = this;
15
15
  _classCallCheck(this, PaymentAmount);
@@ -48,6 +48,18 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
48
48
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
49
49
  });
50
50
  });
51
+ _defineProperty(this, "filterConfig", function (item) {
52
+ return {
53
+ id: "".concat(item.id, "_enterprisePaymentRefundFee"),
54
+ name: "".concat(item.name, "-\u6253\u6B3E\u91D1\u989D"),
55
+ filterComponentType: 'Input',
56
+ filterFn: function filterFn(value) {
57
+ return function (i) {
58
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentRefundFee')).includes(value);
59
+ };
60
+ }
61
+ };
62
+ });
51
63
  this.name = '打款金额';
52
64
  this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
53
65
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ALignType } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  declare class PaymentStatus implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -11,6 +11,10 @@ declare class PaymentStatus implements ComponentInterface {
11
11
  paymentStatus: {
12
12
  [prop in string]: string;
13
13
  };
14
+ paymentStatusOptions: {
15
+ label: string;
16
+ value: string;
17
+ }[];
14
18
  isCombinationComponent: boolean;
15
19
  children: ComponentInterface[];
16
20
  constructor(options: PickOption);
@@ -19,5 +23,15 @@ declare class PaymentStatus implements ComponentInterface {
19
23
  renderPc: (value: any, record: any) => any;
20
24
  renderExport: (value: any) => any;
21
25
  editRender: (value: any) => null;
26
+ filterConfig: (item: ColumnConfig) => {
27
+ id: string;
28
+ name: string;
29
+ filterComponentType: "MultipleSelect";
30
+ options: {
31
+ label: string;
32
+ value: string;
33
+ }[];
34
+ filterFn: (value: string) => (i: Record) => boolean;
35
+ };
22
36
  }
23
37
  export default PaymentStatus;
@@ -7,7 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
7
7
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
8
  import React from 'react';
9
9
  import ItemView from "../../commonComponents/ItemView";
10
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
10
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
11
11
  var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
12
12
  var _this = this;
13
13
  _classCallCheck(this, PaymentStatus);
@@ -19,6 +19,7 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
19
19
  _defineProperty(this, "align", void 0);
20
20
  _defineProperty(this, "width", void 0);
21
21
  _defineProperty(this, "paymentStatus", void 0);
22
+ _defineProperty(this, "paymentStatusOptions", void 0);
22
23
  _defineProperty(this, "isCombinationComponent", void 0);
23
24
  _defineProperty(this, "children", void 0);
24
25
  _defineProperty(this, "render", function (value) {
@@ -40,6 +41,19 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
40
41
  _defineProperty(this, "editRender", function (value) {
41
42
  return null;
42
43
  });
44
+ _defineProperty(this, "filterConfig", function (item) {
45
+ return {
46
+ id: "".concat(item.id, "_enterprisePaymentStatus"),
47
+ name: "".concat(item.name, "-\u6253\u6B3E\u72B6\u6001"),
48
+ filterComponentType: 'MultipleSelect',
49
+ options: _this.paymentStatusOptions,
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, 'enterprisePaymentStatus'));
53
+ };
54
+ }
55
+ };
56
+ });
43
57
  this.name = '打款状态';
44
58
  this.id = "".concat(options.id, "_enterprisePaymentStatus");
45
59
  this.type = options.type;
@@ -56,6 +70,28 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
56
70
  ALI_PAY_FAIL: '支付宝打款失败',
57
71
  ALI_PAY_CLOSE: '支付宝打款关闭'
58
72
  };
73
+ this.paymentStatusOptions = [{
74
+ label: '未打款',
75
+ value: '未打款'
76
+ }, {
77
+ label: '审核通过',
78
+ value: '审核通过'
79
+ }, {
80
+ label: '标记已打款',
81
+ value: '标记已打款'
82
+ }, {
83
+ label: '支付宝待付款',
84
+ value: '支付宝待付款'
85
+ }, {
86
+ label: '支付宝打款成功',
87
+ value: '支付宝打款成功'
88
+ }, {
89
+ label: '支付宝打款失败',
90
+ value: '支付宝打款失败'
91
+ }, {
92
+ label: '支付宝打款关闭',
93
+ value: '支付宝打款关闭'
94
+ }];
59
95
  this.isCombinationComponent = false;
60
96
  this.children = [];
61
97
  });
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ALignType } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  declare class PaymentTid implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -16,5 +16,11 @@ declare class PaymentTid implements ComponentInterface {
16
16
  renderPc: (value: any, record: any) => JSX.Element;
17
17
  renderExport: (value: string) => 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 PaymentTid;
@@ -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);
@@ -48,6 +48,18 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
48
48
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
49
49
  });
50
50
  });
51
+ _defineProperty(this, "filterConfig", function (item) {
52
+ return {
53
+ id: "".concat(item.id, "_enterprisePaymentTid"),
54
+ name: "".concat(item.name, "-\u8BA2\u5355\u7F16\u53F7"),
55
+ filterComponentType: 'Input',
56
+ filterFn: function filterFn(value) {
57
+ return function (i) {
58
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentTid'), value);
59
+ };
60
+ }
61
+ };
62
+ });
51
63
  this.name = '订单编号';
52
64
  this.id = "".concat(options.id, "_enterprisePaymentTid");
53
65
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig } from '../../type';
3
3
  import AlipayNick from './AlipayNick';
4
4
  import AlipayNo from './AlipayNo';
5
5
  import AlipayTime from './AlipayTime';
@@ -28,5 +28,20 @@ declare class Logistics implements ComponentInterface {
28
28
  renderPc: () => null;
29
29
  renderExport: () => null;
30
30
  editRender: (value: any) => JSX.Element;
31
+ filterConfig: (item: ColumnConfig) => ({
32
+ id: string;
33
+ name: string;
34
+ filterComponentType: "MultipleSelect";
35
+ options: {
36
+ label: string;
37
+ value: string;
38
+ }[];
39
+ filterFn: (value: string) => (i: import("../../type").Record) => boolean;
40
+ } | {
41
+ id: string;
42
+ name: string;
43
+ filterComponentType: "Input";
44
+ filterFn: (value: string) => (i: import("../../type").Record) => any;
45
+ })[];
31
46
  }
32
47
  export default Logistics;
@@ -1,4 +1,6 @@
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; }
2
4
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
5
  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); } }
4
6
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -57,6 +59,9 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
57
59
  }))
58
60
  });
59
61
  });
62
+ _defineProperty(this, "filterConfig", function (item) {
63
+ return [_this.alipayNick.filterConfig(_objectSpread({}, item)), _this.paymentAmount.filterConfig(_objectSpread({}, item)), _this.alipayNo.filterConfig(_objectSpread({}, item)), _this.buyerNick.filterConfig(_objectSpread({}, item)), _this.paymentTid.filterConfig(_objectSpread({}, item)), _this.paymentStatus.filterConfig(_objectSpread({}, item)), _this.payTime.filterConfig(_objectSpread({}, item))];
64
+ });
60
65
  this.name = options.name;
61
66
  this.id = options.id;
62
67
  this.type = options.type;
@@ -20,5 +20,10 @@ declare class BasicPicture implements ComponentInterface {
20
20
  * @returns 图片类型的导出需要在导出时单独处理
21
21
  */
22
22
  renderExport: () => null;
23
+ /**
24
+ *
25
+ * @returns 图片不支持过滤
26
+ */
27
+ filterConfig: () => never[];
23
28
  }
24
29
  export default BasicPicture;
@@ -92,6 +92,9 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
92
92
  _defineProperty(this, "renderExport", function () {
93
93
  return null;
94
94
  });
95
+ _defineProperty(this, "filterConfig", function () {
96
+ return [];
97
+ });
95
98
  this.name = options.name;
96
99
  this.id = options.id;
97
100
  this.type = options.type;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, Record } from '../../type';
2
+ import { ComponentInterface, ColumnConfig, Record } from '../../type';
3
3
  import { PlatData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class PlatForm implements ComponentInterface {
5
5
  name: string;
@@ -11,9 +11,16 @@ declare class PlatForm implements ComponentInterface {
11
11
  platInstance: PlatData;
12
12
  constructor();
13
13
  renderPc: (value: any, record: Record) => JSX.Element;
14
- renderExport: (value: any, record: Record) => any;
14
+ renderExport: (value: any, record: Record) => string;
15
15
  render: () => null;
16
16
  renderClient: () => null;
17
17
  editRender: () => null;
18
+ filterConfig: (item: ColumnConfig) => {
19
+ id: string;
20
+ name: string;
21
+ filterComponentType: "MultipleSelect";
22
+ filterFn: (value: string) => (i: Record) => boolean;
23
+ options: any;
24
+ };
18
25
  }
19
26
  export default PlatForm;