@kmkf-fe-packages/services-components 0.7.3-alpha.9 → 0.7.4

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