@kmkf-fe-packages/services-components 0.6.3-alpha.4 → 0.6.3-alpha.44
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/README.md +2 -0
- package/dist/esm/commonComponents/ItemView/index.d.ts +3 -3
- package/dist/esm/commonComponents/OperationLog/index.d.ts +9 -0
- package/dist/esm/commonComponents/OperationLog/index.js +127 -0
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +2 -2
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +2 -2
- package/dist/esm/commonComponents/ShopList/index.d.ts +2 -2
- package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
- package/dist/esm/components/ActualPayment/index.d.ts +7 -5
- package/dist/esm/components/ActualPayment/index.js +9 -4
- package/dist/esm/components/Address/index.d.ts +6 -5
- package/dist/esm/components/Address/index.js +8 -4
- package/dist/esm/components/Alipay/index.d.ts +9 -4
- package/dist/esm/components/Alipay/index.js +9 -3
- package/dist/esm/components/AlipayAccount/index.d.ts +7 -5
- package/dist/esm/components/AlipayAccount/index.js +11 -5
- package/dist/esm/components/AlipayName/index.d.ts +7 -5
- package/dist/esm/components/AlipayName/index.js +11 -5
- package/dist/esm/components/BuyerNick/index.d.ts +10 -8
- package/dist/esm/components/BuyerNick/index.js +11 -3
- package/dist/esm/components/Cascader/index.d.ts +7 -5
- package/dist/esm/components/Cascader/index.js +9 -4
- package/dist/esm/components/Checkbox/index.d.ts +10 -5
- package/dist/esm/components/Checkbox/index.js +22 -7
- package/dist/esm/components/Common/index.d.ts +5 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +6 -4
- package/dist/esm/components/CommonDataTime/index.js +8 -4
- package/dist/esm/components/CompletedUser/index.d.ts +5 -3
- package/dist/esm/components/CompletedUser/index.js +7 -3
- package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
- package/dist/esm/components/DataTime/index.d.ts +8 -6
- package/dist/esm/components/DataTime/index.js +8 -3
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +7 -5
- package/dist/esm/components/EItemEnCode/index.js +12 -7
- package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
- package/dist/esm/components/EItemId/index.d.ts +7 -5
- package/dist/esm/components/EItemId/index.js +12 -7
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
- package/dist/esm/components/EItemSelect/index.d.ts +6 -5
- package/dist/esm/components/EItemSelect/index.js +10 -6
- package/dist/esm/components/ErpTradeId/index.d.ts +7 -5
- package/dist/esm/components/ErpTradeId/index.js +10 -5
- package/dist/esm/components/Express/index.d.ts +9 -7
- package/dist/esm/components/Express/index.js +12 -7
- package/dist/esm/components/ExpressCode/index.d.ts +8 -6
- package/dist/esm/components/ExpressCode/index.js +12 -5
- package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
- package/dist/esm/components/FlowStatusSelect/index.d.ts +7 -5
- package/dist/esm/components/FlowStatusSelect/index.js +11 -3
- package/dist/esm/components/GetFormItem/index.d.ts +2 -2
- package/dist/esm/components/Grade/index.d.ts +6 -5
- package/dist/esm/components/Grade/index.js +8 -4
- package/dist/esm/components/Handler/index.d.ts +5 -5
- package/dist/esm/components/Handler/index.js +18 -8
- package/dist/esm/components/Input/index.d.ts +7 -5
- package/dist/esm/components/Input/index.js +9 -4
- package/dist/esm/components/JstItemSelect/index.d.ts +8 -6
- package/dist/esm/components/JstItemSelect/index.js +29 -24
- package/dist/esm/components/JstLogistics/index.d.ts +9 -6
- package/dist/esm/components/JstLogistics/index.js +19 -9
- package/dist/esm/components/JstSendGood/index.d.ts +7 -5
- package/dist/esm/components/JstSendGood/index.js +19 -9
- package/dist/esm/components/JstSupply/index.d.ts +7 -5
- package/dist/esm/components/JstSupply/index.js +19 -9
- package/dist/esm/components/Logistics/index.d.ts +11 -5
- package/dist/esm/components/Logistics/index.js +9 -3
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +17 -9
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +58 -26
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +36 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +84 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +21 -9
- package/dist/esm/components/LogisticsInterception/InterceptType.js +40 -18
- package/dist/esm/components/LogisticsInterception/index.d.ts +54 -11
- package/dist/esm/components/LogisticsInterception/index.js +44 -17
- package/dist/esm/components/MultSelect/index.d.ts +7 -6
- package/dist/esm/components/MultSelect/index.js +10 -4
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +12 -6
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +11 -5
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +7 -5
- package/dist/esm/components/Ordinary/OrdinarySerial.js +12 -6
- package/dist/esm/components/Ordinary/index.d.ts +12 -6
- package/dist/esm/components/Ordinary/index.js +12 -5
- package/dist/esm/components/OrdinaryHeader/index.d.ts +2 -2
- package/dist/esm/components/Payment/AlipayNick.d.ts +7 -5
- package/dist/esm/components/Payment/AlipayNick.js +13 -6
- package/dist/esm/components/Payment/AlipayNo.d.ts +7 -5
- package/dist/esm/components/Payment/AlipayNo.js +13 -7
- package/dist/esm/components/Payment/AlipayTime.d.ts +7 -5
- package/dist/esm/components/Payment/AlipayTime.js +11 -8
- package/dist/esm/components/Payment/BuyerNick.d.ts +7 -5
- package/dist/esm/components/Payment/BuyerNick.js +12 -6
- package/dist/esm/components/Payment/PaymentAmount.d.ts +7 -5
- package/dist/esm/components/Payment/PaymentAmount.js +10 -4
- package/dist/esm/components/Payment/PaymentStatus.d.ts +7 -5
- package/dist/esm/components/Payment/PaymentStatus.js +11 -5
- package/dist/esm/components/Payment/PaymentTid.d.ts +7 -5
- package/dist/esm/components/Payment/PaymentTid.js +10 -4
- package/dist/esm/components/Payment/index.d.ts +20 -8
- package/dist/esm/components/Payment/index.js +14 -3
- package/dist/esm/components/Picture/index.d.ts +7 -5
- package/dist/esm/components/Picture/index.js +8 -1
- package/dist/esm/components/PlatForm/index.d.ts +5 -3
- package/dist/esm/components/PlatForm/index.js +8 -3
- package/dist/esm/components/Popover/index.d.ts +2 -2
- package/dist/esm/components/Radio/index.d.ts +11 -5
- package/dist/esm/components/Radio/index.js +14 -7
- package/dist/esm/components/Rate/index.d.ts +7 -5
- package/dist/esm/components/Rate/index.js +9 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +10 -5
- package/dist/esm/components/ReceiverAddress/index.js +13 -3
- package/dist/esm/components/ReceiverMobile/index.d.ts +7 -5
- package/dist/esm/components/ReceiverMobile/index.js +9 -4
- package/dist/esm/components/ReceiverName/index.d.ts +7 -5
- package/dist/esm/components/ReceiverName/index.js +9 -4
- package/dist/esm/components/Remark/index.d.ts +11 -5
- package/dist/esm/components/Remark/index.js +13 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +14 -8
- package/dist/esm/components/ReturnLogistics/index.js +10 -4
- package/dist/esm/components/Select/index.d.ts +7 -5
- package/dist/esm/components/Select/index.js +8 -3
- package/dist/esm/components/ShopInput/index.d.ts +5 -3
- package/dist/esm/components/ShopInput/index.js +9 -4
- package/dist/esm/components/ShopName/index.d.ts +7 -5
- package/dist/esm/components/ShopName/index.js +10 -5
- package/dist/esm/components/Submitter/index.d.ts +5 -3
- package/dist/esm/components/Submitter/index.js +7 -3
- package/dist/esm/components/SystemOrderNo/index.d.ts +7 -5
- package/dist/esm/components/SystemOrderNo/index.js +9 -4
- package/dist/esm/components/TemplateSelect/index.d.ts +6 -4
- package/dist/esm/components/TemplateSelect/index.js +10 -5
- package/dist/esm/components/TextArea/index.d.ts +7 -5
- package/dist/esm/components/TextArea/index.js +9 -4
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/components/ThirdItemSelect/index.d.ts +7 -5
- package/dist/esm/components/ThirdItemSelect/index.js +12 -8
- package/dist/esm/components/TradeDateTime/index.d.ts +9 -5
- package/dist/esm/components/TradeDateTime/index.js +18 -7
- package/dist/esm/components/TradeId/index.d.ts +7 -5
- package/dist/esm/components/TradeId/index.js +9 -4
- package/dist/esm/components/WorkOrderId/index.d.ts +6 -4
- package/dist/esm/components/WorkOrderId/index.js +17 -8
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/type.d.ts +19 -14
- package/package.json +10 -5
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from '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
|
-
}) => JSX.Element;
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
7
|
export default ItemView;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "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) => React.JSX.Element | null;
|
|
9
|
+
export default OperationLog;
|
|
@@ -0,0 +1,127 @@
|
|
|
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
|
+
if (/^TRANSFER/.test(operation)) {
|
|
22
|
+
if (/^\[.*?\]-->>\[.*?\]$/.test(content)) {
|
|
23
|
+
var _content$split = content.split("-->>"),
|
|
24
|
+
_content$split2 = _slicedToArray(_content$split, 2),
|
|
25
|
+
before = _content$split2[0],
|
|
26
|
+
after = _content$split2[1];
|
|
27
|
+
var beforeList,
|
|
28
|
+
afterList = [];
|
|
29
|
+
try {
|
|
30
|
+
beforeList = JSON.parse(before);
|
|
31
|
+
afterList = JSON.parse(after);
|
|
32
|
+
} catch (e) {
|
|
33
|
+
console.log(e);
|
|
34
|
+
beforeList = [];
|
|
35
|
+
afterList = [];
|
|
36
|
+
}
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: "log-info-wrap"
|
|
39
|
+
}, "".concat(beforeList.join(","), " => ").concat(afterList.join(",")));
|
|
40
|
+
}
|
|
41
|
+
} else if (/^(UPDATE|ADD)/.test(operation)) {
|
|
42
|
+
var record = JSON.parse(content);
|
|
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
|
+
// eslint-disable-next-line no-unsafe-finally
|
|
55
|
+
return nxt;
|
|
56
|
+
}
|
|
57
|
+
}, {});
|
|
58
|
+
var oldContent = record === null || record === void 0 ? void 0 : record.reduce(function (nxt, cur) {
|
|
59
|
+
if (!unTransField(cur["uniqueKey"])) {
|
|
60
|
+
nxt[cur["uniqueKey"]] = cur["oldContent"];
|
|
61
|
+
return nxt;
|
|
62
|
+
}
|
|
63
|
+
try {
|
|
64
|
+
nxt[cur["uniqueKey"]] = JSON.parse(cur["oldContent"]);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
nxt[cur["uniqueKey"]] = cur["oldContent"];
|
|
67
|
+
} finally {
|
|
68
|
+
// eslint-disable-next-line no-unsafe-finally
|
|
69
|
+
return nxt;
|
|
70
|
+
}
|
|
71
|
+
}, {});
|
|
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
|
+
if (operation !== null && operation !== void 0 && operation.startsWith("UPDATE")) {
|
|
86
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
87
|
+
style: {
|
|
88
|
+
display: "flex"
|
|
89
|
+
}
|
|
90
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
91
|
+
style: {
|
|
92
|
+
maxWidth: "66px",
|
|
93
|
+
marginRight: "8px",
|
|
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
|
+
marginRight: "8px",
|
|
108
|
+
flexShrink: 1
|
|
109
|
+
}
|
|
110
|
+
}, item === null || item === void 0 ? void 0 : item.name, ":"), /*#__PURE__*/React.createElement("span", {
|
|
111
|
+
className: "value"
|
|
112
|
+
}, /*#__PURE__*/React.createElement("span", null, instance.renderLog(currentContent))));
|
|
113
|
+
} else {
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, context);
|
|
118
|
+
}
|
|
119
|
+
return /*#__PURE__*/React.createElement("div", null, content);
|
|
120
|
+
}
|
|
121
|
+
return /*#__PURE__*/React.createElement("div", null, content);
|
|
122
|
+
} catch (e) {
|
|
123
|
+
console.error("日志信息JSON转换异常", e);
|
|
124
|
+
return /*#__PURE__*/React.createElement("div", null, content);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
export default OperationLog;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare type PlatBuyerProp = {
|
|
3
3
|
shopId: string;
|
|
4
4
|
buyerNick: string;
|
|
5
5
|
buyerOpenUid: string;
|
|
6
6
|
shopList: any[];
|
|
7
7
|
};
|
|
8
|
-
declare const PlatBuyer: ({ shopId, buyerNick, buyerOpenUid, shopList }: PlatBuyerProp) => JSX.Element;
|
|
8
|
+
declare const PlatBuyer: ({ shopId, buyerNick, buyerOpenUid, shopList }: PlatBuyerProp) => React.JSX.Element;
|
|
9
9
|
export default PlatBuyer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CSSProperties, PropsWithChildren } from 'react';
|
|
1
|
+
import React, { CSSProperties, PropsWithChildren } from 'react';
|
|
2
2
|
declare type PlatformAvatarProps = {
|
|
3
3
|
type: number | string;
|
|
4
4
|
styles?: CSSProperties;
|
|
5
5
|
};
|
|
6
|
-
declare const PlatformAvatar: (props: PropsWithChildren<PlatformAvatarProps>) => JSX.Element;
|
|
6
|
+
declare const PlatformAvatar: (props: PropsWithChildren<PlatformAvatarProps>) => React.JSX.Element;
|
|
7
7
|
export default PlatformAvatar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare type Shop = {
|
|
3
3
|
auditStatus: number;
|
|
4
4
|
shopId: string;
|
|
@@ -9,5 +9,5 @@ declare type ShopListProps = {
|
|
|
9
9
|
shopList: Shop[];
|
|
10
10
|
[prop: string]: any;
|
|
11
11
|
};
|
|
12
|
-
declare const ShopList: ({ shopList, onChange, setShopId, ...prop }: ShopListProps) => JSX.Element;
|
|
12
|
+
declare const ShopList: ({ shopList, onChange, setShopId, ...prop }: ShopListProps) => React.JSX.Element;
|
|
13
13
|
export default ShopList;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare type WangwangProps = {
|
|
3
3
|
nick: string;
|
|
4
4
|
buyerOpenUid: string;
|
|
5
5
|
};
|
|
6
|
-
declare const Wangwang: (props: WangwangProps) => JSX.Element;
|
|
6
|
+
declare const Wangwang: (props: WangwangProps) => React.JSX.Element;
|
|
7
7
|
export default Wangwang;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class ActualPayment implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -9,12 +9,14 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
9
9
|
children: ComponentInterface[];
|
|
10
10
|
componentConfig: ComponentInterface["componentConfig"];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
13
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
14
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
15
|
+
getComponentValue: (r: Record) => any;
|
|
15
16
|
renderExport: (value: unknown, record: Record) => any;
|
|
16
|
-
editRender: (
|
|
17
|
+
editRender: () => React.JSX.Element;
|
|
17
18
|
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
type: string;
|
|
18
20
|
id: string;
|
|
19
21
|
name: string;
|
|
20
22
|
filterComponentType: "Input";
|
|
@@ -21,9 +21,6 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
21
21
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
22
|
_defineProperty(this, "children", void 0);
|
|
23
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
|
-
_defineProperty(this, "render", function (value) {
|
|
25
|
-
return /*#__PURE__*/React.createElement("span", null, value);
|
|
26
|
-
});
|
|
27
24
|
_defineProperty(this, "renderClient", function (record) {
|
|
28
25
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
29
26
|
id: _this.id,
|
|
@@ -35,11 +32,18 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
35
32
|
var _record;
|
|
36
33
|
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
34
|
});
|
|
35
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
36
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_actualPayment")])) return null;
|
|
37
|
+
return _this.renderPc(undefined, r);
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
40
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_actualPayment")];
|
|
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 : '--';
|
|
41
45
|
});
|
|
42
|
-
_defineProperty(this, "editRender", function (
|
|
46
|
+
_defineProperty(this, "editRender", function () {
|
|
43
47
|
var _this$componentConfig, _this$componentConfig2;
|
|
44
48
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
45
49
|
title: _this.name,
|
|
@@ -53,6 +57,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
53
57
|
});
|
|
54
58
|
_defineProperty(this, "filterConfig", function (item) {
|
|
55
59
|
return {
|
|
60
|
+
type: item.type,
|
|
56
61
|
id: item.id,
|
|
57
62
|
// 过滤组件id
|
|
58
63
|
name: item.name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare type Value = (string | number)[] | undefined;
|
|
5
5
|
declare class Address implements ComponentInterface {
|
|
@@ -18,12 +18,13 @@ declare class Address implements ComponentInterface {
|
|
|
18
18
|
* @returns
|
|
19
19
|
*/
|
|
20
20
|
getValue: (value: Value) => string | undefined;
|
|
21
|
-
render: (value: Value) => JSX.Element;
|
|
22
21
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
23
|
-
renderClient: (record: any) => JSX.Element | null;
|
|
24
|
-
renderPc: (value: any, record: Record) => JSX.Element;
|
|
22
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
23
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
24
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
25
|
+
getComponentValue: (r: Record) => any[];
|
|
25
26
|
renderExport: (value: any, record: any) => string;
|
|
26
|
-
editRender: (
|
|
27
|
+
editRender: () => React.JSX.Element;
|
|
27
28
|
filterConfig: () => never[];
|
|
28
29
|
}
|
|
29
30
|
export default Address;
|
|
@@ -29,9 +29,6 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
29
29
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
30
30
|
})) === null || _value$map === void 0 ? void 0 : _value$map.join('');
|
|
31
31
|
});
|
|
32
|
-
_defineProperty(this, "render", function (value) {
|
|
33
|
-
return /*#__PURE__*/React.createElement("span", null, _this.getValue(value));
|
|
34
|
-
});
|
|
35
32
|
_defineProperty(this, "transTextToNumber", function (value) {
|
|
36
33
|
return value ? +value : value;
|
|
37
34
|
});
|
|
@@ -55,6 +52,13 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
55
52
|
return _this.addressDateInstance.getNameByCode(suffix || '');
|
|
56
53
|
}).join(''));
|
|
57
54
|
});
|
|
55
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
56
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicProvince")])) return null;
|
|
57
|
+
return _this.renderPc(undefined, r);
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
60
|
+
return !isNull(r["".concat(_this.id, "_basicProvince")]) ? [r["".concat(_this.id, "_basicProvince")], r["".concat(_this.id, "_basicCity")], r["".concat(_this.id, "_basicDistrict")]] : [];
|
|
61
|
+
});
|
|
58
62
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
59
63
|
var _address2;
|
|
60
64
|
if (record["".concat(_this.id, "_basicProvince")] === undefined) {
|
|
@@ -68,7 +72,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
68
72
|
return _this.addressDateInstance.getNameByCode(suffix || '');
|
|
69
73
|
}).join('');
|
|
70
74
|
});
|
|
71
|
-
_defineProperty(this, "editRender", function (
|
|
75
|
+
_defineProperty(this, "editRender", function () {
|
|
72
76
|
var _this$componentConfig, _this$componentConfig2;
|
|
73
77
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
74
78
|
title: _this.name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import EAlipayAccount from '../AlipayAccount';
|
|
4
4
|
import EAlipayName from '../AlipayName';
|
|
5
5
|
declare class Alipay implements ComponentInterface {
|
|
@@ -13,12 +13,17 @@ declare class Alipay implements ComponentInterface {
|
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
constructor(options: PickOption);
|
|
16
|
-
|
|
17
|
-
renderClient: (record: Record) => JSX.Element;
|
|
16
|
+
renderClient: (record: Record) => React.JSX.Element;
|
|
18
17
|
renderPc: () => null;
|
|
18
|
+
renderLog: (r: Record) => React.JSX.Element;
|
|
19
|
+
getComponentValue: (r: Record) => {
|
|
20
|
+
name: any;
|
|
21
|
+
user: any;
|
|
22
|
+
};
|
|
19
23
|
renderExport: () => null;
|
|
20
|
-
editRender: (value: any) => JSX.Element;
|
|
24
|
+
editRender: (value: any) => React.JSX.Element;
|
|
21
25
|
filterConfig: (item: ColumnConfig) => {
|
|
26
|
+
type: string;
|
|
22
27
|
id: string;
|
|
23
28
|
name: string;
|
|
24
29
|
filterComponentType: "Input";
|
|
@@ -26,15 +26,21 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
26
26
|
_defineProperty(this, "alipayName", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "render", function () {
|
|
30
|
-
return null;
|
|
31
|
-
});
|
|
32
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
30
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayName.renderClient(record), _this.alipayAccount.renderClient(record));
|
|
34
31
|
});
|
|
35
32
|
_defineProperty(this, "renderPc", function () {
|
|
36
33
|
return null;
|
|
37
34
|
});
|
|
35
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
36
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.alipayName.name, ": ", _this.alipayName.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.alipayAccount.name, ": ", _this.alipayAccount.renderLog(r)));
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
39
|
+
return {
|
|
40
|
+
name: _this.alipayName.getComponentValue(r),
|
|
41
|
+
user: _this.alipayAccount.getComponentValue(r)
|
|
42
|
+
};
|
|
43
|
+
});
|
|
38
44
|
_defineProperty(this, "renderExport", function () {
|
|
39
45
|
return null;
|
|
40
46
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class EAlipayAccount implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -12,12 +12,14 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
constructor(options: PickOption);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
renderClient: (record: Record) => React.JSX.Element | null;
|
|
16
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
18
19
|
renderExport: (value?: string) => string;
|
|
19
|
-
editRender: (
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
23
25
|
filterComponentType: "Input";
|
|
@@ -26,9 +26,6 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
26
26
|
_defineProperty(this, "width", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "render", function (value) {
|
|
30
|
-
return /*#__PURE__*/React.createElement("span", null, value);
|
|
31
|
-
});
|
|
32
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
31
|
id: _this.id,
|
|
@@ -37,18 +34,26 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
37
34
|
}) : null;
|
|
38
35
|
});
|
|
39
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
+
var _record;
|
|
40
38
|
return /*#__PURE__*/React.createElement("span", {
|
|
41
39
|
className: "pointer",
|
|
42
40
|
onClick: function onClick() {
|
|
43
41
|
var _this$effects, _this$effects2;
|
|
44
42
|
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
43
|
}
|
|
46
|
-
},
|
|
44
|
+
}, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
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)];
|
|
47
52
|
});
|
|
48
53
|
_defineProperty(this, "renderExport", function (value) {
|
|
49
54
|
return value !== null && value !== void 0 ? value : '--';
|
|
50
55
|
});
|
|
51
|
-
_defineProperty(this, "editRender", function (
|
|
56
|
+
_defineProperty(this, "editRender", function () {
|
|
52
57
|
var _this$componentConfig, _this$componentConfig2;
|
|
53
58
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
54
59
|
title: _this.name,
|
|
@@ -60,6 +65,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
60
65
|
});
|
|
61
66
|
_defineProperty(this, "filterConfig", function (item) {
|
|
62
67
|
return {
|
|
68
|
+
type: item.type,
|
|
63
69
|
id: "".concat(item.id, "_alipayAccount"),
|
|
64
70
|
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
|
|
65
71
|
filterComponentType: 'Input',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class EAlipayAccount implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -12,12 +12,14 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
12
12
|
align: ALignType;
|
|
13
13
|
width: number;
|
|
14
14
|
constructor(options: PickOption);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
18
19
|
renderExport: (value?: string) => string;
|
|
19
|
-
editRender: (
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
23
25
|
filterComponentType: "Input";
|
|
@@ -26,9 +26,6 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
26
26
|
_defineProperty(this, "children", void 0);
|
|
27
27
|
_defineProperty(this, "align", void 0);
|
|
28
28
|
_defineProperty(this, "width", void 0);
|
|
29
|
-
_defineProperty(this, "render", function (value, record) {
|
|
30
|
-
return /*#__PURE__*/React.createElement("span", null, value);
|
|
31
|
-
});
|
|
32
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
31
|
id: _this.id,
|
|
@@ -37,18 +34,26 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
37
34
|
}) : null;
|
|
38
35
|
});
|
|
39
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
+
var _record;
|
|
40
38
|
return /*#__PURE__*/React.createElement("span", {
|
|
41
39
|
className: "pointer",
|
|
42
40
|
onClick: function onClick() {
|
|
43
41
|
var _this$effects, _this$effects2;
|
|
44
42
|
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
43
|
}
|
|
46
|
-
},
|
|
44
|
+
}, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
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)];
|
|
47
52
|
});
|
|
48
53
|
_defineProperty(this, "renderExport", function (value) {
|
|
49
54
|
return value !== null && value !== void 0 ? value : '--';
|
|
50
55
|
});
|
|
51
|
-
_defineProperty(this, "editRender", function (
|
|
56
|
+
_defineProperty(this, "editRender", function () {
|
|
52
57
|
var _this$componentConfig, _this$componentConfig2;
|
|
53
58
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
54
59
|
title: _this.name,
|
|
@@ -60,6 +65,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
60
65
|
});
|
|
61
66
|
_defineProperty(this, "filterConfig", function (item) {
|
|
62
67
|
return {
|
|
68
|
+
type: item.type,
|
|
63
69
|
id: "".concat(item.id, "_alipayName"),
|
|
64
70
|
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u540D\u79F0"),
|
|
65
71
|
filterComponentType: 'Input',
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
|
-
|
|
4
|
-
buyerNick?: string;
|
|
5
|
-
};
|
|
2
|
+
import React from 'react';
|
|
6
3
|
declare class EBuyerNick implements ComponentInterface {
|
|
7
4
|
name: string;
|
|
8
5
|
id: string;
|
|
@@ -13,12 +10,17 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
13
10
|
isCombinationComponent: boolean;
|
|
14
11
|
children: ComponentInterface[];
|
|
15
12
|
constructor(options: PickOption);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
14
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
15
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => {
|
|
17
|
+
buyerNick: any;
|
|
18
|
+
buyerOpenUid: any;
|
|
19
|
+
};
|
|
19
20
|
renderExport: (value: any, record: any) => any;
|
|
20
|
-
editRender: (value: any) => JSX.Element;
|
|
21
|
+
editRender: (value: any) => React.JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
23
|
+
type: string;
|
|
22
24
|
id: string;
|
|
23
25
|
name: string;
|
|
24
26
|
filterComponentType: "Input";
|
|
@@ -25,9 +25,6 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
25
25
|
_defineProperty(this, "effects", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "render", function (value) {
|
|
29
|
-
return /*#__PURE__*/React.createElement("span", null, value === null || value === void 0 ? void 0 : value.buyerNick);
|
|
30
|
-
});
|
|
31
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
29
|
var _record$_this$id;
|
|
33
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -50,6 +47,16 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
50
47
|
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
|
|
51
48
|
}));
|
|
52
49
|
});
|
|
50
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
51
|
+
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;
|
|
52
|
+
return _this.renderPc(undefined, r);
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
55
|
+
return {
|
|
56
|
+
buyerNick: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerNick")],
|
|
57
|
+
buyerOpenUid: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_buyerOpenUid")]
|
|
58
|
+
};
|
|
59
|
+
});
|
|
53
60
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
54
61
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_buyerNick")];
|
|
55
62
|
});
|
|
@@ -69,6 +76,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
69
76
|
});
|
|
70
77
|
_defineProperty(this, "filterConfig", function (item) {
|
|
71
78
|
return {
|
|
79
|
+
type: item.type,
|
|
72
80
|
id: "".concat(item.id, "_buyerNick"),
|
|
73
81
|
// 过滤组件id
|
|
74
82
|
name: item.name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class BasicCascader implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -15,12 +15,14 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
17
|
getValue: (value: any) => string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
20
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
|
+
getComponentValue: (r: Record) => any;
|
|
21
22
|
renderExport: (value: any, record: Record) => string;
|
|
22
|
-
editRender: (
|
|
23
|
+
editRender: () => React.JSX.Element;
|
|
23
24
|
filterConfig: (item: ColumnConfig) => {
|
|
25
|
+
type: string;
|
|
24
26
|
id: string;
|
|
25
27
|
name: string;
|
|
26
28
|
filterComponentType: "Cascader";
|