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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/dist/esm/components/ActualPayment/index.d.ts +11 -1
  2. package/dist/esm/components/ActualPayment/index.js +65 -2
  3. package/dist/esm/components/Address/index.d.ts +21 -3
  4. package/dist/esm/components/Address/index.js +35 -3
  5. package/dist/esm/components/Alipay/index.d.ts +3 -0
  6. package/dist/esm/components/Alipay/index.js +4 -0
  7. package/dist/esm/components/AlipayAccount/index.d.ts +3 -0
  8. package/dist/esm/components/AlipayAccount/index.js +6 -0
  9. package/dist/esm/components/AlipayName/index.d.ts +3 -0
  10. package/dist/esm/components/AlipayName/index.js +6 -0
  11. package/dist/esm/components/BuyerNick/index.d.ts +3 -0
  12. package/dist/esm/components/BuyerNick/index.js +6 -0
  13. package/dist/esm/components/Cascader/index.d.ts +12 -1
  14. package/dist/esm/components/Cascader/index.js +35 -8
  15. package/dist/esm/components/Checkbox/index.d.ts +6 -1
  16. package/dist/esm/components/Checkbox/index.js +13 -5
  17. package/dist/esm/components/CommonDataTime/index.d.ts +6 -2
  18. package/dist/esm/components/CommonDataTime/index.js +23 -4
  19. package/dist/esm/components/CompletedUser/index.d.ts +9 -4
  20. package/dist/esm/components/CompletedUser/index.js +9 -1
  21. package/dist/esm/components/DataTime/index.d.ts +3 -8
  22. package/dist/esm/components/DataTime/index.js +25 -4
  23. package/dist/esm/components/EItemEnCode/index.d.ts +3 -0
  24. package/dist/esm/components/EItemEnCode/index.js +7 -1
  25. package/dist/esm/components/EItemId/index.d.ts +3 -0
  26. package/dist/esm/components/EItemId/index.js +7 -1
  27. package/dist/esm/components/EItemSelect/index.d.ts +2 -0
  28. package/dist/esm/components/EItemSelect/index.js +4 -0
  29. package/dist/esm/components/ErpTradeId/index.d.ts +4 -0
  30. package/dist/esm/components/ErpTradeId/index.js +10 -1
  31. package/dist/esm/components/Express/index.d.ts +6 -1
  32. package/dist/esm/components/Express/index.js +9 -1
  33. package/dist/esm/components/ExpressCode/index.d.ts +3 -0
  34. package/dist/esm/components/ExpressCode/index.js +6 -0
  35. package/dist/esm/components/FlowStatusSelect/index.d.ts +9 -4
  36. package/dist/esm/components/FlowStatusSelect/index.js +14 -6
  37. package/dist/esm/components/Grade/index.d.ts +2 -0
  38. package/dist/esm/components/Grade/index.js +4 -0
  39. package/dist/esm/components/Handler/index.d.ts +9 -4
  40. package/dist/esm/components/Handler/index.js +9 -1
  41. package/dist/esm/components/Input/index.d.ts +3 -0
  42. package/dist/esm/components/Input/index.js +7 -1
  43. package/dist/esm/components/JstItemSelect/index.d.ts +3 -0
  44. package/dist/esm/components/JstItemSelect/index.js +23 -15
  45. package/dist/esm/components/JstLogistics/index.d.ts +8 -2
  46. package/dist/esm/components/JstLogistics/index.js +10 -1
  47. package/dist/esm/components/JstSendGood/index.d.ts +3 -0
  48. package/dist/esm/components/JstSendGood/index.js +7 -0
  49. package/dist/esm/components/JstSupply/index.d.ts +3 -0
  50. package/dist/esm/components/JstSupply/index.js +7 -0
  51. package/dist/esm/components/Logistics/index.d.ts +7 -1
  52. package/dist/esm/components/Logistics/index.js +4 -0
  53. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +3 -1
  54. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +4 -0
  55. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +11 -5
  56. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +18 -4
  57. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +11 -5
  58. package/dist/esm/components/LogisticsInterception/InterceptType.js +18 -4
  59. package/dist/esm/components/LogisticsInterception/index.d.ts +15 -5
  60. package/dist/esm/components/LogisticsInterception/index.js +4 -0
  61. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +2 -0
  62. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +4 -0
  63. package/dist/esm/components/MultSelect/index.d.ts +6 -1
  64. package/dist/esm/components/MultSelect/index.js +10 -2
  65. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -0
  66. package/dist/esm/components/Ordinary/OrdinaryHeader.js +9 -3
  67. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -1
  68. package/dist/esm/components/Ordinary/OrdinaryMoney.js +67 -4
  69. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -0
  70. package/dist/esm/components/Ordinary/OrdinarySerial.js +6 -0
  71. package/dist/esm/components/Ordinary/index.d.ts +19 -2
  72. package/dist/esm/components/Ordinary/index.js +4 -0
  73. package/dist/esm/components/Payment/AlipayNick.d.ts +3 -0
  74. package/dist/esm/components/Payment/AlipayNick.js +6 -0
  75. package/dist/esm/components/Payment/AlipayNo.d.ts +3 -0
  76. package/dist/esm/components/Payment/AlipayNo.js +6 -0
  77. package/dist/esm/components/Payment/AlipayTime.d.ts +6 -2
  78. package/dist/esm/components/Payment/AlipayTime.js +23 -6
  79. package/dist/esm/components/Payment/BuyerNick.d.ts +3 -0
  80. package/dist/esm/components/Payment/BuyerNick.js +6 -0
  81. package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -1
  82. package/dist/esm/components/Payment/PaymentAmount.js +64 -1
  83. package/dist/esm/components/Payment/PaymentStatus.d.ts +9 -4
  84. package/dist/esm/components/Payment/PaymentStatus.js +9 -1
  85. package/dist/esm/components/Payment/PaymentTid.d.ts +4 -0
  86. package/dist/esm/components/Payment/PaymentTid.js +9 -0
  87. package/dist/esm/components/Payment/index.d.ts +41 -4
  88. package/dist/esm/components/Payment/index.js +4 -0
  89. package/dist/esm/components/Picture/index.d.ts +2 -0
  90. package/dist/esm/components/Picture/index.js +4 -0
  91. package/dist/esm/components/PlatForm/index.d.ts +4 -1
  92. package/dist/esm/components/PlatForm/index.js +6 -0
  93. package/dist/esm/components/Radio/index.d.ts +6 -1
  94. package/dist/esm/components/Radio/index.js +13 -5
  95. package/dist/esm/components/Rate/index.d.ts +2 -0
  96. package/dist/esm/components/Rate/index.js +4 -0
  97. package/dist/esm/components/ReceiverAddress/index.d.ts +3 -1
  98. package/dist/esm/components/ReceiverAddress/index.js +4 -0
  99. package/dist/esm/components/ReceiverMobile/index.d.ts +3 -0
  100. package/dist/esm/components/ReceiverMobile/index.js +7 -1
  101. package/dist/esm/components/ReceiverName/index.d.ts +3 -0
  102. package/dist/esm/components/ReceiverName/index.js +7 -1
  103. package/dist/esm/components/Remark/index.d.ts +3 -0
  104. package/dist/esm/components/Remark/index.js +7 -1
  105. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -1
  106. package/dist/esm/components/ReturnLogistics/index.js +4 -0
  107. package/dist/esm/components/Select/index.d.ts +6 -1
  108. package/dist/esm/components/Select/index.js +10 -2
  109. package/dist/esm/components/ShopInput/index.d.ts +8 -2
  110. package/dist/esm/components/ShopInput/index.js +19 -2
  111. package/dist/esm/components/ShopName/index.d.ts +3 -0
  112. package/dist/esm/components/ShopName/index.js +7 -1
  113. package/dist/esm/components/Submitter/index.d.ts +10 -4
  114. package/dist/esm/components/Submitter/index.js +17 -1
  115. package/dist/esm/components/SystemOrderNo/index.d.ts +4 -0
  116. package/dist/esm/components/SystemOrderNo/index.js +10 -1
  117. package/dist/esm/components/TemplateSelect/index.d.ts +3 -0
  118. package/dist/esm/components/TemplateSelect/index.js +6 -0
  119. package/dist/esm/components/TextArea/index.d.ts +3 -0
  120. package/dist/esm/components/TextArea/index.js +7 -1
  121. package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -0
  122. package/dist/esm/components/ThirdItemSelect/index.js +7 -1
  123. package/dist/esm/components/TradeDateTime/index.d.ts +4 -0
  124. package/dist/esm/components/TradeDateTime/index.js +16 -2
  125. package/dist/esm/components/TradeId/index.d.ts +4 -0
  126. package/dist/esm/components/TradeId/index.js +10 -1
  127. package/dist/esm/components/WorkOrderId/index.d.ts +3 -0
  128. package/dist/esm/components/WorkOrderId/index.js +15 -3
  129. package/dist/esm/constant.d.ts +14 -0
  130. package/dist/esm/constant.js +14 -0
  131. package/dist/esm/type.d.ts +10 -2
  132. package/package.json +4 -4
@@ -12,15 +12,18 @@ import { ApaasMultipleSelect } from '@kmkf-fe-packages/basic-components';
12
12
  import GetFormItem from "../GetFormItem";
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 BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options) {
16
17
  var _this = this;
17
18
  _classCallCheck(this, BasicMultSelect);
18
19
  _defineProperty(this, "name", void 0);
19
20
  _defineProperty(this, "id", void 0);
21
+ _defineProperty(this, "sortField", void 0);
20
22
  _defineProperty(this, "type", void 0);
21
23
  _defineProperty(this, "rules", void 0);
22
24
  _defineProperty(this, "componentConfig", void 0);
23
25
  _defineProperty(this, "isCombinationComponent", void 0);
26
+ _defineProperty(this, "canSort", void 0);
24
27
  _defineProperty(this, "children", void 0);
25
28
  _defineProperty(this, "renderClient", function (record) {
26
29
  var _record$_this$id;
@@ -66,13 +69,16 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
66
69
  _defineProperty(this, "filterConfig", function (item) {
67
70
  var _item$config;
68
71
  return {
72
+ searchDefaultConditions: SYMBOL.in,
69
73
  type: item.type,
70
- id: item.id,
74
+ id: "".concat(item.id, "_basicMultSelect"),
71
75
  // 过滤组件id
72
76
  name: item.name,
73
77
  // 过滤组件名称
74
78
  filterComponentType: 'MultipleSelect',
75
- options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [],
79
+ props: {
80
+ options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
81
+ },
76
82
  filterFn: function filterFn(value) {
77
83
  return function (i) {
78
84
  return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
@@ -82,10 +88,12 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
82
88
  });
83
89
  this.name = options.name;
84
90
  this.id = options.id;
91
+ this.sortField = "".concat(options.id, "_basicMultSelect");
85
92
  this.type = options.type;
86
93
  this.componentConfig = options.componentConfig;
87
94
  this.rules = [];
88
95
  this.isCombinationComponent = false;
96
+ this.canSort = true;
89
97
  this.children = [];
90
98
  });
91
99
  export default BasicMultSelect;
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  declare class OrdinaryHeader implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  rules: any[];
8
9
  componentConfig: ComponentInterface["componentConfig"];
@@ -10,6 +11,7 @@ declare class OrdinaryHeader implements ComponentInterface {
10
11
  align: ALignType;
11
12
  width: number;
12
13
  isCombinationComponent: boolean;
14
+ canSort: boolean;
13
15
  children: ComponentInterface[];
14
16
  constructor(options: PickOption);
15
17
  renderClient: (record: any) => React.JSX.Element | null;
@@ -19,6 +21,7 @@ declare class OrdinaryHeader implements ComponentInterface {
19
21
  renderExport: (value: any) => any;
20
22
  editRender: () => React.JSX.Element;
21
23
  filterConfig: (item: ColumnConfig) => {
24
+ searchDefaultConditions: "like";
22
25
  type: string;
23
26
  id: string;
24
27
  name: string;
@@ -11,11 +11,13 @@ import GetFormItem from "../GetFormItem";
11
11
  import Header from "../OrdinaryHeader";
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 OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options) {
15
16
  var _this = this;
16
17
  _classCallCheck(this, OrdinaryHeader);
17
18
  _defineProperty(this, "name", void 0);
18
19
  _defineProperty(this, "id", void 0);
20
+ _defineProperty(this, "sortField", void 0);
19
21
  _defineProperty(this, "type", void 0);
20
22
  _defineProperty(this, "rules", void 0);
21
23
  _defineProperty(this, "componentConfig", void 0);
@@ -23,6 +25,7 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
23
25
  _defineProperty(this, "align", void 0);
24
26
  _defineProperty(this, "width", void 0);
25
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "canSort", void 0);
26
29
  _defineProperty(this, "children", void 0);
27
30
  _defineProperty(this, "renderClient", function (record) {
28
31
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -63,19 +66,21 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
63
66
  });
64
67
  _defineProperty(this, "filterConfig", function (item) {
65
68
  return {
69
+ searchDefaultConditions: SYMBOL.like,
66
70
  type: item.type,
67
- id: "".concat(item.id, "_ordinaryMoney"),
68
- name: "".concat(item.name, "-\u5F00\u7968\u91D1\u989D"),
71
+ id: "".concat(item.id, "_ordinaryTaitou"),
72
+ name: "".concat(item.name, "-\u53D1\u7968\u62AC\u5934"),
69
73
  filterComponentType: 'Input',
70
74
  filterFn: function filterFn(value) {
71
75
  return function (i) {
72
- return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryMoney')).includes(value);
76
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryTaitou')).includes(value);
73
77
  };
74
78
  }
75
79
  };
76
80
  });
77
81
  this.name = '发票抬头';
78
82
  this.id = "".concat(options.id, "_ordinaryTaitou");
83
+ this.sortField = "".concat(options.id, "_ordinaryTaitou");
79
84
  this.type = options.type;
80
85
  this.componentConfig = options.componentConfig;
81
86
  this.rules = [];
@@ -83,6 +88,7 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
83
88
  this.effects = options.effects;
84
89
  this.width = 200;
85
90
  this.isCombinationComponent = false;
91
+ this.canSort = true;
86
92
  this.children = [];
87
93
  });
88
94
  export default OrdinaryHeader;
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  declare class OrdinaryMoney implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  rules: any[];
8
9
  componentConfig: ComponentInterface["componentConfig"];
@@ -10,6 +11,7 @@ declare class OrdinaryMoney implements ComponentInterface {
10
11
  align: ALignType;
11
12
  width: number;
12
13
  isCombinationComponent: boolean;
14
+ canSort: boolean;
13
15
  children: ComponentInterface[];
14
16
  constructor(options: PickOption);
15
17
  renderPc: (value: unknown, r: Record) => any;
@@ -19,10 +21,18 @@ declare class OrdinaryMoney implements ComponentInterface {
19
21
  renderClient: (record: any) => React.JSX.Element | null;
20
22
  editRender: () => React.JSX.Element;
21
23
  filterConfig: (item: ColumnConfig) => {
24
+ searchDefaultConditions: "between";
22
25
  type: string;
23
26
  id: string;
24
27
  name: string;
25
- filterComponentType: "Input";
28
+ filterComponentType: "Rate";
29
+ rules: {
30
+ validator: (_: any, value: Array<number>) => Promise<void>;
31
+ }[];
32
+ props: {
33
+ placeholder: string[];
34
+ };
35
+ formatFilterValue: (val: Array<number | null>) => (number | null)[];
26
36
  filterFn: (value: string) => (i: Record) => boolean;
27
37
  };
28
38
  }
@@ -1,4 +1,7 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
2
5
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
6
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
7
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -10,11 +13,13 @@ import GetFormItem from "../GetFormItem";
10
13
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
11
14
  import ItemView from "../../commonComponents/ItemView";
12
15
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
16
+ import { SYMBOL } from "../../constant";
13
17
  var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
14
18
  var _this = this;
15
19
  _classCallCheck(this, OrdinaryMoney);
16
20
  _defineProperty(this, "name", void 0);
17
21
  _defineProperty(this, "id", void 0);
22
+ _defineProperty(this, "sortField", void 0);
18
23
  _defineProperty(this, "type", void 0);
19
24
  _defineProperty(this, "rules", void 0);
20
25
  _defineProperty(this, "componentConfig", void 0);
@@ -22,6 +27,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
22
27
  _defineProperty(this, "align", void 0);
23
28
  _defineProperty(this, "width", void 0);
24
29
  _defineProperty(this, "isCombinationComponent", void 0);
30
+ _defineProperty(this, "canSort", void 0);
25
31
  _defineProperty(this, "children", void 0);
26
32
  _defineProperty(this, "renderPc", function (value, r) {
27
33
  var _r;
@@ -56,19 +62,75 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
56
62
  });
57
63
  _defineProperty(this, "filterConfig", function (item) {
58
64
  return {
65
+ searchDefaultConditions: SYMBOL.between,
59
66
  type: item.type,
60
- id: "".concat(item.id, "_ordinaryTaitou"),
61
- name: "".concat(item.name, "-\u53D1\u7968\u62AC\u5934"),
62
- filterComponentType: 'Input',
67
+ id: "".concat(item.id, "_ordinaryMoney"),
68
+ name: "".concat(item.name, "-\u5F00\u7968\u91D1\u989D"),
69
+ filterComponentType: 'Rate',
70
+ rules: [{
71
+ validator: function () {
72
+ var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
73
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
74
+ while (1) switch (_context.prev = _context.next) {
75
+ case 0:
76
+ if (!((value === null || value === void 0 ? void 0 : value.length) > 0)) {
77
+ _context.next = 7;
78
+ break;
79
+ }
80
+ if (!(value !== null && value !== void 0 && value.every(function (v) {
81
+ return isNull(v);
82
+ }))) {
83
+ _context.next = 3;
84
+ break;
85
+ }
86
+ return _context.abrupt("return", Promise.resolve());
87
+ case 3:
88
+ if (!(value !== null && value !== void 0 && value.some(function (v) {
89
+ return isNull(v);
90
+ }))) {
91
+ _context.next = 5;
92
+ break;
93
+ }
94
+ return _context.abrupt("return", Promise.reject(new Error('请输入正确的金额区间范围')));
95
+ case 5:
96
+ if (!(value[0] > value[1])) {
97
+ _context.next = 7;
98
+ break;
99
+ }
100
+ return _context.abrupt("return", Promise.reject(new Error('开始金额必须小于结束金额')));
101
+ case 7:
102
+ case "end":
103
+ return _context.stop();
104
+ }
105
+ }, _callee);
106
+ }));
107
+ function validator(_x, _x2) {
108
+ return _validator.apply(this, arguments);
109
+ }
110
+ return validator;
111
+ }()
112
+ }],
113
+ props: {
114
+ placeholder: ['始-开票金额', '终-开票金额']
115
+ },
116
+ formatFilterValue: function formatFilterValue(val) {
117
+ if (val !== null && val !== void 0 && val.some(function (v) {
118
+ return isNull(v);
119
+ })) {
120
+ return [];
121
+ }
122
+ return val;
123
+ },
63
124
  filterFn: function filterFn(value) {
64
125
  return function (i) {
65
- return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryTaitou')).includes(value);
126
+ return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryMoney')).includes(value);
66
127
  };
67
128
  }
68
129
  };
69
130
  });
70
131
  this.name = '开票金额';
71
132
  this.id = "".concat(options.id, "_ordinaryMoney");
133
+ this.sortField = "".concat(options.id, "_ordinaryMoney");
72
134
  this.type = options.type;
73
135
  this.componentConfig = options.componentConfig;
74
136
  this.rules = [{
@@ -83,6 +145,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
83
145
  this.effects = options.effects;
84
146
  this.width = 200;
85
147
  this.isCombinationComponent = false;
148
+ this.canSort = true;
86
149
  this.children = [];
87
150
  });
88
151
  export default OrdinaryMoney;
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  declare class OrdinarySerial implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  rules: any[];
8
9
  canFilter: boolean;
@@ -15,6 +16,7 @@ declare class OrdinarySerial implements ComponentInterface {
15
16
  align: ALignType;
16
17
  width: number;
17
18
  isCombinationComponent: boolean;
19
+ canSort: boolean;
18
20
  children: ComponentInterface[];
19
21
  constructor(options: PickOption);
20
22
  renderClient: (record: any) => React.JSX.Element | null;
@@ -24,6 +26,7 @@ declare class OrdinarySerial implements ComponentInterface {
24
26
  renderExport: (value: any) => any;
25
27
  editRender: () => React.JSX.Element;
26
28
  filterConfig: (item: ColumnConfig) => {
29
+ searchDefaultConditions: "like";
27
30
  type: string;
28
31
  id: string;
29
32
  name: string;
@@ -10,11 +10,13 @@ import GetFormItem from "../GetFormItem";
10
10
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
11
11
  import ItemView from "../../commonComponents/ItemView";
12
12
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
13
+ import { SYMBOL } from "../../constant";
13
14
  var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options) {
14
15
  var _this = this;
15
16
  _classCallCheck(this, OrdinarySerial);
16
17
  _defineProperty(this, "name", void 0);
17
18
  _defineProperty(this, "id", void 0);
19
+ _defineProperty(this, "sortField", void 0);
18
20
  _defineProperty(this, "type", void 0);
19
21
  _defineProperty(this, "rules", void 0);
20
22
  _defineProperty(this, "canFilter", void 0);
@@ -27,6 +29,7 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
27
29
  _defineProperty(this, "align", void 0);
28
30
  _defineProperty(this, "width", void 0);
29
31
  _defineProperty(this, "isCombinationComponent", void 0);
32
+ _defineProperty(this, "canSort", void 0);
30
33
  _defineProperty(this, "children", void 0);
31
34
  _defineProperty(this, "renderClient", function (record) {
32
35
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -61,6 +64,7 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
61
64
  });
62
65
  _defineProperty(this, "filterConfig", function (item) {
63
66
  return {
67
+ searchDefaultConditions: SYMBOL.like,
64
68
  type: item.type,
65
69
  id: "".concat(item.id, "_ordinarySerial"),
66
70
  name: "".concat(item.name, "-\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7"),
@@ -74,6 +78,7 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
74
78
  });
75
79
  this.name = '纳税人识别号';
76
80
  this.id = "".concat(options.id, "_ordinarySerial");
81
+ this.sortField = "".concat(options.id, "_ordinarySerial");
77
82
  this.type = options.type;
78
83
  this.canFilter = true;
79
84
  this.canGroup = true;
@@ -86,6 +91,7 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
86
91
  this.effects = options.effects;
87
92
  this.width = 200;
88
93
  this.isCombinationComponent = false;
94
+ this.canSort = true;
89
95
  this.children = [];
90
96
  });
91
97
  export default OrdinarySerial;
@@ -6,6 +6,7 @@ import OrdinarySerial from './OrdinarySerial';
6
6
  declare class Ordinary implements ComponentInterface {
7
7
  name: string;
8
8
  id: string;
9
+ sortField: string;
9
10
  type: string;
10
11
  rules: any[];
11
12
  canFilter: boolean;
@@ -18,6 +19,7 @@ declare class Ordinary implements ComponentInterface {
18
19
  ordinaryHeader: OrdinaryHeader;
19
20
  ordinarySerial: OrdinarySerial;
20
21
  isCombinationComponent: boolean;
22
+ canSort: boolean;
21
23
  children: ComponentInterface[];
22
24
  constructor(options: PickOption);
23
25
  editRender: () => React.JSX.Element;
@@ -30,12 +32,27 @@ declare class Ordinary implements ComponentInterface {
30
32
  };
31
33
  renderExport: () => null;
32
34
  renderClient: (record: any) => React.JSX.Element;
33
- filterConfig: (item: ColumnConfig) => {
35
+ filterConfig: (item: ColumnConfig) => ({
36
+ searchDefaultConditions: "between";
37
+ type: string;
38
+ id: string;
39
+ name: string;
40
+ filterComponentType: "Rate";
41
+ rules: {
42
+ validator: (_: any, value: number[]) => Promise<void>;
43
+ }[];
44
+ props: {
45
+ placeholder: string[];
46
+ };
47
+ formatFilterValue: (val: (number | null)[]) => (number | null)[];
48
+ filterFn: (value: string) => (i: Record) => boolean;
49
+ } | {
50
+ searchDefaultConditions: "like";
34
51
  type: string;
35
52
  id: string;
36
53
  name: string;
37
54
  filterComponentType: "Input";
38
55
  filterFn: (value: string) => (i: Record) => boolean;
39
- }[];
56
+ })[];
40
57
  }
41
58
  export default Ordinary;
@@ -19,6 +19,7 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
19
19
  _classCallCheck(this, Ordinary);
20
20
  _defineProperty(this, "name", void 0);
21
21
  _defineProperty(this, "id", void 0);
22
+ _defineProperty(this, "sortField", void 0);
22
23
  _defineProperty(this, "type", void 0);
23
24
  _defineProperty(this, "rules", void 0);
24
25
  _defineProperty(this, "canFilter", void 0);
@@ -31,6 +32,7 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
31
32
  _defineProperty(this, "ordinaryHeader", void 0);
32
33
  _defineProperty(this, "ordinarySerial", void 0);
33
34
  _defineProperty(this, "isCombinationComponent", void 0);
35
+ _defineProperty(this, "canSort", void 0);
34
36
  _defineProperty(this, "children", void 0);
35
37
  _defineProperty(this, "editRender", function () {
36
38
  var _this$componentConfig, _this$componentConfig2;
@@ -66,6 +68,7 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
66
68
  });
67
69
  this.name = options.name;
68
70
  this.id = options.id;
71
+ this.sortField = options.id;
69
72
  this.type = options.type;
70
73
  this.canFilter = false;
71
74
  this.canGroup = false;
@@ -77,6 +80,7 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
77
80
  this.ordinaryHeader = new OrdinaryHeader(options);
78
81
  this.ordinarySerial = new OrdinarySerial(options);
79
82
  this.isCombinationComponent = true;
83
+ this.canSort = false;
80
84
  this.children = [this.ordinaryHeader, this.ordinaryMoney, this.ordinarySerial];
81
85
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
82
86
  validator: function validator(_, value) {
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  declare class PaymentTid implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  rules: any[];
8
9
  componentConfig: ComponentInterface["componentConfig"];
@@ -10,6 +11,7 @@ declare class PaymentTid implements ComponentInterface {
10
11
  align: ALignType;
11
12
  width: number;
12
13
  isCombinationComponent: boolean;
14
+ canSort: boolean;
13
15
  children: ComponentInterface[];
14
16
  constructor(options: PickOption);
15
17
  renderClient: (record: any) => React.JSX.Element | null;
@@ -19,6 +21,7 @@ declare class PaymentTid implements ComponentInterface {
19
21
  renderExport: (value: any, record: Record) => any;
20
22
  editRender: () => React.JSX.Element;
21
23
  filterConfig: (item: ColumnConfig) => {
24
+ searchDefaultConditions: "eq";
22
25
  type: string;
23
26
  id: string;
24
27
  name: string;
@@ -10,11 +10,13 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
10
10
  import GetFormItem from "../GetFormItem";
11
11
  import ItemView from "../../commonComponents/ItemView";
12
12
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
13
+ import { SYMBOL } from "../../constant";
13
14
  var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
14
15
  var _this = this;
15
16
  _classCallCheck(this, PaymentTid);
16
17
  _defineProperty(this, "name", void 0);
17
18
  _defineProperty(this, "id", void 0);
19
+ _defineProperty(this, "sortField", void 0);
18
20
  _defineProperty(this, "type", void 0);
19
21
  _defineProperty(this, "rules", void 0);
20
22
  _defineProperty(this, "componentConfig", void 0);
@@ -22,6 +24,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
22
24
  _defineProperty(this, "align", void 0);
23
25
  _defineProperty(this, "width", void 0);
24
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "canSort", void 0);
25
28
  _defineProperty(this, "children", void 0);
26
29
  _defineProperty(this, "renderClient", function (record) {
27
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -65,6 +68,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
65
68
  });
66
69
  _defineProperty(this, "filterConfig", function (item) {
67
70
  return {
71
+ searchDefaultConditions: SYMBOL.eq,
68
72
  type: item.type,
69
73
  id: "".concat(item.id, "_enterprisePaymentAlipayNick"),
70
74
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u59D3\u540D"),
@@ -78,6 +82,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
78
82
  });
79
83
  this.name = '支付宝姓名';
80
84
  this.id = "".concat(options.id, "_enterprisePaymentAlipayNick");
85
+ this.sortField = "".concat(options.id, "_enterprisePaymentAlipayNick");
81
86
  this.type = options.type;
82
87
  this.componentConfig = options.componentConfig;
83
88
  this.effects = options.effects;
@@ -85,6 +90,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
85
90
  this.align = 'left';
86
91
  this.width = 200;
87
92
  this.isCombinationComponent = false;
93
+ this.canSort = true;
88
94
  this.children = [];
89
95
  });
90
96
  export default PaymentTid;
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  declare class AlipayNo implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  rules: any[];
8
9
  componentConfig: ComponentInterface["componentConfig"];
@@ -10,6 +11,7 @@ declare class AlipayNo implements ComponentInterface {
10
11
  align: ALignType;
11
12
  width: number;
12
13
  isCombinationComponent: boolean;
14
+ canSort: boolean;
13
15
  children: ComponentInterface[];
14
16
  constructor(options: PickOption);
15
17
  renderClient: (record: any) => React.JSX.Element | null;
@@ -19,6 +21,7 @@ declare class AlipayNo implements ComponentInterface {
19
21
  renderExport: (value: any, record: Record) => any;
20
22
  editRender: () => React.JSX.Element;
21
23
  filterConfig: (item: ColumnConfig) => {
24
+ searchDefaultConditions: "eq";
22
25
  type: string;
23
26
  id: string;
24
27
  name: string;
@@ -10,11 +10,13 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
10
10
  import GetFormItem from "../GetFormItem";
11
11
  import ItemView from "../../commonComponents/ItemView";
12
12
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
13
+ import { SYMBOL } from "../../constant";
13
14
  var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
14
15
  var _this = this;
15
16
  _classCallCheck(this, AlipayNo);
16
17
  _defineProperty(this, "name", void 0);
17
18
  _defineProperty(this, "id", void 0);
19
+ _defineProperty(this, "sortField", void 0);
18
20
  _defineProperty(this, "type", void 0);
19
21
  _defineProperty(this, "rules", void 0);
20
22
  _defineProperty(this, "componentConfig", void 0);
@@ -22,6 +24,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
22
24
  _defineProperty(this, "align", void 0);
23
25
  _defineProperty(this, "width", void 0);
24
26
  _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "canSort", void 0);
25
28
  _defineProperty(this, "children", void 0);
26
29
  _defineProperty(this, "renderClient", function (record) {
27
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -65,6 +68,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
65
68
  });
66
69
  _defineProperty(this, "filterConfig", function (item) {
67
70
  return {
71
+ searchDefaultConditions: SYMBOL.eq,
68
72
  type: item.type,
69
73
  id: "".concat(item.id, "_enterprisePaymentAlipayNo"),
70
74
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
@@ -78,11 +82,13 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
78
82
  });
79
83
  this.name = '支付宝账号';
80
84
  this.id = "".concat(options.id, "_enterprisePaymentAlipayNo");
85
+ this.sortField = "".concat(options.id, "_enterprisePaymentAlipayNo");
81
86
  this.type = options.type;
82
87
  this.componentConfig = options.componentConfig;
83
88
  this.effects = options.effects;
84
89
  this.width = 200;
85
90
  this.isCombinationComponent = false;
91
+ this.canSort = true;
86
92
  this.children = [];
87
93
  this.rules = [{
88
94
  validator: function validator(_, value) {
@@ -3,26 +3,30 @@ import React from 'react';
3
3
  declare class AlipayTime implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
+ sortField: string;
6
7
  type: string;
7
8
  rules: any[];
8
9
  componentConfig: ComponentInterface["componentConfig"];
9
10
  align: ALignType;
10
11
  width: number;
11
12
  isCombinationComponent: boolean;
13
+ canSort: boolean;
12
14
  children: ComponentInterface[];
13
15
  constructor(options: PickOption);
14
16
  renderClient: (record: Record) => React.JSX.Element | null;
15
- renderPc: (value: unknown, record: Record) => React.JSX.Element;
16
- renderLog: (r: Record) => React.JSX.Element | null;
17
+ renderPc: (value: unknown, record: Record) => any;
18
+ renderLog: (r: Record) => any;
17
19
  getComponentValue: (r: Record) => any;
18
20
  renderExport: (value: string) => string | null;
19
21
  editRender: () => React.JSX.Element;
20
22
  filterConfig: (item: ColumnConfig) => {
23
+ searchDefaultConditions: "between";
21
24
  type: string;
22
25
  id: string;
23
26
  name: string;
24
27
  filterComponentType: "Date";
25
28
  filterFn: (value: string[]) => (i: Record) => boolean;
29
+ formatFilterValue: (val: Array<any>) => number[] | undefined;
26
30
  };
27
31
  }
28
32
  export default AlipayTime;