@kmkf-fe-packages/services-components 0.7.5-alpha.7 → 0.7.6-alpha.0

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 (141) hide show
  1. package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
  2. package/dist/esm/components/ActualPayment/index.d.ts +1 -7
  3. package/dist/esm/components/ActualPayment/index.js +2 -40
  4. package/dist/esm/components/Address/index.d.ts +3 -21
  5. package/dist/esm/components/Address/index.js +3 -35
  6. package/dist/esm/components/Alipay/index.d.ts +0 -3
  7. package/dist/esm/components/Alipay/index.js +0 -4
  8. package/dist/esm/components/AlipayAccount/index.d.ts +0 -3
  9. package/dist/esm/components/AlipayAccount/index.js +0 -6
  10. package/dist/esm/components/AlipayName/index.d.ts +0 -3
  11. package/dist/esm/components/AlipayName/index.js +0 -6
  12. package/dist/esm/components/BuyerNick/index.d.ts +0 -3
  13. package/dist/esm/components/BuyerNick/index.js +0 -6
  14. package/dist/esm/components/Cascader/index.d.ts +1 -12
  15. package/dist/esm/components/Cascader/index.js +8 -35
  16. package/dist/esm/components/Checkbox/index.d.ts +1 -6
  17. package/dist/esm/components/Checkbox/index.js +5 -13
  18. package/dist/esm/components/Common/index.d.ts +5 -5
  19. package/dist/esm/components/CommonDataTime/index.d.ts +0 -4
  20. package/dist/esm/components/CommonDataTime/index.js +0 -13
  21. package/dist/esm/components/CompletedUser/index.d.ts +4 -9
  22. package/dist/esm/components/CompletedUser/index.js +1 -9
  23. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  24. package/dist/esm/components/DataTime/index.d.ts +8 -3
  25. package/dist/esm/components/DataTime/index.js +4 -24
  26. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  27. package/dist/esm/components/EItemEnCode/index.d.ts +0 -3
  28. package/dist/esm/components/EItemEnCode/index.js +1 -7
  29. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  30. package/dist/esm/components/EItemId/index.d.ts +0 -3
  31. package/dist/esm/components/EItemId/index.js +1 -7
  32. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  33. package/dist/esm/components/EItemSelect/index.d.ts +0 -2
  34. package/dist/esm/components/EItemSelect/index.js +0 -4
  35. package/dist/esm/components/ErpTradeId/index.d.ts +0 -4
  36. package/dist/esm/components/ErpTradeId/index.js +1 -10
  37. package/dist/esm/components/Express/index.d.ts +1 -6
  38. package/dist/esm/components/Express/index.js +1 -9
  39. package/dist/esm/components/ExpressCode/index.d.ts +0 -3
  40. package/dist/esm/components/ExpressCode/index.js +0 -6
  41. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  42. package/dist/esm/components/FlowStatusSelect/index.d.ts +4 -9
  43. package/dist/esm/components/FlowStatusSelect/index.js +6 -14
  44. package/dist/esm/components/Grade/index.d.ts +0 -2
  45. package/dist/esm/components/Grade/index.js +0 -4
  46. package/dist/esm/components/Handler/index.d.ts +4 -9
  47. package/dist/esm/components/Handler/index.js +1 -9
  48. package/dist/esm/components/Input/index.d.ts +0 -3
  49. package/dist/esm/components/Input/index.js +1 -7
  50. package/dist/esm/components/JstItemSelect/index.d.ts +0 -3
  51. package/dist/esm/components/JstItemSelect/index.js +15 -23
  52. package/dist/esm/components/JstLogistics/index.d.ts +2 -8
  53. package/dist/esm/components/JstLogistics/index.js +1 -10
  54. package/dist/esm/components/JstSendGood/index.d.ts +0 -3
  55. package/dist/esm/components/JstSendGood/index.js +0 -7
  56. package/dist/esm/components/JstSupply/index.d.ts +0 -3
  57. package/dist/esm/components/JstSupply/index.js +0 -7
  58. package/dist/esm/components/Logistics/index.d.ts +1 -7
  59. package/dist/esm/components/Logistics/index.js +0 -4
  60. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -3
  61. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +0 -4
  62. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +5 -10
  63. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +1 -9
  64. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +5 -10
  65. package/dist/esm/components/LogisticsInterception/InterceptType.js +1 -9
  66. package/dist/esm/components/LogisticsInterception/index.d.ts +5 -14
  67. package/dist/esm/components/LogisticsInterception/index.js +0 -4
  68. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +0 -2
  69. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +0 -4
  70. package/dist/esm/components/MultSelect/index.d.ts +1 -6
  71. package/dist/esm/components/MultSelect/index.js +2 -10
  72. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +0 -3
  73. package/dist/esm/components/Ordinary/OrdinaryHeader.js +3 -9
  74. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +1 -7
  75. package/dist/esm/components/Ordinary/OrdinaryMoney.js +4 -42
  76. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +0 -3
  77. package/dist/esm/components/Ordinary/OrdinarySerial.js +0 -6
  78. package/dist/esm/components/Ordinary/index.d.ts +2 -12
  79. package/dist/esm/components/Ordinary/index.js +0 -4
  80. package/dist/esm/components/Payment/AlipayNick.d.ts +0 -3
  81. package/dist/esm/components/Payment/AlipayNick.js +0 -6
  82. package/dist/esm/components/Payment/AlipayNo.d.ts +0 -3
  83. package/dist/esm/components/Payment/AlipayNo.js +0 -6
  84. package/dist/esm/components/Payment/AlipayTime.d.ts +0 -4
  85. package/dist/esm/components/Payment/AlipayTime.js +0 -13
  86. package/dist/esm/components/Payment/BuyerNick.d.ts +0 -3
  87. package/dist/esm/components/Payment/BuyerNick.js +0 -6
  88. package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -7
  89. package/dist/esm/components/Payment/PaymentAmount.js +1 -39
  90. package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -9
  91. package/dist/esm/components/Payment/PaymentStatus.js +1 -9
  92. package/dist/esm/components/Payment/PaymentTid.d.ts +0 -4
  93. package/dist/esm/components/Payment/PaymentTid.js +0 -9
  94. package/dist/esm/components/Payment/index.d.ts +4 -34
  95. package/dist/esm/components/Payment/index.js +0 -4
  96. package/dist/esm/components/Picture/index.d.ts +0 -2
  97. package/dist/esm/components/Picture/index.js +0 -4
  98. package/dist/esm/components/PlatForm/index.d.ts +1 -4
  99. package/dist/esm/components/PlatForm/index.js +0 -6
  100. package/dist/esm/components/Popover/index.d.ts +2 -2
  101. package/dist/esm/components/Radio/index.d.ts +1 -6
  102. package/dist/esm/components/Radio/index.js +5 -13
  103. package/dist/esm/components/Rate/index.d.ts +0 -2
  104. package/dist/esm/components/Rate/index.js +0 -4
  105. package/dist/esm/components/ReceiverAddress/index.d.ts +1 -3
  106. package/dist/esm/components/ReceiverAddress/index.js +0 -4
  107. package/dist/esm/components/ReceiverMobile/index.d.ts +0 -3
  108. package/dist/esm/components/ReceiverMobile/index.js +1 -7
  109. package/dist/esm/components/ReceiverName/index.d.ts +0 -3
  110. package/dist/esm/components/ReceiverName/index.js +1 -7
  111. package/dist/esm/components/Remark/index.d.ts +0 -3
  112. package/dist/esm/components/Remark/index.js +1 -7
  113. package/dist/esm/components/ReturnLogistics/index.d.ts +1 -7
  114. package/dist/esm/components/ReturnLogistics/index.js +0 -4
  115. package/dist/esm/components/Select/index.d.ts +1 -6
  116. package/dist/esm/components/Select/index.js +2 -10
  117. package/dist/esm/components/ShopInput/index.d.ts +2 -8
  118. package/dist/esm/components/ShopInput/index.js +2 -19
  119. package/dist/esm/components/ShopName/index.d.ts +0 -3
  120. package/dist/esm/components/ShopName/index.js +1 -7
  121. package/dist/esm/components/Submitter/index.d.ts +4 -10
  122. package/dist/esm/components/Submitter/index.js +1 -17
  123. package/dist/esm/components/SystemOrderNo/index.d.ts +0 -4
  124. package/dist/esm/components/SystemOrderNo/index.js +1 -10
  125. package/dist/esm/components/TemplateSelect/index.d.ts +0 -3
  126. package/dist/esm/components/TemplateSelect/index.js +0 -6
  127. package/dist/esm/components/TextArea/index.d.ts +0 -3
  128. package/dist/esm/components/TextArea/index.js +1 -7
  129. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  130. package/dist/esm/components/ThirdItemSelect/index.d.ts +0 -3
  131. package/dist/esm/components/ThirdItemSelect/index.js +1 -7
  132. package/dist/esm/components/TradeDateTime/index.d.ts +0 -4
  133. package/dist/esm/components/TradeDateTime/index.js +2 -16
  134. package/dist/esm/components/TradeId/index.d.ts +0 -4
  135. package/dist/esm/components/TradeId/index.js +1 -10
  136. package/dist/esm/components/WorkOrderId/index.d.ts +0 -3
  137. package/dist/esm/components/WorkOrderId/index.js +3 -15
  138. package/dist/esm/type.d.ts +2 -10
  139. package/package.json +4 -4
  140. package/dist/esm/constant.d.ts +0 -14
  141. package/dist/esm/constant.js +0 -14
@@ -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;
@@ -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 SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
16
15
  var _this = this;
17
16
  _classCallCheck(this, SystemOrderNo);
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, {
@@ -61,9 +58,8 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
61
58
  });
62
59
  _defineProperty(this, "filterConfig", function (item) {
63
60
  return {
64
- searchDefaultConditions: SYMBOL.in,
65
61
  type: item.type,
66
- id: "".concat(item.id, "_systemOrderNo"),
62
+ id: item.id,
67
63
  // 过滤组件id
68
64
  name: item.name,
69
65
  // 过滤组件名称
@@ -72,21 +68,16 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
72
68
  return function (i) {
73
69
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'systemOrderNo'), value);
74
70
  };
75
- },
76
- formatFilterValue: function formatFilterValue(input) {
77
- return input.split(/[,|,]/);
78
71
  }
79
72
  };
80
73
  });
81
74
  this.name = options.name;
82
75
  this.id = options.id;
83
- this.sortField = "".concat(options.id, "_systemOrderNo");
84
76
  this.type = options.type;
85
77
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
86
78
  this.componentConfig = options.componentConfig;
87
79
  this.rules = [];
88
80
  this.isCombinationComponent = false;
89
- this.canSort = true;
90
81
  this.children = [];
91
82
  });
92
83
  export default SystemOrderNo;
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  declare class TemplateSelect 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
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -19,7 +17,6 @@ declare class TemplateSelect implements ComponentInterface {
19
17
  renderClient: () => null;
20
18
  editRender: () => null;
21
19
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "in";
23
20
  type: string;
24
21
  id: string;
25
22
  name: string;
@@ -9,19 +9,16 @@ import React from 'react';
9
9
  import find from 'lodash/find';
10
10
  import get from 'lodash/get';
11
11
  import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
12
- import { SYMBOL } from "../../constant";
13
12
  var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options) {
14
13
  var _this = this;
15
14
  _classCallCheck(this, TemplateSelect);
16
15
  _defineProperty(this, "name", void 0);
17
16
  _defineProperty(this, "id", void 0);
18
- _defineProperty(this, "sortField", void 0);
19
17
  _defineProperty(this, "type", void 0);
20
18
  _defineProperty(this, "rules", void 0);
21
19
  _defineProperty(this, "componentConfig", void 0);
22
20
  _defineProperty(this, "effects", 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, "renderPc", function (value, record) {
27
24
  var _this$effects;
@@ -61,7 +58,6 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
61
58
  _defineProperty(this, "filterConfig", function (item) {
62
59
  var _this$effects3;
63
60
  return {
64
- searchDefaultConditions: SYMBOL.in,
65
61
  type: item.type,
66
62
  id: item.id,
67
63
  // 过滤组件id
@@ -78,13 +74,11 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
78
74
  });
79
75
  this.name = options.name;
80
76
  this.id = options.id;
81
- this.sortField = options.id;
82
77
  this.type = options.type;
83
78
  this.componentConfig = options.componentConfig;
84
79
  this.rules = [];
85
80
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
86
81
  this.isCombinationComponent = false;
87
- this.canSort = true;
88
82
  this.children = [];
89
83
  });
90
84
  export default TemplateSelect;
@@ -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
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -18,7 +16,6 @@ declare class BasicInput implements ComponentInterface {
18
16
  renderClient: (record: Record) => React.JSX.Element | null;
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 { ApaasTextArea } 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, "renderPc", function (value, record) {
28
25
  var _record;
@@ -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, "_textarea"),
61
+ id: item.id,
66
62
  // 过滤组件id
67
63
  name: item.name,
68
64
  // 过滤组件名称
@@ -76,12 +72,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
76
72
  });
77
73
  this.name = options.name;
78
74
  this.id = options.id;
79
- this.sortField = "".concat(options.id, "_textarea");
80
75
  this.type = options.type;
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;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
3
- declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
3
+ declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
4
4
  export default ItemEncode;
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  declare class ThirdItemSelect 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 ThirdItemSelect implements ComponentInterface {
19
17
  renderExport: (value: any, 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 ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options) {
17
16
  var _this = this,
18
17
  _this$componentConfig2;
19
18
  _classCallCheck(this, ThirdItemSelect);
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, {
@@ -79,9 +76,8 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
79
76
  });
80
77
  _defineProperty(this, "filterConfig", function (item) {
81
78
  return {
82
- searchDefaultConditions: SYMBOL.like,
83
79
  type: item.type,
84
- id: "".concat(item.id, "_itemList"),
80
+ id: item.id,
85
81
  // 过滤组件id
86
82
  name: item.name,
87
83
  // 过滤组件名称
@@ -101,12 +97,10 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
101
97
  });
102
98
  this.name = options.name || '供应商编码/名称';
103
99
  this.id = options.id;
104
- this.sortField = "".concat(options.id, "_itemList");
105
100
  this.type = options.type;
106
101
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
107
102
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
108
103
  this.isCombinationComponent = false;
109
- this.canSort = true;
110
104
  this.children = [];
111
105
  this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
112
106
  required: true,
@@ -4,7 +4,6 @@ declare type Value = string | string[] | undefined;
4
4
  declare class BasicDataTime implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
- sortField: string;
8
7
  type: string;
9
8
  rules: any[];
10
9
  canFilter: boolean;
@@ -14,7 +13,6 @@ declare class BasicDataTime implements ComponentInterface {
14
13
  showContains: boolean;
15
14
  componentConfig: ComponentInterface["componentConfig"];
16
15
  isCombinationComponent: boolean;
17
- canSort: boolean;
18
16
  children: ComponentInterface[];
19
17
  dataMap: Record;
20
18
  constructor(options: PickOption);
@@ -27,13 +25,11 @@ declare class BasicDataTime implements ComponentInterface {
27
25
  editRender: () => React.JSX.Element;
28
26
  getKeyByComponentType: (type: string) => "tradeCreateDateTime" | "tradePaymentDateTime" | "tradeDeliveryDateTime" | "tradeClosingDateTime" | undefined;
29
27
  filterConfig: (item: ColumnConfig) => {
30
- searchDefaultConditions: "between";
31
28
  type: string;
32
29
  id: string;
33
30
  name: string;
34
31
  filterComponentType: "Date";
35
32
  filterFn: (value: string[]) => (i: Record) => boolean;
36
- formatFilterValue: (val: Array<any>) => number[] | undefined;
37
33
  };
38
34
  }
39
35
  export default BasicDataTime;
@@ -7,18 +7,15 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  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); }
9
9
  import React from 'react';
10
- import moment from 'moment';
11
10
  import { DateTime } from "../DataTime";
12
11
  import GetFormItem from "../GetFormItem";
13
12
  import ItemView from "../../commonComponents/ItemView";
14
13
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
- import { SYMBOL } from "../../constant";
16
14
  var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
17
15
  var _this = this;
18
16
  _classCallCheck(this, BasicDataTime);
19
17
  _defineProperty(this, "name", void 0);
20
18
  _defineProperty(this, "id", void 0);
21
- _defineProperty(this, "sortField", void 0);
22
19
  _defineProperty(this, "type", void 0);
23
20
  _defineProperty(this, "rules", void 0);
24
21
  _defineProperty(this, "canFilter", void 0);
@@ -28,7 +25,6 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
28
25
  _defineProperty(this, "showContains", void 0);
29
26
  _defineProperty(this, "componentConfig", void 0);
30
27
  _defineProperty(this, "isCombinationComponent", void 0);
31
- _defineProperty(this, "canSort", void 0);
32
28
  _defineProperty(this, "children", void 0);
33
29
  _defineProperty(this, "dataMap", void 0);
34
30
  _defineProperty(this, "render", function (value) {
@@ -93,33 +89,24 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
93
89
  }
94
90
  });
95
91
  _defineProperty(this, "filterConfig", function (item) {
96
- var key = _this.getKeyByComponentType(item.type);
97
92
  return {
98
- searchDefaultConditions: SYMBOL.between,
99
93
  type: item.type,
100
- id: "".concat(item.id, "_").concat(key),
94
+ id: item.id,
101
95
  // 过滤组件id
102
96
  name: item.name,
103
97
  // 过滤组件名称
104
98
  filterComponentType: 'Date',
105
99
  filterFn: function filterFn(value) {
106
100
  return function (i) {
101
+ var key = _this.getKeyByComponentType(item.type);
107
102
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
108
103
  return _filterFn.filterDateFn(value, recordDateTime);
109
104
  };
110
- },
111
- formatFilterValue: function formatFilterValue(val) {
112
- if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
113
- return val === null || val === void 0 ? void 0 : val.map(function (v) {
114
- return moment(v).valueOf();
115
- });
116
- }
117
105
  }
118
106
  };
119
107
  });
120
108
  this.name = options.name;
121
109
  this.id = options.id;
122
- this.sortField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
123
110
  this.type = options.type;
124
111
  this.canFilter = true;
125
112
  this.canGroup = true;
@@ -129,7 +116,6 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
129
116
  this.componentConfig = options.componentConfig;
130
117
  this.rules = [];
131
118
  this.isCombinationComponent = false;
132
- this.canSort = true;
133
119
  this.children = [];
134
120
  this.dataMap = {
135
121
  TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
@@ -3,7 +3,6 @@ import React from 'react';
3
3
  declare class ETradeId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  rules: any[];
9
8
  canFilter: boolean;
@@ -15,7 +14,6 @@ declare class ETradeId implements ComponentInterface {
15
14
  componentConfig: ComponentInterface["componentConfig"];
16
15
  effects: ComponentInterface["effects"];
17
16
  isCombinationComponent: boolean;
18
- canSort: boolean;
19
17
  children: ComponentInterface[];
20
18
  constructor(options: PickOption);
21
19
  renderClient: (record: any) => React.JSX.Element | null;
@@ -25,13 +23,11 @@ declare class ETradeId implements ComponentInterface {
25
23
  renderExport: (value: unknown, record: Record) => any;
26
24
  editRender: (value: any) => React.JSX.Element;
27
25
  filterConfig: (item: ColumnConfig) => {
28
- searchDefaultConditions: "in";
29
26
  type: string;
30
27
  id: string;
31
28
  name: string;
32
29
  filterComponentType: "Input";
33
30
  filterFn: (value: string) => (i: Record) => boolean;
34
- formatFilterValue: (input: string) => string[];
35
31
  };
36
32
  }
37
33
  export default ETradeId;
@@ -11,13 +11,11 @@ import { TradeId } 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 ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
16
15
  var _this = this;
17
16
  _classCallCheck(this, ETradeId);
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, "canFilter", void 0);
@@ -29,7 +27,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
29
27
  _defineProperty(this, "componentConfig", void 0);
30
28
  _defineProperty(this, "effects", void 0);
31
29
  _defineProperty(this, "isCombinationComponent", void 0);
32
- _defineProperty(this, "canSort", void 0);
33
30
  _defineProperty(this, "children", void 0);
34
31
  _defineProperty(this, "renderClient", function (record) {
35
32
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -74,9 +71,8 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
74
71
  });
75
72
  _defineProperty(this, "filterConfig", function (item) {
76
73
  return {
77
- searchDefaultConditions: SYMBOL.in,
78
74
  type: item.type,
79
- id: "".concat(item.id, "_tradeId"),
75
+ id: item.id,
80
76
  // 过滤组件id
81
77
  name: item.name,
82
78
  // 过滤组件名称
@@ -85,15 +81,11 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
85
81
  return function (i) {
86
82
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
87
83
  };
88
- },
89
- formatFilterValue: function formatFilterValue(input) {
90
- return input.split(/[,|,]/);
91
84
  }
92
85
  };
93
86
  });
94
87
  this.name = options.name;
95
88
  this.id = options.id;
96
- this.sortField = "".concat(options.id, "_tradeId");
97
89
  this.type = options.type;
98
90
  this.canFilter = true;
99
91
  this.canGroup = true;
@@ -105,7 +97,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
105
97
  this.effects = options.effects;
106
98
  this.rules = [];
107
99
  this.isCombinationComponent = false;
108
- this.canSort = true;
109
100
  this.children = [];
110
101
  });
111
102
  export default ETradeId;
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  declare class WorkOrderId 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
  copyHandle: (text: string) => void;
@@ -20,7 +18,6 @@ declare class WorkOrderId implements ComponentInterface {
20
18
  renderClient: () => null;
21
19
  editRender: () => React.JSX.Element;
22
20
  filterConfig: (item: ColumnConfig) => {
23
- searchDefaultConditions: "like";
24
21
  type: string;
25
22
  id: string;
26
23
  name: string;
@@ -14,44 +14,35 @@ import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
14
14
  import GetFormItem from "../GetFormItem";
15
15
  import repeatPng from "./img/repeat.png";
16
16
  import copy from 'copy-to-clipboard';
17
- import { SYMBOL } from "../../constant";
18
17
  var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
19
18
  var _this = this;
20
19
  _classCallCheck(this, WorkOrderId);
21
20
  _defineProperty(this, "name", void 0);
22
21
  _defineProperty(this, "id", void 0);
23
- _defineProperty(this, "sortField", void 0);
24
22
  _defineProperty(this, "type", void 0);
25
23
  _defineProperty(this, "rules", void 0);
26
24
  _defineProperty(this, "componentConfig", void 0);
27
25
  _defineProperty(this, "effects", void 0);
28
26
  _defineProperty(this, "isCombinationComponent", void 0);
29
- _defineProperty(this, "canSort", void 0);
30
27
  _defineProperty(this, "children", void 0);
31
28
  _defineProperty(this, "copyHandle", function (text) {
32
29
  copy(text);
33
30
  message.success('复制成功');
34
31
  });
35
32
  _defineProperty(this, "renderPc", function (value, record) {
36
- var _record$repeatValueLi;
33
+ var _record$repeatConfig;
37
34
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
38
35
  return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
39
36
  }
40
- return /*#__PURE__*/React.createElement("span", null, (record === null || record === void 0 ? void 0 : (_record$repeatValueLi = record.repeatValueList) === null || _record$repeatValueLi === void 0 ? void 0 : _record$repeatValueLi.length) > 0 && /*#__PURE__*/React.createElement("img", {
37
+ return /*#__PURE__*/React.createElement("span", null, (record === null || record === void 0 ? void 0 : (_record$repeatConfig = record.repeatConfig) === null || _record$repeatConfig === void 0 ? void 0 : _record$repeatConfig.show) && /*#__PURE__*/React.createElement("img", {
41
38
  src: repeatPng,
42
39
  style: {
43
40
  width: '16px'
44
41
  },
45
42
  alt: "",
46
43
  onClick: function onClick() {
47
- var _this$effects, _this$effects2, _this$effects3, _this$effects4;
48
- // TODO: 前端筛选时的重复提醒版本,等分享页面整改之后,这个将会废弃
44
+ var _this$effects, _this$effects2;
49
45
  typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.handleOpenRepeatList) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.handleOpenRepeatList(record === null || record === void 0 ? void 0 : record.repeatConfig));
50
- typeof (_this === null || _this === void 0 ? void 0 : (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.handleOpenRepeatDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects4 = _this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.handleOpenRepeatDetail({
51
- templateId: record === null || record === void 0 ? void 0 : record.templateId,
52
- workOrderUniqueKey: record === null || record === void 0 ? void 0 : record.id,
53
- fieldList: record === null || record === void 0 ? void 0 : record.repeatValueList
54
- }));
55
46
  }
56
47
  }), /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
57
48
  onClick: function onClick() {
@@ -92,7 +83,6 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
92
83
  });
93
84
  _defineProperty(this, "filterConfig", function (item) {
94
85
  return {
95
- searchDefaultConditions: SYMBOL.like,
96
86
  type: item.type,
97
87
  id: item.id,
98
88
  // 过滤组件id
@@ -108,13 +98,11 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
108
98
  });
109
99
  this.name = options.name;
110
100
  this.id = options.id;
111
- this.sortField = options.id;
112
101
  this.type = options.type;
113
102
  this.componentConfig = options.componentConfig;
114
103
  this.effects = options.effects;
115
104
  this.rules = [];
116
105
  this.isCombinationComponent = false;
117
- this.canSort = true;
118
106
  this.children = [];
119
107
  });
120
108
  export default WorkOrderId;