@kmkf-fe-packages/services-components 0.6.3-alpha.9 → 0.7.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 (155) hide show
  1. package/README.md +2 -0
  2. package/dist/esm/commonComponents/ItemView/index.d.ts +2 -2
  3. package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
  4. package/dist/esm/commonComponents/OperationLog/index.js +28 -27
  5. package/dist/esm/commonComponents/PlatBuyer/index.d.ts +2 -2
  6. package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +2 -2
  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 +2 -2
  10. package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
  11. package/dist/esm/components/ActualPayment/index.d.ts +6 -6
  12. package/dist/esm/components/ActualPayment/index.js +2 -4
  13. package/dist/esm/components/Address/index.d.ts +5 -6
  14. package/dist/esm/components/Address/index.js +1 -4
  15. package/dist/esm/components/Alipay/index.d.ts +5 -5
  16. package/dist/esm/components/Alipay/index.js +1 -4
  17. package/dist/esm/components/AlipayAccount/index.d.ts +6 -6
  18. package/dist/esm/components/AlipayAccount/index.js +2 -4
  19. package/dist/esm/components/AlipayName/index.d.ts +6 -6
  20. package/dist/esm/components/AlipayName/index.js +2 -4
  21. package/dist/esm/components/BuyerNick/index.d.ts +6 -9
  22. package/dist/esm/components/BuyerNick/index.js +1 -3
  23. package/dist/esm/components/Cascader/index.d.ts +6 -6
  24. package/dist/esm/components/Cascader/index.js +2 -4
  25. package/dist/esm/components/Checkbox/index.d.ts +5 -5
  26. package/dist/esm/components/Checkbox/index.js +8 -14
  27. package/dist/esm/components/Common/index.d.ts +5 -5
  28. package/dist/esm/components/CommonDataTime/index.d.ts +5 -5
  29. package/dist/esm/components/CommonDataTime/index.js +1 -4
  30. package/dist/esm/components/CompletedUser/index.d.ts +4 -4
  31. package/dist/esm/components/CompletedUser/index.js +2 -4
  32. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  33. package/dist/esm/components/DataTime/index.d.ts +7 -7
  34. package/dist/esm/components/DataTime/index.js +1 -3
  35. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  36. package/dist/esm/components/EItemEnCode/index.d.ts +6 -6
  37. package/dist/esm/components/EItemEnCode/index.js +5 -7
  38. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  39. package/dist/esm/components/EItemId/index.d.ts +6 -6
  40. package/dist/esm/components/EItemId/index.js +5 -7
  41. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  42. package/dist/esm/components/EItemSelect/index.d.ts +5 -6
  43. package/dist/esm/components/EItemSelect/index.js +3 -6
  44. package/dist/esm/components/ErpTradeId/index.d.ts +6 -6
  45. package/dist/esm/components/ErpTradeId/index.js +3 -5
  46. package/dist/esm/components/Express/index.d.ts +8 -8
  47. package/dist/esm/components/Express/index.js +3 -5
  48. package/dist/esm/components/ExpressCode/index.d.ts +8 -8
  49. package/dist/esm/components/ExpressCode/index.js +11 -12
  50. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  51. package/dist/esm/components/FlowStatusSelect/index.d.ts +6 -6
  52. package/dist/esm/components/FlowStatusSelect/index.js +1 -3
  53. package/dist/esm/components/GetFormItem/index.d.ts +3 -3
  54. package/dist/esm/components/GetFormItem/index.js +3 -3
  55. package/dist/esm/components/Grade/index.d.ts +5 -6
  56. package/dist/esm/components/Grade/index.js +1 -4
  57. package/dist/esm/components/Handler/index.d.ts +4 -4
  58. package/dist/esm/components/Handler/index.js +11 -8
  59. package/dist/esm/components/Input/index.d.ts +6 -6
  60. package/dist/esm/components/Input/index.js +2 -4
  61. package/dist/esm/components/JstItemSelect/index.d.ts +7 -7
  62. package/dist/esm/components/JstItemSelect/index.js +21 -24
  63. package/dist/esm/components/JstLogistics/index.d.ts +8 -7
  64. package/dist/esm/components/JstLogistics/index.js +11 -9
  65. package/dist/esm/components/JstSendGood/index.d.ts +6 -6
  66. package/dist/esm/components/JstSendGood/index.js +11 -9
  67. package/dist/esm/components/JstSupply/index.d.ts +6 -6
  68. package/dist/esm/components/JstSupply/index.js +11 -9
  69. package/dist/esm/components/Logistics/index.d.ts +7 -6
  70. package/dist/esm/components/Logistics/index.js +1 -4
  71. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +17 -11
  72. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +68 -29
  73. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
  74. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
  75. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +21 -9
  76. package/dist/esm/components/LogisticsInterception/InterceptType.js +40 -18
  77. package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
  78. package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
  79. package/dist/esm/components/LogisticsInterception/index.d.ts +54 -9
  80. package/dist/esm/components/LogisticsInterception/index.js +50 -16
  81. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
  82. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
  83. package/dist/esm/components/MultSelect/index.d.ts +6 -7
  84. package/dist/esm/components/MultSelect/index.js +3 -4
  85. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +4 -4
  86. package/dist/esm/components/Ordinary/OrdinaryHeader.js +2 -4
  87. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +4 -4
  88. package/dist/esm/components/Ordinary/OrdinaryMoney.js +2 -4
  89. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +4 -4
  90. package/dist/esm/components/Ordinary/OrdinarySerial.js +2 -4
  91. package/dist/esm/components/Ordinary/index.d.ts +5 -5
  92. package/dist/esm/components/Ordinary/index.js +2 -5
  93. package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
  94. package/dist/esm/components/Payment/AlipayNick.d.ts +6 -6
  95. package/dist/esm/components/Payment/AlipayNick.js +3 -4
  96. package/dist/esm/components/Payment/AlipayNo.d.ts +6 -6
  97. package/dist/esm/components/Payment/AlipayNo.js +4 -5
  98. package/dist/esm/components/Payment/AlipayTime.d.ts +6 -6
  99. package/dist/esm/components/Payment/AlipayTime.js +2 -6
  100. package/dist/esm/components/Payment/BuyerNick.d.ts +6 -6
  101. package/dist/esm/components/Payment/BuyerNick.js +2 -3
  102. package/dist/esm/components/Payment/PaymentAmount.d.ts +6 -6
  103. package/dist/esm/components/Payment/PaymentAmount.js +1 -3
  104. package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
  105. package/dist/esm/components/Payment/PaymentStatus.js +2 -4
  106. package/dist/esm/components/Payment/PaymentTid.d.ts +6 -6
  107. package/dist/esm/components/Payment/PaymentTid.js +1 -3
  108. package/dist/esm/components/Payment/index.d.ts +7 -5
  109. package/dist/esm/components/Payment/index.js +1 -4
  110. package/dist/esm/components/Picture/index.d.ts +6 -6
  111. package/dist/esm/components/Picture/index.js +1 -1
  112. package/dist/esm/components/PlatForm/index.d.ts +4 -4
  113. package/dist/esm/components/PlatForm/index.js +1 -3
  114. package/dist/esm/components/Popover/index.d.ts +2 -2
  115. package/dist/esm/components/Radio/index.d.ts +7 -6
  116. package/dist/esm/components/Radio/index.js +1 -0
  117. package/dist/esm/components/Rate/index.d.ts +6 -6
  118. package/dist/esm/components/Rate/index.js +4 -11
  119. package/dist/esm/components/ReceiverAddress/index.d.ts +6 -6
  120. package/dist/esm/components/ReceiverAddress/index.js +3 -3
  121. package/dist/esm/components/ReceiverMobile/index.d.ts +6 -6
  122. package/dist/esm/components/ReceiverMobile/index.js +2 -4
  123. package/dist/esm/components/ReceiverName/index.d.ts +6 -6
  124. package/dist/esm/components/ReceiverName/index.js +2 -4
  125. package/dist/esm/components/Remark/index.d.ts +7 -6
  126. package/dist/esm/components/Remark/index.js +1 -0
  127. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  128. package/dist/esm/components/ReturnLogistics/index.js +1 -4
  129. package/dist/esm/components/Select/index.d.ts +6 -6
  130. package/dist/esm/components/Select/index.js +1 -3
  131. package/dist/esm/components/ShopInput/index.d.ts +3 -3
  132. package/dist/esm/components/ShopInput/index.js +1 -3
  133. package/dist/esm/components/ShopName/index.d.ts +6 -6
  134. package/dist/esm/components/ShopName/index.js +3 -5
  135. package/dist/esm/components/Submitter/index.d.ts +4 -4
  136. package/dist/esm/components/Submitter/index.js +2 -4
  137. package/dist/esm/components/SystemOrderNo/index.d.ts +6 -6
  138. package/dist/esm/components/SystemOrderNo/index.js +2 -4
  139. package/dist/esm/components/TemplateSelect/index.d.ts +5 -5
  140. package/dist/esm/components/TemplateSelect/index.js +2 -4
  141. package/dist/esm/components/TextArea/index.d.ts +6 -6
  142. package/dist/esm/components/TextArea/index.js +2 -4
  143. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  144. package/dist/esm/components/ThirdItemSelect/index.d.ts +6 -6
  145. package/dist/esm/components/ThirdItemSelect/index.js +5 -8
  146. package/dist/esm/components/TradeDateTime/index.d.ts +7 -6
  147. package/dist/esm/components/TradeDateTime/index.js +1 -0
  148. package/dist/esm/components/TradeId/index.d.ts +6 -6
  149. package/dist/esm/components/TradeId/index.js +2 -4
  150. package/dist/esm/components/WorkOrderId/index.d.ts +5 -5
  151. package/dist/esm/components/WorkOrderId/index.js +1 -3
  152. package/dist/esm/index.d.ts +2 -0
  153. package/dist/esm/index.js +3 -1
  154. package/dist/esm/type.d.ts +13 -15
  155. package/package.json +10 -5
@@ -24,14 +24,11 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
24
24
  _defineProperty(this, "width", void 0);
25
25
  _defineProperty(this, "isCombinationComponent", void 0);
26
26
  _defineProperty(this, "children", void 0);
27
- _defineProperty(this, "render", function (value) {
28
- return /*#__PURE__*/React.createElement("span", null, _this.expressDateInstance.getExpressNameByCode(value) || value);
29
- });
30
27
  _defineProperty(this, "renderClient", function (record) {
31
28
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
32
29
  id: _this.id,
33
30
  label: _this.name,
34
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
31
+ value: _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id])
35
32
  }) : null;
36
33
  });
37
34
  _defineProperty(this, "renderPc", function (value, record) {
@@ -48,7 +45,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
48
45
  return r === null || r === void 0 ? void 0 : r[_this.id];
49
46
  });
50
47
  _defineProperty(this, "renderExport", function (value, record) {
51
- return _this.expressDateInstance.getExpressNameByCode(value) || value;
48
+ return _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id]);
52
49
  });
53
50
  _defineProperty(this, "editRender", function () {
54
51
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
@@ -65,6 +62,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
65
62
  _defineProperty(this, "filterConfig", function (item) {
66
63
  var subKey = item.subKey;
67
64
  return {
65
+ type: item.type,
68
66
  id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
69
67
  name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
70
68
  filterComponentType: 'MultipleSelect',
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
3
  declare class ExpressCode implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -11,14 +11,14 @@ declare class ExpressCode implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  children: ComponentInterface[];
13
13
  constructor(options: PickOption);
14
- render: (value: string) => JSX.Element;
15
- renderClient: (record: any) => JSX.Element | null;
16
- renderPc: (value: unknown, record: Record) => JSX.Element;
17
- renderLog: (r: Record) => JSX.Element | null;
14
+ renderClient: (record: any) => React.JSX.Element | null;
15
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
16
+ renderLog: (r: Record) => React.JSX.Element | null;
18
17
  getComponentValue: (r: Record) => any;
19
- renderExport: (value: string, record: Record) => string;
20
- editRender: () => JSX.Element;
18
+ renderExport: (value: string, record: Record) => any;
19
+ editRender: () => React.JSX.Element;
21
20
  filterConfig: (item: ColumnConfig) => {
21
+ type: string;
22
22
  id: string;
23
23
  name: string;
24
24
  filterComponentType: "Input";
@@ -5,11 +5,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
- import React from 'react';
9
- import { Input } from 'antd';
8
+ import React from "react";
9
+ import { Input } from "antd";
10
10
  import GetFormItem from "../GetFormItem";
11
11
  import ItemView from "../../commonComponents/ItemView";
12
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
12
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
13
13
  var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
14
14
  var _this = this,
15
15
  _this$componentConfig5;
@@ -23,9 +23,6 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
23
23
  _defineProperty(this, "width", void 0);
24
24
  _defineProperty(this, "isCombinationComponent", void 0);
25
25
  _defineProperty(this, "children", void 0);
26
- _defineProperty(this, "render", function (value) {
27
- return /*#__PURE__*/React.createElement("span", null, value);
28
- });
29
26
  _defineProperty(this, "renderClient", function (record) {
30
27
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
31
28
  id: _this.id,
@@ -35,7 +32,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
35
32
  });
36
33
  _defineProperty(this, "renderPc", function (value, record) {
37
34
  var _record$_this$id;
38
- return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--');
35
+ return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--");
39
36
  });
40
37
  _defineProperty(this, "renderLog", function (r) {
41
38
  if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
@@ -45,7 +42,8 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
45
42
  return r === null || r === void 0 ? void 0 : r[_this.id];
46
43
  });
47
44
  _defineProperty(this, "renderExport", function (value, record) {
48
- return value !== null && value !== void 0 ? value : '--';
45
+ var _record$_this$id2;
46
+ return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
49
47
  });
50
48
  _defineProperty(this, "editRender", function () {
51
49
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
@@ -54,15 +52,16 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
54
52
  name: _this.id,
55
53
  rules: _this.rules,
56
54
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
57
- component: !((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingle) || ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) === 'EXPRESS_WAYBILL_CODE' ? /*#__PURE__*/React.createElement(Input, null) : null
55
+ component: !((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingle) || ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) === "EXPRESS_WAYBILL_CODE" ? /*#__PURE__*/React.createElement(Input, null) : null
58
56
  });
59
57
  });
60
58
  _defineProperty(this, "filterConfig", function (item) {
61
59
  var subKey = item.subKey;
62
60
  return {
61
+ type: item.type,
63
62
  id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
64
63
  name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
65
- filterComponentType: 'Input',
64
+ filterComponentType: "Input",
66
65
  filterFn: function filterFn(value) {
67
66
  return function (i) {
68
67
  return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
@@ -79,10 +78,10 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
79
78
  if (/^[0-9a-zA-Z]*$/.test(value)) {
80
79
  return Promise.resolve();
81
80
  }
82
- return Promise.reject(new Error('只能输入数字和字母'));
81
+ return Promise.reject(new Error("只能输入数字和字母"));
83
82
  }
84
83
  }] : [];
85
- this.align = 'left';
84
+ this.align = "left";
86
85
  this.width = 200;
87
86
  this.isCombinationComponent = false;
88
87
  this.children = [];
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const ExpressCompany: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const ExpressCompany: (props: any) => React.JSX.Element;
3
3
  export default ExpressCompany;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class WorkOrderId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -11,15 +11,15 @@ declare class WorkOrderId implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  children: ComponentInterface[];
13
13
  constructor(options: PickOption);
14
- renderMenu: (record: Record) => JSX.Element;
15
- renderPc: (value: any, record: Record) => JSX.Element;
16
- renderLog: (r: Record) => JSX.Element | null;
14
+ renderMenu: (record: Record) => React.JSX.Element;
15
+ renderPc: (value: any, record: Record) => React.JSX.Element;
16
+ renderLog: (r: Record) => React.JSX.Element | null;
17
17
  getComponentValue: (r: Record) => any;
18
18
  renderExport: (value: any, record: Record) => any;
19
- render: () => null;
20
19
  renderClient: () => null;
21
- editRender: () => JSX.Element;
20
+ editRender: () => React.JSX.Element;
22
21
  filterConfig: (item: ColumnConfig) => {
22
+ type: string;
23
23
  id: string;
24
24
  name: string;
25
25
  filterComponentType: "MultipleSelect";
@@ -65,9 +65,6 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
65
65
  var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
66
66
  return status ? status === null || status === void 0 ? void 0 : status.label : '--';
67
67
  });
68
- _defineProperty(this, "render", function () {
69
- return null;
70
- });
71
68
  _defineProperty(this, "renderClient", function () {
72
69
  return null;
73
70
  });
@@ -87,6 +84,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
87
84
  _defineProperty(this, "filterConfig", function (item) {
88
85
  var _Object$keys;
89
86
  return {
87
+ type: item.type,
90
88
  id: item.id,
91
89
  // 过滤组件id
92
90
  name: item.name,
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  declare type GetFormItemProps = {
3
3
  rules: any[];
4
4
  required: boolean;
5
- title: string;
5
+ title: string | JSX.Element;
6
6
  name: string;
7
7
  component: JSX.Element | null;
8
8
  };
9
- declare const GetFormItem: ({ rules, required, title, component, name }: GetFormItemProps) => JSX.Element;
9
+ declare const GetFormItem: ({ rules, required, title, component, name, }: GetFormItemProps) => React.JSX.Element;
10
10
  export default GetFormItem;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { Form } from 'antd';
1
+ import React from "react";
2
+ import { Form } from "antd";
3
3
  var GetFormItem = function GetFormItem(_ref) {
4
4
  var rules = _ref.rules,
5
5
  required = _ref.required,
@@ -16,7 +16,7 @@ var GetFormItem = function GetFormItem(_ref) {
16
16
  return /*#__PURE__*/React.createElement("div", {
17
17
  className: "form-item--wrap",
18
18
  style: {
19
- position: 'relative'
19
+ position: "relative"
20
20
  }
21
21
  }, /*#__PURE__*/React.createElement(Form.Item, {
22
22
  name: name,
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class BasicGrade implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -9,13 +9,12 @@ declare class BasicGrade implements ComponentInterface {
9
9
  isCombinationComponent: boolean;
10
10
  children: ComponentInterface[];
11
11
  constructor(options: PickOption);
12
- render: (value: number) => JSX.Element;
13
- renderClient: (record: any) => JSX.Element | null;
14
- renderPc: (value: any, record: Record) => JSX.Element;
15
- renderLog: (r: Record) => JSX.Element | null;
12
+ renderClient: (record: any) => React.JSX.Element | null;
13
+ renderPc: (value: any, record: Record) => React.JSX.Element;
14
+ renderLog: (r: Record) => React.JSX.Element | null;
16
15
  getComponentValue: (r: Record) => any;
17
16
  renderExport: (value: any, record: Record) => any;
18
- editRender: () => JSX.Element;
17
+ editRender: () => React.JSX.Element;
19
18
  filterConfig: () => never[];
20
19
  }
21
20
  export default BasicGrade;
@@ -20,14 +20,11 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
20
20
  _defineProperty(this, "componentConfig", void 0);
21
21
  _defineProperty(this, "isCombinationComponent", void 0);
22
22
  _defineProperty(this, "children", void 0);
23
- _defineProperty(this, "render", function (value) {
24
- return /*#__PURE__*/React.createElement("span", null, value);
25
- });
26
23
  _defineProperty(this, "renderClient", function (record) {
27
24
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
28
25
  id: _this.id,
29
26
  label: _this.name,
30
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
27
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
31
28
  }) : null;
32
29
  });
33
30
  _defineProperty(this, "renderPc", function (value, record) {
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type';
3
3
  declare class Handler implements ComponentInterface {
4
4
  name: string;
@@ -9,16 +9,16 @@ declare class Handler implements ComponentInterface {
9
9
  isCombinationComponent: boolean;
10
10
  children: ComponentInterface[];
11
11
  constructor(options: PickOption);
12
- renderPc: (v: unknown, record: Record) => JSX.Element;
13
- renderLog: (record: Record) => null;
12
+ renderPc: (v: unknown, record: Record) => React.JSX.Element;
13
+ renderLog: () => null;
14
14
  getComponentValue: (r: Record) => any;
15
15
  renderExport: (value: {
16
16
  account: string;
17
17
  }[], record: Record) => string;
18
- render: () => null;
19
18
  renderClient: () => null;
20
19
  editRender: () => null;
21
20
  filterConfig: (item: ColumnConfig) => {
21
+ type: string;
22
22
  id: string;
23
23
  name: string;
24
24
  filterComponentType: "MultipleSelect";
@@ -6,6 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
8
  import React from 'react';
9
+ import intersection from 'lodash/intersection';
9
10
  import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
10
11
  var Handler = /*#__PURE__*/_createClass(function Handler(options) {
11
12
  var _this = this;
@@ -24,20 +25,18 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
24
25
  return item.account;
25
26
  })) === null || _value$map === void 0 ? void 0 : _value$map.join('、')) !== null && _value$map$join !== void 0 ? _value$map$join : '--');
26
27
  });
27
- _defineProperty(this, "renderLog", function (record) {
28
+ _defineProperty(this, "renderLog", function () {
28
29
  return null;
29
30
  });
30
31
  _defineProperty(this, "getComponentValue", function (r) {
31
32
  return r === null || r === void 0 ? void 0 : r[_this.id];
32
33
  });
33
34
  _defineProperty(this, "renderExport", function (value, record) {
34
- var _value$map$join2, _value$map2;
35
- return (_value$map$join2 = value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
35
+ var _values$map$join, _values$map;
36
+ var values = record === null || record === void 0 ? void 0 : record[_this.id];
37
+ return (_values$map$join = values === null || values === void 0 ? void 0 : (_values$map = values.map(function (item) {
36
38
  return item.account;
37
- })) === null || _value$map2 === void 0 ? void 0 : _value$map2.join('、')) !== null && _value$map$join2 !== void 0 ? _value$map$join2 : '--';
38
- });
39
- _defineProperty(this, "render", function () {
40
- return null;
39
+ })) === null || _values$map === void 0 ? void 0 : _values$map.join('、')) !== null && _values$map$join !== void 0 ? _values$map$join : '--';
41
40
  });
42
41
  _defineProperty(this, "renderClient", function () {
43
42
  return null;
@@ -48,6 +47,7 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
48
47
  _defineProperty(this, "filterConfig", function (item) {
49
48
  var _this$effects;
50
49
  return {
50
+ type: item.type,
51
51
  id: item.id,
52
52
  // 过滤组件id
53
53
  name: item.name,
@@ -56,7 +56,10 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
56
56
  options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || [],
57
57
  filterFn: function filterFn(value) {
58
58
  return function (i) {
59
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
59
+ var _ref;
60
+ return intersection(value, (_ref = _filterFn.filterTableListItemColumnValue(i, item.id) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
61
+ return item === null || item === void 0 ? void 0 : item.account;
62
+ })).length > 0;
60
63
  };
61
64
  }
62
65
  };
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class BasicInput implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -9,14 +9,14 @@ declare class BasicInput implements ComponentInterface {
9
9
  isCombinationComponent: boolean;
10
10
  children: ComponentInterface[];
11
11
  constructor(options: PickOption);
12
- renderPc: (value: any, record: Record) => JSX.Element;
13
- renderLog: (r: Record) => JSX.Element | null;
12
+ renderPc: (value: any, record: Record) => React.JSX.Element;
13
+ renderLog: (r: Record) => React.JSX.Element | null;
14
14
  getComponentValue: (r: Record) => any;
15
15
  renderExport: (value: any, record: Record) => any;
16
- render: (value: string | number) => JSX.Element;
17
- renderClient: (record: Record) => JSX.Element | null;
18
- editRender: () => JSX.Element;
16
+ renderClient: (record: Record) => React.JSX.Element | null;
17
+ editRender: () => React.JSX.Element;
19
18
  filterConfig: (item: ColumnConfig) => {
19
+ type: string;
20
20
  id: string;
21
21
  name: string;
22
22
  filterComponentType: "Input";
@@ -37,14 +37,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
37
37
  var _record2;
38
38
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record2 !== void 0 ? _record2 : '--';
39
39
  });
40
- _defineProperty(this, "render", function (value) {
41
- return /*#__PURE__*/React.createElement("span", null, value);
42
- });
43
40
  _defineProperty(this, "renderClient", function (record) {
44
41
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
45
42
  id: _this.id,
46
43
  label: _this.name,
47
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
44
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
48
45
  }) : null;
49
46
  });
50
47
  _defineProperty(this, "editRender", function () {
@@ -61,6 +58,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
61
58
  });
62
59
  _defineProperty(this, "filterConfig", function (item) {
63
60
  return {
61
+ type: item.type,
64
62
  id: item.id,
65
63
  // 过滤组件id
66
64
  name: item.name,
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class JstItemSelect implements ComponentInterface {
5
5
  name: string;
@@ -8,18 +8,18 @@ declare class JstItemSelect implements ComponentInterface {
8
8
  rules: any[];
9
9
  componentConfig: ComponentInterface["componentConfig"];
10
10
  align: ALignType;
11
- expressDateInstance: ExpressData;
11
+ expressDateInstance: InstanceType<typeof ExpressData>;
12
12
  isCombinationComponent: boolean;
13
13
  children: ComponentInterface[];
14
14
  constructor(options: PickOption);
15
- render: (value: any) => JSX.Element;
16
- renderClient: (record: Record) => JSX.Element | null;
17
- renderPc: (value: any, record: Record) => JSX.Element;
18
- renderLog: (r: Record) => JSX.Element | null;
15
+ renderClient: (record: Record) => React.JSX.Element | null;
16
+ renderPc: (value: any, record: Record) => React.JSX.Element;
17
+ renderLog: (r: Record) => React.JSX.Element | null;
19
18
  getComponentValue: (r: Record) => any;
20
19
  renderExport: (value: any, record: any) => any;
21
- editRender: () => JSX.Element;
20
+ editRender: () => React.JSX.Element;
22
21
  filterConfig: (item: ColumnConfig) => {
22
+ type: string;
23
23
  id: string;
24
24
  name: string;
25
25
  filterComponentType: "Input";
@@ -26,18 +26,14 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
26
26
  _defineProperty(this, "expressDateInstance", void 0);
27
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
28
  _defineProperty(this, "children", void 0);
29
- _defineProperty(this, "render", function (value) {
30
- //兼容多个商品
31
- return /*#__PURE__*/React.createElement(GoodImage, {
32
- list: value,
33
- type: "jstItemThird"
34
- });
35
- });
36
29
  _defineProperty(this, "renderClient", function (record) {
37
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
38
31
  id: _this.id,
39
32
  label: _this.name,
40
- 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
+ })
41
37
  }) : null;
42
38
  });
43
39
  _defineProperty(this, "renderPc", function (value, record) {
@@ -74,28 +70,29 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
74
70
  });
75
71
  });
76
72
  _defineProperty(this, "filterConfig", function (item) {
77
- return [{
73
+ var _ref2;
74
+ return [(_ref2 = {
75
+ type: item.type,
78
76
  id: "".concat(item.id, "_itemId"),
79
- name: "jst\u4F9B\u5E94\u5546\u7F16\u7801",
80
- filterComponentType: 'Input',
81
- filterFn: function filterFn(value) {
82
- return function (i) {
83
- var _ref;
84
- return (_ref = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref === void 0 ? void 0 : _ref.some(function (item) {
85
- var _String;
86
- 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;
87
- return id;
88
- });
89
- };
90
- }
91
- }, {
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,
92
89
  id: "".concat(item.id, "_supplierName"),
93
90
  name: "jst\u4F9B\u5E94\u5546\u540D\u79F0",
94
91
  filterComponentType: 'Input',
95
92
  filterFn: function filterFn(value) {
96
93
  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) {
94
+ var _ref3;
95
+ return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, 'jstItemList') || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
99
96
  var _String2;
100
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;
101
98
  return name;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  declare class JstLogistics implements ComponentInterface {
5
5
  name: string;
@@ -8,24 +8,25 @@ declare class JstLogistics implements ComponentInterface {
8
8
  rules: any[];
9
9
  componentConfig: ComponentInterface["componentConfig"];
10
10
  align: ALignType;
11
- expressDateInstance: ExpressData;
11
+ expressDateInstance: InstanceType<typeof ExpressData>;
12
12
  isCombinationComponent: boolean;
13
13
  children: ComponentInterface[];
14
14
  constructor(options: PickOption);
15
- render: (value: any) => JSX.Element;
16
- renderClient: (record: any) => JSX.Element | null;
17
- renderPc: (value: any, record: Record) => JSX.Element;
18
- renderLog: (r: Record) => JSX.Element | null;
15
+ renderClient: (record: any) => React.JSX.Element | null;
16
+ renderPc: (value: any, record: Record) => React.JSX.Element;
17
+ renderLog: (r: Record) => React.JSX.Element | null;
19
18
  getComponentValue: (r: Record) => any;
20
19
  renderExport: (value: any, record: any) => any;
21
- editRender: () => JSX.Element;
20
+ editRender: () => React.JSX.Element;
22
21
  filterConfig: (item: ColumnConfig) => ({
22
+ type: string;
23
23
  id: string;
24
24
  name: string;
25
25
  filterComponentType: "Input";
26
26
  filterFn: (value: string) => (i: Record) => boolean;
27
27
  options?: undefined;
28
28
  } | {
29
+ type: string;
29
30
  id: string;
30
31
  name: string;
31
32
  filterComponentType: "MultipleSelect";
@@ -8,6 +8,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
8
8
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
9
  import React from 'react';
10
10
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
11
+ import some from 'lodash/some';
11
12
  import GetFormItem from "../GetFormItem";
12
13
  import { JstGoodImage } from "../Common";
13
14
  import { JstGoods } from '@kmkf-fe-packages/basic-components';
@@ -26,18 +27,17 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
26
27
  _defineProperty(this, "expressDateInstance", void 0);
27
28
  _defineProperty(this, "isCombinationComponent", void 0);
28
29
  _defineProperty(this, "children", void 0);
29
- _defineProperty(this, "render", function (value) {
30
- //兼容多个商品
31
- return /*#__PURE__*/React.createElement(JstGoodImage, {
32
- list: value,
33
- type: 1
34
- });
35
- });
36
30
  _defineProperty(this, "renderClient", function (record) {
37
- 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, {
38
35
  id: _this.id,
39
36
  label: _this.name,
40
- 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
+ })
41
41
  }) : null;
42
42
  });
43
43
  _defineProperty(this, "renderPc", function (value, record) {
@@ -77,6 +77,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
77
77
  });
78
78
  _defineProperty(this, "filterConfig", function (item) {
79
79
  return [{
80
+ type: item.type,
80
81
  id: "".concat(item.id, "_logisticsCode"),
81
82
  name: "jst\u7269\u6D41\u5355\u53F7",
82
83
  filterComponentType: 'Input',
@@ -86,6 +87,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
86
87
  };
87
88
  }
88
89
  }, {
90
+ type: item.type,
89
91
  id: "".concat(item.id, "_logisticsCompany"),
90
92
  name: "jst\u7269\u6D41\u516C\u53F8",
91
93
  filterComponentType: 'MultipleSelect',
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class JstSendGood implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -10,14 +10,14 @@ declare class JstSendGood implements ComponentInterface {
10
10
  isCombinationComponent: boolean;
11
11
  children: ComponentInterface[];
12
12
  constructor(options: PickOption);
13
- render: (value: any) => JSX.Element;
14
- renderClient: (record: Record) => JSX.Element | null;
15
- renderPc: (value: any, record: Record) => JSX.Element;
16
- renderLog: (r: Record) => JSX.Element | null;
13
+ renderClient: (record: Record) => React.JSX.Element | null;
14
+ renderPc: (value: any, record: Record) => React.JSX.Element;
15
+ renderLog: (r: Record) => React.JSX.Element | null;
17
16
  getComponentValue: (r: Record) => any;
18
17
  renderExport: (value: any, record: any) => any;
19
- editRender: () => JSX.Element;
18
+ editRender: () => React.JSX.Element;
20
19
  filterConfig: (item: ColumnConfig) => {
20
+ type: string;
21
21
  id: string;
22
22
  name: string;
23
23
  filterComponentType: "Input";