@kmkf-fe-packages/services-components 0.7.10 → 0.7.11-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 +2 -1
- package/dist/esm/components/ActualPayment/index.js +4 -1
- package/dist/esm/components/Address/index.d.ts +2 -1
- package/dist/esm/components/Address/index.js +4 -1
- package/dist/esm/components/Alipay/index.d.ts +2 -1
- package/dist/esm/components/Alipay/index.js +5 -2
- package/dist/esm/components/AlipayAccount/index.d.ts +2 -1
- package/dist/esm/components/AlipayAccount/index.js +4 -1
- package/dist/esm/components/AlipayName/index.d.ts +2 -1
- package/dist/esm/components/AlipayName/index.js +4 -1
- package/dist/esm/components/BuyerNick/index.d.ts +2 -1
- package/dist/esm/components/BuyerNick/index.js +5 -2
- package/dist/esm/components/Cascader/index.d.ts +2 -1
- package/dist/esm/components/Cascader/index.js +4 -1
- package/dist/esm/components/Checkbox/index.d.ts +3 -1
- package/dist/esm/components/Checkbox/index.js +8 -2
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -0
- package/dist/esm/components/CommonDataTime/index.js +4 -0
- package/dist/esm/components/CompletedUser/index.d.ts +2 -0
- package/dist/esm/components/CompletedUser/index.js +6 -1
- package/dist/esm/components/DataTime/index.d.ts +3 -1
- package/dist/esm/components/DataTime/index.js +11 -2
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -1
- package/dist/esm/components/EItemEnCode/index.js +4 -1
- package/dist/esm/components/EItemId/index.d.ts +2 -1
- package/dist/esm/components/EItemId/index.js +4 -1
- package/dist/esm/components/EItemSelect/index.d.ts +2 -1
- package/dist/esm/components/EItemSelect/index.js +4 -1
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -1
- package/dist/esm/components/ErpTradeId/index.js +4 -1
- package/dist/esm/components/Express/index.d.ts +3 -1
- package/dist/esm/components/Express/index.js +6 -1
- package/dist/esm/components/ExpressCode/index.d.ts +2 -1
- package/dist/esm/components/ExpressCode/index.js +4 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +3 -1
- package/dist/esm/components/FlowStatusSelect/index.js +13 -2
- 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 +2 -1
- package/dist/esm/components/Grade/index.js +4 -1
- package/dist/esm/components/Handler/index.d.ts +2 -0
- package/dist/esm/components/Handler/index.js +6 -1
- package/dist/esm/components/Input/index.d.ts +2 -1
- package/dist/esm/components/Input/index.js +6 -2
- package/dist/esm/components/JstItemSelect/index.d.ts +2 -1
- package/dist/esm/components/JstItemSelect/index.js +4 -1
- package/dist/esm/components/JstLogistics/index.d.ts +2 -1
- package/dist/esm/components/JstLogistics/index.js +4 -1
- package/dist/esm/components/JstSendGood/index.d.ts +2 -1
- package/dist/esm/components/JstSendGood/index.js +4 -1
- package/dist/esm/components/JstSupply/index.d.ts +2 -1
- package/dist/esm/components/JstSupply/index.js +4 -1
- package/dist/esm/components/Logistics/index.d.ts +2 -1
- package/dist/esm/components/Logistics/index.js +5 -2
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +2 -1
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +4 -1
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +4 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +4 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +2 -1
- package/dist/esm/components/LogisticsInterception/index.js +4 -1
- package/dist/esm/components/MultSelect/index.d.ts +3 -1
- package/dist/esm/components/MultSelect/index.js +8 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +4 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +2 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +4 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +3 -6
- package/dist/esm/components/Ordinary/OrdinarySerial.js +3 -8
- package/dist/esm/components/Ordinary/index.d.ts +3 -6
- package/dist/esm/components/Ordinary/index.js +4 -8
- package/dist/esm/components/Payment/AlipayNick.d.ts +2 -1
- package/dist/esm/components/Payment/AlipayNick.js +4 -1
- package/dist/esm/components/Payment/AlipayNo.d.ts +2 -1
- package/dist/esm/components/Payment/AlipayNo.js +4 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +3 -1
- package/dist/esm/components/Payment/AlipayTime.js +6 -1
- package/dist/esm/components/Payment/BuyerNick.d.ts +2 -1
- package/dist/esm/components/Payment/BuyerNick.js +4 -1
- package/dist/esm/components/Payment/PaymentAmount.d.ts +2 -1
- package/dist/esm/components/Payment/PaymentAmount.js +4 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +2 -0
- package/dist/esm/components/Payment/PaymentStatus.js +4 -0
- package/dist/esm/components/Payment/PaymentTid.d.ts +2 -1
- package/dist/esm/components/Payment/PaymentTid.js +4 -1
- package/dist/esm/components/Payment/index.d.ts +2 -1
- package/dist/esm/components/Payment/index.js +5 -2
- package/dist/esm/components/Picture/index.d.ts +2 -1
- package/dist/esm/components/Picture/index.js +4 -1
- package/dist/esm/components/PlatForm/index.d.ts +2 -0
- package/dist/esm/components/PlatForm/index.js +4 -0
- package/dist/esm/components/Radio/index.d.ts +3 -1
- package/dist/esm/components/Radio/index.js +8 -2
- package/dist/esm/components/Rate/index.d.ts +2 -1
- package/dist/esm/components/Rate/index.js +4 -1
- package/dist/esm/components/ReceiverAddress/index.d.ts +2 -1
- package/dist/esm/components/ReceiverAddress/index.js +4 -1
- package/dist/esm/components/ReceiverMobile/index.d.ts +2 -1
- package/dist/esm/components/ReceiverMobile/index.js +5 -2
- package/dist/esm/components/ReceiverName/index.d.ts +2 -1
- package/dist/esm/components/ReceiverName/index.js +4 -1
- package/dist/esm/components/Remark/index.d.ts +2 -1
- package/dist/esm/components/Remark/index.js +4 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +3 -6
- package/dist/esm/components/ReturnLogistics/index.js +5 -9
- package/dist/esm/components/Select/index.d.ts +3 -1
- package/dist/esm/components/Select/index.js +8 -2
- package/dist/esm/components/ShopInput/index.d.ts +2 -0
- package/dist/esm/components/ShopInput/index.js +6 -1
- package/dist/esm/components/ShopName/index.d.ts +2 -1
- package/dist/esm/components/ShopName/index.js +4 -1
- package/dist/esm/components/Submitter/index.d.ts +2 -0
- package/dist/esm/components/Submitter/index.js +6 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +2 -1
- package/dist/esm/components/SystemOrderNo/index.js +4 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
- package/dist/esm/components/TemplateSelect/index.js +6 -1
- package/dist/esm/components/TextArea/index.d.ts +2 -1
- package/dist/esm/components/TextArea/index.js +4 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +2 -1
- package/dist/esm/components/ThirdItemSelect/index.js +4 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +4 -6
- package/dist/esm/components/TradeDateTime/index.js +6 -9
- package/dist/esm/components/TradeId/index.d.ts +2 -4
- package/dist/esm/components/TradeId/index.js +6 -9
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -1
- package/dist/esm/components/WorkOrderId/index.js +4 -1
- package/dist/esm/type.d.ts +4 -0
- package/package.json +4 -4
|
@@ -13,9 +13,10 @@ declare class BuyerNick implements ComponentInterface {
|
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
14
|
canSort: boolean;
|
|
15
15
|
children: ComponentInterface[];
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
16
17
|
constructor(options: PickOption);
|
|
17
18
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
18
|
-
editRender: () => React.JSX.Element;
|
|
19
|
+
editRender: (p: any) => React.JSX.Element;
|
|
19
20
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
20
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
21
22
|
getComponentValue: (r: Record) => any;
|
|
@@ -33,6 +33,7 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
33
33
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
34
|
_defineProperty(this, "canSort", void 0);
|
|
35
35
|
_defineProperty(this, "children", void 0);
|
|
36
|
+
_defineProperty(this, "dataType", void 0);
|
|
36
37
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
38
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
38
39
|
id: _this.id,
|
|
@@ -40,12 +41,13 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
40
41
|
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
41
42
|
}) : null;
|
|
42
43
|
});
|
|
43
|
-
_defineProperty(this, "editRender", function () {
|
|
44
|
+
_defineProperty(this, "editRender", function (p) {
|
|
44
45
|
var _this$componentConfig, _this$componentConfig2;
|
|
45
46
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
46
47
|
title: _this.name,
|
|
47
48
|
name: _this.id,
|
|
48
49
|
rules: _this.rules,
|
|
50
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
49
51
|
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,
|
|
50
52
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
51
53
|
});
|
|
@@ -110,5 +112,6 @@ var BuyerNick = /*#__PURE__*/_createClass(function BuyerNick(options) {
|
|
|
110
112
|
this.isCombinationComponent = false;
|
|
111
113
|
this.canSort = true;
|
|
112
114
|
this.children = [];
|
|
115
|
+
this.dataType = 'string';
|
|
113
116
|
});
|
|
114
117
|
export default BuyerNick;
|
|
@@ -12,13 +12,14 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
15
16
|
constructor(options: PickOption);
|
|
16
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
17
18
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
20
|
getComponentValue: (r: Record) => any;
|
|
20
21
|
renderExport: (value: string) => string;
|
|
21
|
-
editRender: () => React.JSX.Element;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
22
23
|
filterConfig: (item: ColumnConfig) => {
|
|
23
24
|
searchDefaultConditions: "between";
|
|
24
25
|
type: string;
|
|
@@ -28,6 +28,7 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
28
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
29
|
_defineProperty(this, "canSort", void 0);
|
|
30
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
34
|
id: _this.id,
|
|
@@ -49,12 +50,13 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
49
50
|
_defineProperty(this, "renderExport", function (value) {
|
|
50
51
|
return value !== null && value !== void 0 ? value : '--';
|
|
51
52
|
});
|
|
52
|
-
_defineProperty(this, "editRender", function () {
|
|
53
|
+
_defineProperty(this, "editRender", function (p) {
|
|
53
54
|
var _this$componentConfig, _this$componentConfig2;
|
|
54
55
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
55
56
|
title: _this.name,
|
|
56
57
|
name: _this.id,
|
|
57
58
|
rules: _this.rules,
|
|
59
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
58
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,
|
|
59
61
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
60
62
|
});
|
|
@@ -135,6 +137,7 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
135
137
|
this.isCombinationComponent = false;
|
|
136
138
|
this.canSort = true;
|
|
137
139
|
this.children = [];
|
|
140
|
+
this.dataType = 'number';
|
|
138
141
|
this.rules = [{
|
|
139
142
|
validator: function validator(_, value) {
|
|
140
143
|
if (/^(\d+)(\.\d{0,2})?$/.test(value)) {
|
|
@@ -19,6 +19,8 @@ declare class PaymentStatus implements ComponentInterface {
|
|
|
19
19
|
isCombinationComponent: boolean;
|
|
20
20
|
canSort: boolean;
|
|
21
21
|
children: ComponentInterface[];
|
|
22
|
+
dataType: ComponentInterface['dataType'];
|
|
23
|
+
options: ComponentInterface['options'];
|
|
22
24
|
constructor(options: PickOption);
|
|
23
25
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
24
26
|
renderPc: (value: unknown, record: any) => any;
|
|
@@ -25,6 +25,8 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
|
+
_defineProperty(this, "options", void 0);
|
|
28
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
31
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
32
|
id: _this.id,
|
|
@@ -74,6 +76,7 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
74
76
|
this.rules = [];
|
|
75
77
|
this.align = 'left';
|
|
76
78
|
this.width = 200;
|
|
79
|
+
this.dataType = 'string';
|
|
77
80
|
this.paymentStatus = {
|
|
78
81
|
WAITING_EXAMINE: '未打款',
|
|
79
82
|
EXAMINED: '审核通过',
|
|
@@ -105,6 +108,7 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
|
|
|
105
108
|
label: '支付宝打款关闭',
|
|
106
109
|
value: '支付宝打款关闭'
|
|
107
110
|
}];
|
|
111
|
+
this.options = this.paymentStatusOptions;
|
|
108
112
|
this.isCombinationComponent = false;
|
|
109
113
|
this.canSort = true;
|
|
110
114
|
this.children = [];
|
|
@@ -12,13 +12,14 @@ declare class PaymentTid implements ComponentInterface {
|
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
15
16
|
constructor(options: PickOption);
|
|
16
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
17
18
|
renderPc: (value: unknown, record: any) => React.JSX.Element;
|
|
18
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
20
|
getComponentValue: (r: Record) => any;
|
|
20
21
|
renderExport: (value: string) => string;
|
|
21
|
-
editRender: () => React.JSX.Element;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
22
23
|
filterConfig: (item: ColumnConfig) => {
|
|
23
24
|
searchDefaultConditions: "in";
|
|
24
25
|
type: string;
|
|
@@ -25,6 +25,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
31
|
id: _this.id,
|
|
@@ -46,12 +47,13 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
46
47
|
_defineProperty(this, "renderExport", function (value) {
|
|
47
48
|
return value !== null && value !== void 0 ? value : '--';
|
|
48
49
|
});
|
|
49
|
-
_defineProperty(this, "editRender", function () {
|
|
50
|
+
_defineProperty(this, "editRender", function (p) {
|
|
50
51
|
var _this$componentConfig, _this$componentConfig2;
|
|
51
52
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
52
53
|
title: _this.name,
|
|
53
54
|
name: _this.id,
|
|
54
55
|
rules: _this.rules,
|
|
56
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
55
57
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
56
58
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
57
59
|
});
|
|
@@ -84,5 +86,6 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
84
86
|
this.isCombinationComponent = false;
|
|
85
87
|
this.canSort = true;
|
|
86
88
|
this.children = [];
|
|
89
|
+
this.dataType = 'string';
|
|
87
90
|
});
|
|
88
91
|
export default PaymentTid;
|
|
@@ -24,6 +24,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
24
24
|
isCombinationComponent: boolean;
|
|
25
25
|
canSort: boolean;
|
|
26
26
|
children: ComponentInterface[];
|
|
27
|
+
dataType: ComponentInterface['dataType'];
|
|
27
28
|
constructor(options: PickOption);
|
|
28
29
|
renderClient: (record: any) => React.JSX.Element;
|
|
29
30
|
renderPc: () => null;
|
|
@@ -38,7 +39,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
38
39
|
enterprisePaymentTime: any;
|
|
39
40
|
};
|
|
40
41
|
renderExport: () => null;
|
|
41
|
-
editRender: (
|
|
42
|
+
editRender: (p: any) => React.JSX.Element;
|
|
42
43
|
filterConfig: (item: ColumnConfig) => ({
|
|
43
44
|
searchDefaultConditions: "eq";
|
|
44
45
|
type: string;
|
|
@@ -37,6 +37,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
37
37
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
38
38
|
_defineProperty(this, "canSort", void 0);
|
|
39
39
|
_defineProperty(this, "children", void 0);
|
|
40
|
+
_defineProperty(this, "dataType", void 0);
|
|
40
41
|
_defineProperty(this, "renderClient", function (record) {
|
|
41
42
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderClient(record), _this.paymentAmount.renderClient(record), _this.alipayNo.renderClient(record), _this.buyerNick.renderClient(record), _this.paymentTid.renderClient(record), _this.paymentStatus.renderClient(record), _this.payTime.renderClient(record));
|
|
42
43
|
});
|
|
@@ -60,15 +61,16 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
60
61
|
_defineProperty(this, "renderExport", function () {
|
|
61
62
|
return null;
|
|
62
63
|
});
|
|
63
|
-
_defineProperty(this, "editRender", function (
|
|
64
|
+
_defineProperty(this, "editRender", function (p) {
|
|
64
65
|
var _this$componentConfig, _this$componentConfig2;
|
|
65
66
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
66
67
|
title: _this.name,
|
|
67
68
|
name: _this.id,
|
|
68
69
|
rules: _this.rules,
|
|
70
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
69
71
|
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,
|
|
70
72
|
component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
|
|
71
|
-
onBlur:
|
|
73
|
+
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
72
74
|
}))
|
|
73
75
|
});
|
|
74
76
|
});
|
|
@@ -120,5 +122,6 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
120
122
|
return Promise.resolve();
|
|
121
123
|
}
|
|
122
124
|
}];
|
|
125
|
+
this.dataType = 'object';
|
|
123
126
|
});
|
|
124
127
|
export default Logistics;
|
|
@@ -11,6 +11,7 @@ declare class BasicPicture implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
14
15
|
constructor(options: PickOption);
|
|
15
16
|
formatPictures: (pictures: string) => string[];
|
|
16
17
|
render: (value: Value) => React.JSX.Element | null;
|
|
@@ -18,7 +19,7 @@ declare class BasicPicture implements ComponentInterface {
|
|
|
18
19
|
renderLog: (r: Record) => React.JSX.Element | React.JSX.Element[] | null;
|
|
19
20
|
getComponentValue: (r: Record) => any;
|
|
20
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
21
|
-
editRender: () => React.JSX.Element;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
22
23
|
/**
|
|
23
24
|
*
|
|
24
25
|
* @returns 图片类型的导出需要在导出时单独处理
|
|
@@ -25,6 +25,7 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
29
|
_defineProperty(this, "formatPictures", function (pictures) {
|
|
29
30
|
pictures = pictures.replace(/[\[\]]/g, '');
|
|
30
31
|
pictures = pictures.replace(/\s/g, '');
|
|
@@ -85,12 +86,13 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
85
86
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
86
87
|
}) : null;
|
|
87
88
|
});
|
|
88
|
-
_defineProperty(this, "editRender", function () {
|
|
89
|
+
_defineProperty(this, "editRender", function (p) {
|
|
89
90
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
|
|
90
91
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
91
92
|
title: _this.name,
|
|
92
93
|
name: _this.id,
|
|
93
94
|
rules: _this.rules,
|
|
95
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
94
96
|
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,
|
|
95
97
|
component: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.isSingleShop ? /*#__PURE__*/React.createElement(ApaasUpload, _this.componentConfig) : /*#__PURE__*/React.createElement(ApaasUploadAsync, _extends({}, _this.componentConfig, {
|
|
96
98
|
uniqueKey: _this.id,
|
|
@@ -113,5 +115,6 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
|
|
|
113
115
|
this.isCombinationComponent = false;
|
|
114
116
|
this.canSort = true;
|
|
115
117
|
this.children = [];
|
|
118
|
+
this.dataType = 'string';
|
|
116
119
|
});
|
|
117
120
|
export default BasicPicture;
|
|
@@ -11,6 +11,8 @@ declare class PlatForm implements ComponentInterface {
|
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
13
|
platInstance: InstanceType<typeof PlatData>;
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
|
+
options: ComponentInterface['options'];
|
|
14
16
|
constructor();
|
|
15
17
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
18
|
renderExport: (value: any, record: Record) => string;
|
|
@@ -20,6 +20,8 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
|
20
20
|
_defineProperty(this, "canSort", void 0);
|
|
21
21
|
_defineProperty(this, "children", void 0);
|
|
22
22
|
_defineProperty(this, "platInstance", void 0);
|
|
23
|
+
_defineProperty(this, "dataType", void 0);
|
|
24
|
+
_defineProperty(this, "options", void 0);
|
|
23
25
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
24
26
|
var _platMap$record;
|
|
25
27
|
var platMap = _this.platInstance.getPlatMap();
|
|
@@ -69,5 +71,7 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
|
|
|
69
71
|
this.canSort = false;
|
|
70
72
|
this.children = [];
|
|
71
73
|
this.platInstance = PlatData.getInstance();
|
|
74
|
+
this.dataType = 'string';
|
|
75
|
+
this.options = this.platInstance.getPlatSelectList();
|
|
72
76
|
});
|
|
73
77
|
export default PlatForm;
|
|
@@ -14,6 +14,8 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
15
|
canSort: boolean;
|
|
16
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
18
|
+
options: ComponentInterface['options'];
|
|
17
19
|
constructor(options: PickOption);
|
|
18
20
|
render: (value: Value) => React.JSX.Element;
|
|
19
21
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -24,7 +26,7 @@ declare class BasicRadio implements ComponentInterface {
|
|
|
24
26
|
};
|
|
25
27
|
renderExport: (value: any, record: Record) => string;
|
|
26
28
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
27
|
-
editRender: () => React.JSX.Element;
|
|
29
|
+
editRender: (p: any) => React.JSX.Element;
|
|
28
30
|
filterConfig: (item: ColumnConfig) => {
|
|
29
31
|
searchDefaultConditions: "in";
|
|
30
32
|
type: string;
|
|
@@ -14,7 +14,8 @@ import get from 'lodash/get';
|
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
16
16
|
var _this = this,
|
|
17
|
-
_this$componentConfig3
|
|
17
|
+
_this$componentConfig3,
|
|
18
|
+
_this$componentConfig4;
|
|
18
19
|
_classCallCheck(this, BasicRadio);
|
|
19
20
|
_defineProperty(this, "name", void 0);
|
|
20
21
|
_defineProperty(this, "id", void 0);
|
|
@@ -25,6 +26,8 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
25
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
27
|
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
|
+
_defineProperty(this, "options", void 0);
|
|
28
31
|
_defineProperty(this, "render", function (value) {
|
|
29
32
|
var _value$value;
|
|
30
33
|
return /*#__PURE__*/React.createElement("span", null, value === null || value === void 0 ? void 0 : value.value, (value === null || value === void 0 ? void 0 : value.value) && (value === null || value === void 0 ? void 0 : (_value$value = value.value) === null || _value$value === void 0 ? void 0 : _value$value.indexOf('其他')) > -1 && (value === null || value === void 0 ? void 0 : value.other) && "(".concat(value === null || value === void 0 ? void 0 : value.other, ")"));
|
|
@@ -58,12 +61,13 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
58
61
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
59
62
|
}) : null;
|
|
60
63
|
});
|
|
61
|
-
_defineProperty(this, "editRender", function () {
|
|
64
|
+
_defineProperty(this, "editRender", function (p) {
|
|
62
65
|
var _this$componentConfig, _this$componentConfig2;
|
|
63
66
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
64
67
|
title: _this.name,
|
|
65
68
|
name: _this.id,
|
|
66
69
|
rules: _this.rules,
|
|
70
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
67
71
|
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,
|
|
68
72
|
component: /*#__PURE__*/React.createElement(ApaasRadio, _this.componentConfig)
|
|
69
73
|
});
|
|
@@ -107,5 +111,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
107
111
|
return Promise.resolve();
|
|
108
112
|
}
|
|
109
113
|
}] : [];
|
|
114
|
+
this.dataType = 'string';
|
|
115
|
+
this.options = ((_this$componentConfig4 = this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.options) || [];
|
|
110
116
|
});
|
|
111
117
|
export default BasicRadio;
|
|
@@ -18,6 +18,7 @@ declare class BasicRate implements ComponentInterface {
|
|
|
18
18
|
isCombinationComponent: boolean;
|
|
19
19
|
canSort: boolean;
|
|
20
20
|
children: ComponentInterface[];
|
|
21
|
+
dataType: ComponentInterface['dataType'];
|
|
21
22
|
constructor(options: PickOption);
|
|
22
23
|
render: (value: Value) => React.JSX.Element;
|
|
23
24
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -25,7 +26,7 @@ declare class BasicRate implements ComponentInterface {
|
|
|
25
26
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
26
27
|
getComponentValue: (r: Record) => any;
|
|
27
28
|
renderExport: (value: any, record: any) => any;
|
|
28
|
-
editRender: () => React.JSX.Element;
|
|
29
|
+
editRender: (p: any) => React.JSX.Element;
|
|
29
30
|
filterConfig: () => never[];
|
|
30
31
|
}
|
|
31
32
|
export default BasicRate;
|
|
@@ -25,6 +25,7 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
29
|
_defineProperty(this, "render", function (value) {
|
|
29
30
|
return /*#__PURE__*/React.createElement("div", null, value === null || value === void 0 ? void 0 : value.map(function (item) {
|
|
30
31
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -100,12 +101,13 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
100
101
|
}, [])) || [];
|
|
101
102
|
return textArr === null || textArr === void 0 ? void 0 : textArr.join(';');
|
|
102
103
|
});
|
|
103
|
-
_defineProperty(this, "editRender", function () {
|
|
104
|
+
_defineProperty(this, "editRender", function (p) {
|
|
104
105
|
var _this$componentConfig, _this$componentConfig2;
|
|
105
106
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
106
107
|
title: _this.name,
|
|
107
108
|
name: _this.id,
|
|
108
109
|
rules: _this.rules,
|
|
110
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
109
111
|
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,
|
|
110
112
|
component: /*#__PURE__*/React.createElement(ApaasRate, _extends({}, _this.componentConfig, {
|
|
111
113
|
allowClear: false,
|
|
@@ -130,6 +132,7 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
|
|
|
130
132
|
this.canSort = true;
|
|
131
133
|
this.children = [];
|
|
132
134
|
this.rules = [];
|
|
135
|
+
this.dataType = 'object';
|
|
133
136
|
this.rateMap = {
|
|
134
137
|
0: '',
|
|
135
138
|
0.5: '非常差',
|
|
@@ -17,6 +17,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
17
17
|
canSort: boolean;
|
|
18
18
|
children: ComponentInterface[];
|
|
19
19
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
20
|
+
dataType: ComponentInterface['dataType'];
|
|
20
21
|
constructor(options: PickOption);
|
|
21
22
|
render: (value: Value) => React.JSX.Element;
|
|
22
23
|
transTextToNumber: (value?: string) => string | number | undefined;
|
|
@@ -28,7 +29,7 @@ declare class BasicInput implements ComponentInterface {
|
|
|
28
29
|
};
|
|
29
30
|
renderExport: (value: any, record: any) => string;
|
|
30
31
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
31
|
-
editRender: () => React.JSX.Element;
|
|
32
|
+
editRender: (p: any) => React.JSX.Element;
|
|
32
33
|
filterConfig: () => never[];
|
|
33
34
|
}
|
|
34
35
|
export default BasicInput;
|
|
@@ -27,6 +27,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
27
27
|
_defineProperty(this, "canSort", void 0);
|
|
28
28
|
_defineProperty(this, "children", void 0);
|
|
29
29
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
31
|
_defineProperty(this, "render", function (value) {
|
|
31
32
|
var _value$address;
|
|
32
33
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -91,12 +92,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
91
92
|
value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
|
|
92
93
|
}) : null;
|
|
93
94
|
});
|
|
94
|
-
_defineProperty(this, "editRender", function () {
|
|
95
|
+
_defineProperty(this, "editRender", function (p) {
|
|
95
96
|
var _this$componentConfig, _this$componentConfig2;
|
|
96
97
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
97
98
|
title: _this.name,
|
|
98
99
|
name: _this.id,
|
|
99
100
|
rules: _this.rules,
|
|
101
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
100
102
|
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,
|
|
101
103
|
component: /*#__PURE__*/React.createElement(Address, _this.componentConfig)
|
|
102
104
|
});
|
|
@@ -126,5 +128,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
126
128
|
}] : [];
|
|
127
129
|
this.effects = options.effects;
|
|
128
130
|
this.addressDateInstance = AddressData.getInstance();
|
|
131
|
+
this.dataType = 'object';
|
|
129
132
|
});
|
|
130
133
|
export default BasicInput;
|
|
@@ -11,13 +11,14 @@ declare class ReceiverMobile implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
14
15
|
constructor(options: PickOption);
|
|
15
16
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
16
17
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
19
|
getComponentValue: (r: Record) => any;
|
|
19
20
|
renderExport: (value: any, record: Record) => any;
|
|
20
|
-
editRender: (
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
22
23
|
searchDefaultConditions: "eq";
|
|
23
24
|
type: string;
|
|
@@ -25,6 +25,7 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
31
|
id: _this.id,
|
|
@@ -54,17 +55,18 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
54
55
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
55
56
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")];
|
|
56
57
|
});
|
|
57
|
-
_defineProperty(this, "editRender", function (
|
|
58
|
+
_defineProperty(this, "editRender", function (p) {
|
|
58
59
|
var _this$componentConfig, _this$componentConfig2;
|
|
59
60
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
60
61
|
title: _this.name,
|
|
61
62
|
name: _this.id,
|
|
62
63
|
rules: _this.rules,
|
|
64
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
63
65
|
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
66
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
65
67
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
66
68
|
onBlur: function onBlur(e) {
|
|
67
|
-
|
|
69
|
+
p === null || p === void 0 ? void 0 : p.onBlur(e.target.value, 'receiveMobile');
|
|
68
70
|
}
|
|
69
71
|
}))
|
|
70
72
|
});
|
|
@@ -95,5 +97,6 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
95
97
|
this.isCombinationComponent = false;
|
|
96
98
|
this.canSort = true;
|
|
97
99
|
this.children = [];
|
|
100
|
+
this.dataType = 'string';
|
|
98
101
|
});
|
|
99
102
|
export default ReceiverMobile;
|
|
@@ -11,13 +11,14 @@ declare class ReceiverName implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
14
15
|
constructor(options: PickOption);
|
|
15
16
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
17
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
19
|
getComponentValue: (r: Record) => any;
|
|
19
20
|
renderExport: (value: any, record: Record) => any;
|
|
20
|
-
editRender: () => React.JSX.Element;
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
22
23
|
searchDefaultConditions: "eq";
|
|
23
24
|
type: string;
|
|
@@ -25,6 +25,7 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
26
|
_defineProperty(this, "canSort", void 0);
|
|
27
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
31
|
id: _this.id,
|
|
@@ -54,12 +55,13 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
54
55
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
55
56
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")];
|
|
56
57
|
});
|
|
57
|
-
_defineProperty(this, "editRender", function () {
|
|
58
|
+
_defineProperty(this, "editRender", function (p) {
|
|
58
59
|
var _this$componentConfig, _this$componentConfig2;
|
|
59
60
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
60
61
|
title: _this.name,
|
|
61
62
|
name: _this.id,
|
|
62
63
|
rules: _this.rules,
|
|
64
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
63
65
|
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
66
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
65
67
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -92,5 +94,6 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
92
94
|
this.isCombinationComponent = false;
|
|
93
95
|
this.canSort = true;
|
|
94
96
|
this.children = [];
|
|
97
|
+
this.dataType = 'string';
|
|
95
98
|
});
|
|
96
99
|
export default ReceiverName;
|
|
@@ -16,6 +16,7 @@ declare class ERemark implements ComponentInterface {
|
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
17
|
canSort: boolean;
|
|
18
18
|
children: ComponentInterface[];
|
|
19
|
+
dataType: ComponentInterface['dataType'];
|
|
19
20
|
constructor(options: PickOption);
|
|
20
21
|
render: (value: Value) => React.JSX.Element;
|
|
21
22
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -26,7 +27,7 @@ declare class ERemark implements ComponentInterface {
|
|
|
26
27
|
flag: any;
|
|
27
28
|
};
|
|
28
29
|
renderExport: (value: unknown, record: Record) => any;
|
|
29
|
-
editRender: () => React.JSX.Element;
|
|
30
|
+
editRender: (p: any) => React.JSX.Element;
|
|
30
31
|
filterConfig: (item: ColumnConfig) => {
|
|
31
32
|
searchDefaultConditions: "like";
|
|
32
33
|
type: string;
|
|
@@ -33,6 +33,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
33
33
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
34
|
_defineProperty(this, "canSort", void 0);
|
|
35
35
|
_defineProperty(this, "children", void 0);
|
|
36
|
+
_defineProperty(this, "dataType", void 0);
|
|
36
37
|
_defineProperty(this, "render", function (value) {
|
|
37
38
|
var index = get(value, 'flag');
|
|
38
39
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -75,12 +76,13 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
75
76
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
77
|
return get(record, "".concat(_this.id, "_remark"));
|
|
77
78
|
});
|
|
78
|
-
_defineProperty(this, "editRender", function () {
|
|
79
|
+
_defineProperty(this, "editRender", function (p) {
|
|
79
80
|
var _this$componentConfig, _this$componentConfig2;
|
|
80
81
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
81
82
|
title: _this.name,
|
|
82
83
|
name: _this.id,
|
|
83
84
|
rules: _this.rules,
|
|
85
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
84
86
|
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,
|
|
85
87
|
component: /*#__PURE__*/React.createElement(Remark, _this.componentConfig)
|
|
86
88
|
});
|
|
@@ -106,6 +108,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
106
108
|
this.sortField = "".concat(options.id, "_remark");
|
|
107
109
|
this.type = options.type;
|
|
108
110
|
this.componentConfig = options.componentConfig;
|
|
111
|
+
this.dataType = 'object';
|
|
109
112
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
110
113
|
validator: function validator(_, value) {
|
|
111
114
|
var _this$componentConfig4;
|
|
@@ -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 { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
import Express from '../Express';
|
|
@@ -9,10 +9,6 @@ declare class ReturnLogistics 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
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
@@ -21,6 +17,7 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
21
17
|
isCombinationComponent: boolean;
|
|
22
18
|
canSort: boolean;
|
|
23
19
|
children: ComponentInterface[];
|
|
20
|
+
dataType: ComponentInterface['dataType'];
|
|
24
21
|
constructor(options: PickOption);
|
|
25
22
|
renderClient: (record: any) => React.JSX.Element;
|
|
26
23
|
renderPc: () => null;
|
|
@@ -30,7 +27,7 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
30
27
|
order: any;
|
|
31
28
|
};
|
|
32
29
|
renderExport: () => null;
|
|
33
|
-
editRender: (
|
|
30
|
+
editRender: (p: any) => React.JSX.Element;
|
|
34
31
|
filterConfig: (item: ColumnConfig) => ({
|
|
35
32
|
searchDefaultConditions: "in";
|
|
36
33
|
type: string;
|