@kmkf-fe-packages/services-components 1.5.0 → 1.6.0-beta.1

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 (100) hide show
  1. package/README.md +3 -1
  2. package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
  3. package/dist/esm/commonComponents/GlobalContext/index.js +1 -1
  4. package/dist/esm/components/ActualPayment/index.js +2 -1
  5. package/dist/esm/components/Address/index.js +2 -1
  6. package/dist/esm/components/AfterSalesOrderId/index.js +2 -1
  7. package/dist/esm/components/Alipay/index.js +6 -5
  8. package/dist/esm/components/AlipayAccount/index.js +2 -1
  9. package/dist/esm/components/AlipayName/index.js +2 -1
  10. package/dist/esm/components/BS/BsExchange/index.js +7 -6
  11. package/dist/esm/components/BS/BsGoods/index.js +5 -4
  12. package/dist/esm/components/BS/BsLogistics/index.js +8 -7
  13. package/dist/esm/components/BS/BsPosting/index.js +3 -2
  14. package/dist/esm/components/BS/BsReissue/index.js +5 -4
  15. package/dist/esm/components/BS/BsReturn/index.js +5 -4
  16. package/dist/esm/components/BS/BsSystemOrder/index.js +4 -2
  17. package/dist/esm/components/BS/DeliveryNo/index.js +4 -3
  18. package/dist/esm/components/BuyerNick/index.js +4 -3
  19. package/dist/esm/components/Calculation/index.js +2 -1
  20. package/dist/esm/components/Cascader/index.js +5 -4
  21. package/dist/esm/components/Checkbox/index.js +4 -3
  22. package/dist/esm/components/Common/index.js +4 -3
  23. package/dist/esm/components/CommonInput/index.js +2 -1
  24. package/dist/esm/components/CommonMultiStatus/index.js +4 -3
  25. package/dist/esm/components/CommonSystemOrder/index.js +4 -3
  26. package/dist/esm/components/CommonTradeId/index.js +2 -1
  27. package/dist/esm/components/DataTime/index.js +7 -6
  28. package/dist/esm/components/EItemEnCode/index.js +6 -5
  29. package/dist/esm/components/EItemId/index.js +5 -4
  30. package/dist/esm/components/EItemSelect/index.js +3 -2
  31. package/dist/esm/components/ErpTradeId/index.js +2 -1
  32. package/dist/esm/components/Express/index.js +3 -2
  33. package/dist/esm/components/ExpressCode/index.js +5 -4
  34. package/dist/esm/components/File/index.js +2 -1
  35. package/dist/esm/components/FlowMarkSelect/index.js +2 -1
  36. package/dist/esm/components/FlowStatusSelect/index.js +2 -1
  37. package/dist/esm/components/FlowTag/index.js +2 -1
  38. package/dist/esm/components/FlowWorkOrderId/index.js +2 -1
  39. package/dist/esm/components/FlowWorkOrderStatus/index.js +2 -1
  40. package/dist/esm/components/GetFormItem/index.d.ts +2 -1
  41. package/dist/esm/components/GetFormItem/index.js +4 -2
  42. package/dist/esm/components/Grade/index.js +2 -1
  43. package/dist/esm/components/Input/index.js +17 -16
  44. package/dist/esm/components/JST/JstItemSelect/index.js +7 -5
  45. package/dist/esm/components/JST/JstLogistics/index.js +9 -8
  46. package/dist/esm/components/JST/JstSendGood/index.js +9 -7
  47. package/dist/esm/components/JST/JstSupply/index.js +6 -4
  48. package/dist/esm/components/KmErpSendGood/index.js +9 -7
  49. package/dist/esm/components/Label/index.js +2 -1
  50. package/dist/esm/components/Logistics/index.js +9 -8
  51. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -1
  52. package/dist/esm/components/LogisticsInterception/index.js +5 -4
  53. package/dist/esm/components/LogisticsMoreInterception/index.js +4 -3
  54. package/dist/esm/components/LogisticsMoreTrajectory/index.js +4 -3
  55. package/dist/esm/components/LogisticsTrajectory/index.js +4 -3
  56. package/dist/esm/components/MsgStatus/index.js +6 -4
  57. package/dist/esm/components/MultSelect/index.js +4 -3
  58. package/dist/esm/components/Ordinary/OrdinaryHeader.js +2 -1
  59. package/dist/esm/components/Ordinary/OrdinaryMoney.js +2 -1
  60. package/dist/esm/components/Ordinary/OrdinarySerial.js +2 -1
  61. package/dist/esm/components/Ordinary/index.js +4 -3
  62. package/dist/esm/components/Payment/AlipayNick.js +2 -1
  63. package/dist/esm/components/Payment/AlipayNo.js +2 -1
  64. package/dist/esm/components/Payment/AlipayTime.js +2 -1
  65. package/dist/esm/components/Payment/BuyerNick.js +2 -1
  66. package/dist/esm/components/Payment/PaymentAmount.js +2 -1
  67. package/dist/esm/components/Payment/PaymentTid.js +2 -1
  68. package/dist/esm/components/Payment/index.js +8 -7
  69. package/dist/esm/components/PaymentVoucherCode/index.js +2 -1
  70. package/dist/esm/components/Picture/index.js +3 -2
  71. package/dist/esm/components/PostIng/index.js +3 -2
  72. package/dist/esm/components/Radio/index.js +6 -5
  73. package/dist/esm/components/Rate/index.js +2 -1
  74. package/dist/esm/components/ReceiverAddress/index.js +4 -3
  75. package/dist/esm/components/ReceiverMobile/index.js +2 -1
  76. package/dist/esm/components/ReceiverName/index.js +2 -1
  77. package/dist/esm/components/Remark/index.js +6 -5
  78. package/dist/esm/components/ReturnLogistics/index.js +9 -8
  79. package/dist/esm/components/Select/index.js +4 -3
  80. package/dist/esm/components/ShopName/index.js +2 -1
  81. package/dist/esm/components/StatusSelect/index.js +2 -1
  82. package/dist/esm/components/SubForm/index.d.ts +33 -0
  83. package/dist/esm/components/SubForm/index.js +174 -0
  84. package/dist/esm/components/SystemOrderNo/index.js +2 -1
  85. package/dist/esm/components/TextArea/index.js +2 -1
  86. package/dist/esm/components/ThirdItemSelect/index.js +8 -7
  87. package/dist/esm/components/TradeDateTime/index.js +2 -1
  88. package/dist/esm/components/TradeId/index.js +2 -1
  89. package/dist/esm/components/WDT/WdtExchange/index.js +7 -6
  90. package/dist/esm/components/WDT/WdtGoods/index.js +5 -4
  91. package/dist/esm/components/WDT/WdtRessuie/index.js +5 -4
  92. package/dist/esm/components/WDT/WdtReturn/index.js +5 -4
  93. package/dist/esm/components/WLN/WlnGoods/index.js +5 -4
  94. package/dist/esm/components/WorkOrderId/index.js +2 -1
  95. package/dist/esm/factory.d.ts +2 -2
  96. package/dist/esm/factory.js +5 -4
  97. package/dist/esm/index.d.ts +1 -0
  98. package/dist/esm/index.js +1 -0
  99. package/dist/esm/type.d.ts +12 -1
  100. package/package.json +6 -6
@@ -62,7 +62,7 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
62
62
  return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
63
63
  });
64
64
  _defineProperty(this, "editRender", function (p) {
65
- var _this$componentConfig, _this$componentConfig2;
65
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
66
66
  return /*#__PURE__*/React.createElement(GetFormItem, {
67
67
  title: _this.name,
68
68
  name: _this.id,
@@ -70,6 +70,7 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
70
70
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
71
71
  display: p === null || p === void 0 ? void 0 : p.display,
72
72
  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,
73
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
73
74
  component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
74
75
  placeholder: INPUT_MAP[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
75
76
  disabled: INPUT_MAP[_this.type].disabled
@@ -80,7 +80,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
80
80
  var _this = this,
81
81
  _typeMap$options$type,
82
82
  _typeMap$options$type2,
83
- _this$componentConfig6;
83
+ _this$componentConfig8;
84
84
  _classCallCheck(this, CommonMultiStatus);
85
85
  _defineProperty(this, "name", void 0);
86
86
  _defineProperty(this, "id", void 0);
@@ -154,7 +154,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
154
154
  }).join(',');
155
155
  });
156
156
  _defineProperty(this, "editRender", function (p) {
157
- var _this$componentConfig4, _this$componentConfig5, _typeMap$_this$type18;
157
+ var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7, _typeMap$_this$type18;
158
158
  return /*#__PURE__*/React.createElement(GetFormItem, {
159
159
  title: _this.name,
160
160
  name: _this.id,
@@ -162,6 +162,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
162
162
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
163
163
  display: p === null || p === void 0 ? void 0 : p.display,
164
164
  required: (_this$componentConfig4 = (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.required) !== null && _this$componentConfig4 !== void 0 ? _this$componentConfig4 : false,
165
+ tooltip: (_this$componentConfig6 = (_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.tooltip) !== null && _this$componentConfig6 !== void 0 ? _this$componentConfig6 : '',
165
166
  component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
166
167
  type: (_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.type,
167
168
  failValue: typeMap[_this.type].failValue
@@ -210,7 +211,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
210
211
  this.canSort = false;
211
212
  this.children = [];
212
213
  this.dataType = 'object';
213
- this.rules = (_this$componentConfig6 = this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required ? [{
214
+ this.rules = (_this$componentConfig8 = this.componentConfig) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.required ? [{
214
215
  required: true,
215
216
  validator: function validator(_, value) {
216
217
  var hasNo = (value || []).some(function (item) {
@@ -48,7 +48,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
48
48
  var _this = this,
49
49
  _typeMap$options$type,
50
50
  _typeMap$options$type2,
51
- _this$componentConfig5;
51
+ _this$componentConfig7;
52
52
  _classCallCheck(this, CommonSystemOrder);
53
53
  _defineProperty(this, "name", void 0);
54
54
  _defineProperty(this, "id", void 0);
@@ -111,7 +111,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
111
111
  }).join(',');
112
112
  });
113
113
  _defineProperty(this, "editRender", function (p) {
114
- var _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type9;
114
+ var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _typeMap$_this$type9;
115
115
  return /*#__PURE__*/React.createElement(GetFormItem, {
116
116
  title: _this.name,
117
117
  name: _this.id,
@@ -119,6 +119,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
119
119
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
120
120
  display: p === null || p === void 0 ? void 0 : p.display,
121
121
  required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
122
+ tooltip: (_this$componentConfig5 = (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip) !== null && _this$componentConfig5 !== void 0 ? _this$componentConfig5 : '',
122
123
  component: /*#__PURE__*/React.createElement(SystemOrder, _extends({}, _this.componentConfig, {
123
124
  type: (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.type
124
125
  }))
@@ -153,7 +154,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
153
154
  this.canSort = false;
154
155
  this.children = [];
155
156
  this.dataType = 'object';
156
- this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
157
+ this.rules = (_this$componentConfig7 = this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required ? [{
157
158
  required: true,
158
159
  validator: function validator(_, value) {
159
160
  var hasNo = (value || []).some(function (item) {
@@ -71,7 +71,7 @@ var CommonTradeId = /*#__PURE__*/_createClass(function CommonTradeId(options) {
71
71
  return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(TRADE_ID_MAP[_this.type].key)]) !== null && _record !== void 0 ? _record : '--';
72
72
  });
73
73
  _defineProperty(this, "editRender", function (p) {
74
- var _this$componentConfig, _this$componentConfig2;
74
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
75
75
  return /*#__PURE__*/React.createElement(GetFormItem, {
76
76
  title: _this.name,
77
77
  name: _this.id,
@@ -79,6 +79,7 @@ var CommonTradeId = /*#__PURE__*/_createClass(function CommonTradeId(options) {
79
79
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
80
80
  display: p === null || p === void 0 ? void 0 : p.display,
81
81
  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,
82
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
82
83
  component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
83
84
  placeholder: "\u65E0\u987B\u586B\u5199",
84
85
  disabled: true
@@ -32,10 +32,10 @@ export var DateTime = function DateTime(_ref) {
32
32
  };
33
33
  var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
34
34
  var _this = this,
35
- _this$componentConfig3,
36
- _this$componentConfig4,
37
35
  _this$componentConfig5,
38
- _this$componentConfig6;
36
+ _this$componentConfig6,
37
+ _this$componentConfig7,
38
+ _this$componentConfig8;
39
39
  _classCallCheck(this, BasicDataTime);
40
40
  _defineProperty(this, "name", void 0);
41
41
  _defineProperty(this, "id", void 0);
@@ -79,7 +79,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
79
79
  return Array.isArray(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) ? record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")].join('~') : record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")];
80
80
  });
81
81
  _defineProperty(this, "editRender", function (p) {
82
- var _this$componentConfig, _this$componentConfig2;
82
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
83
83
  return /*#__PURE__*/React.createElement(GetFormItem, {
84
84
  title: _this.name,
85
85
  name: _this.id,
@@ -87,6 +87,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
87
87
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
88
88
  display: p === null || p === void 0 ? void 0 : p.display,
89
89
  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,
90
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
90
91
  component: /*#__PURE__*/React.createElement(DateTime, _this.componentConfig)
91
92
  });
92
93
  });
@@ -134,7 +135,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
134
135
  this.isCombinationComponent = false;
135
136
  this.canSort = true;
136
137
  this.children = [];
137
- this.dataType = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && (_this$componentConfig4 = _this$componentConfig3.dateType) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.includes('RANGE') ? 'range' : 'string';
138
- this.format = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && (_this$componentConfig6 = _this$componentConfig5.dateType) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.includes('DATE_TIME') ? 'dateTime' : 'date';
138
+ this.dataType = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && (_this$componentConfig6 = _this$componentConfig5.dateType) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.includes('RANGE') ? 'range' : 'string';
139
+ this.format = (_this$componentConfig7 = this.componentConfig) !== null && _this$componentConfig7 !== void 0 && (_this$componentConfig8 = _this$componentConfig7.dateType) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.includes('DATE_TIME') ? 'dateTime' : 'date';
139
140
  });
140
141
  export default BasicDataTime;
@@ -18,8 +18,8 @@ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
18
18
  import { SYMBOL } from "../../constant";
19
19
  var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
20
20
  var _this = this,
21
- _this$componentConfig,
22
- _this$componentConfig2;
21
+ _this$componentConfig3,
22
+ _this$componentConfig4;
23
23
  _classCallCheck(this, EItemEncode);
24
24
  _defineProperty(this, "name", void 0);
25
25
  _defineProperty(this, "id", void 0);
@@ -78,7 +78,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
78
78
  return null;
79
79
  });
80
80
  _defineProperty(this, "editRender", function (p) {
81
- var _this$effects, _this$effects2;
81
+ var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2;
82
82
  return /*#__PURE__*/React.createElement(GetFormItem, {
83
83
  title: _this.name,
84
84
  name: _this.id,
@@ -86,6 +86,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
86
86
  required: false,
87
87
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
88
88
  display: p === null || p === void 0 ? void 0 : p.display,
89
+ tooltip: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : '',
89
90
  component: /*#__PURE__*/React.createElement(ItemEncode, _extends({
90
91
  isSingleRow: _this.platform !== 'pc'
91
92
  }, _this.componentConfig, {
@@ -114,7 +115,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
114
115
  this.type = options.type;
115
116
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
116
117
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
117
- this.showHeader = ((_this$componentConfig = this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || ["title",
118
+ this.showHeader = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showHeader) || ["title",
118
119
  // 商品名称
119
120
  "outerId",
120
121
  // 商品编码
@@ -136,7 +137,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
136
137
  name: "商品信息"
137
138
  }));
138
139
  this.children = [this.goods];
139
- this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
140
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
140
141
  required: true,
141
142
  validator: function validator(_, value) {
142
143
  if (!value || !value.length) {
@@ -15,7 +15,7 @@ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
15
15
  import { SYMBOL } from "../../constant";
16
16
  var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
17
17
  var _this = this,
18
- _this$componentConfig2;
18
+ _this$componentConfig4;
19
19
  _classCallCheck(this, EItemId);
20
20
  _defineProperty(this, "name", void 0);
21
21
  _defineProperty(this, "id", void 0);
@@ -67,7 +67,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
67
67
  }).join("\n");
68
68
  });
69
69
  _defineProperty(this, "editRender", function (p) {
70
- var _this$componentConfig, _this$effects, _this$effects2;
70
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$effects, _this$effects2;
71
71
  return /*#__PURE__*/React.createElement(GetFormItem, {
72
72
  title: _this.name,
73
73
  name: _this.id,
@@ -75,8 +75,9 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
75
75
  required: false,
76
76
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
77
77
  display: p === null || p === void 0 ? void 0 : p.display,
78
+ tooltip: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : '',
78
79
  component: /*#__PURE__*/React.createElement(ItemId, _extends({}, _this.componentConfig, {
79
- maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
80
+ maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
80
81
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
81
82
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
82
83
  width: "90%"
@@ -113,7 +114,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
113
114
  this.canSort = false;
114
115
  this.children = [];
115
116
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
116
- this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
117
+ this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
117
118
  required: true,
118
119
  validator: function validator(_, value) {
119
120
  if (!value || !value.length) {
@@ -62,7 +62,7 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
62
62
  }).join("\n");
63
63
  });
64
64
  _defineProperty(this, "editRender", function (p) {
65
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$effects, _this$effects2;
65
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$effects, _this$effects2;
66
66
  return /*#__PURE__*/React.createElement(GetFormItem, {
67
67
  title: _this.name,
68
68
  name: _this.id,
@@ -70,8 +70,9 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
70
70
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
71
71
  display: p === null || p === void 0 ? void 0 : p.display,
72
72
  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,
73
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
73
74
  component: /*#__PURE__*/React.createElement(ItemSelect, _extends({}, _this.componentConfig, {
74
- maxLength: ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.maxLength) || 20,
75
+ maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
75
76
  shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
76
77
  shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
77
78
  width: "90%"
@@ -28,7 +28,7 @@ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
28
28
  }
29
29
  _this = _super.call.apply(_super, [this].concat(args));
30
30
  _defineProperty(_assertThisInitialized(_this), "editRender", function (p) {
31
- var _this$componentConfig, _this$componentConfig2;
31
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
32
32
  var onTradeIdBlur = function onTradeIdBlur(value) {
33
33
  var _p$onBlur;
34
34
  p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, value, 'tradeId');
@@ -40,6 +40,7 @@ var ErpTradeId = /*#__PURE__*/function (_TradeId) {
40
40
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
41
41
  display: p === null || p === void 0 ? void 0 : p.display,
42
42
  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,
43
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
43
44
  component: /*#__PURE__*/React.createElement(OrderNo, _extends({}, _this.componentConfig, {
44
45
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
45
46
  onTradeIdBlur: onTradeIdBlur
@@ -54,7 +54,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
54
54
  return _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id]) || "--";
55
55
  });
56
56
  _defineProperty(this, "editRender", function (p) {
57
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
57
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
58
58
  return /*#__PURE__*/React.createElement(GetFormItem, {
59
59
  title: _this.name,
60
60
  name: _this.id,
@@ -62,7 +62,8 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
62
62
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
63
63
  display: p === null || p === void 0 ? void 0 : p.display,
64
64
  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,
65
- 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_COMPANY" ? /*#__PURE__*/React.createElement(ExpressCompany, {
65
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
66
+ component: !((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.isSingle) || ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showField) === "EXPRESS_COMPANY" ? /*#__PURE__*/React.createElement(ExpressCompany, {
66
67
  options: _this.expressDateInstance.getExpressData()
67
68
  }) : null
68
69
  });
@@ -14,7 +14,7 @@ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import { SYMBOL } from "../../constant";
15
15
  var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
16
16
  var _this = this,
17
- _this$componentConfig5;
17
+ _this$componentConfig7;
18
18
  _classCallCheck(this, ExpressCode);
19
19
  _defineProperty(this, "name", void 0);
20
20
  _defineProperty(this, "id", void 0);
@@ -55,7 +55,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
55
55
  return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
56
56
  });
57
57
  _defineProperty(this, "editRender", function (p) {
58
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
58
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
59
59
  return /*#__PURE__*/React.createElement(GetFormItem, {
60
60
  title: _this.name,
61
61
  name: _this.id,
@@ -63,7 +63,8 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
63
63
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
64
64
  display: p === null || p === void 0 ? void 0 : p.display,
65
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,
66
- 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
66
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
67
+ component: !((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.isSingle) || ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showField) === "EXPRESS_WAYBILL_CODE" ? /*#__PURE__*/React.createElement(Input, null) : null
67
68
  });
68
69
  });
69
70
  _defineProperty(this, "filterConfig", function (item) {
@@ -87,7 +88,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
87
88
  this.formField = options.id;
88
89
  this.type = options.type;
89
90
  this.componentConfig = options.componentConfig;
90
- this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
91
+ this.rules = (_this$componentConfig7 = this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required ? [{
91
92
  validator: function validator(_, value) {
92
93
  if (/^[0-9a-zA-Z]*$/.test(value)) {
93
94
  return Promise.resolve();
@@ -72,7 +72,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
72
72
  }) : null;
73
73
  });
74
74
  _defineProperty(this, "editRender", function (p) {
75
- var _this$effects2, _this$componentConfig, _this$componentConfig2;
75
+ var _this$effects2, _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
76
76
  var canDownload = ![PlatForm.KS, PlatForm.FXG].includes((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.env);
77
77
  return /*#__PURE__*/React.createElement(GetFormItem, {
78
78
  title: _this.name,
@@ -81,6 +81,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
81
81
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
82
82
  display: p === null || p === void 0 ? void 0 : p.display,
83
83
  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,
84
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
84
85
  component: /*#__PURE__*/React.createElement(ApaasUploadFile, _extends({}, _this.componentConfig, {
85
86
  uniqueKey: _this.id,
86
87
  platform: p === null || p === void 0 ? void 0 : p.platform,
@@ -86,7 +86,7 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
86
86
  });
87
87
  });
88
88
  _defineProperty(this, "editRender", function (p) {
89
- var _this$componentConfig, _this$componentConfig2;
89
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
90
90
  return /*#__PURE__*/React.createElement(GetFormItem, {
91
91
  title: _this.name,
92
92
  name: _this.id,
@@ -94,6 +94,7 @@ var FlowMarkSelect = /*#__PURE__*/_createClass(function FlowMarkSelect(options)
94
94
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
95
95
  display: p === null || p === void 0 ? void 0 : p.display,
96
96
  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,
97
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
97
98
  component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
98
99
  placeholder: "\u8BF7\u9009\u62E9".concat(_this.name)
99
100
  }))
@@ -61,7 +61,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
61
61
  return null;
62
62
  });
63
63
  _defineProperty(this, "editRender", function (p) {
64
- var _this$componentConfig, _this$componentConfig2;
64
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
65
65
  return /*#__PURE__*/React.createElement(GetFormItem, {
66
66
  title: _this.name,
67
67
  name: _this.id,
@@ -69,6 +69,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
69
69
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
70
70
  display: p === null || p === void 0 ? void 0 : p.display,
71
71
  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,
72
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
72
73
  component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
73
74
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
74
75
  showSearch: true
@@ -85,7 +85,7 @@ var FlowTag = /*#__PURE__*/_createClass(function FlowTag(options) {
85
85
  });
86
86
  });
87
87
  _defineProperty(this, "editRender", function (p) {
88
- var _this$componentConfig, _this$componentConfig2;
88
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
89
89
  return /*#__PURE__*/React.createElement(GetFormItem, {
90
90
  title: _this.name,
91
91
  name: _this.id,
@@ -93,6 +93,7 @@ var FlowTag = /*#__PURE__*/_createClass(function FlowTag(options) {
93
93
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
94
94
  display: p === null || p === void 0 ? void 0 : p.display,
95
95
  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,
96
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
96
97
  component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
97
98
  placeholder: "\u8BF7\u9009\u62E9".concat(_this.name)
98
99
  }))
@@ -54,7 +54,7 @@ var FlowWorkOrderId = /*#__PURE__*/_createClass(function FlowWorkOrderId(options
54
54
  return null;
55
55
  });
56
56
  _defineProperty(this, "editRender", function (p) {
57
- var _this$componentConfig, _this$componentConfig2;
57
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
58
58
  return /*#__PURE__*/React.createElement(GetFormItem, {
59
59
  title: _this.name,
60
60
  name: _this.id,
@@ -62,6 +62,7 @@ var FlowWorkOrderId = /*#__PURE__*/_createClass(function FlowWorkOrderId(options
62
62
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
63
63
  display: p === null || p === void 0 ? void 0 : p.display,
64
64
  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,
65
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
65
66
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
66
67
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
67
68
  }))
@@ -56,13 +56,14 @@ var FlowWorkOrderStatus = /*#__PURE__*/_createClass(function FlowWorkOrderStatus
56
56
  return null;
57
57
  });
58
58
  _defineProperty(this, "editRender", function (p) {
59
- var _this$componentConfig, _this$componentConfig2;
59
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
60
60
  return /*#__PURE__*/React.createElement(GetFormItem, {
61
61
  title: _this.name,
62
62
  name: _this.id,
63
63
  rules: _this.rules,
64
64
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
65
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,
66
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
66
67
  component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
67
68
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
68
69
  showSearch: true
@@ -9,6 +9,7 @@ declare type GetFormItemProps = {
9
9
  display?: boolean;
10
10
  style?: CSSProperties | undefined;
11
11
  [prop: string]: any;
12
+ tooltip?: string;
12
13
  };
13
- declare const GetFormItem: ({ rules, required, title, component, name, hidden, display, style, validateTrigger }: GetFormItemProps) => React.JSX.Element | null;
14
+ declare const GetFormItem: ({ rules, required, title, component, name, hidden, display, style, validateTrigger, tooltip, }: GetFormItemProps) => React.JSX.Element | null;
14
15
  export default GetFormItem;
@@ -17,7 +17,9 @@ var GetFormItem = function GetFormItem(_ref) {
17
17
  _ref$display = _ref.display,
18
18
  display = _ref$display === void 0 ? true : _ref$display,
19
19
  style = _ref.style,
20
- validateTrigger = _ref.validateTrigger;
20
+ validateTrigger = _ref.validateTrigger,
21
+ _ref$tooltip = _ref.tooltip,
22
+ tooltip = _ref$tooltip === void 0 ? '' : _ref$tooltip;
21
23
  var newRules = rules;
22
24
  if (required) {
23
25
  newRules = rules.concat({
@@ -34,7 +36,7 @@ var GetFormItem = function GetFormItem(_ref) {
34
36
  }, style)
35
37
  }, /*#__PURE__*/React.createElement(Form.Item, {
36
38
  name: name,
37
- label: title,
39
+ label: tooltip ? "".concat(title, "(").concat(tooltip, ")") : title,
38
40
  rules: display ? newRules : [] // TODO: 只有当组件展示时,检验才会生效。组件显示、可编辑需求添加
39
41
  ,
40
42
  className: "form-item-label--index",
@@ -47,7 +47,7 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
47
47
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicGrade")]) !== null && _record2 !== void 0 ? _record2 : '--';
48
48
  });
49
49
  _defineProperty(this, "editRender", function (p) {
50
- var _this$componentConfig, _this$componentConfig2;
50
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
51
51
  return /*#__PURE__*/React.createElement(GetFormItem, {
52
52
  title: _this.name,
53
53
  name: _this.id,
@@ -55,6 +55,7 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
55
55
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
56
56
  display: p === null || p === void 0 ? void 0 : p.display,
57
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,
58
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
58
59
  component: /*#__PURE__*/React.createElement(ApaasSlider, _this.componentConfig)
59
60
  });
60
61
  });
@@ -57,7 +57,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
57
57
  }) : null;
58
58
  });
59
59
  _defineProperty(this, "editRender", function (p) {
60
- var _this$componentConfig, _this$componentConfig2;
60
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
61
61
  return /*#__PURE__*/React.createElement(GetFormItem, {
62
62
  title: _this.name,
63
63
  name: _this.id,
@@ -66,11 +66,12 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
66
66
  display: p === null || p === void 0 ? void 0 : p.display,
67
67
  validateTrigger: ["onBlur", "onChange"],
68
68
  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,
69
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
69
70
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
70
71
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
71
72
  onChange: function onChange(e) {
72
- var _this$componentConfig3, _e$target;
73
- return p === null || p === void 0 ? void 0 : p.onChange((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isNumber ? e : e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
73
+ var _this$componentConfig5, _e$target;
74
+ return p === null || p === void 0 ? void 0 : p.onChange((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.isNumber ? e : e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
74
75
  }
75
76
  }))
76
77
  });
@@ -109,7 +110,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
109
110
  this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
110
111
  this.rules = [{
111
112
  validator: function validator(_, value) {
112
- var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7, _this$componentConfig8;
113
+ var _this$componentConfig6, _this$componentConfig7, _this$componentConfig8, _this$componentConfig9, _this$componentConfig10;
113
114
  if (!value) {
114
115
  return Promise.resolve();
115
116
  }
@@ -117,20 +118,20 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
117
118
  var mail = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$/;
118
119
  var phone = /^1\d{10}$/;
119
120
  var testList = [];
120
- ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.isNumber) && testList.push(number);
121
- ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.isMail) && testList.push(mail);
122
- ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.isPhone) && testList.push(phone);
121
+ ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.isNumber) && testList.push(number);
122
+ ((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.isMail) && testList.push(mail);
123
+ ((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.isPhone) && testList.push(phone);
123
124
  var isTest = testList.some(function (item) {
124
125
  return item.test(value);
125
126
  });
126
127
  if (testList.length && !isTest) {
127
128
  return Promise.reject(new Error("请填写正确的格式"));
128
129
  }
129
- if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && (_this$componentConfig8 = _this$componentConfig7.rulesOptions) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.length) {
130
- var _this$componentConfig9;
131
- var rulesList = (_this$componentConfig9 = _this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.rulesOptions.filter(function (item) {
132
- var _this$componentConfig10;
133
- return (((_this$componentConfig10 = _this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.selectRules) || []).includes(item.id);
130
+ if ((_this$componentConfig9 = _this.componentConfig) !== null && _this$componentConfig9 !== void 0 && (_this$componentConfig10 = _this$componentConfig9.rulesOptions) !== null && _this$componentConfig10 !== void 0 && _this$componentConfig10.length) {
131
+ var _this$componentConfig11;
132
+ var rulesList = (_this$componentConfig11 = _this.componentConfig) === null || _this$componentConfig11 === void 0 ? void 0 : _this$componentConfig11.rulesOptions.filter(function (item) {
133
+ var _this$componentConfig12;
134
+ return (((_this$componentConfig12 = _this.componentConfig) === null || _this$componentConfig12 === void 0 ? void 0 : _this$componentConfig12.selectRules) || []).includes(item.id);
134
135
  });
135
136
  if (!rulesList.length) {
136
137
  return Promise.resolve();
@@ -153,8 +154,8 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
153
154
  validateTrigger: "onBlur",
154
155
  validator: function () {
155
156
  var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
156
- var _this$componentConfig11;
157
- var _resultList$, params, _yield$replaceCheck, resultList, _this$componentConfig12, _this$componentConfig13, _this$componentConfig14, messageMap;
157
+ var _this$componentConfig13;
158
+ var _resultList$, params, _yield$replaceCheck, resultList, _this$componentConfig14, _this$componentConfig15, _this$componentConfig16, messageMap;
158
159
  return _regeneratorRuntime().wrap(function _callee$(_context) {
159
160
  while (1) switch (_context.prev = _context.next) {
160
161
  case 0:
@@ -164,7 +165,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
164
165
  }
165
166
  return _context.abrupt("return", Promise.resolve());
166
167
  case 2:
167
- if (!((_this$componentConfig11 = _this.componentConfig) !== null && _this$componentConfig11 !== void 0 && _this$componentConfig11.replaceWarn)) {
168
+ if (!((_this$componentConfig13 = _this.componentConfig) !== null && _this$componentConfig13 !== void 0 && _this$componentConfig13.replaceWarn)) {
168
169
  _context.next = 11;
169
170
  break;
170
171
  }
@@ -191,7 +192,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
191
192
  currFlow: "数据已存在本模版中,不能重复提交",
192
193
  allWorkOrder: "数据已存在其他模版中,不能重复提交"
193
194
  };
194
- return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$componentConfig12 = (_this$componentConfig13 = _this.componentConfig) === null || _this$componentConfig13 === void 0 ? void 0 : (_this$componentConfig14 = _this$componentConfig13.repeatConfig) === null || _this$componentConfig14 === void 0 ? void 0 : _this$componentConfig14.repeatRange) !== null && _this$componentConfig12 !== void 0 ? _this$componentConfig12 : ""] || "内容已存在,不能重复提交")));
195
+ return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$componentConfig14 = (_this$componentConfig15 = _this.componentConfig) === null || _this$componentConfig15 === void 0 ? void 0 : (_this$componentConfig16 = _this$componentConfig15.repeatConfig) === null || _this$componentConfig16 === void 0 ? void 0 : _this$componentConfig16.repeatRange) !== null && _this$componentConfig14 !== void 0 ? _this$componentConfig14 : ""] || "内容已存在,不能重复提交")));
195
196
  case 11:
196
197
  case "end":
197
198
  return _context.stop();