@kmkf-fe-packages/services-components 1.6.1 → 1.8.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 +1 -1
  5. package/dist/esm/components/Address/index.js +1 -1
  6. package/dist/esm/components/AfterSalesOrderId/index.js +1 -1
  7. package/dist/esm/components/Alipay/index.js +1 -1
  8. package/dist/esm/components/AlipayAccount/index.js +1 -1
  9. package/dist/esm/components/AlipayName/index.js +1 -1
  10. package/dist/esm/components/BS/BsExchange/index.js +1 -1
  11. package/dist/esm/components/BS/BsGoods/index.js +1 -1
  12. package/dist/esm/components/BS/BsLogistics/index.js +1 -1
  13. package/dist/esm/components/BS/BsPosting/index.js +1 -1
  14. package/dist/esm/components/BS/BsReissue/index.js +1 -1
  15. package/dist/esm/components/BS/BsReturn/index.js +1 -1
  16. package/dist/esm/components/BS/BsSystemOrder/index.js +1 -1
  17. package/dist/esm/components/BS/DeliveryNo/index.js +1 -1
  18. package/dist/esm/components/BuyerNick/index.js +1 -1
  19. package/dist/esm/components/Calculation/index.js +1 -1
  20. package/dist/esm/components/Cascader/index.js +1 -1
  21. package/dist/esm/components/Checkbox/index.js +1 -1
  22. package/dist/esm/components/Common/index.js +5 -3
  23. package/dist/esm/components/CommonInput/index.js +1 -1
  24. package/dist/esm/components/CommonMultiStatus/index.js +1 -1
  25. package/dist/esm/components/CommonSystemOrder/index.js +1 -1
  26. package/dist/esm/components/CommonTradeId/index.js +1 -1
  27. package/dist/esm/components/DataTime/index.js +1 -1
  28. package/dist/esm/components/EItemEnCode/index.js +1 -1
  29. package/dist/esm/components/EItemId/index.js +1 -1
  30. package/dist/esm/components/EItemSelect/index.js +1 -1
  31. package/dist/esm/components/ErpTradeId/index.js +1 -1
  32. package/dist/esm/components/Express/index.js +1 -1
  33. package/dist/esm/components/ExpressCode/index.js +1 -1
  34. package/dist/esm/components/File/index.js +1 -1
  35. package/dist/esm/components/FlowMarkSelect/index.js +1 -1
  36. package/dist/esm/components/FlowStatusSelect/index.js +1 -1
  37. package/dist/esm/components/FlowTag/index.js +1 -1
  38. package/dist/esm/components/FlowWorkOrderId/index.js +1 -1
  39. package/dist/esm/components/FlowWorkOrderStatus/index.js +1 -1
  40. package/dist/esm/components/Grade/index.js +1 -1
  41. package/dist/esm/components/Input/index.js +1 -1
  42. package/dist/esm/components/JST/JstItemSelect/index.js +1 -1
  43. package/dist/esm/components/JST/JstLogistics/index.js +1 -1
  44. package/dist/esm/components/JST/JstSendGood/index.js +1 -1
  45. package/dist/esm/components/JST/JstSupply/index.js +1 -1
  46. package/dist/esm/components/KmErpSendGood/index.js +1 -1
  47. package/dist/esm/components/Label/index.js +1 -1
  48. package/dist/esm/components/Logistics/index.js +1 -1
  49. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +1 -1
  50. package/dist/esm/components/LogisticsInterception/index.js +1 -1
  51. package/dist/esm/components/LogisticsMoreInterception/index.js +1 -1
  52. package/dist/esm/components/LogisticsMoreTrajectory/index.js +1 -1
  53. package/dist/esm/components/LogisticsTrajectory/index.js +1 -1
  54. package/dist/esm/components/MsgStatus/index.js +4 -2
  55. package/dist/esm/components/MultSelect/index.js +1 -1
  56. package/dist/esm/components/Ordinary/OrdinaryHeader.js +1 -1
  57. package/dist/esm/components/Ordinary/OrdinaryMoney.js +1 -1
  58. package/dist/esm/components/Ordinary/OrdinarySerial.js +1 -1
  59. package/dist/esm/components/Ordinary/index.js +1 -1
  60. package/dist/esm/components/Payment/AlipayNick.js +1 -1
  61. package/dist/esm/components/Payment/AlipayNo.js +1 -1
  62. package/dist/esm/components/Payment/AlipayTime.js +1 -1
  63. package/dist/esm/components/Payment/BuyerNick.js +1 -1
  64. package/dist/esm/components/Payment/PaymentAmount.js +1 -1
  65. package/dist/esm/components/Payment/PaymentTid.js +1 -1
  66. package/dist/esm/components/Payment/index.js +1 -1
  67. package/dist/esm/components/PaymentVoucherCode/Preview.d.ts +6 -0
  68. package/dist/esm/components/PaymentVoucherCode/Preview.js +86 -0
  69. package/dist/esm/components/PaymentVoucherCode/index.js +4 -5
  70. package/dist/esm/components/Picture/index.js +1 -1
  71. package/dist/esm/components/PostIng/index.js +1 -1
  72. package/dist/esm/components/Radio/index.js +1 -1
  73. package/dist/esm/components/Rate/index.js +1 -1
  74. package/dist/esm/components/ReceiverAddress/index.js +1 -1
  75. package/dist/esm/components/ReceiverMobile/index.js +1 -1
  76. package/dist/esm/components/ReceiverName/index.js +1 -1
  77. package/dist/esm/components/Remark/index.js +1 -1
  78. package/dist/esm/components/ReturnLogistics/index.js +1 -1
  79. package/dist/esm/components/Select/index.js +1 -1
  80. package/dist/esm/components/ShopName/index.js +1 -1
  81. package/dist/esm/components/StatusSelect/index.js +1 -1
  82. package/dist/esm/components/SubForm/index.d.ts +34 -0
  83. package/dist/esm/components/SubForm/index.js +184 -0
  84. package/dist/esm/components/SystemOrderNo/index.js +1 -1
  85. package/dist/esm/components/TextArea/index.js +1 -1
  86. package/dist/esm/components/ThirdItemSelect/index.js +1 -1
  87. package/dist/esm/components/TradeDateTime/index.js +1 -1
  88. package/dist/esm/components/TradeId/index.js +1 -1
  89. package/dist/esm/components/WDT/WdtExchange/index.js +1 -1
  90. package/dist/esm/components/WDT/WdtGoods/index.js +1 -1
  91. package/dist/esm/components/WDT/WdtRessuie/index.js +1 -1
  92. package/dist/esm/components/WDT/WdtReturn/index.js +1 -1
  93. package/dist/esm/components/WLN/WlnGoods/index.js +1 -1
  94. package/dist/esm/components/WorkOrderId/index.js +1 -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 +26 -18
  100. package/package.json +7 -6
@@ -41,7 +41,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
45
45
  component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
46
46
  options: _this.expressDateInstance.getExpressData(),
47
47
  onBlur: p === null || p === void 0 ? void 0 : p.onBlur,
@@ -118,7 +118,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
118
118
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
119
119
  display: p === null || p === void 0 ? void 0 : p.display,
120
120
  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,
121
- tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
121
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
122
122
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
123
123
  });
124
124
  });
@@ -81,7 +81,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
85
85
  component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({}, _this.componentConfig, {
86
86
  logisticsOptions: _this.expressDateInstance.getExpressData(),
87
87
  expressInterceptData: _this.expressInterceptData.getExpressData(),
@@ -100,7 +100,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
100
100
  rules: _this.rules,
101
101
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
102
102
  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,
103
- 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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
104
104
  component: /*#__PURE__*/React.createElement(LogisticsMoreInterception, _extends({}, _this.componentConfig, {
105
105
  expressInterceptData: _this.expressInterceptData.getExpressData(),
106
106
  isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
@@ -53,7 +53,7 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
53
53
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
54
54
  display: p === null || p === void 0 ? void 0 : p.display,
55
55
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
56
- tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
56
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
57
57
  component: /*#__PURE__*/React.createElement(MoreTrajectory, _this.componentConfig)
58
58
  });
59
59
  });
@@ -49,7 +49,7 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
49
49
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
50
50
  display: p === null || p === void 0 ? void 0 : p.display,
51
51
  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,
52
- tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
52
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
53
53
  component: /*#__PURE__*/React.createElement(Trajectory, _extends({}, _this.componentConfig, {
54
54
  options: _this.expressDateInstance.getExpressData()
55
55
  }))
@@ -49,7 +49,9 @@ var msgTypeCh = {
49
49
  wechat: '微信',
50
50
  qq: 'QQ',
51
51
  qywx: '企业微信',
52
- YZDKH: '邮政大客户'
52
+ YZDKH: '邮政拦截',
53
+ YT: '圆通拦截',
54
+ feishu: "飞书"
53
55
  };
54
56
  var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
55
57
  var _this = this,
@@ -132,7 +134,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
132
134
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
133
135
  display: p === null || p === void 0 ? void 0 : p.display,
134
136
  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,
135
- tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
137
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
136
138
  component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
137
139
  type: (_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.type,
138
140
  failValue: typeMap[_this.type].failValue
@@ -67,7 +67,7 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
71
71
  component: /*#__PURE__*/React.createElement(ApaasMultipleSelect, _extends({}, _this.componentConfig, {
72
72
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
73
73
  }))
@@ -63,7 +63,7 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(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
- 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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
67
67
  component: /*#__PURE__*/React.createElement(Header, _extends({}, _this.componentConfig, {
68
68
  handleChangeSerial: handleChangeSerial
69
69
  }))
@@ -61,7 +61,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
61
61
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
62
62
  display: p === null || p === void 0 ? void 0 : p.display,
63
63
  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,
64
- tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
64
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
65
65
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
66
66
  });
67
67
  });
@@ -59,7 +59,7 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
59
59
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
60
60
  display: p === null || p === void 0 ? void 0 : p.display,
61
61
  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,
62
- tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
62
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
63
63
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
64
64
  });
65
65
  });
@@ -41,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
45
45
  component: /*#__PURE__*/React.createElement(Invoice, _this.componentConfig)
46
46
  });
47
47
  });
@@ -68,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
72
72
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
73
73
  });
74
74
  });
@@ -68,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
72
72
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
73
73
  });
74
74
  });
@@ -79,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
83
83
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
84
84
  });
85
85
  });
@@ -67,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
71
71
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
72
72
  });
73
73
  });
@@ -60,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
64
64
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
65
65
  });
66
66
  });
@@ -68,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
72
72
  component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
73
73
  });
74
74
  });
@@ -72,7 +72,7 @@ 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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
76
76
  component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
77
77
  disabled: (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.disabled,
78
78
  onBlur: p === null || p === void 0 ? void 0 : p.onBlur,
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare type OperatePreviewProps = {
3
+ id: string;
4
+ };
5
+ declare const OperatePreview: ({ id }: OperatePreviewProps) => React.JSX.Element;
6
+ export default OperatePreview;
@@ -0,0 +1,86 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
+ import React, { useEffect, useState, useRef } from "react";
12
+ import { Button } from 'antd';
13
+ import { LoadingOutlined } from '@ant-design/icons';
14
+ import PDF from "react-pdf-js";
15
+ import { getAlipayBillReceipt } from "../../service/api";
16
+ var Preview = function Preview(_ref) {
17
+ var url = _ref.url;
18
+ var onDocumentComplete = function onDocumentComplete() {
19
+ console.log("文件加载完成");
20
+ };
21
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PDF, {
22
+ file: url,
23
+ onDocumentComplete: onDocumentComplete,
24
+ page: 1,
25
+ scale: 1
26
+ }));
27
+ };
28
+ var OperatePreview = function OperatePreview(_ref2) {
29
+ var id = _ref2.id;
30
+ var _useState = useState(""),
31
+ _useState2 = _slicedToArray(_useState, 2),
32
+ url = _useState2[0],
33
+ setUrl = _useState2[1];
34
+ var intervalRef = useRef();
35
+ var queryUrl = /*#__PURE__*/function () {
36
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
37
+ var res, data;
38
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
39
+ while (1) switch (_context.prev = _context.next) {
40
+ case 0:
41
+ if (id) {
42
+ _context.next = 2;
43
+ break;
44
+ }
45
+ return _context.abrupt("return");
46
+ case 2:
47
+ _context.next = 4;
48
+ return getAlipayBillReceipt({
49
+ alipayBillReceiptDetailId: id
50
+ });
51
+ case 4:
52
+ res = _context.sent;
53
+ data = res.data;
54
+ if (data) {
55
+ setUrl(data);
56
+ clearInterval(intervalRef.current);
57
+ }
58
+ case 7:
59
+ case "end":
60
+ return _context.stop();
61
+ }
62
+ }, _callee);
63
+ }));
64
+ return function queryUrl(_x2) {
65
+ return _ref3.apply(this, arguments);
66
+ };
67
+ }();
68
+ useEffect(function () {
69
+ queryUrl(id); // TODO: 先执行第一次, 后续5秒查一次
70
+ var timer = setInterval(function () {
71
+ return queryUrl(id);
72
+ }, 5 * 1000);
73
+ intervalRef.current = timer;
74
+ }, [id]);
75
+ return /*#__PURE__*/React.createElement("div", {
76
+ style: {
77
+ maxHeight: '420px',
78
+ overflowY: 'hidden'
79
+ }
80
+ }, url ? /*#__PURE__*/React.createElement(Preview, {
81
+ url: url
82
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
83
+ type: "link"
84
+ }, " ", id, " "), /*#__PURE__*/React.createElement(LoadingOutlined, null)));
85
+ };
86
+ export default OperatePreview;
@@ -13,6 +13,7 @@ import ItemView from "../../commonComponents/ItemView";
13
13
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
14
14
  import { SYMBOL } from "../../constant";
15
15
  import { AlipayBill } from "../Common/index";
16
+ import OperatePreview from "./Preview";
16
17
  var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(options) {
17
18
  var _this = this;
18
19
  _classCallCheck(this, PaymentVoucherCode);
@@ -54,13 +55,11 @@ var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(o
54
55
  return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")]) !== null && _record !== void 0 ? _record : "--";
55
56
  });
56
57
  _defineProperty(this, "renderClient", function (record) {
57
- var _this$effects2;
58
58
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
59
59
  id: _this.id,
60
60
  label: _this.name,
61
- value: /*#__PURE__*/React.createElement(AlipayBill, {
62
- value: record === null || record === void 0 ? void 0 : record[_this.id],
63
- platform: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.env
61
+ value: /*#__PURE__*/React.createElement(OperatePreview, {
62
+ id: record === null || record === void 0 ? void 0 : record[_this.id]
64
63
  })
65
64
  }) : null;
66
65
  });
@@ -73,7 +72,7 @@ var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(o
73
72
  hidden: p === null || p === void 0 ? void 0 : p.hidden,
74
73
  display: p === null || p === void 0 ? void 0 : p.display,
75
74
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
76
- 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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
77
76
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
78
77
  placeholder: "\u81EA\u52A8\u83B7\u53D6\u65E0\u9700\u586B\u5199",
79
78
  disabled: true
@@ -99,7 +99,7 @@ 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
- tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
102
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
103
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, {
104
104
  uniqueKey: _this.id,
105
105
  hostUrl: "https://kefu.kuaimai.com"
@@ -169,7 +169,7 @@ 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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
173
173
  component: /*#__PURE__*/React.createElement(ApaasPosting, _extends({}, _this.componentConfig, {
174
174
  type: _this.type === "BS_POSTING" ? "bs" : (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField
175
175
  }))
@@ -82,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
86
86
  component: /*#__PURE__*/React.createElement(ApaasRadio, _extends({}, _this.componentConfig, {
87
87
  onChange: p === null || p === void 0 ? void 0 : p.onChange
88
88
  }))
@@ -115,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
119
119
  component: /*#__PURE__*/React.createElement(ApaasRate, _extends({}, _this.componentConfig, {
120
120
  allowClear: false,
121
121
  style: {
@@ -111,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
115
115
  component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
116
116
  });
117
117
  });
@@ -66,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
70
70
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
71
71
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
72
72
  onBlur: function onBlur(e) {
@@ -66,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
70
70
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
71
71
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
72
72
  }))
@@ -93,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
97
97
  component: /*#__PURE__*/React.createElement(Remark, _this.componentConfig)
98
98
  });
99
99
  });
@@ -60,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
64
64
  component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
65
65
  options: _this.expressDateInstance.getExpressData(),
66
66
  onBlur: p === null || p === void 0 ? void 0 : p.onBlur
@@ -52,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
56
56
  component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
57
57
  placeholder: typeMap[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
58
58
  showSearch: true,
@@ -57,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
61
61
  component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
62
62
  placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
63
63
  }))
@@ -111,7 +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
+ tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
115
115
  component: /*#__PURE__*/React.createElement(CommonStatus, _extends({}, _this.componentConfig, {
116
116
  style: {
117
117
  width: 200
@@ -0,0 +1,34 @@
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
+ getNewTableHeader: () => any;
19
+ renderTabel: (list: any) => React.JSX.Element;
20
+ renderPc: () => null;
21
+ renderLog: (r: Record) => React.JSX.Element | null;
22
+ getComponentValue: (r: Record) => any;
23
+ renderExport: () => null;
24
+ renderClient: (record: Record) => React.JSX.Element | null;
25
+ editRender: (p: any) => React.JSX.Element;
26
+ filterConfig: (item: ColumnConfig) => {
27
+ searchDefaultConditions: "like";
28
+ type: string;
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "Input";
32
+ }[];
33
+ }
34
+ export default SubForm;