@kmkf-fe-packages/services-components 0.7.4 → 0.7.5-alpha.1

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 +3 -1
  2. package/dist/esm/components/ActualPayment/index.js +6 -2
  3. package/dist/esm/components/Address/index.d.ts +20 -3
  4. package/dist/esm/components/Address/index.js +33 -3
  5. package/dist/esm/components/Alipay/index.d.ts +2 -0
  6. package/dist/esm/components/Alipay/index.js +2 -0
  7. package/dist/esm/components/AlipayAccount/index.d.ts +2 -0
  8. package/dist/esm/components/AlipayAccount/index.js +4 -0
  9. package/dist/esm/components/AlipayName/index.d.ts +2 -0
  10. package/dist/esm/components/AlipayName/index.js +4 -0
  11. package/dist/esm/components/BuyerNick/index.d.ts +2 -0
  12. package/dist/esm/components/BuyerNick/index.js +4 -0
  13. package/dist/esm/components/Cascader/index.d.ts +11 -1
  14. package/dist/esm/components/Cascader/index.js +18 -2
  15. package/dist/esm/components/Checkbox/index.d.ts +5 -1
  16. package/dist/esm/components/Checkbox/index.js +11 -5
  17. package/dist/esm/components/CommonDataTime/index.d.ts +3 -0
  18. package/dist/esm/components/CommonDataTime/index.js +11 -0
  19. package/dist/esm/components/CompletedUser/index.d.ts +8 -4
  20. package/dist/esm/components/CompletedUser/index.js +7 -1
  21. package/dist/esm/components/DataTime/index.d.ts +6 -1
  22. package/dist/esm/components/DataTime/index.js +15 -2
  23. package/dist/esm/components/EItemEnCode/index.d.ts +2 -0
  24. package/dist/esm/components/EItemEnCode/index.js +5 -1
  25. package/dist/esm/components/EItemId/index.d.ts +2 -0
  26. package/dist/esm/components/EItemId/index.js +5 -1
  27. package/dist/esm/components/EItemSelect/index.d.ts +1 -0
  28. package/dist/esm/components/EItemSelect/index.js +2 -0
  29. package/dist/esm/components/ErpTradeId/index.d.ts +3 -0
  30. package/dist/esm/components/ErpTradeId/index.js +8 -1
  31. package/dist/esm/components/Express/index.d.ts +5 -1
  32. package/dist/esm/components/Express/index.js +7 -1
  33. package/dist/esm/components/ExpressCode/index.d.ts +2 -0
  34. package/dist/esm/components/ExpressCode/index.js +4 -0
  35. package/dist/esm/components/FlowStatusSelect/index.d.ts +8 -4
  36. package/dist/esm/components/FlowStatusSelect/index.js +12 -6
  37. package/dist/esm/components/Grade/index.d.ts +1 -0
  38. package/dist/esm/components/Grade/index.js +2 -0
  39. package/dist/esm/components/Handler/index.d.ts +8 -4
  40. package/dist/esm/components/Handler/index.js +7 -1
  41. package/dist/esm/components/Input/index.d.ts +2 -0
  42. package/dist/esm/components/Input/index.js +5 -1
  43. package/dist/esm/components/JstItemSelect/index.d.ts +2 -0
  44. package/dist/esm/components/JstItemSelect/index.js +21 -15
  45. package/dist/esm/components/JstLogistics/index.d.ts +7 -2
  46. package/dist/esm/components/JstLogistics/index.js +8 -1
  47. package/dist/esm/components/JstSendGood/index.d.ts +2 -0
  48. package/dist/esm/components/JstSendGood/index.js +5 -0
  49. package/dist/esm/components/JstSupply/index.d.ts +2 -0
  50. package/dist/esm/components/JstSupply/index.js +5 -0
  51. package/dist/esm/components/Logistics/index.d.ts +6 -1
  52. package/dist/esm/components/Logistics/index.js +2 -0
  53. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +2 -1
  54. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -0
  55. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +9 -5
  56. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +7 -1
  57. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +9 -5
  58. package/dist/esm/components/LogisticsInterception/InterceptType.js +7 -1
  59. package/dist/esm/components/LogisticsInterception/index.d.ts +13 -5
  60. package/dist/esm/components/LogisticsInterception/index.js +2 -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 +5 -1
  64. package/dist/esm/components/MultSelect/index.js +8 -2
  65. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -0
  66. package/dist/esm/components/Ordinary/OrdinaryHeader.js +7 -3
  67. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
  68. package/dist/esm/components/Ordinary/OrdinaryMoney.js +8 -4
  69. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -0
  70. package/dist/esm/components/Ordinary/OrdinarySerial.js +4 -0
  71. package/dist/esm/components/Ordinary/index.d.ts +11 -2
  72. package/dist/esm/components/Ordinary/index.js +2 -0
  73. package/dist/esm/components/Payment/AlipayNick.d.ts +2 -0
  74. package/dist/esm/components/Payment/AlipayNick.js +4 -0
  75. package/dist/esm/components/Payment/AlipayNo.d.ts +2 -0
  76. package/dist/esm/components/Payment/AlipayNo.js +4 -0
  77. package/dist/esm/components/Payment/AlipayTime.d.ts +3 -0
  78. package/dist/esm/components/Payment/AlipayTime.js +11 -0
  79. package/dist/esm/components/Payment/BuyerNick.d.ts +2 -0
  80. package/dist/esm/components/Payment/BuyerNick.js +4 -0
  81. package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
  82. package/dist/esm/components/Payment/PaymentAmount.js +5 -1
  83. package/dist/esm/components/Payment/PaymentStatus.d.ts +8 -4
  84. package/dist/esm/components/Payment/PaymentStatus.js +7 -1
  85. package/dist/esm/components/Payment/PaymentTid.d.ts +3 -0
  86. package/dist/esm/components/Payment/PaymentTid.js +7 -0
  87. package/dist/esm/components/Payment/index.d.ts +33 -4
  88. package/dist/esm/components/Payment/index.js +2 -0
  89. package/dist/esm/components/Picture/index.d.ts +1 -0
  90. package/dist/esm/components/Picture/index.js +2 -0
  91. package/dist/esm/components/PlatForm/index.d.ts +3 -1
  92. package/dist/esm/components/PlatForm/index.js +4 -0
  93. package/dist/esm/components/Radio/index.d.ts +5 -1
  94. package/dist/esm/components/Radio/index.js +11 -5
  95. package/dist/esm/components/Rate/index.d.ts +1 -0
  96. package/dist/esm/components/Rate/index.js +2 -0
  97. package/dist/esm/components/ReceiverAddress/index.d.ts +2 -1
  98. package/dist/esm/components/ReceiverAddress/index.js +2 -0
  99. package/dist/esm/components/ReceiverMobile/index.d.ts +2 -0
  100. package/dist/esm/components/ReceiverMobile/index.js +5 -1
  101. package/dist/esm/components/ReceiverName/index.d.ts +2 -0
  102. package/dist/esm/components/ReceiverName/index.js +5 -1
  103. package/dist/esm/components/Remark/index.d.ts +2 -0
  104. package/dist/esm/components/Remark/index.js +5 -1
  105. package/dist/esm/components/ReturnLogistics/index.d.ts +6 -1
  106. package/dist/esm/components/ReturnLogistics/index.js +2 -0
  107. package/dist/esm/components/Select/index.d.ts +5 -1
  108. package/dist/esm/components/Select/index.js +8 -2
  109. package/dist/esm/components/ShopInput/index.d.ts +7 -2
  110. package/dist/esm/components/ShopInput/index.js +17 -2
  111. package/dist/esm/components/ShopName/index.d.ts +2 -0
  112. package/dist/esm/components/ShopName/index.js +5 -1
  113. package/dist/esm/components/Submitter/index.d.ts +9 -4
  114. package/dist/esm/components/Submitter/index.js +15 -1
  115. package/dist/esm/components/SystemOrderNo/index.d.ts +3 -0
  116. package/dist/esm/components/SystemOrderNo/index.js +8 -1
  117. package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
  118. package/dist/esm/components/TemplateSelect/index.js +4 -0
  119. package/dist/esm/components/TextArea/index.d.ts +2 -0
  120. package/dist/esm/components/TextArea/index.js +5 -1
  121. package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -0
  122. package/dist/esm/components/ThirdItemSelect/index.js +5 -1
  123. package/dist/esm/components/TradeDateTime/index.d.ts +3 -0
  124. package/dist/esm/components/TradeDateTime/index.js +14 -2
  125. package/dist/esm/components/TradeId/index.d.ts +3 -0
  126. package/dist/esm/components/TradeId/index.js +8 -1
  127. package/dist/esm/components/WorkOrderId/index.d.ts +2 -0
  128. package/dist/esm/components/WorkOrderId/index.js +11 -1
  129. package/dist/esm/constant.d.ts +14 -0
  130. package/dist/esm/constant.js +14 -0
  131. package/dist/esm/type.d.ts +8 -2
  132. package/package.json +4 -4
@@ -8,6 +8,7 @@ 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";
11
12
  var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
12
13
  var _this = this;
13
14
  _classCallCheck(this, ShopInput);
@@ -17,6 +18,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
17
18
  _defineProperty(this, "componentConfig", void 0);
18
19
  _defineProperty(this, "effects", void 0);
19
20
  _defineProperty(this, "isCombinationComponent", void 0);
21
+ _defineProperty(this, "canSort", void 0);
20
22
  _defineProperty(this, "children", void 0);
21
23
  _defineProperty(this, "renderPc", function (shopName, record) {
22
24
  return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
@@ -46,14 +48,17 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
46
48
  _defineProperty(this, "filterConfig", function (item) {
47
49
  var _this$effects;
48
50
  return {
51
+ searchDefaultConditions: SYMBOL.in,
49
52
  type: item.type,
50
53
  id: item.id,
51
54
  // 过滤组件id
52
55
  name: item.name,
53
56
  // 过滤组件名称
54
57
  filterComponentType: 'ShopList',
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',
58
+ props: {
59
+ shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || [],
60
+ mode: 'multiple'
61
+ },
57
62
  filterFn: function filterFn(value) {
58
63
  return function (i) {
59
64
  var _this$effects2, _this$effects2$shopLi, _this$effects2$shopLi2, _this$effects2$shopLi3;
@@ -63,6 +68,15 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
63
68
  return item.shopName;
64
69
  })) === null || _this$effects2$shopLi3 === void 0 ? void 0 : _this$effects2$shopLi3.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
65
70
  };
71
+ },
72
+ formatFilterValue: function formatFilterValue(shopList) {
73
+ return shopList === null || shopList === void 0 ? void 0 : shopList.map(function (shopId) {
74
+ var _ref, _ref$find, _this$effects3;
75
+ 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) {
76
+ return item.shopId === shopId;
77
+ })) === null || _ref$find === void 0 ? void 0 : _ref$find.uniqueKey;
78
+ return shopUniqueKey !== null && shopUniqueKey !== void 0 ? shopUniqueKey : shopId;
79
+ });
66
80
  }
67
81
  };
68
82
  });
@@ -71,6 +85,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
71
85
  this.type = "SHOP_INPUT";
72
86
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
73
87
  this.isCombinationComponent = false;
88
+ this.canSort = true;
74
89
  this.children = [];
75
90
  });
76
91
  export default ShopInput;
@@ -7,6 +7,7 @@ declare class BasicInput implements ComponentInterface {
7
7
  rules: any[];
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  isCombinationComponent: boolean;
10
+ canSort: boolean;
10
11
  children: ComponentInterface[];
11
12
  constructor(options: PickOption);
12
13
  renderClient: (record: any) => React.JSX.Element | null;
@@ -16,6 +17,7 @@ declare class BasicInput implements ComponentInterface {
16
17
  renderExport: (value: any, record: Record) => any;
17
18
  editRender: () => React.JSX.Element;
18
19
  filterConfig: (item: ColumnConfig) => {
20
+ searchDefaultConditions: "like";
19
21
  type: string;
20
22
  id: string;
21
23
  name: string;
@@ -11,6 +11,7 @@ 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
  _classCallCheck(this, BasicInput);
@@ -20,6 +21,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
20
21
  _defineProperty(this, "rules", void 0);
21
22
  _defineProperty(this, "componentConfig", void 0);
22
23
  _defineProperty(this, "isCombinationComponent", void 0);
24
+ _defineProperty(this, "canSort", void 0);
23
25
  _defineProperty(this, "children", void 0);
24
26
  _defineProperty(this, "renderClient", function (record) {
25
27
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -57,8 +59,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
57
59
  });
58
60
  _defineProperty(this, "filterConfig", function (item) {
59
61
  return {
62
+ searchDefaultConditions: SYMBOL.like,
60
63
  type: item.type,
61
- id: item.id,
64
+ id: "".concat(item.id, "_shopName"),
62
65
  // 过滤组件id
63
66
  name: item.name,
64
67
  // 过滤组件名称
@@ -76,6 +79,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
76
79
  this.componentConfig = options.componentConfig;
77
80
  this.rules = [];
78
81
  this.isCombinationComponent = false;
82
+ this.canSort = true;
79
83
  this.children = [];
80
84
  });
81
85
  export default BasicInput;
@@ -7,6 +7,7 @@ declare class Submitter implements ComponentInterface {
7
7
  componentConfig: ComponentInterface["componentConfig"];
8
8
  effects: ComponentInterface["effects"];
9
9
  isCombinationComponent: boolean;
10
+ canSort: boolean;
10
11
  children: ComponentInterface[];
11
12
  constructor(options: PickOption);
12
13
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -16,14 +17,18 @@ declare class Submitter implements ComponentInterface {
16
17
  renderClient: () => null;
17
18
  editRender: () => null;
18
19
  filterConfig: (item: ColumnConfig) => {
20
+ searchDefaultConditions: "in";
19
21
  type: string;
20
22
  id: string;
21
23
  name: string;
22
24
  filterComponentType: "MultipleSelect";
23
- options: {
24
- label: string;
25
- value: string;
26
- }[] | undefined;
25
+ props: {
26
+ options: {
27
+ label: string;
28
+ value: string;
29
+ }[] | undefined;
30
+ };
31
+ formatFilterValue: (val: Array<string>) => (string | undefined)[];
27
32
  filterFn: (value: string) => (i: Record) => boolean;
28
33
  };
29
34
  }
@@ -7,6 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
7
7
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
8
  import React from 'react';
9
9
  import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
10
+ import { SYMBOL } from "../../constant";
10
11
  var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
11
12
  var _this = this;
12
13
  _classCallCheck(this, Submitter);
@@ -16,6 +17,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
16
17
  _defineProperty(this, "componentConfig", void 0);
17
18
  _defineProperty(this, "effects", void 0);
18
19
  _defineProperty(this, "isCombinationComponent", void 0);
20
+ _defineProperty(this, "canSort", void 0);
19
21
  _defineProperty(this, "children", void 0);
20
22
  _defineProperty(this, "renderPc", function (value, record) {
21
23
  var _record;
@@ -40,13 +42,24 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
40
42
  _defineProperty(this, "filterConfig", function (item) {
41
43
  var _this$effects;
42
44
  return {
45
+ searchDefaultConditions: SYMBOL.in,
43
46
  type: item.type,
44
47
  id: item.id,
45
48
  // 过滤组件id
46
49
  name: item.name,
47
50
  // 过滤组件名称
48
51
  filterComponentType: 'MultipleSelect',
49
- options: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList,
52
+ props: {
53
+ options: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList
54
+ },
55
+ formatFilterValue: function formatFilterValue(val) {
56
+ return val === null || val === void 0 ? void 0 : val.map(function (v) {
57
+ var _this$effects2, _this$effects2$userLi, _this$effects2$userLi2;
58
+ 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) {
59
+ return u.value === v;
60
+ })) === null || _this$effects2$userLi2 === void 0 ? void 0 : _this$effects2$userLi2.label;
61
+ });
62
+ },
50
63
  filterFn: function filterFn(value) {
51
64
  return function (i) {
52
65
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
@@ -59,6 +72,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
59
72
  this.type = "OPERATOR_INPUT";
60
73
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
61
74
  this.isCombinationComponent = false;
75
+ this.canSort = true;
62
76
  this.children = [];
63
77
  });
64
78
  export default Submitter;
@@ -8,6 +8,7 @@ declare class SystemOrderNo implements ComponentInterface {
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  effects: ComponentInterface["effects"];
10
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
11
12
  children: ComponentInterface[];
12
13
  constructor(options: PickOption);
13
14
  renderClient: (record: Record) => React.JSX.Element | null;
@@ -17,11 +18,13 @@ declare class SystemOrderNo implements ComponentInterface {
17
18
  renderExport: (value: string, record: Record) => any;
18
19
  editRender: () => React.JSX.Element;
19
20
  filterConfig: (item: ColumnConfig) => {
21
+ searchDefaultConditions: "in";
20
22
  type: string;
21
23
  id: string;
22
24
  name: string;
23
25
  filterComponentType: "Input";
24
26
  filterFn: (value: string) => (i: Record) => boolean;
27
+ formatFilterValue: (input: string) => string[];
25
28
  };
26
29
  }
27
30
  export default SystemOrderNo;
@@ -11,6 +11,7 @@ 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 SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
15
16
  var _this = this;
16
17
  _classCallCheck(this, SystemOrderNo);
@@ -21,6 +22,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
21
22
  _defineProperty(this, "componentConfig", void 0);
22
23
  _defineProperty(this, "effects", void 0);
23
24
  _defineProperty(this, "isCombinationComponent", void 0);
25
+ _defineProperty(this, "canSort", void 0);
24
26
  _defineProperty(this, "children", void 0);
25
27
  _defineProperty(this, "renderClient", function (record) {
26
28
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -58,8 +60,9 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
58
60
  });
59
61
  _defineProperty(this, "filterConfig", function (item) {
60
62
  return {
63
+ searchDefaultConditions: SYMBOL.in,
61
64
  type: item.type,
62
- id: item.id,
65
+ id: "".concat(item.id, "_systemOrderNo"),
63
66
  // 过滤组件id
64
67
  name: item.name,
65
68
  // 过滤组件名称
@@ -68,6 +71,9 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
68
71
  return function (i) {
69
72
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'systemOrderNo'), value);
70
73
  };
74
+ },
75
+ formatFilterValue: function formatFilterValue(input) {
76
+ return input.split(/[,|,]/);
71
77
  }
72
78
  };
73
79
  });
@@ -78,6 +84,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
78
84
  this.componentConfig = options.componentConfig;
79
85
  this.rules = [];
80
86
  this.isCombinationComponent = false;
87
+ this.canSort = true;
81
88
  this.children = [];
82
89
  });
83
90
  export default SystemOrderNo;
@@ -8,6 +8,7 @@ declare class TemplateSelect implements ComponentInterface {
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  effects: ComponentInterface["effects"];
10
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
11
12
  children: ComponentInterface[];
12
13
  constructor(options: PickOption);
13
14
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -17,6 +18,7 @@ declare class TemplateSelect implements ComponentInterface {
17
18
  renderClient: () => null;
18
19
  editRender: () => null;
19
20
  filterConfig: (item: ColumnConfig) => {
21
+ searchDefaultConditions: "in";
20
22
  type: string;
21
23
  id: string;
22
24
  name: string;
@@ -9,6 +9,7 @@ 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";
12
13
  var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options) {
13
14
  var _this = this;
14
15
  _classCallCheck(this, TemplateSelect);
@@ -19,6 +20,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
19
20
  _defineProperty(this, "componentConfig", void 0);
20
21
  _defineProperty(this, "effects", 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, "renderPc", function (value, record) {
24
26
  var _this$effects;
@@ -58,6 +60,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
58
60
  _defineProperty(this, "filterConfig", function (item) {
59
61
  var _this$effects3;
60
62
  return {
63
+ searchDefaultConditions: SYMBOL.in,
61
64
  type: item.type,
62
65
  id: item.id,
63
66
  // 过滤组件id
@@ -79,6 +82,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
79
82
  this.rules = [];
80
83
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
81
84
  this.isCombinationComponent = false;
85
+ this.canSort = true;
82
86
  this.children = [];
83
87
  });
84
88
  export default TemplateSelect;
@@ -7,6 +7,7 @@ declare class BasicInput implements ComponentInterface {
7
7
  rules: any[];
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  isCombinationComponent: boolean;
10
+ canSort: boolean;
10
11
  children: ComponentInterface[];
11
12
  constructor(options: PickOption);
12
13
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -16,6 +17,7 @@ declare class BasicInput implements ComponentInterface {
16
17
  renderClient: (record: Record) => React.JSX.Element | null;
17
18
  editRender: () => React.JSX.Element;
18
19
  filterConfig: (item: ColumnConfig) => {
20
+ searchDefaultConditions: "like";
19
21
  type: string;
20
22
  id: string;
21
23
  name: string;
@@ -11,6 +11,7 @@ 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";
14
15
  var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
15
16
  var _this = this;
16
17
  _classCallCheck(this, BasicInput);
@@ -20,6 +21,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
20
21
  _defineProperty(this, "rules", void 0);
21
22
  _defineProperty(this, "componentConfig", void 0);
22
23
  _defineProperty(this, "isCombinationComponent", void 0);
24
+ _defineProperty(this, "canSort", void 0);
23
25
  _defineProperty(this, "children", void 0);
24
26
  _defineProperty(this, "renderPc", function (value, record) {
25
27
  var _record;
@@ -57,8 +59,9 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
57
59
  });
58
60
  _defineProperty(this, "filterConfig", function (item) {
59
61
  return {
62
+ searchDefaultConditions: SYMBOL.like,
60
63
  type: item.type,
61
- id: item.id,
64
+ id: "".concat(item.id, "_textarea"),
62
65
  // 过滤组件id
63
66
  name: item.name,
64
67
  // 过滤组件名称
@@ -76,6 +79,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
76
79
  this.componentConfig = options.componentConfig;
77
80
  this.rules = [];
78
81
  this.isCombinationComponent = false;
82
+ this.canSort = true;
79
83
  this.children = [];
80
84
  });
81
85
  export default BasicInput;
@@ -8,6 +8,7 @@ declare class ThirdItemSelect implements ComponentInterface {
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  effects: ComponentInterface["effects"];
10
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
11
12
  children: ComponentInterface[];
12
13
  constructor(options: PickOption);
13
14
  renderClient: (record: Record) => React.JSX.Element | null;
@@ -17,6 +18,7 @@ declare class ThirdItemSelect implements ComponentInterface {
17
18
  renderExport: (value: any, record: Record) => any;
18
19
  editRender: () => React.JSX.Element;
19
20
  filterConfig: (item: ColumnConfig) => {
21
+ searchDefaultConditions: "like";
20
22
  type: string;
21
23
  id: string;
22
24
  name: string;
@@ -12,6 +12,7 @@ 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";
15
16
  var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options) {
16
17
  var _this = this,
17
18
  _this$componentConfig2;
@@ -23,6 +24,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
23
24
  _defineProperty(this, "componentConfig", void 0);
24
25
  _defineProperty(this, "effects", void 0);
25
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "canSort", void 0);
26
28
  _defineProperty(this, "children", void 0);
27
29
  _defineProperty(this, "renderClient", function (record) {
28
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -76,8 +78,9 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
76
78
  });
77
79
  _defineProperty(this, "filterConfig", function (item) {
78
80
  return {
81
+ searchDefaultConditions: SYMBOL.like,
79
82
  type: item.type,
80
- id: item.id,
83
+ id: "".concat(item.id, "_itemList"),
81
84
  // 过滤组件id
82
85
  name: item.name,
83
86
  // 过滤组件名称
@@ -101,6 +104,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
101
104
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
102
105
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
103
106
  this.isCombinationComponent = false;
107
+ this.canSort = true;
104
108
  this.children = [];
105
109
  this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
106
110
  required: true,
@@ -13,6 +13,7 @@ declare class BasicDataTime implements ComponentInterface {
13
13
  showContains: boolean;
14
14
  componentConfig: ComponentInterface["componentConfig"];
15
15
  isCombinationComponent: boolean;
16
+ canSort: boolean;
16
17
  children: ComponentInterface[];
17
18
  dataMap: Record;
18
19
  constructor(options: PickOption);
@@ -25,11 +26,13 @@ declare class BasicDataTime implements ComponentInterface {
25
26
  editRender: () => React.JSX.Element;
26
27
  getKeyByComponentType: (type: string) => "tradeCreateDateTime" | "tradePaymentDateTime" | "tradeDeliveryDateTime" | "tradeClosingDateTime" | undefined;
27
28
  filterConfig: (item: ColumnConfig) => {
29
+ searchDefaultConditions: "between";
28
30
  type: string;
29
31
  id: string;
30
32
  name: string;
31
33
  filterComponentType: "Date";
32
34
  filterFn: (value: string[]) => (i: Record) => boolean;
35
+ formatFilterValue: (val: Array<any>) => number[] | undefined;
33
36
  };
34
37
  }
35
38
  export default BasicDataTime;
@@ -7,10 +7,12 @@ 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';
10
11
  import { DateTime } from "../DataTime";
11
12
  import GetFormItem from "../GetFormItem";
12
13
  import ItemView from "../../commonComponents/ItemView";
13
14
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { SYMBOL } from "../../constant";
14
16
  var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
15
17
  var _this = this;
16
18
  _classCallCheck(this, BasicDataTime);
@@ -25,6 +27,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
25
27
  _defineProperty(this, "showContains", void 0);
26
28
  _defineProperty(this, "componentConfig", 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, "dataMap", void 0);
30
33
  _defineProperty(this, "render", function (value) {
@@ -89,19 +92,27 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
89
92
  }
90
93
  });
91
94
  _defineProperty(this, "filterConfig", function (item) {
95
+ var key = _this.getKeyByComponentType(item.type);
92
96
  return {
97
+ searchDefaultConditions: SYMBOL.between,
93
98
  type: item.type,
94
- id: item.id,
99
+ id: "".concat(item.id, "_").concat(key),
95
100
  // 过滤组件id
96
101
  name: item.name,
97
102
  // 过滤组件名称
98
103
  filterComponentType: 'Date',
99
104
  filterFn: function filterFn(value) {
100
105
  return function (i) {
101
- var key = _this.getKeyByComponentType(item.type);
102
106
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, key);
103
107
  return _filterFn.filterDateFn(value, recordDateTime);
104
108
  };
109
+ },
110
+ formatFilterValue: function formatFilterValue(val) {
111
+ if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
112
+ return val === null || val === void 0 ? void 0 : val.map(function (v) {
113
+ return moment(v).valueOf();
114
+ });
115
+ }
105
116
  }
106
117
  };
107
118
  });
@@ -116,6 +127,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
116
127
  this.componentConfig = options.componentConfig;
117
128
  this.rules = [];
118
129
  this.isCombinationComponent = false;
130
+ this.canSort = true;
119
131
  this.children = [];
120
132
  this.dataMap = {
121
133
  TRADE_CREATE_DATETIME: 'tradeCreateDateTime',
@@ -14,6 +14,7 @@ declare class ETradeId implements ComponentInterface {
14
14
  componentConfig: ComponentInterface["componentConfig"];
15
15
  effects: ComponentInterface["effects"];
16
16
  isCombinationComponent: boolean;
17
+ canSort: boolean;
17
18
  children: ComponentInterface[];
18
19
  constructor(options: PickOption);
19
20
  renderClient: (record: any) => React.JSX.Element | null;
@@ -23,11 +24,13 @@ declare class ETradeId implements ComponentInterface {
23
24
  renderExport: (value: unknown, record: Record) => any;
24
25
  editRender: (value: any) => React.JSX.Element;
25
26
  filterConfig: (item: ColumnConfig) => {
27
+ searchDefaultConditions: "in";
26
28
  type: string;
27
29
  id: string;
28
30
  name: string;
29
31
  filterComponentType: "Input";
30
32
  filterFn: (value: string) => (i: Record) => boolean;
33
+ formatFilterValue: (input: string) => string[];
31
34
  };
32
35
  }
33
36
  export default ETradeId;
@@ -11,6 +11,7 @@ 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";
14
15
  var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
15
16
  var _this = this;
16
17
  _classCallCheck(this, ETradeId);
@@ -27,6 +28,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
27
28
  _defineProperty(this, "componentConfig", void 0);
28
29
  _defineProperty(this, "effects", void 0);
29
30
  _defineProperty(this, "isCombinationComponent", void 0);
31
+ _defineProperty(this, "canSort", void 0);
30
32
  _defineProperty(this, "children", void 0);
31
33
  _defineProperty(this, "renderClient", function (record) {
32
34
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -71,8 +73,9 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
71
73
  });
72
74
  _defineProperty(this, "filterConfig", function (item) {
73
75
  return {
76
+ searchDefaultConditions: SYMBOL.in,
74
77
  type: item.type,
75
- id: item.id,
78
+ id: "".concat(item.id, "_tradeId"),
76
79
  // 过滤组件id
77
80
  name: item.name,
78
81
  // 过滤组件名称
@@ -81,6 +84,9 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
81
84
  return function (i) {
82
85
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'tradeId'), value);
83
86
  };
87
+ },
88
+ formatFilterValue: function formatFilterValue(input) {
89
+ return input.split(/[,|,]/);
84
90
  }
85
91
  };
86
92
  });
@@ -97,6 +103,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
97
103
  this.effects = options.effects;
98
104
  this.rules = [];
99
105
  this.isCombinationComponent = false;
106
+ this.canSort = true;
100
107
  this.children = [];
101
108
  });
102
109
  export default ETradeId;
@@ -8,6 +8,7 @@ declare class WorkOrderId implements ComponentInterface {
8
8
  componentConfig: ComponentInterface["componentConfig"];
9
9
  effects: ComponentInterface["effects"];
10
10
  isCombinationComponent: boolean;
11
+ canSort: boolean;
11
12
  children: ComponentInterface[];
12
13
  constructor(options: PickOption);
13
14
  copyHandle: (text: string) => void;
@@ -18,6 +19,7 @@ declare class WorkOrderId implements ComponentInterface {
18
19
  renderClient: () => null;
19
20
  editRender: () => React.JSX.Element;
20
21
  filterConfig: (item: ColumnConfig) => {
22
+ searchDefaultConditions: "like";
21
23
  type: string;
22
24
  id: string;
23
25
  name: string;
@@ -14,6 +14,7 @@ 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";
17
18
  var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
18
19
  var _this = this;
19
20
  _classCallCheck(this, WorkOrderId);
@@ -24,6 +25,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
24
25
  _defineProperty(this, "componentConfig", void 0);
25
26
  _defineProperty(this, "effects", void 0);
26
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "canSort", void 0);
27
29
  _defineProperty(this, "children", void 0);
28
30
  _defineProperty(this, "copyHandle", function (text) {
29
31
  copy(text);
@@ -41,8 +43,14 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
41
43
  },
42
44
  alt: "",
43
45
  onClick: function onClick() {
44
- var _this$effects, _this$effects2;
46
+ var _this$effects, _this$effects2, _this$effects3, _this$effects4;
47
+ // TODO: 前端筛选时的重复提醒版本,等分享页面整改之后,这个将会废弃
45
48
  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));
49
+ 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({
50
+ templateId: record === null || record === void 0 ? void 0 : record.templateId,
51
+ workOrderUniqueKey: record === null || record === void 0 ? void 0 : record.id,
52
+ fieldList: record === null || record === void 0 ? void 0 : record.repeatValueList
53
+ }));
46
54
  }
47
55
  }), /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
48
56
  onClick: function onClick() {
@@ -83,6 +91,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
83
91
  });
84
92
  _defineProperty(this, "filterConfig", function (item) {
85
93
  return {
94
+ searchDefaultConditions: SYMBOL.like,
86
95
  type: item.type,
87
96
  id: item.id,
88
97
  // 过滤组件id
@@ -103,6 +112,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
103
112
  this.effects = options.effects;
104
113
  this.rules = [];
105
114
  this.isCombinationComponent = false;
115
+ this.canSort = true;
106
116
  this.children = [];
107
117
  });
108
118
  export default WorkOrderId;
@@ -0,0 +1,14 @@
1
+ export declare const SYMBOL: {
2
+ between: string;
3
+ eq: string;
4
+ like: string;
5
+ gt: string;
6
+ gte: string;
7
+ lt: string;
8
+ lte: string;
9
+ ne: string;
10
+ in: string;
11
+ nin: string;
12
+ non: string;
13
+ notnull: string;
14
+ };
@@ -0,0 +1,14 @@
1
+ export var SYMBOL = {
2
+ between: 'between',
3
+ eq: 'eq',
4
+ like: 'like',
5
+ gt: 'gt',
6
+ gte: 'gte',
7
+ lt: 'lt',
8
+ lte: 'lte',
9
+ ne: 'ne',
10
+ in: 'in',
11
+ nin: 'nin',
12
+ non: 'non',
13
+ notnull: 'notnull'
14
+ };