@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
@@ -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;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ import { ComponentInterface, ColumnConfig, Record } from '../../type';
3
+ import { PlatData } from '@kmkf-fe-packages/kmkf-utils';
4
+ declare class PlatForm implements ComponentInterface {
5
+ name: string;
6
+ id: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ isCombinationComponent: boolean;
10
+ children: ComponentInterface[];
11
+ platInstance: PlatData;
12
+ constructor();
13
+ renderPc: (value: any, record: Record) => JSX.Element;
14
+ renderExport: (value: any, record: Record) => string;
15
+ render: () => null;
16
+ renderClient: () => null;
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
+ };
25
+ }
26
+ export default PlatForm;
@@ -0,0 +1,62 @@
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 { PlatData, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
10
+ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
11
+ var _this = this;
12
+ _classCallCheck(this, PlatForm);
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, "isCombinationComponent", void 0);
18
+ _defineProperty(this, "children", void 0);
19
+ _defineProperty(this, "platInstance", void 0);
20
+ _defineProperty(this, "renderPc", function (value, record) {
21
+ var _platMap$record;
22
+ var platMap = _this.platInstance.getPlatMap();
23
+ return /*#__PURE__*/React.createElement("span", null, (_platMap$record = platMap === null || platMap === void 0 ? void 0 : platMap[record === null || record === void 0 ? void 0 : record["".concat(_this.id)]]) !== null && _platMap$record !== void 0 ? _platMap$record : '--');
24
+ });
25
+ _defineProperty(this, "renderExport", function (value, record) {
26
+ var _platMap$record2;
27
+ var platMap = _this.platInstance.getPlatMap();
28
+ return (_platMap$record2 = platMap === null || platMap === void 0 ? void 0 : platMap[record === null || record === void 0 ? void 0 : record["".concat(_this.id)]]) !== null && _platMap$record2 !== void 0 ? _platMap$record2 : '--';
29
+ });
30
+ _defineProperty(this, "render", function () {
31
+ return null;
32
+ });
33
+ _defineProperty(this, "renderClient", function () {
34
+ return null;
35
+ });
36
+ _defineProperty(this, "editRender", function () {
37
+ return null;
38
+ });
39
+ _defineProperty(this, "filterConfig", function (item) {
40
+ var platData = _this.platInstance.getPlatSelectList();
41
+ return {
42
+ id: item.id,
43
+ // 过滤组件id
44
+ name: item.name,
45
+ // 过滤组件名称
46
+ filterComponentType: 'MultipleSelect',
47
+ filterFn: function filterFn(value) {
48
+ return function (i) {
49
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
50
+ };
51
+ },
52
+ options: platData
53
+ };
54
+ });
55
+ this.name = "平台";
56
+ this.id = "platform";
57
+ this.type = "PLATFORM_INPUT";
58
+ this.isCombinationComponent = false;
59
+ this.children = [];
60
+ this.platInstance = PlatData.getInstance();
61
+ });
62
+ export default PlatForm;
@@ -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 type Value = {
4
4
  value?: string;
5
5
  other?: string;
@@ -18,5 +18,12 @@ declare class BasicRadio implements ComponentInterface {
18
18
  renderExport: (value: any, record: Record) => string;
19
19
  renderClient: (record: Record) => JSX.Element | null;
20
20
  editRender: () => JSX.Element;
21
+ filterConfig: (item: ColumnConfig) => {
22
+ id: string;
23
+ name: string;
24
+ filterComponentType: "MultipleSelect";
25
+ options: any[] | undefined;
26
+ filterFn: (value: string) => (i: Record) => boolean;
27
+ };
21
28
  }
22
29
  export default BasicRadio;
@@ -10,7 +10,7 @@ import React from 'react';
10
10
  import { ApaasSelect } 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
  import get from 'lodash/get';
15
15
  var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
16
16
  var _this = this,
@@ -59,6 +59,25 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
59
59
  }))
60
60
  });
61
61
  });
62
+ _defineProperty(this, "filterConfig", function (item) {
63
+ var _item$config, _item$config2, _item$config2$options, _item$config3;
64
+ return {
65
+ id: item.id,
66
+ // 过滤组件id
67
+ name: item.name,
68
+ // 过滤组件名称
69
+ filterComponentType: 'MultipleSelect',
70
+ options: item !== null && item !== void 0 && (_item$config = item.config) !== null && _item$config !== void 0 && _item$config.showOther ? item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : (_item$config2$options = _item$config2.options) === null || _item$config2$options === void 0 ? void 0 : _item$config2$options.concat({
71
+ label: '其他',
72
+ value: '其他'
73
+ }) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || [],
74
+ filterFn: function filterFn(value) {
75
+ return function (i) {
76
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'radio'));
77
+ };
78
+ } // 第一个为选中值,第二个参数为表格行记录值
79
+ };
80
+ });
62
81
  this.name = options.name;
63
82
  this.id = options.id;
64
83
  this.type = options.type;
@@ -22,5 +22,6 @@ declare class BasicRate implements ComponentInterface {
22
22
  renderPc: (value: any, record: Record) => JSX.Element | null;
23
23
  renderExport: (value: any, record: any) => any;
24
24
  editRender: () => JSX.Element;
25
+ filterConfig: () => never[];
25
26
  }
26
27
  export default BasicRate;
@@ -110,6 +110,9 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
110
110
  }))
111
111
  });
112
112
  });
113
+ _defineProperty(this, "filterConfig", function () {
114
+ return [];
115
+ });
113
116
  this.name = options.name;
114
117
  this.id = options.id;
115
118
  this.type = options.type;
@@ -22,5 +22,6 @@ declare class BasicInput implements ComponentInterface {
22
22
  renderExport: (value: any, record: any) => string;
23
23
  renderClient: (record: any) => JSX.Element | null;
24
24
  editRender: (value: any) => JSX.Element;
25
+ filterConfig: () => never[];
25
26
  }
26
27
  export default BasicInput;
@@ -93,6 +93,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
93
93
  component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
94
94
  });
95
95
  });
96
+ _defineProperty(this, "filterConfig", function () {
97
+ return [];
98
+ });
96
99
  this.name = options.name;
97
100
  this.id = options.id;
98
101
  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 ReceiverMobile implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -15,5 +15,11 @@ declare class ReceiverMobile implements ComponentInterface {
15
15
  renderPc: (value: any, record: Record) => JSX.Element;
16
16
  renderExport: (value: any, record: Record) => any;
17
17
  editRender: (value: any) => JSX.Element;
18
+ filterConfig: (item: ColumnConfig) => {
19
+ id: string;
20
+ name: string;
21
+ filterComponentType: "Input";
22
+ filterFn: (value: string) => (i: Record) => boolean;
23
+ };
18
24
  }
19
25
  export default ReceiverMobile;
@@ -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 ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options) {
15
15
  var _this = this;
16
16
  _classCallCheck(this, ReceiverMobile);
@@ -62,6 +62,20 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
62
62
  }))
63
63
  });
64
64
  });
65
+ _defineProperty(this, "filterConfig", function (item) {
66
+ return {
67
+ id: item.id,
68
+ // 过滤组件id
69
+ name: item.name,
70
+ // 过滤组件名称
71
+ filterComponentType: 'Input',
72
+ filterFn: function filterFn(value) {
73
+ return function (i) {
74
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'receiveMobile')).includes(value);
75
+ };
76
+ }
77
+ };
78
+ });
65
79
  this.name = options.name;
66
80
  this.id = options.id;
67
81
  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 ReceiverName implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -15,5 +15,11 @@ declare class ReceiverName implements ComponentInterface {
15
15
  renderPc: (value: any, record: Record) => JSX.Element;
16
16
  renderExport: (value: any, record: Record) => 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) => boolean;
23
+ };
18
24
  }
19
25
  export default ReceiverName;
@@ -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 ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
15
15
  var _this = this;
16
16
  _classCallCheck(this, ReceiverName);
@@ -59,6 +59,20 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
59
59
  }))
60
60
  });
61
61
  });
62
+ _defineProperty(this, "filterConfig", function (item) {
63
+ return {
64
+ id: item.id,
65
+ // 过滤组件id
66
+ name: item.name,
67
+ // 过滤组件名称
68
+ filterComponentType: 'Input',
69
+ filterFn: function filterFn(value) {
70
+ return function (i) {
71
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'receiveName')).includes(value);
72
+ };
73
+ }
74
+ };
75
+ });
62
76
  this.name = options.name;
63
77
  this.id = options.id;
64
78
  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 type Value = {
4
4
  flag?: number | string;
5
5
  remark?: string;
@@ -20,5 +20,11 @@ declare class ERemark implements ComponentInterface {
20
20
  renderPc: (value: unknown, record: Record) => JSX.Element;
21
21
  renderExport: (value: unknown, record: Record) => any;
22
22
  editRender: () => JSX.Element;
23
+ filterConfig: (item: ColumnConfig) => {
24
+ id: string;
25
+ name: string;
26
+ filterComponentType: "Input";
27
+ filterFn: (value: string) => (i: Record) => boolean;
28
+ };
23
29
  }
24
30
  export default ERemark;
@@ -16,7 +16,7 @@ import trade4 from "./flag/trade-icon-flag-4.png";
16
16
  import trade5 from "./flag/trade-icon-flag-5.png";
17
17
  import get from 'lodash/get';
18
18
  import ItemView from "../../commonComponents/ItemView";
19
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
19
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
20
20
  var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
21
21
  var _this = this,
22
22
  _this$componentConfig3;
@@ -72,6 +72,20 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
72
72
  component: /*#__PURE__*/React.createElement(Remark, _this.componentConfig)
73
73
  });
74
74
  });
75
+ _defineProperty(this, "filterConfig", function (item) {
76
+ return {
77
+ id: item.id,
78
+ // 过滤组件id
79
+ name: item.name,
80
+ // 过滤组件名称
81
+ filterComponentType: 'Input',
82
+ filterFn: function filterFn(value) {
83
+ return function (i) {
84
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'remark')).includes(value);
85
+ };
86
+ }
87
+ };
88
+ });
75
89
  this.name = options.name;
76
90
  this.id = options.id;
77
91
  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 { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  import Express from '../Express';
5
5
  import ExpressCode from '../ExpressCode';
@@ -25,5 +25,16 @@ declare class ReturnLogistics implements ComponentInterface {
25
25
  renderPc: () => null;
26
26
  renderExport: () => null;
27
27
  editRender: (value: any) => JSX.Element;
28
+ filterConfig: (item: ColumnConfig) => ({
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "MultipleSelect";
32
+ filterFn: (value: string) => (i: import("../../type").Record) => boolean;
33
+ } | {
34
+ id: string;
35
+ name: string;
36
+ filterComponentType: "Input";
37
+ filterFn: (value: string) => (i: import("../../type").Record) => boolean;
38
+ })[];
28
39
  }
29
40
  export default ReturnLogistics;
@@ -58,6 +58,13 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
58
58
  }))
59
59
  });
60
60
  });
61
+ _defineProperty(this, "filterConfig", function (item) {
62
+ return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
63
+ subKey: 'returnLogisticsCompany'
64
+ })), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
65
+ subKey: 'returnLogisticsCode'
66
+ }))];
67
+ });
61
68
  this.name = options.name;
62
69
  this.id = options.id;
63
70
  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 BasicSelect implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -14,5 +14,12 @@ declare class BasicSelect implements ComponentInterface {
14
14
  renderClient: (record: any) => JSX.Element | null;
15
15
  renderPc: (value: any, record: Record) => JSX.Element;
16
16
  renderExport: (value: any, record: Record) => any;
17
+ filterConfig: (item: ColumnConfig) => {
18
+ id: string;
19
+ name: string;
20
+ filterComponentType: "MultipleSelect";
21
+ options: any[];
22
+ filterFn: (value: string) => (i: Record) => boolean;
23
+ };
17
24
  }
18
25
  export default BasicSelect;
@@ -10,7 +10,7 @@ import React from 'react';
10
10
  import { ApaasSelect } 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 BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
15
15
  var _this = this;
16
16
  _classCallCheck(this, BasicSelect);
@@ -52,6 +52,22 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
52
52
  var _record2;
53
53
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_select")]) !== null && _record2 !== void 0 ? _record2 : '--';
54
54
  });
55
+ _defineProperty(this, "filterConfig", function (item) {
56
+ var _item$config;
57
+ return {
58
+ id: item.id,
59
+ // 过滤组件id
60
+ name: item.name,
61
+ // 过滤组件名称
62
+ filterComponentType: 'MultipleSelect',
63
+ options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [],
64
+ filterFn: function filterFn(value) {
65
+ return function (i) {
66
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'select'));
67
+ };
68
+ } // 第一个为选中值,第二个参数为表格行记录值
69
+ };
70
+ });
55
71
  this.name = options.name;
56
72
  this.id = options.id;
57
73
  this.type = options.type;