@kmkf-fe-packages/services-components 0.7.5-alpha.8 → 0.7.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 (132) hide show
  1. package/dist/esm/components/ActualPayment/index.d.ts +1 -7
  2. package/dist/esm/components/ActualPayment/index.js +2 -46
  3. package/dist/esm/components/Address/index.d.ts +3 -21
  4. package/dist/esm/components/Address/index.js +3 -35
  5. package/dist/esm/components/Alipay/index.d.ts +0 -3
  6. package/dist/esm/components/Alipay/index.js +0 -4
  7. package/dist/esm/components/AlipayAccount/index.d.ts +0 -3
  8. package/dist/esm/components/AlipayAccount/index.js +0 -6
  9. package/dist/esm/components/AlipayName/index.d.ts +0 -3
  10. package/dist/esm/components/AlipayName/index.js +0 -6
  11. package/dist/esm/components/BuyerNick/index.d.ts +0 -3
  12. package/dist/esm/components/BuyerNick/index.js +0 -6
  13. package/dist/esm/components/Cascader/index.d.ts +1 -12
  14. package/dist/esm/components/Cascader/index.js +8 -35
  15. package/dist/esm/components/Checkbox/index.d.ts +1 -6
  16. package/dist/esm/components/Checkbox/index.js +5 -13
  17. package/dist/esm/components/CommonDataTime/index.d.ts +0 -4
  18. package/dist/esm/components/CommonDataTime/index.js +0 -13
  19. package/dist/esm/components/CompletedUser/index.d.ts +4 -9
  20. package/dist/esm/components/CompletedUser/index.js +1 -9
  21. package/dist/esm/components/DataTime/index.d.ts +8 -3
  22. package/dist/esm/components/DataTime/index.js +4 -24
  23. package/dist/esm/components/EItemEnCode/index.d.ts +0 -3
  24. package/dist/esm/components/EItemEnCode/index.js +1 -7
  25. package/dist/esm/components/EItemId/index.d.ts +0 -3
  26. package/dist/esm/components/EItemId/index.js +1 -7
  27. package/dist/esm/components/EItemSelect/index.d.ts +0 -2
  28. package/dist/esm/components/EItemSelect/index.js +0 -4
  29. package/dist/esm/components/ErpTradeId/index.d.ts +0 -4
  30. package/dist/esm/components/ErpTradeId/index.js +1 -10
  31. package/dist/esm/components/Express/index.d.ts +1 -6
  32. package/dist/esm/components/Express/index.js +1 -9
  33. package/dist/esm/components/ExpressCode/index.d.ts +0 -3
  34. package/dist/esm/components/ExpressCode/index.js +0 -6
  35. package/dist/esm/components/FlowStatusSelect/index.d.ts +4 -9
  36. package/dist/esm/components/FlowStatusSelect/index.js +6 -14
  37. package/dist/esm/components/Grade/index.d.ts +0 -2
  38. package/dist/esm/components/Grade/index.js +0 -4
  39. package/dist/esm/components/Handler/index.d.ts +4 -9
  40. package/dist/esm/components/Handler/index.js +1 -9
  41. package/dist/esm/components/Input/index.d.ts +0 -3
  42. package/dist/esm/components/Input/index.js +1 -7
  43. package/dist/esm/components/JstItemSelect/index.d.ts +0 -3
  44. package/dist/esm/components/JstItemSelect/index.js +15 -23
  45. package/dist/esm/components/JstLogistics/index.d.ts +2 -8
  46. package/dist/esm/components/JstLogistics/index.js +1 -10
  47. package/dist/esm/components/JstSendGood/index.d.ts +0 -3
  48. package/dist/esm/components/JstSendGood/index.js +0 -7
  49. package/dist/esm/components/JstSupply/index.d.ts +0 -3
  50. package/dist/esm/components/JstSupply/index.js +0 -7
  51. package/dist/esm/components/Logistics/index.d.ts +1 -7
  52. package/dist/esm/components/Logistics/index.js +0 -4
  53. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -3
  54. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +0 -4
  55. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +5 -10
  56. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +1 -9
  57. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +5 -10
  58. package/dist/esm/components/LogisticsInterception/InterceptType.js +1 -9
  59. package/dist/esm/components/LogisticsInterception/index.d.ts +5 -14
  60. package/dist/esm/components/LogisticsInterception/index.js +0 -4
  61. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +0 -2
  62. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +0 -4
  63. package/dist/esm/components/MultSelect/index.d.ts +1 -6
  64. package/dist/esm/components/MultSelect/index.js +2 -10
  65. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +0 -3
  66. package/dist/esm/components/Ordinary/OrdinaryHeader.js +3 -9
  67. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +1 -7
  68. package/dist/esm/components/Ordinary/OrdinaryMoney.js +4 -48
  69. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +0 -3
  70. package/dist/esm/components/Ordinary/OrdinarySerial.js +0 -6
  71. package/dist/esm/components/Ordinary/index.d.ts +2 -12
  72. package/dist/esm/components/Ordinary/index.js +0 -4
  73. package/dist/esm/components/Payment/AlipayNick.d.ts +0 -3
  74. package/dist/esm/components/Payment/AlipayNick.js +0 -6
  75. package/dist/esm/components/Payment/AlipayNo.d.ts +0 -3
  76. package/dist/esm/components/Payment/AlipayNo.js +0 -6
  77. package/dist/esm/components/Payment/AlipayTime.d.ts +0 -4
  78. package/dist/esm/components/Payment/AlipayTime.js +0 -13
  79. package/dist/esm/components/Payment/BuyerNick.d.ts +0 -3
  80. package/dist/esm/components/Payment/BuyerNick.js +0 -6
  81. package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -7
  82. package/dist/esm/components/Payment/PaymentAmount.js +1 -45
  83. package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -9
  84. package/dist/esm/components/Payment/PaymentStatus.js +1 -9
  85. package/dist/esm/components/Payment/PaymentTid.d.ts +0 -4
  86. package/dist/esm/components/Payment/PaymentTid.js +0 -9
  87. package/dist/esm/components/Payment/index.d.ts +4 -34
  88. package/dist/esm/components/Payment/index.js +0 -4
  89. package/dist/esm/components/Picture/index.d.ts +0 -2
  90. package/dist/esm/components/Picture/index.js +0 -4
  91. package/dist/esm/components/PlatForm/index.d.ts +1 -4
  92. package/dist/esm/components/PlatForm/index.js +0 -6
  93. package/dist/esm/components/Radio/index.d.ts +1 -6
  94. package/dist/esm/components/Radio/index.js +5 -13
  95. package/dist/esm/components/Rate/index.d.ts +0 -2
  96. package/dist/esm/components/Rate/index.js +0 -4
  97. package/dist/esm/components/ReceiverAddress/index.d.ts +1 -3
  98. package/dist/esm/components/ReceiverAddress/index.js +0 -4
  99. package/dist/esm/components/ReceiverMobile/index.d.ts +0 -3
  100. package/dist/esm/components/ReceiverMobile/index.js +1 -7
  101. package/dist/esm/components/ReceiverName/index.d.ts +0 -3
  102. package/dist/esm/components/ReceiverName/index.js +1 -7
  103. package/dist/esm/components/Remark/index.d.ts +0 -3
  104. package/dist/esm/components/Remark/index.js +1 -7
  105. package/dist/esm/components/ReturnLogistics/index.d.ts +1 -7
  106. package/dist/esm/components/ReturnLogistics/index.js +0 -4
  107. package/dist/esm/components/Select/index.d.ts +1 -6
  108. package/dist/esm/components/Select/index.js +2 -10
  109. package/dist/esm/components/ShopInput/index.d.ts +2 -8
  110. package/dist/esm/components/ShopInput/index.js +2 -19
  111. package/dist/esm/components/ShopName/index.d.ts +0 -3
  112. package/dist/esm/components/ShopName/index.js +1 -7
  113. package/dist/esm/components/Submitter/index.d.ts +4 -10
  114. package/dist/esm/components/Submitter/index.js +1 -17
  115. package/dist/esm/components/SystemOrderNo/index.d.ts +0 -4
  116. package/dist/esm/components/SystemOrderNo/index.js +1 -10
  117. package/dist/esm/components/TemplateSelect/index.d.ts +0 -3
  118. package/dist/esm/components/TemplateSelect/index.js +0 -6
  119. package/dist/esm/components/TextArea/index.d.ts +0 -3
  120. package/dist/esm/components/TextArea/index.js +1 -7
  121. package/dist/esm/components/ThirdItemSelect/index.d.ts +0 -3
  122. package/dist/esm/components/ThirdItemSelect/index.js +1 -7
  123. package/dist/esm/components/TradeDateTime/index.d.ts +0 -4
  124. package/dist/esm/components/TradeDateTime/index.js +2 -16
  125. package/dist/esm/components/TradeId/index.d.ts +0 -4
  126. package/dist/esm/components/TradeId/index.js +1 -10
  127. package/dist/esm/components/WorkOrderId/index.d.ts +0 -3
  128. package/dist/esm/components/WorkOrderId/index.js +3 -15
  129. package/dist/esm/type.d.ts +2 -10
  130. package/package.json +4 -4
  131. package/dist/esm/constant.d.ts +0 -14
  132. package/dist/esm/constant.js +0 -14
@@ -11,19 +11,16 @@ import { ApaasCheckbox } from '@kmkf-fe-packages/basic-components';
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
13
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
- import { SYMBOL } from "../../constant";
15
14
  var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
16
15
  var _this = this,
17
16
  _options$componentCon;
18
17
  _classCallCheck(this, BasicCheckbox);
19
18
  _defineProperty(this, "name", void 0);
20
19
  _defineProperty(this, "id", void 0);
21
- _defineProperty(this, "sortField", void 0);
22
20
  _defineProperty(this, "type", void 0);
23
21
  _defineProperty(this, "rules", void 0);
24
22
  _defineProperty(this, "componentConfig", void 0);
25
23
  _defineProperty(this, "isCombinationComponent", void 0);
26
- _defineProperty(this, "canSort", void 0);
27
24
  _defineProperty(this, "children", void 0);
28
25
  _defineProperty(this, "getValue", function (value) {
29
26
  var _value$value, _value$value2, _value$value3;
@@ -88,19 +85,16 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
88
85
  _defineProperty(this, "filterConfig", function (item) {
89
86
  var _item$config, _item$config2, _item$config2$options, _item$config3;
90
87
  return {
91
- searchDefaultConditions: SYMBOL.in,
92
88
  type: item.type,
93
- id: "".concat(item.id, "_checkbox"),
89
+ id: item.id,
94
90
  // 过滤组件id
95
91
  name: item.name,
96
92
  // 过滤组件名称
97
93
  filterComponentType: 'MultipleSelect',
98
- props: {
99
- 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({
100
- label: '其他',
101
- value: '其他'
102
- }) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || []
103
- },
94
+ 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({
95
+ label: '其他',
96
+ value: '其他'
97
+ }) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || [],
104
98
  filterFn: function filterFn(value) {
105
99
  return function (i) {
106
100
  return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'checkbox')).length > 0;
@@ -110,10 +104,8 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
110
104
  });
111
105
  this.name = options.name;
112
106
  this.id = options.id;
113
- this.sortField = "".concat(options.id, "_checkbox");
114
107
  this.type = options.type;
115
108
  this.isCombinationComponent = false;
116
- this.canSort = true;
117
109
  this.children = [];
118
110
  this.componentConfig = options.componentConfig;
119
111
  this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
@@ -6,12 +6,10 @@ import React from 'react';
6
6
  declare class CommonDataTime implements ComponentInterface {
7
7
  name: string;
8
8
  id: string;
9
- sortField: string;
10
9
  type: string;
11
10
  rules: any[];
12
11
  componentConfig: ComponentInterface["componentConfig"];
13
12
  isCombinationComponent: boolean;
14
- canSort: boolean;
15
13
  children: ComponentInterface[];
16
14
  constructor(options: PickOption);
17
15
  getValue: (value: string) => string;
@@ -22,13 +20,11 @@ declare class CommonDataTime implements ComponentInterface {
22
20
  renderExport: (value: any, record: Record) => string;
23
21
  editRender: () => null;
24
22
  filterConfig: (item: ColumnConfig) => {
25
- searchDefaultConditions: "between";
26
23
  type: string;
27
24
  id: string;
28
25
  name: string;
29
26
  filterComponentType: "Date";
30
27
  filterFn: (value: string[]) => (i: Record) => boolean;
31
- formatFilterValue: (val: Array<any>) => number[] | undefined;
32
28
  };
33
29
  }
34
30
  export default CommonDataTime;
@@ -9,7 +9,6 @@ import React from 'react';
9
9
  import moment from 'moment';
10
10
  import ItemView from "../../commonComponents/ItemView";
11
11
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
12
- import { SYMBOL } from "../../constant";
13
12
 
14
13
  /**
15
14
  * 针对完成时间、创建时间、修改时间定义了3中类型
@@ -19,12 +18,10 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
19
18
  _classCallCheck(this, CommonDataTime);
20
19
  _defineProperty(this, "name", void 0);
21
20
  _defineProperty(this, "id", void 0);
22
- _defineProperty(this, "sortField", void 0);
23
21
  _defineProperty(this, "type", void 0);
24
22
  _defineProperty(this, "rules", void 0);
25
23
  _defineProperty(this, "componentConfig", void 0);
26
24
  _defineProperty(this, "isCombinationComponent", void 0);
27
- _defineProperty(this, "canSort", void 0);
28
25
  _defineProperty(this, "children", void 0);
29
26
  _defineProperty(this, "getValue", function (value) {
30
27
  return moment(value).format('YYYY-MM-DD HH:mm:ss');
@@ -60,7 +57,6 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
60
57
  });
61
58
  _defineProperty(this, "filterConfig", function (item) {
62
59
  return {
63
- searchDefaultConditions: SYMBOL.between,
64
60
  type: item.type,
65
61
  id: item.id,
66
62
  // 过滤组件id
@@ -72,24 +68,15 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
72
68
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, '');
73
69
  return _filterFn.filterDateFn(value, recordDateTime);
74
70
  };
75
- },
76
- formatFilterValue: function formatFilterValue(val) {
77
- if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
78
- return val === null || val === void 0 ? void 0 : val.map(function (v) {
79
- return moment(v).valueOf();
80
- });
81
- }
82
71
  }
83
72
  };
84
73
  });
85
74
  this.name = options.name;
86
75
  this.id = options.id;
87
- this.sortField = options.id;
88
76
  this.type = options.type;
89
77
  this.componentConfig = options.componentConfig;
90
78
  this.rules = [];
91
79
  this.isCombinationComponent = false;
92
- this.canSort = true;
93
80
  this.children = [];
94
81
  });
95
82
  export default CommonDataTime;
@@ -3,12 +3,10 @@ import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type
3
3
  declare class CompletedUser implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  componentConfig: ComponentInterface["componentConfig"];
9
8
  effects: ComponentInterface["effects"];
10
9
  isCombinationComponent: boolean;
11
- canSort: boolean;
12
10
  children: ComponentInterface[];
13
11
  constructor(options: PickOption);
14
12
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -18,17 +16,14 @@ declare class CompletedUser implements ComponentInterface {
18
16
  renderClient: () => null;
19
17
  editRender: () => null;
20
18
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
22
19
  type: string;
23
20
  id: string;
24
21
  name: string;
25
22
  filterComponentType: "MultipleSelect";
26
- props: {
27
- options: {
28
- label: string;
29
- value: string;
30
- }[];
31
- };
23
+ options: {
24
+ label: string;
25
+ value: string;
26
+ }[];
32
27
  filterFn: (value: string) => (i: Record) => boolean;
33
28
  };
34
29
  }
@@ -7,18 +7,15 @@ 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 { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
10
- import { SYMBOL } from "../../constant";
11
10
  var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
12
11
  var _this = this;
13
12
  _classCallCheck(this, CompletedUser);
14
13
  _defineProperty(this, "name", void 0);
15
14
  _defineProperty(this, "id", void 0);
16
- _defineProperty(this, "sortField", void 0);
17
15
  _defineProperty(this, "type", void 0);
18
16
  _defineProperty(this, "componentConfig", void 0);
19
17
  _defineProperty(this, "effects", void 0);
20
18
  _defineProperty(this, "isCombinationComponent", void 0);
21
- _defineProperty(this, "canSort", void 0);
22
19
  _defineProperty(this, "children", void 0);
23
20
  _defineProperty(this, "renderPc", function (value, record) {
24
21
  var _record;
@@ -43,16 +40,13 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
43
40
  _defineProperty(this, "filterConfig", function (item) {
44
41
  var _this$effects;
45
42
  return {
46
- searchDefaultConditions: SYMBOL.in,
47
43
  type: item.type,
48
44
  id: item.id,
49
45
  // 过滤组件id
50
46
  name: item.name,
51
47
  // 过滤组件名称
52
48
  filterComponentType: 'MultipleSelect',
53
- props: {
54
- options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || []
55
- },
49
+ options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || [],
56
50
  filterFn: function filterFn(value) {
57
51
  return function (i) {
58
52
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
@@ -62,11 +56,9 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
62
56
  });
63
57
  this.name = "完成人";
64
58
  this.id = "completedUserName";
65
- this.sortField = "completedUserName";
66
59
  this.type = "COMPLETED_USER_INPUT";
67
60
  this.effects = options.effects;
68
61
  this.isCombinationComponent = false;
69
- this.canSort = true;
70
62
  this.children = [];
71
63
  });
72
64
  export default CompletedUser;
@@ -5,12 +5,10 @@ export declare const DateTime: ({ value, onChange, ...otherProps }: any) => Reac
5
5
  declare class BasicDataTime implements ComponentInterface {
6
6
  name: string;
7
7
  id: string;
8
- sortField: string;
9
8
  type: string;
10
9
  rules: any[];
11
10
  componentConfig: ComponentInterface["componentConfig"];
12
11
  isCombinationComponent: boolean;
13
- canSort: boolean;
14
12
  children: ComponentInterface[];
15
13
  constructor(options: PickOption);
16
14
  getValue: (value: Value) => string | undefined;
@@ -20,6 +18,13 @@ declare class BasicDataTime implements ComponentInterface {
20
18
  getComponentValue: (r: Record) => any;
21
19
  renderExport: (value: any, record: Record) => any;
22
20
  editRender: () => React.JSX.Element;
23
- filterConfig: (item: ColumnConfig) => any;
21
+ filterConfig: (item: ColumnConfig) => {
22
+ type: string;
23
+ id: string;
24
+ name: string;
25
+ filterComponentType: "Date";
26
+ options: any[];
27
+ filterFn: (value: string[]) => (i: Record) => boolean;
28
+ };
24
29
  }
25
30
  export default BasicDataTime;
@@ -15,7 +15,6 @@ import moment from 'moment';
15
15
  import GetFormItem from "../GetFormItem";
16
16
  import ItemView from "../../commonComponents/ItemView";
17
17
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
18
- import { SYMBOL } from "../../constant";
19
18
  export var DateTime = function DateTime(_ref) {
20
19
  var value = _ref.value,
21
20
  onChange = _ref.onChange,
@@ -35,12 +34,10 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
35
34
  _classCallCheck(this, BasicDataTime);
36
35
  _defineProperty(this, "name", void 0);
37
36
  _defineProperty(this, "id", void 0);
38
- _defineProperty(this, "sortField", void 0);
39
37
  _defineProperty(this, "type", void 0);
40
38
  _defineProperty(this, "rules", void 0);
41
39
  _defineProperty(this, "componentConfig", void 0);
42
40
  _defineProperty(this, "isCombinationComponent", void 0);
43
- _defineProperty(this, "canSort", void 0);
44
41
  _defineProperty(this, "children", void 0);
45
42
  _defineProperty(this, "getValue", function (value) {
46
43
  return Array.isArray(value) ? value.join('~') : value;
@@ -82,46 +79,29 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
82
79
  });
83
80
  });
84
81
  _defineProperty(this, "filterConfig", function (item) {
85
- var _item$config, _item$config2;
86
- var dateType = item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.dateType;
87
- var obj = {
88
- searchDefaultConditions: SYMBOL.between,
82
+ var _item$config;
83
+ return {
89
84
  type: item.type,
90
- id: "".concat(item.id, "_dateTime"),
85
+ id: item.id,
91
86
  // 过滤组件id
92
87
  name: item.name,
93
88
  // 过滤组件名称
94
89
  filterComponentType: 'Date',
95
- props: {
96
- options: (item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : _item$config2.options) || []
97
- },
90
+ options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [],
98
91
  filterFn: function filterFn(value) {
99
92
  return function (i) {
100
93
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'dateTime');
101
94
  return _filterFn.filterDateFn(value, recordDateTime);
102
95
  };
103
96
  }
104
- // TODO: 自定义时间类型特殊,不需要转换,直接使用 YYYY-MM-DD HH:mm:ss格式查询
105
- // formatFilterValue: (val: Array<any>) => {
106
- // if (val?.length > 0) {
107
- // return val?.map(v => moment(v).valueOf())
108
- // }
109
- // }
110
97
  };
111
-
112
- if (dateType !== null && dateType !== void 0 && dateType.includes('RANGE')) {
113
- obj.componentDataType = 'dateArray';
114
- }
115
- return obj;
116
98
  });
117
99
  this.name = options.name;
118
100
  this.id = options.id;
119
- this.sortField = "".concat(options.id, "_dateTime");
120
101
  this.type = options.type;
121
102
  this.componentConfig = options.componentConfig;
122
103
  this.rules = [];
123
104
  this.isCombinationComponent = false;
124
- this.canSort = true;
125
105
  this.children = [];
126
106
  });
127
107
  export default BasicDataTime;
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  declare class EItemEncode implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  rules: any[];
9
8
  componentConfig: ComponentInterface["componentConfig"];
10
9
  effects: ComponentInterface["effects"];
11
10
  isCombinationComponent: boolean;
12
- canSort: boolean;
13
11
  children: ComponentInterface[];
14
12
  constructor(options: PickOption);
15
13
  renderClient: (record: any) => React.JSX.Element | null;
@@ -19,7 +17,6 @@ declare class EItemEncode implements ComponentInterface {
19
17
  renderExport: (value: unknown, record: Record) => any;
20
18
  editRender: () => React.JSX.Element;
21
19
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "like";
23
20
  type: string;
24
21
  id: string;
25
22
  name: string;
@@ -12,20 +12,17 @@ import ItemEncode from "./ItemEncode";
12
12
  import { GoodImage } from "../Common";
13
13
  import ItemView from "../../commonComponents/ItemView";
14
14
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
- import { SYMBOL } from "../../constant";
16
15
  var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
17
16
  var _this = this,
18
17
  _this$componentConfig;
19
18
  _classCallCheck(this, EItemEncode);
20
19
  _defineProperty(this, "name", void 0);
21
20
  _defineProperty(this, "id", void 0);
22
- _defineProperty(this, "sortField", void 0);
23
21
  _defineProperty(this, "type", void 0);
24
22
  _defineProperty(this, "rules", void 0);
25
23
  _defineProperty(this, "componentConfig", void 0);
26
24
  _defineProperty(this, "effects", void 0);
27
25
  _defineProperty(this, "isCombinationComponent", void 0);
28
- _defineProperty(this, "canSort", void 0);
29
26
  _defineProperty(this, "children", void 0);
30
27
  _defineProperty(this, "renderClient", function (record) {
31
28
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -76,9 +73,8 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
76
73
  });
77
74
  _defineProperty(this, "filterConfig", function (item) {
78
75
  return {
79
- searchDefaultConditions: SYMBOL.like,
80
76
  type: item.type,
81
- id: "".concat(item.id, "_itemList"),
77
+ id: item.id,
82
78
  // 过滤组件id
83
79
  name: item.name,
84
80
  // 过滤组件名称
@@ -96,12 +92,10 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
96
92
  });
97
93
  this.name = options.name;
98
94
  this.id = options.id;
99
- this.sortField = "".concat(options.id, "_itemList");
100
95
  this.type = options.type;
101
96
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
102
97
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
103
98
  this.isCombinationComponent = false;
104
- this.canSort = true;
105
99
  this.children = [];
106
100
  this.rules = this !== null && this !== void 0 && (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
107
101
  required: true,
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  declare class EItemId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  rules: any[];
9
8
  componentConfig: ComponentInterface["componentConfig"];
10
9
  effects: ComponentInterface["effects"];
11
10
  isCombinationComponent: boolean;
12
- canSort: boolean;
13
11
  children: ComponentInterface[];
14
12
  constructor(options: PickOption);
15
13
  renderClient: (record: any) => React.JSX.Element | null;
@@ -19,7 +17,6 @@ declare class EItemId implements ComponentInterface {
19
17
  renderExport: (value: any, record: any) => any;
20
18
  editRender: () => React.JSX.Element;
21
19
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "like";
23
20
  type: string;
24
21
  id: string;
25
22
  name: string;
@@ -12,20 +12,17 @@ import ItemId from "./ItemId";
12
12
  import { GoodImage } from "../Common";
13
13
  import ItemView from "../../commonComponents/ItemView";
14
14
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
- import { SYMBOL } from "../../constant";
16
15
  var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
17
16
  var _this = this,
18
17
  _this$componentConfig2;
19
18
  _classCallCheck(this, EItemId);
20
19
  _defineProperty(this, "name", void 0);
21
20
  _defineProperty(this, "id", void 0);
22
- _defineProperty(this, "sortField", void 0);
23
21
  _defineProperty(this, "type", void 0);
24
22
  _defineProperty(this, "rules", void 0);
25
23
  _defineProperty(this, "componentConfig", void 0);
26
24
  _defineProperty(this, "effects", void 0);
27
25
  _defineProperty(this, "isCombinationComponent", void 0);
28
- _defineProperty(this, "canSort", void 0);
29
26
  _defineProperty(this, "children", void 0);
30
27
  _defineProperty(this, "renderClient", function (record) {
31
28
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -77,9 +74,8 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
77
74
  });
78
75
  _defineProperty(this, "filterConfig", function (item) {
79
76
  return {
80
- searchDefaultConditions: SYMBOL.like,
81
77
  type: item.type,
82
- id: "".concat(item.id, "_itemList"),
78
+ id: item.id,
83
79
  // 过滤组件id
84
80
  name: item.name,
85
81
  // 过滤组件名称
@@ -97,11 +93,9 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
97
93
  });
98
94
  this.name = options.name;
99
95
  this.id = options.id;
100
- this.sortField = "".concat(options.id, "_itemList");
101
96
  this.type = options.type;
102
97
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
103
98
  this.isCombinationComponent = false;
104
- this.canSort = true;
105
99
  this.children = [];
106
100
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
107
101
  this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
@@ -3,13 +3,11 @@ import React from "react";
3
3
  declare class EItemSelect implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  rules: any[];
9
8
  componentConfig: ComponentInterface["componentConfig"];
10
9
  effects: ComponentInterface["effects"];
11
10
  isCombinationComponent: boolean;
12
- canSort: boolean;
13
11
  children: ComponentInterface[];
14
12
  constructor(options: PickOption);
15
13
  renderClient: (record: any) => React.JSX.Element | null;
@@ -17,13 +17,11 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
17
17
  _classCallCheck(this, EItemSelect);
18
18
  _defineProperty(this, "name", void 0);
19
19
  _defineProperty(this, "id", void 0);
20
- _defineProperty(this, "sortField", void 0);
21
20
  _defineProperty(this, "type", void 0);
22
21
  _defineProperty(this, "rules", void 0);
23
22
  _defineProperty(this, "componentConfig", void 0);
24
23
  _defineProperty(this, "effects", void 0);
25
24
  _defineProperty(this, "isCombinationComponent", void 0);
26
- _defineProperty(this, "canSort", void 0);
27
25
  _defineProperty(this, "children", void 0);
28
26
  _defineProperty(this, "renderClient", function (record) {
29
27
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -75,13 +73,11 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
75
73
  });
76
74
  this.name = options.name;
77
75
  this.id = options.id;
78
- this.sortField = "".concat(options.id, "_itemList");
79
76
  this.type = options.type;
80
77
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
81
78
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
82
79
  this.rules = [];
83
80
  this.isCombinationComponent = false;
84
- this.canSort = true;
85
81
  this.children = [];
86
82
  });
87
83
  export default EItemSelect;
@@ -3,12 +3,10 @@ import React from 'react';
3
3
  declare class ErpTradeId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  rules: any[];
9
8
  componentConfig: ComponentInterface["componentConfig"];
10
9
  isCombinationComponent: boolean;
11
- canSort: boolean;
12
10
  children: ComponentInterface[];
13
11
  constructor(options: PickOption);
14
12
  renderClient: (record: any) => React.JSX.Element | null;
@@ -18,13 +16,11 @@ declare class ErpTradeId implements ComponentInterface {
18
16
  renderExport: (value: any, record: Record) => any;
19
17
  editRender: () => React.JSX.Element;
20
18
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
22
19
  type: string;
23
20
  id: string;
24
21
  name: string;
25
22
  filterComponentType: "Input";
26
23
  filterFn: (value: string) => (i: Record) => boolean;
27
- formatFilterValue: (input: string) => string[];
28
24
  };
29
25
  }
30
26
  export default ErpTradeId;
@@ -10,18 +10,15 @@ import { TradeId } from '@kmkf-fe-packages/basic-components';
10
10
  import GetFormItem from "../GetFormItem";
11
11
  import ItemView from "../../commonComponents/ItemView";
12
12
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
13
- import { SYMBOL } from "../../constant";
14
13
  var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
15
14
  var _this = this;
16
15
  _classCallCheck(this, ErpTradeId);
17
16
  _defineProperty(this, "name", void 0);
18
17
  _defineProperty(this, "id", void 0);
19
- _defineProperty(this, "sortField", void 0);
20
18
  _defineProperty(this, "type", void 0);
21
19
  _defineProperty(this, "rules", void 0);
22
20
  _defineProperty(this, "componentConfig", void 0);
23
21
  _defineProperty(this, "isCombinationComponent", void 0);
24
- _defineProperty(this, "canSort", void 0);
25
22
  _defineProperty(this, "children", void 0);
26
23
  _defineProperty(this, "renderClient", function (record) {
27
24
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -57,9 +54,8 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
57
54
  });
58
55
  _defineProperty(this, "filterConfig", function (item) {
59
56
  return {
60
- searchDefaultConditions: SYMBOL.in,
61
57
  type: item.type,
62
- id: "".concat(item.id, "_tradeId"),
58
+ id: item.id,
63
59
  // 过滤组件id
64
60
  name: item.name,
65
61
  // 过滤组件名称
@@ -68,20 +64,15 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
68
64
  return function (i) {
69
65
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
70
66
  };
71
- },
72
- formatFilterValue: function formatFilterValue(input) {
73
- return input.split(/[,|,]/);
74
67
  }
75
68
  };
76
69
  });
77
70
  this.name = options.name;
78
71
  this.id = options.id;
79
- this.sortField = "".concat(options.id, "_tradeId");
80
72
  this.type = options.type;
81
73
  this.componentConfig = options.componentConfig;
82
74
  this.rules = [];
83
75
  this.isCombinationComponent = false;
84
- this.canSort = true;
85
76
  this.children = [];
86
77
  });
87
78
  export default ErpTradeId;
@@ -4,7 +4,6 @@ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class Express implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
- sortField: string;
8
7
  type: string;
9
8
  rules: any[];
10
9
  componentConfig: ComponentInterface["componentConfig"];
@@ -12,7 +11,6 @@ declare class Express implements ComponentInterface {
12
11
  expressDateInstance: InstanceType<typeof ExpressData>;
13
12
  width: number;
14
13
  isCombinationComponent: boolean;
15
- canSort: boolean;
16
14
  children: ComponentInterface[];
17
15
  constructor(options: PickOption);
18
16
  renderClient: (record: any) => React.JSX.Element | null;
@@ -22,14 +20,11 @@ declare class Express implements ComponentInterface {
22
20
  renderExport: (value: string, record: Record) => any;
23
21
  editRender: () => React.JSX.Element;
24
22
  filterConfig: (item: ColumnConfig) => {
25
- searchDefaultConditions: "in";
26
23
  type: string;
27
24
  id: string;
28
25
  name: string;
29
26
  filterComponentType: "MultipleSelect";
30
- props: {
31
- options: any[];
32
- };
27
+ options: any[];
33
28
  filterFn: (value: string) => (i: Record) => boolean;
34
29
  };
35
30
  }
@@ -11,13 +11,11 @@ import GetFormItem from "../GetFormItem";
11
11
  import ExpressCompany from "../ExpressCompany";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
13
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
- import { SYMBOL } from "../../constant";
15
14
  var Express = /*#__PURE__*/_createClass(function Express(options) {
16
15
  var _this = this;
17
16
  _classCallCheck(this, Express);
18
17
  _defineProperty(this, "name", void 0);
19
18
  _defineProperty(this, "id", void 0);
20
- _defineProperty(this, "sortField", void 0);
21
19
  _defineProperty(this, "type", void 0);
22
20
  _defineProperty(this, "rules", void 0);
23
21
  _defineProperty(this, "componentConfig", void 0);
@@ -25,7 +23,6 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
25
23
  _defineProperty(this, "expressDateInstance", void 0);
26
24
  _defineProperty(this, "width", void 0);
27
25
  _defineProperty(this, "isCombinationComponent", void 0);
28
- _defineProperty(this, "canSort", void 0);
29
26
  _defineProperty(this, "children", void 0);
30
27
  _defineProperty(this, "renderClient", function (record) {
31
28
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -65,14 +62,11 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
65
62
  _defineProperty(this, "filterConfig", function (item) {
66
63
  var subKey = item.subKey;
67
64
  return {
68
- searchDefaultConditions: SYMBOL.in,
69
65
  type: item.type,
70
66
  id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
71
67
  name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
72
68
  filterComponentType: 'MultipleSelect',
73
- props: {
74
- options: _this.expressDateInstance.getExpressData() || []
75
- },
69
+ options: _this.expressDateInstance.getExpressData() || [],
76
70
  filterFn: function filterFn(value) {
77
71
  return function (i) {
78
72
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)));
@@ -82,7 +76,6 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
82
76
  });
83
77
  this.name = options.name;
84
78
  this.id = options.id;
85
- this.sortField = options.id;
86
79
  this.type = options.type;
87
80
  this.componentConfig = options.componentConfig;
88
81
  this.rules = [];
@@ -90,7 +83,6 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
90
83
  this.expressDateInstance = ExpressData.getInstance();
91
84
  this.width = 200;
92
85
  this.isCombinationComponent = false;
93
- this.canSort = true;
94
86
  this.children = [];
95
87
  });
96
88
  export default Express;