@kmkf-fe-packages/services-components 1.4.3-rc.1 → 1.6.0-beta.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 (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 +2 -2
  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 +4 -3
  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
@@ -15,7 +15,7 @@ import OrdinaryMoney from "./OrdinaryMoney";
15
15
  import OrdinarySerial from "./OrdinarySerial";
16
16
  var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
17
17
  var _this = this,
18
- _this$componentConfig3;
18
+ _this$componentConfig5;
19
19
  _classCallCheck(this, Ordinary);
20
20
  _defineProperty(this, "name", void 0);
21
21
  _defineProperty(this, "id", void 0);
@@ -33,7 +33,7 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
33
33
  _defineProperty(this, "children", void 0);
34
34
  _defineProperty(this, "dataType", void 0);
35
35
  _defineProperty(this, "editRender", function (p) {
36
- var _this$componentConfig, _this$componentConfig2;
36
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
37
37
  return /*#__PURE__*/React.createElement(GetFormItem, {
38
38
  title: _this.name,
39
39
  name: _this.id,
@@ -41,6 +41,7 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
41
41
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
42
42
  display: p === null || p === void 0 ? void 0 : p.display,
43
43
  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,
44
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
44
45
  component: /*#__PURE__*/React.createElement(Invoice, _this.componentConfig)
45
46
  });
46
47
  });
@@ -80,7 +81,7 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
80
81
  this.canSort = false;
81
82
  this.dataType = 'object';
82
83
  this.children = [this.ordinaryHeader, this.ordinaryMoney, this.ordinarySerial];
83
- this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
84
+ this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
84
85
  validator: function validator(_, value) {
85
86
  if (!(value !== null && value !== void 0 && value.ordinaryMoney)) {
86
87
  return Promise.reject(new Error('请输入开票金额'));
@@ -60,7 +60,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
60
60
  return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
61
61
  });
62
62
  _defineProperty(this, "editRender", function (p) {
63
- var _this$componentConfig, _this$componentConfig2;
63
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
64
64
  return /*#__PURE__*/React.createElement(GetFormItem, {
65
65
  title: _this.name,
66
66
  name: _this.id,
@@ -68,6 +68,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
68
68
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
69
69
  display: p === null || p === void 0 ? void 0 : p.display,
70
70
  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,
71
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
71
72
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
72
73
  });
73
74
  });
@@ -60,7 +60,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
60
60
  return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
61
61
  });
62
62
  _defineProperty(this, "editRender", function (p) {
63
- var _this$componentConfig, _this$componentConfig2;
63
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
64
64
  return /*#__PURE__*/React.createElement(GetFormItem, {
65
65
  title: _this.name,
66
66
  name: _this.id,
@@ -68,6 +68,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
68
68
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
69
69
  display: p === null || p === void 0 ? void 0 : p.display,
70
70
  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,
71
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
71
72
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
72
73
  });
73
74
  });
@@ -71,7 +71,7 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
71
71
  return value ? _this.dateTimeTrans(value) : null;
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 AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(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(ApaasInput, _this.componentConfig)
83
84
  });
84
85
  });
@@ -59,7 +59,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
59
59
  }) : null;
60
60
  });
61
61
  _defineProperty(this, "editRender", function (p) {
62
- var _this$componentConfig, _this$componentConfig2;
62
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
63
63
  return /*#__PURE__*/React.createElement(GetFormItem, {
64
64
  title: _this.name,
65
65
  name: _this.id,
@@ -67,6 +67,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
67
67
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
68
68
  display: p === null || p === void 0 ? void 0 : p.display,
69
69
  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,
70
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
70
71
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
71
72
  });
72
73
  });
@@ -52,7 +52,7 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
52
52
  return value !== null && value !== void 0 ? value : '--';
53
53
  });
54
54
  _defineProperty(this, "editRender", function (p) {
55
- var _this$componentConfig, _this$componentConfig2;
55
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
56
56
  return /*#__PURE__*/React.createElement(GetFormItem, {
57
57
  title: _this.name,
58
58
  name: _this.id,
@@ -60,6 +60,7 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
60
60
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
61
61
  display: p === null || p === void 0 ? void 0 : p.display,
62
62
  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
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
63
64
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
64
65
  });
65
66
  });
@@ -60,7 +60,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
60
60
  return value !== null && value !== void 0 ? value : '--';
61
61
  });
62
62
  _defineProperty(this, "editRender", function (p) {
63
- var _this$componentConfig, _this$componentConfig2;
63
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
64
64
  return /*#__PURE__*/React.createElement(GetFormItem, {
65
65
  title: _this.name,
66
66
  name: _this.id,
@@ -68,6 +68,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
68
68
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
69
69
  display: p === null || p === void 0 ? void 0 : p.display,
70
70
  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,
71
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
71
72
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
72
73
  });
73
74
  });
@@ -64,7 +64,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
64
64
  return null;
65
65
  });
66
66
  _defineProperty(this, "editRender", function (p) {
67
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
67
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5;
68
68
  return /*#__PURE__*/React.createElement(GetFormItem, {
69
69
  title: _this.name,
70
70
  name: _this.id,
@@ -72,8 +72,9 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
72
72
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
73
73
  display: p === null || p === void 0 ? void 0 : p.display,
74
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,
75
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
75
76
  component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
76
- disabled: (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.disabled,
77
+ disabled: (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.disabled,
77
78
  onBlur: p === null || p === void 0 ? void 0 : p.onBlur,
78
79
  replaceValueCh: p === null || p === void 0 ? void 0 : p.innerReplaceValueCh
79
80
  }))
@@ -101,21 +102,21 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
101
102
  this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
102
103
  this.rules = [{
103
104
  validator: function validator(_, value) {
104
- var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7;
105
- if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required && !(value !== null && value !== void 0 && value.enterprisePaymentRefundFee)) {
105
+ var _this$componentConfig6, _this$componentConfig7, _this$componentConfig8, _this$componentConfig9;
106
+ if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required && !(value !== null && value !== void 0 && value.enterprisePaymentRefundFee)) {
106
107
  return Promise.reject(new Error("请输入打款金额"));
107
108
  } else if (value !== null && value !== void 0 && value.enterprisePaymentRefundFee && !/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/.test(value === null || value === void 0 ? void 0 : value.enterprisePaymentRefundFee)) {
108
109
  return Promise.reject(new Error("打款金额最多2位小数"));
109
110
  }
110
- if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required && !(value !== null && value !== void 0 && value.enterprisePaymentTid)) {
111
+ if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.required && !(value !== null && value !== void 0 && value.enterprisePaymentTid)) {
111
112
  return Promise.reject(new Error("请输入订单编号"));
112
113
  } else if (value.enterprisePaymentTid && !/^[0-9a-zA-Z_-]{1,}$/.test(value.enterprisePaymentTid)) {
113
114
  return Promise.reject(new Error("请输入正确的订单编号"));
114
115
  }
115
- if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNick)) {
116
+ if ((_this$componentConfig8 = _this.componentConfig) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNick)) {
116
117
  return Promise.reject(new Error("请输入支付宝名称"));
117
118
  }
118
- if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNo)) {
119
+ if ((_this$componentConfig9 = _this.componentConfig) !== null && _this$componentConfig9 !== void 0 && _this$componentConfig9.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNo)) {
119
120
  return Promise.reject(new Error("请输入支付宝账号"));
120
121
  } else if (value.enterprisePaymentAlipayNo && !/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value.enterprisePaymentAlipayNo)) {
121
122
  return Promise.reject(new Error("请输入正确的支付宝账号格式"));
@@ -65,7 +65,7 @@ var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(o
65
65
  }) : null;
66
66
  });
67
67
  _defineProperty(this, "editRender", function (p) {
68
- var _this$componentConfig, _this$componentConfig2;
68
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
69
69
  return /*#__PURE__*/React.createElement(GetFormItem, {
70
70
  title: _this.name,
71
71
  name: _this.id,
@@ -73,6 +73,7 @@ var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(o
73
73
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
74
74
  display: p === null || p === void 0 ? void 0 : p.display,
75
75
  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
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
76
77
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
77
78
  placeholder: "\u81EA\u52A8\u83B7\u53D6\u65E0\u9700\u586B\u5199",
78
79
  disabled: true
@@ -91,7 +91,7 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
91
91
  }) : null;
92
92
  });
93
93
  _defineProperty(this, "editRender", function (p) {
94
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
94
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5;
95
95
  return /*#__PURE__*/React.createElement(GetFormItem, {
96
96
  title: _this.name,
97
97
  name: _this.id,
@@ -99,7 +99,8 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
99
99
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
100
100
  display: p === null || p === void 0 ? void 0 : p.display,
101
101
  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,
102
- component: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingleShop ? /*#__PURE__*/React.createElement(ApaasUpload, _this.componentConfig) : /*#__PURE__*/React.createElement(ApaasUploadAsync, _extends({}, _this.componentConfig, {
102
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
103
+ component: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.isSingleShop ? /*#__PURE__*/React.createElement(ApaasUpload, _this.componentConfig) : /*#__PURE__*/React.createElement(ApaasUploadAsync, _extends({}, _this.componentConfig, {
103
104
  uniqueKey: _this.id,
104
105
  hostUrl: "https://kefu.kuaimai.com"
105
106
  }))
@@ -161,7 +161,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
161
161
  }) : null;
162
162
  });
163
163
  _defineProperty(this, "editRender", function (p) {
164
- var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
164
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$componentConfig5;
165
165
  return /*#__PURE__*/React.createElement(GetFormItem, {
166
166
  title: _this.name,
167
167
  name: _this.id,
@@ -169,8 +169,9 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
169
169
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
170
170
  display: p === null || p === void 0 ? void 0 : p.display,
171
171
  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,
172
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
172
173
  component: /*#__PURE__*/React.createElement(ApaasPosting, _extends({}, _this.componentConfig, {
173
- type: _this.type === "BS_POSTING" ? "bs" : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField
174
+ type: _this.type === "BS_POSTING" ? "bs" : (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField
174
175
  }))
175
176
  });
176
177
  });
@@ -18,8 +18,8 @@ var typeMap = {
18
18
  };
19
19
  var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
20
20
  var _this = this,
21
- _this$componentConfig3,
22
- _this$componentConfig4;
21
+ _this$componentConfig5,
22
+ _this$componentConfig6;
23
23
  _classCallCheck(this, BasicRadio);
24
24
  _defineProperty(this, "name", void 0);
25
25
  _defineProperty(this, "id", void 0);
@@ -74,7 +74,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
74
74
  }) : null;
75
75
  });
76
76
  _defineProperty(this, "editRender", function (p) {
77
- var _this$componentConfig, _this$componentConfig2;
77
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
78
78
  return /*#__PURE__*/React.createElement(GetFormItem, {
79
79
  title: _this.name,
80
80
  name: _this.id,
@@ -82,6 +82,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
82
82
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
83
83
  display: p === null || p === void 0 ? void 0 : p.display,
84
84
  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
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
85
86
  component: /*#__PURE__*/React.createElement(ApaasRadio, _extends({}, _this.componentConfig, {
86
87
  onChange: p === null || p === void 0 ? void 0 : p.onChange
87
88
  }))
@@ -123,7 +124,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
123
124
  this.formField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
124
125
  this.children = [];
125
126
  this.componentConfig = options.componentConfig;
126
- this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
127
+ this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
127
128
  validator: function validator(_, value) {
128
129
  if (!(value !== null && value !== void 0 && value.value)) {
129
130
  return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
@@ -132,6 +133,6 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
132
133
  }
133
134
  }] : [];
134
135
  this.dataType = "string";
135
- this.options = ((_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.options) || [];
136
+ this.options = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.options) || [];
136
137
  });
137
138
  export default BasicRadio;
@@ -107,7 +107,7 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
107
107
  return textArr === null || textArr === void 0 ? void 0 : textArr.join(';');
108
108
  });
109
109
  _defineProperty(this, "editRender", function (p) {
110
- var _this$componentConfig, _this$componentConfig2;
110
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
111
111
  return /*#__PURE__*/React.createElement(GetFormItem, {
112
112
  title: _this.name,
113
113
  name: _this.id,
@@ -115,6 +115,7 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
115
115
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
116
116
  display: p === null || p === void 0 ? void 0 : p.display,
117
117
  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,
118
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
118
119
  component: /*#__PURE__*/React.createElement(ApaasRate, _extends({}, _this.componentConfig, {
119
120
  allowClear: false,
120
121
  style: {
@@ -14,7 +14,7 @@ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import every from "lodash/every";
15
15
  var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
16
16
  var _this = this,
17
- _this$componentConfig3;
17
+ _this$componentConfig5;
18
18
  _classCallCheck(this, BasicInput);
19
19
  _defineProperty(this, "name", void 0);
20
20
  _defineProperty(this, "id", void 0);
@@ -103,7 +103,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
103
103
  }) : null;
104
104
  });
105
105
  _defineProperty(this, "editRender", function (p) {
106
- var _this$componentConfig, _this$componentConfig2;
106
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
107
107
  return /*#__PURE__*/React.createElement(GetFormItem, {
108
108
  title: _this.name,
109
109
  name: _this.id,
@@ -111,6 +111,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
111
111
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
112
112
  display: p === null || p === void 0 ? void 0 : p.display,
113
113
  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,
114
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
114
115
  component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
115
116
  });
116
117
  });
@@ -126,7 +127,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
126
127
  this.isCombinationComponent = false;
127
128
  this.canSort = false;
128
129
  this.children = [];
129
- this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
130
+ this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
130
131
  validator: function validator(_, value) {
131
132
  var _value$address2;
132
133
  if (!(value !== null && value !== void 0 && (_value$address2 = value.address) !== null && _value$address2 !== void 0 && _value$address2.length)) {
@@ -58,7 +58,7 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
58
58
  return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")];
59
59
  });
60
60
  _defineProperty(this, "editRender", function (p) {
61
- var _this$componentConfig, _this$componentConfig2;
61
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
62
62
  return /*#__PURE__*/React.createElement(GetFormItem, {
63
63
  title: _this.name,
64
64
  name: _this.id,
@@ -66,6 +66,7 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
66
66
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
67
67
  display: p === null || p === void 0 ? void 0 : p.display,
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
  onBlur: function onBlur(e) {
@@ -58,7 +58,7 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
58
58
  return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")];
59
59
  });
60
60
  _defineProperty(this, "editRender", function (p) {
61
- var _this$componentConfig, _this$componentConfig2;
61
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
62
62
  return /*#__PURE__*/React.createElement(GetFormItem, {
63
63
  title: _this.name,
64
64
  name: _this.id,
@@ -66,6 +66,7 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
66
66
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
67
67
  display: p === null || p === void 0 ? void 0 : p.display,
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
  }))
@@ -20,7 +20,7 @@ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
20
20
  import { SYMBOL } from "../../constant";
21
21
  var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
22
22
  var _this = this,
23
- _this$componentConfig3;
23
+ _this$componentConfig5;
24
24
  _classCallCheck(this, ERemark);
25
25
  _defineProperty(this, "name", void 0);
26
26
  _defineProperty(this, "id", void 0);
@@ -85,7 +85,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
85
85
  return get(record, "".concat(_this.id, "_remark"));
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 ERemark = /*#__PURE__*/_createClass(function ERemark(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(Remark, _this.componentConfig)
97
98
  });
98
99
  });
@@ -119,13 +120,13 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
119
120
  this.type = options.type;
120
121
  this.componentConfig = options.componentConfig;
121
122
  this.dataType = "object";
122
- this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
123
+ this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
123
124
  validator: function validator(_, value) {
124
- var _this$componentConfig4;
125
+ var _this$componentConfig6;
125
126
  if (!(value !== null && value !== void 0 && value.remark)) {
126
127
  return Promise.reject(new Error("请输入备注"));
127
128
  }
128
- if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.isShowFlag && !(value !== null && value !== void 0 && value.flag) && (value === null || value === void 0 ? void 0 : value.flag) !== 0) {
129
+ if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.isShowFlag && !(value !== null && value !== void 0 && value.flag) && (value === null || value === void 0 ? void 0 : value.flag) !== 0) {
129
130
  return Promise.reject(new Error("请选择旗帜"));
130
131
  }
131
132
  return Promise.resolve();
@@ -16,7 +16,7 @@ import ExpressCode from "../ExpressCode";
16
16
  import GetFormItem from "../GetFormItem";
17
17
  var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options) {
18
18
  var _this = this,
19
- _this$componentConfig3;
19
+ _this$componentConfig5;
20
20
  _classCallCheck(this, ReturnLogistics);
21
21
  _defineProperty(this, "name", void 0);
22
22
  _defineProperty(this, "id", void 0);
@@ -52,7 +52,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
52
52
  return null;
53
53
  });
54
54
  _defineProperty(this, "editRender", function (p) {
55
- var _this$componentConfig, _this$componentConfig2;
55
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
56
56
  return /*#__PURE__*/React.createElement(GetFormItem, {
57
57
  title: _this.name,
58
58
  name: _this.id,
@@ -60,6 +60,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
60
60
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
61
61
  display: p === null || p === void 0 ? void 0 : p.display,
62
62
  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
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
63
64
  component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
64
65
  options: _this.expressDateInstance.getExpressData(),
65
66
  onBlur: p === null || p === void 0 ? void 0 : p.onBlur
@@ -94,14 +95,14 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
94
95
  this.canSort = false;
95
96
  this.dataType = 'object';
96
97
  this.children = [this.express, this.expressCode];
97
- this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
98
+ this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
98
99
  validator: function validator(_, value) {
99
- var _this$componentConfig4;
100
- if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.isSingle) {
101
- var _this$componentConfig5, _this$componentConfig6;
102
- if (((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField) === 'EXPRESS_COMPANY' && !(value !== null && value !== void 0 && value.company)) {
100
+ var _this$componentConfig6;
101
+ if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.isSingle) {
102
+ var _this$componentConfig7, _this$componentConfig8;
103
+ if (((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.showField) === 'EXPRESS_COMPANY' && !(value !== null && value !== void 0 && value.company)) {
103
104
  return Promise.reject(new Error('请选择物流公司'));
104
- } else if (((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showField) === 'EXPRESS_WAYBILL_CODE' && !(value !== null && value !== void 0 && value.order)) {
105
+ } else if (((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.showField) === 'EXPRESS_WAYBILL_CODE' && !(value !== null && value !== void 0 && value.order)) {
105
106
  return Promise.reject(new Error('请输入物流单号'));
106
107
  }
107
108
  } else {
@@ -26,7 +26,7 @@ var typeMap = {
26
26
  };
27
27
  var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
28
28
  var _this = this,
29
- _this$componentConfig3;
29
+ _this$componentConfig5;
30
30
  _classCallCheck(this, BasicSelect);
31
31
  _defineProperty(this, "name", void 0);
32
32
  _defineProperty(this, "id", void 0);
@@ -44,7 +44,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
44
44
  return typeMap[type].key || "";
45
45
  });
46
46
  _defineProperty(this, "editRender", function (p) {
47
- var _this$componentConfig, _this$componentConfig2;
47
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
48
48
  return /*#__PURE__*/React.createElement(GetFormItem, {
49
49
  title: _this.name,
50
50
  name: _this.id,
@@ -52,6 +52,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
52
52
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
53
53
  display: p === null || p === void 0 ? void 0 : p.display,
54
54
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
55
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
55
56
  component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
56
57
  placeholder: typeMap[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
57
58
  showSearch: true,
@@ -117,6 +118,6 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
117
118
  this.canSort = true;
118
119
  this.children = [];
119
120
  this.dataType = "string";
120
- this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
121
+ this.options = ((_this$componentConfig5 = this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.options) || [];
121
122
  });
122
123
  export default BasicSelect;
@@ -49,7 +49,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
49
49
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopName")]) !== null && _record2 !== void 0 ? _record2 : '--';
50
50
  });
51
51
  _defineProperty(this, "editRender", function (p) {
52
- var _this$componentConfig, _this$componentConfig2;
52
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
53
53
  return /*#__PURE__*/React.createElement(GetFormItem, {
54
54
  title: _this.name,
55
55
  name: _this.id,
@@ -57,6 +57,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
57
57
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
58
58
  display: p === null || p === void 0 ? void 0 : p.display,
59
59
  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,
60
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
60
61
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
61
62
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
62
63
  }))
@@ -103,7 +103,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
103
103
  _defineProperty(this, "dataType", void 0);
104
104
  _defineProperty(this, "options", void 0);
105
105
  _defineProperty(this, "editRender", function (p) {
106
- var _this$componentConfig, _this$componentConfig2;
106
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
107
107
  return /*#__PURE__*/React.createElement(GetFormItem, {
108
108
  title: _this.name,
109
109
  name: _this.id,
@@ -111,6 +111,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
111
111
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
112
112
  display: p === null || p === void 0 ? void 0 : p.display,
113
113
  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,
114
+ tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
114
115
  component: /*#__PURE__*/React.createElement(CommonStatus, _extends({}, _this.componentConfig, {
115
116
  style: {
116
117
  width: 200
@@ -0,0 +1,33 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
+ import React from "react";
3
+ declare class SubForm implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ rules: any[];
9
+ componentConfig: ComponentInterface["componentConfig"];
10
+ isCombinationComponent: boolean;
11
+ formField: string;
12
+ canSort: boolean;
13
+ children: ComponentInterface[];
14
+ dataType: ComponentInterface["dataType"];
15
+ templateId?: string;
16
+ workOrderUniqueKey?: string;
17
+ constructor(options: PickOption);
18
+ renderTabel: (list: any) => React.JSX.Element;
19
+ renderPc: () => null;
20
+ renderLog: (r: Record) => React.JSX.Element | null;
21
+ getComponentValue: (r: Record) => any;
22
+ renderExport: () => null;
23
+ renderClient: (record: Record) => React.JSX.Element | null;
24
+ editRender: (p: any) => React.JSX.Element;
25
+ filterConfig: (item: ColumnConfig) => {
26
+ searchDefaultConditions: "like";
27
+ type: string;
28
+ id: string;
29
+ name: string;
30
+ filterComponentType: "Input";
31
+ }[];
32
+ }
33
+ export default SubForm;