@kmkf-fe-packages/services-components 0.6.3-alpha.6 → 0.6.3-alpha.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +2 -0
  2. package/dist/esm/commonComponents/ItemView/index.d.ts +3 -3
  3. package/dist/esm/commonComponents/OperationLog/index.d.ts +9 -0
  4. package/dist/esm/commonComponents/OperationLog/index.js +127 -0
  5. package/dist/esm/commonComponents/PlatBuyer/index.d.ts +2 -2
  6. package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +2 -2
  7. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +9 -0
  8. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +92 -0
  9. package/dist/esm/commonComponents/ShopList/index.d.ts +2 -2
  10. package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
  11. package/dist/esm/components/ActualPayment/index.d.ts +7 -5
  12. package/dist/esm/components/ActualPayment/index.js +9 -4
  13. package/dist/esm/components/Address/index.d.ts +6 -5
  14. package/dist/esm/components/Address/index.js +8 -4
  15. package/dist/esm/components/Alipay/index.d.ts +9 -4
  16. package/dist/esm/components/Alipay/index.js +9 -3
  17. package/dist/esm/components/AlipayAccount/index.d.ts +7 -5
  18. package/dist/esm/components/AlipayAccount/index.js +11 -5
  19. package/dist/esm/components/AlipayName/index.d.ts +7 -5
  20. package/dist/esm/components/AlipayName/index.js +11 -5
  21. package/dist/esm/components/BuyerNick/index.d.ts +10 -8
  22. package/dist/esm/components/BuyerNick/index.js +11 -3
  23. package/dist/esm/components/Cascader/index.d.ts +9 -7
  24. package/dist/esm/components/Cascader/index.js +9 -4
  25. package/dist/esm/components/Checkbox/index.d.ts +10 -5
  26. package/dist/esm/components/Checkbox/index.js +21 -6
  27. package/dist/esm/components/Common/index.d.ts +5 -5
  28. package/dist/esm/components/CommonDataTime/index.d.ts +7 -5
  29. package/dist/esm/components/CommonDataTime/index.js +8 -4
  30. package/dist/esm/components/CompletedUser/index.d.ts +5 -3
  31. package/dist/esm/components/CompletedUser/index.js +7 -3
  32. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  33. package/dist/esm/components/DataTime/index.d.ts +9 -7
  34. package/dist/esm/components/DataTime/index.js +8 -3
  35. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  36. package/dist/esm/components/EItemEnCode/index.d.ts +7 -5
  37. package/dist/esm/components/EItemEnCode/index.js +12 -7
  38. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  39. package/dist/esm/components/EItemId/index.d.ts +7 -5
  40. package/dist/esm/components/EItemId/index.js +12 -7
  41. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  42. package/dist/esm/components/EItemSelect/index.d.ts +6 -5
  43. package/dist/esm/components/EItemSelect/index.js +10 -6
  44. package/dist/esm/components/ErpTradeId/index.d.ts +8 -6
  45. package/dist/esm/components/ErpTradeId/index.js +10 -5
  46. package/dist/esm/components/Express/index.d.ts +8 -6
  47. package/dist/esm/components/Express/index.js +12 -7
  48. package/dist/esm/components/ExpressCode/index.d.ts +10 -8
  49. package/dist/esm/components/ExpressCode/index.js +19 -12
  50. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  51. package/dist/esm/components/FlowStatusSelect/index.d.ts +7 -5
  52. package/dist/esm/components/FlowStatusSelect/index.js +11 -3
  53. package/dist/esm/components/GetFormItem/index.d.ts +3 -3
  54. package/dist/esm/components/GetFormItem/index.js +3 -3
  55. package/dist/esm/components/Grade/index.d.ts +6 -5
  56. package/dist/esm/components/Grade/index.js +8 -4
  57. package/dist/esm/components/Handler/index.d.ts +5 -5
  58. package/dist/esm/components/Handler/index.js +18 -8
  59. package/dist/esm/components/Input/index.d.ts +7 -5
  60. package/dist/esm/components/Input/index.js +9 -4
  61. package/dist/esm/components/JstItemSelect/index.d.ts +8 -6
  62. package/dist/esm/components/JstItemSelect/index.js +29 -24
  63. package/dist/esm/components/JstLogistics/index.d.ts +10 -7
  64. package/dist/esm/components/JstLogistics/index.js +19 -9
  65. package/dist/esm/components/JstSendGood/index.d.ts +7 -5
  66. package/dist/esm/components/JstSendGood/index.js +19 -9
  67. package/dist/esm/components/JstSupply/index.d.ts +7 -5
  68. package/dist/esm/components/JstSupply/index.js +19 -9
  69. package/dist/esm/components/Logistics/index.d.ts +12 -6
  70. package/dist/esm/components/Logistics/index.js +9 -3
  71. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +17 -9
  72. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +72 -27
  73. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
  74. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -0
  75. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +21 -9
  76. package/dist/esm/components/LogisticsInterception/InterceptType.js +40 -18
  77. package/dist/esm/components/LogisticsInterception/columnHeader.d.ts +5 -0
  78. package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
  79. package/dist/esm/components/LogisticsInterception/index.d.ts +55 -8
  80. package/dist/esm/components/LogisticsInterception/index.js +54 -14
  81. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
  82. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
  83. package/dist/esm/components/MultSelect/index.d.ts +7 -6
  84. package/dist/esm/components/MultSelect/index.js +10 -4
  85. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +7 -5
  86. package/dist/esm/components/Ordinary/OrdinaryHeader.js +12 -6
  87. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +7 -5
  88. package/dist/esm/components/Ordinary/OrdinaryMoney.js +11 -5
  89. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +7 -5
  90. package/dist/esm/components/Ordinary/OrdinarySerial.js +12 -6
  91. package/dist/esm/components/Ordinary/index.d.ts +12 -6
  92. package/dist/esm/components/Ordinary/index.js +12 -5
  93. package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
  94. package/dist/esm/components/Payment/AlipayNick.d.ts +7 -5
  95. package/dist/esm/components/Payment/AlipayNick.js +13 -6
  96. package/dist/esm/components/Payment/AlipayNo.d.ts +7 -5
  97. package/dist/esm/components/Payment/AlipayNo.js +13 -7
  98. package/dist/esm/components/Payment/AlipayTime.d.ts +8 -6
  99. package/dist/esm/components/Payment/AlipayTime.js +11 -8
  100. package/dist/esm/components/Payment/BuyerNick.d.ts +7 -5
  101. package/dist/esm/components/Payment/BuyerNick.js +12 -6
  102. package/dist/esm/components/Payment/PaymentAmount.d.ts +7 -5
  103. package/dist/esm/components/Payment/PaymentAmount.js +10 -4
  104. package/dist/esm/components/Payment/PaymentStatus.d.ts +7 -5
  105. package/dist/esm/components/Payment/PaymentStatus.js +11 -5
  106. package/dist/esm/components/Payment/PaymentTid.d.ts +8 -6
  107. package/dist/esm/components/Payment/PaymentTid.js +10 -4
  108. package/dist/esm/components/Payment/index.d.ts +20 -8
  109. package/dist/esm/components/Payment/index.js +14 -3
  110. package/dist/esm/components/Picture/index.d.ts +7 -5
  111. package/dist/esm/components/Picture/index.js +8 -1
  112. package/dist/esm/components/PlatForm/index.d.ts +10 -5
  113. package/dist/esm/components/PlatForm/index.js +8 -3
  114. package/dist/esm/components/Popover/index.d.ts +2 -2
  115. package/dist/esm/components/Radio/index.d.ts +11 -5
  116. package/dist/esm/components/Radio/index.js +11 -0
  117. package/dist/esm/components/Rate/index.d.ts +7 -5
  118. package/dist/esm/components/Rate/index.js +11 -11
  119. package/dist/esm/components/ReceiverAddress/index.d.ts +10 -5
  120. package/dist/esm/components/ReceiverAddress/index.js +13 -3
  121. package/dist/esm/components/ReceiverMobile/index.d.ts +7 -5
  122. package/dist/esm/components/ReceiverMobile/index.js +9 -4
  123. package/dist/esm/components/ReceiverName/index.d.ts +7 -5
  124. package/dist/esm/components/ReceiverName/index.js +9 -4
  125. package/dist/esm/components/Remark/index.d.ts +11 -5
  126. package/dist/esm/components/Remark/index.js +11 -0
  127. package/dist/esm/components/ReturnLogistics/index.d.ts +14 -8
  128. package/dist/esm/components/ReturnLogistics/index.js +9 -3
  129. package/dist/esm/components/Select/index.d.ts +7 -5
  130. package/dist/esm/components/Select/index.js +8 -3
  131. package/dist/esm/components/ShopInput/index.d.ts +5 -3
  132. package/dist/esm/components/ShopInput/index.js +9 -4
  133. package/dist/esm/components/ShopName/index.d.ts +7 -5
  134. package/dist/esm/components/ShopName/index.js +10 -5
  135. package/dist/esm/components/Submitter/index.d.ts +5 -3
  136. package/dist/esm/components/Submitter/index.js +7 -3
  137. package/dist/esm/components/SystemOrderNo/index.d.ts +8 -6
  138. package/dist/esm/components/SystemOrderNo/index.js +9 -4
  139. package/dist/esm/components/TemplateSelect/index.d.ts +6 -4
  140. package/dist/esm/components/TemplateSelect/index.js +10 -5
  141. package/dist/esm/components/TextArea/index.d.ts +7 -5
  142. package/dist/esm/components/TextArea/index.js +9 -4
  143. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  144. package/dist/esm/components/ThirdItemSelect/index.d.ts +7 -5
  145. package/dist/esm/components/ThirdItemSelect/index.js +12 -8
  146. package/dist/esm/components/TradeDateTime/index.d.ts +10 -6
  147. package/dist/esm/components/TradeDateTime/index.js +18 -7
  148. package/dist/esm/components/TradeId/index.d.ts +8 -6
  149. package/dist/esm/components/TradeId/index.js +9 -4
  150. package/dist/esm/components/WorkOrderId/index.d.ts +6 -4
  151. package/dist/esm/components/WorkOrderId/index.js +10 -4
  152. package/dist/esm/index.d.ts +3 -0
  153. package/dist/esm/index.js +4 -1
  154. package/dist/esm/type.d.ts +20 -14
  155. package/package.json +10 -5
@@ -23,9 +23,6 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
23
23
  _defineProperty(this, "width", void 0);
24
24
  _defineProperty(this, "isCombinationComponent", void 0);
25
25
  _defineProperty(this, "children", void 0);
26
- _defineProperty(this, "render", function (value, record) {
27
- return /*#__PURE__*/React.createElement("span", null, value);
28
- });
29
26
  _defineProperty(this, "renderClient", function (record) {
30
27
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
31
28
  id: _this.id,
@@ -34,7 +31,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
34
31
  }) : null;
35
32
  });
36
33
  _defineProperty(this, "renderPc", function (value, record) {
37
- if (value === undefined) {
34
+ if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
38
35
  return /*#__PURE__*/React.createElement("span", null, "--");
39
36
  }
40
37
  return /*#__PURE__*/React.createElement("span", {
@@ -43,10 +40,18 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
43
40
  var _this$effects, _this$effects2;
44
41
  typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
45
42
  }
46
- }, value);
43
+ }, record === null || record === void 0 ? void 0 : record[_this.id]);
44
+ });
45
+ _defineProperty(this, "renderLog", function (r) {
46
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
47
+ return _this.renderPc(undefined, r);
48
+ });
49
+ _defineProperty(this, "getComponentValue", function (r) {
50
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
47
51
  });
48
52
  _defineProperty(this, "renderExport", function (value, record) {
49
- return value !== null && value !== void 0 ? value : '--';
53
+ var _record$_this$id;
54
+ return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
50
55
  });
51
56
  _defineProperty(this, "editRender", function () {
52
57
  var _this$componentConfig, _this$componentConfig2;
@@ -60,6 +65,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
60
65
  });
61
66
  _defineProperty(this, "filterConfig", function (item) {
62
67
  return {
68
+ type: item.type,
63
69
  id: "".concat(item.id, "_enterprisePaymentAlipayNick"),
64
70
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u59D3\u540D"),
65
71
  filterComponentType: 'Input',
@@ -74,6 +80,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
74
80
  this.id = "".concat(options.id, "_enterprisePaymentAlipayNick");
75
81
  this.type = options.type;
76
82
  this.componentConfig = options.componentConfig;
83
+ this.effects = options.effects;
77
84
  this.rules = [];
78
85
  this.align = 'left';
79
86
  this.width = 200;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class AlipayNo implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -12,12 +12,14 @@ declare class AlipayNo implements ComponentInterface {
12
12
  isCombinationComponent: boolean;
13
13
  children: ComponentInterface[];
14
14
  constructor(options: PickOption);
15
- render: (value: string) => JSX.Element;
16
- renderClient: (record: any) => JSX.Element | null;
17
- renderPc: (value: any, record: any) => JSX.Element;
15
+ renderClient: (record: any) => React.JSX.Element | null;
16
+ renderPc: (value: unknown, record: any) => React.JSX.Element;
17
+ renderLog: (r: Record) => React.JSX.Element | null;
18
+ getComponentValue: (r: Record) => any;
18
19
  renderExport: (value: any, record: Record) => any;
19
- editRender: () => JSX.Element;
20
+ editRender: () => React.JSX.Element;
20
21
  filterConfig: (item: ColumnConfig) => {
22
+ type: string;
21
23
  id: string;
22
24
  name: string;
23
25
  filterComponentType: "Input";
@@ -23,9 +23,6 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
23
23
  _defineProperty(this, "width", void 0);
24
24
  _defineProperty(this, "isCombinationComponent", void 0);
25
25
  _defineProperty(this, "children", void 0);
26
- _defineProperty(this, "render", function (value) {
27
- return /*#__PURE__*/React.createElement("span", null, value);
28
- });
29
26
  _defineProperty(this, "renderClient", function (record) {
30
27
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
31
28
  id: _this.id,
@@ -34,7 +31,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
34
31
  }) : null;
35
32
  });
36
33
  _defineProperty(this, "renderPc", function (value, record) {
37
- if (value === undefined) {
34
+ if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
38
35
  return /*#__PURE__*/React.createElement("span", null, "--");
39
36
  }
40
37
  return /*#__PURE__*/React.createElement("span", {
@@ -43,10 +40,18 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
43
40
  var _this$effects, _this$effects2;
44
41
  typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
45
42
  }
46
- }, value);
43
+ }, record === null || record === void 0 ? void 0 : record[_this.id]);
44
+ });
45
+ _defineProperty(this, "renderLog", function (r) {
46
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
47
+ return _this.renderPc(undefined, r);
48
+ });
49
+ _defineProperty(this, "getComponentValue", function (r) {
50
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
47
51
  });
48
52
  _defineProperty(this, "renderExport", function (value, record) {
49
- return value !== null && value !== void 0 ? value : '--';
53
+ var _record$_this$id;
54
+ return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
50
55
  });
51
56
  _defineProperty(this, "editRender", function () {
52
57
  var _this$componentConfig, _this$componentConfig2;
@@ -60,6 +65,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
60
65
  });
61
66
  _defineProperty(this, "filterConfig", function (item) {
62
67
  return {
68
+ type: item.type,
63
69
  id: "".concat(item.id, "_enterprisePaymentAlipayNo"),
64
70
  name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
65
71
  filterComponentType: 'Input',
@@ -80,7 +86,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
80
86
  this.children = [];
81
87
  this.rules = [{
82
88
  validator: function validator(_, value) {
83
- if (/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value)) {
89
+ if (/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value)) {
84
90
  return Promise.resolve();
85
91
  }
86
92
  return Promise.reject(new Error('请输入有效的邮箱或者手机号'));
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class AlipayTime implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -11,16 +11,18 @@ declare class AlipayTime implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  children: ComponentInterface[];
13
13
  constructor(options: PickOption);
14
- render: (value: string) => JSX.Element;
15
- renderClient: (record: Record) => JSX.Element | null;
16
- renderPc: (value: any, record: Record) => JSX.Element;
14
+ renderClient: (record: Record) => React.JSX.Element | null;
15
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
16
+ renderLog: (r: Record) => React.JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
17
18
  renderExport: (value: string) => string | null;
18
- editRender: () => JSX.Element;
19
+ editRender: () => React.JSX.Element;
19
20
  filterConfig: (item: ColumnConfig) => {
21
+ type: string;
20
22
  id: string;
21
23
  name: string;
22
24
  filterComponentType: "Input";
23
- filterFn: (value: string[]) => (i: Record) => any;
25
+ filterFn: (value: string[]) => (i: Record) => boolean;
24
26
  };
25
27
  }
26
28
  export default AlipayTime;
@@ -23,25 +23,27 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
23
23
  _defineProperty(this, "width", void 0);
24
24
  _defineProperty(this, "isCombinationComponent", void 0);
25
25
  _defineProperty(this, "children", void 0);
26
- _defineProperty(this, "render", function (value) {
27
- return /*#__PURE__*/React.createElement("span", {
28
- className: "pointer"
29
- }, value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : '--');
30
- });
31
26
  _defineProperty(this, "renderClient", function (record) {
32
27
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
33
28
  id: _this.id,
34
29
  label: _this.name,
35
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
30
+ value: record !== null && record !== void 0 && record[_this.id] ? moment(+(record === null || record === void 0 ? void 0 : record[_this.id])).format('YYYY-MM-DD HH:mm:ss') : '--'
36
31
  }) : null;
37
32
  });
38
33
  _defineProperty(this, "renderPc", function (value, record) {
39
- if (value === undefined) {
34
+ if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
40
35
  return /*#__PURE__*/React.createElement("span", null, "--");
41
36
  }
42
37
  return /*#__PURE__*/React.createElement("span", {
43
38
  className: "pointer"
44
- }, value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : '--');
39
+ }, record !== null && record !== void 0 && record[_this.id] ? moment(+(record === null || record === void 0 ? void 0 : record[_this.id])).format('YYYY-MM-DD HH:mm:ss') : '--');
40
+ });
41
+ _defineProperty(this, "renderLog", function (r) {
42
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
43
+ return _this.renderPc(undefined, r);
44
+ });
45
+ _defineProperty(this, "getComponentValue", function (r) {
46
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
45
47
  });
46
48
  _defineProperty(this, "renderExport", function (value) {
47
49
  return value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : null;
@@ -58,6 +60,7 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
58
60
  });
59
61
  _defineProperty(this, "filterConfig", function (item) {
60
62
  return {
63
+ type: item.type,
61
64
  id: "".concat(item.id, "_enterprisePaymentTime"),
62
65
  name: "".concat(item.name, "-\u6253\u6B3E\u65F6\u95F4"),
63
66
  filterComponentType: 'Input',
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class BuyerNick implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -12,12 +12,14 @@ declare class BuyerNick implements ComponentInterface {
12
12
  isCombinationComponent: boolean;
13
13
  children: ComponentInterface[];
14
14
  constructor(options: PickOption);
15
- render: (value: string) => JSX.Element;
16
- renderClient: (record: Record) => JSX.Element | null;
17
- editRender: () => JSX.Element;
18
- renderPc: (value: any, record: Record) => JSX.Element;
15
+ renderClient: (record: Record) => React.JSX.Element | null;
16
+ editRender: () => React.JSX.Element;
17
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
18
+ renderLog: (r: Record) => React.JSX.Element | null;
19
+ getComponentValue: (r: Record) => any;
19
20
  renderExport: (value: string) => string;
20
21
  filterConfig: (item: ColumnConfig) => {
22
+ type: string;
21
23
  id: string;
22
24
  name: string;
23
25
  filterComponentType: "Input";
@@ -30,9 +30,6 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
30
30
  _defineProperty(this, "width", void 0);
31
31
  _defineProperty(this, "isCombinationComponent", void 0);
32
32
  _defineProperty(this, "children", void 0);
33
- _defineProperty(this, "render", function (value) {
34
- return /*#__PURE__*/React.createElement("span", null, value);
35
- });
36
33
  _defineProperty(this, "renderClient", function (record) {
37
34
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
38
35
  id: _this.id,
@@ -52,10 +49,11 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
52
49
  });
53
50
  _defineProperty(this, "renderPc", function (value, record) {
54
51
  var _this$effects;
55
- if (value === undefined) {
52
+ if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
56
53
  return /*#__PURE__*/React.createElement("span", null, "--");
57
54
  }
58
55
  var buyerOpenUid = (record === null || record === void 0 ? void 0 : record.buyerOpenUid) || Object.keys(record).reduce(function (prv, next) {
56
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
59
57
  var _next$split = next.split('_'),
60
58
  _next$split2 = _slicedToArray(_next$split, 2),
61
59
  _ = _next$split2[0],
@@ -65,18 +63,26 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
65
63
  }
66
64
  return prv;
67
65
  }, '');
68
- return /*#__PURE__*/React.createElement("span", null, value && /*#__PURE__*/React.createElement(PlatBuyer, {
66
+ return /*#__PURE__*/React.createElement("span", null, (record === null || record === void 0 ? void 0 : record[_this.id]) && /*#__PURE__*/React.createElement(PlatBuyer, {
69
67
  shopId: record === null || record === void 0 ? void 0 : record.shopId,
70
- buyerNick: value,
68
+ buyerNick: record === null || record === void 0 ? void 0 : record[_this.id],
71
69
  buyerOpenUid: buyerOpenUid,
72
70
  shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
73
71
  }));
74
72
  });
73
+ _defineProperty(this, "renderLog", function (r) {
74
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
75
+ return _this.renderPc(undefined, r);
76
+ });
77
+ _defineProperty(this, "getComponentValue", function (r) {
78
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
79
+ });
75
80
  _defineProperty(this, "renderExport", function (value) {
76
81
  return value !== null && value !== void 0 ? value : '--';
77
82
  });
78
83
  _defineProperty(this, "filterConfig", function (item) {
79
84
  return {
85
+ type: item.type,
80
86
  id: "".concat(item.id, "_enterprisePaymentBuyerNick"),
81
87
  name: "".concat(item.name, "-\u4E70\u5BB6\u6635\u79F0"),
82
88
  filterComponentType: 'Input',
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class PaymentAmount implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -11,12 +11,14 @@ declare class PaymentAmount implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  children: ComponentInterface[];
13
13
  constructor(options: PickOption);
14
- render: (value: string) => JSX.Element;
15
- renderClient: (record: Record) => JSX.Element | null;
16
- renderPc: (value: any, record: Record) => JSX.Element;
14
+ renderClient: (record: Record) => React.JSX.Element | null;
15
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
16
+ renderLog: (r: Record) => React.JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
17
18
  renderExport: (value: string) => string;
18
- editRender: () => JSX.Element;
19
+ editRender: () => React.JSX.Element;
19
20
  filterConfig: (item: ColumnConfig) => {
21
+ type: string;
20
22
  id: string;
21
23
  name: string;
22
24
  filterComponentType: "Input";
@@ -22,9 +22,6 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
22
22
  _defineProperty(this, "width", void 0);
23
23
  _defineProperty(this, "isCombinationComponent", void 0);
24
24
  _defineProperty(this, "children", void 0);
25
- _defineProperty(this, "render", function (value) {
26
- return /*#__PURE__*/React.createElement("span", null, value);
27
- });
28
25
  _defineProperty(this, "renderClient", function (record) {
29
26
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
27
  id: _this.id,
@@ -33,7 +30,15 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
33
30
  }) : null;
34
31
  });
35
32
  _defineProperty(this, "renderPc", function (value, record) {
36
- return /*#__PURE__*/React.createElement("span", null, value !== null && value !== void 0 ? value : '--');
33
+ var _record$_this$id;
34
+ return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--');
35
+ });
36
+ _defineProperty(this, "renderLog", function (r) {
37
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
38
+ return _this.renderPc(undefined, r);
39
+ });
40
+ _defineProperty(this, "getComponentValue", function (r) {
41
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
37
42
  });
38
43
  _defineProperty(this, "renderExport", function (value) {
39
44
  return value !== null && value !== void 0 ? value : '--';
@@ -50,6 +55,7 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
50
55
  });
51
56
  _defineProperty(this, "filterConfig", function (item) {
52
57
  return {
58
+ type: item.type,
53
59
  id: "".concat(item.id, "_enterprisePaymentRefundFee"),
54
60
  name: "".concat(item.name, "-\u6253\u6B3E\u91D1\u989D"),
55
61
  filterComponentType: 'Input',
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class PaymentStatus implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -18,12 +18,14 @@ declare class PaymentStatus implements ComponentInterface {
18
18
  isCombinationComponent: boolean;
19
19
  children: ComponentInterface[];
20
20
  constructor(options: PickOption);
21
- render: (value: string) => JSX.Element;
22
- renderClient: (record: any) => JSX.Element | null;
23
- renderPc: (value: any, record: any) => any;
21
+ renderClient: (record: any) => React.JSX.Element | null;
22
+ renderPc: (value: unknown, record: any) => any;
23
+ renderLog: (r: Record) => any;
24
+ getComponentValue: (r: Record) => any;
24
25
  renderExport: (value: any) => any;
25
- editRender: (value: any) => null;
26
+ editRender: () => null;
26
27
  filterConfig: (item: ColumnConfig) => {
28
+ type: string;
27
29
  id: string;
28
30
  name: string;
29
31
  filterComponentType: "MultipleSelect";
@@ -22,9 +22,6 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
22
22
  _defineProperty(this, "paymentStatusOptions", void 0);
23
23
  _defineProperty(this, "isCombinationComponent", void 0);
24
24
  _defineProperty(this, "children", void 0);
25
- _defineProperty(this, "render", function (value) {
26
- return /*#__PURE__*/React.createElement("span", null, value);
27
- });
28
25
  _defineProperty(this, "renderClient", function (record) {
29
26
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
27
  id: _this.id,
@@ -33,16 +30,25 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
33
30
  }) : null;
34
31
  });
35
32
  _defineProperty(this, "renderPc", function (value, record) {
36
- return value !== null && value !== void 0 ? value : '--';
33
+ var _record$_this$id;
34
+ return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
35
+ });
36
+ _defineProperty(this, "renderLog", function (r) {
37
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
38
+ return _this.renderPc(undefined, r);
39
+ });
40
+ _defineProperty(this, "getComponentValue", function (r) {
41
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
37
42
  });
38
43
  _defineProperty(this, "renderExport", function (value) {
39
44
  return value !== null && value !== void 0 ? value : '--';
40
45
  });
41
- _defineProperty(this, "editRender", function (value) {
46
+ _defineProperty(this, "editRender", function () {
42
47
  return null;
43
48
  });
44
49
  _defineProperty(this, "filterConfig", function (item) {
45
50
  return {
51
+ type: item.type,
46
52
  id: "".concat(item.id, "_enterprisePaymentStatus"),
47
53
  name: "".concat(item.name, "-\u6253\u6B3E\u72B6\u6001"),
48
54
  filterComponentType: 'MultipleSelect',
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare class PaymentTid implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -11,16 +11,18 @@ declare class PaymentTid implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  children: ComponentInterface[];
13
13
  constructor(options: PickOption);
14
- render: (value: string) => JSX.Element;
15
- renderClient: (record: any) => JSX.Element | null;
16
- renderPc: (value: any, record: any) => JSX.Element;
14
+ renderClient: (record: any) => React.JSX.Element | null;
15
+ renderPc: (value: unknown, record: any) => React.JSX.Element;
16
+ renderLog: (r: Record) => React.JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
17
18
  renderExport: (value: string) => string;
18
- editRender: () => JSX.Element;
19
+ editRender: () => React.JSX.Element;
19
20
  filterConfig: (item: ColumnConfig) => {
21
+ type: string;
20
22
  id: string;
21
23
  name: string;
22
24
  filterComponentType: "Input";
23
- filterFn: (value: string) => (i: Record) => any;
25
+ filterFn: (value: string) => (i: Record) => boolean;
24
26
  };
25
27
  }
26
28
  export default PaymentTid;
@@ -22,9 +22,6 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
22
22
  _defineProperty(this, "width", void 0);
23
23
  _defineProperty(this, "isCombinationComponent", void 0);
24
24
  _defineProperty(this, "children", void 0);
25
- _defineProperty(this, "render", function (value) {
26
- return /*#__PURE__*/React.createElement("span", null, value);
27
- });
28
25
  _defineProperty(this, "renderClient", function (record) {
29
26
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
27
  id: _this.id,
@@ -33,7 +30,15 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
33
30
  }) : null;
34
31
  });
35
32
  _defineProperty(this, "renderPc", function (value, record) {
36
- return /*#__PURE__*/React.createElement("span", null, value !== null && value !== void 0 ? value : '--');
33
+ var _record$_this$id;
34
+ return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--');
35
+ });
36
+ _defineProperty(this, "renderLog", function (r) {
37
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
38
+ return _this.renderPc(undefined, r);
39
+ });
40
+ _defineProperty(this, "getComponentValue", function (r) {
41
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
37
42
  });
38
43
  _defineProperty(this, "renderExport", function (value) {
39
44
  return value !== null && value !== void 0 ? value : '--';
@@ -50,6 +55,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
50
55
  });
51
56
  _defineProperty(this, "filterConfig", function (item) {
52
57
  return {
58
+ type: item.type,
53
59
  id: "".concat(item.id, "_enterprisePaymentTid"),
54
60
  name: "".concat(item.name, "-\u8BA2\u5355\u7F16\u53F7"),
55
61
  filterComponentType: 'Input',
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ColumnConfig } from '../../type';
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
+ import React from 'react';
3
3
  import AlipayNick from './AlipayNick';
4
4
  import AlipayNo from './AlipayNo';
5
5
  import AlipayTime from './AlipayTime';
@@ -23,17 +23,28 @@ declare class Logistics implements ComponentInterface {
23
23
  isCombinationComponent: boolean;
24
24
  children: ComponentInterface[];
25
25
  constructor(options: PickOption);
26
- render: () => null;
27
- renderClient: (record: any) => JSX.Element;
26
+ renderClient: (record: any) => React.JSX.Element;
28
27
  renderPc: () => null;
28
+ renderLog: (record: Record) => React.JSX.Element;
29
+ getComponentValue: (r: Record) => {
30
+ enterprisePaymentAlipayNick: any;
31
+ enterprisePaymentAlipayNo: any;
32
+ enterprisePaymentBuyerNick: any;
33
+ enterprisePaymentRefundFee: any;
34
+ enterprisePaymentStatus: any;
35
+ enterprisePaymentTid: any;
36
+ enterprisePaymentTime: any;
37
+ };
29
38
  renderExport: () => null;
30
- editRender: (value: any) => JSX.Element;
39
+ editRender: (value: any) => React.JSX.Element;
31
40
  filterConfig: (item: ColumnConfig) => ({
41
+ type: string;
32
42
  id: string;
33
43
  name: string;
34
44
  filterComponentType: "Input";
35
- filterFn: (value: string) => (i: import("../../type").Record) => any;
45
+ filterFn: (value: string) => (i: Record) => boolean;
36
46
  } | {
47
+ type: string;
37
48
  id: string;
38
49
  name: string;
39
50
  filterComponentType: "MultipleSelect";
@@ -41,12 +52,13 @@ declare class Logistics implements ComponentInterface {
41
52
  label: string;
42
53
  value: string;
43
54
  }[];
44
- filterFn: (value: string) => (i: import("../../type").Record) => boolean;
55
+ filterFn: (value: string) => (i: Record) => boolean;
45
56
  } | {
57
+ type: string;
46
58
  id: string;
47
59
  name: string;
48
60
  filterComponentType: "Input";
49
- filterFn: (value: string[]) => (i: import("../../type").Record) => any;
61
+ filterFn: (value: string[]) => (i: Record) => boolean;
50
62
  })[];
51
63
  }
52
64
  export default Logistics;
@@ -35,15 +35,26 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
35
35
  _defineProperty(this, "payTime", void 0);
36
36
  _defineProperty(this, "isCombinationComponent", void 0);
37
37
  _defineProperty(this, "children", void 0);
38
- _defineProperty(this, "render", function () {
39
- return null;
40
- });
41
38
  _defineProperty(this, "renderClient", function (record) {
42
39
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderClient(record), _this.paymentAmount.renderClient(record), _this.alipayNo.renderClient(record), _this.buyerNick.renderClient(record), _this.paymentTid.renderClient(record), _this.paymentStatus.renderClient(record), _this.payTime.renderClient(record));
43
40
  });
44
41
  _defineProperty(this, "renderPc", function () {
45
42
  return null;
46
43
  });
44
+ _defineProperty(this, "renderLog", function (record) {
45
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.alipayNick.name, ": ", _this.alipayNick.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.paymentAmount.name, ": ", _this.paymentAmount.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.alipayNo.name, ": ", _this.alipayNo.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.buyerNick.name, ": ", _this.buyerNick.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.paymentTid.name, ": ", _this.paymentTid.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.paymentStatus.name, ": ", _this.paymentStatus.renderLog(record)), /*#__PURE__*/React.createElement("div", null, _this.payTime.name, ": ", _this.payTime.renderLog(record)));
46
+ });
47
+ _defineProperty(this, "getComponentValue", function (r) {
48
+ return {
49
+ enterprisePaymentAlipayNick: _this.alipayNick.getComponentValue(r),
50
+ enterprisePaymentAlipayNo: _this.alipayNo.getComponentValue(r),
51
+ enterprisePaymentBuyerNick: _this.buyerNick.getComponentValue(r),
52
+ enterprisePaymentRefundFee: _this.paymentAmount.getComponentValue(r),
53
+ enterprisePaymentStatus: _this.paymentStatus.getComponentValue(r),
54
+ enterprisePaymentTid: _this.paymentTid.getComponentValue(r),
55
+ enterprisePaymentTime: _this.payTime.getComponentValue(r)
56
+ };
57
+ });
47
58
  _defineProperty(this, "renderExport", function () {
48
59
  return null;
49
60
  });
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ComponentInterface, PickOption, Record } from '../../type';
2
+ import React from 'react';
3
3
  declare type Value = string[] | undefined;
4
4
  declare class BasicPicture implements ComponentInterface {
5
5
  name: string;
@@ -11,10 +11,12 @@ declare class BasicPicture implements ComponentInterface {
11
11
  children: ComponentInterface[];
12
12
  constructor(options: PickOption);
13
13
  formatPictures: (pictures: string) => string[];
14
- render: (value: Value) => JSX.Element | null;
15
- renderPc: (value: any, record: Record) => JSX.Element | JSX.Element[];
16
- renderClient: (record: any) => JSX.Element | null;
17
- editRender: (value: any) => JSX.Element;
14
+ render: (value: Value) => React.JSX.Element | null;
15
+ renderPc: (value: any, record: Record) => React.JSX.Element | React.JSX.Element[];
16
+ renderLog: (r: Record) => React.JSX.Element | React.JSX.Element[] | null;
17
+ getComponentValue: (r: Record) => any;
18
+ renderClient: (record: any) => React.JSX.Element | null;
19
+ editRender: () => React.JSX.Element;
18
20
  /**
19
21
  *
20
22
  * @returns 图片类型的导出需要在导出时单独处理
@@ -69,6 +69,13 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
69
69
  }));
70
70
  });
71
71
  });
72
+ _defineProperty(this, "renderLog", function (r) {
73
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_picture")])) return null;
74
+ return _this.renderPc(undefined, r);
75
+ });
76
+ _defineProperty(this, "getComponentValue", function (r) {
77
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_picture")];
78
+ });
72
79
  _defineProperty(this, "renderClient", function (record) {
73
80
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
74
81
  id: _this.id,
@@ -76,7 +83,7 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
76
83
  value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
77
84
  }) : null;
78
85
  });
79
- _defineProperty(this, "editRender", function (value) {
86
+ _defineProperty(this, "editRender", function () {
80
87
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
81
88
  return /*#__PURE__*/React.createElement(GetFormItem, {
82
89
  title: _this.name,