@kmkf-fe-packages/services-components 0.6.3-alpha.8 → 0.6.3-alpha.9

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 (126) hide show
  1. package/dist/esm/commonComponents/OperationLog/index.d.ts +0 -1
  2. package/dist/esm/commonComponents/OperationLog/index.js +31 -36
  3. package/dist/esm/components/ActualPayment/index.d.ts +1 -0
  4. package/dist/esm/components/ActualPayment/index.js +4 -1
  5. package/dist/esm/components/Address/index.d.ts +1 -0
  6. package/dist/esm/components/Address/index.js +4 -1
  7. package/dist/esm/components/Alipay/index.d.ts +4 -0
  8. package/dist/esm/components/Alipay/index.js +6 -0
  9. package/dist/esm/components/AlipayAccount/index.d.ts +1 -0
  10. package/dist/esm/components/AlipayAccount/index.js +4 -1
  11. package/dist/esm/components/AlipayName/index.d.ts +1 -0
  12. package/dist/esm/components/AlipayName/index.js +4 -1
  13. package/dist/esm/components/BuyerNick/index.d.ts +4 -0
  14. package/dist/esm/components/BuyerNick/index.js +7 -1
  15. package/dist/esm/components/Cascader/index.d.ts +1 -0
  16. package/dist/esm/components/Cascader/index.js +4 -1
  17. package/dist/esm/components/Checkbox/index.d.ts +5 -1
  18. package/dist/esm/components/Checkbox/index.js +22 -5
  19. package/dist/esm/components/CommonDataTime/index.d.ts +1 -0
  20. package/dist/esm/components/CommonDataTime/index.js +4 -1
  21. package/dist/esm/components/CompletedUser/index.d.ts +1 -0
  22. package/dist/esm/components/CompletedUser/index.js +3 -0
  23. package/dist/esm/components/DataTime/index.d.ts +1 -0
  24. package/dist/esm/components/DataTime/index.js +4 -1
  25. package/dist/esm/components/EItemEnCode/index.d.ts +1 -0
  26. package/dist/esm/components/EItemEnCode/index.js +4 -1
  27. package/dist/esm/components/EItemId/index.d.ts +1 -0
  28. package/dist/esm/components/EItemId/index.js +4 -1
  29. package/dist/esm/components/EItemSelect/index.d.ts +1 -0
  30. package/dist/esm/components/EItemSelect/index.js +4 -1
  31. package/dist/esm/components/ErpTradeId/index.d.ts +1 -0
  32. package/dist/esm/components/ErpTradeId/index.js +4 -1
  33. package/dist/esm/components/Express/index.d.ts +1 -0
  34. package/dist/esm/components/Express/index.js +4 -1
  35. package/dist/esm/components/ExpressCode/index.d.ts +1 -0
  36. package/dist/esm/components/ExpressCode/index.js +4 -1
  37. package/dist/esm/components/FlowStatusSelect/index.d.ts +1 -0
  38. package/dist/esm/components/FlowStatusSelect/index.js +4 -0
  39. package/dist/esm/components/Grade/index.d.ts +1 -0
  40. package/dist/esm/components/Grade/index.js +4 -1
  41. package/dist/esm/components/Handler/index.d.ts +1 -0
  42. package/dist/esm/components/Handler/index.js +3 -0
  43. package/dist/esm/components/Input/index.d.ts +1 -0
  44. package/dist/esm/components/Input/index.js +4 -1
  45. package/dist/esm/components/JstItemSelect/index.d.ts +1 -0
  46. package/dist/esm/components/JstItemSelect/index.js +3 -0
  47. package/dist/esm/components/JstLogistics/index.d.ts +1 -0
  48. package/dist/esm/components/JstLogistics/index.js +3 -0
  49. package/dist/esm/components/JstSendGood/index.d.ts +1 -0
  50. package/dist/esm/components/JstSendGood/index.js +3 -0
  51. package/dist/esm/components/JstSupply/index.d.ts +1 -0
  52. package/dist/esm/components/JstSupply/index.js +3 -0
  53. package/dist/esm/components/Logistics/index.d.ts +4 -0
  54. package/dist/esm/components/Logistics/index.js +6 -0
  55. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -0
  56. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +3 -0
  57. package/dist/esm/components/LogisticsInterception/index.d.ts +2 -1
  58. package/dist/esm/components/LogisticsInterception/index.js +3 -0
  59. package/dist/esm/components/MultSelect/index.d.ts +1 -0
  60. package/dist/esm/components/MultSelect/index.js +4 -1
  61. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +1 -0
  62. package/dist/esm/components/Ordinary/OrdinaryHeader.js +4 -1
  63. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +1 -0
  64. package/dist/esm/components/Ordinary/OrdinaryMoney.js +4 -1
  65. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +1 -0
  66. package/dist/esm/components/Ordinary/OrdinarySerial.js +4 -1
  67. package/dist/esm/components/Ordinary/index.d.ts +5 -0
  68. package/dist/esm/components/Ordinary/index.js +7 -0
  69. package/dist/esm/components/Payment/AlipayNick.d.ts +1 -0
  70. package/dist/esm/components/Payment/AlipayNick.js +4 -1
  71. package/dist/esm/components/Payment/AlipayNo.d.ts +1 -0
  72. package/dist/esm/components/Payment/AlipayNo.js +4 -1
  73. package/dist/esm/components/Payment/AlipayTime.d.ts +1 -0
  74. package/dist/esm/components/Payment/AlipayTime.js +4 -1
  75. package/dist/esm/components/Payment/BuyerNick.d.ts +1 -0
  76. package/dist/esm/components/Payment/BuyerNick.js +4 -1
  77. package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
  78. package/dist/esm/components/Payment/PaymentAmount.js +4 -1
  79. package/dist/esm/components/Payment/PaymentStatus.d.ts +1 -0
  80. package/dist/esm/components/Payment/PaymentStatus.js +4 -1
  81. package/dist/esm/components/Payment/PaymentTid.d.ts +1 -0
  82. package/dist/esm/components/Payment/PaymentTid.js +4 -1
  83. package/dist/esm/components/Payment/index.d.ts +9 -0
  84. package/dist/esm/components/Payment/index.js +11 -0
  85. package/dist/esm/components/Picture/index.d.ts +1 -0
  86. package/dist/esm/components/Picture/index.js +4 -1
  87. package/dist/esm/components/PlatForm/index.d.ts +1 -0
  88. package/dist/esm/components/PlatForm/index.js +5 -2
  89. package/dist/esm/components/Radio/index.d.ts +4 -0
  90. package/dist/esm/components/Radio/index.js +7 -1
  91. package/dist/esm/components/Rate/index.d.ts +1 -0
  92. package/dist/esm/components/Rate/index.js +4 -1
  93. package/dist/esm/components/ReceiverAddress/index.d.ts +4 -0
  94. package/dist/esm/components/ReceiverAddress/index.js +7 -1
  95. package/dist/esm/components/ReceiverMobile/index.d.ts +1 -0
  96. package/dist/esm/components/ReceiverMobile/index.js +4 -1
  97. package/dist/esm/components/ReceiverName/index.d.ts +1 -0
  98. package/dist/esm/components/ReceiverName/index.js +4 -1
  99. package/dist/esm/components/Remark/index.d.ts +4 -0
  100. package/dist/esm/components/Remark/index.js +7 -1
  101. package/dist/esm/components/ReturnLogistics/index.d.ts +4 -0
  102. package/dist/esm/components/ReturnLogistics/index.js +6 -0
  103. package/dist/esm/components/Select/index.d.ts +1 -0
  104. package/dist/esm/components/Select/index.js +4 -1
  105. package/dist/esm/components/ShopInput/index.d.ts +1 -0
  106. package/dist/esm/components/ShopInput/index.js +3 -0
  107. package/dist/esm/components/ShopName/index.d.ts +1 -0
  108. package/dist/esm/components/ShopName/index.js +4 -1
  109. package/dist/esm/components/Submitter/index.d.ts +1 -0
  110. package/dist/esm/components/Submitter/index.js +3 -0
  111. package/dist/esm/components/SystemOrderNo/index.d.ts +1 -0
  112. package/dist/esm/components/SystemOrderNo/index.js +4 -1
  113. package/dist/esm/components/TemplateSelect/index.d.ts +1 -0
  114. package/dist/esm/components/TemplateSelect/index.js +5 -2
  115. package/dist/esm/components/TextArea/index.d.ts +1 -0
  116. package/dist/esm/components/TextArea/index.js +4 -1
  117. package/dist/esm/components/ThirdItemSelect/index.d.ts +1 -0
  118. package/dist/esm/components/ThirdItemSelect/index.js +4 -1
  119. package/dist/esm/components/TradeDateTime/index.d.ts +1 -0
  120. package/dist/esm/components/TradeDateTime/index.js +5 -1
  121. package/dist/esm/components/TradeId/index.d.ts +1 -0
  122. package/dist/esm/components/TradeId/index.js +4 -1
  123. package/dist/esm/components/WorkOrderId/index.d.ts +1 -0
  124. package/dist/esm/components/WorkOrderId/index.js +5 -2
  125. package/dist/esm/type.d.ts +2 -1
  126. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type OperationLogProps = {
3
2
  content: string;
4
3
  operation: string;
@@ -6,6 +6,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React from 'react';
8
8
  import { factory } from '@kmkf-fe-packages/services-components';
9
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
9
10
  export var unTransField = function unTransField(key) {
10
11
  return ['itemList', 'jstItemList', 'dateTime', 'basicMultSelect', 'checkbox', 'multSelect', 'rate', 'picture'].reduce(function (cur, nxt) {
11
12
  return cur || (key === null || key === void 0 ? void 0 : key.includes(nxt));
@@ -18,7 +19,6 @@ var OperationLog = function OperationLog(_ref) {
18
19
  if (!content) return null;
19
20
  try {
20
21
  var record = JSON.parse(content);
21
- console.debug('record', record);
22
22
  if (/^TRANSFER/.test(operation)) {
23
23
  if (/^\[.*?\]-->>\[.*?\]$/.test(content)) {
24
24
  var _content$split = content.split('-->>'),
@@ -82,41 +82,36 @@ var OperationLog = function OperationLog(_ref) {
82
82
  componentConfig: item.componentConfig,
83
83
  type: item.workOrderComponentType
84
84
  });
85
- // 如果是复合组件
86
- // if (instance.isCombinationComponent) {
87
- // return instance?.children?.map((child: any) => {
88
- // const currentContentComponentValue = get(currentContent, `${child?.id}`);
89
- // const oldContentComponentValue = get(oldContent, `${child?.id}`);
90
- // return (currentContent || oldContent) ? (
91
- // <span style={{ display: 'flex' }}>
92
- // <span style={{ maxWidth: '66px', flexShrink: 1 }}>{child?.name}:</span>
93
- // <span className="value">
94
- // {operation?.startsWith('UPDATE') ? (
95
- // <span>
96
- // {child.renderLog(oldContent)}
97
- // {'=>'}
98
- // {child.renderLog(currentContent)}
99
- // </span>
100
- // ) : (
101
- // child.renderLog(oldContent)
102
- // )}
103
- // </span>
104
- // </span>
105
- // ) : null;
106
- // })
107
- // }
108
- return /*#__PURE__*/React.createElement("span", {
109
- style: {
110
- display: 'flex'
111
- }
112
- }, /*#__PURE__*/React.createElement("span", {
113
- style: {
114
- maxWidth: '66px',
115
- flexShrink: 1
116
- }
117
- }, item === null || item === void 0 ? void 0 : item.name, ":"), /*#__PURE__*/React.createElement("span", {
118
- className: "value"
119
- }, operation !== null && operation !== void 0 && operation.startsWith('UPDATE') ? /*#__PURE__*/React.createElement("span", null, instance.renderLog(oldContent), /*#__PURE__*/React.createElement("span", null, '=>'), instance.renderLog(currentContent)) : instance.renderLog(currentContent)));
85
+ console.debug('xxxx', instance.getComponentValue(currentContent), isNull(instance.getComponentValue(currentContent)));
86
+ if (operation !== null && operation !== void 0 && operation.startsWith('UPDATE') && !isNull(instance.getComponentValue(oldContent)) && !isNull(instance.getComponentValue(currentContent))) {
87
+ return /*#__PURE__*/React.createElement("span", {
88
+ style: {
89
+ display: 'flex'
90
+ }
91
+ }, /*#__PURE__*/React.createElement("span", {
92
+ style: {
93
+ maxWidth: '66px',
94
+ flexShrink: 1
95
+ }
96
+ }, item === null || item === void 0 ? void 0 : item.name, ":"), /*#__PURE__*/React.createElement("span", {
97
+ className: "value"
98
+ }, /*#__PURE__*/React.createElement("span", null, instance.renderLog(oldContent), /*#__PURE__*/React.createElement("span", null, '=>'), instance.renderLog(currentContent))));
99
+ } else if (operation !== null && operation !== void 0 && operation.startsWith('ADD') && !isNull(instance.getComponentValue(currentContent))) {
100
+ return /*#__PURE__*/React.createElement("span", {
101
+ style: {
102
+ display: 'flex'
103
+ }
104
+ }, /*#__PURE__*/React.createElement("span", {
105
+ style: {
106
+ maxWidth: '66px',
107
+ flexShrink: 1
108
+ }
109
+ }, item === null || item === void 0 ? void 0 : item.name, ":"), /*#__PURE__*/React.createElement("span", {
110
+ className: "value"
111
+ }, /*#__PURE__*/React.createElement("span", null, instance.renderLog(currentContent))));
112
+ } else {
113
+ return null;
114
+ }
120
115
  });
121
116
  return /*#__PURE__*/React.createElement(React.Fragment, null, context);
122
117
  }
@@ -13,6 +13,7 @@ declare class ActualPayment implements ComponentInterface {
13
13
  renderClient: (record: any) => JSX.Element | null;
14
14
  renderPc: (value: unknown, record: Record) => JSX.Element;
15
15
  renderLog: (r: Record) => JSX.Element | null;
16
+ getComponentValue: (r: Record) => any;
16
17
  renderExport: (value: unknown, record: Record) => any;
17
18
  editRender: (value: any) => JSX.Element;
18
19
  filterConfig: (item: ColumnConfig) => {
@@ -36,9 +36,12 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
36
36
  return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_actualPayment")]) !== null && _record !== void 0 ? _record : '--');
37
37
  });
38
38
  _defineProperty(this, "renderLog", function (r) {
39
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_actualPayment")])) return null;
39
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_actualPayment")])) return null;
40
40
  return _this.renderPc(undefined, r);
41
41
  });
42
+ _defineProperty(this, "getComponentValue", function (r) {
43
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_actualPayment")];
44
+ });
42
45
  _defineProperty(this, "renderExport", function (value, record) {
43
46
  var _record2;
44
47
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_actualPayment")]) !== null && _record2 !== void 0 ? _record2 : '--';
@@ -23,6 +23,7 @@ declare class Address implements ComponentInterface {
23
23
  renderClient: (record: any) => JSX.Element | null;
24
24
  renderPc: (value: any, record: Record) => JSX.Element;
25
25
  renderLog: (r: Record) => JSX.Element | null;
26
+ getComponentValue: (r: Record) => any[];
26
27
  renderExport: (value: any, record: any) => string;
27
28
  editRender: (value: any) => JSX.Element;
28
29
  filterConfig: () => never[];
@@ -56,9 +56,12 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
56
56
  }).join(''));
57
57
  });
58
58
  _defineProperty(this, "renderLog", function (r) {
59
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_basicProvince")])) return null;
59
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicProvince")])) return null;
60
60
  return _this.renderPc(undefined, r);
61
61
  });
62
+ _defineProperty(this, "getComponentValue", function (r) {
63
+ return !isNull(r["".concat(_this.id, "_basicProvince")]) ? [r["".concat(_this.id, "_basicProvince")], r["".concat(_this.id, "_basicCity")], r["".concat(_this.id, "_basicDistrict")]] : [];
64
+ });
62
65
  _defineProperty(this, "renderExport", function (value, record) {
63
66
  var _address2;
64
67
  if (record["".concat(_this.id, "_basicProvince")] === undefined) {
@@ -17,6 +17,10 @@ declare class Alipay implements ComponentInterface {
17
17
  renderClient: (record: Record) => JSX.Element;
18
18
  renderPc: () => null;
19
19
  renderLog: (r: Record) => JSX.Element;
20
+ getComponentValue: (r: Record) => {
21
+ name: any;
22
+ user: any;
23
+ };
20
24
  renderExport: () => null;
21
25
  editRender: (value: any) => JSX.Element;
22
26
  filterConfig: (item: ColumnConfig) => {
@@ -38,6 +38,12 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
38
38
  _defineProperty(this, "renderLog", function (r) {
39
39
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderLog(r), _this.alipayAccount.renderLog(r));
40
40
  });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ return {
43
+ name: _this.alipayName.getComponentValue(r),
44
+ user: _this.alipayAccount.getComponentValue(r)
45
+ };
46
+ });
41
47
  _defineProperty(this, "renderExport", function () {
42
48
  return null;
43
49
  });
@@ -16,6 +16,7 @@ declare class EAlipayAccount implements ComponentInterface {
16
16
  renderClient: (record: Record) => JSX.Element | null;
17
17
  renderPc: (value: unknown, record: Record) => JSX.Element;
18
18
  renderLog: (r: Record) => JSX.Element | null;
19
+ getComponentValue: (r: Record) => any;
19
20
  renderExport: (value?: string) => string;
20
21
  editRender: (value: any) => JSX.Element;
21
22
  filterConfig: (item: ColumnConfig) => {
@@ -47,9 +47,12 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
47
47
  }, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
48
48
  });
49
49
  _defineProperty(this, "renderLog", function (r) {
50
- if (!(r !== null && r !== void 0 && r["".concat(_this.id)])) return null;
50
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
51
51
  return _this.renderPc(undefined, r);
52
52
  });
53
+ _defineProperty(this, "getComponentValue", function (r) {
54
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
55
+ });
53
56
  _defineProperty(this, "renderExport", function (value) {
54
57
  return value !== null && value !== void 0 ? value : '--';
55
58
  });
@@ -16,6 +16,7 @@ declare class EAlipayAccount implements ComponentInterface {
16
16
  renderClient: (record: any) => JSX.Element | null;
17
17
  renderPc: (value: unknown, record: Record) => JSX.Element;
18
18
  renderLog: (r: Record) => JSX.Element | null;
19
+ getComponentValue: (r: Record) => any;
19
20
  renderExport: (value?: string) => string;
20
21
  editRender: (value: any) => JSX.Element;
21
22
  filterConfig: (item: ColumnConfig) => {
@@ -47,9 +47,12 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
47
47
  }, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
48
48
  });
49
49
  _defineProperty(this, "renderLog", function (r) {
50
- if (!(r !== null && r !== void 0 && r["".concat(_this.id)])) return null;
50
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
51
51
  return _this.renderPc(undefined, r);
52
52
  });
53
+ _defineProperty(this, "getComponentValue", function (r) {
54
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
55
+ });
53
56
  _defineProperty(this, "renderExport", function (value) {
54
57
  return value !== null && value !== void 0 ? value : '--';
55
58
  });
@@ -17,6 +17,10 @@ declare class EBuyerNick implements ComponentInterface {
17
17
  renderClient: (record: any) => JSX.Element | null;
18
18
  renderPc: (value: unknown, record: Record) => JSX.Element;
19
19
  renderLog: (r: Record) => JSX.Element | null;
20
+ getComponentValue: (r: Record) => {
21
+ buyerNick: any;
22
+ buyerOpenUid: any;
23
+ };
20
24
  renderExport: (value: any, record: any) => any;
21
25
  editRender: (value: any) => JSX.Element;
22
26
  filterConfig: (item: ColumnConfig) => {
@@ -51,9 +51,15 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
51
51
  }));
52
52
  });
53
53
  _defineProperty(this, "renderLog", function (r) {
54
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_buyerOpenUid")]) && !(r !== null && r !== void 0 && r["".concat(_this.id, "_buyerNick")])) return null;
54
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerOpenUid")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerNick")])) return null;
55
55
  return _this.renderPc(undefined, r);
56
56
  });
57
+ _defineProperty(this, "getComponentValue", function (r) {
58
+ return {
59
+ buyerNick: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerNick")],
60
+ buyerOpenUid: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerOpenUid")]
61
+ };
62
+ });
57
63
  _defineProperty(this, "renderExport", function (value, record) {
58
64
  return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
59
65
  });
@@ -19,6 +19,7 @@ declare class BasicCascader implements ComponentInterface {
19
19
  renderClient: (record: any) => JSX.Element | null;
20
20
  renderPc: (value: any, record: Record) => JSX.Element;
21
21
  renderLog: (r: Record) => JSX.Element | null;
22
+ getComponentValue: (r: Record) => any;
22
23
  renderExport: (value: any, record: Record) => string;
23
24
  editRender: (value: any) => JSX.Element;
24
25
  filterConfig: (item: ColumnConfig) => {
@@ -51,9 +51,12 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
51
51
  })) === null || _findLabelBySelectVal4 === void 0 ? void 0 : _findLabelBySelectVal4.join(','));
52
52
  });
53
53
  _defineProperty(this, "renderLog", function (r) {
54
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_multSelect")])) return null;
54
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_multSelect")])) return null;
55
55
  return _this.renderPc(undefined, r);
56
56
  });
57
+ _defineProperty(this, "getComponentValue", function (r) {
58
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_multSelect")];
59
+ });
57
60
  _defineProperty(this, "renderExport", function (value, record) {
58
61
  var _findLabelBySelectVal5, _findLabelBySelectVal6, _ref2, _this$componentConfig3;
59
62
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) === undefined) {
@@ -16,7 +16,11 @@ declare class BasicCheckbox implements ComponentInterface {
16
16
  getValue: (value: Value) => string | null | undefined;
17
17
  render: (value: Value) => JSX.Element;
18
18
  renderPc: (value: any, record: Record) => JSX.Element;
19
- renderLog: (r: Record) => JSX.Element | null;
19
+ renderLog: (r: Record) => any;
20
+ getComponentValue: (r: Record) => {
21
+ value: any;
22
+ other: any;
23
+ };
20
24
  renderExport: (value: any, record: Record) => string;
21
25
  renderClient: (record: any) => JSX.Element | null;
22
26
  editRender: () => JSX.Element;
@@ -24,10 +24,10 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
24
24
  _defineProperty(this, "children", void 0);
25
25
  _defineProperty(this, "getValue", function (value) {
26
26
  var _value$value, _value$value2, _value$value3;
27
- if ((value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.length) === 0 && !(value !== null && value !== void 0 && value.other)) return null;
28
- var findIndex = (value === null || value === void 0 ? void 0 : (_value$value2 = value.value) === null || _value$value2 === void 0 ? void 0 : _value$value2.findIndex(function (item) {
27
+ if ((value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.length) === 0 && isNull(value === null || value === void 0 ? void 0 : value.other)) return null;
28
+ var findIndex = value === null || value === void 0 ? void 0 : (_value$value2 = value.value) === null || _value$value2 === void 0 ? void 0 : _value$value2.findIndex(function (item) {
29
29
  return item === '其他';
30
- })) || -1;
30
+ });
31
31
  if (findIndex > -1 && value !== null && value !== void 0 && value.other) {
32
32
  // @ts-ignore
33
33
  value.value[findIndex] = "\u5176\u4ED6(".concat(value === null || value === void 0 ? void 0 : value.other, ")");
@@ -45,8 +45,25 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
45
45
  return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_checkbox")]) === null || _record === void 0 ? void 0 : _record.join('/'), (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_checkbox")]) && /*#__PURE__*/React.createElement("br", null), (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_checkboxOther")]) || '');
46
46
  });
47
47
  _defineProperty(this, "renderLog", function (r) {
48
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_checkbox")]) && !(r !== null && r !== void 0 && r["".concat(_this.id, "_checkboxOther")])) return null;
49
- return _this.renderPc(undefined, r);
48
+ var _r, _r3;
49
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkbox")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkboxOther")])) return null;
50
+ if (r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_checkbox")]) !== null && _r !== void 0 && _r.includes('其他') && !isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkboxOther")])) {
51
+ var _r2;
52
+ var restOtherOptions = (r === null || r === void 0 ? void 0 : (_r2 = r["".concat(_this.id, "_checkbox")]) === null || _r2 === void 0 ? void 0 : _r2.filter(function (i) {
53
+ return i !== '其他';
54
+ })) || [];
55
+ if ((restOtherOptions === null || restOtherOptions === void 0 ? void 0 : restOtherOptions.length) === 0) {
56
+ return /*#__PURE__*/React.createElement(React.Fragment, null, "\u5176\u4ED6(".concat(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkboxOther")], ")"));
57
+ }
58
+ return /*#__PURE__*/React.createElement(React.Fragment, null, restOtherOptions.join('/').concat("\u5176\u4ED6(".concat(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkboxOther")], ")")));
59
+ }
60
+ return r === null || r === void 0 ? void 0 : (_r3 = r["".concat(_this.id, "_checkbox")]) === null || _r3 === void 0 ? void 0 : _r3.join('/');
61
+ });
62
+ _defineProperty(this, "getComponentValue", function (r) {
63
+ return {
64
+ value: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkbox")],
65
+ other: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_checkboxOther")]
66
+ };
50
67
  });
51
68
  _defineProperty(this, "renderExport", function (value, record) {
52
69
  var _record2;
@@ -17,6 +17,7 @@ declare class CommonDataTime implements ComponentInterface {
17
17
  renderClient: (record: any) => JSX.Element | null;
18
18
  renderPc: (value: any, record: Record) => JSX.Element;
19
19
  renderLog: (r: Record) => JSX.Element | null;
20
+ getComponentValue: (r: Record) => any;
20
21
  renderExport: (value: any, record: Record) => string;
21
22
  editRender: () => null;
22
23
  filterConfig: (item: ColumnConfig) => {
@@ -44,9 +44,12 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
44
44
  return /*#__PURE__*/React.createElement("span", null, moment(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]).format('YYYY-MM-DD HH:mm:ss'));
45
45
  });
46
46
  _defineProperty(this, "renderLog", function (r) {
47
- if (!(r !== null && r !== void 0 && r["".concat(_this.id)])) return null;
47
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
48
48
  return _this.renderPc(undefined, r);
49
49
  });
50
+ _defineProperty(this, "getComponentValue", function (r) {
51
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
52
+ });
50
53
  _defineProperty(this, "renderExport", function (value, record) {
51
54
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
52
55
  return '--';
@@ -11,6 +11,7 @@ declare class CompletedUser implements ComponentInterface {
11
11
  constructor(options: PickOption);
12
12
  renderPc: (value: unknown, record: Record) => JSX.Element;
13
13
  renderLog: (record: Record) => null;
14
+ getComponentValue: (r: Record) => any;
14
15
  renderExport: (value: any, record: Record) => any;
15
16
  render: () => null;
16
17
  renderClient: () => null;
@@ -24,6 +24,9 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
24
24
  _defineProperty(this, "renderLog", function (record) {
25
25
  return null;
26
26
  });
27
+ _defineProperty(this, "getComponentValue", function (r) {
28
+ return r === null || r === void 0 ? void 0 : r[_this.id];
29
+ });
27
30
  _defineProperty(this, "renderExport", function (value, record) {
28
31
  var _record2;
29
32
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
@@ -16,6 +16,7 @@ declare class BasicDataTime implements ComponentInterface {
16
16
  renderClient: (record: any) => JSX.Element | null;
17
17
  renderPc: (value: any, record: Record) => JSX.Element;
18
18
  renderLog: (r: Record) => JSX.Element | null;
19
+ getComponentValue: (r: Record) => any;
19
20
  renderExport: (value: any, record: Record) => any;
20
21
  editRender: () => JSX.Element;
21
22
  filterConfig: (item: ColumnConfig) => {
@@ -59,9 +59,12 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
59
59
  return /*#__PURE__*/React.createElement("span", null, Array.isArray(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) ? record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")].join('~') : /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]));
60
60
  });
61
61
  _defineProperty(this, "renderLog", function (r) {
62
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_dateTime")])) return null;
62
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_dateTime")])) return null;
63
63
  return _this.renderPc(undefined, r);
64
64
  });
65
+ _defineProperty(this, "getComponentValue", function (r) {
66
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_dateTime")];
67
+ });
65
68
  _defineProperty(this, "renderExport", function (value, record) {
66
69
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) === undefined) {
67
70
  return '--';
@@ -14,6 +14,7 @@ declare class EItemEncode implements ComponentInterface {
14
14
  renderClient: (record: any) => JSX.Element | null;
15
15
  renderPc: (value: unknown, record: Record) => JSX.Element;
16
16
  renderLog: (r: Record) => JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
17
18
  renderExport: (value: unknown, record: Record) => any;
18
19
  editRender: () => JSX.Element;
19
20
  filterConfig: (item: ColumnConfig) => {
@@ -48,9 +48,12 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
48
48
  });
49
49
  });
50
50
  _defineProperty(this, "renderLog", function (r) {
51
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_itemList")])) return null;
51
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
52
52
  return _this.renderPc(undefined, r);
53
53
  });
54
+ _defineProperty(this, "getComponentValue", function (r) {
55
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
56
+ });
54
57
  _defineProperty(this, "renderExport", function (value, record) {
55
58
  var _ref;
56
59
  return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
@@ -14,6 +14,7 @@ declare class EItemId implements ComponentInterface {
14
14
  renderClient: (record: any) => JSX.Element | null;
15
15
  renderPc: (value: unknown, record: Record) => JSX.Element;
16
16
  renderLog: (r: Record) => JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
17
18
  renderExport: (value: any, record: any) => any;
18
19
  editRender: () => JSX.Element;
19
20
  filterConfig: (item: ColumnConfig) => {
@@ -48,9 +48,12 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
48
48
  });
49
49
  });
50
50
  _defineProperty(this, "renderLog", function (r) {
51
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_itemList")])) return null;
51
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
52
52
  return _this.renderPc(undefined, r);
53
53
  });
54
+ _defineProperty(this, "getComponentValue", function (r) {
55
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
56
+ });
54
57
  _defineProperty(this, "renderExport", function (value, record) {
55
58
  var _ref;
56
59
  return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (i) {
@@ -14,6 +14,7 @@ declare class EItemSelect implements ComponentInterface {
14
14
  renderClient: (record: any) => JSX.Element | null;
15
15
  renderPc: (value: unknown, record: Record) => JSX.Element;
16
16
  renderLog: (r: Record) => JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
17
18
  renderExport: (value: any, record: any) => any;
18
19
  editRender: () => JSX.Element;
19
20
  filterConfig: () => never[];
@@ -44,9 +44,12 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
44
44
  });
45
45
  });
46
46
  _defineProperty(this, "renderLog", function (r) {
47
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_itemList")])) return null;
47
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
48
48
  return _this.renderPc(undefined, r);
49
49
  });
50
+ _defineProperty(this, "getComponentValue", function (r) {
51
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
52
+ });
50
53
  _defineProperty(this, "renderExport", function (value, record) {
51
54
  var _ref;
52
55
  return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (i) {
@@ -13,6 +13,7 @@ declare class ErpTradeId implements ComponentInterface {
13
13
  renderClient: (record: any) => JSX.Element | null;
14
14
  renderPc: (value: any, record: Record) => JSX.Element;
15
15
  renderLog: (r: Record) => JSX.Element | null;
16
+ getComponentValue: (r: Record) => any;
16
17
  renderExport: (value: any, record: Record) => any;
17
18
  editRender: (value: any) => JSX.Element;
18
19
  filterConfig: (item: ColumnConfig) => {
@@ -35,9 +35,12 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
35
35
  return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record !== void 0 ? _record : '--');
36
36
  });
37
37
  _defineProperty(this, "renderLog", function (r) {
38
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_tradeId")])) return null;
38
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")])) return null;
39
39
  return _this.renderPc(undefined, r);
40
40
  });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")];
43
+ });
41
44
  _defineProperty(this, "renderExport", function (value, record) {
42
45
  var _record2;
43
46
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record2 !== void 0 ? _record2 : '--';
@@ -17,6 +17,7 @@ declare class Express implements ComponentInterface {
17
17
  renderClient: (record: any) => JSX.Element | null;
18
18
  renderPc: (value: unknown, record: Record) => JSX.Element;
19
19
  renderLog: (r: Record) => JSX.Element | null;
20
+ getComponentValue: (r: Record) => any;
20
21
  renderExport: (value: string, record: Record) => string | number;
21
22
  editRender: () => JSX.Element;
22
23
  filterConfig: (item: ColumnConfig) => {
@@ -41,9 +41,12 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
41
41
  return /*#__PURE__*/React.createElement("span", null, _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id]));
42
42
  });
43
43
  _defineProperty(this, "renderLog", function (r) {
44
- if (!(r !== null && r !== void 0 && r[_this.id])) return null;
44
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
45
45
  return _this.renderPc(undefined, r);
46
46
  });
47
+ _defineProperty(this, "getComponentValue", function (r) {
48
+ return r === null || r === void 0 ? void 0 : r[_this.id];
49
+ });
47
50
  _defineProperty(this, "renderExport", function (value, record) {
48
51
  return _this.expressDateInstance.getExpressNameByCode(value) || value;
49
52
  });
@@ -15,6 +15,7 @@ declare class ExpressCode implements ComponentInterface {
15
15
  renderClient: (record: any) => JSX.Element | null;
16
16
  renderPc: (value: unknown, record: Record) => JSX.Element;
17
17
  renderLog: (r: Record) => JSX.Element | null;
18
+ getComponentValue: (r: Record) => any;
18
19
  renderExport: (value: string, record: Record) => string;
19
20
  editRender: () => JSX.Element;
20
21
  filterConfig: (item: ColumnConfig) => {
@@ -38,9 +38,12 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
38
38
  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 : '--');
39
39
  });
40
40
  _defineProperty(this, "renderLog", function (r) {
41
- if (!(r !== null && r !== void 0 && r[_this.id])) return null;
41
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
42
42
  return _this.renderPc(undefined, r);
43
43
  });
44
+ _defineProperty(this, "getComponentValue", function (r) {
45
+ return r === null || r === void 0 ? void 0 : r[_this.id];
46
+ });
44
47
  _defineProperty(this, "renderExport", function (value, record) {
45
48
  return value !== null && value !== void 0 ? value : '--';
46
49
  });
@@ -14,6 +14,7 @@ declare class WorkOrderId implements ComponentInterface {
14
14
  renderMenu: (record: Record) => JSX.Element;
15
15
  renderPc: (value: any, record: Record) => JSX.Element;
16
16
  renderLog: (r: Record) => JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
17
18
  renderExport: (value: any, record: Record) => any;
18
19
  render: () => null;
19
20
  renderClient: () => null;
@@ -57,6 +57,10 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
57
57
  if (!status) return null;
58
58
  return _this.renderPc(undefined, r);
59
59
  });
60
+ _defineProperty(this, "getComponentValue", function (r) {
61
+ var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
62
+ return status;
63
+ });
60
64
  _defineProperty(this, "renderExport", function (value, record) {
61
65
  var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
62
66
  return status ? status === null || status === void 0 ? void 0 : status.label : '--';
@@ -13,6 +13,7 @@ declare class BasicGrade implements ComponentInterface {
13
13
  renderClient: (record: any) => JSX.Element | null;
14
14
  renderPc: (value: any, record: Record) => JSX.Element;
15
15
  renderLog: (r: Record) => JSX.Element | null;
16
+ getComponentValue: (r: Record) => any;
16
17
  renderExport: (value: any, record: Record) => any;
17
18
  editRender: () => JSX.Element;
18
19
  filterConfig: () => never[];
@@ -35,9 +35,12 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
35
35
  return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicGrade")]) !== null && _record !== void 0 ? _record : '--');
36
36
  });
37
37
  _defineProperty(this, "renderLog", function (r) {
38
- if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_basicGrade")])) return null;
38
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicGrade")])) return null;
39
39
  return _this.renderPc(undefined, r);
40
40
  });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicGrade")];
43
+ });
41
44
  _defineProperty(this, "renderExport", function (value, record) {
42
45
  var _record2;
43
46
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicGrade")]) !== null && _record2 !== void 0 ? _record2 : '--';
@@ -11,6 +11,7 @@ declare class Handler implements ComponentInterface {
11
11
  constructor(options: PickOption);
12
12
  renderPc: (v: unknown, record: Record) => JSX.Element;
13
13
  renderLog: (record: Record) => null;
14
+ getComponentValue: (r: Record) => any;
14
15
  renderExport: (value: {
15
16
  account: string;
16
17
  }[], record: Record) => string;