@kmkf-fe-packages/services-components 0.6.3-alpha.3 → 0.6.3
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/components/ActualPayment/index.d.ts +11 -8
- package/dist/esm/components/ActualPayment/index.js +22 -19
- package/dist/esm/components/Address/index.d.ts +14 -6
- package/dist/esm/components/Address/index.js +22 -9
- package/dist/esm/components/Alipay/index.d.ts +18 -9
- package/dist/esm/components/Alipay/index.js +17 -6
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -9
- package/dist/esm/components/AlipayAccount/index.js +24 -19
- package/dist/esm/components/AlipayName/index.d.ts +12 -8
- package/dist/esm/components/AlipayName/index.js +23 -18
- package/dist/esm/components/BuyerNick/index.d.ts +11 -8
- package/dist/esm/components/BuyerNick/index.js +25 -30
- package/dist/esm/components/Cascader/index.d.ts +23 -9
- package/dist/esm/components/Cascader/index.js +27 -29
- package/dist/esm/components/Checkbox/index.d.ts +10 -9
- package/dist/esm/components/Checkbox/index.js +21 -25
- package/dist/esm/components/CommonDataTime/index.d.ts +10 -8
- package/dist/esm/components/CommonDataTime/index.js +20 -19
- package/dist/esm/components/DataTime/index.d.ts +10 -9
- package/dist/esm/components/DataTime/index.js +23 -22
- package/dist/esm/components/EItemEnCode/index.d.ts +10 -8
- package/dist/esm/components/EItemEnCode/index.js +20 -22
- package/dist/esm/components/EItemId/index.d.ts +10 -8
- package/dist/esm/components/EItemId/index.js +20 -22
- package/dist/esm/components/EItemSelect/index.d.ts +11 -4
- package/dist/esm/components/EItemSelect/index.js +18 -6
- package/dist/esm/components/ErpTradeId/index.d.ts +11 -8
- package/dist/esm/components/ErpTradeId/index.js +21 -18
- package/dist/esm/components/Express/index.d.ts +13 -9
- package/dist/esm/components/Express/index.js +29 -18
- package/dist/esm/components/ExpressCode/index.d.ts +12 -8
- package/dist/esm/components/ExpressCode/index.js +22 -17
- package/dist/esm/components/FlowStatusSelect/index.d.ts +33 -13
- package/dist/esm/components/FlowStatusSelect/index.js +22 -27
- package/dist/esm/components/Grade/index.d.ts +11 -4
- package/dist/esm/components/Grade/index.js +19 -6
- package/dist/esm/components/Input/index.d.ts +11 -8
- package/dist/esm/components/Input/index.js +24 -20
- package/dist/esm/components/JstItemSelect/index.d.ts +11 -9
- package/dist/esm/components/JstItemSelect/index.js +20 -35
- package/dist/esm/components/JstLogistics/index.d.ts +11 -16
- package/dist/esm/components/JstLogistics/index.js +20 -31
- package/dist/esm/components/JstSendGood/index.d.ts +11 -9
- package/dist/esm/components/JstSendGood/index.js +20 -35
- package/dist/esm/components/JstSupply/index.d.ts +11 -9
- package/dist/esm/components/JstSupply/index.js +20 -35
- package/dist/esm/components/Logistics/index.d.ts +25 -15
- package/dist/esm/components/Logistics/index.js +17 -10
- package/dist/esm/components/MultSelect/index.d.ts +10 -9
- package/dist/esm/components/MultSelect/index.js +20 -21
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +21 -8
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -14
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +21 -8
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +26 -14
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +16 -8
- package/dist/esm/components/Ordinary/OrdinarySerial.js +16 -14
- package/dist/esm/components/Ordinary/index.d.ts +22 -9
- package/dist/esm/components/Ordinary/index.js +7 -8
- package/dist/esm/components/Payment/AlipayNick.d.ts +22 -9
- package/dist/esm/components/Payment/AlipayNick.js +28 -16
- package/dist/esm/components/Payment/AlipayNo.d.ts +20 -8
- package/dist/esm/components/Payment/AlipayNo.js +27 -16
- package/dist/esm/components/Payment/AlipayTime.d.ts +22 -8
- package/dist/esm/components/Payment/AlipayTime.js +27 -15
- package/dist/esm/components/Payment/BuyerNick.d.ts +21 -8
- package/dist/esm/components/Payment/BuyerNick.js +26 -14
- package/dist/esm/components/Payment/PaymentAmount.d.ts +21 -8
- package/dist/esm/components/Payment/PaymentAmount.js +26 -14
- package/dist/esm/components/Payment/PaymentStatus.d.ts +27 -13
- package/dist/esm/components/Payment/PaymentStatus.js +36 -37
- package/dist/esm/components/Payment/PaymentTid.d.ts +21 -8
- package/dist/esm/components/Payment/PaymentTid.js +26 -14
- package/dist/esm/components/Payment/index.d.ts +96 -23
- package/dist/esm/components/Payment/index.js +17 -8
- package/dist/esm/components/Picture/index.d.ts +10 -8
- package/dist/esm/components/Picture/index.js +18 -6
- package/dist/esm/components/Radio/index.d.ts +10 -9
- package/dist/esm/components/Radio/index.js +23 -30
- package/dist/esm/components/Rate/index.d.ts +11 -4
- package/dist/esm/components/Rate/index.js +22 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +12 -4
- package/dist/esm/components/ReceiverAddress/index.js +26 -9
- package/dist/esm/components/ReceiverMobile/index.d.ts +12 -9
- package/dist/esm/components/ReceiverMobile/index.js +23 -20
- package/dist/esm/components/ReceiverName/index.d.ts +11 -8
- package/dist/esm/components/ReceiverName/index.js +23 -20
- package/dist/esm/components/Remark/index.d.ts +11 -8
- package/dist/esm/components/Remark/index.js +21 -18
- package/dist/esm/components/ReturnLogistics/index.d.ts +20 -15
- package/dist/esm/components/ReturnLogistics/index.js +7 -10
- package/dist/esm/components/Select/index.d.ts +10 -9
- package/dist/esm/components/Select/index.js +20 -20
- package/dist/esm/components/ShopName/index.d.ts +11 -8
- package/dist/esm/components/ShopName/index.js +20 -18
- package/dist/esm/components/SystemOrderNo/index.d.ts +11 -8
- package/dist/esm/components/SystemOrderNo/index.js +21 -18
- package/dist/esm/components/TemplateSelect/index.d.ts +11 -9
- package/dist/esm/components/TemplateSelect/index.js +20 -20
- package/dist/esm/components/TextArea/index.d.ts +10 -8
- package/dist/esm/components/TextArea/index.js +20 -18
- package/dist/esm/components/ThirdItemSelect/index.d.ts +10 -8
- package/dist/esm/components/ThirdItemSelect/index.js +20 -24
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -9
- package/dist/esm/components/TradeDateTime/index.js +10 -34
- package/dist/esm/components/TradeId/index.d.ts +5 -8
- package/dist/esm/components/TradeId/index.js +10 -18
- package/dist/esm/components/WorkOrderId/index.d.ts +11 -8
- package/dist/esm/components/WorkOrderId/index.js +22 -20
- package/dist/esm/index.d.ts +0 -9
- package/dist/esm/index.js +1 -10
- package/dist/esm/type.d.ts +36 -38
- package/package.json +4 -4
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +0 -7
- package/dist/esm/commonComponents/PlatformAvatar/index.js +0 -28
- package/dist/esm/commonComponents/ShopList/index.d.ts +0 -13
- package/dist/esm/commonComponents/ShopList/index.js +0 -34
- package/dist/esm/components/CompletedUser/index.d.ts +0 -28
- package/dist/esm/components/CompletedUser/index.js +0 -60
- package/dist/esm/components/Handler/index.d.ts +0 -32
- package/dist/esm/components/Handler/index.js +0 -64
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +0 -25
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +0 -89
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +0 -24
- package/dist/esm/components/LogisticsInterception/InterceptType.js +0 -62
- package/dist/esm/components/LogisticsInterception/index.d.ts +0 -27
- package/dist/esm/components/LogisticsInterception/index.js +0 -90
- package/dist/esm/components/PlatForm/index.d.ts +0 -29
- package/dist/esm/components/PlatForm/index.js +0 -62
- package/dist/esm/components/ShopInput/index.d.ts +0 -26
- package/dist/esm/components/ShopInput/index.js +0 -71
- package/dist/esm/components/Submitter/index.d.ts +0 -28
- package/dist/esm/components/Submitter/index.js +0 -60
- package/dist/esm/factory.d.ts +0 -3
- package/dist/esm/factory.js +0 -105
|
@@ -10,7 +10,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
10
10
|
import moment from 'moment';
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull
|
|
13
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
15
15
|
var _this = this;
|
|
16
16
|
_classCallCheck(this, AlipayTime);
|
|
@@ -18,11 +18,14 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
18
18
|
_defineProperty(this, "id", void 0);
|
|
19
19
|
_defineProperty(this, "type", void 0);
|
|
20
20
|
_defineProperty(this, "rules", void 0);
|
|
21
|
+
_defineProperty(this, "canFilter", void 0);
|
|
22
|
+
_defineProperty(this, "canGroup", void 0);
|
|
23
|
+
_defineProperty(this, "canHidden", void 0);
|
|
24
|
+
_defineProperty(this, "dataType", void 0);
|
|
25
|
+
_defineProperty(this, "showContains", void 0);
|
|
21
26
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
27
|
_defineProperty(this, "align", void 0);
|
|
23
28
|
_defineProperty(this, "width", void 0);
|
|
24
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
-
_defineProperty(this, "children", void 0);
|
|
26
29
|
_defineProperty(this, "render", function (value) {
|
|
27
30
|
return /*#__PURE__*/React.createElement("span", {
|
|
28
31
|
className: "pointer"
|
|
@@ -56,27 +59,36 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
56
59
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
57
60
|
});
|
|
58
61
|
});
|
|
59
|
-
_defineProperty(this, "
|
|
62
|
+
_defineProperty(this, "getColumns", function () {
|
|
60
63
|
return {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
title: _this.name,
|
|
65
|
+
align: _this.align,
|
|
66
|
+
dataIndex: _this.id,
|
|
67
|
+
width: _this.width,
|
|
68
|
+
dataType: _this.dataType,
|
|
69
|
+
canHidden: _this.canHidden,
|
|
70
|
+
canFilter: _this.canFilter,
|
|
71
|
+
canGroup: _this.canGroup,
|
|
72
|
+
type: _this.type,
|
|
73
|
+
render: _this.renderPc,
|
|
74
|
+
renderPc: _this.renderPc,
|
|
75
|
+
componentType: _this.editRender,
|
|
76
|
+
showContains: _this.showContains,
|
|
77
|
+
renderExport: _this.renderExport,
|
|
78
|
+
widget: null
|
|
70
79
|
};
|
|
71
80
|
});
|
|
72
81
|
this.name = '打款时间';
|
|
73
82
|
this.id = "".concat(options.id, "_enterprisePaymentTime");
|
|
74
83
|
this.type = options.type;
|
|
84
|
+
this.canFilter = true;
|
|
85
|
+
this.canGroup = true;
|
|
86
|
+
this.canHidden = false;
|
|
87
|
+
this.showContains = false;
|
|
88
|
+
this.dataType = 'date';
|
|
75
89
|
this.componentConfig = options.componentConfig;
|
|
76
90
|
this.rules = [];
|
|
77
91
|
this.align = 'left';
|
|
78
92
|
this.width = 200;
|
|
79
|
-
this.isCombinationComponent = false;
|
|
80
|
-
this.children = [];
|
|
81
93
|
});
|
|
82
94
|
export default AlipayTime;
|
|
@@ -1,27 +1,40 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
|
|
3
3
|
declare class BuyerNick 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;
|
|
8
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
14
|
effects: ComponentInterface["effects"];
|
|
10
15
|
align: ALignType;
|
|
11
16
|
width: number;
|
|
12
|
-
isCombinationComponent: boolean;
|
|
13
|
-
children: ComponentInterface[];
|
|
14
17
|
constructor(options: PickOption);
|
|
15
18
|
render: (value: string) => JSX.Element;
|
|
16
19
|
renderClient: (record: Record) => JSX.Element | null;
|
|
17
20
|
editRender: () => JSX.Element;
|
|
18
21
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
19
22
|
renderExport: (value: string) => string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
getColumns: () => {
|
|
24
|
+
title: string;
|
|
25
|
+
align: ALignType;
|
|
26
|
+
dataIndex: string;
|
|
27
|
+
width: number;
|
|
28
|
+
dataType: DataType;
|
|
29
|
+
canHidden: boolean;
|
|
30
|
+
canFilter: boolean;
|
|
31
|
+
canGroup: boolean;
|
|
32
|
+
type: string;
|
|
33
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
34
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
35
|
+
componentType: () => JSX.Element;
|
|
36
|
+
showContains: boolean;
|
|
37
|
+
renderExport: (value: string) => string;
|
|
25
38
|
};
|
|
26
39
|
}
|
|
27
40
|
export default BuyerNick;
|
|
@@ -16,7 +16,7 @@ import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
|
16
16
|
import GetFormItem from "../GetFormItem";
|
|
17
17
|
import ItemView from "../../commonComponents/ItemView";
|
|
18
18
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
19
|
-
import { isNull
|
|
19
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
20
20
|
var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
21
21
|
var _this = this;
|
|
22
22
|
_classCallCheck(this, BuyerNick);
|
|
@@ -24,12 +24,15 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
24
24
|
_defineProperty(this, "id", void 0);
|
|
25
25
|
_defineProperty(this, "type", void 0);
|
|
26
26
|
_defineProperty(this, "rules", void 0);
|
|
27
|
+
_defineProperty(this, "canFilter", void 0);
|
|
28
|
+
_defineProperty(this, "canGroup", void 0);
|
|
29
|
+
_defineProperty(this, "canHidden", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "showContains", void 0);
|
|
27
32
|
_defineProperty(this, "componentConfig", void 0);
|
|
28
33
|
_defineProperty(this, "effects", void 0);
|
|
29
34
|
_defineProperty(this, "align", void 0);
|
|
30
35
|
_defineProperty(this, "width", void 0);
|
|
31
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
32
|
-
_defineProperty(this, "children", void 0);
|
|
33
36
|
_defineProperty(this, "render", function (value) {
|
|
34
37
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
35
38
|
});
|
|
@@ -75,27 +78,36 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
75
78
|
_defineProperty(this, "renderExport", function (value) {
|
|
76
79
|
return value !== null && value !== void 0 ? value : '--';
|
|
77
80
|
});
|
|
78
|
-
_defineProperty(this, "
|
|
81
|
+
_defineProperty(this, "getColumns", function () {
|
|
79
82
|
return {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
title: _this.name,
|
|
84
|
+
align: _this.align,
|
|
85
|
+
dataIndex: _this.id,
|
|
86
|
+
width: _this.width,
|
|
87
|
+
dataType: _this.dataType,
|
|
88
|
+
canHidden: _this.canHidden,
|
|
89
|
+
canFilter: _this.canFilter,
|
|
90
|
+
canGroup: _this.canGroup,
|
|
91
|
+
type: _this.type,
|
|
92
|
+
render: _this.renderPc,
|
|
93
|
+
renderPc: _this.renderPc,
|
|
94
|
+
componentType: _this.editRender,
|
|
95
|
+
showContains: _this.showContains,
|
|
96
|
+
renderExport: _this.renderExport
|
|
88
97
|
};
|
|
89
98
|
});
|
|
90
99
|
this.name = '买家昵称';
|
|
91
100
|
this.id = "".concat(options.id, "_enterprisePaymentBuyerNick");
|
|
92
101
|
this.type = options.type;
|
|
102
|
+
this.canFilter = true;
|
|
103
|
+
this.canGroup = true;
|
|
104
|
+
this.canHidden = false;
|
|
105
|
+
this.showContains = false;
|
|
106
|
+
this.dataType = 'string';
|
|
93
107
|
this.componentConfig = options.componentConfig;
|
|
94
108
|
this.effects = options.effects;
|
|
95
109
|
this.rules = [];
|
|
96
110
|
this.align = 'left';
|
|
97
111
|
this.width = 200;
|
|
98
|
-
this.isCombinationComponent = false;
|
|
99
|
-
this.children = [];
|
|
100
112
|
});
|
|
101
113
|
export default BuyerNick;
|
|
@@ -1,26 +1,39 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType, Record } from '../../type';
|
|
3
3
|
declare class PaymentAmount 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;
|
|
8
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
14
|
align: ALignType;
|
|
10
15
|
width: number;
|
|
11
|
-
isCombinationComponent: boolean;
|
|
12
|
-
children: ComponentInterface[];
|
|
13
16
|
constructor(options: PickOption);
|
|
14
17
|
render: (value: string) => JSX.Element;
|
|
15
18
|
renderClient: (record: Record) => JSX.Element | null;
|
|
16
19
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
17
20
|
renderExport: (value: string) => string;
|
|
18
21
|
editRender: () => JSX.Element;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
getColumns: () => {
|
|
23
|
+
title: string;
|
|
24
|
+
align: ALignType;
|
|
25
|
+
dataIndex: string;
|
|
26
|
+
width: number;
|
|
27
|
+
dataType: DataType;
|
|
28
|
+
canHidden: boolean;
|
|
29
|
+
canFilter: boolean;
|
|
30
|
+
canGroup: boolean;
|
|
31
|
+
type: string;
|
|
32
|
+
render: (value: any, record: Record) => JSX.Element;
|
|
33
|
+
renderPc: (value: any, record: Record) => JSX.Element;
|
|
34
|
+
componentType: () => JSX.Element;
|
|
35
|
+
showContains: boolean;
|
|
36
|
+
renderExport: (value: string) => string;
|
|
24
37
|
};
|
|
25
38
|
}
|
|
26
39
|
export default PaymentAmount;
|
|
@@ -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
|
|
12
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
_classCallCheck(this, PaymentAmount);
|
|
@@ -17,11 +17,14 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(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);
|
|
20
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
26
|
_defineProperty(this, "align", void 0);
|
|
22
27
|
_defineProperty(this, "width", void 0);
|
|
23
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
-
_defineProperty(this, "children", void 0);
|
|
25
28
|
_defineProperty(this, "render", function (value) {
|
|
26
29
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
27
30
|
});
|
|
@@ -48,24 +51,33 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
48
51
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
49
52
|
});
|
|
50
53
|
});
|
|
51
|
-
_defineProperty(this, "
|
|
54
|
+
_defineProperty(this, "getColumns", function () {
|
|
52
55
|
return {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
title: _this.name,
|
|
57
|
+
align: _this.align,
|
|
58
|
+
dataIndex: _this.id,
|
|
59
|
+
width: _this.width,
|
|
60
|
+
dataType: _this.dataType,
|
|
61
|
+
canHidden: _this.canHidden,
|
|
62
|
+
canFilter: _this.canFilter,
|
|
63
|
+
canGroup: _this.canGroup,
|
|
64
|
+
type: _this.type,
|
|
65
|
+
render: _this.renderPc,
|
|
66
|
+
renderPc: _this.renderPc,
|
|
67
|
+
componentType: _this.editRender,
|
|
68
|
+
showContains: _this.showContains,
|
|
69
|
+
renderExport: _this.renderExport
|
|
61
70
|
};
|
|
62
71
|
});
|
|
63
72
|
this.name = '打款金额';
|
|
64
73
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
65
74
|
this.type = options.type;
|
|
75
|
+
this.canFilter = true;
|
|
76
|
+
this.canGroup = true;
|
|
77
|
+
this.canHidden = false;
|
|
78
|
+
this.showContains = false;
|
|
79
|
+
this.dataType = 'number';
|
|
66
80
|
this.componentConfig = options.componentConfig;
|
|
67
|
-
this.isCombinationComponent = false;
|
|
68
|
-
this.children = [];
|
|
69
81
|
this.rules = [{
|
|
70
82
|
validator: function validator(_, value) {
|
|
71
83
|
if (/^(\d+)(\.\d{0,2})?$/.test(value)) {
|
|
@@ -1,37 +1,51 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType } from '../../type';
|
|
3
3
|
declare class PaymentStatus 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;
|
|
8
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
14
|
align: ALignType;
|
|
10
15
|
width: number;
|
|
11
16
|
paymentStatus: {
|
|
12
17
|
[prop in string]: string;
|
|
13
18
|
};
|
|
14
|
-
paymentStatusOptions: {
|
|
15
|
-
label: string;
|
|
16
|
-
value: string;
|
|
17
|
-
}[];
|
|
18
|
-
isCombinationComponent: boolean;
|
|
19
|
-
children: ComponentInterface[];
|
|
20
19
|
constructor(options: PickOption);
|
|
21
20
|
render: (value: string) => JSX.Element;
|
|
22
21
|
renderClient: (record: any) => JSX.Element | null;
|
|
23
22
|
renderPc: (value: any, record: any) => any;
|
|
24
23
|
renderExport: (value: any) => any;
|
|
25
24
|
editRender: (value: any) => null;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
getColumns: () => {
|
|
26
|
+
title: string;
|
|
27
|
+
align: ALignType;
|
|
28
|
+
dataIndex: string;
|
|
29
|
+
dataType: DataType;
|
|
30
|
+
canHidden: boolean;
|
|
31
|
+
canFilter: boolean;
|
|
32
|
+
canGroup: boolean;
|
|
33
|
+
width: number;
|
|
34
|
+
type: string;
|
|
35
|
+
render: (value: any, record: any) => any;
|
|
36
|
+
renderPc: (value: any, record: any) => any;
|
|
37
|
+
componentType: (value: any) => null;
|
|
38
|
+
showContains: boolean;
|
|
39
|
+
renderExport: (value: any) => any;
|
|
40
|
+
widget: string;
|
|
41
|
+
'x-options': {
|
|
31
42
|
label: string;
|
|
32
43
|
value: string;
|
|
33
44
|
}[];
|
|
34
|
-
|
|
45
|
+
'x-style': {
|
|
46
|
+
width: string;
|
|
47
|
+
};
|
|
48
|
+
'x-placeholder': string;
|
|
35
49
|
};
|
|
36
50
|
}
|
|
37
51
|
export default PaymentStatus;
|
|
@@ -7,7 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
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
9
|
import ItemView from "../../commonComponents/ItemView";
|
|
10
|
-
import { isNull
|
|
10
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
11
|
var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
12
12
|
var _this = this;
|
|
13
13
|
_classCallCheck(this, PaymentStatus);
|
|
@@ -15,13 +15,15 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
15
15
|
_defineProperty(this, "id", void 0);
|
|
16
16
|
_defineProperty(this, "type", void 0);
|
|
17
17
|
_defineProperty(this, "rules", void 0);
|
|
18
|
+
_defineProperty(this, "canFilter", void 0);
|
|
19
|
+
_defineProperty(this, "canGroup", void 0);
|
|
20
|
+
_defineProperty(this, "canHidden", void 0);
|
|
21
|
+
_defineProperty(this, "dataType", void 0);
|
|
22
|
+
_defineProperty(this, "showContains", void 0);
|
|
18
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
19
24
|
_defineProperty(this, "align", void 0);
|
|
20
25
|
_defineProperty(this, "width", void 0);
|
|
21
26
|
_defineProperty(this, "paymentStatus", void 0);
|
|
22
|
-
_defineProperty(this, "paymentStatusOptions", void 0);
|
|
23
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
-
_defineProperty(this, "children", void 0);
|
|
25
27
|
_defineProperty(this, "render", function (value) {
|
|
26
28
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
27
29
|
});
|
|
@@ -41,22 +43,43 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
41
43
|
_defineProperty(this, "editRender", function (value) {
|
|
42
44
|
return null;
|
|
43
45
|
});
|
|
44
|
-
_defineProperty(this, "
|
|
46
|
+
_defineProperty(this, "getColumns", function () {
|
|
45
47
|
return {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
title: _this.name,
|
|
49
|
+
align: _this.align,
|
|
50
|
+
dataIndex: _this.id,
|
|
51
|
+
dataType: _this.dataType,
|
|
52
|
+
canHidden: _this.canHidden,
|
|
53
|
+
canFilter: _this.canFilter,
|
|
54
|
+
canGroup: _this.canGroup,
|
|
55
|
+
width: _this.width,
|
|
56
|
+
type: _this.type,
|
|
57
|
+
render: _this.renderPc,
|
|
58
|
+
renderPc: _this.renderPc,
|
|
59
|
+
componentType: _this.editRender,
|
|
60
|
+
showContains: _this.showContains,
|
|
61
|
+
renderExport: _this.renderExport,
|
|
62
|
+
widget: 'selectMultiple',
|
|
63
|
+
'x-options': Object.keys(_this.paymentStatus).map(function (item) {
|
|
64
|
+
return {
|
|
65
|
+
label: _this.paymentStatus[item],
|
|
66
|
+
value: _this.paymentStatus[item]
|
|
53
67
|
};
|
|
54
|
-
}
|
|
68
|
+
}),
|
|
69
|
+
'x-style': {
|
|
70
|
+
width: '356px'
|
|
71
|
+
},
|
|
72
|
+
'x-placeholder': '请选择内容'
|
|
55
73
|
};
|
|
56
74
|
});
|
|
57
75
|
this.name = '打款状态';
|
|
58
76
|
this.id = "".concat(options.id, "_enterprisePaymentStatus");
|
|
59
77
|
this.type = options.type;
|
|
78
|
+
this.canFilter = true;
|
|
79
|
+
this.canGroup = true;
|
|
80
|
+
this.canHidden = false;
|
|
81
|
+
this.showContains = false;
|
|
82
|
+
this.dataType = 'string';
|
|
60
83
|
this.componentConfig = options.componentConfig;
|
|
61
84
|
this.rules = [];
|
|
62
85
|
this.align = 'left';
|
|
@@ -70,29 +93,5 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
70
93
|
ALI_PAY_FAIL: '支付宝打款失败',
|
|
71
94
|
ALI_PAY_CLOSE: '支付宝打款关闭'
|
|
72
95
|
};
|
|
73
|
-
this.paymentStatusOptions = [{
|
|
74
|
-
label: '未打款',
|
|
75
|
-
value: '未打款'
|
|
76
|
-
}, {
|
|
77
|
-
label: '审核通过',
|
|
78
|
-
value: '审核通过'
|
|
79
|
-
}, {
|
|
80
|
-
label: '标记已打款',
|
|
81
|
-
value: '标记已打款'
|
|
82
|
-
}, {
|
|
83
|
-
label: '支付宝待付款',
|
|
84
|
-
value: '支付宝待付款'
|
|
85
|
-
}, {
|
|
86
|
-
label: '支付宝打款成功',
|
|
87
|
-
value: '支付宝打款成功'
|
|
88
|
-
}, {
|
|
89
|
-
label: '支付宝打款失败',
|
|
90
|
-
value: '支付宝打款失败'
|
|
91
|
-
}, {
|
|
92
|
-
label: '支付宝打款关闭',
|
|
93
|
-
value: '支付宝打款关闭'
|
|
94
|
-
}];
|
|
95
|
-
this.isCombinationComponent = false;
|
|
96
|
-
this.children = [];
|
|
97
96
|
});
|
|
98
97
|
export default PaymentStatus;
|
|
@@ -1,26 +1,39 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption,
|
|
2
|
+
import { ComponentInterface, PickOption, DataType, ALignType } 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;
|
|
8
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
14
|
align: ALignType;
|
|
10
15
|
width: number;
|
|
11
|
-
isCombinationComponent: boolean;
|
|
12
|
-
children: ComponentInterface[];
|
|
13
16
|
constructor(options: PickOption);
|
|
14
17
|
render: (value: string) => JSX.Element;
|
|
15
18
|
renderClient: (record: any) => JSX.Element | null;
|
|
16
19
|
renderPc: (value: any, record: any) => JSX.Element;
|
|
17
20
|
renderExport: (value: string) => string;
|
|
18
21
|
editRender: () => JSX.Element;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
getColumns: () => {
|
|
23
|
+
title: string;
|
|
24
|
+
align: ALignType;
|
|
25
|
+
dataIndex: string;
|
|
26
|
+
dataType: DataType;
|
|
27
|
+
canHidden: boolean;
|
|
28
|
+
canFilter: boolean;
|
|
29
|
+
canGroup: boolean;
|
|
30
|
+
width: number;
|
|
31
|
+
type: string;
|
|
32
|
+
render: (value: any, record: any) => JSX.Element;
|
|
33
|
+
renderPc: (value: any, record: any) => JSX.Element;
|
|
34
|
+
componentType: () => JSX.Element;
|
|
35
|
+
showContains: boolean;
|
|
36
|
+
renderExport: (value: string) => string;
|
|
24
37
|
};
|
|
25
38
|
}
|
|
26
39
|
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
|
|
12
|
+
import { isNull } 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,11 +17,14 @@ 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);
|
|
20
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
26
|
_defineProperty(this, "align", void 0);
|
|
22
27
|
_defineProperty(this, "width", void 0);
|
|
23
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
-
_defineProperty(this, "children", void 0);
|
|
25
28
|
_defineProperty(this, "render", function (value) {
|
|
26
29
|
return /*#__PURE__*/React.createElement("span", null, value);
|
|
27
30
|
});
|
|
@@ -48,26 +51,35 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
48
51
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
49
52
|
});
|
|
50
53
|
});
|
|
51
|
-
_defineProperty(this, "
|
|
54
|
+
_defineProperty(this, "getColumns", function () {
|
|
52
55
|
return {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
title: _this.name,
|
|
57
|
+
align: _this.align,
|
|
58
|
+
dataIndex: _this.id,
|
|
59
|
+
dataType: _this.dataType,
|
|
60
|
+
canHidden: _this.canHidden,
|
|
61
|
+
canFilter: _this.canFilter,
|
|
62
|
+
canGroup: _this.canGroup,
|
|
63
|
+
width: _this.width,
|
|
64
|
+
type: _this.type,
|
|
65
|
+
render: _this.renderPc,
|
|
66
|
+
renderPc: _this.renderPc,
|
|
67
|
+
componentType: _this.editRender,
|
|
68
|
+
showContains: _this.showContains,
|
|
69
|
+
renderExport: _this.renderExport
|
|
61
70
|
};
|
|
62
71
|
});
|
|
63
72
|
this.name = '订单编号';
|
|
64
73
|
this.id = "".concat(options.id, "_enterprisePaymentTid");
|
|
65
74
|
this.type = options.type;
|
|
75
|
+
this.canFilter = true;
|
|
76
|
+
this.canGroup = true;
|
|
77
|
+
this.canHidden = false;
|
|
78
|
+
this.showContains = false;
|
|
79
|
+
this.dataType = 'string';
|
|
66
80
|
this.componentConfig = options.componentConfig;
|
|
67
81
|
this.rules = [];
|
|
68
82
|
this.align = 'left';
|
|
69
83
|
this.width = 200;
|
|
70
|
-
this.isCombinationComponent = false;
|
|
71
|
-
this.children = [];
|
|
72
84
|
});
|
|
73
85
|
export default PaymentTid;
|