@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
@@ -18,13 +18,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
18
18
  _classCallCheck(this, BasicInput);
19
19
  _defineProperty(this, "name", void 0);
20
20
  _defineProperty(this, "id", void 0);
21
- _defineProperty(this, "sortField", void 0);
22
21
  _defineProperty(this, "type", void 0);
23
22
  _defineProperty(this, "rules", void 0);
24
23
  _defineProperty(this, "componentConfig", void 0);
25
24
  _defineProperty(this, "effects", void 0);
26
25
  _defineProperty(this, "isCombinationComponent", void 0);
27
- _defineProperty(this, "canSort", void 0);
28
26
  _defineProperty(this, "children", void 0);
29
27
  _defineProperty(this, "addressDateInstance", void 0);
30
28
  _defineProperty(this, "render", function (value) {
@@ -106,11 +104,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
106
104
  });
107
105
  this.name = options.name;
108
106
  this.id = options.id;
109
- this.sortField = options.id;
110
107
  this.type = options.type;
111
108
  this.componentConfig = options.componentConfig;
112
109
  this.isCombinationComponent = false;
113
- this.canSort = false;
114
110
  this.children = [];
115
111
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
116
112
  validator: function validator(_, value) {
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  declare class ReceiverMobile 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: Record) => React.JSX.Element | null;
@@ -19,7 +17,6 @@ declare class ReceiverMobile implements ComponentInterface {
19
17
  renderExport: (value: any, record: Record) => any;
20
18
  editRender: (value: any) => React.JSX.Element;
21
19
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "eq";
23
20
  type: string;
24
21
  id: string;
25
22
  name: string;
@@ -11,19 +11,16 @@ 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";
15
14
  var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options) {
16
15
  var _this = this;
17
16
  _classCallCheck(this, ReceiverMobile);
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);
24
22
  _defineProperty(this, "effects", 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, "renderClient", function (record) {
29
26
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -71,9 +68,8 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
71
68
  });
72
69
  _defineProperty(this, "filterConfig", function (item) {
73
70
  return {
74
- searchDefaultConditions: SYMBOL.eq,
75
71
  type: item.type,
76
- id: "".concat(item.id, "_receiveMobile"),
72
+ id: item.id,
77
73
  // 过滤组件id
78
74
  name: item.name,
79
75
  // 过滤组件名称
@@ -87,13 +83,11 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
87
83
  });
88
84
  this.name = options.name;
89
85
  this.id = options.id;
90
- this.sortField = "".concat(options.id, "_receiveMobile");
91
86
  this.type = options.type;
92
87
  this.componentConfig = options.componentConfig;
93
88
  this.rules = [];
94
89
  this.effects = options.effects;
95
90
  this.isCombinationComponent = false;
96
- this.canSort = true;
97
91
  this.children = [];
98
92
  });
99
93
  export default ReceiverMobile;
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  declare class ReceiverName 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 ReceiverName implements ComponentInterface {
19
17
  renderExport: (value: any, record: Record) => any;
20
18
  editRender: () => React.JSX.Element;
21
19
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "eq";
23
20
  type: string;
24
21
  id: string;
25
22
  name: string;
@@ -11,19 +11,16 @@ 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";
15
14
  var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
16
15
  var _this = this;
17
16
  _classCallCheck(this, ReceiverName);
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);
24
22
  _defineProperty(this, "effects", 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, "renderClient", function (record) {
29
26
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -68,9 +65,8 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
68
65
  });
69
66
  _defineProperty(this, "filterConfig", function (item) {
70
67
  return {
71
- searchDefaultConditions: SYMBOL.eq,
72
68
  type: item.type,
73
- id: "".concat(item.id, "_receiveName"),
69
+ id: item.id,
74
70
  // 过滤组件id
75
71
  name: item.name,
76
72
  // 过滤组件名称
@@ -84,13 +80,11 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
84
80
  });
85
81
  this.name = options.name;
86
82
  this.id = options.id;
87
- this.sortField = "".concat(options.id, "_receiveName");
88
83
  this.type = options.type;
89
84
  this.componentConfig = options.componentConfig;
90
85
  this.rules = [];
91
86
  this.effects = options.effects;
92
87
  this.isCombinationComponent = false;
93
- this.canSort = true;
94
88
  this.children = [];
95
89
  });
96
90
  export default ReceiverName;
@@ -7,14 +7,12 @@ declare type Value = {
7
7
  declare class ERemark implements ComponentInterface {
8
8
  name: string;
9
9
  id: string;
10
- sortField: string;
11
10
  type: string;
12
11
  rules: any[];
13
12
  componentConfig: ComponentInterface["componentConfig"];
14
13
  imgList: any[];
15
14
  flagColors: string[];
16
15
  isCombinationComponent: boolean;
17
- canSort: boolean;
18
16
  children: ComponentInterface[];
19
17
  constructor(options: PickOption);
20
18
  render: (value: Value) => React.JSX.Element;
@@ -28,7 +26,6 @@ declare class ERemark implements ComponentInterface {
28
26
  renderExport: (value: unknown, record: Record) => any;
29
27
  editRender: () => React.JSX.Element;
30
28
  filterConfig: (item: ColumnConfig) => {
31
- searchDefaultConditions: "like";
32
29
  type: string;
33
30
  id: string;
34
31
  name: string;
@@ -17,21 +17,18 @@ import trade5 from "./flag/trade-icon-flag-5.png";
17
17
  import get from 'lodash/get';
18
18
  import ItemView from "../../commonComponents/ItemView";
19
19
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
20
- import { SYMBOL } from "../../constant";
21
20
  var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
22
21
  var _this = this,
23
22
  _this$componentConfig3;
24
23
  _classCallCheck(this, ERemark);
25
24
  _defineProperty(this, "name", void 0);
26
25
  _defineProperty(this, "id", void 0);
27
- _defineProperty(this, "sortField", void 0);
28
26
  _defineProperty(this, "type", void 0);
29
27
  _defineProperty(this, "rules", void 0);
30
28
  _defineProperty(this, "componentConfig", void 0);
31
29
  _defineProperty(this, "imgList", void 0);
32
30
  _defineProperty(this, "flagColors", void 0);
33
31
  _defineProperty(this, "isCombinationComponent", void 0);
34
- _defineProperty(this, "canSort", void 0);
35
32
  _defineProperty(this, "children", void 0);
36
33
  _defineProperty(this, "render", function (value) {
37
34
  var index = get(value, 'flag');
@@ -87,9 +84,8 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
87
84
  });
88
85
  _defineProperty(this, "filterConfig", function (item) {
89
86
  return {
90
- searchDefaultConditions: SYMBOL.like,
91
87
  type: item.type,
92
- id: "".concat(item.id, "_remark"),
88
+ id: item.id,
93
89
  // 过滤组件id
94
90
  name: item.name,
95
91
  // 过滤组件名称
@@ -103,7 +99,6 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
103
99
  });
104
100
  this.name = options.name;
105
101
  this.id = options.id;
106
- this.sortField = "".concat(options.id, "_remark");
107
102
  this.type = options.type;
108
103
  this.componentConfig = options.componentConfig;
109
104
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
@@ -121,7 +116,6 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
121
116
  this.imgList = [trade0, trade1, trade2, trade3, trade4, trade5];
122
117
  this.flagColors = ['gray', 'red', 'yellow', 'green', 'blue', 'purple'];
123
118
  this.isCombinationComponent = false;
124
- this.canSort = true;
125
119
  this.children = [];
126
120
  });
127
121
  export default ERemark;
@@ -6,7 +6,6 @@ import ExpressCode from '../ExpressCode';
6
6
  declare class ReturnLogistics implements ComponentInterface {
7
7
  name: string;
8
8
  id: string;
9
- sortField: string;
10
9
  type: string;
11
10
  rules: any[];
12
11
  canFilter: boolean;
@@ -19,7 +18,6 @@ declare class ReturnLogistics implements ComponentInterface {
19
18
  express: Express;
20
19
  expressCode: ExpressCode;
21
20
  isCombinationComponent: boolean;
22
- canSort: boolean;
23
21
  children: ComponentInterface[];
24
22
  constructor(options: PickOption);
25
23
  renderClient: (record: any) => React.JSX.Element;
@@ -32,17 +30,13 @@ declare class ReturnLogistics implements ComponentInterface {
32
30
  renderExport: () => null;
33
31
  editRender: (value: any) => React.JSX.Element;
34
32
  filterConfig: (item: ColumnConfig) => ({
35
- searchDefaultConditions: "in";
36
33
  type: string;
37
34
  id: string;
38
35
  name: string;
39
36
  filterComponentType: "MultipleSelect";
40
- props: {
41
- options: any[];
42
- };
37
+ options: any[];
43
38
  filterFn: (value: string) => (i: Record) => boolean;
44
39
  } | {
45
- searchDefaultConditions: "like";
46
40
  type: string;
47
41
  id: string;
48
42
  name: string;
@@ -20,7 +20,6 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
20
20
  _classCallCheck(this, ReturnLogistics);
21
21
  _defineProperty(this, "name", void 0);
22
22
  _defineProperty(this, "id", void 0);
23
- _defineProperty(this, "sortField", void 0);
24
23
  _defineProperty(this, "type", void 0);
25
24
  _defineProperty(this, "rules", void 0);
26
25
  _defineProperty(this, "canFilter", void 0);
@@ -33,7 +32,6 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
33
32
  _defineProperty(this, "express", void 0);
34
33
  _defineProperty(this, "expressCode", void 0);
35
34
  _defineProperty(this, "isCombinationComponent", void 0);
36
- _defineProperty(this, "canSort", void 0);
37
35
  _defineProperty(this, "children", void 0);
38
36
  _defineProperty(this, "renderClient", function (record) {
39
37
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record));
@@ -75,7 +73,6 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
75
73
  });
76
74
  this.name = options.name;
77
75
  this.id = options.id;
78
- this.sortField = options.id;
79
76
  this.type = options.type;
80
77
  this.canFilter = false;
81
78
  this.canGroup = false;
@@ -93,7 +90,6 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
93
90
  id: "".concat(options.id, "_returnLogisticsCode")
94
91
  }));
95
92
  this.isCombinationComponent = true;
96
- this.canSort = false;
97
93
  this.children = [this.express, this.expressCode];
98
94
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
99
95
  validator: function validator(_, value) {
@@ -3,12 +3,10 @@ import React from 'react';
3
3
  declare class BasicSelect 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
  editRender: () => React.JSX.Element;
@@ -18,14 +16,11 @@ declare class BasicSelect implements ComponentInterface {
18
16
  getComponentValue: (r: Record) => any;
19
17
  renderExport: (value: any, record: Record) => any;
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: any[];
28
- };
23
+ options: any[];
29
24
  filterFn: (value: string) => (i: Record) => boolean;
30
25
  };
31
26
  }
@@ -11,18 +11,15 @@ import { ApaasSelect } 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 BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
16
15
  var _this = this;
17
16
  _classCallCheck(this, BasicSelect);
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);
24
22
  _defineProperty(this, "isCombinationComponent", void 0);
25
- _defineProperty(this, "canSort", void 0);
26
23
  _defineProperty(this, "children", void 0);
27
24
  _defineProperty(this, "editRender", function () {
28
25
  var _this$componentConfig, _this$componentConfig2;
@@ -62,16 +59,13 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
62
59
  _defineProperty(this, "filterConfig", function (item) {
63
60
  var _item$config;
64
61
  return {
65
- searchDefaultConditions: SYMBOL.in,
66
62
  type: item.type,
67
- id: "".concat(item.id, "_select"),
63
+ id: item.id,
68
64
  // 过滤组件id
69
65
  name: item.name,
70
66
  // 过滤组件名称
71
67
  filterComponentType: 'MultipleSelect',
72
- props: {
73
- options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
74
- },
68
+ options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [],
75
69
  filterFn: function filterFn(value) {
76
70
  return function (i) {
77
71
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, 'select'));
@@ -81,12 +75,10 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
81
75
  });
82
76
  this.name = options.name;
83
77
  this.id = options.id;
84
- this.sortField = "".concat(options.id, "_select");
85
78
  this.type = options.type;
86
79
  this.componentConfig = options.componentConfig;
87
80
  this.rules = [];
88
81
  this.isCombinationComponent = false;
89
- this.canSort = true;
90
82
  this.children = [];
91
83
  });
92
84
  export default BasicSelect;
@@ -3,12 +3,10 @@ import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type
3
3
  declare class ShopInput 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: (shopName: unknown, record: any) => React.JSX.Element;
@@ -18,17 +16,13 @@ declare class ShopInput 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: "ShopList";
26
- props: {
27
- shopList: any[];
28
- mode: string;
29
- };
23
+ shopList: any[];
24
+ mode: string;
30
25
  filterFn: (value: string) => (i: Record) => boolean | undefined;
31
- formatFilterValue: (shopList: Array<string>) => any[];
32
26
  };
33
27
  }
34
28
  export default ShopInput;
@@ -8,18 +8,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  import React from 'react';
9
9
  import PlatformAvatar from "../../commonComponents/PlatformAvatar";
10
10
  import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
11
- import { SYMBOL } from "../../constant";
12
11
  var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
13
12
  var _this = this;
14
13
  _classCallCheck(this, ShopInput);
15
14
  _defineProperty(this, "name", void 0);
16
15
  _defineProperty(this, "id", void 0);
17
- _defineProperty(this, "sortField", void 0);
18
16
  _defineProperty(this, "type", void 0);
19
17
  _defineProperty(this, "componentConfig", void 0);
20
18
  _defineProperty(this, "effects", void 0);
21
19
  _defineProperty(this, "isCombinationComponent", void 0);
22
- _defineProperty(this, "canSort", void 0);
23
20
  _defineProperty(this, "children", void 0);
24
21
  _defineProperty(this, "renderPc", function (shopName, record) {
25
22
  return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
@@ -49,17 +46,14 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
49
46
  _defineProperty(this, "filterConfig", function (item) {
50
47
  var _this$effects;
51
48
  return {
52
- searchDefaultConditions: SYMBOL.in,
53
49
  type: item.type,
54
50
  id: item.id,
55
51
  // 过滤组件id
56
52
  name: item.name,
57
53
  // 过滤组件名称
58
54
  filterComponentType: 'ShopList',
59
- props: {
60
- shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || [],
61
- mode: 'multiple'
62
- },
55
+ shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || [],
56
+ mode: 'multiple',
63
57
  filterFn: function filterFn(value) {
64
58
  return function (i) {
65
59
  var _this$effects2, _this$effects2$shopLi, _this$effects2$shopLi2, _this$effects2$shopLi3;
@@ -69,25 +63,14 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
69
63
  return item.shopName;
70
64
  })) === null || _this$effects2$shopLi3 === void 0 ? void 0 : _this$effects2$shopLi3.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
71
65
  };
72
- },
73
- formatFilterValue: function formatFilterValue(shopList) {
74
- return shopList === null || shopList === void 0 ? void 0 : shopList.map(function (shopId) {
75
- var _ref, _ref$find, _this$effects3;
76
- var shopUniqueKey = (_ref = (_this === null || _this === void 0 ? void 0 : (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopList) || []) === null || _ref === void 0 ? void 0 : (_ref$find = _ref.find(function (item) {
77
- return item.shopId === shopId;
78
- })) === null || _ref$find === void 0 ? void 0 : _ref$find.uniqueKey;
79
- return shopUniqueKey !== null && shopUniqueKey !== void 0 ? shopUniqueKey : shopId;
80
- });
81
66
  }
82
67
  };
83
68
  });
84
69
  this.name = "店铺名称";
85
70
  this.id = "shopName";
86
71
  this.type = "SHOP_INPUT";
87
- this.sortField = "shopName";
88
72
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
89
73
  this.isCombinationComponent = false;
90
- this.canSort = true;
91
74
  this.children = [];
92
75
  });
93
76
  export default ShopInput;
@@ -3,12 +3,10 @@ import React from 'react';
3
3
  declare class BasicInput 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,7 +16,6 @@ declare class BasicInput implements ComponentInterface {
18
16
  renderExport: (value: any, record: Record) => any;
19
17
  editRender: () => React.JSX.Element;
20
18
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "like";
22
19
  type: string;
23
20
  id: string;
24
21
  name: string;
@@ -11,18 +11,15 @@ 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";
15
14
  var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
16
15
  var _this = this;
17
16
  _classCallCheck(this, BasicInput);
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);
24
22
  _defineProperty(this, "isCombinationComponent", void 0);
25
- _defineProperty(this, "canSort", void 0);
26
23
  _defineProperty(this, "children", void 0);
27
24
  _defineProperty(this, "renderClient", function (record) {
28
25
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -60,9 +57,8 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
60
57
  });
61
58
  _defineProperty(this, "filterConfig", function (item) {
62
59
  return {
63
- searchDefaultConditions: SYMBOL.like,
64
60
  type: item.type,
65
- id: "".concat(item.id, "_shopName"),
61
+ id: item.id,
66
62
  // 过滤组件id
67
63
  name: item.name,
68
64
  // 过滤组件名称
@@ -77,11 +73,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
77
73
  this.name = options.name;
78
74
  this.id = options.id;
79
75
  this.type = options.type;
80
- this.sortField = "".concat(options.id, "_shopName");
81
76
  this.componentConfig = options.componentConfig;
82
77
  this.rules = [];
83
78
  this.isCombinationComponent = false;
84
- this.canSort = true;
85
79
  this.children = [];
86
80
  });
87
81
  export default BasicInput;
@@ -3,12 +3,10 @@ import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type
3
3
  declare class Submitter 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,18 +16,14 @@ declare class Submitter 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
- }[] | undefined;
31
- };
32
- formatFilterValue: (val: Array<string>) => (string | undefined)[];
23
+ options: {
24
+ label: string;
25
+ value: string;
26
+ }[] | undefined;
33
27
  filterFn: (value: string) => (i: Record) => boolean;
34
28
  };
35
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 Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
12
11
  var _this = this;
13
12
  _classCallCheck(this, Submitter);
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,24 +40,13 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(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
- },
56
- formatFilterValue: function formatFilterValue(val) {
57
- return val === null || val === void 0 ? void 0 : val.map(function (v) {
58
- var _this$effects2, _this$effects2$userLi, _this$effects2$userLi2;
59
- return (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : (_this$effects2$userLi = _this$effects2.userList) === null || _this$effects2$userLi === void 0 ? void 0 : (_this$effects2$userLi2 = _this$effects2$userLi.find(function (u) {
60
- return u.value === v;
61
- })) === null || _this$effects2$userLi2 === void 0 ? void 0 : _this$effects2$userLi2.label;
62
- });
63
- },
49
+ options: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList,
64
50
  filterFn: function filterFn(value) {
65
51
  return function (i) {
66
52
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
@@ -71,10 +57,8 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
71
57
  this.name = "提交人";
72
58
  this.id = "submitter";
73
59
  this.type = "OPERATOR_INPUT";
74
- this.sortField = "submitter";
75
60
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
76
61
  this.isCombinationComponent = false;
77
- this.canSort = true;
78
62
  this.children = [];
79
63
  });
80
64
  export default Submitter;
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  declare class SystemOrderNo 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: Record) => React.JSX.Element | null;
@@ -19,13 +17,11 @@ declare class SystemOrderNo implements ComponentInterface {
19
17
  renderExport: (value: string, record: Record) => any;
20
18
  editRender: () => React.JSX.Element;
21
19
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "in";
23
20
  type: string;
24
21
  id: string;
25
22
  name: string;
26
23
  filterComponentType: "Input";
27
24
  filterFn: (value: string) => (i: Record) => boolean;
28
- formatFilterValue: (input: string) => string[];
29
25
  };
30
26
  }
31
27
  export default SystemOrderNo;