@kmkf-fe-packages/services-components 0.6.3 → 0.7.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/README.md +2 -0
  2. package/dist/esm/commonComponents/ItemView/index.d.ts +1 -1
  3. package/dist/esm/commonComponents/OperationLog/index.d.ts +8 -0
  4. package/dist/esm/commonComponents/OperationLog/index.js +127 -0
  5. package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +7 -0
  6. package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
  7. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +9 -0
  8. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +92 -0
  9. package/dist/esm/commonComponents/ShopList/index.d.ts +13 -0
  10. package/dist/esm/commonComponents/ShopList/index.js +34 -0
  11. package/dist/esm/components/ActualPayment/index.d.ts +12 -13
  12. package/dist/esm/components/ActualPayment/index.js +28 -26
  13. package/dist/esm/components/Address/index.d.ts +9 -16
  14. package/dist/esm/components/Address/index.js +17 -26
  15. package/dist/esm/components/Alipay/index.d.ts +15 -19
  16. package/dist/esm/components/Alipay/index.js +15 -20
  17. package/dist/esm/components/AlipayAccount/index.d.ts +13 -15
  18. package/dist/esm/components/AlipayAccount/index.js +29 -28
  19. package/dist/esm/components/AlipayName/index.d.ts +13 -15
  20. package/dist/esm/components/AlipayName/index.js +29 -28
  21. package/dist/esm/components/BuyerNick/index.d.ts +14 -15
  22. package/dist/esm/components/BuyerNick/index.js +41 -28
  23. package/dist/esm/components/Cascader/index.d.ts +13 -25
  24. package/dist/esm/components/Cascader/index.js +38 -31
  25. package/dist/esm/components/Checkbox/index.d.ts +15 -11
  26. package/dist/esm/components/Checkbox/index.js +45 -26
  27. package/dist/esm/components/CommonDataTime/index.d.ts +11 -11
  28. package/dist/esm/components/CommonDataTime/index.js +27 -24
  29. package/dist/esm/components/CompletedUser/index.d.ts +30 -0
  30. package/dist/esm/components/CompletedUser/index.js +64 -0
  31. package/dist/esm/components/DataTime/index.d.ts +12 -11
  32. package/dist/esm/components/DataTime/index.js +30 -26
  33. package/dist/esm/components/EItemEnCode/index.d.ts +11 -11
  34. package/dist/esm/components/EItemEnCode/index.js +34 -27
  35. package/dist/esm/components/EItemId/index.d.ts +11 -11
  36. package/dist/esm/components/EItemId/index.js +34 -27
  37. package/dist/esm/components/EItemSelect/index.d.ts +6 -12
  38. package/dist/esm/components/EItemSelect/index.js +16 -24
  39. package/dist/esm/components/ErpTradeId/index.d.ts +12 -13
  40. package/dist/esm/components/ErpTradeId/index.js +28 -26
  41. package/dist/esm/components/Express/index.d.ts +15 -17
  42. package/dist/esm/components/Express/index.js +30 -36
  43. package/dist/esm/components/ExpressCode/index.d.ts +16 -18
  44. package/dist/esm/components/ExpressCode/index.js +34 -32
  45. package/dist/esm/components/FlowStatusSelect/index.d.ts +16 -34
  46. package/dist/esm/components/FlowStatusSelect/index.js +38 -25
  47. package/dist/esm/components/GetFormItem/index.d.ts +3 -3
  48. package/dist/esm/components/GetFormItem/index.js +3 -3
  49. package/dist/esm/components/Grade/index.d.ts +6 -12
  50. package/dist/esm/components/Grade/index.js +14 -23
  51. package/dist/esm/components/Handler/index.d.ts +32 -0
  52. package/dist/esm/components/Handler/index.js +74 -0
  53. package/dist/esm/components/Input/index.d.ts +11 -12
  54. package/dist/esm/components/Input/index.js +29 -28
  55. package/dist/esm/components/JstItemSelect/index.d.ts +13 -13
  56. package/dist/esm/components/JstItemSelect/index.js +48 -28
  57. package/dist/esm/components/JstLogistics/index.d.ts +21 -13
  58. package/dist/esm/components/JstLogistics/index.js +50 -29
  59. package/dist/esm/components/JstSendGood/index.d.ts +12 -12
  60. package/dist/esm/components/JstSendGood/index.js +54 -29
  61. package/dist/esm/components/JstSupply/index.d.ts +12 -12
  62. package/dist/esm/components/JstSupply/index.js +54 -29
  63. package/dist/esm/components/Logistics/index.d.ts +23 -27
  64. package/dist/esm/components/Logistics/index.js +19 -20
  65. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +33 -0
  66. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +134 -0
  67. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
  68. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
  69. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +36 -0
  70. package/dist/esm/components/LogisticsInterception/InterceptType.js +84 -0
  71. package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
  72. package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
  73. package/dist/esm/components/LogisticsInterception/index.d.ts +75 -0
  74. package/dist/esm/components/LogisticsInterception/index.js +136 -0
  75. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
  76. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
  77. package/dist/esm/components/MultSelect/index.d.ts +12 -12
  78. package/dist/esm/components/MultSelect/index.js +31 -24
  79. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +11 -22
  80. package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -32
  81. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -22
  82. package/dist/esm/components/Ordinary/OrdinaryMoney.js +25 -31
  83. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +11 -17
  84. package/dist/esm/components/Ordinary/OrdinarySerial.js +26 -22
  85. package/dist/esm/components/Ordinary/index.d.ts +17 -24
  86. package/dist/esm/components/Ordinary/index.js +20 -12
  87. package/dist/esm/components/Payment/AlipayNick.d.ts +11 -22
  88. package/dist/esm/components/Payment/AlipayNick.js +29 -34
  89. package/dist/esm/components/Payment/AlipayNo.d.ts +11 -21
  90. package/dist/esm/components/Payment/AlipayNo.js +29 -34
  91. package/dist/esm/components/Payment/AlipayTime.d.ts +11 -23
  92. package/dist/esm/components/Payment/AlipayTime.js +26 -35
  93. package/dist/esm/components/Payment/BuyerNick.d.ts +11 -22
  94. package/dist/esm/components/Payment/BuyerNick.js +26 -32
  95. package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -22
  96. package/dist/esm/components/Payment/PaymentAmount.js +24 -30
  97. package/dist/esm/components/Payment/PaymentStatus.d.ts +17 -29
  98. package/dist/esm/components/Payment/PaymentStatus.js +48 -41
  99. package/dist/esm/components/Payment/PaymentTid.d.ts +11 -22
  100. package/dist/esm/components/Payment/PaymentTid.js +24 -30
  101. package/dist/esm/components/Payment/index.d.ts +36 -97
  102. package/dist/esm/components/Payment/index.js +22 -20
  103. package/dist/esm/components/Picture/index.d.ts +11 -11
  104. package/dist/esm/components/Picture/index.js +14 -19
  105. package/dist/esm/components/PlatForm/index.d.ts +31 -0
  106. package/dist/esm/components/PlatForm/index.js +67 -0
  107. package/dist/esm/components/Radio/index.d.ts +15 -10
  108. package/dist/esm/components/Radio/index.js +34 -20
  109. package/dist/esm/components/Rate/index.d.ts +6 -11
  110. package/dist/esm/components/Rate/index.js +17 -30
  111. package/dist/esm/components/ReceiverAddress/index.d.ts +11 -14
  112. package/dist/esm/components/ReceiverAddress/index.js +22 -29
  113. package/dist/esm/components/ReceiverMobile/index.d.ts +11 -12
  114. package/dist/esm/components/ReceiverMobile/index.js +29 -27
  115. package/dist/esm/components/ReceiverName/index.d.ts +11 -12
  116. package/dist/esm/components/ReceiverName/index.js +29 -27
  117. package/dist/esm/components/Remark/index.d.ts +14 -11
  118. package/dist/esm/components/Remark/index.js +31 -23
  119. package/dist/esm/components/ReturnLogistics/index.d.ts +26 -25
  120. package/dist/esm/components/ReturnLogistics/index.js +19 -10
  121. package/dist/esm/components/Select/index.d.ts +12 -11
  122. package/dist/esm/components/Select/index.js +28 -23
  123. package/dist/esm/components/ShopInput/index.d.ts +28 -0
  124. package/dist/esm/components/ShopInput/index.js +76 -0
  125. package/dist/esm/components/ShopName/index.d.ts +12 -13
  126. package/dist/esm/components/ShopName/index.js +28 -25
  127. package/dist/esm/components/Submitter/index.d.ts +30 -0
  128. package/dist/esm/components/Submitter/index.js +64 -0
  129. package/dist/esm/components/SystemOrderNo/index.d.ts +13 -14
  130. package/dist/esm/components/SystemOrderNo/index.js +27 -25
  131. package/dist/esm/components/TemplateSelect/index.d.ts +13 -13
  132. package/dist/esm/components/TemplateSelect/index.js +29 -24
  133. package/dist/esm/components/TextArea/index.d.ts +11 -11
  134. package/dist/esm/components/TextArea/index.js +27 -24
  135. package/dist/esm/components/ThirdItemSelect/index.d.ts +11 -11
  136. package/dist/esm/components/ThirdItemSelect/index.js +36 -28
  137. package/dist/esm/components/TradeDateTime/index.d.ts +13 -5
  138. package/dist/esm/components/TradeDateTime/index.js +52 -17
  139. package/dist/esm/components/TradeId/index.d.ts +11 -6
  140. package/dist/esm/components/TradeId/index.js +27 -14
  141. package/dist/esm/components/WorkOrderId/index.d.ts +11 -12
  142. package/dist/esm/components/WorkOrderId/index.js +36 -29
  143. package/dist/esm/factory.d.ts +3 -0
  144. package/dist/esm/factory.js +105 -0
  145. package/dist/esm/index.d.ts +52 -40
  146. package/dist/esm/index.js +13 -1
  147. package/dist/esm/type.d.ts +53 -45
  148. package/package.json +10 -5
@@ -1,6 +1,4 @@
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
3
  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); } }
6
4
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -14,7 +12,7 @@ import GetFormItem from "../GetFormItem";
14
12
  import { GoodImage } from "../Common";
15
13
  import { JstItemList } from '@kmkf-fe-packages/basic-components';
16
14
  import ItemView from "../../commonComponents/ItemView";
17
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
18
16
  var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
19
17
  var _this = this,
20
18
  _this$componentConfig;
@@ -23,26 +21,19 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
23
21
  _defineProperty(this, "id", void 0);
24
22
  _defineProperty(this, "type", void 0);
25
23
  _defineProperty(this, "rules", void 0);
26
- _defineProperty(this, "canFilter", void 0);
27
- _defineProperty(this, "canGroup", void 0);
28
- _defineProperty(this, "canHidden", void 0);
29
- _defineProperty(this, "dataType", void 0);
30
- _defineProperty(this, "showContains", void 0);
31
24
  _defineProperty(this, "componentConfig", void 0);
32
25
  _defineProperty(this, "align", void 0);
33
26
  _defineProperty(this, "expressDateInstance", void 0);
34
- _defineProperty(this, "render", function (value) {
35
- //兼容多个商品
36
- return /*#__PURE__*/React.createElement(GoodImage, {
37
- list: value,
38
- type: "jstItemThird"
39
- });
40
- });
27
+ _defineProperty(this, "isCombinationComponent", void 0);
28
+ _defineProperty(this, "children", void 0);
41
29
  _defineProperty(this, "renderClient", function (record) {
42
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
43
31
  id: _this.id,
44
32
  label: _this.name,
45
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
33
+ value: /*#__PURE__*/React.createElement(GoodImage, {
34
+ list: record === null || record === void 0 ? void 0 : record[_this.id],
35
+ type: "jstItemThird"
36
+ })
46
37
  }) : null;
47
38
  });
48
39
  _defineProperty(this, "renderPc", function (value, record) {
@@ -53,6 +44,14 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
53
44
  type: "jstItemThird"
54
45
  });
55
46
  });
47
+ _defineProperty(this, "renderLog", function (r) {
48
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
49
+ if (isNull(list)) return null;
50
+ return _this.renderPc(undefined, r);
51
+ });
52
+ _defineProperty(this, "getComponentValue", function (r) {
53
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
54
+ });
56
55
  _defineProperty(this, "renderExport", function (value, record) {
57
56
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
58
57
  return (list || []).map(function (item) {
@@ -70,23 +69,44 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
70
69
  }))
71
70
  });
72
71
  });
73
- _defineProperty(this, "getColumns", function () {
74
- return _objectSpread(_objectSpread({}, _this), {}, {
75
- dataIndex: _this.id,
76
- title: _this.name,
77
- renderExport: _this.renderExport
78
- });
79
- ;
72
+ _defineProperty(this, "filterConfig", function (item) {
73
+ var _ref2;
74
+ return [(_ref2 = {
75
+ type: item.type,
76
+ id: "".concat(item.id, "_itemId"),
77
+ name: "jst\u4F9B\u5E94\u5546\u7F16\u7801"
78
+ }, _defineProperty(_ref2, "type", item.type), _defineProperty(_ref2, "filterComponentType", 'Input'), _defineProperty(_ref2, "filterFn", function filterFn(value) {
79
+ return function (i) {
80
+ var _ref;
81
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
82
+ var _String;
83
+ var id = item !== null && item !== void 0 && item.itemId ? (_String = String(item === null || item === void 0 ? void 0 : item.itemId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
84
+ return id;
85
+ });
86
+ };
87
+ }), _ref2), {
88
+ type: item.type,
89
+ id: "".concat(item.id, "_supplierName"),
90
+ name: "jst\u4F9B\u5E94\u5546\u540D\u79F0",
91
+ filterComponentType: 'Input',
92
+ filterFn: function filterFn(value) {
93
+ return function (i) {
94
+ var _ref3;
95
+ return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
96
+ var _String2;
97
+ var name = item !== null && item !== void 0 && item.supplierName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.supplierName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
98
+ return name;
99
+ });
100
+ };
101
+ }
102
+ }];
80
103
  });
81
104
  this.name = options.name;
82
105
  this.id = options.id;
83
106
  this.type = options.type;
84
- this.canFilter = false;
85
- this.canGroup = false;
86
- this.canHidden = true;
87
- this.showContains = false;
88
- this.dataType = 'string';
89
107
  this.componentConfig = options.componentConfig;
108
+ this.isCombinationComponent = false;
109
+ this.children = [];
90
110
  this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
91
111
  required: true,
92
112
  validator: function validator(_, value) {
@@ -1,29 +1,37 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class JstLogistics implements ComponentInterface {
5
5
  name: string;
6
6
  id: string;
7
7
  type: string;
8
8
  rules: any[];
9
- canFilter: boolean;
10
- canGroup: boolean;
11
- canHidden: boolean;
12
- dataType: DataType;
13
- showContains: boolean;
14
9
  componentConfig: ComponentInterface["componentConfig"];
15
10
  align: ALignType;
16
- expressDateInstance: ExpressData;
11
+ expressDateInstance: InstanceType<typeof ExpressData>;
12
+ isCombinationComponent: boolean;
13
+ children: ComponentInterface[];
17
14
  constructor(options: PickOption);
18
- render: (value: any) => JSX.Element;
19
15
  renderClient: (record: any) => JSX.Element | null;
20
16
  renderPc: (value: any, record: Record) => JSX.Element;
17
+ renderLog: (r: Record) => JSX.Element | null;
18
+ getComponentValue: (r: Record) => any;
21
19
  renderExport: (value: any, record: any) => any;
22
20
  editRender: () => JSX.Element;
23
- getColumns: () => this & {
24
- dataIndex: string;
25
- title: string;
26
- renderExport: (value: any, record: any) => any;
27
- };
21
+ filterConfig: (item: ColumnConfig) => ({
22
+ type: string;
23
+ id: string;
24
+ name: string;
25
+ filterComponentType: "Input";
26
+ filterFn: (value: string) => (i: Record) => boolean;
27
+ options?: undefined;
28
+ } | {
29
+ type: string;
30
+ id: string;
31
+ name: string;
32
+ filterComponentType: "MultipleSelect";
33
+ options: any[];
34
+ filterFn: (value: string) => (i: Record) => any;
35
+ })[];
28
36
  }
29
37
  export default JstLogistics;
@@ -1,6 +1,4 @@
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
3
  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); } }
6
4
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -10,11 +8,12 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
10
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); }
11
9
  import React from 'react';
12
10
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
11
+ import some from 'lodash/some';
13
12
  import GetFormItem from "../GetFormItem";
14
13
  import { JstGoodImage } from "../Common";
15
14
  import { JstGoods } from '@kmkf-fe-packages/basic-components';
16
15
  import ItemView from "../../commonComponents/ItemView";
17
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
16
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
18
17
  var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
19
18
  var _this = this,
20
19
  _this$componentConfig3;
@@ -23,26 +22,22 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
23
22
  _defineProperty(this, "id", void 0);
24
23
  _defineProperty(this, "type", void 0);
25
24
  _defineProperty(this, "rules", void 0);
26
- _defineProperty(this, "canFilter", void 0);
27
- _defineProperty(this, "canGroup", void 0);
28
- _defineProperty(this, "canHidden", void 0);
29
- _defineProperty(this, "dataType", void 0);
30
- _defineProperty(this, "showContains", void 0);
31
25
  _defineProperty(this, "componentConfig", void 0);
32
26
  _defineProperty(this, "align", void 0);
33
27
  _defineProperty(this, "expressDateInstance", void 0);
34
- _defineProperty(this, "render", function (value) {
35
- //兼容多个商品
36
- return /*#__PURE__*/React.createElement(JstGoodImage, {
37
- list: value,
38
- type: 1
39
- });
40
- });
28
+ _defineProperty(this, "isCombinationComponent", void 0);
29
+ _defineProperty(this, "children", void 0);
41
30
  _defineProperty(this, "renderClient", function (record) {
42
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
31
+ var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
32
+ return !isNull(item);
33
+ }) : false;
34
+ return isShow ? /*#__PURE__*/React.createElement(ItemView, {
43
35
  id: _this.id,
44
36
  label: _this.name,
45
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
37
+ value: /*#__PURE__*/React.createElement(JstGoodImage, {
38
+ list: record === null || record === void 0 ? void 0 : record[_this.id],
39
+ type: 1
40
+ })
46
41
  }) : null;
47
42
  });
48
43
  _defineProperty(this, "renderPc", function (value, record) {
@@ -53,6 +48,14 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
53
48
  type: 1
54
49
  });
55
50
  });
51
+ _defineProperty(this, "renderLog", function (r) {
52
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
53
+ if (isNull(list)) return null;
54
+ return _this.renderPc(undefined, r);
55
+ });
56
+ _defineProperty(this, "getComponentValue", function (r) {
57
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
58
+ });
56
59
  _defineProperty(this, "renderExport", function (value, record) {
57
60
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
58
61
  return (list || []).map(function (item) {
@@ -72,23 +75,41 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
72
75
  }))
73
76
  });
74
77
  });
75
- _defineProperty(this, "getColumns", function () {
76
- return _objectSpread(_objectSpread({}, _this), {}, {
77
- dataIndex: _this.id,
78
- title: _this.name,
79
- renderExport: _this.renderExport
80
- });
81
- ;
78
+ _defineProperty(this, "filterConfig", function (item) {
79
+ return [{
80
+ type: item.type,
81
+ id: "".concat(item.id, "_logisticsCode"),
82
+ name: "jst\u7269\u6D41\u5355\u53F7",
83
+ filterComponentType: 'Input',
84
+ filterFn: function filterFn(value) {
85
+ return function (i) {
86
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCode'), value);
87
+ };
88
+ }
89
+ }, {
90
+ type: item.type,
91
+ id: "".concat(item.id, "_logisticsCompany"),
92
+ name: "jst\u7269\u6D41\u516C\u53F8",
93
+ filterComponentType: 'MultipleSelect',
94
+ options: _this.expressDateInstance.getExpressData() || [],
95
+ filterFn: function filterFn(value) {
96
+ return function (i) {
97
+ var _ref;
98
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'logisticsCompany').split(',') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
99
+ var _String;
100
+ var logisticsCompany = item ? (_String = String(item)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
101
+ return logisticsCompany;
102
+ });
103
+ };
104
+ }
105
+ }];
82
106
  });
83
107
  this.name = options.name;
84
108
  this.id = options.id;
85
109
  this.type = options.type;
86
- this.canFilter = false;
87
- this.canGroup = false;
88
- this.canHidden = true;
89
- this.showContains = false;
90
- this.dataType = 'string';
91
110
  this.componentConfig = options.componentConfig;
111
+ this.isCombinationComponent = false;
112
+ this.children = [];
92
113
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
93
114
  required: true,
94
115
  validator: function validator(_, value) {
@@ -1,27 +1,27 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  declare class JstSendGood implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  type: string;
7
7
  rules: any[];
8
- canFilter: boolean;
9
- canGroup: boolean;
10
- canHidden: boolean;
11
- dataType: DataType;
12
- showContains: boolean;
13
8
  componentConfig: ComponentInterface["componentConfig"];
14
9
  align: ALignType;
10
+ isCombinationComponent: boolean;
11
+ children: ComponentInterface[];
15
12
  constructor(options: PickOption);
16
- render: (value: any) => JSX.Element;
17
13
  renderClient: (record: Record) => JSX.Element | null;
18
14
  renderPc: (value: any, record: Record) => JSX.Element;
15
+ renderLog: (r: Record) => JSX.Element | null;
16
+ getComponentValue: (r: Record) => any;
19
17
  renderExport: (value: any, record: any) => any;
20
18
  editRender: () => JSX.Element;
21
- getColumns: () => this & {
22
- dataIndex: string;
23
- title: string;
24
- renderExport: (value: any, record: any) => any;
25
- };
19
+ filterConfig: (item: ColumnConfig) => {
20
+ type: string;
21
+ id: string;
22
+ name: string;
23
+ filterComponentType: "Input";
24
+ filterFn: (value: string) => (i: Record) => any;
25
+ }[];
26
26
  }
27
27
  export default JstSendGood;
@@ -1,6 +1,4 @@
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
3
  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); } }
6
4
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -9,11 +7,12 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
9
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
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); }
11
9
  import React from 'react';
10
+ import some from 'lodash/some';
12
11
  import GetFormItem from "../GetFormItem";
13
12
  import { JstGoodImage } from "../Common";
14
13
  import { JstGoods } from '@kmkf-fe-packages/basic-components';
15
14
  import ItemView from "../../commonComponents/ItemView";
16
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
17
16
  var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
18
17
  var _this = this,
19
18
  _this$componentConfig;
@@ -22,25 +21,21 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
22
21
  _defineProperty(this, "id", void 0);
23
22
  _defineProperty(this, "type", void 0);
24
23
  _defineProperty(this, "rules", void 0);
25
- _defineProperty(this, "canFilter", void 0);
26
- _defineProperty(this, "canGroup", void 0);
27
- _defineProperty(this, "canHidden", void 0);
28
- _defineProperty(this, "dataType", void 0);
29
- _defineProperty(this, "showContains", void 0);
30
24
  _defineProperty(this, "componentConfig", void 0);
31
25
  _defineProperty(this, "align", void 0);
32
- _defineProperty(this, "render", function (value) {
33
- //兼容多个商品
34
- return /*#__PURE__*/React.createElement(JstGoodImage, {
35
- list: value,
36
- type: 3
37
- });
38
- });
26
+ _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "children", void 0);
39
28
  _defineProperty(this, "renderClient", function (record) {
40
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
29
+ var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
30
+ return !isNull(item);
31
+ }) : false;
32
+ return isShow ? /*#__PURE__*/React.createElement(ItemView, {
41
33
  id: _this.id,
42
34
  label: _this.name,
43
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
35
+ value: /*#__PURE__*/React.createElement(JstGoodImage, {
36
+ list: record === null || record === void 0 ? void 0 : record[_this.id],
37
+ type: 3
38
+ })
44
39
  }) : null;
45
40
  });
46
41
  _defineProperty(this, "renderPc", function (value, record) {
@@ -51,6 +46,14 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
51
46
  type: 3
52
47
  });
53
48
  });
49
+ _defineProperty(this, "renderLog", function (r) {
50
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
51
+ if (isNull(list)) return null;
52
+ return _this.renderPc(undefined, r);
53
+ });
54
+ _defineProperty(this, "getComponentValue", function (r) {
55
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
56
+ });
54
57
  _defineProperty(this, "renderExport", function (value, record) {
55
58
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
56
59
  return (list || []).map(function (item) {
@@ -68,22 +71,42 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
68
71
  }))
69
72
  });
70
73
  });
71
- _defineProperty(this, "getColumns", function () {
72
- return _objectSpread(_objectSpread({}, _this), {}, {
73
- dataIndex: _this.id,
74
- title: _this.name,
75
- renderExport: _this.renderExport
76
- });
77
- ;
74
+ _defineProperty(this, "filterConfig", function (item) {
75
+ return [{
76
+ type: item.type,
77
+ id: "".concat(item.id, "_sendName"),
78
+ name: "jst\u53D1\u8D27\u4ED3\u540D\u79F0",
79
+ filterComponentType: 'Input',
80
+ filterFn: function filterFn(value) {
81
+ return function (i) {
82
+ var _ref;
83
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
84
+ var _String;
85
+ var name = item !== null && item !== void 0 && item.sendName ? (_String = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
86
+ return name;
87
+ });
88
+ };
89
+ }
90
+ }, {
91
+ type: item.type,
92
+ id: "".concat(item.id, "_sendId"),
93
+ name: "jst\u53D1\u8D27\u4ED3\u7F16\u7801",
94
+ filterComponentType: 'Input',
95
+ filterFn: function filterFn(value) {
96
+ return function (i) {
97
+ var _ref2;
98
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
99
+ var _String2;
100
+ var id = item !== null && item !== void 0 && item.sendId ? (_String2 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
101
+ return id;
102
+ });
103
+ };
104
+ }
105
+ }];
78
106
  });
79
107
  this.name = options.name;
80
108
  this.id = options.id;
81
109
  this.type = options.type;
82
- this.canFilter = false;
83
- this.canGroup = false;
84
- this.canHidden = true;
85
- this.showContains = false;
86
- this.dataType = 'string';
87
110
  this.componentConfig = options.componentConfig;
88
111
  this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
89
112
  required: true,
@@ -108,5 +131,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(options) {
108
131
  }
109
132
  }] : [];
110
133
  this.align = 'left';
134
+ this.isCombinationComponent = false;
135
+ this.children = [];
111
136
  });
112
137
  export default JstSendGood;
@@ -1,27 +1,27 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
3
3
  declare class JstSupply implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
6
  type: string;
7
7
  rules: any[];
8
- canFilter: boolean;
9
- canGroup: boolean;
10
- canHidden: boolean;
11
- dataType: DataType;
12
- showContains: boolean;
13
8
  componentConfig: ComponentInterface["componentConfig"];
14
9
  align: ALignType;
10
+ isCombinationComponent: boolean;
11
+ children: ComponentInterface[];
15
12
  constructor(options: PickOption);
16
- render: (value: any) => JSX.Element;
17
13
  renderClient: (record: Record) => JSX.Element | null;
18
14
  renderPc: (value: any, record: Record) => JSX.Element;
15
+ renderLog: (r: Record) => JSX.Element | null;
16
+ getComponentValue: (r: Record) => any;
19
17
  renderExport: (value: any, record: any) => any;
20
18
  editRender: () => JSX.Element;
21
- getColumns: () => this & {
22
- dataIndex: string;
23
- title: string;
24
- renderExport: (value: any, record: any) => any;
25
- };
19
+ filterConfig: (item: ColumnConfig) => {
20
+ type: string;
21
+ id: string;
22
+ name: string;
23
+ filterComponentType: "Input";
24
+ filterFn: (value: string) => (i: Record) => any;
25
+ }[];
26
26
  }
27
27
  export default JstSupply;
@@ -1,6 +1,4 @@
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
3
  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); } }
6
4
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -9,11 +7,12 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
9
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
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); }
11
9
  import React from 'react';
10
+ import some from 'lodash/some';
12
11
  import GetFormItem from "../GetFormItem";
13
12
  import { JstGoodImage } from "../Common";
14
13
  import { JstGoods } from '@kmkf-fe-packages/basic-components';
15
14
  import ItemView from "../../commonComponents/ItemView";
16
- import { isNull } from '@kmkf-fe-packages/kmkf-utils';
15
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
17
16
  var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
18
17
  var _this = this,
19
18
  _this$componentConfig;
@@ -22,25 +21,21 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
22
21
  _defineProperty(this, "id", void 0);
23
22
  _defineProperty(this, "type", void 0);
24
23
  _defineProperty(this, "rules", void 0);
25
- _defineProperty(this, "canFilter", void 0);
26
- _defineProperty(this, "canGroup", void 0);
27
- _defineProperty(this, "canHidden", void 0);
28
- _defineProperty(this, "dataType", void 0);
29
- _defineProperty(this, "showContains", void 0);
30
24
  _defineProperty(this, "componentConfig", void 0);
31
25
  _defineProperty(this, "align", void 0);
32
- _defineProperty(this, "render", function (value) {
33
- //兼容多个商品
34
- return /*#__PURE__*/React.createElement(JstGoodImage, {
35
- list: value,
36
- type: 2
37
- });
38
- });
26
+ _defineProperty(this, "isCombinationComponent", void 0);
27
+ _defineProperty(this, "children", void 0);
39
28
  _defineProperty(this, "renderClient", function (record) {
40
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
29
+ var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
30
+ return !isNull(item);
31
+ }) : false;
32
+ return isShow ? /*#__PURE__*/React.createElement(ItemView, {
41
33
  id: _this.id,
42
34
  label: _this.name,
43
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
35
+ value: /*#__PURE__*/React.createElement(JstGoodImage, {
36
+ list: record === null || record === void 0 ? void 0 : record[_this.id],
37
+ type: 2
38
+ })
44
39
  }) : null;
45
40
  });
46
41
  _defineProperty(this, "renderPc", function (value, record) {
@@ -51,6 +46,14 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
51
46
  type: 2
52
47
  });
53
48
  });
49
+ _defineProperty(this, "renderLog", function (r) {
50
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
51
+ if (isNull(list)) return null;
52
+ return _this.renderPc(undefined, r);
53
+ });
54
+ _defineProperty(this, "getComponentValue", function (r) {
55
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
56
+ });
54
57
  _defineProperty(this, "renderExport", function (value, record) {
55
58
  var list = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")]) || [];
56
59
  return list.map(function (item) {
@@ -68,23 +71,45 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
68
71
  }))
69
72
  });
70
73
  });
71
- _defineProperty(this, "getColumns", function () {
72
- return _objectSpread(_objectSpread({}, _this), {}, {
73
- dataIndex: _this.id,
74
- title: _this.name,
75
- renderExport: _this.renderExport
76
- });
77
- ;
74
+ _defineProperty(this, "filterConfig", function (item) {
75
+ return [{
76
+ type: item.type,
77
+ id: "".concat(item.id, "_supplyName"),
78
+ name: "jst\u4F9B\u9500\u5546\u540D\u79F0",
79
+ filterComponentType: 'Input',
80
+ filterFn: function filterFn(value) {
81
+ return function (i) {
82
+ var _ref;
83
+ return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
84
+ var _String;
85
+ var name = item !== null && item !== void 0 && item.supplyName ? (_String = String(item === null || item === void 0 ? void 0 : item.supplyName)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
86
+ return name;
87
+ });
88
+ };
89
+ }
90
+ }, {
91
+ type: item.type,
92
+ id: "".concat(item.id, "_supplyId"),
93
+ name: "jst\u4F9B\u9500\u5546\u7F16\u7801",
94
+ filterComponentType: 'Input',
95
+ filterFn: function filterFn(value) {
96
+ return function (i) {
97
+ var _ref2;
98
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
99
+ var _String2;
100
+ var id = item !== null && item !== void 0 && item.supplyId ? (_String2 = String(item === null || item === void 0 ? void 0 : item.supplyId)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
101
+ return id;
102
+ });
103
+ };
104
+ }
105
+ }];
78
106
  });
79
107
  this.name = options.name;
80
108
  this.id = options.id;
81
109
  this.type = options.type;
82
- this.canFilter = false;
83
- this.canGroup = false;
84
- this.canHidden = true;
85
- this.showContains = false;
86
- this.dataType = 'string';
87
110
  this.componentConfig = options.componentConfig;
111
+ this.isCombinationComponent = false;
112
+ this.children = [];
88
113
  this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
89
114
  required: true,
90
115
  validator: function validator(_, value) {