@kmkf-fe-packages/services-components 0.7.8 → 0.7.10

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 +11 -1
  2. package/dist/esm/components/ActualPayment/index.js +65 -2
  3. package/dist/esm/components/Address/index.d.ts +21 -3
  4. package/dist/esm/components/Address/index.js +35 -3
  5. package/dist/esm/components/Alipay/index.d.ts +3 -0
  6. package/dist/esm/components/Alipay/index.js +4 -0
  7. package/dist/esm/components/AlipayAccount/index.d.ts +3 -0
  8. package/dist/esm/components/AlipayAccount/index.js +6 -0
  9. package/dist/esm/components/AlipayName/index.d.ts +3 -0
  10. package/dist/esm/components/AlipayName/index.js +6 -0
  11. package/dist/esm/components/BuyerNick/index.d.ts +3 -0
  12. package/dist/esm/components/BuyerNick/index.js +6 -0
  13. package/dist/esm/components/Cascader/index.d.ts +12 -1
  14. package/dist/esm/components/Cascader/index.js +35 -8
  15. package/dist/esm/components/Checkbox/index.d.ts +6 -1
  16. package/dist/esm/components/Checkbox/index.js +13 -5
  17. package/dist/esm/components/CommonDataTime/index.d.ts +6 -2
  18. package/dist/esm/components/CommonDataTime/index.js +23 -4
  19. package/dist/esm/components/CompletedUser/index.d.ts +9 -4
  20. package/dist/esm/components/CompletedUser/index.js +9 -1
  21. package/dist/esm/components/DataTime/index.d.ts +3 -8
  22. package/dist/esm/components/DataTime/index.js +25 -4
  23. package/dist/esm/components/EItemEnCode/index.d.ts +3 -0
  24. package/dist/esm/components/EItemEnCode/index.js +7 -1
  25. package/dist/esm/components/EItemId/index.d.ts +3 -0
  26. package/dist/esm/components/EItemId/index.js +7 -1
  27. package/dist/esm/components/EItemSelect/index.d.ts +2 -0
  28. package/dist/esm/components/EItemSelect/index.js +4 -0
  29. package/dist/esm/components/ErpTradeId/index.d.ts +4 -0
  30. package/dist/esm/components/ErpTradeId/index.js +10 -1
  31. package/dist/esm/components/Express/index.d.ts +6 -1
  32. package/dist/esm/components/Express/index.js +9 -1
  33. package/dist/esm/components/ExpressCode/index.d.ts +3 -0
  34. package/dist/esm/components/ExpressCode/index.js +6 -0
  35. package/dist/esm/components/FlowStatusSelect/index.d.ts +9 -4
  36. package/dist/esm/components/FlowStatusSelect/index.js +14 -6
  37. package/dist/esm/components/Grade/index.d.ts +2 -0
  38. package/dist/esm/components/Grade/index.js +4 -0
  39. package/dist/esm/components/Handler/index.d.ts +9 -4
  40. package/dist/esm/components/Handler/index.js +9 -1
  41. package/dist/esm/components/Input/index.d.ts +3 -0
  42. package/dist/esm/components/Input/index.js +7 -1
  43. package/dist/esm/components/JstItemSelect/index.d.ts +3 -0
  44. package/dist/esm/components/JstItemSelect/index.js +23 -15
  45. package/dist/esm/components/JstLogistics/index.d.ts +8 -2
  46. package/dist/esm/components/JstLogistics/index.js +10 -1
  47. package/dist/esm/components/JstSendGood/index.d.ts +3 -0
  48. package/dist/esm/components/JstSendGood/index.js +7 -0
  49. package/dist/esm/components/JstSupply/index.d.ts +3 -0
  50. package/dist/esm/components/JstSupply/index.js +7 -0
  51. package/dist/esm/components/Logistics/index.d.ts +7 -1
  52. package/dist/esm/components/Logistics/index.js +4 -0
  53. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +3 -1
  54. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +4 -0
  55. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +11 -5
  56. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +18 -4
  57. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +11 -5
  58. package/dist/esm/components/LogisticsInterception/InterceptType.js +18 -4
  59. package/dist/esm/components/LogisticsInterception/index.d.ts +15 -5
  60. package/dist/esm/components/LogisticsInterception/index.js +4 -0
  61. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +2 -0
  62. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +4 -0
  63. package/dist/esm/components/MultSelect/index.d.ts +6 -1
  64. package/dist/esm/components/MultSelect/index.js +10 -2
  65. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -0
  66. package/dist/esm/components/Ordinary/OrdinaryHeader.js +9 -3
  67. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -1
  68. package/dist/esm/components/Ordinary/OrdinaryMoney.js +67 -4
  69. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -0
  70. package/dist/esm/components/Ordinary/OrdinarySerial.js +6 -0
  71. package/dist/esm/components/Ordinary/index.d.ts +19 -2
  72. package/dist/esm/components/Ordinary/index.js +4 -0
  73. package/dist/esm/components/Payment/AlipayNick.d.ts +3 -0
  74. package/dist/esm/components/Payment/AlipayNick.js +6 -0
  75. package/dist/esm/components/Payment/AlipayNo.d.ts +3 -0
  76. package/dist/esm/components/Payment/AlipayNo.js +6 -0
  77. package/dist/esm/components/Payment/AlipayTime.d.ts +6 -2
  78. package/dist/esm/components/Payment/AlipayTime.js +25 -8
  79. package/dist/esm/components/Payment/BuyerNick.d.ts +3 -0
  80. package/dist/esm/components/Payment/BuyerNick.js +6 -0
  81. package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -1
  82. package/dist/esm/components/Payment/PaymentAmount.js +64 -1
  83. package/dist/esm/components/Payment/PaymentStatus.d.ts +9 -4
  84. package/dist/esm/components/Payment/PaymentStatus.js +9 -1
  85. package/dist/esm/components/Payment/PaymentTid.d.ts +4 -0
  86. package/dist/esm/components/Payment/PaymentTid.js +9 -0
  87. package/dist/esm/components/Payment/index.d.ts +41 -4
  88. package/dist/esm/components/Payment/index.js +4 -0
  89. package/dist/esm/components/Picture/index.d.ts +2 -0
  90. package/dist/esm/components/Picture/index.js +4 -0
  91. package/dist/esm/components/PlatForm/index.d.ts +4 -1
  92. package/dist/esm/components/PlatForm/index.js +6 -0
  93. package/dist/esm/components/Radio/index.d.ts +6 -1
  94. package/dist/esm/components/Radio/index.js +13 -5
  95. package/dist/esm/components/Rate/index.d.ts +2 -0
  96. package/dist/esm/components/Rate/index.js +4 -0
  97. package/dist/esm/components/ReceiverAddress/index.d.ts +3 -1
  98. package/dist/esm/components/ReceiverAddress/index.js +4 -0
  99. package/dist/esm/components/ReceiverMobile/index.d.ts +3 -0
  100. package/dist/esm/components/ReceiverMobile/index.js +7 -1
  101. package/dist/esm/components/ReceiverName/index.d.ts +3 -0
  102. package/dist/esm/components/ReceiverName/index.js +7 -1
  103. package/dist/esm/components/Remark/index.d.ts +3 -0
  104. package/dist/esm/components/Remark/index.js +7 -1
  105. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -1
  106. package/dist/esm/components/ReturnLogistics/index.js +4 -0
  107. package/dist/esm/components/Select/index.d.ts +6 -1
  108. package/dist/esm/components/Select/index.js +10 -2
  109. package/dist/esm/components/ShopInput/index.d.ts +8 -2
  110. package/dist/esm/components/ShopInput/index.js +19 -2
  111. package/dist/esm/components/ShopName/index.d.ts +3 -0
  112. package/dist/esm/components/ShopName/index.js +7 -1
  113. package/dist/esm/components/Submitter/index.d.ts +10 -4
  114. package/dist/esm/components/Submitter/index.js +17 -1
  115. package/dist/esm/components/SystemOrderNo/index.d.ts +4 -0
  116. package/dist/esm/components/SystemOrderNo/index.js +10 -1
  117. package/dist/esm/components/TemplateSelect/index.d.ts +3 -0
  118. package/dist/esm/components/TemplateSelect/index.js +6 -0
  119. package/dist/esm/components/TextArea/index.d.ts +3 -0
  120. package/dist/esm/components/TextArea/index.js +7 -1
  121. package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -0
  122. package/dist/esm/components/ThirdItemSelect/index.js +7 -1
  123. package/dist/esm/components/TradeDateTime/index.d.ts +4 -0
  124. package/dist/esm/components/TradeDateTime/index.js +16 -2
  125. package/dist/esm/components/TradeId/index.d.ts +4 -0
  126. package/dist/esm/components/TradeId/index.js +10 -1
  127. package/dist/esm/components/WorkOrderId/index.d.ts +3 -0
  128. package/dist/esm/components/WorkOrderId/index.js +15 -3
  129. package/dist/esm/constant.d.ts +14 -0
  130. package/dist/esm/constant.js +14 -0
  131. package/dist/esm/type.d.ts +10 -2
  132. package/package.json +4 -4
@@ -4,6 +4,7 @@ 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;
7
8
  type: string;
8
9
  rules: any[];
9
10
  componentConfig: ComponentInterface["componentConfig"];
@@ -11,6 +12,7 @@ declare class Express implements ComponentInterface {
11
12
  expressDateInstance: InstanceType<typeof ExpressData>;
12
13
  width: number;
13
14
  isCombinationComponent: boolean;
15
+ canSort: boolean;
14
16
  children: ComponentInterface[];
15
17
  constructor(options: PickOption);
16
18
  renderClient: (record: any) => React.JSX.Element | null;
@@ -20,11 +22,14 @@ declare class Express implements ComponentInterface {
20
22
  renderExport: (value: string, record: Record) => any;
21
23
  editRender: () => React.JSX.Element;
22
24
  filterConfig: (item: ColumnConfig) => {
25
+ searchDefaultConditions: "in";
23
26
  type: string;
24
27
  id: string;
25
28
  name: string;
26
29
  filterComponentType: "MultipleSelect";
27
- options: any[];
30
+ props: {
31
+ options: any[];
32
+ };
28
33
  filterFn: (value: string) => (i: Record) => boolean;
29
34
  };
30
35
  }
@@ -11,11 +11,13 @@ 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";
14
15
  var Express = /*#__PURE__*/_createClass(function Express(options) {
15
16
  var _this = this;
16
17
  _classCallCheck(this, Express);
17
18
  _defineProperty(this, "name", void 0);
18
19
  _defineProperty(this, "id", void 0);
20
+ _defineProperty(this, "sortField", void 0);
19
21
  _defineProperty(this, "type", void 0);
20
22
  _defineProperty(this, "rules", void 0);
21
23
  _defineProperty(this, "componentConfig", void 0);
@@ -23,6 +25,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
23
25
  _defineProperty(this, "expressDateInstance", void 0);
24
26
  _defineProperty(this, "width", void 0);
25
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "canSort", void 0);
26
29
  _defineProperty(this, "children", void 0);
27
30
  _defineProperty(this, "renderClient", function (record) {
28
31
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -62,11 +65,14 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
62
65
  _defineProperty(this, "filterConfig", function (item) {
63
66
  var subKey = item.subKey;
64
67
  return {
68
+ searchDefaultConditions: SYMBOL.in,
65
69
  type: item.type,
66
70
  id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
67
71
  name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
68
72
  filterComponentType: 'MultipleSelect',
69
- options: _this.expressDateInstance.getExpressData() || [],
73
+ props: {
74
+ options: _this.expressDateInstance.getExpressData() || []
75
+ },
70
76
  filterFn: function filterFn(value) {
71
77
  return function (i) {
72
78
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)));
@@ -76,6 +82,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
76
82
  });
77
83
  this.name = options.name;
78
84
  this.id = options.id;
85
+ this.sortField = options.id;
79
86
  this.type = options.type;
80
87
  this.componentConfig = options.componentConfig;
81
88
  this.rules = [];
@@ -83,6 +90,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
83
90
  this.expressDateInstance = ExpressData.getInstance();
84
91
  this.width = 200;
85
92
  this.isCombinationComponent = false;
93
+ this.canSort = true;
86
94
  this.children = [];
87
95
  });
88
96
  export default Express;
@@ -3,12 +3,14 @@ import React from "react";
3
3
  declare class ExpressCode implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  rules: any[];
8
9
  componentConfig: ComponentInterface["componentConfig"];
9
10
  align: ALignType;
10
11
  width: number;
11
12
  isCombinationComponent: boolean;
13
+ canSort: boolean;
12
14
  children: ComponentInterface[];
13
15
  constructor(options: PickOption);
14
16
  renderClient: (record: any) => React.JSX.Element | null;
@@ -18,6 +20,7 @@ declare class ExpressCode implements ComponentInterface {
18
20
  renderExport: (value: string, record: Record) => any;
19
21
  editRender: () => React.JSX.Element;
20
22
  filterConfig: (item: ColumnConfig) => {
23
+ searchDefaultConditions: "like";
21
24
  type: string;
22
25
  id: string;
23
26
  name: string;
@@ -10,18 +10,21 @@ import { Input } from "antd";
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";
13
14
  var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
14
15
  var _this = this,
15
16
  _this$componentConfig5;
16
17
  _classCallCheck(this, ExpressCode);
17
18
  _defineProperty(this, "name", void 0);
18
19
  _defineProperty(this, "id", void 0);
20
+ _defineProperty(this, "sortField", void 0);
19
21
  _defineProperty(this, "type", void 0);
20
22
  _defineProperty(this, "rules", void 0);
21
23
  _defineProperty(this, "componentConfig", void 0);
22
24
  _defineProperty(this, "align", void 0);
23
25
  _defineProperty(this, "width", void 0);
24
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "canSort", void 0);
25
28
  _defineProperty(this, "children", void 0);
26
29
  _defineProperty(this, "renderClient", function (record) {
27
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -58,6 +61,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
58
61
  _defineProperty(this, "filterConfig", function (item) {
59
62
  var subKey = item.subKey;
60
63
  return {
64
+ searchDefaultConditions: SYMBOL.like,
61
65
  type: item.type,
62
66
  id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
63
67
  name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
@@ -71,6 +75,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
71
75
  });
72
76
  this.name = options.name;
73
77
  this.id = options.id;
78
+ this.sortField = options.id;
74
79
  this.type = options.type;
75
80
  this.componentConfig = options.componentConfig;
76
81
  this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
@@ -84,6 +89,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
84
89
  this.align = "left";
85
90
  this.width = 200;
86
91
  this.isCombinationComponent = false;
92
+ this.canSort = true;
87
93
  this.children = [];
88
94
  });
89
95
  export default ExpressCode;
@@ -3,12 +3,14 @@ import React from 'react';
3
3
  declare class WorkOrderId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  rules: any[];
8
9
  componentConfig: ComponentInterface["componentConfig"];
9
10
  effects: ComponentInterface["effects"];
10
11
  workOrderStatus: any;
11
12
  isCombinationComponent: boolean;
13
+ canSort: boolean;
12
14
  children: ComponentInterface[];
13
15
  constructor(options: PickOption);
14
16
  renderMenu: (record: Record) => React.JSX.Element;
@@ -19,14 +21,17 @@ declare class WorkOrderId implements ComponentInterface {
19
21
  renderClient: () => null;
20
22
  editRender: () => React.JSX.Element;
21
23
  filterConfig: (item: ColumnConfig) => {
24
+ searchDefaultConditions: "in";
22
25
  type: string;
23
26
  id: string;
24
27
  name: string;
25
28
  filterComponentType: "MultipleSelect";
26
- options: {
27
- label: any;
28
- value: string;
29
- }[];
29
+ props: {
30
+ options: {
31
+ label: any;
32
+ value: string;
33
+ }[];
34
+ };
30
35
  filterFn: (value: string[]) => (i: Record) => boolean;
31
36
  };
32
37
  }
@@ -12,17 +12,20 @@ import { ApaasSelect } from '@kmkf-fe-packages/basic-components';
12
12
  import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import get from 'lodash/get';
15
+ import { SYMBOL } from "../../constant";
15
16
  var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
16
17
  var _this = this;
17
18
  _classCallCheck(this, WorkOrderId);
18
19
  _defineProperty(this, "name", void 0);
19
20
  _defineProperty(this, "id", void 0);
21
+ _defineProperty(this, "sortField", void 0);
20
22
  _defineProperty(this, "type", void 0);
21
23
  _defineProperty(this, "rules", void 0);
22
24
  _defineProperty(this, "componentConfig", void 0);
23
25
  _defineProperty(this, "effects", void 0);
24
26
  _defineProperty(this, "workOrderStatus", void 0);
25
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "canSort", void 0);
26
29
  _defineProperty(this, "children", void 0);
27
30
  _defineProperty(this, "renderMenu", function (record) {
28
31
  var menu = /*#__PURE__*/React.createElement(Menu, {
@@ -84,18 +87,21 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
84
87
  _defineProperty(this, "filterConfig", function (item) {
85
88
  var _Object$keys;
86
89
  return {
90
+ searchDefaultConditions: SYMBOL.in,
87
91
  type: item.type,
88
92
  id: item.id,
89
93
  // 过滤组件id
90
94
  name: item.name,
91
95
  // 过滤组件名称
92
96
  filterComponentType: 'MultipleSelect',
93
- options: (_Object$keys = Object.keys(_this.workOrderStatus)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(function (item) {
94
- return {
95
- label: _this.workOrderStatus[item].label,
96
- value: item
97
- };
98
- }),
97
+ props: {
98
+ options: (_Object$keys = Object.keys(_this.workOrderStatus)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.map(function (item) {
99
+ return {
100
+ label: _this.workOrderStatus[item].label,
101
+ value: item
102
+ };
103
+ })
104
+ },
99
105
  filterFn: function filterFn(value) {
100
106
  return function (i) {
101
107
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
@@ -105,11 +111,13 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
105
111
  });
106
112
  this.name = options.name;
107
113
  this.id = options.id;
114
+ this.sortField = options.id;
108
115
  this.type = options.type;
109
116
  this.componentConfig = options.componentConfig;
110
117
  this.effects = options.effects;
111
118
  this.rules = [];
112
119
  this.isCombinationComponent = false;
120
+ this.canSort = true;
113
121
  this.children = [];
114
122
  this.workOrderStatus = {
115
123
  "WAITING": {
@@ -3,10 +3,12 @@ import React from 'react';
3
3
  declare class BasicGrade implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  rules: any[];
8
9
  componentConfig: ComponentInterface["componentConfig"];
9
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
10
12
  children: ComponentInterface[];
11
13
  constructor(options: PickOption);
12
14
  renderClient: (record: any) => React.JSX.Element | null;
@@ -15,10 +15,12 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
15
15
  _classCallCheck(this, BasicGrade);
16
16
  _defineProperty(this, "name", void 0);
17
17
  _defineProperty(this, "id", void 0);
18
+ _defineProperty(this, "sortField", void 0);
18
19
  _defineProperty(this, "type", void 0);
19
20
  _defineProperty(this, "rules", void 0);
20
21
  _defineProperty(this, "componentConfig", void 0);
21
22
  _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "canSort", void 0);
22
24
  _defineProperty(this, "children", void 0);
23
25
  _defineProperty(this, "renderClient", function (record) {
24
26
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -57,10 +59,12 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
57
59
  });
58
60
  this.name = options.name;
59
61
  this.id = options.id;
62
+ this.sortField = "".concat(options.id, "_basicGrade");
60
63
  this.type = options.type;
61
64
  this.componentConfig = options.componentConfig;
62
65
  this.rules = [];
63
66
  this.isCombinationComponent = false;
67
+ this.canSort = true;
64
68
  this.children = [];
65
69
  });
66
70
  export default BasicGrade;
@@ -3,10 +3,12 @@ import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type
3
3
  declare class Handler implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  componentConfig: ComponentInterface["componentConfig"];
8
9
  effects: ComponentInterface["effects"];
9
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
10
12
  children: ComponentInterface[];
11
13
  constructor(options: PickOption);
12
14
  renderPc: (v: unknown, record: Record) => React.JSX.Element;
@@ -18,14 +20,17 @@ declare class Handler implements ComponentInterface {
18
20
  renderClient: () => null;
19
21
  editRender: () => null;
20
22
  filterConfig: (item: ColumnConfig) => {
23
+ searchDefaultConditions: "in";
21
24
  type: string;
22
25
  id: string;
23
26
  name: string;
24
27
  filterComponentType: "MultipleSelect";
25
- options: {
26
- label: string;
27
- value: string;
28
- }[];
28
+ props: {
29
+ options: {
30
+ label: string;
31
+ value: string;
32
+ }[];
33
+ };
29
34
  filterFn: (value: string) => (i: Record) => boolean;
30
35
  };
31
36
  }
@@ -8,15 +8,18 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  import React from 'react';
9
9
  import intersection from 'lodash/intersection';
10
10
  import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
11
+ import { SYMBOL } from "../../constant";
11
12
  var Handler = /*#__PURE__*/_createClass(function Handler(options) {
12
13
  var _this = this;
13
14
  _classCallCheck(this, Handler);
14
15
  _defineProperty(this, "name", void 0);
15
16
  _defineProperty(this, "id", void 0);
17
+ _defineProperty(this, "sortField", void 0);
16
18
  _defineProperty(this, "type", void 0);
17
19
  _defineProperty(this, "componentConfig", void 0);
18
20
  _defineProperty(this, "effects", void 0);
19
21
  _defineProperty(this, "isCombinationComponent", void 0);
22
+ _defineProperty(this, "canSort", void 0);
20
23
  _defineProperty(this, "children", void 0);
21
24
  _defineProperty(this, "renderPc", function (v, record) {
22
25
  var _value$map$join, _value$map;
@@ -47,13 +50,16 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
47
50
  _defineProperty(this, "filterConfig", function (item) {
48
51
  var _this$effects;
49
52
  return {
53
+ searchDefaultConditions: SYMBOL.in,
50
54
  type: item.type,
51
55
  id: item.id,
52
56
  // 过滤组件id
53
57
  name: item.name,
54
58
  // 过滤组件名称
55
59
  filterComponentType: 'MultipleSelect',
56
- options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || [],
60
+ props: {
61
+ options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || []
62
+ },
57
63
  filterFn: function filterFn(value) {
58
64
  return function (i) {
59
65
  var _ref;
@@ -66,9 +72,11 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
66
72
  });
67
73
  this.name = "处理人";
68
74
  this.id = "handlerList";
75
+ this.sortField = "handlerList";
69
76
  this.type = "HANDLER_INPUT";
70
77
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
71
78
  this.isCombinationComponent = false;
79
+ this.canSort = false;
72
80
  this.children = [];
73
81
  });
74
82
  export default Handler;
@@ -3,10 +3,12 @@ import React from 'react';
3
3
  declare class BasicInput implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  rules: any[];
8
9
  componentConfig: ComponentInterface["componentConfig"];
9
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
10
12
  children: ComponentInterface[];
11
13
  constructor(options: PickOption);
12
14
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -16,6 +18,7 @@ declare class BasicInput implements ComponentInterface {
16
18
  renderClient: (record: Record) => React.JSX.Element | null;
17
19
  editRender: () => React.JSX.Element;
18
20
  filterConfig: (item: ColumnConfig) => {
21
+ searchDefaultConditions: "like";
19
22
  type: string;
20
23
  id: string;
21
24
  name: string;
@@ -11,16 +11,19 @@ import { ApaasInput } 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";
14
15
  var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
15
16
  var _this = this,
16
17
  _options$componentCon;
17
18
  _classCallCheck(this, BasicInput);
18
19
  _defineProperty(this, "name", void 0);
19
20
  _defineProperty(this, "id", void 0);
21
+ _defineProperty(this, "sortField", void 0);
20
22
  _defineProperty(this, "type", void 0);
21
23
  _defineProperty(this, "rules", void 0);
22
24
  _defineProperty(this, "componentConfig", void 0);
23
25
  _defineProperty(this, "isCombinationComponent", void 0);
26
+ _defineProperty(this, "canSort", void 0);
24
27
  _defineProperty(this, "children", void 0);
25
28
  _defineProperty(this, "renderPc", function (value, record) {
26
29
  var _record;
@@ -58,8 +61,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
58
61
  });
59
62
  _defineProperty(this, "filterConfig", function (item) {
60
63
  return {
64
+ searchDefaultConditions: SYMBOL.like,
61
65
  type: item.type,
62
- id: item.id,
66
+ id: "".concat(item.id, "_input"),
63
67
  // 过滤组件id
64
68
  name: item.name,
65
69
  // 过滤组件名称
@@ -73,6 +77,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
73
77
  });
74
78
  this.name = options.name;
75
79
  this.id = options.id;
80
+ this.sortField = "".concat(options.id, "_input");
76
81
  this.type = options.type;
77
82
  this.componentConfig = options.componentConfig;
78
83
  this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ? [{
@@ -80,6 +85,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
80
85
  message: '字段必须是数字'
81
86
  }] : [];
82
87
  this.isCombinationComponent = false;
88
+ this.canSort = true;
83
89
  this.children = [];
84
90
  });
85
91
  export default BasicInput;
@@ -4,12 +4,14 @@ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class JstItemSelect implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
+ sortField: string;
7
8
  type: string;
8
9
  rules: any[];
9
10
  componentConfig: ComponentInterface["componentConfig"];
10
11
  align: ALignType;
11
12
  expressDateInstance: InstanceType<typeof ExpressData>;
12
13
  isCombinationComponent: boolean;
14
+ canSort: boolean;
13
15
  children: ComponentInterface[];
14
16
  constructor(options: PickOption);
15
17
  renderClient: (record: Record) => React.JSX.Element | null;
@@ -19,6 +21,7 @@ declare class JstItemSelect implements ComponentInterface {
19
21
  renderExport: (value: any, record: any) => any;
20
22
  editRender: () => React.JSX.Element;
21
23
  filterConfig: (item: ColumnConfig) => {
24
+ searchDefaultConditions: "like";
22
25
  type: string;
23
26
  id: string;
24
27
  name: string;
@@ -13,18 +13,21 @@ import { GoodImage } from "../Common";
13
13
  import { JstItemList } from '@kmkf-fe-packages/basic-components';
14
14
  import ItemView from "../../commonComponents/ItemView";
15
15
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
+ import { SYMBOL } from "../../constant";
16
17
  var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
17
18
  var _this = this,
18
19
  _this$componentConfig;
19
20
  _classCallCheck(this, JstItemSelect);
20
21
  _defineProperty(this, "name", void 0);
21
22
  _defineProperty(this, "id", void 0);
23
+ _defineProperty(this, "sortField", void 0);
22
24
  _defineProperty(this, "type", void 0);
23
25
  _defineProperty(this, "rules", void 0);
24
26
  _defineProperty(this, "componentConfig", void 0);
25
27
  _defineProperty(this, "align", void 0);
26
28
  _defineProperty(this, "expressDateInstance", void 0);
27
29
  _defineProperty(this, "isCombinationComponent", void 0);
30
+ _defineProperty(this, "canSort", void 0);
28
31
  _defineProperty(this, "children", void 0);
29
32
  _defineProperty(this, "renderClient", function (record) {
30
33
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -70,29 +73,32 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
70
73
  });
71
74
  });
72
75
  _defineProperty(this, "filterConfig", function (item) {
73
- var _ref2;
74
- return [(_ref2 = {
76
+ return [{
77
+ searchDefaultConditions: SYMBOL.like,
75
78
  type: item.type,
76
79
  id: "".concat(item.id, "_itemId"),
77
- name: "jst\u4F9B\u5E94\u5546\u7F16\u7801"
78
- }, _defineProperty(_ref2, "type", item.type), _defineProperty(_ref2, "filterComponentType", 'Input'), _defineProperty(_ref2, "filterFn", function filterFn(value) {
79
- return function (i) {
80
- var _ref;
81
- return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
82
- var _String;
83
- var id = item !== null && item !== void 0 && item.itemId ? (_String = String(item === null || item === void 0 ? void 0 : item.itemId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
84
- return id;
85
- });
86
- };
87
- }), _ref2), {
80
+ name: "jst\u4F9B\u5E94\u5546\u7F16\u7801",
81
+ filterComponentType: 'Input',
82
+ filterFn: function filterFn(value) {
83
+ return function (i) {
84
+ var _ref;
85
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
86
+ var _String;
87
+ var id = item !== null && item !== void 0 && item.itemId ? (_String = String(item === null || item === void 0 ? void 0 : item.itemId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
88
+ return id;
89
+ });
90
+ };
91
+ }
92
+ }, {
93
+ searchDefaultConditions: SYMBOL.like,
88
94
  type: item.type,
89
95
  id: "".concat(item.id, "_supplierName"),
90
96
  name: "jst\u4F9B\u5E94\u5546\u540D\u79F0",
91
97
  filterComponentType: 'Input',
92
98
  filterFn: function filterFn(value) {
93
99
  return function (i) {
94
- var _ref3;
95
- return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
100
+ var _ref2;
101
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
96
102
  var _String2;
97
103
  var name = item !== null && item !== void 0 && item.supplierName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.supplierName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
98
104
  return name;
@@ -103,9 +109,11 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
103
109
  });
104
110
  this.name = options.name;
105
111
  this.id = options.id;
112
+ this.sortField = "".concat(options.id, "_jstItemList");
106
113
  this.type = options.type;
107
114
  this.componentConfig = options.componentConfig;
108
115
  this.isCombinationComponent = false;
116
+ this.canSort = false;
109
117
  this.children = [];
110
118
  this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
111
119
  required: true,
@@ -4,12 +4,14 @@ import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class JstLogistics implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
+ sortField: string;
7
8
  type: string;
8
9
  rules: any[];
9
10
  componentConfig: ComponentInterface["componentConfig"];
10
11
  align: ALignType;
11
12
  expressDateInstance: InstanceType<typeof ExpressData>;
12
13
  isCombinationComponent: boolean;
14
+ canSort: boolean;
13
15
  children: ComponentInterface[];
14
16
  constructor(options: PickOption);
15
17
  renderClient: (record: any) => React.JSX.Element | null;
@@ -19,18 +21,22 @@ declare class JstLogistics implements ComponentInterface {
19
21
  renderExport: (value: any, record: any) => any;
20
22
  editRender: () => React.JSX.Element;
21
23
  filterConfig: (item: ColumnConfig) => ({
24
+ searchDefaultConditions: "like";
22
25
  type: string;
23
26
  id: string;
24
27
  name: string;
25
28
  filterComponentType: "Input";
26
29
  filterFn: (value: string) => (i: Record) => boolean;
27
- options?: undefined;
30
+ props?: undefined;
28
31
  } | {
32
+ searchDefaultConditions: "in";
29
33
  type: string;
30
34
  id: string;
31
35
  name: string;
32
36
  filterComponentType: "MultipleSelect";
33
- options: any[];
37
+ props: {
38
+ options: any[];
39
+ };
34
40
  filterFn: (value: string) => (i: Record) => any;
35
41
  })[];
36
42
  }
@@ -14,18 +14,21 @@ import { JstGoodImage } from "../Common";
14
14
  import { JstGoods } from '@kmkf-fe-packages/basic-components';
15
15
  import ItemView from "../../commonComponents/ItemView";
16
16
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
17
+ import { SYMBOL } from "../../constant";
17
18
  var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
18
19
  var _this = this,
19
20
  _this$componentConfig3;
20
21
  _classCallCheck(this, JstLogistics);
21
22
  _defineProperty(this, "name", void 0);
22
23
  _defineProperty(this, "id", void 0);
24
+ _defineProperty(this, "sortField", void 0);
23
25
  _defineProperty(this, "type", void 0);
24
26
  _defineProperty(this, "rules", void 0);
25
27
  _defineProperty(this, "componentConfig", void 0);
26
28
  _defineProperty(this, "align", void 0);
27
29
  _defineProperty(this, "expressDateInstance", void 0);
28
30
  _defineProperty(this, "isCombinationComponent", void 0);
31
+ _defineProperty(this, "canSort", void 0);
29
32
  _defineProperty(this, "children", void 0);
30
33
  _defineProperty(this, "renderClient", function (record) {
31
34
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
@@ -77,6 +80,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
77
80
  });
78
81
  _defineProperty(this, "filterConfig", function (item) {
79
82
  return [{
83
+ searchDefaultConditions: SYMBOL.like,
80
84
  type: item.type,
81
85
  id: "".concat(item.id, "_logisticsCode"),
82
86
  name: "jst\u7269\u6D41\u5355\u53F7",
@@ -87,11 +91,14 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
87
91
  };
88
92
  }
89
93
  }, {
94
+ searchDefaultConditions: SYMBOL.in,
90
95
  type: item.type,
91
96
  id: "".concat(item.id, "_logisticsCompany"),
92
97
  name: "jst\u7269\u6D41\u516C\u53F8",
93
98
  filterComponentType: 'MultipleSelect',
94
- options: _this.expressDateInstance.getExpressData() || [],
99
+ props: {
100
+ options: _this.expressDateInstance.getExpressData() || []
101
+ },
95
102
  filterFn: function filterFn(value) {
96
103
  return function (i) {
97
104
  var _ref;
@@ -106,9 +113,11 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
106
113
  });
107
114
  this.name = options.name;
108
115
  this.id = options.id;
116
+ this.sortField = "".concat(options.id, "_jstItemList");
109
117
  this.type = options.type;
110
118
  this.componentConfig = options.componentConfig;
111
119
  this.isCombinationComponent = false;
120
+ this.canSort = false;
112
121
  this.children = [];
113
122
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
114
123
  required: true,