@kmkf-fe-packages/services-components 0.7.12-alpha.0 → 0.7.12-alpha.2
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 +1 -2
- package/dist/esm/components/ActualPayment/index.js +1 -4
- package/dist/esm/components/Address/index.d.ts +1 -2
- package/dist/esm/components/Address/index.js +1 -4
- package/dist/esm/components/Alipay/index.d.ts +1 -2
- package/dist/esm/components/Alipay/index.js +2 -5
- package/dist/esm/components/AlipayAccount/index.d.ts +1 -2
- package/dist/esm/components/AlipayAccount/index.js +1 -4
- package/dist/esm/components/AlipayName/index.d.ts +1 -2
- package/dist/esm/components/AlipayName/index.js +1 -4
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +24 -9
- package/dist/esm/components/Cascader/index.d.ts +1 -2
- package/dist/esm/components/Cascader/index.js +1 -4
- package/dist/esm/components/Checkbox/index.d.ts +1 -3
- package/dist/esm/components/Checkbox/index.js +2 -8
- package/dist/esm/components/CommonDataTime/index.d.ts +0 -2
- package/dist/esm/components/CommonDataTime/index.js +0 -4
- package/dist/esm/components/CompletedUser/index.d.ts +0 -2
- package/dist/esm/components/CompletedUser/index.js +1 -6
- package/dist/esm/components/DataTime/index.d.ts +1 -3
- package/dist/esm/components/DataTime/index.js +2 -11
- package/dist/esm/components/EItemEnCode/index.d.ts +1 -2
- package/dist/esm/components/EItemEnCode/index.js +1 -4
- package/dist/esm/components/EItemId/index.d.ts +1 -2
- package/dist/esm/components/EItemId/index.js +1 -4
- package/dist/esm/components/EItemSelect/index.d.ts +1 -2
- package/dist/esm/components/EItemSelect/index.js +1 -4
- package/dist/esm/components/ErpTradeId/index.d.ts +1 -2
- package/dist/esm/components/ErpTradeId/index.js +1 -4
- package/dist/esm/components/Express/index.d.ts +1 -3
- package/dist/esm/components/Express/index.js +1 -6
- package/dist/esm/components/ExpressCode/index.d.ts +1 -2
- package/dist/esm/components/ExpressCode/index.js +1 -4
- package/dist/esm/components/FlowStatusSelect/index.d.ts +1 -3
- package/dist/esm/components/FlowStatusSelect/index.js +7 -21
- package/dist/esm/components/GetFormItem/index.d.ts +1 -2
- package/dist/esm/components/GetFormItem/index.js +2 -5
- package/dist/esm/components/Grade/index.d.ts +1 -2
- package/dist/esm/components/Grade/index.js +1 -4
- package/dist/esm/components/Handler/index.d.ts +0 -2
- package/dist/esm/components/Handler/index.js +1 -6
- package/dist/esm/components/Input/index.d.ts +1 -2
- package/dist/esm/components/Input/index.js +2 -6
- package/dist/esm/components/JstItemSelect/index.d.ts +1 -2
- package/dist/esm/components/JstItemSelect/index.js +1 -4
- package/dist/esm/components/JstLogistics/index.d.ts +1 -2
- package/dist/esm/components/JstLogistics/index.js +1 -4
- package/dist/esm/components/JstSendGood/index.d.ts +1 -2
- package/dist/esm/components/JstSendGood/index.js +1 -4
- package/dist/esm/components/JstSupply/index.d.ts +1 -2
- package/dist/esm/components/JstSupply/index.js +1 -4
- package/dist/esm/components/Logistics/index.d.ts +1 -2
- package/dist/esm/components/Logistics/index.js +2 -5
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -2
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +1 -4
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +0 -2
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +0 -4
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +0 -2
- package/dist/esm/components/LogisticsInterception/InterceptType.js +0 -4
- package/dist/esm/components/LogisticsInterception/index.d.ts +1 -2
- package/dist/esm/components/LogisticsInterception/index.js +1 -4
- package/dist/esm/components/MultSelect/index.d.ts +1 -3
- package/dist/esm/components/MultSelect/index.js +2 -8
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +1 -2
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +1 -4
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +1 -2
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +1 -4
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +6 -3
- package/dist/esm/components/Ordinary/OrdinarySerial.js +8 -3
- package/dist/esm/components/Ordinary/index.d.ts +6 -3
- package/dist/esm/components/Ordinary/index.js +8 -4
- package/dist/esm/components/Payment/AlipayNick.d.ts +1 -2
- package/dist/esm/components/Payment/AlipayNick.js +1 -4
- package/dist/esm/components/Payment/AlipayNo.d.ts +1 -2
- package/dist/esm/components/Payment/AlipayNo.js +1 -4
- package/dist/esm/components/Payment/AlipayTime.d.ts +1 -3
- package/dist/esm/components/Payment/AlipayTime.js +1 -6
- package/dist/esm/components/Payment/BuyerNick.d.ts +3 -3
- package/dist/esm/components/Payment/BuyerNick.js +23 -7
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -2
- package/dist/esm/components/Payment/PaymentAmount.js +1 -4
- package/dist/esm/components/Payment/PaymentStatus.d.ts +0 -2
- package/dist/esm/components/Payment/PaymentStatus.js +0 -4
- package/dist/esm/components/Payment/PaymentTid.d.ts +1 -2
- package/dist/esm/components/Payment/PaymentTid.js +1 -4
- package/dist/esm/components/Payment/index.d.ts +2 -3
- package/dist/esm/components/Payment/index.js +4 -7
- package/dist/esm/components/Picture/index.d.ts +1 -2
- package/dist/esm/components/Picture/index.js +1 -4
- package/dist/esm/components/PlatForm/index.d.ts +0 -2
- package/dist/esm/components/PlatForm/index.js +0 -4
- package/dist/esm/components/Radio/index.d.ts +1 -3
- package/dist/esm/components/Radio/index.js +2 -8
- package/dist/esm/components/Rate/index.d.ts +1 -2
- package/dist/esm/components/Rate/index.js +1 -4
- package/dist/esm/components/ReceiverAddress/index.d.ts +1 -2
- package/dist/esm/components/ReceiverAddress/index.js +1 -4
- package/dist/esm/components/ReceiverMobile/index.d.ts +1 -2
- package/dist/esm/components/ReceiverMobile/index.js +2 -5
- package/dist/esm/components/ReceiverName/index.d.ts +1 -2
- package/dist/esm/components/ReceiverName/index.js +1 -4
- package/dist/esm/components/Remark/index.d.ts +1 -2
- package/dist/esm/components/Remark/index.js +1 -4
- package/dist/esm/components/ReturnLogistics/index.d.ts +6 -3
- package/dist/esm/components/ReturnLogistics/index.js +9 -5
- package/dist/esm/components/Select/index.d.ts +1 -3
- package/dist/esm/components/Select/index.js +2 -8
- package/dist/esm/components/ShopInput/index.d.ts +0 -2
- package/dist/esm/components/ShopInput/index.js +1 -6
- package/dist/esm/components/ShopName/index.d.ts +1 -2
- package/dist/esm/components/ShopName/index.js +1 -4
- package/dist/esm/components/Submitter/index.d.ts +0 -2
- package/dist/esm/components/Submitter/index.js +1 -6
- package/dist/esm/components/SystemOrderNo/index.d.ts +1 -2
- package/dist/esm/components/SystemOrderNo/index.js +1 -4
- package/dist/esm/components/TemplateSelect/index.d.ts +0 -2
- package/dist/esm/components/TemplateSelect/index.js +1 -6
- package/dist/esm/components/TextArea/index.d.ts +1 -2
- package/dist/esm/components/TextArea/index.js +1 -4
- package/dist/esm/components/ThirdItemSelect/index.d.ts +1 -2
- package/dist/esm/components/ThirdItemSelect/index.js +1 -4
- package/dist/esm/components/TradeDateTime/index.d.ts +6 -4
- package/dist/esm/components/TradeDateTime/index.js +9 -6
- package/dist/esm/components/TradeId/index.d.ts +4 -2
- package/dist/esm/components/TradeId/index.js +9 -6
- package/dist/esm/components/WorkOrderId/index.d.ts +1 -2
- package/dist/esm/components/WorkOrderId/index.js +1 -4
- package/dist/esm/type.d.ts +1 -5
- package/package.json +2 -2
|
@@ -25,7 +25,6 @@ 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);
|
|
29
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
29
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
30
|
id: _this.id,
|
|
@@ -55,18 +54,17 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
55
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
56
55
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")];
|
|
57
56
|
});
|
|
58
|
-
_defineProperty(this, "editRender", function (
|
|
57
|
+
_defineProperty(this, "editRender", function (value) {
|
|
59
58
|
var _this$componentConfig, _this$componentConfig2;
|
|
60
59
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
61
60
|
title: _this.name,
|
|
62
61
|
name: _this.id,
|
|
63
62
|
rules: _this.rules,
|
|
64
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
65
63
|
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
64
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
67
65
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
68
66
|
onBlur: function onBlur(e) {
|
|
69
|
-
|
|
67
|
+
value === null || value === void 0 ? void 0 : value.onBlur(e.target.value, 'receiveMobile');
|
|
70
68
|
}
|
|
71
69
|
}))
|
|
72
70
|
});
|
|
@@ -97,6 +95,5 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
|
|
|
97
95
|
this.isCombinationComponent = false;
|
|
98
96
|
this.canSort = true;
|
|
99
97
|
this.children = [];
|
|
100
|
-
this.dataType = 'string';
|
|
101
98
|
});
|
|
102
99
|
export default ReceiverMobile;
|
|
@@ -11,14 +11,13 @@ declare class ReceiverName implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface['dataType'];
|
|
15
14
|
constructor(options: PickOption);
|
|
16
15
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
17
16
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
18
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
18
|
getComponentValue: (r: Record) => any;
|
|
20
19
|
renderExport: (value: any, record: Record) => any;
|
|
21
|
-
editRender: (
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
22
21
|
filterConfig: (item: ColumnConfig) => {
|
|
23
22
|
searchDefaultConditions: "eq";
|
|
24
23
|
type: string;
|
|
@@ -25,7 +25,6 @@ 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);
|
|
29
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
29
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
30
|
id: _this.id,
|
|
@@ -55,13 +54,12 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
55
54
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
56
55
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")];
|
|
57
56
|
});
|
|
58
|
-
_defineProperty(this, "editRender", function (
|
|
57
|
+
_defineProperty(this, "editRender", function () {
|
|
59
58
|
var _this$componentConfig, _this$componentConfig2;
|
|
60
59
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
61
60
|
title: _this.name,
|
|
62
61
|
name: _this.id,
|
|
63
62
|
rules: _this.rules,
|
|
64
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
65
63
|
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
64
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
67
65
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -94,6 +92,5 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
94
92
|
this.isCombinationComponent = false;
|
|
95
93
|
this.canSort = true;
|
|
96
94
|
this.children = [];
|
|
97
|
-
this.dataType = 'string';
|
|
98
95
|
});
|
|
99
96
|
export default ReceiverName;
|
|
@@ -16,7 +16,6 @@ declare class ERemark implements ComponentInterface {
|
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
17
|
canSort: boolean;
|
|
18
18
|
children: ComponentInterface[];
|
|
19
|
-
dataType: ComponentInterface['dataType'];
|
|
20
19
|
constructor(options: PickOption);
|
|
21
20
|
render: (value: Value) => React.JSX.Element;
|
|
22
21
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -27,7 +26,7 @@ declare class ERemark implements ComponentInterface {
|
|
|
27
26
|
flag: any;
|
|
28
27
|
};
|
|
29
28
|
renderExport: (value: unknown, record: Record) => any;
|
|
30
|
-
editRender: (
|
|
29
|
+
editRender: () => React.JSX.Element;
|
|
31
30
|
filterConfig: (item: ColumnConfig) => {
|
|
32
31
|
searchDefaultConditions: "like";
|
|
33
32
|
type: string;
|
|
@@ -33,7 +33,6 @@ 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);
|
|
37
36
|
_defineProperty(this, "render", function (value) {
|
|
38
37
|
var index = get(value, 'flag');
|
|
39
38
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -76,13 +75,12 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
76
75
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
77
76
|
return get(record, "".concat(_this.id, "_remark"));
|
|
78
77
|
});
|
|
79
|
-
_defineProperty(this, "editRender", function (
|
|
78
|
+
_defineProperty(this, "editRender", function () {
|
|
80
79
|
var _this$componentConfig, _this$componentConfig2;
|
|
81
80
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
82
81
|
title: _this.name,
|
|
83
82
|
name: _this.id,
|
|
84
83
|
rules: _this.rules,
|
|
85
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
86
84
|
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,
|
|
87
85
|
component: /*#__PURE__*/React.createElement(Remark, _this.componentConfig)
|
|
88
86
|
});
|
|
@@ -108,7 +106,6 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
108
106
|
this.sortField = "".concat(options.id, "_remark");
|
|
109
107
|
this.type = options.type;
|
|
110
108
|
this.componentConfig = options.componentConfig;
|
|
111
|
-
this.dataType = 'object';
|
|
112
109
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
113
110
|
validator: function validator(_, value) {
|
|
114
111
|
var _this$componentConfig4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
1
|
+
import { ComponentInterface, PickOption, DataType, 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,6 +9,10 @@ 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;
|
|
12
16
|
showContains: boolean;
|
|
13
17
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
18
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
@@ -17,7 +21,6 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
17
21
|
isCombinationComponent: boolean;
|
|
18
22
|
canSort: boolean;
|
|
19
23
|
children: ComponentInterface[];
|
|
20
|
-
dataType: ComponentInterface['dataType'];
|
|
21
24
|
constructor(options: PickOption);
|
|
22
25
|
renderClient: (record: any) => React.JSX.Element;
|
|
23
26
|
renderPc: () => null;
|
|
@@ -27,7 +30,7 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
27
30
|
order: any;
|
|
28
31
|
};
|
|
29
32
|
renderExport: () => null;
|
|
30
|
-
editRender: (
|
|
33
|
+
editRender: (value: any) => React.JSX.Element;
|
|
31
34
|
filterConfig: (item: ColumnConfig) => ({
|
|
32
35
|
searchDefaultConditions: "in";
|
|
33
36
|
type: string;
|
|
@@ -23,6 +23,10 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
23
23
|
_defineProperty(this, "sortField", void 0);
|
|
24
24
|
_defineProperty(this, "type", void 0);
|
|
25
25
|
_defineProperty(this, "rules", void 0);
|
|
26
|
+
_defineProperty(this, "canFilter", void 0);
|
|
27
|
+
_defineProperty(this, "canGroup", void 0);
|
|
28
|
+
_defineProperty(this, "canHidden", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
30
|
_defineProperty(this, "showContains", void 0);
|
|
27
31
|
_defineProperty(this, "componentConfig", void 0);
|
|
28
32
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
@@ -31,7 +35,6 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
31
35
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
32
36
|
_defineProperty(this, "canSort", void 0);
|
|
33
37
|
_defineProperty(this, "children", void 0);
|
|
34
|
-
_defineProperty(this, "dataType", void 0);
|
|
35
38
|
_defineProperty(this, "renderClient", function (record) {
|
|
36
39
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record));
|
|
37
40
|
});
|
|
@@ -50,17 +53,16 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
50
53
|
_defineProperty(this, "renderExport", function () {
|
|
51
54
|
return null;
|
|
52
55
|
});
|
|
53
|
-
_defineProperty(this, "editRender", function (
|
|
56
|
+
_defineProperty(this, "editRender", function (value) {
|
|
54
57
|
var _this$componentConfig, _this$componentConfig2;
|
|
55
58
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
56
59
|
title: _this.name,
|
|
57
60
|
name: _this.id,
|
|
58
61
|
rules: _this.rules,
|
|
59
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
60
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,
|
|
61
63
|
component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
|
|
62
64
|
options: _this.expressDateInstance.getExpressData(),
|
|
63
|
-
onBlur:
|
|
65
|
+
onBlur: value === null || value === void 0 ? void 0 : value.onBlur
|
|
64
66
|
}))
|
|
65
67
|
});
|
|
66
68
|
});
|
|
@@ -75,6 +77,9 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
75
77
|
this.id = options.id;
|
|
76
78
|
this.sortField = options.id;
|
|
77
79
|
this.type = options.type;
|
|
80
|
+
this.canFilter = false;
|
|
81
|
+
this.canGroup = false;
|
|
82
|
+
this.canHidden = true;
|
|
78
83
|
this.showContains = false;
|
|
79
84
|
this.dataType = 'string';
|
|
80
85
|
this.componentConfig = options.componentConfig;
|
|
@@ -89,7 +94,6 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
89
94
|
}));
|
|
90
95
|
this.isCombinationComponent = true;
|
|
91
96
|
this.canSort = false;
|
|
92
|
-
this.dataType = 'object';
|
|
93
97
|
this.children = [this.express, this.expressCode];
|
|
94
98
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
95
99
|
validator: function validator(_, value) {
|
|
@@ -10,10 +10,8 @@ declare class BasicSelect implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
|
-
options: ComponentInterface['options'];
|
|
15
13
|
constructor(options: PickOption);
|
|
16
|
-
editRender: (
|
|
14
|
+
editRender: () => React.JSX.Element;
|
|
17
15
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
16
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
19
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -13,8 +13,7 @@ import ItemView from "../../commonComponents/ItemView";
|
|
|
13
13
|
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
import { SYMBOL } from "../../constant";
|
|
15
15
|
var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
16
|
-
var _this = this
|
|
17
|
-
_this$componentConfig3;
|
|
16
|
+
var _this = this;
|
|
18
17
|
_classCallCheck(this, BasicSelect);
|
|
19
18
|
_defineProperty(this, "name", void 0);
|
|
20
19
|
_defineProperty(this, "id", void 0);
|
|
@@ -25,15 +24,12 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
25
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
25
|
_defineProperty(this, "canSort", void 0);
|
|
27
26
|
_defineProperty(this, "children", void 0);
|
|
28
|
-
_defineProperty(this, "
|
|
29
|
-
_defineProperty(this, "options", void 0);
|
|
30
|
-
_defineProperty(this, "editRender", function (p) {
|
|
27
|
+
_defineProperty(this, "editRender", function () {
|
|
31
28
|
var _this$componentConfig, _this$componentConfig2;
|
|
32
29
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
33
30
|
title: _this.name,
|
|
34
31
|
name: _this.id,
|
|
35
32
|
rules: _this.rules,
|
|
36
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
37
33
|
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,
|
|
38
34
|
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
39
35
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
@@ -92,7 +88,5 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
92
88
|
this.isCombinationComponent = false;
|
|
93
89
|
this.canSort = true;
|
|
94
90
|
this.children = [];
|
|
95
|
-
this.dataType = 'string';
|
|
96
|
-
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
97
91
|
});
|
|
98
92
|
export default BasicSelect;
|
|
@@ -10,8 +10,6 @@ declare class ShopInput implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
|
-
options: ComponentInterface['options'];
|
|
15
13
|
constructor(options: PickOption);
|
|
16
14
|
renderPc: (shopName: unknown, record: any) => React.JSX.Element;
|
|
17
15
|
renderLog: (record: Record) => any;
|
|
@@ -10,8 +10,7 @@ import PlatformAvatar from "../../commonComponents/PlatformAvatar";
|
|
|
10
10
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
11
|
import { SYMBOL } from "../../constant";
|
|
12
12
|
var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
13
|
-
var _this = this
|
|
14
|
-
_this$effects4;
|
|
13
|
+
var _this = this;
|
|
15
14
|
_classCallCheck(this, ShopInput);
|
|
16
15
|
_defineProperty(this, "name", void 0);
|
|
17
16
|
_defineProperty(this, "id", void 0);
|
|
@@ -22,8 +21,6 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
22
21
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
22
|
_defineProperty(this, "canSort", void 0);
|
|
24
23
|
_defineProperty(this, "children", void 0);
|
|
25
|
-
_defineProperty(this, "dataType", void 0);
|
|
26
|
-
_defineProperty(this, "options", void 0);
|
|
27
24
|
_defineProperty(this, "renderPc", function (shopName, record) {
|
|
28
25
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
29
26
|
type: record === null || record === void 0 ? void 0 : record.platform,
|
|
@@ -92,7 +89,5 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
92
89
|
this.isCombinationComponent = false;
|
|
93
90
|
this.canSort = true;
|
|
94
91
|
this.children = [];
|
|
95
|
-
this.dataType = 'string';
|
|
96
|
-
this.options = this === null || this === void 0 ? void 0 : (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList;
|
|
97
92
|
});
|
|
98
93
|
export default ShopInput;
|
|
@@ -10,14 +10,13 @@ declare class BasicInput implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
13
|
constructor(options: PickOption);
|
|
15
14
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
15
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
16
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
17
|
getComponentValue: (r: Record) => any;
|
|
19
18
|
renderExport: (value: any, record: Record) => any;
|
|
20
|
-
editRender: (
|
|
19
|
+
editRender: () => React.JSX.Element;
|
|
21
20
|
filterConfig: (item: ColumnConfig) => {
|
|
22
21
|
searchDefaultConditions: "like";
|
|
23
22
|
type: string;
|
|
@@ -24,7 +24,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
24
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
25
|
_defineProperty(this, "canSort", void 0);
|
|
26
26
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
27
|
_defineProperty(this, "renderClient", function (record) {
|
|
29
28
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
29
|
id: _this.id,
|
|
@@ -47,13 +46,12 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
47
46
|
var _record2;
|
|
48
47
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopName")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
49
48
|
});
|
|
50
|
-
_defineProperty(this, "editRender", function (
|
|
49
|
+
_defineProperty(this, "editRender", function () {
|
|
51
50
|
var _this$componentConfig, _this$componentConfig2;
|
|
52
51
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
53
52
|
title: _this.name,
|
|
54
53
|
name: _this.id,
|
|
55
54
|
rules: _this.rules,
|
|
56
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
57
55
|
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,
|
|
58
56
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
59
57
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -85,6 +83,5 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
85
83
|
this.isCombinationComponent = false;
|
|
86
84
|
this.canSort = true;
|
|
87
85
|
this.children = [];
|
|
88
|
-
this.dataType = 'string';
|
|
89
86
|
});
|
|
90
87
|
export default BasicInput;
|
|
@@ -10,8 +10,6 @@ declare class Submitter implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
|
-
options: ComponentInterface['options'];
|
|
15
13
|
constructor(options: PickOption);
|
|
16
14
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
17
15
|
renderLog: () => null;
|
|
@@ -9,8 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
10
|
import { SYMBOL } from "../../constant";
|
|
11
11
|
var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
12
|
-
var _this = this
|
|
13
|
-
_this$effects3;
|
|
12
|
+
var _this = this;
|
|
14
13
|
_classCallCheck(this, Submitter);
|
|
15
14
|
_defineProperty(this, "name", void 0);
|
|
16
15
|
_defineProperty(this, "id", void 0);
|
|
@@ -21,8 +20,6 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
21
20
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
21
|
_defineProperty(this, "canSort", void 0);
|
|
23
22
|
_defineProperty(this, "children", void 0);
|
|
24
|
-
_defineProperty(this, "dataType", void 0);
|
|
25
|
-
_defineProperty(this, "options", void 0);
|
|
26
23
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
27
24
|
var _record;
|
|
28
25
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -79,7 +76,5 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
79
76
|
this.isCombinationComponent = false;
|
|
80
77
|
this.canSort = true;
|
|
81
78
|
this.children = [];
|
|
82
|
-
this.dataType = 'string';
|
|
83
|
-
this.options = ((_this$effects3 = this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.userList) || [];
|
|
84
79
|
});
|
|
85
80
|
export default Submitter;
|
|
@@ -11,14 +11,13 @@ declare class SystemOrderNo implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface['dataType'];
|
|
15
14
|
constructor(options: PickOption);
|
|
16
15
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
17
16
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
18
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
18
|
getComponentValue: (r: Record) => any;
|
|
20
19
|
renderExport: (value: string, record: Record) => any;
|
|
21
|
-
editRender: (
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
22
21
|
filterConfig: (item: ColumnConfig) => {
|
|
23
22
|
searchDefaultConditions: "in";
|
|
24
23
|
type: string;
|
|
@@ -25,7 +25,6 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(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
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
30
29
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
31
30
|
id: _this.id,
|
|
@@ -48,13 +47,12 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
48
47
|
var _record2;
|
|
49
48
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_systemOrderNo")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
50
49
|
});
|
|
51
|
-
_defineProperty(this, "editRender", function (
|
|
50
|
+
_defineProperty(this, "editRender", function () {
|
|
52
51
|
var _this$componentConfig, _this$componentConfig2;
|
|
53
52
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
54
53
|
title: _this.name,
|
|
55
54
|
name: _this.id,
|
|
56
55
|
rules: _this.rules,
|
|
57
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
58
56
|
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
57
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
60
58
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -90,6 +88,5 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
90
88
|
this.isCombinationComponent = false;
|
|
91
89
|
this.canSort = true;
|
|
92
90
|
this.children = [];
|
|
93
|
-
this.dataType = 'string';
|
|
94
91
|
});
|
|
95
92
|
export default SystemOrderNo;
|
|
@@ -11,8 +11,6 @@ declare class TemplateSelect implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface['dataType'];
|
|
15
|
-
options: ComponentInterface['options'];
|
|
16
14
|
constructor(options: PickOption);
|
|
17
15
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
18
16
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -11,8 +11,7 @@ import get from 'lodash/get';
|
|
|
11
11
|
import { filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
12
|
import { SYMBOL } from "../../constant";
|
|
13
13
|
var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options) {
|
|
14
|
-
var _this = this
|
|
15
|
-
_this$effects4;
|
|
14
|
+
var _this = this;
|
|
16
15
|
_classCallCheck(this, TemplateSelect);
|
|
17
16
|
_defineProperty(this, "name", void 0);
|
|
18
17
|
_defineProperty(this, "id", void 0);
|
|
@@ -24,8 +23,6 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
24
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
24
|
_defineProperty(this, "canSort", void 0);
|
|
26
25
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
|
-
_defineProperty(this, "options", void 0);
|
|
29
26
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
30
27
|
var _this$effects;
|
|
31
28
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
@@ -89,7 +86,5 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
89
86
|
this.isCombinationComponent = false;
|
|
90
87
|
this.canSort = true;
|
|
91
88
|
this.children = [];
|
|
92
|
-
this.dataType = 'string';
|
|
93
|
-
this.options = (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.templateList;
|
|
94
89
|
});
|
|
95
90
|
export default TemplateSelect;
|
|
@@ -10,14 +10,13 @@ declare class BasicInput implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
-
dataType: ComponentInterface['dataType'];
|
|
14
13
|
constructor(options: PickOption);
|
|
15
14
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
15
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
17
16
|
getComponentValue: (r: Record) => any;
|
|
18
17
|
renderExport: (value: any, record: Record) => any;
|
|
19
18
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
20
|
-
editRender: (
|
|
19
|
+
editRender: () => React.JSX.Element;
|
|
21
20
|
filterConfig: (item: ColumnConfig) => {
|
|
22
21
|
searchDefaultConditions: "like";
|
|
23
22
|
type: string;
|
|
@@ -24,7 +24,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
24
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
25
|
_defineProperty(this, "canSort", void 0);
|
|
26
26
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
27
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
29
28
|
var _record;
|
|
30
29
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -47,14 +46,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
47
46
|
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
48
47
|
}) : null;
|
|
49
48
|
});
|
|
50
|
-
_defineProperty(this, "editRender", function (
|
|
49
|
+
_defineProperty(this, "editRender", function () {
|
|
51
50
|
var _this$componentConfig, _this$componentConfig2;
|
|
52
51
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
53
52
|
title: _this.name,
|
|
54
53
|
name: _this.id,
|
|
55
54
|
rules: _this.rules,
|
|
56
55
|
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,
|
|
57
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
58
56
|
component: /*#__PURE__*/React.createElement(ApaasTextArea, _extends({}, _this.componentConfig, {
|
|
59
57
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
60
58
|
}))
|
|
@@ -81,7 +79,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
81
79
|
this.sortField = "".concat(options.id, "_textarea");
|
|
82
80
|
this.type = options.type;
|
|
83
81
|
this.componentConfig = options.componentConfig;
|
|
84
|
-
this.dataType = 'string';
|
|
85
82
|
this.rules = [];
|
|
86
83
|
this.isCombinationComponent = false;
|
|
87
84
|
this.canSort = true;
|
|
@@ -11,14 +11,13 @@ declare class ThirdItemSelect implements ComponentInterface {
|
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface['dataType'];
|
|
15
14
|
constructor(options: PickOption);
|
|
16
15
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
17
16
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
18
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
19
18
|
getComponentValue: (r: Record) => any;
|
|
20
19
|
renderExport: (value: any, record: Record) => any;
|
|
21
|
-
editRender: (
|
|
20
|
+
editRender: () => React.JSX.Element;
|
|
22
21
|
filterConfig: (item: ColumnConfig) => {
|
|
23
22
|
searchDefaultConditions: "like";
|
|
24
23
|
type: string;
|
|
@@ -27,7 +27,6 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
28
|
_defineProperty(this, "canSort", void 0);
|
|
29
29
|
_defineProperty(this, "children", void 0);
|
|
30
|
-
_defineProperty(this, "dataType", void 0);
|
|
31
30
|
_defineProperty(this, "renderClient", function (record) {
|
|
32
31
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
32
|
id: _this.id,
|
|
@@ -62,14 +61,13 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
62
61
|
return "\u4F9B\u5E94\u5546\u7F16\u7801:".concat(item.itemId || item.supplierItemOuterId || '', "\n\u4F9B\u5E94\u5546\u540D\u79F0:").concat(item.supplierName || '');
|
|
63
62
|
});
|
|
64
63
|
});
|
|
65
|
-
_defineProperty(this, "editRender", function (
|
|
64
|
+
_defineProperty(this, "editRender", function () {
|
|
66
65
|
var _this$componentConfig, _this$effects, _this$effects2;
|
|
67
66
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
68
67
|
title: _this.name,
|
|
69
68
|
name: _this.id,
|
|
70
69
|
rules: _this.rules,
|
|
71
70
|
required: false,
|
|
72
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
73
71
|
component: /*#__PURE__*/React.createElement(ItemEncode, _extends({}, _this.componentConfig, {
|
|
74
72
|
maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
|
|
75
73
|
type: 4,
|
|
@@ -110,7 +108,6 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
110
108
|
this.isCombinationComponent = false;
|
|
111
109
|
this.canSort = false;
|
|
112
110
|
this.children = [];
|
|
113
|
-
this.dataType = 'object';
|
|
114
111
|
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
115
112
|
required: true,
|
|
116
113
|
validator: function validator(_, value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
1
|
+
import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare type Value = string | string[] | undefined;
|
|
4
4
|
declare class BasicDataTime implements ComponentInterface {
|
|
@@ -7,14 +7,16 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
7
7
|
sortField: string;
|
|
8
8
|
type: string;
|
|
9
9
|
rules: any[];
|
|
10
|
+
canFilter: boolean;
|
|
11
|
+
canGroup: boolean;
|
|
12
|
+
canHidden: boolean;
|
|
13
|
+
dataType: DataType;
|
|
10
14
|
showContains: boolean;
|
|
11
15
|
componentConfig: ComponentInterface["componentConfig"];
|
|
12
16
|
isCombinationComponent: boolean;
|
|
13
17
|
canSort: boolean;
|
|
14
18
|
children: ComponentInterface[];
|
|
15
19
|
dataMap: Record;
|
|
16
|
-
dataType: ComponentInterface['dataType'];
|
|
17
|
-
format: ComponentInterface['format'];
|
|
18
20
|
constructor(options: PickOption);
|
|
19
21
|
render: (value: Value) => React.JSX.Element;
|
|
20
22
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -22,7 +24,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
22
24
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
23
25
|
getComponentValue: (r: Record) => any;
|
|
24
26
|
renderExport: (value: unknown, record: Record) => any;
|
|
25
|
-
editRender: (
|
|
27
|
+
editRender: () => React.JSX.Element;
|
|
26
28
|
getKeyByComponentType: (type: string) => "tradeCreateDateTime" | "tradePaymentDateTime" | "tradeDeliveryDateTime" | "tradeClosingDateTime" | undefined;
|
|
27
29
|
filterConfig: (item: ColumnConfig) => {
|
|
28
30
|
searchDefaultConditions: "between";
|