@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.
- 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 +125 -0
- package/dist/esm/commonComponents/ShopList/index.d.ts +13 -0
- package/dist/esm/commonComponents/ShopList/index.js +34 -0
- package/dist/esm/components/ActualPayment/index.d.ts +2 -0
- package/dist/esm/components/ActualPayment/index.js +7 -0
- package/dist/esm/components/Address/index.d.ts +2 -0
- package/dist/esm/components/Address/index.js +7 -0
- package/dist/esm/components/Alipay/index.d.ts +5 -0
- package/dist/esm/components/Alipay/index.js +9 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +3 -1
- package/dist/esm/components/AlipayAccount/index.js +9 -1
- package/dist/esm/components/AlipayName/index.d.ts +3 -1
- package/dist/esm/components/AlipayName/index.js +9 -1
- package/dist/esm/components/BuyerNick/index.d.ts +5 -0
- package/dist/esm/components/BuyerNick/index.js +10 -0
- package/dist/esm/components/Cascader/index.d.ts +2 -0
- package/dist/esm/components/Cascader/index.js +7 -0
- package/dist/esm/components/Checkbox/index.d.ts +5 -0
- package/dist/esm/components/Checkbox/index.js +25 -4
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -0
- package/dist/esm/components/CommonDataTime/index.js +7 -0
- package/dist/esm/components/CompletedUser/index.d.ts +3 -1
- package/dist/esm/components/CompletedUser/index.js +6 -0
- package/dist/esm/components/DataTime/index.d.ts +2 -0
- package/dist/esm/components/DataTime/index.js +7 -0
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -0
- package/dist/esm/components/EItemEnCode/index.js +7 -0
- package/dist/esm/components/EItemId/index.d.ts +2 -0
- package/dist/esm/components/EItemId/index.js +7 -0
- package/dist/esm/components/EItemSelect/index.d.ts +2 -0
- package/dist/esm/components/EItemSelect/index.js +7 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -0
- package/dist/esm/components/ErpTradeId/index.js +7 -0
- package/dist/esm/components/Express/index.d.ts +3 -1
- package/dist/esm/components/Express/index.js +9 -2
- package/dist/esm/components/ExpressCode/index.d.ts +3 -1
- package/dist/esm/components/ExpressCode/index.js +9 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +2 -0
- package/dist/esm/components/FlowStatusSelect/index.js +10 -0
- package/dist/esm/components/Grade/index.d.ts +2 -0
- package/dist/esm/components/Grade/index.js +7 -0
- package/dist/esm/components/Handler/index.d.ts +3 -3
- package/dist/esm/components/Handler/index.js +8 -1
- package/dist/esm/components/Input/index.d.ts +2 -0
- package/dist/esm/components/Input/index.js +7 -0
- package/dist/esm/components/JstItemSelect/index.d.ts +2 -0
- package/dist/esm/components/JstItemSelect/index.js +8 -0
- package/dist/esm/components/JstLogistics/index.d.ts +2 -0
- package/dist/esm/components/JstLogistics/index.js +8 -0
- package/dist/esm/components/JstSendGood/index.d.ts +2 -0
- package/dist/esm/components/JstSendGood/index.js +8 -0
- package/dist/esm/components/JstSupply/index.d.ts +2 -0
- package/dist/esm/components/JstSupply/index.js +8 -0
- package/dist/esm/components/Logistics/index.d.ts +5 -0
- package/dist/esm/components/Logistics/index.js +9 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +6 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +24 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +62 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +9 -3
- package/dist/esm/components/LogisticsInterception/index.js +33 -10
- package/dist/esm/components/MultSelect/index.d.ts +2 -0
- package/dist/esm/components/MultSelect/index.js +7 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +10 -2
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +10 -2
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.js +10 -2
- package/dist/esm/components/Ordinary/index.d.ts +8 -2
- package/dist/esm/components/Ordinary/index.js +11 -1
- package/dist/esm/components/Payment/AlipayNick.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNick.js +10 -2
- package/dist/esm/components/Payment/AlipayNo.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNo.js +9 -2
- package/dist/esm/components/Payment/AlipayTime.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayTime.js +9 -2
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -1
- package/dist/esm/components/Payment/BuyerNick.js +10 -3
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentAmount.js +9 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentStatus.js +9 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentTid.js +9 -1
- package/dist/esm/components/Payment/index.d.ts +14 -4
- package/dist/esm/components/Payment/index.js +14 -0
- package/dist/esm/components/Picture/index.d.ts +2 -0
- package/dist/esm/components/Picture/index.js +7 -0
- package/dist/esm/components/PlatForm/index.d.ts +2 -0
- package/dist/esm/components/PlatForm/index.js +8 -1
- package/dist/esm/components/Radio/index.d.ts +5 -0
- package/dist/esm/components/Radio/index.js +13 -7
- package/dist/esm/components/Rate/index.d.ts +2 -0
- package/dist/esm/components/Rate/index.js +9 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +5 -0
- package/dist/esm/components/ReceiverAddress/index.js +10 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +2 -0
- package/dist/esm/components/ReceiverMobile/index.js +7 -0
- package/dist/esm/components/ReceiverName/index.d.ts +2 -0
- package/dist/esm/components/ReceiverName/index.js +7 -0
- package/dist/esm/components/Remark/index.d.ts +5 -0
- package/dist/esm/components/Remark/index.js +12 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +8 -3
- package/dist/esm/components/ReturnLogistics/index.js +9 -0
- package/dist/esm/components/Select/index.d.ts +2 -0
- package/dist/esm/components/Select/index.js +7 -0
- package/dist/esm/components/ShopInput/index.d.ts +3 -1
- package/dist/esm/components/ShopInput/index.js +8 -1
- package/dist/esm/components/ShopName/index.d.ts +2 -0
- package/dist/esm/components/ShopName/index.js +7 -0
- package/dist/esm/components/Submitter/index.d.ts +3 -1
- package/dist/esm/components/Submitter/index.js +6 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -1
- package/dist/esm/components/SystemOrderNo/index.js +7 -0
- package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
- package/dist/esm/components/TemplateSelect/index.js +8 -1
- package/dist/esm/components/TextArea/index.d.ts +2 -0
- package/dist/esm/components/TextArea/index.js +7 -0
- package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -0
- package/dist/esm/components/ThirdItemSelect/index.js +7 -0
- package/dist/esm/components/TradeDateTime/index.d.ts +3 -0
- package/dist/esm/components/TradeDateTime/index.js +17 -7
- package/dist/esm/components/TradeId/index.d.ts +2 -0
- package/dist/esm/components/TradeId/index.js +7 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -0
- package/dist/esm/components/WorkOrderId/index.js +16 -5
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/type.d.ts +9 -1
- package/package.json +4 -4
|
@@ -34,8 +34,16 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
34
34
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
35
35
|
}) : null;
|
|
36
36
|
});
|
|
37
|
-
_defineProperty(this, "renderPc", function (value) {
|
|
38
|
-
|
|
37
|
+
_defineProperty(this, "renderPc", function (value, r) {
|
|
38
|
+
var _r;
|
|
39
|
+
return (_r = r === null || r === void 0 ? void 0 : r["".concat(_this.id)]) !== null && _r !== void 0 ? _r : '--';
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
42
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
43
|
+
return _this.renderPc(undefined, r);
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
46
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
39
47
|
});
|
|
40
48
|
_defineProperty(this, "renderExport", function (value) {
|
|
41
49
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -13,7 +13,9 @@ declare class OrdinaryMoney implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
constructor(options: PickOption);
|
|
15
15
|
render: (value: string) => JSX.Element;
|
|
16
|
-
renderPc: (value:
|
|
16
|
+
renderPc: (value: unknown, r: Record) => any;
|
|
17
|
+
renderLog: (r: Record) => any;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
17
19
|
renderExport: (value: any) => any;
|
|
18
20
|
renderClient: (record: any) => JSX.Element | null;
|
|
19
21
|
editRender: () => JSX.Element;
|
|
@@ -26,8 +26,16 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
26
26
|
_defineProperty(this, "render", function (value) {
|
|
27
27
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
28
28
|
});
|
|
29
|
-
_defineProperty(this, "renderPc", function (value) {
|
|
30
|
-
|
|
29
|
+
_defineProperty(this, "renderPc", function (value, r) {
|
|
30
|
+
var _r;
|
|
31
|
+
return (_r = r === null || r === void 0 ? void 0 : r["".concat(_this.id)]) !== null && _r !== void 0 ? _r : '--';
|
|
32
|
+
});
|
|
33
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
34
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
35
|
+
return _this.renderPc(undefined, r);
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
38
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
31
39
|
});
|
|
32
40
|
_defineProperty(this, "renderExport", function (value) {
|
|
33
41
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -19,7 +19,9 @@ declare class OrdinarySerial implements ComponentInterface {
|
|
|
19
19
|
constructor(options: PickOption);
|
|
20
20
|
render: (value: string) => JSX.Element;
|
|
21
21
|
renderClient: (record: any) => JSX.Element | null;
|
|
22
|
-
renderPc: (value:
|
|
22
|
+
renderPc: (value: unknown, r: Record) => any;
|
|
23
|
+
renderLog: (r: Record) => any;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
23
25
|
renderExport: (value: any) => any;
|
|
24
26
|
editRender: () => JSX.Element;
|
|
25
27
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -38,8 +38,16 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
38
38
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
39
39
|
}) : null;
|
|
40
40
|
});
|
|
41
|
-
_defineProperty(this, "renderPc", function (value) {
|
|
42
|
-
|
|
41
|
+
_defineProperty(this, "renderPc", function (value, r) {
|
|
42
|
+
var _r;
|
|
43
|
+
return (_r = r === null || r === void 0 ? void 0 : r["".concat(_this.id)]) !== null && _r !== void 0 ? _r : '--';
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
46
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
47
|
+
return _this.renderPc(undefined, r);
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
50
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
43
51
|
});
|
|
44
52
|
_defineProperty(this, "renderExport", function (value) {
|
|
45
53
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType, ColumnConfig } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
3
3
|
import OrdinaryHeader from './OrdinaryHeader';
|
|
4
4
|
import OrdinaryMoney from './OrdinaryMoney';
|
|
5
5
|
import OrdinarySerial from './OrdinarySerial';
|
|
@@ -23,13 +23,19 @@ declare class Ordinary implements ComponentInterface {
|
|
|
23
23
|
render: () => null;
|
|
24
24
|
editRender: (value: any) => JSX.Element;
|
|
25
25
|
renderPc: () => null;
|
|
26
|
+
renderLog: (r: Record) => JSX.Element;
|
|
27
|
+
getComponentValue: (r: Record) => {
|
|
28
|
+
ordinaryMoney: any;
|
|
29
|
+
ordinarySerial: any;
|
|
30
|
+
ordinaryTaitou: any;
|
|
31
|
+
};
|
|
26
32
|
renderExport: () => null;
|
|
27
33
|
renderClient: (record: any) => JSX.Element;
|
|
28
34
|
filterConfig: (item: ColumnConfig) => {
|
|
29
35
|
id: string;
|
|
30
36
|
name: string;
|
|
31
37
|
filterComponentType: "Input";
|
|
32
|
-
filterFn: (value: string) => (i:
|
|
38
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
39
|
}[];
|
|
34
40
|
}
|
|
35
41
|
export default Ordinary;
|
|
@@ -48,11 +48,21 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
|
|
|
48
48
|
_defineProperty(this, "renderPc", function () {
|
|
49
49
|
return null;
|
|
50
50
|
});
|
|
51
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
52
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.ordinaryHeader.renderLog(r), _this.ordinaryMoney.renderLog(r), _this.ordinarySerial.renderLog(r));
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
55
|
+
return {
|
|
56
|
+
ordinaryMoney: _this.ordinaryMoney.getComponentValue(r),
|
|
57
|
+
ordinarySerial: _this.ordinarySerial.getComponentValue(r),
|
|
58
|
+
ordinaryTaitou: _this.ordinaryHeader.getComponentValue(r)
|
|
59
|
+
};
|
|
60
|
+
});
|
|
51
61
|
_defineProperty(this, "renderExport", function () {
|
|
52
62
|
return null;
|
|
53
63
|
});
|
|
54
64
|
_defineProperty(this, "renderClient", function (record) {
|
|
55
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.
|
|
65
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.ordinaryHeader.renderClient(record), _this.ordinaryMoney.renderClient(record), _this.ordinarySerial.renderClient(record));
|
|
56
66
|
});
|
|
57
67
|
_defineProperty(this, "filterConfig", function (item) {
|
|
58
68
|
return [_this.ordinaryMoney.filterConfig(_objectSpread({}, item)), _this.ordinaryHeader.filterConfig(_objectSpread({}, item)), _this.ordinarySerial.filterConfig(_objectSpread({}, item))];
|
|
@@ -14,7 +14,9 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
14
14
|
constructor(options: PickOption);
|
|
15
15
|
render: (value: any, record?: Record) => 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;
|
|
19
|
+
getComponentValue: (r: Record) => any;
|
|
18
20
|
renderExport: (value: any, record: Record) => any;
|
|
19
21
|
editRender: () => JSX.Element;
|
|
20
22
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -34,7 +34,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
34
34
|
}) : null;
|
|
35
35
|
});
|
|
36
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
-
if (
|
|
37
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
38
38
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
39
39
|
}
|
|
40
40
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -43,7 +43,14 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
43
43
|
var _this$effects, _this$effects2;
|
|
44
44
|
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, record === null || record === void 0 ? void 0 : record[_this.id]);
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
49
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
50
|
+
return _this.renderPc(undefined, r);
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
53
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
47
54
|
});
|
|
48
55
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
49
56
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -74,6 +81,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
74
81
|
this.id = "".concat(options.id, "_enterprisePaymentAlipayNick");
|
|
75
82
|
this.type = options.type;
|
|
76
83
|
this.componentConfig = options.componentConfig;
|
|
84
|
+
this.effects = options.effects;
|
|
77
85
|
this.rules = [];
|
|
78
86
|
this.align = 'left';
|
|
79
87
|
this.width = 200;
|
|
@@ -14,7 +14,9 @@ declare class AlipayNo implements ComponentInterface {
|
|
|
14
14
|
constructor(options: PickOption);
|
|
15
15
|
render: (value: string) => JSX.Element;
|
|
16
16
|
renderClient: (record: any) => JSX.Element | null;
|
|
17
|
-
renderPc: (value:
|
|
17
|
+
renderPc: (value: unknown, record: any) => 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) => {
|
|
@@ -34,7 +34,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
34
34
|
}) : null;
|
|
35
35
|
});
|
|
36
36
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
-
if (
|
|
37
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
38
38
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
39
39
|
}
|
|
40
40
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -43,7 +43,14 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
43
43
|
var _this$effects, _this$effects2;
|
|
44
44
|
typeof (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.queryWorkOrderDetail) === 'function' && (_this === null || _this === void 0 ? void 0 : (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.queryWorkOrderDetail(record));
|
|
45
45
|
}
|
|
46
|
-
},
|
|
46
|
+
}, record === null || record === void 0 ? void 0 : record[_this.id]);
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
49
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
50
|
+
return _this.renderPc(undefined, r);
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
53
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
47
54
|
});
|
|
48
55
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
49
56
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -13,7 +13,9 @@ declare class AlipayTime implements ComponentInterface {
|
|
|
13
13
|
constructor(options: PickOption);
|
|
14
14
|
render: (value: string) => JSX.Element;
|
|
15
15
|
renderClient: (record: Record) => JSX.Element | null;
|
|
16
|
-
renderPc: (value:
|
|
16
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
17
19
|
renderExport: (value: string) => string | null;
|
|
18
20
|
editRender: () => JSX.Element;
|
|
19
21
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -36,12 +36,19 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
36
36
|
}) : null;
|
|
37
37
|
});
|
|
38
38
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
39
|
-
if (
|
|
39
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
40
40
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
41
41
|
}
|
|
42
42
|
return /*#__PURE__*/React.createElement("span", {
|
|
43
43
|
className: "pointer"
|
|
44
|
-
},
|
|
44
|
+
}, record !== null && record !== void 0 && record[_this.id] ? moment(+(record === null || record === void 0 ? void 0 : record[_this.id])).format('YYYY-MM-DD HH:mm:ss') : '--');
|
|
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)];
|
|
45
52
|
});
|
|
46
53
|
_defineProperty(this, "renderExport", function (value) {
|
|
47
54
|
return value ? moment(+value).format('YYYY-MM-DD HH:mm:ss') : null;
|
|
@@ -15,7 +15,9 @@ declare class BuyerNick implements ComponentInterface {
|
|
|
15
15
|
render: (value: string) => JSX.Element;
|
|
16
16
|
renderClient: (record: Record) => JSX.Element | null;
|
|
17
17
|
editRender: () => JSX.Element;
|
|
18
|
-
renderPc: (value:
|
|
18
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
19
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
19
21
|
renderExport: (value: string) => string;
|
|
20
22
|
filterConfig: (item: ColumnConfig) => {
|
|
21
23
|
id: string;
|
|
@@ -52,7 +52,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
52
52
|
});
|
|
53
53
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
54
54
|
var _this$effects;
|
|
55
|
-
if (
|
|
55
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
56
56
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
57
57
|
}
|
|
58
58
|
var buyerOpenUid = (record === null || record === void 0 ? void 0 : record.buyerOpenUid) || Object.keys(record).reduce(function (prv, next) {
|
|
@@ -65,13 +65,20 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
65
65
|
}
|
|
66
66
|
return prv;
|
|
67
67
|
}, '');
|
|
68
|
-
return /*#__PURE__*/React.createElement("span", null,
|
|
68
|
+
return /*#__PURE__*/React.createElement("span", null, (record === null || record === void 0 ? void 0 : record[_this.id]) && /*#__PURE__*/React.createElement(PlatBuyer, {
|
|
69
69
|
shopId: record === null || record === void 0 ? void 0 : record.shopId,
|
|
70
|
-
buyerNick:
|
|
70
|
+
buyerNick: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
71
71
|
buyerOpenUid: buyerOpenUid,
|
|
72
72
|
shopList: (_this === null || _this === void 0 ? void 0 : (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopList) || []
|
|
73
73
|
}));
|
|
74
74
|
});
|
|
75
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
76
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
77
|
+
return _this.renderPc(undefined, r);
|
|
78
|
+
});
|
|
79
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
80
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
81
|
+
});
|
|
75
82
|
_defineProperty(this, "renderExport", function (value) {
|
|
76
83
|
return value !== null && value !== void 0 ? value : '--';
|
|
77
84
|
});
|
|
@@ -13,7 +13,9 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
13
13
|
constructor(options: PickOption);
|
|
14
14
|
render: (value: string) => JSX.Element;
|
|
15
15
|
renderClient: (record: Record) => JSX.Element | null;
|
|
16
|
-
renderPc: (value:
|
|
16
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
17
19
|
renderExport: (value: string) => string;
|
|
18
20
|
editRender: () => JSX.Element;
|
|
19
21
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -33,7 +33,15 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
33
33
|
}) : null;
|
|
34
34
|
});
|
|
35
35
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
-
|
|
36
|
+
var _record$_this$id;
|
|
37
|
+
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 : '--');
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
41
|
+
return _this.renderPc(undefined, r);
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
37
45
|
});
|
|
38
46
|
_defineProperty(this, "renderExport", function (value) {
|
|
39
47
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -20,7 +20,9 @@ declare class PaymentStatus implements ComponentInterface {
|
|
|
20
20
|
constructor(options: PickOption);
|
|
21
21
|
render: (value: string) => JSX.Element;
|
|
22
22
|
renderClient: (record: any) => JSX.Element | null;
|
|
23
|
-
renderPc: (value:
|
|
23
|
+
renderPc: (value: unknown, record: any) => any;
|
|
24
|
+
renderLog: (r: Record) => any;
|
|
25
|
+
getComponentValue: (r: Record) => any;
|
|
24
26
|
renderExport: (value: any) => any;
|
|
25
27
|
editRender: (value: any) => null;
|
|
26
28
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -33,7 +33,15 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
33
33
|
}) : null;
|
|
34
34
|
});
|
|
35
35
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
-
|
|
36
|
+
var _record$_this$id;
|
|
37
|
+
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
41
|
+
return _this.renderPc(undefined, r);
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
37
45
|
});
|
|
38
46
|
_defineProperty(this, "renderExport", function (value) {
|
|
39
47
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -13,7 +13,9 @@ declare class PaymentTid 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: any) => JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
17
19
|
renderExport: (value: string) => string;
|
|
18
20
|
editRender: () => JSX.Element;
|
|
19
21
|
filterConfig: (item: ColumnConfig) => {
|
|
@@ -33,7 +33,15 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
33
33
|
}) : null;
|
|
34
34
|
});
|
|
35
35
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
-
|
|
36
|
+
var _record$_this$id;
|
|
37
|
+
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 : '--');
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
41
|
+
return _this.renderPc(undefined, r);
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
37
45
|
});
|
|
38
46
|
_defineProperty(this, "renderExport", function (value) {
|
|
39
47
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ColumnConfig } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
import AlipayNick from './AlipayNick';
|
|
4
4
|
import AlipayNo from './AlipayNo';
|
|
5
5
|
import AlipayTime from './AlipayTime';
|
|
@@ -26,13 +26,23 @@ declare class Logistics implements ComponentInterface {
|
|
|
26
26
|
render: () => null;
|
|
27
27
|
renderClient: (record: any) => JSX.Element;
|
|
28
28
|
renderPc: () => null;
|
|
29
|
+
renderLog: (record: Record) => JSX.Element;
|
|
30
|
+
getComponentValue: (r: Record) => {
|
|
31
|
+
enterprisePaymentAlipayNick: any;
|
|
32
|
+
enterprisePaymentAlipayNo: any;
|
|
33
|
+
enterprisePaymentBuyerNick: any;
|
|
34
|
+
enterprisePaymentRefundFee: any;
|
|
35
|
+
enterprisePaymentStatus: any;
|
|
36
|
+
enterprisePaymentTid: any;
|
|
37
|
+
enterprisePaymentTime: any;
|
|
38
|
+
};
|
|
29
39
|
renderExport: () => null;
|
|
30
40
|
editRender: (value: any) => JSX.Element;
|
|
31
41
|
filterConfig: (item: ColumnConfig) => ({
|
|
32
42
|
id: string;
|
|
33
43
|
name: string;
|
|
34
44
|
filterComponentType: "Input";
|
|
35
|
-
filterFn: (value: string) => (i:
|
|
45
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
36
46
|
} | {
|
|
37
47
|
id: string;
|
|
38
48
|
name: string;
|
|
@@ -41,12 +51,12 @@ declare class Logistics implements ComponentInterface {
|
|
|
41
51
|
label: string;
|
|
42
52
|
value: string;
|
|
43
53
|
}[];
|
|
44
|
-
filterFn: (value: string) => (i:
|
|
54
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
45
55
|
} | {
|
|
46
56
|
id: string;
|
|
47
57
|
name: string;
|
|
48
58
|
filterComponentType: "Input";
|
|
49
|
-
filterFn: (value: string[]) => (i:
|
|
59
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
50
60
|
})[];
|
|
51
61
|
}
|
|
52
62
|
export default Logistics;
|
|
@@ -44,6 +44,20 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
44
44
|
_defineProperty(this, "renderPc", function () {
|
|
45
45
|
return null;
|
|
46
46
|
});
|
|
47
|
+
_defineProperty(this, "renderLog", function (record) {
|
|
48
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderLog(record), _this.paymentAmount.renderLog(record), _this.alipayNo.renderLog(record), _this.buyerNick.renderLog(record), _this.paymentTid.renderLog(record), _this.paymentStatus.renderLog(record), _this.payTime.renderLog(record));
|
|
49
|
+
});
|
|
50
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
51
|
+
return {
|
|
52
|
+
enterprisePaymentAlipayNick: _this.alipayNick.getComponentValue(r),
|
|
53
|
+
enterprisePaymentAlipayNo: _this.alipayNo.getComponentValue(r),
|
|
54
|
+
enterprisePaymentBuyerNick: _this.buyerNick.getComponentValue(r),
|
|
55
|
+
enterprisePaymentRefundFee: _this.paymentAmount.getComponentValue(r),
|
|
56
|
+
enterprisePaymentStatus: _this.paymentStatus.getComponentValue(r),
|
|
57
|
+
enterprisePaymentTid: _this.paymentTid.getComponentValue(r),
|
|
58
|
+
enterprisePaymentTime: _this.payTime.getComponentValue(r)
|
|
59
|
+
};
|
|
60
|
+
});
|
|
47
61
|
_defineProperty(this, "renderExport", function () {
|
|
48
62
|
return null;
|
|
49
63
|
});
|
|
@@ -13,6 +13,8 @@ declare class BasicPicture implements ComponentInterface {
|
|
|
13
13
|
formatPictures: (pictures: string) => string[];
|
|
14
14
|
render: (value: Value) => JSX.Element | null;
|
|
15
15
|
renderPc: (value: any, record: Record) => JSX.Element | JSX.Element[];
|
|
16
|
+
renderLog: (r: Record) => JSX.Element | JSX.Element[] | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
16
18
|
renderClient: (record: any) => JSX.Element | null;
|
|
17
19
|
editRender: (value: any) => JSX.Element;
|
|
18
20
|
/**
|
|
@@ -69,6 +69,13 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
69
69
|
}));
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
73
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_picture")])) return null;
|
|
74
|
+
return _this.renderPc(undefined, r);
|
|
75
|
+
});
|
|
76
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
77
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_picture")];
|
|
78
|
+
});
|
|
72
79
|
_defineProperty(this, "renderClient", function (record) {
|
|
73
80
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
74
81
|
id: _this.id,
|
|
@@ -12,6 +12,8 @@ declare class PlatForm implements ComponentInterface {
|
|
|
12
12
|
constructor();
|
|
13
13
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
14
14
|
renderExport: (value: any, record: Record) => string;
|
|
15
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
16
|
+
getComponentValue: (r: Record) => any;
|
|
15
17
|
render: () => null;
|
|
16
18
|
renderClient: () => null;
|
|
17
19
|
editRender: () => null;
|
|
@@ -6,7 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import { PlatData, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
9
|
+
import { PlatData, filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
10
|
var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
11
11
|
var _this = this;
|
|
12
12
|
_classCallCheck(this, PlatForm);
|
|
@@ -27,6 +27,13 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
|
27
27
|
var platMap = _this.platInstance.getPlatMap();
|
|
28
28
|
return (_platMap$record2 = platMap === null || platMap === void 0 ? void 0 : platMap[record === null || record === void 0 ? void 0 : record["".concat(_this.id)]]) !== null && _platMap$record2 !== void 0 ? _platMap$record2 : '--';
|
|
29
29
|
});
|
|
30
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
31
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
32
|
+
return _this.renderPc(undefined, r);
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
35
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
36
|
+
});
|
|
30
37
|
_defineProperty(this, "render", function () {
|
|
31
38
|
return null;
|
|
32
39
|
});
|
|
@@ -15,6 +15,11 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
15
15
|
constructor(options: PickOption);
|
|
16
16
|
render: (value: Value) => JSX.Element;
|
|
17
17
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
18
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
19
|
+
getComponentValue: (r: Record) => {
|
|
20
|
+
value: any;
|
|
21
|
+
other: any;
|
|
22
|
+
};
|
|
18
23
|
renderExport: (value: any, record: Record) => string;
|
|
19
24
|
renderClient: (record: Record) => JSX.Element | null;
|
|
20
25
|
editRender: () => JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
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
2
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
3
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
4
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -7,7 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
8
|
import React from 'react';
|
|
10
|
-
import {
|
|
9
|
+
import { ApaasRadio } from '@kmkf-fe-packages/basic-components';
|
|
11
10
|
import GetFormItem from "../GetFormItem";
|
|
12
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
12
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
@@ -33,6 +32,16 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
33
32
|
}
|
|
34
33
|
return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_radio")], record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_radioOther")]);
|
|
35
34
|
});
|
|
35
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
36
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radio")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radioOther")])) return null;
|
|
37
|
+
return _this.renderPc(undefined, r);
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
40
|
+
return {
|
|
41
|
+
value: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radio")],
|
|
42
|
+
other: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radioOther")]
|
|
43
|
+
};
|
|
44
|
+
});
|
|
36
45
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
37
46
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_radio")]) === undefined) {
|
|
38
47
|
return '--';
|
|
@@ -53,10 +62,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
53
62
|
name: _this.id,
|
|
54
63
|
rules: _this.rules,
|
|
55
64
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
56
|
-
component: /*#__PURE__*/React.createElement(
|
|
57
|
-
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
58
|
-
showSearch: true
|
|
59
|
-
}))
|
|
65
|
+
component: /*#__PURE__*/React.createElement(ApaasRadio, _this.componentConfig)
|
|
60
66
|
});
|
|
61
67
|
});
|
|
62
68
|
_defineProperty(this, "filterConfig", function (item) {
|
|
@@ -87,7 +93,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
87
93
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
88
94
|
validator: function validator(_, value) {
|
|
89
95
|
if (!(value !== null && value !== void 0 && value.value)) {
|
|
90
|
-
return Promise.reject(new Error(
|
|
96
|
+
return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
|
|
91
97
|
}
|
|
92
98
|
return Promise.resolve();
|
|
93
99
|
}
|
|
@@ -20,6 +20,8 @@ declare class BasicRate implements ComponentInterface {
|
|
|
20
20
|
render: (value: Value) => JSX.Element;
|
|
21
21
|
renderClient: (record: Record) => JSX.Element | null;
|
|
22
22
|
renderPc: (value: any, record: Record) => JSX.Element | null;
|
|
23
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
23
25
|
renderExport: (value: any, record: any) => any;
|
|
24
26
|
editRender: () => JSX.Element;
|
|
25
27
|
filterConfig: () => never[];
|