@kmkf-fe-packages/services-components 0.6.3-alpha.6 → 0.6.3-alpha.8
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.
- package/dist/esm/commonComponents/ItemView/index.d.ts +1 -1
- package/dist/esm/commonComponents/OperationLog/index.d.ts +9 -0
- package/dist/esm/commonComponents/OperationLog/index.js +131 -0
- package/dist/esm/components/ActualPayment/index.d.ts +1 -0
- package/dist/esm/components/ActualPayment/index.js +4 -0
- package/dist/esm/components/Address/index.d.ts +1 -0
- package/dist/esm/components/Address/index.js +4 -0
- package/dist/esm/components/Alipay/index.d.ts +1 -0
- package/dist/esm/components/Alipay/index.js +3 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +2 -1
- package/dist/esm/components/AlipayAccount/index.js +6 -1
- package/dist/esm/components/AlipayName/index.d.ts +2 -1
- package/dist/esm/components/AlipayName/index.js +6 -1
- package/dist/esm/components/BuyerNick/index.d.ts +1 -0
- package/dist/esm/components/BuyerNick/index.js +4 -0
- package/dist/esm/components/Cascader/index.d.ts +3 -2
- package/dist/esm/components/Cascader/index.js +4 -0
- package/dist/esm/components/Checkbox/index.d.ts +1 -0
- package/dist/esm/components/Checkbox/index.js +4 -0
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -1
- package/dist/esm/components/CommonDataTime/index.js +4 -0
- package/dist/esm/components/CompletedUser/index.d.ts +2 -1
- package/dist/esm/components/CompletedUser/index.js +3 -0
- package/dist/esm/components/DataTime/index.d.ts +2 -1
- package/dist/esm/components/DataTime/index.js +4 -0
- package/dist/esm/components/EItemEnCode/index.d.ts +1 -0
- package/dist/esm/components/EItemEnCode/index.js +4 -0
- package/dist/esm/components/EItemId/index.d.ts +1 -0
- package/dist/esm/components/EItemId/index.js +4 -0
- package/dist/esm/components/EItemSelect/index.d.ts +1 -0
- package/dist/esm/components/EItemSelect/index.js +4 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -1
- package/dist/esm/components/ErpTradeId/index.js +4 -0
- package/dist/esm/components/Express/index.d.ts +3 -2
- package/dist/esm/components/Express/index.js +6 -2
- package/dist/esm/components/ExpressCode/index.d.ts +3 -2
- package/dist/esm/components/ExpressCode/index.js +6 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +1 -0
- package/dist/esm/components/FlowStatusSelect/index.js +6 -0
- package/dist/esm/components/Grade/index.d.ts +1 -0
- package/dist/esm/components/Grade/index.js +4 -0
- package/dist/esm/components/Handler/index.d.ts +2 -3
- package/dist/esm/components/Handler/index.js +5 -1
- package/dist/esm/components/Input/index.d.ts +1 -0
- package/dist/esm/components/Input/index.js +4 -0
- package/dist/esm/components/JstItemSelect/index.d.ts +1 -0
- package/dist/esm/components/JstItemSelect/index.js +5 -0
- package/dist/esm/components/JstLogistics/index.d.ts +2 -1
- package/dist/esm/components/JstLogistics/index.js +5 -0
- package/dist/esm/components/JstSendGood/index.d.ts +1 -0
- package/dist/esm/components/JstSendGood/index.js +5 -0
- package/dist/esm/components/JstSupply/index.d.ts +1 -0
- package/dist/esm/components/JstSupply/index.js +5 -0
- package/dist/esm/components/Logistics/index.d.ts +2 -1
- package/dist/esm/components/Logistics/index.js +3 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +3 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/index.js +3 -0
- package/dist/esm/components/MultSelect/index.d.ts +1 -0
- package/dist/esm/components/MultSelect/index.js +4 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +7 -2
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +7 -2
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.js +7 -2
- package/dist/esm/components/Ordinary/index.d.ts +3 -2
- package/dist/esm/components/Ordinary/index.js +4 -1
- package/dist/esm/components/Payment/AlipayNick.d.ts +2 -1
- package/dist/esm/components/Payment/AlipayNick.js +7 -2
- package/dist/esm/components/Payment/AlipayNo.d.ts +2 -1
- package/dist/esm/components/Payment/AlipayNo.js +6 -2
- package/dist/esm/components/Payment/AlipayTime.d.ts +3 -2
- package/dist/esm/components/Payment/AlipayTime.js +6 -2
- package/dist/esm/components/Payment/BuyerNick.d.ts +2 -1
- package/dist/esm/components/Payment/BuyerNick.js +7 -3
- package/dist/esm/components/Payment/PaymentAmount.d.ts +2 -1
- package/dist/esm/components/Payment/PaymentAmount.js +6 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +2 -1
- package/dist/esm/components/Payment/PaymentStatus.js +6 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -2
- package/dist/esm/components/Payment/PaymentTid.js +6 -1
- package/dist/esm/components/Payment/index.d.ts +5 -4
- package/dist/esm/components/Payment/index.js +3 -0
- package/dist/esm/components/Picture/index.d.ts +1 -0
- package/dist/esm/components/Picture/index.js +4 -0
- package/dist/esm/components/PlatForm/index.d.ts +6 -2
- package/dist/esm/components/PlatForm/index.js +4 -0
- package/dist/esm/components/Radio/index.d.ts +1 -0
- package/dist/esm/components/Radio/index.js +4 -0
- package/dist/esm/components/Rate/index.d.ts +1 -0
- package/dist/esm/components/Rate/index.js +4 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +1 -0
- package/dist/esm/components/ReceiverAddress/index.js +4 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +1 -0
- package/dist/esm/components/ReceiverMobile/index.js +4 -0
- package/dist/esm/components/ReceiverName/index.d.ts +1 -0
- package/dist/esm/components/ReceiverName/index.js +4 -0
- package/dist/esm/components/Remark/index.d.ts +1 -0
- package/dist/esm/components/Remark/index.js +4 -0
- package/dist/esm/components/ReturnLogistics/index.d.ts +4 -3
- package/dist/esm/components/ReturnLogistics/index.js +3 -0
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +4 -0
- package/dist/esm/components/ShopInput/index.d.ts +2 -1
- package/dist/esm/components/ShopInput/index.js +5 -1
- package/dist/esm/components/ShopName/index.d.ts +1 -0
- package/dist/esm/components/ShopName/index.js +4 -0
- package/dist/esm/components/Submitter/index.d.ts +2 -1
- package/dist/esm/components/Submitter/index.js +3 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -2
- package/dist/esm/components/SystemOrderNo/index.js +4 -0
- package/dist/esm/components/TemplateSelect/index.d.ts +1 -0
- package/dist/esm/components/TemplateSelect/index.js +4 -0
- package/dist/esm/components/TextArea/index.d.ts +1 -0
- package/dist/esm/components/TextArea/index.js +4 -0
- package/dist/esm/components/ThirdItemSelect/index.d.ts +1 -0
- package/dist/esm/components/ThirdItemSelect/index.js +4 -0
- package/dist/esm/components/TradeDateTime/index.d.ts +3 -1
- package/dist/esm/components/TradeDateTime/index.js +13 -7
- package/dist/esm/components/TradeId/index.d.ts +2 -1
- package/dist/esm/components/TradeId/index.js +4 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +1 -0
- package/dist/esm/components/WorkOrderId/index.js +5 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/type.d.ts +8 -1
- package/package.json +2 -2
|
@@ -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,131 @@
|
|
|
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
|
+
export var unTransField = function unTransField(key) {
|
|
10
|
+
return ['itemList', 'jstItemList', 'dateTime', 'basicMultSelect', 'checkbox', 'multSelect', 'rate', 'picture'].reduce(function (cur, nxt) {
|
|
11
|
+
return cur || (key === null || key === void 0 ? void 0 : key.includes(nxt));
|
|
12
|
+
}, false);
|
|
13
|
+
};
|
|
14
|
+
var OperationLog = function OperationLog(_ref) {
|
|
15
|
+
var content = _ref.content,
|
|
16
|
+
operation = _ref.operation,
|
|
17
|
+
componentDtoList = _ref.componentDtoList;
|
|
18
|
+
if (!content) return null;
|
|
19
|
+
try {
|
|
20
|
+
var record = JSON.parse(content);
|
|
21
|
+
console.debug('record', record);
|
|
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
|
+
console.debug('currentContent', currentContent);
|
|
71
|
+
console.debug('oldContent', oldContent);
|
|
72
|
+
var currentNeedContentId = Object.keys(currentContent);
|
|
73
|
+
var newTemplateColumns = componentDtoList === null || componentDtoList === void 0 ? void 0 : componentDtoList.filter(function (item) {
|
|
74
|
+
return currentNeedContentId.findIndex(function (id) {
|
|
75
|
+
return id === null || id === void 0 ? void 0 : id.startsWith(item === null || item === void 0 ? void 0 : item.uniqueKey);
|
|
76
|
+
}) > -1;
|
|
77
|
+
});
|
|
78
|
+
var context = newTemplateColumns === null || newTemplateColumns === void 0 ? void 0 : newTemplateColumns.map(function (item) {
|
|
79
|
+
var instance = factory(item.workOrderComponentType, {
|
|
80
|
+
id: item.uniqueKey,
|
|
81
|
+
name: item.name,
|
|
82
|
+
componentConfig: item.componentConfig,
|
|
83
|
+
type: item.workOrderComponentType
|
|
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)));
|
|
120
|
+
});
|
|
121
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, context);
|
|
122
|
+
}
|
|
123
|
+
return /*#__PURE__*/React.createElement("div", null, content);
|
|
124
|
+
}
|
|
125
|
+
return /*#__PURE__*/React.createElement("div", null, content);
|
|
126
|
+
} catch (e) {
|
|
127
|
+
console.error('日志信息JSON转换异常', e);
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
export default OperationLog;
|
|
@@ -12,6 +12,7 @@ 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;
|
|
15
16
|
renderExport: (value: unknown, record: Record) => any;
|
|
16
17
|
editRender: (value: any) => JSX.Element;
|
|
17
18
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -35,6 +35,10 @@ 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 (!(r !== null && r !== void 0 && r["".concat(_this.id, "_actualPayment")])) return null;
|
|
40
|
+
return _this.renderPc(undefined, r);
|
|
41
|
+
});
|
|
38
42
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
39
43
|
var _record2;
|
|
40
44
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_actualPayment")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -22,6 +22,7 @@ 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;
|
|
25
26
|
renderExport: (value: any, record: any) => string;
|
|
26
27
|
editRender: (value: any) => JSX.Element;
|
|
27
28
|
filterConfig: () => never[];
|
|
@@ -55,6 +55,10 @@ 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 (!(r !== null && r !== void 0 && r["".concat(_this.id, "_basicProvince")])) return null;
|
|
60
|
+
return _this.renderPc(undefined, r);
|
|
61
|
+
});
|
|
58
62
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
59
63
|
var _address2;
|
|
60
64
|
if (record["".concat(_this.id, "_basicProvince")] === undefined) {
|
|
@@ -16,6 +16,7 @@ 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;
|
|
19
20
|
renderExport: () => null;
|
|
20
21
|
editRender: (value: any) => JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -35,6 +35,9 @@ 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
|
+
});
|
|
38
41
|
_defineProperty(this, "renderExport", function () {
|
|
39
42
|
return null;
|
|
40
43
|
});
|
|
@@ -14,7 +14,8 @@ 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:
|
|
17
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
18
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
18
19
|
renderExport: (value?: string) => string;
|
|
19
20
|
editRender: (value: any) => JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -37,13 +37,18 @@ 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
|
-
},
|
|
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 (!(r !== null && r !== void 0 && r["".concat(_this.id)])) return null;
|
|
51
|
+
return _this.renderPc(undefined, r);
|
|
47
52
|
});
|
|
48
53
|
_defineProperty(this, "renderExport", function (value) {
|
|
49
54
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -14,7 +14,8 @@ 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:
|
|
17
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
18
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
18
19
|
renderExport: (value?: string) => string;
|
|
19
20
|
editRender: (value: any) => JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -37,13 +37,18 @@ 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
|
-
},
|
|
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 (!(r !== null && r !== void 0 && r["".concat(_this.id)])) return null;
|
|
51
|
+
return _this.renderPc(undefined, r);
|
|
47
52
|
});
|
|
48
53
|
_defineProperty(this, "renderExport", function (value) {
|
|
49
54
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -16,6 +16,7 @@ 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;
|
|
19
20
|
renderExport: (value: any, record: any) => any;
|
|
20
21
|
editRender: (value: any) => JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -50,6 +50,10 @@ 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 (!(r !== null && r !== void 0 && r["".concat(_this.id, "_buyerOpenUid")]) && !(r !== null && r !== void 0 && r["".concat(_this.id, "_buyerNick")])) return null;
|
|
55
|
+
return _this.renderPc(undefined, r);
|
|
56
|
+
});
|
|
53
57
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
58
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
|
|
55
59
|
});
|
|
@@ -14,11 +14,12 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
14
14
|
* @param value
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
getValue: (value: any) =>
|
|
17
|
+
getValue: (value: any) => string;
|
|
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
|
-
|
|
21
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
22
|
+
renderExport: (value: any, record: Record) => string;
|
|
22
23
|
editRender: (value: any) => JSX.Element;
|
|
23
24
|
filterConfig: (item: ColumnConfig) => {
|
|
24
25
|
id: string;
|
|
@@ -50,6 +50,10 @@ 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 (!(r !== null && r !== void 0 && r["".concat(_this.id, "_multSelect")])) return null;
|
|
55
|
+
return _this.renderPc(undefined, r);
|
|
56
|
+
});
|
|
53
57
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
58
|
var _findLabelBySelectVal5, _findLabelBySelectVal6, _ref2, _this$componentConfig3;
|
|
55
59
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) === undefined) {
|
|
@@ -16,6 +16,7 @@ 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
20
|
renderExport: (value: any, record: Record) => string;
|
|
20
21
|
renderClient: (record: any) => JSX.Element | null;
|
|
21
22
|
editRender: () => JSX.Element;
|
|
@@ -44,6 +44,10 @@ 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
|
+
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);
|
|
50
|
+
});
|
|
47
51
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
48
52
|
var _record2;
|
|
49
53
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_checkbox")]) === undefined) {
|
|
@@ -16,13 +16,14 @@ 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;
|
|
19
20
|
renderExport: (value: any, record: Record) => string;
|
|
20
21
|
editRender: () => null;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
22
23
|
id: string;
|
|
23
24
|
name: string;
|
|
24
25
|
filterComponentType: "Date";
|
|
25
|
-
filterFn: (value: string[]) => (i: Record) =>
|
|
26
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
export default CommonDataTime;
|
|
@@ -43,6 +43,10 @@ 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 (!(r !== null && r !== void 0 && r["".concat(_this.id)])) return null;
|
|
48
|
+
return _this.renderPc(undefined, r);
|
|
49
|
+
});
|
|
46
50
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
47
51
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
48
52
|
return '--';
|
|
@@ -9,7 +9,8 @@ declare class CompletedUser implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
renderPc: (value:
|
|
12
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
13
|
+
renderLog: (record: Record) => null;
|
|
13
14
|
renderExport: (value: any, record: Record) => any;
|
|
14
15
|
render: () => null;
|
|
15
16
|
renderClient: () => null;
|
|
@@ -21,6 +21,9 @@ 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
|
+
});
|
|
24
27
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
25
28
|
var _record2;
|
|
26
29
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -15,6 +15,7 @@ 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;
|
|
18
19
|
renderExport: (value: any, record: Record) => any;
|
|
19
20
|
editRender: () => JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -22,7 +23,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
22
23
|
name: string;
|
|
23
24
|
filterComponentType: "Date";
|
|
24
25
|
options: any[];
|
|
25
|
-
filterFn: (value: string[]) => (i: Record) =>
|
|
26
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
export default BasicDataTime;
|
|
@@ -58,6 +58,10 @@ 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 (!(r !== null && r !== void 0 && r["".concat(_this.id, "_dateTime")])) return null;
|
|
63
|
+
return _this.renderPc(undefined, r);
|
|
64
|
+
});
|
|
61
65
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
62
66
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_dateTime")]) === undefined) {
|
|
63
67
|
return '--';
|
|
@@ -13,6 +13,7 @@ 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;
|
|
16
17
|
renderExport: (value: unknown, record: Record) => any;
|
|
17
18
|
editRender: () => JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -47,6 +47,10 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
47
47
|
type: "itemCode"
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
51
|
+
if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_itemList")])) return null;
|
|
52
|
+
return _this.renderPc(undefined, r);
|
|
53
|
+
});
|
|
50
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
55
|
var _ref;
|
|
52
56
|
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,7 @@ 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;
|
|
16
17
|
renderExport: (value: any, record: any) => any;
|
|
17
18
|
editRender: () => JSX.Element;
|
|
18
19
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -47,6 +47,10 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
47
47
|
type: "itemId"
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
51
|
+
if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_itemList")])) return null;
|
|
52
|
+
return _this.renderPc(undefined, r);
|
|
53
|
+
});
|
|
50
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
51
55
|
var _ref;
|
|
52
56
|
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 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;
|
|
16
17
|
renderExport: (value: any, record: any) => any;
|
|
17
18
|
editRender: () => JSX.Element;
|
|
18
19
|
filterConfig: () => never[];
|
|
@@ -43,6 +43,10 @@ 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 (!(r !== null && r !== void 0 && r["".concat(_this.id, "_itemList")])) return null;
|
|
48
|
+
return _this.renderPc(undefined, r);
|
|
49
|
+
});
|
|
46
50
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
47
51
|
var _ref;
|
|
48
52
|
return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (i) {
|
|
@@ -12,13 +12,14 @@ declare class ErpTradeId implements ComponentInterface {
|
|
|
12
12
|
render: (value: string) => JSX.Element;
|
|
13
13
|
renderClient: (record: any) => JSX.Element | null;
|
|
14
14
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
15
16
|
renderExport: (value: any, record: Record) => any;
|
|
16
17
|
editRender: (value: any) => JSX.Element;
|
|
17
18
|
filterConfig: (item: ColumnConfig) => {
|
|
18
19
|
id: string;
|
|
19
20
|
name: string;
|
|
20
21
|
filterComponentType: "Input";
|
|
21
|
-
filterFn: (value: string) => (i: Record) =>
|
|
22
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
export default ErpTradeId;
|
|
@@ -34,6 +34,10 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
34
34
|
var _record;
|
|
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
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
38
|
+
if (!(r !== null && r !== void 0 && r["".concat(_this.id, "_tradeId")])) return null;
|
|
39
|
+
return _this.renderPc(undefined, r);
|
|
40
|
+
});
|
|
37
41
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
38
42
|
var _record2;
|
|
39
43
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -15,8 +15,9 @@ declare class Express implements ComponentInterface {
|
|
|
15
15
|
constructor(options: PickOption);
|
|
16
16
|
render: (value: string) => JSX.Element;
|
|
17
17
|
renderClient: (record: any) => JSX.Element | null;
|
|
18
|
-
renderPc: (value:
|
|
19
|
-
|
|
18
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
19
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
20
|
+
renderExport: (value: string, record: Record) => string | number;
|
|
20
21
|
editRender: () => JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
22
23
|
id: string;
|
|
@@ -35,10 +35,14 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
35
35
|
}) : null;
|
|
36
36
|
});
|
|
37
37
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
38
|
-
if (
|
|
38
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
39
39
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
40
40
|
}
|
|
41
|
-
return /*#__PURE__*/React.createElement("span", null, _this.expressDateInstance.getExpressNameByCode(
|
|
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
|
+
});
|
|
43
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
44
|
+
if (!(r !== null && r !== void 0 && r[_this.id])) return null;
|
|
45
|
+
return _this.renderPc(undefined, r);
|
|
42
46
|
});
|
|
43
47
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
44
48
|
return _this.expressDateInstance.getExpressNameByCode(value) || value;
|
|
@@ -13,14 +13,15 @@ declare class ExpressCode implements ComponentInterface {
|
|
|
13
13
|
constructor(options: PickOption);
|
|
14
14
|
render: (value: string) => JSX.Element;
|
|
15
15
|
renderClient: (record: any) => JSX.Element | null;
|
|
16
|
-
renderPc: (value:
|
|
16
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
17
18
|
renderExport: (value: string, record: Record) => string;
|
|
18
19
|
editRender: () => JSX.Element;
|
|
19
20
|
filterConfig: (item: ColumnConfig) => {
|
|
20
21
|
id: string;
|
|
21
22
|
name: string;
|
|
22
23
|
filterComponentType: "Input";
|
|
23
|
-
filterFn: (value: string) => (i: Record) =>
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
export default ExpressCode;
|
|
@@ -34,7 +34,12 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
34
34
|
}) : null;
|
|
35
35
|
});
|
|
36
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
-
|
|
37
|
+
var _record$_this$id;
|
|
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
|
+
});
|
|
40
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
41
|
+
if (!(r !== null && r !== void 0 && r[_this.id])) return null;
|
|
42
|
+
return _this.renderPc(undefined, r);
|
|
38
43
|
});
|
|
39
44
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
40
45
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -13,6 +13,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
13
13
|
constructor(options: PickOption);
|
|
14
14
|
renderMenu: (record: Record) => JSX.Element;
|
|
15
15
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
17
|
renderExport: (value: any, record: Record) => any;
|
|
17
18
|
render: () => null;
|
|
18
19
|
renderClient: () => null;
|
|
@@ -52,6 +52,11 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
52
52
|
}
|
|
53
53
|
}, status === null || status === void 0 ? void 0 : status.label)) : /*#__PURE__*/React.createElement("span", null, "--");
|
|
54
54
|
});
|
|
55
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
56
|
+
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
57
|
+
if (!status) return null;
|
|
58
|
+
return _this.renderPc(undefined, r);
|
|
59
|
+
});
|
|
55
60
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
56
61
|
var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
57
62
|
return status ? status === null || status === void 0 ? void 0 : status.label : '--';
|
|
@@ -100,6 +105,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
100
105
|
this.id = options.id;
|
|
101
106
|
this.type = options.type;
|
|
102
107
|
this.componentConfig = options.componentConfig;
|
|
108
|
+
this.effects = options.effects;
|
|
103
109
|
this.rules = [];
|
|
104
110
|
this.isCombinationComponent = false;
|
|
105
111
|
this.children = [];
|