@kmkf-fe-packages/services-components 0.6.3-alpha.6 → 0.6.3-alpha.60
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/QueryLogisticsTrack/index.d.ts +9 -0
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +92 -0
- 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 +9 -7
- 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 +21 -6
- package/dist/esm/components/Common/index.d.ts +5 -5
- package/dist/esm/components/CommonDataTime/index.d.ts +7 -5
- 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 +9 -7
- 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 +8 -6
- package/dist/esm/components/ErpTradeId/index.js +10 -5
- package/dist/esm/components/Express/index.d.ts +8 -6
- package/dist/esm/components/Express/index.js +12 -7
- package/dist/esm/components/ExpressCode/index.d.ts +10 -8
- package/dist/esm/components/ExpressCode/index.js +19 -12
- 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 +3 -3
- package/dist/esm/components/GetFormItem/index.js +3 -3
- 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 +10 -7
- 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 +12 -6
- 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 +72 -27
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +38 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +102 -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/columnHeader.d.ts +5 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +55 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +55 -8
- package/dist/esm/components/LogisticsInterception/index.js +54 -14
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +30 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +74 -0
- 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 +8 -6
- 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 +8 -6
- 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 +10 -5
- 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 +11 -0
- package/dist/esm/components/Rate/index.d.ts +7 -5
- package/dist/esm/components/Rate/index.js +11 -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 +11 -0
- package/dist/esm/components/ReturnLogistics/index.d.ts +14 -8
- package/dist/esm/components/ReturnLogistics/index.js +9 -3
- 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 +8 -6
- 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 +10 -6
- package/dist/esm/components/TradeDateTime/index.js +18 -7
- package/dist/esm/components/TradeId/index.d.ts +8 -6
- 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 +10 -4
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/type.d.ts +20 -14
- package/package.json +10 -5
|
@@ -24,17 +24,14 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
24
24
|
_defineProperty(this, "effects", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "render", function (value) {
|
|
28
|
-
return /*#__PURE__*/React.createElement(GoodImage, {
|
|
29
|
-
list: value,
|
|
30
|
-
type: "itemId"
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
34
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
35
29
|
id: _this.id,
|
|
36
30
|
label: _this.name,
|
|
37
|
-
value:
|
|
31
|
+
value: /*#__PURE__*/React.createElement(GoodImage, {
|
|
32
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
33
|
+
type: "itemId"
|
|
34
|
+
})
|
|
38
35
|
}) : null;
|
|
39
36
|
});
|
|
40
37
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -47,6 +44,13 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
47
44
|
type: "itemId"
|
|
48
45
|
});
|
|
49
46
|
});
|
|
47
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
48
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
49
|
+
return _this.renderPc(undefined, r);
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
52
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
|
|
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) {
|
|
@@ -70,6 +74,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
70
74
|
});
|
|
71
75
|
_defineProperty(this, "filterConfig", function (item) {
|
|
72
76
|
return {
|
|
77
|
+
type: item.type,
|
|
73
78
|
id: item.id,
|
|
74
79
|
// 过滤组件id
|
|
75
80
|
name: item.name,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
|
|
3
|
-
declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
3
|
+
declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
|
|
4
4
|
export default ItemSelect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class EItemSelect implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -10,11 +10,12 @@ declare class EItemSelect implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
children: ComponentInterface[];
|
|
12
12
|
constructor(options: PickOption);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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) => any;
|
|
16
17
|
renderExport: (value: any, record: any) => any;
|
|
17
|
-
editRender: () => JSX.Element;
|
|
18
|
+
editRender: () => React.JSX.Element;
|
|
18
19
|
filterConfig: () => never[];
|
|
19
20
|
}
|
|
20
21
|
export default EItemSelect;
|
|
@@ -23,16 +23,13 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
23
23
|
_defineProperty(this, "effects", void 0);
|
|
24
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
25
|
_defineProperty(this, "children", void 0);
|
|
26
|
-
_defineProperty(this, "render", function (value) {
|
|
27
|
-
return /*#__PURE__*/React.createElement(GoodImage, {
|
|
28
|
-
list: value
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
28
|
id: _this.id,
|
|
34
29
|
label: _this.name,
|
|
35
|
-
value:
|
|
30
|
+
value: /*#__PURE__*/React.createElement(GoodImage, {
|
|
31
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
32
|
+
})
|
|
36
33
|
}) : null;
|
|
37
34
|
});
|
|
38
35
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -43,6 +40,13 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
43
40
|
list: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_itemList")]
|
|
44
41
|
});
|
|
45
42
|
});
|
|
43
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
44
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")])) return null;
|
|
45
|
+
return _this.renderPc(undefined, r);
|
|
46
|
+
});
|
|
47
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
48
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_itemList")];
|
|
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) {
|
|
@@ -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 ErpTradeId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -9,16 +9,18 @@ declare class ErpTradeId implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
13
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
14
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
15
|
+
getComponentValue: (r: Record) => any;
|
|
15
16
|
renderExport: (value: any, 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
|
-
filterFn: (value: string) => (i: Record) =>
|
|
23
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
export default ErpTradeId;
|
|
@@ -20,25 +20,29 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
20
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
21
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
22
|
_defineProperty(this, "children", void 0);
|
|
23
|
-
_defineProperty(this, "render", function (value) {
|
|
24
|
-
return /*#__PURE__*/React.createElement("span", null, value);
|
|
25
|
-
});
|
|
26
23
|
_defineProperty(this, "renderClient", function (record) {
|
|
27
24
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
28
25
|
id: _this.id,
|
|
29
26
|
label: _this.name,
|
|
30
|
-
value:
|
|
27
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
31
28
|
}) : null;
|
|
32
29
|
});
|
|
33
30
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
34
31
|
var _record;
|
|
35
32
|
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
33
|
});
|
|
34
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
35
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")])) return null;
|
|
36
|
+
return _this.renderPc(undefined, r);
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
39
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_tradeId")];
|
|
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 : '--';
|
|
40
44
|
});
|
|
41
|
-
_defineProperty(this, "editRender", function (
|
|
45
|
+
_defineProperty(this, "editRender", function () {
|
|
42
46
|
var _this$componentConfig, _this$componentConfig2;
|
|
43
47
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
44
48
|
title: _this.name,
|
|
@@ -50,6 +54,7 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
50
54
|
});
|
|
51
55
|
_defineProperty(this, "filterConfig", function (item) {
|
|
52
56
|
return {
|
|
57
|
+
type: item.type,
|
|
53
58
|
id: item.id,
|
|
54
59
|
// 过滤组件id
|
|
55
60
|
name: item.name,
|
|
@@ -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
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class Express implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
@@ -8,17 +8,19 @@ declare class Express implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
align: ALignType;
|
|
11
|
-
expressDateInstance: ExpressData
|
|
11
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
constructor(options: PickOption);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
17
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
|
+
getComponentValue: (r: Record) => any;
|
|
19
20
|
renderExport: (value: string, record: Record) => any;
|
|
20
|
-
editRender: () => JSX.Element;
|
|
21
|
+
editRender: () => React.JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
23
|
+
type: string;
|
|
22
24
|
id: string;
|
|
23
25
|
name: string;
|
|
24
26
|
filterComponentType: "MultipleSelect";
|
|
@@ -24,24 +24,28 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
24
24
|
_defineProperty(this, "width", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "render", function (value) {
|
|
28
|
-
return /*#__PURE__*/React.createElement("span", null, _this.expressDateInstance.getExpressNameByCode(value) || value);
|
|
29
|
-
});
|
|
30
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
29
|
id: _this.id,
|
|
33
30
|
label: _this.name,
|
|
34
|
-
value: _this.
|
|
31
|
+
value: _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id])
|
|
35
32
|
}) : null;
|
|
36
33
|
});
|
|
37
34
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
38
|
-
if (
|
|
35
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
39
36
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
40
37
|
}
|
|
41
|
-
return /*#__PURE__*/React.createElement("span", null, _this.expressDateInstance.getExpressNameByCode(
|
|
38
|
+
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]));
|
|
39
|
+
});
|
|
40
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
41
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
42
|
+
return _this.renderPc(undefined, r);
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
45
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
42
46
|
});
|
|
43
47
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
44
|
-
return _this.expressDateInstance.getExpressNameByCode(
|
|
48
|
+
return _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id]);
|
|
45
49
|
});
|
|
46
50
|
_defineProperty(this, "editRender", function () {
|
|
47
51
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
@@ -58,6 +62,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
58
62
|
_defineProperty(this, "filterConfig", function (item) {
|
|
59
63
|
var subKey = item.subKey;
|
|
60
64
|
return {
|
|
65
|
+
type: item.type,
|
|
61
66
|
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
62
67
|
name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
|
|
63
68
|
filterComponentType: 'MultipleSelect',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class ExpressCode implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -11,16 +11,18 @@ declare class ExpressCode implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
13
|
constructor(options: PickOption);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
15
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
18
|
+
renderExport: (value: string, record: Record) => any;
|
|
19
|
+
editRender: () => React.JSX.Element;
|
|
19
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
type: string;
|
|
20
22
|
id: string;
|
|
21
23
|
name: string;
|
|
22
24
|
filterComponentType: "Input";
|
|
23
|
-
filterFn: (value: string) => (i: Record) =>
|
|
25
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
24
26
|
};
|
|
25
27
|
}
|
|
26
28
|
export default ExpressCode;
|
|
@@ -5,11 +5,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
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
|
-
import React from
|
|
9
|
-
import { Input } from
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { Input } from "antd";
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull, filterFn as _filterFn } from
|
|
12
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
13
|
var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
14
14
|
var _this = this,
|
|
15
15
|
_this$componentConfig5;
|
|
@@ -23,9 +23,6 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
23
23
|
_defineProperty(this, "width", void 0);
|
|
24
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
25
|
_defineProperty(this, "children", void 0);
|
|
26
|
-
_defineProperty(this, "render", function (value) {
|
|
27
|
-
return /*#__PURE__*/React.createElement("span", null, value);
|
|
28
|
-
});
|
|
29
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
28
|
id: _this.id,
|
|
@@ -34,10 +31,19 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
34
31
|
}) : null;
|
|
35
32
|
});
|
|
36
33
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
37
|
-
|
|
34
|
+
var _record$_this$id;
|
|
35
|
+
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 : "--");
|
|
36
|
+
});
|
|
37
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
38
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
39
|
+
return _this.renderPc(undefined, r);
|
|
40
|
+
});
|
|
41
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
42
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
38
43
|
});
|
|
39
44
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
40
|
-
|
|
45
|
+
var _record$_this$id2;
|
|
46
|
+
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
41
47
|
});
|
|
42
48
|
_defineProperty(this, "editRender", function () {
|
|
43
49
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
@@ -46,15 +52,16 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
46
52
|
name: _this.id,
|
|
47
53
|
rules: _this.rules,
|
|
48
54
|
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,
|
|
49
|
-
component: !((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingle) || ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) ===
|
|
55
|
+
component: !((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingle) || ((_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) === "EXPRESS_WAYBILL_CODE" ? /*#__PURE__*/React.createElement(Input, null) : null
|
|
50
56
|
});
|
|
51
57
|
});
|
|
52
58
|
_defineProperty(this, "filterConfig", function (item) {
|
|
53
59
|
var subKey = item.subKey;
|
|
54
60
|
return {
|
|
61
|
+
type: item.type,
|
|
55
62
|
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
56
63
|
name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
|
|
57
|
-
filterComponentType:
|
|
64
|
+
filterComponentType: "Input",
|
|
58
65
|
filterFn: function filterFn(value) {
|
|
59
66
|
return function (i) {
|
|
60
67
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
|
|
@@ -71,10 +78,10 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
71
78
|
if (/^[0-9a-zA-Z]*$/.test(value)) {
|
|
72
79
|
return Promise.resolve();
|
|
73
80
|
}
|
|
74
|
-
return Promise.reject(new Error(
|
|
81
|
+
return Promise.reject(new Error("只能输入数字和字母"));
|
|
75
82
|
}
|
|
76
83
|
}] : [];
|
|
77
|
-
this.align =
|
|
84
|
+
this.align = "left";
|
|
78
85
|
this.width = 200;
|
|
79
86
|
this.isCombinationComponent = false;
|
|
80
87
|
this.children = [];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ExpressCompany: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ExpressCompany: (props: any) => React.JSX.Element;
|
|
3
3
|
export default ExpressCompany;
|
|
@@ -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 WorkOrderId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -11,13 +11,15 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
13
|
constructor(options: PickOption);
|
|
14
|
-
renderMenu: (record: Record) => JSX.Element;
|
|
15
|
-
renderPc: (value: any, record: Record) => JSX.Element;
|
|
14
|
+
renderMenu: (record: Record) => React.JSX.Element;
|
|
15
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
16
18
|
renderExport: (value: any, record: Record) => any;
|
|
17
|
-
render: () => null;
|
|
18
19
|
renderClient: () => null;
|
|
19
|
-
editRender: () => JSX.Element;
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
type: string;
|
|
21
23
|
id: string;
|
|
22
24
|
name: string;
|
|
23
25
|
filterComponentType: "MultipleSelect";
|
|
@@ -52,13 +52,19 @@ 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
|
+
});
|
|
60
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
61
|
+
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
62
|
+
return status;
|
|
63
|
+
});
|
|
55
64
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
56
65
|
var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
57
66
|
return status ? status === null || status === void 0 ? void 0 : status.label : '--';
|
|
58
67
|
});
|
|
59
|
-
_defineProperty(this, "render", function () {
|
|
60
|
-
return null;
|
|
61
|
-
});
|
|
62
68
|
_defineProperty(this, "renderClient", function () {
|
|
63
69
|
return null;
|
|
64
70
|
});
|
|
@@ -78,6 +84,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
78
84
|
_defineProperty(this, "filterConfig", function (item) {
|
|
79
85
|
var _Object$keys;
|
|
80
86
|
return {
|
|
87
|
+
type: item.type,
|
|
81
88
|
id: item.id,
|
|
82
89
|
// 过滤组件id
|
|
83
90
|
name: item.name,
|
|
@@ -100,6 +107,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
100
107
|
this.id = options.id;
|
|
101
108
|
this.type = options.type;
|
|
102
109
|
this.componentConfig = options.componentConfig;
|
|
110
|
+
this.effects = options.effects;
|
|
103
111
|
this.rules = [];
|
|
104
112
|
this.isCombinationComponent = false;
|
|
105
113
|
this.children = [];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
declare type GetFormItemProps = {
|
|
3
3
|
rules: any[];
|
|
4
4
|
required: boolean;
|
|
5
|
-
title: string;
|
|
5
|
+
title: string | JSX.Element;
|
|
6
6
|
name: string;
|
|
7
7
|
component: JSX.Element | null;
|
|
8
8
|
};
|
|
9
|
-
declare const GetFormItem: ({ rules, required, title, component, name }: GetFormItemProps) => JSX.Element;
|
|
9
|
+
declare const GetFormItem: ({ rules, required, title, component, name, }: GetFormItemProps) => React.JSX.Element;
|
|
10
10
|
export default GetFormItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Form } from
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Form } from "antd";
|
|
3
3
|
var GetFormItem = function GetFormItem(_ref) {
|
|
4
4
|
var rules = _ref.rules,
|
|
5
5
|
required = _ref.required,
|
|
@@ -16,7 +16,7 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
16
16
|
return /*#__PURE__*/React.createElement("div", {
|
|
17
17
|
className: "form-item--wrap",
|
|
18
18
|
style: {
|
|
19
|
-
position:
|
|
19
|
+
position: "relative"
|
|
20
20
|
}
|
|
21
21
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
22
22
|
name: name,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class BasicGrade implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -9,11 +9,12 @@ declare class BasicGrade implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
13
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
14
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
15
|
+
getComponentValue: (r: Record) => any;
|
|
15
16
|
renderExport: (value: any, record: Record) => any;
|
|
16
|
-
editRender: () => JSX.Element;
|
|
17
|
+
editRender: () => React.JSX.Element;
|
|
17
18
|
filterConfig: () => never[];
|
|
18
19
|
}
|
|
19
20
|
export default BasicGrade;
|
|
@@ -20,20 +20,24 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
|
|
|
20
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
21
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
22
|
_defineProperty(this, "children", void 0);
|
|
23
|
-
_defineProperty(this, "render", function (value) {
|
|
24
|
-
return /*#__PURE__*/React.createElement("span", null, value);
|
|
25
|
-
});
|
|
26
23
|
_defineProperty(this, "renderClient", function (record) {
|
|
27
24
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
28
25
|
id: _this.id,
|
|
29
26
|
label: _this.name,
|
|
30
|
-
value:
|
|
27
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
31
28
|
}) : null;
|
|
32
29
|
});
|
|
33
30
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
34
31
|
var _record;
|
|
35
32
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicGrade")]) !== null && _record !== void 0 ? _record : '--');
|
|
36
33
|
});
|
|
34
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
35
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicGrade")])) return null;
|
|
36
|
+
return _this.renderPc(undefined, r);
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
39
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicGrade")];
|
|
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, "_basicGrade")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ComponentInterface, ColumnConfig, Record, PickOption } from '../../type';
|
|
3
3
|
declare class Handler implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
@@ -9,16 +9,16 @@ declare class Handler implements ComponentInterface {
|
|
|
9
9
|
isCombinationComponent: boolean;
|
|
10
10
|
children: ComponentInterface[];
|
|
11
11
|
constructor(options: PickOption);
|
|
12
|
-
renderPc: (
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
renderPc: (v: unknown, record: Record) => React.JSX.Element;
|
|
13
|
+
renderLog: () => null;
|
|
14
|
+
getComponentValue: (r: Record) => any;
|
|
15
15
|
renderExport: (value: {
|
|
16
16
|
account: string;
|
|
17
17
|
}[], record: Record) => string;
|
|
18
|
-
render: () => null;
|
|
19
18
|
renderClient: () => null;
|
|
20
19
|
editRender: () => null;
|
|
21
20
|
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
type: string;
|
|
22
22
|
id: string;
|
|
23
23
|
name: string;
|
|
24
24
|
filterComponentType: "MultipleSelect";
|
|
@@ -6,6 +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 intersection from 'lodash/intersection';
|
|
9
10
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
11
|
var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
11
12
|
var _this = this;
|
|
@@ -17,20 +18,25 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
17
18
|
_defineProperty(this, "effects", void 0);
|
|
18
19
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
19
20
|
_defineProperty(this, "children", void 0);
|
|
20
|
-
_defineProperty(this, "renderPc", function (
|
|
21
|
+
_defineProperty(this, "renderPc", function (v, record) {
|
|
21
22
|
var _value$map$join, _value$map;
|
|
23
|
+
var value = record === null || record === void 0 ? void 0 : record[_this.id];
|
|
22
24
|
return /*#__PURE__*/React.createElement("span", null, (_value$map$join = value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
23
25
|
return item.account;
|
|
24
26
|
})) === null || _value$map === void 0 ? void 0 : _value$map.join('、')) !== null && _value$map$join !== void 0 ? _value$map$join : '--');
|
|
25
27
|
});
|
|
28
|
+
_defineProperty(this, "renderLog", function () {
|
|
29
|
+
return null;
|
|
30
|
+
});
|
|
31
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
32
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
33
|
+
});
|
|
26
34
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
27
|
-
var
|
|
28
|
-
|
|
35
|
+
var _values$map$join, _values$map;
|
|
36
|
+
var values = record === null || record === void 0 ? void 0 : record[_this.id];
|
|
37
|
+
return (_values$map$join = values === null || values === void 0 ? void 0 : (_values$map = values.map(function (item) {
|
|
29
38
|
return item.account;
|
|
30
|
-
})) === null ||
|
|
31
|
-
});
|
|
32
|
-
_defineProperty(this, "render", function () {
|
|
33
|
-
return null;
|
|
39
|
+
})) === null || _values$map === void 0 ? void 0 : _values$map.join('、')) !== null && _values$map$join !== void 0 ? _values$map$join : '--';
|
|
34
40
|
});
|
|
35
41
|
_defineProperty(this, "renderClient", function () {
|
|
36
42
|
return null;
|
|
@@ -41,6 +47,7 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
41
47
|
_defineProperty(this, "filterConfig", function (item) {
|
|
42
48
|
var _this$effects;
|
|
43
49
|
return {
|
|
50
|
+
type: item.type,
|
|
44
51
|
id: item.id,
|
|
45
52
|
// 过滤组件id
|
|
46
53
|
name: item.name,
|
|
@@ -49,7 +56,10 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
49
56
|
options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || [],
|
|
50
57
|
filterFn: function filterFn(value) {
|
|
51
58
|
return function (i) {
|
|
52
|
-
|
|
59
|
+
var _ref;
|
|
60
|
+
return intersection(value, (_ref = _filterFn.filterTableListItemColumnValue(i, item.id) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (item) {
|
|
61
|
+
return item === null || item === void 0 ? void 0 : item.account;
|
|
62
|
+
})).length > 0;
|
|
53
63
|
};
|
|
54
64
|
}
|
|
55
65
|
};
|