@kmkf-fe-packages/services-components 0.6.3-alpha.0 → 0.6.3-alpha.10

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 (133) hide show
  1. package/dist/esm/commonComponents/ItemView/index.d.ts +1 -1
  2. package/dist/esm/commonComponents/OperationLog/index.d.ts +9 -0
  3. package/dist/esm/commonComponents/OperationLog/index.js +125 -0
  4. package/dist/esm/commonComponents/ShopList/index.d.ts +13 -0
  5. package/dist/esm/commonComponents/ShopList/index.js +34 -0
  6. package/dist/esm/components/ActualPayment/index.d.ts +2 -0
  7. package/dist/esm/components/ActualPayment/index.js +7 -0
  8. package/dist/esm/components/Address/index.d.ts +2 -0
  9. package/dist/esm/components/Address/index.js +7 -0
  10. package/dist/esm/components/Alipay/index.d.ts +5 -0
  11. package/dist/esm/components/Alipay/index.js +9 -0
  12. package/dist/esm/components/AlipayAccount/index.d.ts +3 -1
  13. package/dist/esm/components/AlipayAccount/index.js +9 -1
  14. package/dist/esm/components/AlipayName/index.d.ts +3 -1
  15. package/dist/esm/components/AlipayName/index.js +9 -1
  16. package/dist/esm/components/BuyerNick/index.d.ts +5 -0
  17. package/dist/esm/components/BuyerNick/index.js +10 -0
  18. package/dist/esm/components/Cascader/index.d.ts +2 -0
  19. package/dist/esm/components/Cascader/index.js +7 -0
  20. package/dist/esm/components/Checkbox/index.d.ts +5 -0
  21. package/dist/esm/components/Checkbox/index.js +25 -4
  22. package/dist/esm/components/CommonDataTime/index.d.ts +2 -0
  23. package/dist/esm/components/CommonDataTime/index.js +7 -0
  24. package/dist/esm/components/CompletedUser/index.d.ts +3 -1
  25. package/dist/esm/components/CompletedUser/index.js +6 -0
  26. package/dist/esm/components/DataTime/index.d.ts +2 -0
  27. package/dist/esm/components/DataTime/index.js +7 -0
  28. package/dist/esm/components/EItemEnCode/index.d.ts +2 -0
  29. package/dist/esm/components/EItemEnCode/index.js +7 -0
  30. package/dist/esm/components/EItemId/index.d.ts +2 -0
  31. package/dist/esm/components/EItemId/index.js +7 -0
  32. package/dist/esm/components/EItemSelect/index.d.ts +2 -0
  33. package/dist/esm/components/EItemSelect/index.js +7 -0
  34. package/dist/esm/components/ErpTradeId/index.d.ts +2 -0
  35. package/dist/esm/components/ErpTradeId/index.js +7 -0
  36. package/dist/esm/components/Express/index.d.ts +3 -1
  37. package/dist/esm/components/Express/index.js +9 -2
  38. package/dist/esm/components/ExpressCode/index.d.ts +3 -1
  39. package/dist/esm/components/ExpressCode/index.js +9 -1
  40. package/dist/esm/components/FlowStatusSelect/index.d.ts +2 -0
  41. package/dist/esm/components/FlowStatusSelect/index.js +10 -0
  42. package/dist/esm/components/Grade/index.d.ts +2 -0
  43. package/dist/esm/components/Grade/index.js +7 -0
  44. package/dist/esm/components/Handler/index.d.ts +3 -3
  45. package/dist/esm/components/Handler/index.js +8 -1
  46. package/dist/esm/components/Input/index.d.ts +2 -0
  47. package/dist/esm/components/Input/index.js +7 -0
  48. package/dist/esm/components/JstItemSelect/index.d.ts +2 -0
  49. package/dist/esm/components/JstItemSelect/index.js +8 -0
  50. package/dist/esm/components/JstLogistics/index.d.ts +2 -0
  51. package/dist/esm/components/JstLogistics/index.js +8 -0
  52. package/dist/esm/components/JstSendGood/index.d.ts +2 -0
  53. package/dist/esm/components/JstSendGood/index.js +8 -0
  54. package/dist/esm/components/JstSupply/index.d.ts +2 -0
  55. package/dist/esm/components/JstSupply/index.js +8 -0
  56. package/dist/esm/components/Logistics/index.d.ts +5 -0
  57. package/dist/esm/components/Logistics/index.js +9 -0
  58. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +2 -0
  59. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +6 -0
  60. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +24 -0
  61. package/dist/esm/components/LogisticsInterception/InterceptType.js +62 -0
  62. package/dist/esm/components/LogisticsInterception/index.d.ts +9 -3
  63. package/dist/esm/components/LogisticsInterception/index.js +33 -10
  64. package/dist/esm/components/MultSelect/index.d.ts +2 -0
  65. package/dist/esm/components/MultSelect/index.js +7 -0
  66. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -1
  67. package/dist/esm/components/Ordinary/OrdinaryHeader.js +10 -2
  68. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
  69. package/dist/esm/components/Ordinary/OrdinaryMoney.js +10 -2
  70. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -1
  71. package/dist/esm/components/Ordinary/OrdinarySerial.js +10 -2
  72. package/dist/esm/components/Ordinary/index.d.ts +8 -2
  73. package/dist/esm/components/Ordinary/index.js +11 -1
  74. package/dist/esm/components/Payment/AlipayNick.d.ts +3 -1
  75. package/dist/esm/components/Payment/AlipayNick.js +10 -2
  76. package/dist/esm/components/Payment/AlipayNo.d.ts +3 -1
  77. package/dist/esm/components/Payment/AlipayNo.js +9 -2
  78. package/dist/esm/components/Payment/AlipayTime.d.ts +3 -1
  79. package/dist/esm/components/Payment/AlipayTime.js +9 -2
  80. package/dist/esm/components/Payment/BuyerNick.d.ts +3 -1
  81. package/dist/esm/components/Payment/BuyerNick.js +10 -3
  82. package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
  83. package/dist/esm/components/Payment/PaymentAmount.js +9 -1
  84. package/dist/esm/components/Payment/PaymentStatus.d.ts +3 -1
  85. package/dist/esm/components/Payment/PaymentStatus.js +9 -1
  86. package/dist/esm/components/Payment/PaymentTid.d.ts +3 -1
  87. package/dist/esm/components/Payment/PaymentTid.js +9 -1
  88. package/dist/esm/components/Payment/index.d.ts +14 -4
  89. package/dist/esm/components/Payment/index.js +14 -0
  90. package/dist/esm/components/Picture/index.d.ts +2 -0
  91. package/dist/esm/components/Picture/index.js +7 -0
  92. package/dist/esm/components/PlatForm/index.d.ts +2 -0
  93. package/dist/esm/components/PlatForm/index.js +8 -1
  94. package/dist/esm/components/Radio/index.d.ts +5 -0
  95. package/dist/esm/components/Radio/index.js +13 -7
  96. package/dist/esm/components/Rate/index.d.ts +2 -0
  97. package/dist/esm/components/Rate/index.js +9 -11
  98. package/dist/esm/components/ReceiverAddress/index.d.ts +5 -0
  99. package/dist/esm/components/ReceiverAddress/index.js +10 -0
  100. package/dist/esm/components/ReceiverMobile/index.d.ts +2 -0
  101. package/dist/esm/components/ReceiverMobile/index.js +7 -0
  102. package/dist/esm/components/ReceiverName/index.d.ts +2 -0
  103. package/dist/esm/components/ReceiverName/index.js +7 -0
  104. package/dist/esm/components/Remark/index.d.ts +5 -0
  105. package/dist/esm/components/Remark/index.js +12 -2
  106. package/dist/esm/components/ReturnLogistics/index.d.ts +8 -3
  107. package/dist/esm/components/ReturnLogistics/index.js +9 -0
  108. package/dist/esm/components/Select/index.d.ts +2 -0
  109. package/dist/esm/components/Select/index.js +7 -0
  110. package/dist/esm/components/ShopInput/index.d.ts +3 -1
  111. package/dist/esm/components/ShopInput/index.js +8 -1
  112. package/dist/esm/components/ShopName/index.d.ts +2 -0
  113. package/dist/esm/components/ShopName/index.js +7 -0
  114. package/dist/esm/components/Submitter/index.d.ts +3 -1
  115. package/dist/esm/components/Submitter/index.js +6 -0
  116. package/dist/esm/components/SystemOrderNo/index.d.ts +3 -1
  117. package/dist/esm/components/SystemOrderNo/index.js +7 -0
  118. package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
  119. package/dist/esm/components/TemplateSelect/index.js +8 -1
  120. package/dist/esm/components/TextArea/index.d.ts +2 -0
  121. package/dist/esm/components/TextArea/index.js +7 -0
  122. package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -0
  123. package/dist/esm/components/ThirdItemSelect/index.js +7 -0
  124. package/dist/esm/components/TradeDateTime/index.d.ts +3 -0
  125. package/dist/esm/components/TradeDateTime/index.js +17 -7
  126. package/dist/esm/components/TradeId/index.d.ts +2 -0
  127. package/dist/esm/components/TradeId/index.js +7 -0
  128. package/dist/esm/components/WorkOrderId/index.d.ts +2 -0
  129. package/dist/esm/components/WorkOrderId/index.js +16 -5
  130. package/dist/esm/index.d.ts +3 -0
  131. package/dist/esm/index.js +4 -1
  132. package/dist/esm/type.d.ts +9 -1
  133. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const ItemView: ({ label, value, id }: {
3
3
  label: string;
4
- value: string | JSX.Element | null;
4
+ value: string | JSX.Element | JSX.Element[] | null;
5
5
  id: any;
6
6
  }) => JSX.Element;
7
7
  export default ItemView;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare type OperationLogProps = {
3
+ content: string;
4
+ operation: string;
5
+ componentDtoList: any[];
6
+ };
7
+ export declare const unTransField: (key: string) => boolean;
8
+ declare const OperationLog: ({ content, operation, componentDtoList }: OperationLogProps) => JSX.Element | null;
9
+ export default OperationLog;
@@ -0,0 +1,125 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ 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."); }
3
+ 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); }
4
+ 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; }
5
+ 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; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React from 'react';
8
+ import { factory } from '@kmkf-fe-packages/services-components';
9
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
10
+ export var unTransField = function unTransField(key) {
11
+ return ['itemList', 'jstItemList', 'dateTime', 'basicMultSelect', 'checkbox', 'multSelect', 'rate', 'picture'].reduce(function (cur, nxt) {
12
+ return cur || (key === null || key === void 0 ? void 0 : key.includes(nxt));
13
+ }, false);
14
+ };
15
+ var OperationLog = function OperationLog(_ref) {
16
+ var content = _ref.content,
17
+ operation = _ref.operation,
18
+ componentDtoList = _ref.componentDtoList;
19
+ if (!content) return null;
20
+ try {
21
+ var record = JSON.parse(content);
22
+ if (/^TRANSFER/.test(operation)) {
23
+ if (/^\[.*?\]-->>\[.*?\]$/.test(content)) {
24
+ var _content$split = content.split('-->>'),
25
+ _content$split2 = _slicedToArray(_content$split, 2),
26
+ before = _content$split2[0],
27
+ after = _content$split2[1];
28
+ var beforeList,
29
+ afterList = [];
30
+ try {
31
+ beforeList = JSON.parse(before);
32
+ afterList = JSON.parse(after);
33
+ } catch (e) {
34
+ console.log(e);
35
+ beforeList = [];
36
+ afterList = [];
37
+ }
38
+ return /*#__PURE__*/React.createElement("div", {
39
+ className: "log-info-wrap"
40
+ }, "".concat(beforeList.join(','), " => ").concat(afterList.join(',')));
41
+ }
42
+ } else if (/^(UPDATE|ADD)/.test(operation)) {
43
+ if (/^\[.+\]$/.test(content)) {
44
+ var currentContent = record === null || record === void 0 ? void 0 : record.reduce(function (nxt, cur) {
45
+ if (!unTransField(cur['uniqueKey'])) {
46
+ nxt[cur['uniqueKey']] = cur['content'];
47
+ return nxt;
48
+ }
49
+ try {
50
+ nxt[cur['uniqueKey']] = JSON.parse(cur['content']);
51
+ } catch (e) {
52
+ nxt[cur['uniqueKey']] = cur['content'];
53
+ } finally {
54
+ return nxt;
55
+ }
56
+ }, {});
57
+ var oldContent = record === null || record === void 0 ? void 0 : record.reduce(function (nxt, cur) {
58
+ if (!unTransField(cur['uniqueKey'])) {
59
+ nxt[cur['uniqueKey']] = cur['oldContent'];
60
+ return nxt;
61
+ }
62
+ try {
63
+ nxt[cur['uniqueKey']] = JSON.parse(cur['content']);
64
+ } catch (e) {
65
+ nxt[cur['uniqueKey']] = cur['content'];
66
+ } finally {
67
+ return nxt;
68
+ }
69
+ }, {});
70
+ var currentNeedContentId = Object.keys(currentContent);
71
+ var newTemplateColumns = componentDtoList === null || componentDtoList === void 0 ? void 0 : componentDtoList.filter(function (item) {
72
+ return currentNeedContentId.findIndex(function (id) {
73
+ return id === null || id === void 0 ? void 0 : id.startsWith(item === null || item === void 0 ? void 0 : item.uniqueKey);
74
+ }) > -1;
75
+ });
76
+ var context = newTemplateColumns === null || newTemplateColumns === void 0 ? void 0 : newTemplateColumns.map(function (item) {
77
+ var instance = factory(item.workOrderComponentType, {
78
+ id: item.uniqueKey,
79
+ name: item.name,
80
+ componentConfig: item.componentConfig,
81
+ type: item.workOrderComponentType
82
+ });
83
+ if (operation !== null && operation !== void 0 && operation.startsWith('UPDATE') && !isNull(instance.getComponentValue(oldContent)) && !isNull(instance.getComponentValue(currentContent))) {
84
+ return /*#__PURE__*/React.createElement("span", {
85
+ style: {
86
+ display: 'flex'
87
+ }
88
+ }, /*#__PURE__*/React.createElement("span", {
89
+ style: {
90
+ maxWidth: '66px',
91
+ marginRight: '8px',
92
+ flexShrink: 1
93
+ }
94
+ }, item === null || item === void 0 ? void 0 : item.name, ":"), /*#__PURE__*/React.createElement("span", {
95
+ className: "value"
96
+ }, /*#__PURE__*/React.createElement("span", null, instance.renderLog(oldContent), /*#__PURE__*/React.createElement("span", null, '=>'), instance.renderLog(currentContent))));
97
+ } else if (operation !== null && operation !== void 0 && operation.startsWith('ADD') && !isNull(instance.getComponentValue(currentContent))) {
98
+ return /*#__PURE__*/React.createElement("span", {
99
+ style: {
100
+ display: 'flex'
101
+ }
102
+ }, /*#__PURE__*/React.createElement("span", {
103
+ style: {
104
+ maxWidth: '66px',
105
+ marginRight: '8px',
106
+ flexShrink: 1
107
+ }
108
+ }, item === null || item === void 0 ? void 0 : item.name, ":"), /*#__PURE__*/React.createElement("span", {
109
+ className: "value"
110
+ }, /*#__PURE__*/React.createElement("span", null, instance.renderLog(currentContent))));
111
+ } else {
112
+ return null;
113
+ }
114
+ });
115
+ return /*#__PURE__*/React.createElement(React.Fragment, null, context);
116
+ }
117
+ return /*#__PURE__*/React.createElement("div", null, content);
118
+ }
119
+ return /*#__PURE__*/React.createElement("div", null, content);
120
+ } catch (e) {
121
+ console.error('日志信息JSON转换异常', e);
122
+ return null;
123
+ }
124
+ };
125
+ export default OperationLog;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare type Shop = {
3
+ auditStatus: number;
4
+ shopId: string;
5
+ shopName: string;
6
+ shopSource: string | number;
7
+ };
8
+ declare type ShopListProps = {
9
+ shopList: Shop[];
10
+ [prop: string]: any;
11
+ };
12
+ declare const ShopList: ({ shopList, onChange, setShopId, ...prop }: ShopListProps) => JSX.Element;
13
+ export default ShopList;
@@ -0,0 +1,34 @@
1
+ var _excluded = ["shopList", "onChange", "setShopId"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
+ import React from 'react';
6
+ import { Select } from 'antd';
7
+ import PlatformAvatar from "../PlatformAvatar";
8
+ var ShopList = function ShopList(_ref) {
9
+ var _shopList$filter;
10
+ var shopList = _ref.shopList,
11
+ onChange = _ref.onChange,
12
+ setShopId = _ref.setShopId,
13
+ prop = _objectWithoutProperties(_ref, _excluded);
14
+ var handleChange = function handleChange(val) {
15
+ onChange === null || onChange === void 0 ? void 0 : onChange(val);
16
+ setShopId === null || setShopId === void 0 ? void 0 : setShopId(val);
17
+ };
18
+ return /*#__PURE__*/React.createElement(Select, _extends({
19
+ onChange: handleChange
20
+ }, prop), shopList === null || shopList === void 0 ? void 0 : (_shopList$filter = shopList.filter(function (item) {
21
+ return (item === null || item === void 0 ? void 0 : item.auditStatus) === 1;
22
+ })) === null || _shopList$filter === void 0 ? void 0 : _shopList$filter.map(function (item) {
23
+ return /*#__PURE__*/React.createElement(Select.Option, {
24
+ value: item.shopId,
25
+ label: item.shopName
26
+ }, /*#__PURE__*/React.createElement(PlatformAvatar, {
27
+ styles: {
28
+ marginRight: 5
29
+ },
30
+ type: item.shopSource
31
+ }), /*#__PURE__*/React.createElement("span", null, item.shopName));
32
+ }));
33
+ };
34
+ export default ShopList;
@@ -12,6 +12,8 @@ declare class ActualPayment implements ComponentInterface {
12
12
  render: (value: number) => JSX.Element;
13
13
  renderClient: (record: any) => JSX.Element | null;
14
14
  renderPc: (value: unknown, record: Record) => JSX.Element;
15
+ renderLog: (r: Record) => JSX.Element | null;
16
+ getComponentValue: (r: Record) => any;
15
17
  renderExport: (value: unknown, record: Record) => any;
16
18
  editRender: (value: any) => JSX.Element;
17
19
  filterConfig: (item: ColumnConfig) => {
@@ -35,6 +35,13 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
35
35
  var _record;
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
+ _defineProperty(this, "renderLog", function (r) {
39
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_actualPayment")])) return null;
40
+ return _this.renderPc(undefined, r);
41
+ });
42
+ _defineProperty(this, "getComponentValue", function (r) {
43
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_actualPayment")];
44
+ });
38
45
  _defineProperty(this, "renderExport", function (value, record) {
39
46
  var _record2;
40
47
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_actualPayment")]) !== null && _record2 !== void 0 ? _record2 : '--';
@@ -22,6 +22,8 @@ declare class Address implements ComponentInterface {
22
22
  transTextToNumber: (value?: string) => string | number | undefined;
23
23
  renderClient: (record: any) => JSX.Element | null;
24
24
  renderPc: (value: any, record: Record) => JSX.Element;
25
+ renderLog: (r: Record) => JSX.Element | null;
26
+ getComponentValue: (r: Record) => any[];
25
27
  renderExport: (value: any, record: any) => string;
26
28
  editRender: (value: any) => JSX.Element;
27
29
  filterConfig: () => never[];
@@ -55,6 +55,13 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
55
55
  return _this.addressDateInstance.getNameByCode(suffix || '');
56
56
  }).join(''));
57
57
  });
58
+ _defineProperty(this, "renderLog", function (r) {
59
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicProvince")])) return null;
60
+ return _this.renderPc(undefined, r);
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
+ });
58
65
  _defineProperty(this, "renderExport", function (value, record) {
59
66
  var _address2;
60
67
  if (record["".concat(_this.id, "_basicProvince")] === undefined) {
@@ -16,6 +16,11 @@ declare class Alipay implements ComponentInterface {
16
16
  render: () => null;
17
17
  renderClient: (record: Record) => JSX.Element;
18
18
  renderPc: () => null;
19
+ renderLog: (r: Record) => JSX.Element;
20
+ getComponentValue: (r: Record) => {
21
+ name: any;
22
+ user: any;
23
+ };
19
24
  renderExport: () => null;
20
25
  editRender: (value: any) => JSX.Element;
21
26
  filterConfig: (item: ColumnConfig) => {
@@ -35,6 +35,15 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
35
35
  _defineProperty(this, "renderPc", function () {
36
36
  return null;
37
37
  });
38
+ _defineProperty(this, "renderLog", function (r) {
39
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderLog(r), _this.alipayAccount.renderLog(r));
40
+ });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ return {
43
+ name: _this.alipayName.getComponentValue(r),
44
+ user: _this.alipayAccount.getComponentValue(r)
45
+ };
46
+ });
38
47
  _defineProperty(this, "renderExport", function () {
39
48
  return null;
40
49
  });
@@ -14,7 +14,9 @@ declare class EAlipayAccount implements ComponentInterface {
14
14
  constructor(options: PickOption);
15
15
  render: (value: string) => JSX.Element;
16
16
  renderClient: (record: Record) => JSX.Element | null;
17
- renderPc: (value: any, record: Record) => JSX.Element;
17
+ renderPc: (value: unknown, record: Record) => JSX.Element;
18
+ renderLog: (r: Record) => JSX.Element | null;
19
+ getComponentValue: (r: Record) => any;
18
20
  renderExport: (value?: string) => string;
19
21
  editRender: (value: any) => JSX.Element;
20
22
  filterConfig: (item: ColumnConfig) => {
@@ -37,13 +37,21 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
37
37
  }) : null;
38
38
  });
39
39
  _defineProperty(this, "renderPc", function (value, record) {
40
+ var _record;
40
41
  return /*#__PURE__*/React.createElement("span", {
41
42
  className: "pointer",
42
43
  onClick: function onClick() {
43
44
  var _this$effects, _this$effects2;
44
45
  typeof ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
45
46
  }
46
- }, value !== null && value !== void 0 ? value : '--');
47
+ }, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
48
+ });
49
+ _defineProperty(this, "renderLog", function (r) {
50
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
51
+ return _this.renderPc(undefined, r);
52
+ });
53
+ _defineProperty(this, "getComponentValue", function (r) {
54
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
47
55
  });
48
56
  _defineProperty(this, "renderExport", function (value) {
49
57
  return value !== null && value !== void 0 ? value : '--';
@@ -14,7 +14,9 @@ declare class EAlipayAccount implements ComponentInterface {
14
14
  constructor(options: PickOption);
15
15
  render: (value: string, record: any) => JSX.Element;
16
16
  renderClient: (record: any) => JSX.Element | null;
17
- renderPc: (value: any, record: Record) => JSX.Element;
17
+ renderPc: (value: unknown, record: Record) => JSX.Element;
18
+ renderLog: (r: Record) => JSX.Element | null;
19
+ getComponentValue: (r: Record) => any;
18
20
  renderExport: (value?: string) => string;
19
21
  editRender: (value: any) => JSX.Element;
20
22
  filterConfig: (item: ColumnConfig) => {
@@ -37,13 +37,21 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
37
37
  }) : null;
38
38
  });
39
39
  _defineProperty(this, "renderPc", function (value, record) {
40
+ var _record;
40
41
  return /*#__PURE__*/React.createElement("span", {
41
42
  className: "pointer",
42
43
  onClick: function onClick() {
43
44
  var _this$effects, _this$effects2;
44
45
  typeof ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
45
46
  }
46
- }, value !== null && value !== void 0 ? value : '--');
47
+ }, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
48
+ });
49
+ _defineProperty(this, "renderLog", function (r) {
50
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
51
+ return _this.renderPc(undefined, r);
52
+ });
53
+ _defineProperty(this, "getComponentValue", function (r) {
54
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
47
55
  });
48
56
  _defineProperty(this, "renderExport", function (value) {
49
57
  return value !== null && value !== void 0 ? value : '--';
@@ -16,6 +16,11 @@ declare class EBuyerNick implements ComponentInterface {
16
16
  render: (value: Value) => JSX.Element;
17
17
  renderClient: (record: any) => JSX.Element | null;
18
18
  renderPc: (value: unknown, record: Record) => JSX.Element;
19
+ renderLog: (r: Record) => JSX.Element | null;
20
+ getComponentValue: (r: Record) => {
21
+ buyerNick: any;
22
+ buyerOpenUid: any;
23
+ };
19
24
  renderExport: (value: any, record: any) => any;
20
25
  editRender: (value: any) => JSX.Element;
21
26
  filterConfig: (item: ColumnConfig) => {
@@ -50,6 +50,16 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
50
50
  shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
51
51
  }));
52
52
  });
53
+ _defineProperty(this, "renderLog", function (r) {
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
+ return _this.renderPc(undefined, r);
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
+ });
53
63
  _defineProperty(this, "renderExport", function (value, record) {
54
64
  return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
55
65
  });
@@ -18,6 +18,8 @@ declare class BasicCascader implements ComponentInterface {
18
18
  render: (value: any) => JSX.Element;
19
19
  renderClient: (record: any) => JSX.Element | null;
20
20
  renderPc: (value: any, record: Record) => JSX.Element;
21
+ renderLog: (r: Record) => JSX.Element | null;
22
+ getComponentValue: (r: Record) => any;
21
23
  renderExport: (value: any, record: Record) => string;
22
24
  editRender: (value: any) => JSX.Element;
23
25
  filterConfig: (item: ColumnConfig) => {
@@ -50,6 +50,13 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
50
50
  return i.label;
51
51
  })) === null || _findLabelBySelectVal4 === void 0 ? void 0 : _findLabelBySelectVal4.join(','));
52
52
  });
53
+ _defineProperty(this, "renderLog", function (r) {
54
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_multSelect")])) return null;
55
+ return _this.renderPc(undefined, r);
56
+ });
57
+ _defineProperty(this, "getComponentValue", function (r) {
58
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_multSelect")];
59
+ });
53
60
  _defineProperty(this, "renderExport", function (value, record) {
54
61
  var _findLabelBySelectVal5, _findLabelBySelectVal6, _ref2, _this$componentConfig3;
55
62
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) === undefined) {
@@ -16,6 +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) => any;
20
+ getComponentValue: (r: Record) => {
21
+ value: any;
22
+ other: any;
23
+ };
19
24
  renderExport: (value: any, record: Record) => string;
20
25
  renderClient: (record: any) => JSX.Element | null;
21
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, ")");
@@ -44,6 +44,27 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
44
44
  }
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
+ _defineProperty(this, "renderLog", function (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
+ };
67
+ });
47
68
  _defineProperty(this, "renderExport", function (value, record) {
48
69
  var _record2;
49
70
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_checkbox")]) === undefined) {
@@ -97,7 +118,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
97
118
  validator: function validator(_, value) {
98
119
  var _value$value4;
99
120
  if (!(value !== null && value !== void 0 && (_value$value4 = value.value) !== null && _value$value4 !== void 0 && _value$value4.length)) {
100
- return Promise.reject(new Error('请选择'));
121
+ return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
101
122
  }
102
123
  return Promise.resolve();
103
124
  }
@@ -16,6 +16,8 @@ declare class CommonDataTime implements ComponentInterface {
16
16
  render: (value: string) => JSX.Element | null;
17
17
  renderClient: (record: any) => JSX.Element | null;
18
18
  renderPc: (value: any, record: Record) => JSX.Element;
19
+ renderLog: (r: Record) => JSX.Element | null;
20
+ getComponentValue: (r: Record) => any;
19
21
  renderExport: (value: any, record: Record) => string;
20
22
  editRender: () => null;
21
23
  filterConfig: (item: ColumnConfig) => {
@@ -43,6 +43,13 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
43
43
  }
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
+ _defineProperty(this, "renderLog", function (r) {
47
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
48
+ return _this.renderPc(undefined, r);
49
+ });
50
+ _defineProperty(this, "getComponentValue", function (r) {
51
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
52
+ });
46
53
  _defineProperty(this, "renderExport", function (value, record) {
47
54
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
48
55
  return '--';
@@ -9,7 +9,9 @@ declare class CompletedUser implements ComponentInterface {
9
9
  isCombinationComponent: boolean;
10
10
  children: ComponentInterface[];
11
11
  constructor(options: PickOption);
12
- renderPc: (value: string, record: Record) => JSX.Element;
12
+ renderPc: (value: unknown, record: Record) => JSX.Element;
13
+ renderLog: (record: Record) => null;
14
+ getComponentValue: (r: Record) => any;
13
15
  renderExport: (value: any, record: Record) => any;
14
16
  render: () => null;
15
17
  renderClient: () => null;
@@ -21,6 +21,12 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
21
21
  var _record;
22
22
  return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
23
23
  });
24
+ _defineProperty(this, "renderLog", function (record) {
25
+ return null;
26
+ });
27
+ _defineProperty(this, "getComponentValue", function (r) {
28
+ return r === null || r === void 0 ? void 0 : r[_this.id];
29
+ });
24
30
  _defineProperty(this, "renderExport", function (value, record) {
25
31
  var _record2;
26
32
  return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
@@ -15,6 +15,8 @@ declare class BasicDataTime implements ComponentInterface {
15
15
  render: (value: Value) => JSX.Element;
16
16
  renderClient: (record: any) => JSX.Element | null;
17
17
  renderPc: (value: any, record: Record) => JSX.Element;
18
+ renderLog: (r: Record) => JSX.Element | null;
19
+ getComponentValue: (r: Record) => any;
18
20
  renderExport: (value: any, record: Record) => any;
19
21
  editRender: () => JSX.Element;
20
22
  filterConfig: (item: ColumnConfig) => {
@@ -58,6 +58,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
58
58
  }
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
+ _defineProperty(this, "renderLog", function (r) {
62
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_dateTime")])) return null;
63
+ return _this.renderPc(undefined, r);
64
+ });
65
+ _defineProperty(this, "getComponentValue", function (r) {
66
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_dateTime")];
67
+ });
61
68
  _defineProperty(this, "renderExport", function (value, record) {
62
69
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) === undefined) {
63
70
  return '--';
@@ -13,6 +13,8 @@ declare class EItemEncode implements ComponentInterface {
13
13
  render: (value: any) => JSX.Element;
14
14
  renderClient: (record: any) => JSX.Element | null;
15
15
  renderPc: (value: unknown, record: Record) => JSX.Element;
16
+ renderLog: (r: Record) => JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
16
18
  renderExport: (value: unknown, record: Record) => any;
17
19
  editRender: () => JSX.Element;
18
20
  filterConfig: (item: ColumnConfig) => {
@@ -47,6 +47,13 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
47
47
  type: "itemCode"
48
48
  });
49
49
  });
50
+ _defineProperty(this, "renderLog", function (r) {
51
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
52
+ return _this.renderPc(undefined, r);
53
+ });
54
+ _defineProperty(this, "getComponentValue", function (r) {
55
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
56
+ });
50
57
  _defineProperty(this, "renderExport", function (value, record) {
51
58
  var _ref;
52
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) {
@@ -13,6 +13,8 @@ declare class EItemId implements ComponentInterface {
13
13
  render: (value: any) => JSX.Element;
14
14
  renderClient: (record: any) => JSX.Element | null;
15
15
  renderPc: (value: unknown, record: Record) => JSX.Element;
16
+ renderLog: (r: Record) => JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
16
18
  renderExport: (value: any, record: any) => any;
17
19
  editRender: () => JSX.Element;
18
20
  filterConfig: (item: ColumnConfig) => {
@@ -47,6 +47,13 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
47
47
  type: "itemId"
48
48
  });
49
49
  });
50
+ _defineProperty(this, "renderLog", function (r) {
51
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
52
+ return _this.renderPc(undefined, r);
53
+ });
54
+ _defineProperty(this, "getComponentValue", function (r) {
55
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
56
+ });
50
57
  _defineProperty(this, "renderExport", function (value, record) {
51
58
  var _ref;
52
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) {
@@ -13,6 +13,8 @@ declare class EItemSelect implements ComponentInterface {
13
13
  render: (value: any) => JSX.Element;
14
14
  renderClient: (record: any) => JSX.Element | null;
15
15
  renderPc: (value: unknown, record: Record) => JSX.Element;
16
+ renderLog: (r: Record) => JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
16
18
  renderExport: (value: any, record: any) => any;
17
19
  editRender: () => JSX.Element;
18
20
  filterConfig: () => never[];
@@ -43,6 +43,13 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
43
43
  list: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]
44
44
  });
45
45
  });
46
+ _defineProperty(this, "renderLog", function (r) {
47
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
48
+ return _this.renderPc(undefined, r);
49
+ });
50
+ _defineProperty(this, "getComponentValue", function (r) {
51
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
52
+ });
46
53
  _defineProperty(this, "renderExport", function (value, record) {
47
54
  var _ref;
48
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) {