@kmkf-fe-packages/services-components 0.6.3 → 0.7.1-alpha.0
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 +1 -1
- package/dist/esm/commonComponents/OperationLog/index.d.ts +8 -0
- package/dist/esm/commonComponents/OperationLog/index.js +127 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +7 -0
- package/dist/esm/commonComponents/PlatformAvatar/index.js +28 -0
- 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 +13 -0
- package/dist/esm/commonComponents/ShopList/index.js +34 -0
- package/dist/esm/components/ActualPayment/index.d.ts +12 -13
- package/dist/esm/components/ActualPayment/index.js +28 -26
- package/dist/esm/components/Address/index.d.ts +9 -16
- package/dist/esm/components/Address/index.js +17 -26
- package/dist/esm/components/Alipay/index.d.ts +15 -19
- package/dist/esm/components/Alipay/index.js +15 -20
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -15
- package/dist/esm/components/AlipayAccount/index.js +29 -28
- package/dist/esm/components/AlipayName/index.d.ts +13 -15
- package/dist/esm/components/AlipayName/index.js +29 -28
- package/dist/esm/components/BuyerNick/index.d.ts +14 -15
- package/dist/esm/components/BuyerNick/index.js +41 -28
- package/dist/esm/components/Cascader/index.d.ts +13 -25
- package/dist/esm/components/Cascader/index.js +38 -31
- package/dist/esm/components/Checkbox/index.d.ts +15 -11
- package/dist/esm/components/Checkbox/index.js +45 -26
- package/dist/esm/components/CommonDataTime/index.d.ts +11 -11
- package/dist/esm/components/CommonDataTime/index.js +27 -24
- package/dist/esm/components/CompletedUser/index.d.ts +30 -0
- package/dist/esm/components/CompletedUser/index.js +64 -0
- package/dist/esm/components/DataTime/index.d.ts +12 -11
- package/dist/esm/components/DataTime/index.js +30 -26
- package/dist/esm/components/EItemEnCode/index.d.ts +11 -11
- package/dist/esm/components/EItemEnCode/index.js +34 -27
- package/dist/esm/components/EItemId/index.d.ts +11 -11
- package/dist/esm/components/EItemId/index.js +34 -27
- package/dist/esm/components/EItemSelect/index.d.ts +6 -12
- package/dist/esm/components/EItemSelect/index.js +16 -24
- package/dist/esm/components/ErpTradeId/index.d.ts +12 -13
- package/dist/esm/components/ErpTradeId/index.js +28 -26
- package/dist/esm/components/Express/index.d.ts +15 -17
- package/dist/esm/components/Express/index.js +30 -36
- package/dist/esm/components/ExpressCode/index.d.ts +16 -18
- package/dist/esm/components/ExpressCode/index.js +34 -32
- package/dist/esm/components/FlowStatusSelect/index.d.ts +16 -34
- package/dist/esm/components/FlowStatusSelect/index.js +38 -25
- 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 -12
- package/dist/esm/components/Grade/index.js +14 -23
- package/dist/esm/components/Handler/index.d.ts +32 -0
- package/dist/esm/components/Handler/index.js +74 -0
- package/dist/esm/components/Input/index.d.ts +11 -12
- package/dist/esm/components/Input/index.js +29 -28
- package/dist/esm/components/JstItemSelect/index.d.ts +13 -13
- package/dist/esm/components/JstItemSelect/index.js +48 -28
- package/dist/esm/components/JstLogistics/index.d.ts +21 -13
- package/dist/esm/components/JstLogistics/index.js +50 -29
- package/dist/esm/components/JstSendGood/index.d.ts +12 -12
- package/dist/esm/components/JstSendGood/index.js +54 -29
- package/dist/esm/components/JstSupply/index.d.ts +12 -12
- package/dist/esm/components/JstSupply/index.js +54 -29
- package/dist/esm/components/Logistics/index.d.ts +23 -27
- package/dist/esm/components/Logistics/index.js +19 -20
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +33 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +134 -0
- 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 +36 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +84 -0
- 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 +75 -0
- package/dist/esm/components/LogisticsInterception/index.js +136 -0
- 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 +12 -12
- package/dist/esm/components/MultSelect/index.js +31 -24
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +11 -22
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -32
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +11 -22
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +25 -31
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +11 -17
- package/dist/esm/components/Ordinary/OrdinarySerial.js +26 -22
- package/dist/esm/components/Ordinary/index.d.ts +17 -24
- package/dist/esm/components/Ordinary/index.js +20 -12
- package/dist/esm/components/Payment/AlipayNick.d.ts +11 -22
- package/dist/esm/components/Payment/AlipayNick.js +29 -34
- package/dist/esm/components/Payment/AlipayNo.d.ts +11 -21
- package/dist/esm/components/Payment/AlipayNo.js +29 -34
- package/dist/esm/components/Payment/AlipayTime.d.ts +11 -23
- package/dist/esm/components/Payment/AlipayTime.js +26 -35
- package/dist/esm/components/Payment/BuyerNick.d.ts +11 -22
- package/dist/esm/components/Payment/BuyerNick.js +26 -32
- package/dist/esm/components/Payment/PaymentAmount.d.ts +11 -22
- package/dist/esm/components/Payment/PaymentAmount.js +24 -30
- package/dist/esm/components/Payment/PaymentStatus.d.ts +17 -29
- package/dist/esm/components/Payment/PaymentStatus.js +48 -41
- package/dist/esm/components/Payment/PaymentTid.d.ts +11 -22
- package/dist/esm/components/Payment/PaymentTid.js +24 -30
- package/dist/esm/components/Payment/index.d.ts +36 -97
- package/dist/esm/components/Payment/index.js +22 -20
- package/dist/esm/components/Picture/index.d.ts +11 -11
- package/dist/esm/components/Picture/index.js +14 -19
- package/dist/esm/components/PlatForm/index.d.ts +31 -0
- package/dist/esm/components/PlatForm/index.js +67 -0
- package/dist/esm/components/Radio/index.d.ts +15 -10
- package/dist/esm/components/Radio/index.js +34 -20
- package/dist/esm/components/Rate/index.d.ts +6 -11
- package/dist/esm/components/Rate/index.js +17 -30
- package/dist/esm/components/ReceiverAddress/index.d.ts +11 -14
- package/dist/esm/components/ReceiverAddress/index.js +22 -29
- package/dist/esm/components/ReceiverMobile/index.d.ts +11 -12
- package/dist/esm/components/ReceiverMobile/index.js +29 -27
- package/dist/esm/components/ReceiverName/index.d.ts +11 -12
- package/dist/esm/components/ReceiverName/index.js +29 -27
- package/dist/esm/components/Remark/index.d.ts +14 -11
- package/dist/esm/components/Remark/index.js +31 -23
- package/dist/esm/components/ReturnLogistics/index.d.ts +26 -25
- package/dist/esm/components/ReturnLogistics/index.js +19 -10
- package/dist/esm/components/Select/index.d.ts +12 -11
- package/dist/esm/components/Select/index.js +28 -23
- package/dist/esm/components/ShopInput/index.d.ts +28 -0
- package/dist/esm/components/ShopInput/index.js +76 -0
- package/dist/esm/components/ShopName/index.d.ts +12 -13
- package/dist/esm/components/ShopName/index.js +28 -25
- package/dist/esm/components/Submitter/index.d.ts +30 -0
- package/dist/esm/components/Submitter/index.js +64 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +13 -14
- package/dist/esm/components/SystemOrderNo/index.js +27 -25
- package/dist/esm/components/TemplateSelect/index.d.ts +13 -13
- package/dist/esm/components/TemplateSelect/index.js +29 -24
- package/dist/esm/components/TextArea/index.d.ts +11 -11
- package/dist/esm/components/TextArea/index.js +27 -24
- package/dist/esm/components/ThirdItemSelect/index.d.ts +11 -11
- package/dist/esm/components/ThirdItemSelect/index.js +36 -28
- package/dist/esm/components/TradeDateTime/index.d.ts +13 -5
- package/dist/esm/components/TradeDateTime/index.js +52 -17
- package/dist/esm/components/TradeId/index.d.ts +11 -6
- package/dist/esm/components/TradeId/index.js +27 -14
- package/dist/esm/components/WorkOrderId/index.d.ts +11 -12
- package/dist/esm/components/WorkOrderId/index.js +36 -29
- package/dist/esm/factory.d.ts +3 -0
- package/dist/esm/factory.js +105 -0
- package/dist/esm/index.d.ts +52 -40
- package/dist/esm/index.js +13 -1
- package/dist/esm/type.d.ts +53 -45
- package/package.json +10 -5
|
@@ -1,40 +1,29 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class OrdinaryMoney implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
15
10
|
align: ALignType;
|
|
16
11
|
width: number;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
17
14
|
constructor(options: PickOption);
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
renderPc: (value: unknown, r: Record) => any;
|
|
16
|
+
renderLog: (r: Record) => any;
|
|
17
|
+
getComponentValue: (r: Record) => any;
|
|
20
18
|
renderExport: (value: any) => any;
|
|
21
19
|
renderClient: (record: any) => JSX.Element | null;
|
|
22
20
|
editRender: () => JSX.Element;
|
|
23
|
-
|
|
24
|
-
title: string;
|
|
25
|
-
align: ALignType;
|
|
26
|
-
dataIndex: string;
|
|
27
|
-
dataType: DataType;
|
|
28
|
-
canHidden: boolean;
|
|
29
|
-
canFilter: boolean;
|
|
30
|
-
canGroup: boolean;
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
31
22
|
type: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
renderExport: (value: any) => any;
|
|
37
|
-
width: number;
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
filterComponentType: "Input";
|
|
26
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
27
|
};
|
|
39
28
|
}
|
|
40
29
|
export default OrdinaryMoney;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import GetFormItem from "../GetFormItem";
|
|
10
10
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, OrdinaryMoney);
|
|
@@ -17,20 +17,22 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
17
17
|
_defineProperty(this, "id", void 0);
|
|
18
18
|
_defineProperty(this, "type", void 0);
|
|
19
19
|
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "canFilter", void 0);
|
|
21
|
-
_defineProperty(this, "canGroup", void 0);
|
|
22
|
-
_defineProperty(this, "canHidden", void 0);
|
|
23
|
-
_defineProperty(this, "dataType", void 0);
|
|
24
|
-
_defineProperty(this, "showContains", void 0);
|
|
25
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
21
|
_defineProperty(this, "effects", void 0);
|
|
27
22
|
_defineProperty(this, "align", void 0);
|
|
28
23
|
_defineProperty(this, "width", void 0);
|
|
29
|
-
_defineProperty(this, "
|
|
30
|
-
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
26
|
+
_defineProperty(this, "renderPc", function (value, r) {
|
|
27
|
+
var _r;
|
|
28
|
+
return (_r = r === null || r === void 0 ? void 0 : r["".concat(_this.id)]) !== null && _r !== void 0 ? _r : '--';
|
|
31
29
|
});
|
|
32
|
-
_defineProperty(this, "
|
|
33
|
-
|
|
30
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
31
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_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["".concat(_this.id)];
|
|
34
36
|
});
|
|
35
37
|
_defineProperty(this, "renderExport", function (value) {
|
|
36
38
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -39,7 +41,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
39
41
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
40
42
|
id: _this.id,
|
|
41
43
|
label: _this.name,
|
|
42
|
-
value:
|
|
44
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
43
45
|
}) : null;
|
|
44
46
|
});
|
|
45
47
|
_defineProperty(this, "editRender", function () {
|
|
@@ -52,32 +54,22 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
52
54
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
53
55
|
});
|
|
54
56
|
});
|
|
55
|
-
_defineProperty(this, "
|
|
57
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
56
58
|
return {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
renderPc: _this.renderPc,
|
|
67
|
-
componentType: _this.editRender,
|
|
68
|
-
showContains: _this.showContains,
|
|
69
|
-
renderExport: _this.renderExport,
|
|
70
|
-
width: _this.width
|
|
59
|
+
type: item.type,
|
|
60
|
+
id: "".concat(item.id, "_ordinaryTaitou"),
|
|
61
|
+
name: "".concat(item.name, "-\u53D1\u7968\u62AC\u5934"),
|
|
62
|
+
filterComponentType: 'Input',
|
|
63
|
+
filterFn: function filterFn(value) {
|
|
64
|
+
return function (i) {
|
|
65
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinaryTaitou')).includes(value);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
71
68
|
};
|
|
72
69
|
});
|
|
73
70
|
this.name = '开票金额';
|
|
74
71
|
this.id = "".concat(options.id, "_ordinaryMoney");
|
|
75
72
|
this.type = options.type;
|
|
76
|
-
this.canFilter = true;
|
|
77
|
-
this.canGroup = true;
|
|
78
|
-
this.canHidden = false;
|
|
79
|
-
this.showContains = false;
|
|
80
|
-
this.dataType = 'number';
|
|
81
73
|
this.componentConfig = options.componentConfig;
|
|
82
74
|
this.rules = [{
|
|
83
75
|
validator: function validator(_, value) {
|
|
@@ -90,5 +82,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
90
82
|
this.align = 'left';
|
|
91
83
|
this.effects = options.effects;
|
|
92
84
|
this.width = 200;
|
|
85
|
+
this.isCombinationComponent = false;
|
|
86
|
+
this.children = [];
|
|
93
87
|
});
|
|
94
88
|
export default OrdinaryMoney;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType, ALignType } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType, Record, ColumnConfig } from '../../type';
|
|
3
3
|
declare class OrdinarySerial implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -14,27 +14,21 @@ declare class OrdinarySerial implements ComponentInterface {
|
|
|
14
14
|
effects: ComponentInterface["effects"];
|
|
15
15
|
align: ALignType;
|
|
16
16
|
width: number;
|
|
17
|
+
isCombinationComponent: boolean;
|
|
18
|
+
children: ComponentInterface[];
|
|
17
19
|
constructor(options: PickOption);
|
|
18
|
-
render: (value: string) => JSX.Element;
|
|
19
20
|
renderClient: (record: any) => JSX.Element | null;
|
|
20
|
-
renderPc: (value:
|
|
21
|
+
renderPc: (value: unknown, r: Record) => any;
|
|
22
|
+
renderLog: (r: Record) => any;
|
|
23
|
+
getComponentValue: (r: Record) => any;
|
|
21
24
|
renderExport: (value: any) => any;
|
|
22
25
|
editRender: () => JSX.Element;
|
|
23
|
-
|
|
24
|
-
title: string;
|
|
25
|
-
align: ALignType;
|
|
26
|
-
dataIndex: string;
|
|
27
|
-
dataType: DataType;
|
|
28
|
-
canHidden: boolean;
|
|
29
|
-
canFilter: boolean;
|
|
30
|
-
canGroup: boolean;
|
|
26
|
+
filterConfig: (item: ColumnConfig) => {
|
|
31
27
|
type: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
renderExport: (value: any) => any;
|
|
37
|
-
width: number;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
filterComponentType: "Input";
|
|
31
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
32
|
};
|
|
39
33
|
}
|
|
40
34
|
export default OrdinarySerial;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import GetFormItem from "../GetFormItem";
|
|
10
10
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, OrdinarySerial);
|
|
@@ -26,18 +26,25 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
26
26
|
_defineProperty(this, "effects", void 0);
|
|
27
27
|
_defineProperty(this, "align", void 0);
|
|
28
28
|
_defineProperty(this, "width", void 0);
|
|
29
|
-
_defineProperty(this, "
|
|
30
|
-
|
|
31
|
-
});
|
|
29
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "children", void 0);
|
|
32
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
33
|
id: _this.id,
|
|
35
34
|
label: _this.name,
|
|
36
|
-
value:
|
|
35
|
+
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
37
36
|
}) : null;
|
|
38
37
|
});
|
|
39
|
-
_defineProperty(this, "renderPc", function (value) {
|
|
40
|
-
|
|
38
|
+
_defineProperty(this, "renderPc", function (value, r) {
|
|
39
|
+
var _r;
|
|
40
|
+
return (_r = r === null || r === void 0 ? void 0 : r["".concat(_this.id)]) !== null && _r !== void 0 ? _r : '--';
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
43
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
|
|
44
|
+
return _this.renderPc(undefined, r);
|
|
45
|
+
});
|
|
46
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
47
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
|
|
41
48
|
});
|
|
42
49
|
_defineProperty(this, "renderExport", function (value) {
|
|
43
50
|
return value !== null && value !== void 0 ? value : '--';
|
|
@@ -52,22 +59,17 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
52
59
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
53
60
|
});
|
|
54
61
|
});
|
|
55
|
-
_defineProperty(this, "
|
|
62
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
56
63
|
return {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
renderPc: _this.renderPc,
|
|
67
|
-
componentType: _this.editRender,
|
|
68
|
-
showContains: _this.showContains,
|
|
69
|
-
renderExport: _this.renderExport,
|
|
70
|
-
width: _this.width
|
|
64
|
+
type: item.type,
|
|
65
|
+
id: "".concat(item.id, "_ordinarySerial"),
|
|
66
|
+
name: "".concat(item.name, "-\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7"),
|
|
67
|
+
filterComponentType: 'Input',
|
|
68
|
+
filterFn: function filterFn(value) {
|
|
69
|
+
return function (i) {
|
|
70
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'ordinarySerial')).includes(value);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
71
73
|
};
|
|
72
74
|
});
|
|
73
75
|
this.name = '纳税人识别号';
|
|
@@ -83,5 +85,7 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
83
85
|
this.align = 'left';
|
|
84
86
|
this.effects = options.effects;
|
|
85
87
|
this.width = 200;
|
|
88
|
+
this.isCombinationComponent = false;
|
|
89
|
+
this.children = [];
|
|
86
90
|
});
|
|
87
91
|
export default OrdinarySerial;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, DataType } 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';
|
|
@@ -17,32 +17,25 @@ declare class Ordinary implements ComponentInterface {
|
|
|
17
17
|
ordinaryMoney: OrdinaryMoney;
|
|
18
18
|
ordinaryHeader: OrdinaryHeader;
|
|
19
19
|
ordinarySerial: OrdinarySerial;
|
|
20
|
+
isCombinationComponent: boolean;
|
|
21
|
+
children: ComponentInterface[];
|
|
20
22
|
constructor(options: PickOption);
|
|
21
|
-
|
|
22
|
-
editRender: (value: any) => JSX.Element;
|
|
23
|
+
editRender: () => JSX.Element;
|
|
23
24
|
renderPc: () => null;
|
|
25
|
+
renderLog: (r: Record) => JSX.Element;
|
|
26
|
+
getComponentValue: (r: Record) => {
|
|
27
|
+
ordinaryMoney: any;
|
|
28
|
+
ordinarySerial: any;
|
|
29
|
+
ordinaryTaitou: any;
|
|
30
|
+
};
|
|
24
31
|
renderExport: () => null;
|
|
25
32
|
renderClient: (record: any) => JSX.Element;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
canHidden: boolean;
|
|
34
|
-
canFilter: boolean;
|
|
35
|
-
canGroup: boolean;
|
|
36
|
-
type: string;
|
|
37
|
-
render: (value: any) => any;
|
|
38
|
-
renderPc: (value: any) => any;
|
|
39
|
-
componentType: () => JSX.Element;
|
|
40
|
-
showContains: boolean;
|
|
41
|
-
renderExport: (value: any) => any;
|
|
42
|
-
width: number;
|
|
43
|
-
}[];
|
|
44
|
-
canHidden: boolean;
|
|
45
|
-
dataIndex: string;
|
|
46
|
-
};
|
|
33
|
+
filterConfig: (item: ColumnConfig) => {
|
|
34
|
+
type: string;
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
filterComponentType: "Input";
|
|
38
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
39
|
+
}[];
|
|
47
40
|
}
|
|
48
41
|
export default Ordinary;
|
|
@@ -1,4 +1,6 @@
|
|
|
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2
4
|
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); } }
|
|
3
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
6
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -28,10 +30,9 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
|
|
|
28
30
|
_defineProperty(this, "ordinaryMoney", void 0);
|
|
29
31
|
_defineProperty(this, "ordinaryHeader", void 0);
|
|
30
32
|
_defineProperty(this, "ordinarySerial", void 0);
|
|
31
|
-
_defineProperty(this, "
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
_defineProperty(this, "editRender", function (value) {
|
|
33
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
|
+
_defineProperty(this, "children", void 0);
|
|
35
|
+
_defineProperty(this, "editRender", function () {
|
|
35
36
|
var _this$componentConfig, _this$componentConfig2;
|
|
36
37
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
37
38
|
title: _this.name,
|
|
@@ -44,19 +45,24 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
|
|
|
44
45
|
_defineProperty(this, "renderPc", function () {
|
|
45
46
|
return null;
|
|
46
47
|
});
|
|
48
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
49
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.ordinaryHeader.name, ": ", _this.ordinaryHeader.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.ordinaryMoney.name, ": ", _this.ordinaryMoney.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.ordinarySerial.name, ": ", _this.ordinarySerial.renderLog(r)));
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
52
|
+
return {
|
|
53
|
+
ordinaryMoney: _this.ordinaryMoney.getComponentValue(r),
|
|
54
|
+
ordinarySerial: _this.ordinarySerial.getComponentValue(r),
|
|
55
|
+
ordinaryTaitou: _this.ordinaryHeader.getComponentValue(r)
|
|
56
|
+
};
|
|
57
|
+
});
|
|
47
58
|
_defineProperty(this, "renderExport", function () {
|
|
48
59
|
return null;
|
|
49
60
|
});
|
|
50
61
|
_defineProperty(this, "renderClient", function (record) {
|
|
51
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.
|
|
62
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.ordinaryHeader.renderClient(record), _this.ordinaryMoney.renderClient(record), _this.ordinarySerial.renderClient(record));
|
|
52
63
|
});
|
|
53
|
-
_defineProperty(this, "
|
|
54
|
-
return {
|
|
55
|
-
title: _this.name,
|
|
56
|
-
children: [_this.ordinaryMoney.getColumns(), _this.ordinaryHeader.getColumns(), _this.ordinarySerial.getColumns()],
|
|
57
|
-
canHidden: _this.canHidden,
|
|
58
|
-
dataIndex: _this.id
|
|
59
|
-
};
|
|
64
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
65
|
+
return [_this.ordinaryMoney.filterConfig(_objectSpread({}, item)), _this.ordinaryHeader.filterConfig(_objectSpread({}, item)), _this.ordinarySerial.filterConfig(_objectSpread({}, item))];
|
|
60
66
|
});
|
|
61
67
|
this.name = options.name;
|
|
62
68
|
this.id = options.id;
|
|
@@ -70,6 +76,8 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
|
|
|
70
76
|
this.ordinaryMoney = new OrdinaryMoney(options);
|
|
71
77
|
this.ordinaryHeader = new OrdinaryHeader(options);
|
|
72
78
|
this.ordinarySerial = new OrdinarySerial(options);
|
|
79
|
+
this.isCombinationComponent = true;
|
|
80
|
+
this.children = [this.ordinaryHeader, this.ordinaryMoney, this.ordinarySerial];
|
|
73
81
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
74
82
|
validator: function validator(_, value) {
|
|
75
83
|
if (!(value !== null && value !== void 0 && value.ordinaryMoney)) {
|
|
@@ -1,40 +1,29 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class PaymentTid implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
15
10
|
align: ALignType;
|
|
16
11
|
width: number;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
17
14
|
constructor(options: PickOption);
|
|
18
|
-
render: (value: any, record: Record) => JSX.Element;
|
|
19
15
|
renderClient: (record: any) => JSX.Element | null;
|
|
20
|
-
renderPc: (value:
|
|
16
|
+
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
21
19
|
renderExport: (value: any, record: Record) => any;
|
|
22
20
|
editRender: () => JSX.Element;
|
|
23
|
-
|
|
24
|
-
title: string;
|
|
25
|
-
align: ALignType;
|
|
26
|
-
dataIndex: string;
|
|
27
|
-
dataType: DataType;
|
|
28
|
-
canHidden: boolean;
|
|
29
|
-
canFilter: boolean;
|
|
30
|
-
canGroup: boolean;
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
31
22
|
type: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
showContains: boolean;
|
|
37
|
-
renderExport: (value: any, record: Record) => any;
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
filterComponentType: "Input";
|
|
26
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
27
|
};
|
|
39
28
|
}
|
|
40
29
|
export default PaymentTid;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, PaymentTid);
|
|
@@ -17,18 +17,12 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
17
17
|
_defineProperty(this, "id", void 0);
|
|
18
18
|
_defineProperty(this, "type", void 0);
|
|
19
19
|
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "canFilter", void 0);
|
|
21
|
-
_defineProperty(this, "canGroup", void 0);
|
|
22
|
-
_defineProperty(this, "canHidden", void 0);
|
|
23
|
-
_defineProperty(this, "dataType", void 0);
|
|
24
|
-
_defineProperty(this, "showContains", void 0);
|
|
25
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
21
|
_defineProperty(this, "effects", void 0);
|
|
27
22
|
_defineProperty(this, "align", void 0);
|
|
28
23
|
_defineProperty(this, "width", void 0);
|
|
29
|
-
_defineProperty(this, "
|
|
30
|
-
|
|
31
|
-
});
|
|
24
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "children", void 0);
|
|
32
26
|
_defineProperty(this, "renderClient", function (record) {
|
|
33
27
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
34
28
|
id: _this.id,
|
|
@@ -37,19 +31,27 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
37
31
|
}) : null;
|
|
38
32
|
});
|
|
39
33
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
40
|
-
if (
|
|
34
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
41
35
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
42
36
|
}
|
|
43
37
|
return /*#__PURE__*/React.createElement("span", {
|
|
44
38
|
className: "pointer",
|
|
45
39
|
onClick: function onClick() {
|
|
46
|
-
var _this$effects;
|
|
47
|
-
|
|
40
|
+
var _this$effects, _this$effects2;
|
|
41
|
+
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));
|
|
48
42
|
}
|
|
49
|
-
},
|
|
43
|
+
}, record === null || record === void 0 ? void 0 : record[_this.id]);
|
|
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)];
|
|
50
51
|
});
|
|
51
52
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
|
-
|
|
53
|
+
var _record$_this$id;
|
|
54
|
+
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
|
|
53
55
|
});
|
|
54
56
|
_defineProperty(this, "editRender", function () {
|
|
55
57
|
var _this$componentConfig, _this$componentConfig2;
|
|
@@ -61,35 +63,28 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
61
63
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
62
64
|
});
|
|
63
65
|
});
|
|
64
|
-
_defineProperty(this, "
|
|
66
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
65
67
|
return {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
render: _this.renderPc,
|
|
76
|
-
renderPc: _this.renderPc,
|
|
77
|
-
componentType: _this.editRender,
|
|
78
|
-
showContains: _this.showContains,
|
|
79
|
-
renderExport: _this.renderExport
|
|
68
|
+
type: item.type,
|
|
69
|
+
id: "".concat(item.id, "_enterprisePaymentAlipayNick"),
|
|
70
|
+
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u59D3\u540D"),
|
|
71
|
+
filterComponentType: 'Input',
|
|
72
|
+
filterFn: function filterFn(value) {
|
|
73
|
+
return function (i) {
|
|
74
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'enterprisePaymentAlipayNick')).includes(value);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
80
77
|
};
|
|
81
78
|
});
|
|
82
79
|
this.name = '支付宝姓名';
|
|
83
80
|
this.id = "".concat(options.id, "_enterprisePaymentAlipayNick");
|
|
84
81
|
this.type = options.type;
|
|
85
|
-
this.canFilter = true;
|
|
86
|
-
this.canGroup = true;
|
|
87
|
-
this.canHidden = false;
|
|
88
|
-
this.showContains = false;
|
|
89
|
-
this.dataType = 'string';
|
|
90
82
|
this.componentConfig = options.componentConfig;
|
|
83
|
+
this.effects = options.effects;
|
|
91
84
|
this.rules = [];
|
|
92
85
|
this.align = 'left';
|
|
93
86
|
this.width = 200;
|
|
87
|
+
this.isCombinationComponent = false;
|
|
88
|
+
this.children = [];
|
|
94
89
|
});
|
|
95
90
|
export default PaymentTid;
|
|
@@ -1,39 +1,29 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class AlipayNo implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
rules: any[];
|
|
8
|
-
canFilter: boolean;
|
|
9
|
-
canGroup: boolean;
|
|
10
|
-
canHidden: boolean;
|
|
11
|
-
dataType: DataType;
|
|
12
|
-
showContains: boolean;
|
|
13
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
9
|
effects: ComponentInterface["effects"];
|
|
15
10
|
align: ALignType;
|
|
16
11
|
width: number;
|
|
12
|
+
isCombinationComponent: boolean;
|
|
13
|
+
children: ComponentInterface[];
|
|
17
14
|
constructor(options: PickOption);
|
|
18
|
-
render: (value: string) => JSX.Element;
|
|
19
15
|
renderClient: (record: any) => JSX.Element | null;
|
|
20
|
-
renderPc: (value:
|
|
16
|
+
renderPc: (value: unknown, record: any) => JSX.Element;
|
|
17
|
+
renderLog: (r: Record) => JSX.Element | null;
|
|
18
|
+
getComponentValue: (r: Record) => any;
|
|
21
19
|
renderExport: (value: any, record: Record) => any;
|
|
22
20
|
editRender: () => JSX.Element;
|
|
23
|
-
|
|
24
|
-
title: string;
|
|
25
|
-
align: ALignType;
|
|
26
|
-
dataIndex: string;
|
|
27
|
-
width: number;
|
|
28
|
-
dataType: DataType;
|
|
29
|
-
canHidden: boolean;
|
|
30
|
-
canFilter: boolean;
|
|
31
|
-
canGroup: boolean;
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
32
22
|
type: string;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
filterComponentType: "Input";
|
|
26
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
37
27
|
};
|
|
38
28
|
}
|
|
39
29
|
export default AlipayNo;
|