@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
|
@@ -23,8 +23,10 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
23
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
24
|
_defineProperty(this, "effects", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
26
27
|
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", 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,
|
|
@@ -54,12 +56,13 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
54
56
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
55
57
|
return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")];
|
|
56
58
|
});
|
|
57
|
-
_defineProperty(this, "editRender", function () {
|
|
59
|
+
_defineProperty(this, "editRender", function (p) {
|
|
58
60
|
var _this$componentConfig, _this$componentConfig2;
|
|
59
61
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
60
62
|
title: _this.name,
|
|
61
63
|
name: _this.id,
|
|
62
64
|
rules: _this.rules,
|
|
65
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
63
66
|
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
67
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
65
68
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -85,6 +88,7 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
85
88
|
this.name = options.name;
|
|
86
89
|
this.id = options.id;
|
|
87
90
|
this.sortField = "".concat(options.id, "_receiveName");
|
|
91
|
+
this.formField = "".concat(options.id, "_receiveName");
|
|
88
92
|
this.type = options.type;
|
|
89
93
|
this.componentConfig = options.componentConfig;
|
|
90
94
|
this.rules = [];
|
|
@@ -92,5 +96,6 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
|
|
|
92
96
|
this.isCombinationComponent = false;
|
|
93
97
|
this.canSort = true;
|
|
94
98
|
this.children = [];
|
|
99
|
+
this.dataType = 'string';
|
|
95
100
|
});
|
|
96
101
|
export default ReceiverName;
|
|
@@ -14,8 +14,10 @@ declare class ERemark implements ComponentInterface {
|
|
|
14
14
|
imgList: any[];
|
|
15
15
|
flagColors: string[];
|
|
16
16
|
isCombinationComponent: boolean;
|
|
17
|
+
formField: string;
|
|
17
18
|
canSort: boolean;
|
|
18
19
|
children: ComponentInterface[];
|
|
20
|
+
dataType: ComponentInterface['dataType'];
|
|
19
21
|
constructor(options: PickOption);
|
|
20
22
|
render: (value: Value) => React.JSX.Element;
|
|
21
23
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -26,7 +28,7 @@ declare class ERemark implements ComponentInterface {
|
|
|
26
28
|
flag: any;
|
|
27
29
|
};
|
|
28
30
|
renderExport: (value: unknown, record: Record) => any;
|
|
29
|
-
editRender: () => React.JSX.Element;
|
|
31
|
+
editRender: (p: any) => React.JSX.Element;
|
|
30
32
|
filterConfig: (item: ColumnConfig) => {
|
|
31
33
|
searchDefaultConditions: "like";
|
|
32
34
|
type: string;
|
|
@@ -31,8 +31,10 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
31
31
|
_defineProperty(this, "imgList", void 0);
|
|
32
32
|
_defineProperty(this, "flagColors", void 0);
|
|
33
33
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
34
|
+
_defineProperty(this, "formField", void 0);
|
|
34
35
|
_defineProperty(this, "canSort", void 0);
|
|
35
36
|
_defineProperty(this, "children", void 0);
|
|
37
|
+
_defineProperty(this, "dataType", void 0);
|
|
36
38
|
_defineProperty(this, "render", function (value) {
|
|
37
39
|
var index = get(value, 'flag');
|
|
38
40
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -75,12 +77,13 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
75
77
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
76
78
|
return get(record, "".concat(_this.id, "_remark"));
|
|
77
79
|
});
|
|
78
|
-
_defineProperty(this, "editRender", function () {
|
|
80
|
+
_defineProperty(this, "editRender", function (p) {
|
|
79
81
|
var _this$componentConfig, _this$componentConfig2;
|
|
80
82
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
81
83
|
title: _this.name,
|
|
82
84
|
name: _this.id,
|
|
83
85
|
rules: _this.rules,
|
|
86
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
84
87
|
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
88
|
component: /*#__PURE__*/React.createElement(Remark, _this.componentConfig)
|
|
86
89
|
});
|
|
@@ -104,8 +107,10 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
|
|
|
104
107
|
this.name = options.name;
|
|
105
108
|
this.id = options.id;
|
|
106
109
|
this.sortField = "".concat(options.id, "_remark");
|
|
110
|
+
this.formField = "".concat(options.id, "_remark");
|
|
107
111
|
this.type = options.type;
|
|
108
112
|
this.componentConfig = options.componentConfig;
|
|
113
|
+
this.dataType = 'object';
|
|
109
114
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
110
115
|
validator: function validator(_, value) {
|
|
111
116
|
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,18 +9,16 @@ 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>;
|
|
19
15
|
express: Express;
|
|
20
16
|
expressCode: ExpressCode;
|
|
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
23
|
renderClient: (record: any) => React.JSX.Element;
|
|
26
24
|
renderPc: () => null;
|
|
@@ -30,7 +28,7 @@ declare class ReturnLogistics implements ComponentInterface {
|
|
|
30
28
|
order: any;
|
|
31
29
|
};
|
|
32
30
|
renderExport: () => null;
|
|
33
|
-
editRender: (
|
|
31
|
+
editRender: (p: any) => React.JSX.Element;
|
|
34
32
|
filterConfig: (item: ColumnConfig) => ({
|
|
35
33
|
searchDefaultConditions: "in";
|
|
36
34
|
type: string;
|
|
@@ -23,18 +23,16 @@ 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);
|
|
30
26
|
_defineProperty(this, "showContains", void 0);
|
|
31
27
|
_defineProperty(this, "componentConfig", void 0);
|
|
32
28
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
33
29
|
_defineProperty(this, "express", void 0);
|
|
34
30
|
_defineProperty(this, "expressCode", void 0);
|
|
35
31
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
32
|
+
_defineProperty(this, "formField", void 0);
|
|
36
33
|
_defineProperty(this, "canSort", void 0);
|
|
37
34
|
_defineProperty(this, "children", void 0);
|
|
35
|
+
_defineProperty(this, "dataType", void 0);
|
|
38
36
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
37
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record));
|
|
40
38
|
});
|
|
@@ -53,16 +51,17 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
53
51
|
_defineProperty(this, "renderExport", function () {
|
|
54
52
|
return null;
|
|
55
53
|
});
|
|
56
|
-
_defineProperty(this, "editRender", function (
|
|
54
|
+
_defineProperty(this, "editRender", function (p) {
|
|
57
55
|
var _this$componentConfig, _this$componentConfig2;
|
|
58
56
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
59
57
|
title: _this.name,
|
|
60
58
|
name: _this.id,
|
|
61
59
|
rules: _this.rules,
|
|
60
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
62
61
|
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,
|
|
63
62
|
component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
|
|
64
63
|
options: _this.expressDateInstance.getExpressData(),
|
|
65
|
-
onBlur:
|
|
64
|
+
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
66
65
|
}))
|
|
67
66
|
});
|
|
68
67
|
});
|
|
@@ -76,10 +75,8 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
76
75
|
this.name = options.name;
|
|
77
76
|
this.id = options.id;
|
|
78
77
|
this.sortField = options.id;
|
|
78
|
+
this.formField = options.id;
|
|
79
79
|
this.type = options.type;
|
|
80
|
-
this.canFilter = false;
|
|
81
|
-
this.canGroup = false;
|
|
82
|
-
this.canHidden = true;
|
|
83
80
|
this.showContains = false;
|
|
84
81
|
this.dataType = 'string';
|
|
85
82
|
this.componentConfig = options.componentConfig;
|
|
@@ -94,6 +91,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
94
91
|
}));
|
|
95
92
|
this.isCombinationComponent = true;
|
|
96
93
|
this.canSort = false;
|
|
94
|
+
this.dataType = 'object';
|
|
97
95
|
this.children = [this.express, this.expressCode];
|
|
98
96
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
99
97
|
validator: function validator(_, value) {
|
|
@@ -8,10 +8,13 @@ declare class BasicSelect 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
|
-
editRender: () => React.JSX.Element;
|
|
17
|
+
editRender: (p: any) => React.JSX.Element;
|
|
15
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
19
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
20
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -13,7 +13,8 @@ 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
|
|
16
|
+
var _this = this,
|
|
17
|
+
_this$componentConfig3;
|
|
17
18
|
_classCallCheck(this, BasicSelect);
|
|
18
19
|
_defineProperty(this, "name", void 0);
|
|
19
20
|
_defineProperty(this, "id", void 0);
|
|
@@ -22,14 +23,18 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
22
23
|
_defineProperty(this, "rules", void 0);
|
|
23
24
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
25
27
|
_defineProperty(this, "canSort", void 0);
|
|
26
28
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
|
+
_defineProperty(this, "options", void 0);
|
|
31
|
+
_defineProperty(this, "editRender", function (p) {
|
|
28
32
|
var _this$componentConfig, _this$componentConfig2;
|
|
29
33
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
30
34
|
title: _this.name,
|
|
31
35
|
name: _this.id,
|
|
32
36
|
rules: _this.rules,
|
|
37
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
33
38
|
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,
|
|
34
39
|
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
35
40
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
@@ -82,11 +87,14 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
82
87
|
this.name = options.name;
|
|
83
88
|
this.id = options.id;
|
|
84
89
|
this.sortField = "".concat(options.id, "_select");
|
|
90
|
+
this.formField = "".concat(options.id, "_select");
|
|
85
91
|
this.type = options.type;
|
|
86
92
|
this.componentConfig = options.componentConfig;
|
|
87
93
|
this.rules = [];
|
|
88
94
|
this.isCombinationComponent = false;
|
|
89
95
|
this.canSort = true;
|
|
90
96
|
this.children = [];
|
|
97
|
+
this.dataType = 'string';
|
|
98
|
+
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
91
99
|
});
|
|
92
100
|
export default BasicSelect;
|
|
@@ -8,8 +8,11 @@ declare class ShopInput implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
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
|
renderPc: (shopName: unknown, record: any) => React.JSX.Element;
|
|
15
18
|
renderLog: (record: Record) => any;
|
|
@@ -10,7 +10,8 @@ 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
|
|
13
|
+
var _this = this,
|
|
14
|
+
_this$effects4;
|
|
14
15
|
_classCallCheck(this, ShopInput);
|
|
15
16
|
_defineProperty(this, "name", void 0);
|
|
16
17
|
_defineProperty(this, "id", void 0);
|
|
@@ -19,8 +20,11 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
19
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
20
21
|
_defineProperty(this, "effects", void 0);
|
|
21
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "formField", void 0);
|
|
22
24
|
_defineProperty(this, "canSort", void 0);
|
|
23
25
|
_defineProperty(this, "children", void 0);
|
|
26
|
+
_defineProperty(this, "dataType", void 0);
|
|
27
|
+
_defineProperty(this, "options", void 0);
|
|
24
28
|
_defineProperty(this, "renderPc", function (shopName, record) {
|
|
25
29
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
26
30
|
type: record === null || record === void 0 ? void 0 : record.platform,
|
|
@@ -85,9 +89,12 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
85
89
|
this.id = "shopName";
|
|
86
90
|
this.type = "SHOP_INPUT";
|
|
87
91
|
this.sortField = "shopName";
|
|
92
|
+
this.formField = "shopName";
|
|
88
93
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
89
94
|
this.isCombinationComponent = false;
|
|
90
95
|
this.canSort = true;
|
|
91
96
|
this.children = [];
|
|
97
|
+
this.dataType = 'string';
|
|
98
|
+
this.options = this === null || this === void 0 ? void 0 : (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.shopList;
|
|
92
99
|
});
|
|
93
100
|
export default ShopInput;
|
|
@@ -8,15 +8,17 @@ declare class BasicInput 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'];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
16
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
15
17
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
17
19
|
getComponentValue: (r: Record) => any;
|
|
18
20
|
renderExport: (value: any, record: Record) => any;
|
|
19
|
-
editRender: () => React.JSX.Element;
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
20
22
|
filterConfig: (item: ColumnConfig) => {
|
|
21
23
|
searchDefaultConditions: "like";
|
|
22
24
|
type: string;
|
|
@@ -22,8 +22,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
22
22
|
_defineProperty(this, "rules", void 0);
|
|
23
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "formField", void 0);
|
|
25
26
|
_defineProperty(this, "canSort", void 0);
|
|
26
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
27
29
|
_defineProperty(this, "renderClient", function (record) {
|
|
28
30
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
29
31
|
id: _this.id,
|
|
@@ -46,12 +48,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
46
48
|
var _record2;
|
|
47
49
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopName")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
48
50
|
});
|
|
49
|
-
_defineProperty(this, "editRender", function () {
|
|
51
|
+
_defineProperty(this, "editRender", function (p) {
|
|
50
52
|
var _this$componentConfig, _this$componentConfig2;
|
|
51
53
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
52
54
|
title: _this.name,
|
|
53
55
|
name: _this.id,
|
|
54
56
|
rules: _this.rules,
|
|
57
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
55
58
|
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
59
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
57
60
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -78,10 +81,12 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
78
81
|
this.id = options.id;
|
|
79
82
|
this.type = options.type;
|
|
80
83
|
this.sortField = "".concat(options.id, "_shopName");
|
|
84
|
+
this.formField = "".concat(options.id, "_shopName");
|
|
81
85
|
this.componentConfig = options.componentConfig;
|
|
82
86
|
this.rules = [];
|
|
83
87
|
this.isCombinationComponent = false;
|
|
84
88
|
this.canSort = true;
|
|
85
89
|
this.children = [];
|
|
90
|
+
this.dataType = 'string';
|
|
86
91
|
});
|
|
87
92
|
export default BasicInput;
|
|
@@ -8,8 +8,11 @@ declare class Submitter implements ComponentInterface {
|
|
|
8
8
|
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
effects: ComponentInterface["effects"];
|
|
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
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
15
18
|
renderLog: () => null;
|
|
@@ -9,7 +9,8 @@ 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
|
|
12
|
+
var _this = this,
|
|
13
|
+
_this$effects3;
|
|
13
14
|
_classCallCheck(this, Submitter);
|
|
14
15
|
_defineProperty(this, "name", void 0);
|
|
15
16
|
_defineProperty(this, "id", void 0);
|
|
@@ -18,8 +19,11 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
18
19
|
_defineProperty(this, "componentConfig", void 0);
|
|
19
20
|
_defineProperty(this, "effects", void 0);
|
|
20
21
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
|
+
_defineProperty(this, "formField", void 0);
|
|
21
23
|
_defineProperty(this, "canSort", void 0);
|
|
22
24
|
_defineProperty(this, "children", void 0);
|
|
25
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
|
+
_defineProperty(this, "options", void 0);
|
|
23
27
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
24
28
|
var _record;
|
|
25
29
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -72,9 +76,12 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
72
76
|
this.id = "submitter";
|
|
73
77
|
this.type = "OPERATOR_INPUT";
|
|
74
78
|
this.sortField = "submitter";
|
|
79
|
+
this.formField = "submitter";
|
|
75
80
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
76
81
|
this.isCombinationComponent = false;
|
|
77
82
|
this.canSort = true;
|
|
78
83
|
this.children = [];
|
|
84
|
+
this.dataType = 'string';
|
|
85
|
+
this.options = ((_this$effects3 = this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.userList) || [];
|
|
79
86
|
});
|
|
80
87
|
export default Submitter;
|
|
@@ -9,15 +9,17 @@ declare class SystemOrderNo implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
16
18
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
17
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
20
|
getComponentValue: (r: Record) => any;
|
|
19
21
|
renderExport: (value: string, record: Record) => any;
|
|
20
|
-
editRender: () => React.JSX.Element;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
23
|
filterConfig: (item: ColumnConfig) => {
|
|
22
24
|
searchDefaultConditions: "in";
|
|
23
25
|
type: string;
|
|
@@ -23,8 +23,10 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
23
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
24
|
_defineProperty(this, "effects", void 0);
|
|
25
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
26
27
|
_defineProperty(this, "canSort", void 0);
|
|
27
28
|
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", 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,
|
|
@@ -47,12 +49,13 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
47
49
|
var _record2;
|
|
48
50
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_systemOrderNo")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
49
51
|
});
|
|
50
|
-
_defineProperty(this, "editRender", function () {
|
|
52
|
+
_defineProperty(this, "editRender", function (p) {
|
|
51
53
|
var _this$componentConfig, _this$componentConfig2;
|
|
52
54
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
53
55
|
title: _this.name,
|
|
54
56
|
name: _this.id,
|
|
55
57
|
rules: _this.rules,
|
|
58
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
56
59
|
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
60
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
58
61
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -81,6 +84,7 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
81
84
|
this.name = options.name;
|
|
82
85
|
this.id = options.id;
|
|
83
86
|
this.sortField = "".concat(options.id, "_systemOrderNo");
|
|
87
|
+
this.formField = "".concat(options.id, "_systemOrderNo");
|
|
84
88
|
this.type = options.type;
|
|
85
89
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
86
90
|
this.componentConfig = options.componentConfig;
|
|
@@ -88,5 +92,6 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
88
92
|
this.isCombinationComponent = false;
|
|
89
93
|
this.canSort = true;
|
|
90
94
|
this.children = [];
|
|
95
|
+
this.dataType = 'string';
|
|
91
96
|
});
|
|
92
97
|
export default SystemOrderNo;
|
|
@@ -9,8 +9,11 @@ declare class TemplateSelect implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
|
+
options: ComponentInterface['options'];
|
|
14
17
|
constructor(options: PickOption);
|
|
15
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -11,7 +11,8 @@ 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
|
|
14
|
+
var _this = this,
|
|
15
|
+
_this$effects4;
|
|
15
16
|
_classCallCheck(this, TemplateSelect);
|
|
16
17
|
_defineProperty(this, "name", void 0);
|
|
17
18
|
_defineProperty(this, "id", void 0);
|
|
@@ -21,8 +22,11 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
21
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
23
|
_defineProperty(this, "effects", void 0);
|
|
23
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "formField", void 0);
|
|
24
26
|
_defineProperty(this, "canSort", void 0);
|
|
25
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
|
+
_defineProperty(this, "options", void 0);
|
|
26
30
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
27
31
|
var _this$effects;
|
|
28
32
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
@@ -79,6 +83,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
79
83
|
this.name = options.name;
|
|
80
84
|
this.id = options.id;
|
|
81
85
|
this.sortField = options.id;
|
|
86
|
+
this.formField = options.id;
|
|
82
87
|
this.type = options.type;
|
|
83
88
|
this.componentConfig = options.componentConfig;
|
|
84
89
|
this.rules = [];
|
|
@@ -86,5 +91,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
86
91
|
this.isCombinationComponent = false;
|
|
87
92
|
this.canSort = true;
|
|
88
93
|
this.children = [];
|
|
94
|
+
this.dataType = 'string';
|
|
95
|
+
this.options = (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.templateList;
|
|
89
96
|
});
|
|
90
97
|
export default TemplateSelect;
|
|
@@ -8,15 +8,17 @@ declare class BasicInput 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'];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
16
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
15
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
16
18
|
getComponentValue: (r: Record) => any;
|
|
17
19
|
renderExport: (value: any, record: Record) => any;
|
|
18
20
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
19
|
-
editRender: () => React.JSX.Element;
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
20
22
|
filterConfig: (item: ColumnConfig) => {
|
|
21
23
|
searchDefaultConditions: "like";
|
|
22
24
|
type: string;
|
|
@@ -22,8 +22,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
22
22
|
_defineProperty(this, "rules", void 0);
|
|
23
23
|
_defineProperty(this, "componentConfig", void 0);
|
|
24
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
|
+
_defineProperty(this, "formField", void 0);
|
|
25
26
|
_defineProperty(this, "canSort", void 0);
|
|
26
27
|
_defineProperty(this, "children", void 0);
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
27
29
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
28
30
|
var _record;
|
|
29
31
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_textarea")]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -46,13 +48,14 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
46
48
|
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
47
49
|
}) : null;
|
|
48
50
|
});
|
|
49
|
-
_defineProperty(this, "editRender", function () {
|
|
51
|
+
_defineProperty(this, "editRender", function (p) {
|
|
50
52
|
var _this$componentConfig, _this$componentConfig2;
|
|
51
53
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
52
54
|
title: _this.name,
|
|
53
55
|
name: _this.id,
|
|
54
56
|
rules: _this.rules,
|
|
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,
|
|
58
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
56
59
|
component: /*#__PURE__*/React.createElement(ApaasTextArea, _extends({}, _this.componentConfig, {
|
|
57
60
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
58
61
|
}))
|
|
@@ -77,8 +80,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
77
80
|
this.name = options.name;
|
|
78
81
|
this.id = options.id;
|
|
79
82
|
this.sortField = "".concat(options.id, "_textarea");
|
|
83
|
+
this.formField = "".concat(options.id, "_textarea");
|
|
80
84
|
this.type = options.type;
|
|
81
85
|
this.componentConfig = options.componentConfig;
|
|
86
|
+
this.dataType = 'string';
|
|
82
87
|
this.rules = [];
|
|
83
88
|
this.isCombinationComponent = false;
|
|
84
89
|
this.canSort = true;
|
|
@@ -9,15 +9,17 @@ declare class ThirdItemSelect implements ComponentInterface {
|
|
|
9
9
|
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
12
13
|
canSort: boolean;
|
|
13
14
|
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
16
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
19
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
20
|
getComponentValue: (r: Record) => any;
|
|
19
21
|
renderExport: (value: any, record: Record) => any;
|
|
20
|
-
editRender: () => React.JSX.Element;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
23
|
filterConfig: (item: ColumnConfig) => {
|
|
22
24
|
searchDefaultConditions: "like";
|
|
23
25
|
type: string;
|
|
@@ -25,8 +25,10 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "effects", 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,
|
|
@@ -61,13 +63,14 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
61
63
|
return "\u4F9B\u5E94\u5546\u7F16\u7801:".concat(item.itemId || item.supplierItemOuterId || '', "\n\u4F9B\u5E94\u5546\u540D\u79F0:").concat(item.supplierName || '');
|
|
62
64
|
});
|
|
63
65
|
});
|
|
64
|
-
_defineProperty(this, "editRender", function () {
|
|
66
|
+
_defineProperty(this, "editRender", function (p) {
|
|
65
67
|
var _this$componentConfig, _this$effects, _this$effects2;
|
|
66
68
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
69
|
title: _this.name,
|
|
68
70
|
name: _this.id,
|
|
69
71
|
rules: _this.rules,
|
|
70
72
|
required: false,
|
|
73
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
71
74
|
component: /*#__PURE__*/React.createElement(ItemEncode, _extends({}, _this.componentConfig, {
|
|
72
75
|
maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
|
|
73
76
|
type: 4,
|
|
@@ -102,12 +105,14 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
102
105
|
this.name = options.name || '供应商编码/名称';
|
|
103
106
|
this.id = options.id;
|
|
104
107
|
this.sortField = "".concat(options.id, "_itemList");
|
|
108
|
+
this.formField = "".concat(options.id, "_itemList");
|
|
105
109
|
this.type = options.type;
|
|
106
110
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
107
111
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
108
112
|
this.isCombinationComponent = false;
|
|
109
113
|
this.canSort = false;
|
|
110
114
|
this.children = [];
|
|
115
|
+
this.dataType = 'object';
|
|
111
116
|
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
112
117
|
required: true,
|
|
113
118
|
validator: function validator(_, value) {
|