@kmkf-fe-packages/services-components 0.7.9 → 0.7.11-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 (130) hide show
  1. package/dist/esm/components/ActualPayment/index.d.ts +2 -1
  2. package/dist/esm/components/ActualPayment/index.js +4 -1
  3. package/dist/esm/components/Address/index.d.ts +2 -1
  4. package/dist/esm/components/Address/index.js +4 -1
  5. package/dist/esm/components/Alipay/index.d.ts +2 -1
  6. package/dist/esm/components/Alipay/index.js +5 -2
  7. package/dist/esm/components/AlipayAccount/index.d.ts +2 -1
  8. package/dist/esm/components/AlipayAccount/index.js +4 -1
  9. package/dist/esm/components/AlipayName/index.d.ts +2 -1
  10. package/dist/esm/components/AlipayName/index.js +4 -1
  11. package/dist/esm/components/BuyerNick/index.d.ts +2 -1
  12. package/dist/esm/components/BuyerNick/index.js +5 -2
  13. package/dist/esm/components/Cascader/index.d.ts +2 -1
  14. package/dist/esm/components/Cascader/index.js +4 -1
  15. package/dist/esm/components/Checkbox/index.d.ts +3 -1
  16. package/dist/esm/components/Checkbox/index.js +8 -2
  17. package/dist/esm/components/CommonDataTime/index.d.ts +2 -0
  18. package/dist/esm/components/CommonDataTime/index.js +4 -0
  19. package/dist/esm/components/CompletedUser/index.d.ts +2 -0
  20. package/dist/esm/components/CompletedUser/index.js +6 -1
  21. package/dist/esm/components/DataTime/index.d.ts +3 -1
  22. package/dist/esm/components/DataTime/index.js +11 -2
  23. package/dist/esm/components/EItemEnCode/index.d.ts +2 -1
  24. package/dist/esm/components/EItemEnCode/index.js +4 -1
  25. package/dist/esm/components/EItemId/index.d.ts +2 -1
  26. package/dist/esm/components/EItemId/index.js +4 -1
  27. package/dist/esm/components/EItemSelect/index.d.ts +2 -1
  28. package/dist/esm/components/EItemSelect/index.js +4 -1
  29. package/dist/esm/components/ErpTradeId/index.d.ts +2 -1
  30. package/dist/esm/components/ErpTradeId/index.js +4 -1
  31. package/dist/esm/components/Express/index.d.ts +3 -1
  32. package/dist/esm/components/Express/index.js +6 -1
  33. package/dist/esm/components/ExpressCode/index.d.ts +2 -1
  34. package/dist/esm/components/ExpressCode/index.js +4 -1
  35. package/dist/esm/components/FlowStatusSelect/index.d.ts +3 -1
  36. package/dist/esm/components/FlowStatusSelect/index.js +13 -2
  37. package/dist/esm/components/GetFormItem/index.d.ts +2 -1
  38. package/dist/esm/components/GetFormItem/index.js +5 -2
  39. package/dist/esm/components/Grade/index.d.ts +2 -1
  40. package/dist/esm/components/Grade/index.js +4 -1
  41. package/dist/esm/components/Handler/index.d.ts +2 -0
  42. package/dist/esm/components/Handler/index.js +6 -1
  43. package/dist/esm/components/Input/index.d.ts +2 -1
  44. package/dist/esm/components/Input/index.js +6 -2
  45. package/dist/esm/components/JstItemSelect/index.d.ts +2 -1
  46. package/dist/esm/components/JstItemSelect/index.js +4 -1
  47. package/dist/esm/components/JstLogistics/index.d.ts +2 -1
  48. package/dist/esm/components/JstLogistics/index.js +4 -1
  49. package/dist/esm/components/JstSendGood/index.d.ts +2 -1
  50. package/dist/esm/components/JstSendGood/index.js +4 -1
  51. package/dist/esm/components/JstSupply/index.d.ts +2 -1
  52. package/dist/esm/components/JstSupply/index.js +4 -1
  53. package/dist/esm/components/Logistics/index.d.ts +2 -1
  54. package/dist/esm/components/Logistics/index.js +5 -2
  55. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +2 -1
  56. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +4 -1
  57. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -0
  58. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +4 -0
  59. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +2 -0
  60. package/dist/esm/components/LogisticsInterception/InterceptType.js +4 -0
  61. package/dist/esm/components/LogisticsInterception/index.d.ts +2 -1
  62. package/dist/esm/components/LogisticsInterception/index.js +4 -1
  63. package/dist/esm/components/MultSelect/index.d.ts +3 -1
  64. package/dist/esm/components/MultSelect/index.js +8 -2
  65. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -1
  66. package/dist/esm/components/Ordinary/OrdinaryHeader.js +4 -1
  67. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +2 -1
  68. package/dist/esm/components/Ordinary/OrdinaryMoney.js +4 -1
  69. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -6
  70. package/dist/esm/components/Ordinary/OrdinarySerial.js +3 -8
  71. package/dist/esm/components/Ordinary/index.d.ts +3 -6
  72. package/dist/esm/components/Ordinary/index.js +4 -8
  73. package/dist/esm/components/Payment/AlipayNick.d.ts +2 -1
  74. package/dist/esm/components/Payment/AlipayNick.js +4 -1
  75. package/dist/esm/components/Payment/AlipayNo.d.ts +2 -1
  76. package/dist/esm/components/Payment/AlipayNo.js +4 -1
  77. package/dist/esm/components/Payment/AlipayTime.d.ts +3 -1
  78. package/dist/esm/components/Payment/AlipayTime.js +8 -3
  79. package/dist/esm/components/Payment/BuyerNick.d.ts +2 -1
  80. package/dist/esm/components/Payment/BuyerNick.js +4 -1
  81. package/dist/esm/components/Payment/PaymentAmount.d.ts +2 -1
  82. package/dist/esm/components/Payment/PaymentAmount.js +4 -1
  83. package/dist/esm/components/Payment/PaymentStatus.d.ts +2 -0
  84. package/dist/esm/components/Payment/PaymentStatus.js +4 -0
  85. package/dist/esm/components/Payment/PaymentTid.d.ts +2 -1
  86. package/dist/esm/components/Payment/PaymentTid.js +4 -1
  87. package/dist/esm/components/Payment/index.d.ts +2 -1
  88. package/dist/esm/components/Payment/index.js +5 -2
  89. package/dist/esm/components/Picture/index.d.ts +2 -1
  90. package/dist/esm/components/Picture/index.js +4 -1
  91. package/dist/esm/components/PlatForm/index.d.ts +2 -0
  92. package/dist/esm/components/PlatForm/index.js +4 -0
  93. package/dist/esm/components/Radio/index.d.ts +3 -1
  94. package/dist/esm/components/Radio/index.js +8 -2
  95. package/dist/esm/components/Rate/index.d.ts +2 -1
  96. package/dist/esm/components/Rate/index.js +4 -1
  97. package/dist/esm/components/ReceiverAddress/index.d.ts +2 -1
  98. package/dist/esm/components/ReceiverAddress/index.js +4 -1
  99. package/dist/esm/components/ReceiverMobile/index.d.ts +2 -1
  100. package/dist/esm/components/ReceiverMobile/index.js +5 -2
  101. package/dist/esm/components/ReceiverName/index.d.ts +2 -1
  102. package/dist/esm/components/ReceiverName/index.js +4 -1
  103. package/dist/esm/components/Remark/index.d.ts +2 -1
  104. package/dist/esm/components/Remark/index.js +4 -1
  105. package/dist/esm/components/ReturnLogistics/index.d.ts +3 -6
  106. package/dist/esm/components/ReturnLogistics/index.js +5 -9
  107. package/dist/esm/components/Select/index.d.ts +3 -1
  108. package/dist/esm/components/Select/index.js +8 -2
  109. package/dist/esm/components/ShopInput/index.d.ts +2 -0
  110. package/dist/esm/components/ShopInput/index.js +6 -1
  111. package/dist/esm/components/ShopName/index.d.ts +2 -1
  112. package/dist/esm/components/ShopName/index.js +4 -1
  113. package/dist/esm/components/Submitter/index.d.ts +2 -0
  114. package/dist/esm/components/Submitter/index.js +6 -1
  115. package/dist/esm/components/SystemOrderNo/index.d.ts +2 -1
  116. package/dist/esm/components/SystemOrderNo/index.js +4 -1
  117. package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
  118. package/dist/esm/components/TemplateSelect/index.js +6 -1
  119. package/dist/esm/components/TextArea/index.d.ts +2 -1
  120. package/dist/esm/components/TextArea/index.js +4 -1
  121. package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -1
  122. package/dist/esm/components/ThirdItemSelect/index.js +4 -1
  123. package/dist/esm/components/TradeDateTime/index.d.ts +4 -6
  124. package/dist/esm/components/TradeDateTime/index.js +6 -9
  125. package/dist/esm/components/TradeId/index.d.ts +2 -4
  126. package/dist/esm/components/TradeId/index.js +6 -9
  127. package/dist/esm/components/WorkOrderId/index.d.ts +2 -1
  128. package/dist/esm/components/WorkOrderId/index.js +4 -1
  129. package/dist/esm/type.d.ts +4 -0
  130. package/package.json +4 -4
@@ -33,6 +33,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
33
33
  _defineProperty(this, "isCombinationComponent", void 0);
34
34
  _defineProperty(this, "canSort", void 0);
35
35
  _defineProperty(this, "children", void 0);
36
+ _defineProperty(this, "dataType", void 0);
36
37
  _defineProperty(this, "render", function (value) {
37
38
  var index = get(value, 'flag');
38
39
  return /*#__PURE__*/React.createElement("div", {
@@ -75,12 +76,13 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
75
76
  _defineProperty(this, "renderExport", function (value, record) {
76
77
  return get(record, "".concat(_this.id, "_remark"));
77
78
  });
78
- _defineProperty(this, "editRender", function () {
79
+ _defineProperty(this, "editRender", function (p) {
79
80
  var _this$componentConfig, _this$componentConfig2;
80
81
  return /*#__PURE__*/React.createElement(GetFormItem, {
81
82
  title: _this.name,
82
83
  name: _this.id,
83
84
  rules: _this.rules,
85
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
84
86
  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,
85
87
  component: /*#__PURE__*/React.createElement(Remark, _this.componentConfig)
86
88
  });
@@ -106,6 +108,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
106
108
  this.sortField = "".concat(options.id, "_remark");
107
109
  this.type = options.type;
108
110
  this.componentConfig = options.componentConfig;
111
+ this.dataType = 'object';
109
112
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
110
113
  validator: function validator(_, value) {
111
114
  var _this$componentConfig4;
@@ -1,4 +1,4 @@
1
- import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
1
+ import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
2
2
  import React from 'react';
3
3
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  import Express from '../Express';
@@ -9,10 +9,6 @@ declare class ReturnLogistics implements ComponentInterface {
9
9
  sortField: string;
10
10
  type: string;
11
11
  rules: any[];
12
- canFilter: boolean;
13
- canGroup: boolean;
14
- canHidden: boolean;
15
- dataType: DataType;
16
12
  showContains: boolean;
17
13
  componentConfig: ComponentInterface["componentConfig"];
18
14
  expressDateInstance: InstanceType<typeof ExpressData>;
@@ -21,6 +17,7 @@ declare class ReturnLogistics implements ComponentInterface {
21
17
  isCombinationComponent: boolean;
22
18
  canSort: boolean;
23
19
  children: ComponentInterface[];
20
+ dataType: ComponentInterface['dataType'];
24
21
  constructor(options: PickOption);
25
22
  renderClient: (record: any) => React.JSX.Element;
26
23
  renderPc: () => null;
@@ -30,7 +27,7 @@ declare class ReturnLogistics implements ComponentInterface {
30
27
  order: any;
31
28
  };
32
29
  renderExport: () => null;
33
- editRender: (value: any) => React.JSX.Element;
30
+ editRender: (p: any) => React.JSX.Element;
34
31
  filterConfig: (item: ColumnConfig) => ({
35
32
  searchDefaultConditions: "in";
36
33
  type: string;
@@ -23,10 +23,6 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
23
23
  _defineProperty(this, "sortField", void 0);
24
24
  _defineProperty(this, "type", void 0);
25
25
  _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
26
  _defineProperty(this, "showContains", void 0);
31
27
  _defineProperty(this, "componentConfig", void 0);
32
28
  _defineProperty(this, "expressDateInstance", void 0);
@@ -35,6 +31,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
35
31
  _defineProperty(this, "isCombinationComponent", void 0);
36
32
  _defineProperty(this, "canSort", void 0);
37
33
  _defineProperty(this, "children", void 0);
34
+ _defineProperty(this, "dataType", void 0);
38
35
  _defineProperty(this, "renderClient", function (record) {
39
36
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record));
40
37
  });
@@ -53,16 +50,17 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
53
50
  _defineProperty(this, "renderExport", function () {
54
51
  return null;
55
52
  });
56
- _defineProperty(this, "editRender", function (value) {
53
+ _defineProperty(this, "editRender", function (p) {
57
54
  var _this$componentConfig, _this$componentConfig2;
58
55
  return /*#__PURE__*/React.createElement(GetFormItem, {
59
56
  title: _this.name,
60
57
  name: _this.id,
61
58
  rules: _this.rules,
59
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
62
60
  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,
63
61
  component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
64
62
  options: _this.expressDateInstance.getExpressData(),
65
- onBlur: value === null || value === void 0 ? void 0 : value.onBlur
63
+ onBlur: p === null || p === void 0 ? void 0 : p.onBlur
66
64
  }))
67
65
  });
68
66
  });
@@ -77,9 +75,6 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
77
75
  this.id = options.id;
78
76
  this.sortField = options.id;
79
77
  this.type = options.type;
80
- this.canFilter = false;
81
- this.canGroup = false;
82
- this.canHidden = true;
83
78
  this.showContains = false;
84
79
  this.dataType = 'string';
85
80
  this.componentConfig = options.componentConfig;
@@ -94,6 +89,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
94
89
  }));
95
90
  this.isCombinationComponent = true;
96
91
  this.canSort = false;
92
+ this.dataType = 'object';
97
93
  this.children = [this.express, this.expressCode];
98
94
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
99
95
  validator: function validator(_, value) {
@@ -10,8 +10,10 @@ declare class BasicSelect implements ComponentInterface {
10
10
  isCombinationComponent: boolean;
11
11
  canSort: boolean;
12
12
  children: ComponentInterface[];
13
+ dataType: ComponentInterface['dataType'];
14
+ options: ComponentInterface['options'];
13
15
  constructor(options: PickOption);
14
- editRender: () => React.JSX.Element;
16
+ editRender: (p: any) => React.JSX.Element;
15
17
  renderClient: (record: any) => React.JSX.Element | null;
16
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
17
19
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -13,7 +13,8 @@ import ItemView from "../../commonComponents/ItemView";
13
13
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
14
  import { SYMBOL } from "../../constant";
15
15
  var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
16
- var _this = this;
16
+ var _this = this,
17
+ _this$componentConfig3;
17
18
  _classCallCheck(this, BasicSelect);
18
19
  _defineProperty(this, "name", void 0);
19
20
  _defineProperty(this, "id", void 0);
@@ -24,12 +25,15 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
24
25
  _defineProperty(this, "isCombinationComponent", void 0);
25
26
  _defineProperty(this, "canSort", void 0);
26
27
  _defineProperty(this, "children", void 0);
27
- _defineProperty(this, "editRender", function () {
28
+ _defineProperty(this, "dataType", void 0);
29
+ _defineProperty(this, "options", void 0);
30
+ _defineProperty(this, "editRender", function (p) {
28
31
  var _this$componentConfig, _this$componentConfig2;
29
32
  return /*#__PURE__*/React.createElement(GetFormItem, {
30
33
  title: _this.name,
31
34
  name: _this.id,
32
35
  rules: _this.rules,
36
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
33
37
  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,
34
38
  component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
35
39
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
@@ -88,5 +92,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
88
92
  this.isCombinationComponent = false;
89
93
  this.canSort = true;
90
94
  this.children = [];
95
+ this.dataType = 'string';
96
+ this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
91
97
  });
92
98
  export default BasicSelect;
@@ -10,6 +10,8 @@ declare class ShopInput implements ComponentInterface {
10
10
  isCombinationComponent: boolean;
11
11
  canSort: boolean;
12
12
  children: ComponentInterface[];
13
+ dataType: ComponentInterface['dataType'];
14
+ options: ComponentInterface['options'];
13
15
  constructor(options: PickOption);
14
16
  renderPc: (shopName: unknown, record: any) => React.JSX.Element;
15
17
  renderLog: (record: Record) => any;
@@ -10,7 +10,8 @@ import PlatformAvatar from "../../commonComponents/PlatformAvatar";
10
10
  import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
11
11
  import { SYMBOL } from "../../constant";
12
12
  var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
13
- var _this = this;
13
+ var _this = this,
14
+ _this$effects4;
14
15
  _classCallCheck(this, ShopInput);
15
16
  _defineProperty(this, "name", void 0);
16
17
  _defineProperty(this, "id", void 0);
@@ -21,6 +22,8 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
21
22
  _defineProperty(this, "isCombinationComponent", void 0);
22
23
  _defineProperty(this, "canSort", void 0);
23
24
  _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "options", void 0);
24
27
  _defineProperty(this, "renderPc", function (shopName, record) {
25
28
  return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
26
29
  type: record === null || record === void 0 ? void 0 : record.platform,
@@ -89,5 +92,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
89
92
  this.isCombinationComponent = false;
90
93
  this.canSort = true;
91
94
  this.children = [];
95
+ this.dataType = 'string';
96
+ this.options = this === null || this === void 0 ? void 0 : (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList;
92
97
  });
93
98
  export default ShopInput;
@@ -10,13 +10,14 @@ declare class BasicInput implements ComponentInterface {
10
10
  isCombinationComponent: boolean;
11
11
  canSort: boolean;
12
12
  children: ComponentInterface[];
13
+ dataType: ComponentInterface['dataType'];
13
14
  constructor(options: PickOption);
14
15
  renderClient: (record: any) => React.JSX.Element | null;
15
16
  renderPc: (value: any, record: Record) => React.JSX.Element;
16
17
  renderLog: (r: Record) => React.JSX.Element | null;
17
18
  getComponentValue: (r: Record) => any;
18
19
  renderExport: (value: any, record: Record) => any;
19
- editRender: () => React.JSX.Element;
20
+ editRender: (p: any) => React.JSX.Element;
20
21
  filterConfig: (item: ColumnConfig) => {
21
22
  searchDefaultConditions: "like";
22
23
  type: string;
@@ -24,6 +24,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
24
24
  _defineProperty(this, "isCombinationComponent", void 0);
25
25
  _defineProperty(this, "canSort", void 0);
26
26
  _defineProperty(this, "children", void 0);
27
+ _defineProperty(this, "dataType", void 0);
27
28
  _defineProperty(this, "renderClient", function (record) {
28
29
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
29
30
  id: _this.id,
@@ -46,12 +47,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
46
47
  var _record2;
47
48
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopName")]) !== null && _record2 !== void 0 ? _record2 : '--';
48
49
  });
49
- _defineProperty(this, "editRender", function () {
50
+ _defineProperty(this, "editRender", function (p) {
50
51
  var _this$componentConfig, _this$componentConfig2;
51
52
  return /*#__PURE__*/React.createElement(GetFormItem, {
52
53
  title: _this.name,
53
54
  name: _this.id,
54
55
  rules: _this.rules,
56
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
55
57
  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,
56
58
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
57
59
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
@@ -83,5 +85,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
83
85
  this.isCombinationComponent = false;
84
86
  this.canSort = true;
85
87
  this.children = [];
88
+ this.dataType = 'string';
86
89
  });
87
90
  export default BasicInput;
@@ -10,6 +10,8 @@ declare class Submitter implements ComponentInterface {
10
10
  isCombinationComponent: boolean;
11
11
  canSort: boolean;
12
12
  children: ComponentInterface[];
13
+ dataType: ComponentInterface['dataType'];
14
+ options: ComponentInterface['options'];
13
15
  constructor(options: PickOption);
14
16
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
15
17
  renderLog: () => null;
@@ -9,7 +9,8 @@ import React from 'react';
9
9
  import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
10
10
  import { SYMBOL } from "../../constant";
11
11
  var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
12
- var _this = this;
12
+ var _this = this,
13
+ _this$effects3;
13
14
  _classCallCheck(this, Submitter);
14
15
  _defineProperty(this, "name", void 0);
15
16
  _defineProperty(this, "id", void 0);
@@ -20,6 +21,8 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
20
21
  _defineProperty(this, "isCombinationComponent", void 0);
21
22
  _defineProperty(this, "canSort", void 0);
22
23
  _defineProperty(this, "children", void 0);
24
+ _defineProperty(this, "dataType", void 0);
25
+ _defineProperty(this, "options", void 0);
23
26
  _defineProperty(this, "renderPc", function (value, record) {
24
27
  var _record;
25
28
  return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
@@ -76,5 +79,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
76
79
  this.isCombinationComponent = false;
77
80
  this.canSort = true;
78
81
  this.children = [];
82
+ this.dataType = 'string';
83
+ this.options = ((_this$effects3 = this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.userList) || [];
79
84
  });
80
85
  export default Submitter;
@@ -11,13 +11,14 @@ declare class SystemOrderNo implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
+ dataType: ComponentInterface['dataType'];
14
15
  constructor(options: PickOption);
15
16
  renderClient: (record: Record) => React.JSX.Element | null;
16
17
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
17
18
  renderLog: (r: Record) => React.JSX.Element | null;
18
19
  getComponentValue: (r: Record) => any;
19
20
  renderExport: (value: string, record: Record) => any;
20
- editRender: () => React.JSX.Element;
21
+ editRender: (p: any) => React.JSX.Element;
21
22
  filterConfig: (item: ColumnConfig) => {
22
23
  searchDefaultConditions: "in";
23
24
  type: string;
@@ -25,6 +25,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
25
25
  _defineProperty(this, "isCombinationComponent", void 0);
26
26
  _defineProperty(this, "canSort", void 0);
27
27
  _defineProperty(this, "children", void 0);
28
+ _defineProperty(this, "dataType", void 0);
28
29
  _defineProperty(this, "renderClient", function (record) {
29
30
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
31
  id: _this.id,
@@ -47,12 +48,13 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
47
48
  var _record2;
48
49
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_systemOrderNo")]) !== null && _record2 !== void 0 ? _record2 : '--';
49
50
  });
50
- _defineProperty(this, "editRender", function () {
51
+ _defineProperty(this, "editRender", function (p) {
51
52
  var _this$componentConfig, _this$componentConfig2;
52
53
  return /*#__PURE__*/React.createElement(GetFormItem, {
53
54
  title: _this.name,
54
55
  name: _this.id,
55
56
  rules: _this.rules,
57
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
56
58
  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
59
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
58
60
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
@@ -88,5 +90,6 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
88
90
  this.isCombinationComponent = false;
89
91
  this.canSort = true;
90
92
  this.children = [];
93
+ this.dataType = 'string';
91
94
  });
92
95
  export default SystemOrderNo;
@@ -11,6 +11,8 @@ declare class TemplateSelect implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
+ dataType: ComponentInterface['dataType'];
15
+ options: ComponentInterface['options'];
14
16
  constructor(options: PickOption);
15
17
  renderPc: (value: any, record: Record) => React.JSX.Element;
16
18
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -11,7 +11,8 @@ import get from 'lodash/get';
11
11
  import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
12
12
  import { SYMBOL } from "../../constant";
13
13
  var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options) {
14
- var _this = this;
14
+ var _this = this,
15
+ _this$effects4;
15
16
  _classCallCheck(this, TemplateSelect);
16
17
  _defineProperty(this, "name", void 0);
17
18
  _defineProperty(this, "id", void 0);
@@ -23,6 +24,8 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
23
24
  _defineProperty(this, "isCombinationComponent", void 0);
24
25
  _defineProperty(this, "canSort", void 0);
25
26
  _defineProperty(this, "children", void 0);
27
+ _defineProperty(this, "dataType", void 0);
28
+ _defineProperty(this, "options", void 0);
26
29
  _defineProperty(this, "renderPc", function (value, record) {
27
30
  var _this$effects;
28
31
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
@@ -86,5 +89,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
86
89
  this.isCombinationComponent = false;
87
90
  this.canSort = true;
88
91
  this.children = [];
92
+ this.dataType = 'string';
93
+ this.options = (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.templateList;
89
94
  });
90
95
  export default TemplateSelect;
@@ -10,13 +10,14 @@ declare class BasicInput implements ComponentInterface {
10
10
  isCombinationComponent: boolean;
11
11
  canSort: boolean;
12
12
  children: ComponentInterface[];
13
+ dataType: ComponentInterface['dataType'];
13
14
  constructor(options: PickOption);
14
15
  renderPc: (value: any, record: Record) => React.JSX.Element;
15
16
  renderLog: (r: Record) => React.JSX.Element | null;
16
17
  getComponentValue: (r: Record) => any;
17
18
  renderExport: (value: any, record: Record) => any;
18
19
  renderClient: (record: Record) => React.JSX.Element | null;
19
- editRender: () => React.JSX.Element;
20
+ editRender: (p: any) => React.JSX.Element;
20
21
  filterConfig: (item: ColumnConfig) => {
21
22
  searchDefaultConditions: "like";
22
23
  type: string;
@@ -24,6 +24,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
24
24
  _defineProperty(this, "isCombinationComponent", void 0);
25
25
  _defineProperty(this, "canSort", void 0);
26
26
  _defineProperty(this, "children", void 0);
27
+ _defineProperty(this, "dataType", void 0);
27
28
  _defineProperty(this, "renderPc", function (value, record) {
28
29
  var _record;
29
30
  return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record !== void 0 ? _record : '--');
@@ -46,13 +47,14 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
46
47
  value: record === null || record === void 0 ? void 0 : record[_this.id]
47
48
  }) : null;
48
49
  });
49
- _defineProperty(this, "editRender", function () {
50
+ _defineProperty(this, "editRender", function (p) {
50
51
  var _this$componentConfig, _this$componentConfig2;
51
52
  return /*#__PURE__*/React.createElement(GetFormItem, {
52
53
  title: _this.name,
53
54
  name: _this.id,
54
55
  rules: _this.rules,
55
56
  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
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
56
58
  component: /*#__PURE__*/React.createElement(ApaasTextArea, _extends({}, _this.componentConfig, {
57
59
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
58
60
  }))
@@ -79,6 +81,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
79
81
  this.sortField = "".concat(options.id, "_textarea");
80
82
  this.type = options.type;
81
83
  this.componentConfig = options.componentConfig;
84
+ this.dataType = 'string';
82
85
  this.rules = [];
83
86
  this.isCombinationComponent = false;
84
87
  this.canSort = true;
@@ -11,13 +11,14 @@ declare class ThirdItemSelect implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
+ dataType: ComponentInterface['dataType'];
14
15
  constructor(options: PickOption);
15
16
  renderClient: (record: Record) => React.JSX.Element | null;
16
17
  renderPc: (value: any, record: Record) => React.JSX.Element;
17
18
  renderLog: (r: Record) => React.JSX.Element | null;
18
19
  getComponentValue: (r: Record) => any;
19
20
  renderExport: (value: any, record: Record) => any;
20
- editRender: () => React.JSX.Element;
21
+ editRender: (p: any) => React.JSX.Element;
21
22
  filterConfig: (item: ColumnConfig) => {
22
23
  searchDefaultConditions: "like";
23
24
  type: string;
@@ -27,6 +27,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
27
27
  _defineProperty(this, "isCombinationComponent", void 0);
28
28
  _defineProperty(this, "canSort", void 0);
29
29
  _defineProperty(this, "children", void 0);
30
+ _defineProperty(this, "dataType", void 0);
30
31
  _defineProperty(this, "renderClient", function (record) {
31
32
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
32
33
  id: _this.id,
@@ -61,13 +62,14 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
61
62
  return "\u4F9B\u5E94\u5546\u7F16\u7801:".concat(item.itemId || item.supplierItemOuterId || '', "\n\u4F9B\u5E94\u5546\u540D\u79F0:").concat(item.supplierName || '');
62
63
  });
63
64
  });
64
- _defineProperty(this, "editRender", function () {
65
+ _defineProperty(this, "editRender", function (p) {
65
66
  var _this$componentConfig, _this$effects, _this$effects2;
66
67
  return /*#__PURE__*/React.createElement(GetFormItem, {
67
68
  title: _this.name,
68
69
  name: _this.id,
69
70
  rules: _this.rules,
70
71
  required: false,
72
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
71
73
  component: /*#__PURE__*/React.createElement(ItemEncode, _extends({}, _this.componentConfig, {
72
74
  maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
73
75
  type: 4,
@@ -108,6 +110,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
108
110
  this.isCombinationComponent = false;
109
111
  this.canSort = false;
110
112
  this.children = [];
113
+ this.dataType = 'object';
111
114
  this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
112
115
  required: true,
113
116
  validator: function validator(_, value) {
@@ -1,4 +1,4 @@
1
- import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
1
+ import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
2
2
  import React from 'react';
3
3
  declare type Value = string | string[] | undefined;
4
4
  declare class BasicDataTime implements ComponentInterface {
@@ -7,16 +7,14 @@ declare class BasicDataTime implements ComponentInterface {
7
7
  sortField: string;
8
8
  type: string;
9
9
  rules: any[];
10
- canFilter: boolean;
11
- canGroup: boolean;
12
- canHidden: boolean;
13
- dataType: DataType;
14
10
  showContains: boolean;
15
11
  componentConfig: ComponentInterface["componentConfig"];
16
12
  isCombinationComponent: boolean;
17
13
  canSort: boolean;
18
14
  children: ComponentInterface[];
19
15
  dataMap: Record;
16
+ dataType: ComponentInterface['dataType'];
17
+ format: ComponentInterface['format'];
20
18
  constructor(options: PickOption);
21
19
  render: (value: Value) => React.JSX.Element;
22
20
  renderClient: (record: any) => React.JSX.Element | null;
@@ -24,7 +22,7 @@ declare class BasicDataTime implements ComponentInterface {
24
22
  renderLog: (r: Record) => React.JSX.Element | null;
25
23
  getComponentValue: (r: Record) => any;
26
24
  renderExport: (value: unknown, record: Record) => any;
27
- editRender: () => React.JSX.Element;
25
+ editRender: (p: any) => React.JSX.Element;
28
26
  getKeyByComponentType: (type: string) => "tradeCreateDateTime" | "tradePaymentDateTime" | "tradeDeliveryDateTime" | "tradeClosingDateTime" | undefined;
29
27
  filterConfig: (item: ColumnConfig) => {
30
28
  searchDefaultConditions: "between";
@@ -21,16 +21,14 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
21
21
  _defineProperty(this, "sortField", void 0);
22
22
  _defineProperty(this, "type", void 0);
23
23
  _defineProperty(this, "rules", void 0);
24
- _defineProperty(this, "canFilter", void 0);
25
- _defineProperty(this, "canGroup", void 0);
26
- _defineProperty(this, "canHidden", void 0);
27
- _defineProperty(this, "dataType", void 0);
28
24
  _defineProperty(this, "showContains", void 0);
29
25
  _defineProperty(this, "componentConfig", void 0);
30
26
  _defineProperty(this, "isCombinationComponent", void 0);
31
27
  _defineProperty(this, "canSort", void 0);
32
28
  _defineProperty(this, "children", void 0);
33
29
  _defineProperty(this, "dataMap", void 0);
30
+ _defineProperty(this, "dataType", void 0);
31
+ _defineProperty(this, "format", void 0);
34
32
  _defineProperty(this, "render", function (value) {
35
33
  return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join('~') : /*#__PURE__*/React.createElement("span", null, value));
36
34
  });
@@ -66,12 +64,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
66
64
  };
67
65
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(map[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
68
66
  });
69
- _defineProperty(this, "editRender", function () {
67
+ _defineProperty(this, "editRender", function (p) {
70
68
  var _this$componentConfig, _this$componentConfig2;
71
69
  return /*#__PURE__*/React.createElement(GetFormItem, {
72
70
  title: _this.name,
73
71
  name: _this.id,
74
72
  rules: _this.rules,
73
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
75
74
  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,
76
75
  component: /*#__PURE__*/React.createElement(DateTime, _extends({}, _this.componentConfig, {
77
76
  dateType: "DATE_TIME"
@@ -121,11 +120,9 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
121
120
  this.id = options.id;
122
121
  this.sortField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
123
122
  this.type = options.type;
124
- this.canFilter = true;
125
- this.canGroup = true;
126
- this.canHidden = true;
127
123
  this.showContains = false;
128
- this.dataType = 'date';
124
+ this.dataType = 'string';
125
+ this.format = 'dateTime';
129
126
  this.componentConfig = options.componentConfig;
130
127
  this.rules = [];
131
128
  this.isCombinationComponent = false;
@@ -6,9 +6,6 @@ declare class ETradeId implements ComponentInterface {
6
6
  sortField: string;
7
7
  type: string;
8
8
  rules: any[];
9
- canFilter: boolean;
10
- canGroup: boolean;
11
- canHidden: boolean;
12
9
  dataType: DataType;
13
10
  showContains: boolean;
14
11
  onlyContainsString: boolean;
@@ -17,13 +14,14 @@ declare class ETradeId implements ComponentInterface {
17
14
  isCombinationComponent: boolean;
18
15
  canSort: boolean;
19
16
  children: ComponentInterface[];
17
+ dataType: ComponentInterface['dataType'];
20
18
  constructor(options: PickOption);
21
19
  renderClient: (record: any) => React.JSX.Element | null;
22
20
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
23
21
  renderLog: (r: Record) => React.JSX.Element | null;
24
22
  getComponentValue: (r: Record) => any;
25
23
  renderExport: (value: unknown, record: Record) => any;
26
- editRender: (value: any) => React.JSX.Element;
24
+ editRender: (p: any) => React.JSX.Element;
27
25
  filterConfig: (item: ColumnConfig) => {
28
26
  searchDefaultConditions: "in";
29
27
  type: string;
@@ -20,9 +20,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
20
20
  _defineProperty(this, "sortField", void 0);
21
21
  _defineProperty(this, "type", void 0);
22
22
  _defineProperty(this, "rules", void 0);
23
- _defineProperty(this, "canFilter", void 0);
24
- _defineProperty(this, "canGroup", void 0);
25
- _defineProperty(this, "canHidden", void 0);
26
23
  _defineProperty(this, "dataType", void 0);
27
24
  _defineProperty(this, "showContains", void 0);
28
25
  _defineProperty(this, "onlyContainsString", void 0);
@@ -31,6 +28,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
31
28
  _defineProperty(this, "isCombinationComponent", void 0);
32
29
  _defineProperty(this, "canSort", void 0);
33
30
  _defineProperty(this, "children", void 0);
31
+ _defineProperty(this, "dataType", void 0);
34
32
  _defineProperty(this, "renderClient", function (record) {
35
33
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
36
34
  id: _this.id,
@@ -53,16 +51,17 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
53
51
  var _record2;
54
52
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record2 !== void 0 ? _record2 : '--';
55
53
  });
56
- _defineProperty(this, "editRender", function (value) {
54
+ _defineProperty(this, "editRender", function (p) {
57
55
  var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2;
58
56
  var onTradeIdBlur = function onTradeIdBlur(e) {
59
- var _value$onBlur;
60
- value === null || value === void 0 ? void 0 : (_value$onBlur = value.onBlur) === null || _value$onBlur === void 0 ? void 0 : _value$onBlur.call(value, e.target.value, 'tradeId');
57
+ var _p$onBlur;
58
+ p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, 'tradeId');
61
59
  };
62
60
  return /*#__PURE__*/React.createElement(GetFormItem, {
63
61
  title: _this.name,
64
62
  name: _this.id,
65
63
  rules: _this.rules,
64
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
66
65
  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,
67
66
  component: /*#__PURE__*/React.createElement(TradeId, _extends({}, _this.componentConfig, {
68
67
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
@@ -95,9 +94,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
95
94
  this.id = options.id;
96
95
  this.sortField = "".concat(options.id, "_tradeId");
97
96
  this.type = options.type;
98
- this.canFilter = true;
99
- this.canGroup = true;
100
- this.canHidden = true;
101
97
  this.dataType = 'tradeId';
102
98
  this.showContains = false;
103
99
  this.onlyContainsString = true;
@@ -107,5 +103,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
107
103
  this.isCombinationComponent = false;
108
104
  this.canSort = true;
109
105
  this.children = [];
106
+ this.dataType = 'string';
110
107
  });
111
108
  export default ETradeId;