@kmkf-fe-packages/services-components 0.7.12-alpha.8 → 0.7.14-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/dist/esm/components/ActualPayment/index.d.ts +3 -1
- package/dist/esm/components/ActualPayment/index.js +6 -1
- package/dist/esm/components/Address/index.d.ts +3 -1
- package/dist/esm/components/Address/index.js +6 -1
- package/dist/esm/components/Alipay/index.d.ts +3 -1
- package/dist/esm/components/Alipay/index.js +7 -2
- package/dist/esm/components/AlipayAccount/index.d.ts +3 -1
- package/dist/esm/components/AlipayAccount/index.js +6 -1
- package/dist/esm/components/AlipayName/index.d.ts +3 -1
- package/dist/esm/components/AlipayName/index.js +6 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -1
- package/dist/esm/components/BuyerNick/index.js +7 -2
- package/dist/esm/components/Cascader/index.d.ts +3 -1
- package/dist/esm/components/Cascader/index.js +6 -1
- package/dist/esm/components/Checkbox/index.d.ts +5 -1
- package/dist/esm/components/Checkbox/index.js +13 -2
- package/dist/esm/components/CommonDataTime/index.d.ts +3 -0
- package/dist/esm/components/CommonDataTime/index.js +6 -0
- package/dist/esm/components/CompletedUser/index.d.ts +3 -0
- package/dist/esm/components/CompletedUser/index.js +8 -1
- package/dist/esm/components/DataTime/index.d.ts +4 -1
- package/dist/esm/components/DataTime/index.js +13 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +3 -1
- package/dist/esm/components/EItemEnCode/index.js +6 -1
- package/dist/esm/components/EItemId/index.d.ts +3 -1
- package/dist/esm/components/EItemId/index.js +6 -1
- package/dist/esm/components/EItemSelect/index.d.ts +3 -1
- package/dist/esm/components/EItemSelect/index.js +6 -1
- package/dist/esm/components/ErpTradeId/index.d.ts +3 -1
- package/dist/esm/components/ErpTradeId/index.js +6 -1
- package/dist/esm/components/Express/index.d.ts +4 -1
- package/dist/esm/components/Express/index.js +8 -1
- package/dist/esm/components/ExpressCode/index.d.ts +3 -1
- package/dist/esm/components/ExpressCode/index.js +6 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +4 -1
- package/dist/esm/components/FlowStatusSelect/index.js +23 -7
- package/dist/esm/components/GetFormItem/index.d.ts +2 -1
- package/dist/esm/components/GetFormItem/index.js +5 -2
- package/dist/esm/components/Grade/index.d.ts +3 -1
- package/dist/esm/components/Grade/index.js +6 -1
- package/dist/esm/components/Handler/index.d.ts +3 -0
- package/dist/esm/components/Handler/index.js +8 -1
- package/dist/esm/components/Input/index.d.ts +3 -1
- package/dist/esm/components/Input/index.js +8 -2
- package/dist/esm/components/JstItemSelect/index.d.ts +3 -1
- package/dist/esm/components/JstItemSelect/index.js +6 -1
- package/dist/esm/components/JstLogistics/index.d.ts +3 -1
- package/dist/esm/components/JstLogistics/index.js +6 -1
- package/dist/esm/components/JstSendGood/index.d.ts +3 -1
- package/dist/esm/components/JstSendGood/index.js +6 -1
- package/dist/esm/components/JstSupply/index.d.ts +3 -1
- package/dist/esm/components/JstSupply/index.js +6 -1
- package/dist/esm/components/Logistics/index.d.ts +3 -1
- package/dist/esm/components/Logistics/index.js +7 -2
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +3 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +6 -1
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +6 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +6 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +3 -1
- package/dist/esm/components/LogisticsInterception/index.js +6 -1
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +3 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +6 -0
- package/dist/esm/components/MultSelect/index.d.ts +4 -1
- package/dist/esm/components/MultSelect/index.js +10 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +6 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +3 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +6 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +4 -6
- package/dist/esm/components/Ordinary/OrdinarySerial.js +5 -8
- package/dist/esm/components/Ordinary/index.d.ts +4 -6
- package/dist/esm/components/Ordinary/index.js +6 -9
- package/dist/esm/components/Payment/AlipayNick.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNick.js +6 -1
- package/dist/esm/components/Payment/AlipayNo.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayNo.js +6 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +4 -1
- package/dist/esm/components/Payment/AlipayTime.js +8 -1
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -1
- package/dist/esm/components/Payment/BuyerNick.js +6 -1
- package/dist/esm/components/Payment/PaymentAmount.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentAmount.js +6 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +3 -0
- package/dist/esm/components/Payment/PaymentStatus.js +6 -0
- package/dist/esm/components/Payment/PaymentTid.d.ts +3 -1
- package/dist/esm/components/Payment/PaymentTid.js +6 -1
- package/dist/esm/components/Payment/index.d.ts +3 -1
- package/dist/esm/components/Payment/index.js +7 -2
- package/dist/esm/components/Picture/index.d.ts +3 -1
- package/dist/esm/components/Picture/index.js +6 -1
- package/dist/esm/components/PlatForm/index.d.ts +3 -0
- package/dist/esm/components/PlatForm/index.js +6 -0
- package/dist/esm/components/Radio/index.d.ts +5 -1
- package/dist/esm/components/Radio/index.js +13 -2
- package/dist/esm/components/Rate/index.d.ts +3 -1
- package/dist/esm/components/Rate/index.js +6 -1
- package/dist/esm/components/ReceiverAddress/index.d.ts +3 -1
- package/dist/esm/components/ReceiverAddress/index.js +6 -1
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -1
- package/dist/esm/components/ReceiverMobile/index.js +7 -2
- package/dist/esm/components/ReceiverName/index.d.ts +3 -1
- package/dist/esm/components/ReceiverName/index.js +6 -1
- package/dist/esm/components/Remark/index.d.ts +3 -1
- package/dist/esm/components/Remark/index.js +6 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +4 -6
- package/dist/esm/components/ReturnLogistics/index.js +7 -9
- package/dist/esm/components/Select/index.d.ts +4 -1
- package/dist/esm/components/Select/index.js +10 -2
- package/dist/esm/components/ShopInput/index.d.ts +3 -0
- package/dist/esm/components/ShopInput/index.js +8 -1
- package/dist/esm/components/ShopName/index.d.ts +3 -1
- package/dist/esm/components/ShopName/index.js +6 -1
- package/dist/esm/components/Submitter/index.d.ts +3 -0
- package/dist/esm/components/Submitter/index.js +8 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -1
- package/dist/esm/components/SystemOrderNo/index.js +6 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +3 -0
- package/dist/esm/components/TemplateSelect/index.js +8 -1
- package/dist/esm/components/TextArea/index.d.ts +3 -1
- package/dist/esm/components/TextArea/index.js +6 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -1
- package/dist/esm/components/ThirdItemSelect/index.js +6 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -6
- package/dist/esm/components/TradeDateTime/index.js +8 -9
- package/dist/esm/components/TradeId/index.d.ts +4 -6
- package/dist/esm/components/TradeId/index.js +8 -11
- package/dist/esm/components/WorkOrderId/index.d.ts +3 -1
- package/dist/esm/components/WorkOrderId/index.js +6 -1
- package/dist/esm/type.d.ts +6 -0
- package/package.json +4 -4
|
@@ -22,7 +22,10 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
22
22
|
_defineProperty(this, "align", void 0);
|
|
23
23
|
_defineProperty(this, "width", void 0);
|
|
24
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "sortField", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
25
27
|
_defineProperty(this, "canSort", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
29
|
_defineProperty(this, "children", void 0);
|
|
27
30
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
28
31
|
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
@@ -65,6 +68,9 @@ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMo
|
|
|
65
68
|
this.name = "发件人手机号";
|
|
66
69
|
this.id = "".concat(options.id, "_interceptSenderMobile");
|
|
67
70
|
this.companyId = "".concat(options.id, "_interceptCompany");
|
|
71
|
+
this.formField = "".concat(options.id, "_interceptCompany");
|
|
72
|
+
this.sortField = "".concat(options.id, "_interceptCompany");
|
|
73
|
+
this.dataType = 'string';
|
|
68
74
|
this.type = options.type;
|
|
69
75
|
this.componentConfig = options.componentConfig;
|
|
70
76
|
this.rules = [];
|
|
@@ -8,15 +8,18 @@ declare class BasicMultSelect implements ComponentInterface {
|
|
|
8
8
|
rules: any[];
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
|
+
formField: string;
|
|
11
12
|
canSort: boolean;
|
|
12
13
|
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
|
+
options: ComponentInterface['options'];
|
|
13
16
|
constructor(options: PickOption);
|
|
14
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
15
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
17
20
|
getComponentValue: (r: Record) => any;
|
|
18
21
|
renderExport: (value: any, record: Record) => any;
|
|
19
|
-
editRender: () => React.JSX.Element;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
20
23
|
filterConfig: (item: ColumnConfig) => {
|
|
21
24
|
searchDefaultConditions: "in";
|
|
22
25
|
type: string;
|
|
@@ -14,7 +14,8 @@ import ItemView from "../../commonComponents/ItemView";
|
|
|
14
14
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
16
|
var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options) {
|
|
17
|
-
var _this = this
|
|
17
|
+
var _this = this,
|
|
18
|
+
_this$componentConfig3;
|
|
18
19
|
_classCallCheck(this, BasicMultSelect);
|
|
19
20
|
_defineProperty(this, "name", void 0);
|
|
20
21
|
_defineProperty(this, "id", void 0);
|
|
@@ -23,8 +24,11 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
23
24
|
_defineProperty(this, "rules", void 0);
|
|
24
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
25
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
26
28
|
_defineProperty(this, "canSort", void 0);
|
|
27
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "options", void 0);
|
|
28
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
33
|
var _record$_this$id;
|
|
30
34
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -54,12 +58,13 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
54
58
|
}
|
|
55
59
|
return record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_basicMultSelect")]) === null || _record2 === void 0 ? void 0 : _record2.join(',');
|
|
56
60
|
});
|
|
57
|
-
_defineProperty(this, "editRender", function () {
|
|
61
|
+
_defineProperty(this, "editRender", function (p) {
|
|
58
62
|
var _this$componentConfig, _this$componentConfig2;
|
|
59
63
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
60
64
|
title: _this.name,
|
|
61
65
|
name: _this.id,
|
|
62
66
|
rules: _this.rules,
|
|
67
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
63
68
|
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,
|
|
64
69
|
component: /*#__PURE__*/React.createElement(ApaasMultipleSelect, _extends({}, _this.componentConfig, {
|
|
65
70
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -89,11 +94,14 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
89
94
|
this.name = options.name;
|
|
90
95
|
this.id = options.id;
|
|
91
96
|
this.sortField = "".concat(options.id, "_basicMultSelect");
|
|
97
|
+
this.formField = "".concat(options.id, "_basicMultSelect");
|
|
92
98
|
this.type = options.type;
|
|
93
99
|
this.componentConfig = options.componentConfig;
|
|
94
100
|
this.rules = [];
|
|
95
101
|
this.isCombinationComponent = false;
|
|
96
102
|
this.canSort = true;
|
|
97
103
|
this.children = [];
|
|
104
|
+
this.dataType = 'array';
|
|
105
|
+
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
98
106
|
});
|
|
99
107
|
export default BasicMultSelect;
|
|
@@ -11,15 +11,17 @@ declare class OrdinaryHeader implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
20
|
renderPc: (value: unknown, r: Record) => any;
|
|
19
21
|
renderLog: (r: Record) => any;
|
|
20
22
|
getComponentValue: (r: Record) => any;
|
|
21
23
|
renderExport: (value: any) => any;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
25
|
filterConfig: (item: ColumnConfig) => {
|
|
24
26
|
searchDefaultConditions: "like";
|
|
25
27
|
type: string;
|
|
@@ -25,8 +25,10 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
25
25
|
_defineProperty(this, "align", void 0);
|
|
26
26
|
_defineProperty(this, "width", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "formField", void 0);
|
|
28
29
|
_defineProperty(this, "canSort", void 0);
|
|
29
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
34
|
id: _this.id,
|
|
@@ -48,7 +50,7 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
48
50
|
_defineProperty(this, "renderExport", function (value) {
|
|
49
51
|
return value !== null && value !== void 0 ? value : '--';
|
|
50
52
|
});
|
|
51
|
-
_defineProperty(this, "editRender", function () {
|
|
53
|
+
_defineProperty(this, "editRender", function (p) {
|
|
52
54
|
var _this$componentConfig, _this$componentConfig2;
|
|
53
55
|
var handleChangeSerial = function handleChangeSerial(value) {
|
|
54
56
|
var _this$effects, _this$effects$form;
|
|
@@ -58,6 +60,7 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
58
60
|
title: _this.name,
|
|
59
61
|
name: _this.id,
|
|
60
62
|
rules: _this.rules,
|
|
63
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
61
64
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
62
65
|
component: /*#__PURE__*/React.createElement(Header, _extends({}, _this.componentConfig, {
|
|
63
66
|
handleChangeSerial: handleChangeSerial
|
|
@@ -81,6 +84,7 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
81
84
|
this.name = '发票抬头';
|
|
82
85
|
this.id = "".concat(options.id, "_ordinaryTaitou");
|
|
83
86
|
this.sortField = "".concat(options.id, "_ordinaryTaitou");
|
|
87
|
+
this.formField = "".concat(options.id, "_ordinaryTaitou");
|
|
84
88
|
this.type = options.type;
|
|
85
89
|
this.componentConfig = options.componentConfig;
|
|
86
90
|
this.rules = [];
|
|
@@ -90,5 +94,6 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
90
94
|
this.isCombinationComponent = false;
|
|
91
95
|
this.canSort = true;
|
|
92
96
|
this.children = [];
|
|
97
|
+
this.dataType = 'string';
|
|
93
98
|
});
|
|
94
99
|
export default OrdinaryHeader;
|
|
@@ -11,15 +11,17 @@ declare class OrdinaryMoney implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
renderPc: (value: unknown, r: Record) => any;
|
|
18
20
|
renderLog: (r: Record) => any;
|
|
19
21
|
getComponentValue: (r: Record) => any;
|
|
20
22
|
renderExport: (value: any) => any;
|
|
21
23
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
25
|
filterConfig: (item: ColumnConfig) => {
|
|
24
26
|
searchDefaultConditions: "between";
|
|
25
27
|
type: string;
|
|
@@ -27,8 +27,10 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
27
27
|
_defineProperty(this, "align", void 0);
|
|
28
28
|
_defineProperty(this, "width", void 0);
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "formField", void 0);
|
|
30
31
|
_defineProperty(this, "canSort", void 0);
|
|
31
32
|
_defineProperty(this, "children", void 0);
|
|
33
|
+
_defineProperty(this, "dataType", void 0);
|
|
32
34
|
_defineProperty(this, "renderPc", function (value, r) {
|
|
33
35
|
var _r;
|
|
34
36
|
return (_r = r === null || r === void 0 ? void 0 : r["".concat(_this.id)]) !== null && _r !== void 0 ? _r : '--';
|
|
@@ -50,12 +52,13 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
50
52
|
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
51
53
|
}) : null;
|
|
52
54
|
});
|
|
53
|
-
_defineProperty(this, "editRender", function () {
|
|
55
|
+
_defineProperty(this, "editRender", function (p) {
|
|
54
56
|
var _this$componentConfig, _this$componentConfig2;
|
|
55
57
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
56
58
|
title: _this.name,
|
|
57
59
|
name: _this.id,
|
|
58
60
|
rules: _this.rules,
|
|
61
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
59
62
|
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,
|
|
60
63
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
61
64
|
});
|
|
@@ -131,6 +134,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
131
134
|
this.name = '开票金额';
|
|
132
135
|
this.id = "".concat(options.id, "_ordinaryMoney");
|
|
133
136
|
this.sortField = "".concat(options.id, "_ordinaryMoney");
|
|
137
|
+
this.formField = "".concat(options.id, "_ordinaryMoney");
|
|
134
138
|
this.type = options.type;
|
|
135
139
|
this.componentConfig = options.componentConfig;
|
|
136
140
|
this.rules = [{
|
|
@@ -146,6 +150,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
146
150
|
this.width = 200;
|
|
147
151
|
this.isCombinationComponent = false;
|
|
148
152
|
this.canSort = true;
|
|
153
|
+
this.dataType = 'number';
|
|
149
154
|
this.children = [];
|
|
150
155
|
});
|
|
151
156
|
export default OrdinaryMoney;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption,
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record, ColumnConfig } from '../../type';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare class OrdinarySerial implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
@@ -6,25 +6,23 @@ declare class OrdinarySerial implements ComponentInterface {
|
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
canFilter: boolean;
|
|
10
|
-
canGroup: boolean;
|
|
11
|
-
canHidden: boolean;
|
|
12
|
-
dataType: DataType;
|
|
13
9
|
showContains: boolean;
|
|
14
10
|
componentConfig: ComponentInterface["componentConfig"];
|
|
15
11
|
effects: ComponentInterface["effects"];
|
|
16
12
|
align: ALignType;
|
|
17
13
|
width: number;
|
|
18
14
|
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
19
16
|
canSort: boolean;
|
|
20
17
|
children: ComponentInterface[];
|
|
18
|
+
dataType: ComponentInterface['dataType'];
|
|
21
19
|
constructor(options: PickOption);
|
|
22
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
23
21
|
renderPc: (value: unknown, r: Record) => any;
|
|
24
22
|
renderLog: (r: Record) => any;
|
|
25
23
|
getComponentValue: (r: Record) => any;
|
|
26
24
|
renderExport: (value: any) => any;
|
|
27
|
-
editRender: () => React.JSX.Element;
|
|
25
|
+
editRender: (p: any) => React.JSX.Element;
|
|
28
26
|
filterConfig: (item: ColumnConfig) => {
|
|
29
27
|
searchDefaultConditions: "like";
|
|
30
28
|
type: string;
|
|
@@ -19,18 +19,16 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
19
19
|
_defineProperty(this, "sortField", void 0);
|
|
20
20
|
_defineProperty(this, "type", void 0);
|
|
21
21
|
_defineProperty(this, "rules", void 0);
|
|
22
|
-
_defineProperty(this, "canFilter", void 0);
|
|
23
|
-
_defineProperty(this, "canGroup", void 0);
|
|
24
|
-
_defineProperty(this, "canHidden", void 0);
|
|
25
|
-
_defineProperty(this, "dataType", void 0);
|
|
26
22
|
_defineProperty(this, "showContains", void 0);
|
|
27
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
28
24
|
_defineProperty(this, "effects", void 0);
|
|
29
25
|
_defineProperty(this, "align", void 0);
|
|
30
26
|
_defineProperty(this, "width", void 0);
|
|
31
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "formField", void 0);
|
|
32
29
|
_defineProperty(this, "canSort", void 0);
|
|
33
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
34
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
36
34
|
id: _this.id,
|
|
@@ -52,12 +50,13 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
52
50
|
_defineProperty(this, "renderExport", function (value) {
|
|
53
51
|
return value !== null && value !== void 0 ? value : '--';
|
|
54
52
|
});
|
|
55
|
-
_defineProperty(this, "editRender", function () {
|
|
53
|
+
_defineProperty(this, "editRender", function (p) {
|
|
56
54
|
var _this$componentConfig, _this$componentConfig2;
|
|
57
55
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
58
56
|
title: _this.name,
|
|
59
57
|
name: _this.id,
|
|
60
58
|
rules: _this.rules,
|
|
59
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
61
60
|
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,
|
|
62
61
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
63
62
|
});
|
|
@@ -79,10 +78,8 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
79
78
|
this.name = '纳税人识别号';
|
|
80
79
|
this.id = "".concat(options.id, "_ordinarySerial");
|
|
81
80
|
this.sortField = "".concat(options.id, "_ordinarySerial");
|
|
81
|
+
this.formField = "".concat(options.id, "_ordinarySerial");
|
|
82
82
|
this.type = options.type;
|
|
83
|
-
this.canFilter = true;
|
|
84
|
-
this.canGroup = true;
|
|
85
|
-
this.canHidden = false;
|
|
86
83
|
this.showContains = false;
|
|
87
84
|
this.dataType = 'string';
|
|
88
85
|
this.componentConfig = options.componentConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption,
|
|
1
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import OrdinaryHeader from './OrdinaryHeader';
|
|
4
4
|
import OrdinaryMoney from './OrdinaryMoney';
|
|
@@ -9,20 +9,18 @@ declare class Ordinary implements ComponentInterface {
|
|
|
9
9
|
sortField: string;
|
|
10
10
|
type: string;
|
|
11
11
|
rules: any[];
|
|
12
|
-
canFilter: boolean;
|
|
13
|
-
canGroup: boolean;
|
|
14
|
-
canHidden: boolean;
|
|
15
|
-
dataType: DataType;
|
|
16
12
|
showContains: boolean;
|
|
17
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
18
14
|
ordinaryMoney: OrdinaryMoney;
|
|
19
15
|
ordinaryHeader: OrdinaryHeader;
|
|
20
16
|
ordinarySerial: OrdinarySerial;
|
|
21
17
|
isCombinationComponent: boolean;
|
|
18
|
+
formField: string;
|
|
22
19
|
canSort: boolean;
|
|
23
20
|
children: ComponentInterface[];
|
|
21
|
+
dataType: ComponentInterface['dataType'];
|
|
24
22
|
constructor(options: PickOption);
|
|
25
|
-
editRender: () => React.JSX.Element;
|
|
23
|
+
editRender: (p: any) => React.JSX.Element;
|
|
26
24
|
renderPc: () => null;
|
|
27
25
|
renderLog: (r: Record) => React.JSX.Element;
|
|
28
26
|
getComponentValue: (r: Record) => {
|
|
@@ -22,24 +22,23 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
|
|
|
22
22
|
_defineProperty(this, "sortField", void 0);
|
|
23
23
|
_defineProperty(this, "type", void 0);
|
|
24
24
|
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "canFilter", void 0);
|
|
26
|
-
_defineProperty(this, "canGroup", void 0);
|
|
27
|
-
_defineProperty(this, "canHidden", void 0);
|
|
28
|
-
_defineProperty(this, "dataType", void 0);
|
|
29
25
|
_defineProperty(this, "showContains", void 0);
|
|
30
26
|
_defineProperty(this, "componentConfig", void 0);
|
|
31
27
|
_defineProperty(this, "ordinaryMoney", void 0);
|
|
32
28
|
_defineProperty(this, "ordinaryHeader", void 0);
|
|
33
29
|
_defineProperty(this, "ordinarySerial", void 0);
|
|
34
30
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
|
+
_defineProperty(this, "formField", void 0);
|
|
35
32
|
_defineProperty(this, "canSort", void 0);
|
|
36
33
|
_defineProperty(this, "children", void 0);
|
|
37
|
-
_defineProperty(this, "
|
|
34
|
+
_defineProperty(this, "dataType", void 0);
|
|
35
|
+
_defineProperty(this, "editRender", function (p) {
|
|
38
36
|
var _this$componentConfig, _this$componentConfig2;
|
|
39
37
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
40
38
|
title: _this.name,
|
|
41
39
|
name: _this.id,
|
|
42
40
|
rules: _this.rules,
|
|
41
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
43
42
|
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,
|
|
44
43
|
component: /*#__PURE__*/React.createElement(Invoice, _this.componentConfig)
|
|
45
44
|
});
|
|
@@ -68,19 +67,17 @@ var Ordinary = /*#__PURE__*/_createClass(function Ordinary(options) {
|
|
|
68
67
|
});
|
|
69
68
|
this.name = options.name;
|
|
70
69
|
this.id = options.id;
|
|
70
|
+
this.formField = options.id;
|
|
71
71
|
this.sortField = options.id;
|
|
72
72
|
this.type = options.type;
|
|
73
|
-
this.canFilter = false;
|
|
74
|
-
this.canGroup = false;
|
|
75
|
-
this.canHidden = true;
|
|
76
73
|
this.showContains = false;
|
|
77
|
-
this.dataType = 'string';
|
|
78
74
|
this.componentConfig = options.componentConfig;
|
|
79
75
|
this.ordinaryMoney = new OrdinaryMoney(options);
|
|
80
76
|
this.ordinaryHeader = new OrdinaryHeader(options);
|
|
81
77
|
this.ordinarySerial = new OrdinarySerial(options);
|
|
82
78
|
this.isCombinationComponent = true;
|
|
83
79
|
this.canSort = false;
|
|
80
|
+
this.dataType = 'object';
|
|
84
81
|
this.children = [this.ordinaryHeader, this.ordinaryMoney, this.ordinarySerial];
|
|
85
82
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
86
83
|
validator: function validator(_, value) {
|
|
@@ -11,15 +11,17 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
20
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
19
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
22
|
getComponentValue: (r: Record) => any;
|
|
21
23
|
renderExport: (value: any, record: Record) => any;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
25
|
filterConfig: (item: ColumnConfig) => {
|
|
24
26
|
searchDefaultConditions: "eq";
|
|
25
27
|
type: string;
|
|
@@ -24,8 +24,10 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
24
24
|
_defineProperty(this, "align", void 0);
|
|
25
25
|
_defineProperty(this, "width", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
33
|
id: _this.id,
|
|
@@ -56,12 +58,13 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
56
58
|
var _record$_this$id;
|
|
57
59
|
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
|
|
58
60
|
});
|
|
59
|
-
_defineProperty(this, "editRender", function () {
|
|
61
|
+
_defineProperty(this, "editRender", function (p) {
|
|
60
62
|
var _this$componentConfig, _this$componentConfig2;
|
|
61
63
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
62
64
|
title: _this.name,
|
|
63
65
|
name: _this.id,
|
|
64
66
|
rules: _this.rules,
|
|
67
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
65
68
|
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,
|
|
66
69
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
67
70
|
});
|
|
@@ -82,6 +85,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
82
85
|
});
|
|
83
86
|
this.name = '支付宝姓名';
|
|
84
87
|
this.id = "".concat(options.id, "_enterprisePaymentAlipayNick");
|
|
88
|
+
this.formField = "".concat(options.id, "_enterprisePaymentAlipayNick");
|
|
85
89
|
this.sortField = "".concat(options.id, "_enterprisePaymentAlipayNick");
|
|
86
90
|
this.type = options.type;
|
|
87
91
|
this.componentConfig = options.componentConfig;
|
|
@@ -91,6 +95,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
91
95
|
this.width = 200;
|
|
92
96
|
this.isCombinationComponent = false;
|
|
93
97
|
this.canSort = true;
|
|
98
|
+
this.dataType = 'string';
|
|
94
99
|
this.children = [];
|
|
95
100
|
});
|
|
96
101
|
export default PaymentTid;
|
|
@@ -11,15 +11,17 @@ declare class AlipayNo implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
20
|
renderPc: (value: unknown, record: any) => React.JSX.Element;
|
|
19
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
22
|
getComponentValue: (r: Record) => any;
|
|
21
23
|
renderExport: (value: any, record: Record) => any;
|
|
22
|
-
editRender: () => React.JSX.Element;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
25
|
filterConfig: (item: ColumnConfig) => {
|
|
24
26
|
searchDefaultConditions: "eq";
|
|
25
27
|
type: string;
|
|
@@ -24,8 +24,10 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
24
24
|
_defineProperty(this, "align", void 0);
|
|
25
25
|
_defineProperty(this, "width", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
33
|
id: _this.id,
|
|
@@ -56,12 +58,13 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
56
58
|
var _record$_this$id;
|
|
57
59
|
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
|
|
58
60
|
});
|
|
59
|
-
_defineProperty(this, "editRender", function () {
|
|
61
|
+
_defineProperty(this, "editRender", function (p) {
|
|
60
62
|
var _this$componentConfig, _this$componentConfig2;
|
|
61
63
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
62
64
|
title: _this.name,
|
|
63
65
|
name: _this.id,
|
|
64
66
|
rules: _this.rules,
|
|
67
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
65
68
|
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,
|
|
66
69
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
67
70
|
});
|
|
@@ -82,6 +85,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
82
85
|
});
|
|
83
86
|
this.name = '支付宝账号';
|
|
84
87
|
this.id = "".concat(options.id, "_enterprisePaymentAlipayNo");
|
|
88
|
+
this.formField = "".concat(options.id, "_enterprisePaymentAlipayNo");
|
|
85
89
|
this.sortField = "".concat(options.id, "_enterprisePaymentAlipayNo");
|
|
86
90
|
this.type = options.type;
|
|
87
91
|
this.componentConfig = options.componentConfig;
|
|
@@ -90,6 +94,7 @@ var AlipayNo = /*#__PURE__*/_createClass(function AlipayNo(options) {
|
|
|
90
94
|
this.isCombinationComponent = false;
|
|
91
95
|
this.canSort = true;
|
|
92
96
|
this.children = [];
|
|
97
|
+
this.dataType = 'string';
|
|
93
98
|
this.rules = [{
|
|
94
99
|
validator: function validator(_, value) {
|
|
95
100
|
if (/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value)) {
|
|
@@ -10,15 +10,18 @@ declare class AlipayTime implements ComponentInterface {
|
|
|
10
10
|
align: ALignType;
|
|
11
11
|
width: number;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
format: ComponentInterface['format'];
|
|
15
18
|
constructor(options: PickOption);
|
|
16
19
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
17
20
|
renderPc: (value: unknown, record: Record) => any;
|
|
18
21
|
renderLog: (r: Record) => any;
|
|
19
22
|
getComponentValue: (r: Record) => any;
|
|
20
23
|
renderExport: (value: string) => string | null;
|
|
21
|
-
editRender: () => React.JSX.Element;
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
22
25
|
filterConfig: (item: ColumnConfig) => {
|
|
23
26
|
searchDefaultConditions: "between";
|
|
24
27
|
type: string;
|
|
@@ -24,8 +24,11 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
24
24
|
_defineProperty(this, "align", void 0);
|
|
25
25
|
_defineProperty(this, "width", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "format", void 0);
|
|
29
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
34
|
id: _this.id,
|
|
@@ -55,12 +58,13 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
55
58
|
_defineProperty(this, "renderExport", function (value) {
|
|
56
59
|
return value ? moment(value).format('YYYY-MM-DD HH:mm:ss') : null;
|
|
57
60
|
});
|
|
58
|
-
_defineProperty(this, "editRender", function () {
|
|
61
|
+
_defineProperty(this, "editRender", function (p) {
|
|
59
62
|
var _this$componentConfig, _this$componentConfig2;
|
|
60
63
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
61
64
|
title: _this.name,
|
|
62
65
|
name: _this.id,
|
|
63
66
|
rules: _this.rules,
|
|
67
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
64
68
|
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,
|
|
65
69
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
66
70
|
});
|
|
@@ -90,6 +94,7 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
90
94
|
this.name = '打款时间';
|
|
91
95
|
this.id = "".concat(options.id, "_enterprisePaymentTime");
|
|
92
96
|
this.sortField = "".concat(options.id, "_enterprisePaymentTime");
|
|
97
|
+
this.formField = "".concat(options.id, "_enterprisePaymentTime");
|
|
93
98
|
this.type = options.type;
|
|
94
99
|
this.componentConfig = options.componentConfig;
|
|
95
100
|
this.rules = [];
|
|
@@ -98,5 +103,7 @@ var AlipayTime = /*#__PURE__*/_createClass(function AlipayTime(options) {
|
|
|
98
103
|
this.isCombinationComponent = false;
|
|
99
104
|
this.canSort = true;
|
|
100
105
|
this.children = [];
|
|
106
|
+
this.dataType = 'string';
|
|
107
|
+
this.format = 'dateTime';
|
|
101
108
|
});
|
|
102
109
|
export default AlipayTime;
|
|
@@ -11,12 +11,14 @@ declare class BuyerNick implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
width: number;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
16
18
|
constructor(options: PickOption);
|
|
17
19
|
renderTaoBaoWangWang: (record: any, params: any) => React.JSX.Element;
|
|
18
20
|
renderClient: (record: Record, params: any) => React.JSX.Element | null;
|
|
19
|
-
editRender: () => React.JSX.Element;
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
20
22
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
21
23
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
24
|
getComponentValue: (r: Record) => any;
|
|
@@ -32,8 +32,10 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
32
32
|
_defineProperty(this, "align", void 0);
|
|
33
33
|
_defineProperty(this, "width", void 0);
|
|
34
34
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
35
|
+
_defineProperty(this, "formField", void 0);
|
|
35
36
|
_defineProperty(this, "canSort", void 0);
|
|
36
37
|
_defineProperty(this, "children", void 0);
|
|
38
|
+
_defineProperty(this, "dataType", void 0);
|
|
37
39
|
_defineProperty(this, "renderTaoBaoWangWang", function (record, params) {
|
|
38
40
|
var _this$id$split = _this.id.split('_'),
|
|
39
41
|
_this$id$split2 = _slicedToArray(_this$id$split, 1),
|
|
@@ -57,12 +59,13 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
57
59
|
value: (params === null || params === void 0 ? void 0 : params.platform) === 'tb' ? _this.renderTaoBaoWangWang(record, params) : record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.buyerNick
|
|
58
60
|
}) : null;
|
|
59
61
|
});
|
|
60
|
-
_defineProperty(this, "editRender", function () {
|
|
62
|
+
_defineProperty(this, "editRender", function (p) {
|
|
61
63
|
var _this$componentConfig, _this$componentConfig2;
|
|
62
64
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
63
65
|
title: _this.name,
|
|
64
66
|
name: _this.id,
|
|
65
67
|
rules: _this.rules,
|
|
68
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
66
69
|
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,
|
|
67
70
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
68
71
|
});
|
|
@@ -118,6 +121,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
118
121
|
this.name = '买家昵称';
|
|
119
122
|
this.id = "".concat(options.id, "_enterprisePaymentBuyerNick");
|
|
120
123
|
this.sortField = "".concat(options.id, "_enterprisePaymentBuyerNick");
|
|
124
|
+
this.formField = "".concat(options.id, "_enterprisePaymentBuyerNick");
|
|
121
125
|
this.type = options.type;
|
|
122
126
|
this.componentConfig = options.componentConfig;
|
|
123
127
|
this.effects = options.effects;
|
|
@@ -127,6 +131,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
127
131
|
this.isCombinationComponent = false;
|
|
128
132
|
this.canSort = true;
|
|
129
133
|
this.children = [];
|
|
134
|
+
this.dataType = 'string';
|
|
130
135
|
}
|
|
131
136
|
// 渲染淘宝端的时候需要亮灯
|
|
132
137
|
);
|
|
@@ -10,15 +10,17 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
10
10
|
align: ALignType;
|
|
11
11
|
width: number;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
15
17
|
constructor(options: PickOption);
|
|
16
18
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
17
19
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
20
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
21
|
getComponentValue: (r: Record) => any;
|
|
20
22
|
renderExport: (value: string) => string;
|
|
21
|
-
editRender: () => React.JSX.Element;
|
|
23
|
+
editRender: (p: any) => React.JSX.Element;
|
|
22
24
|
filterConfig: (item: ColumnConfig) => {
|
|
23
25
|
searchDefaultConditions: "between";
|
|
24
26
|
type: string;
|