@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
|
@@ -23,10 +23,6 @@ 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);
|
|
@@ -35,6 +31,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
35
31
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
36
32
|
_defineProperty(this, "canSort", void 0);
|
|
37
33
|
_defineProperty(this, "children", void 0);
|
|
34
|
+
_defineProperty(this, "dataType", void 0);
|
|
38
35
|
_defineProperty(this, "renderClient", function (record) {
|
|
39
36
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record));
|
|
40
37
|
});
|
|
@@ -53,16 +50,17 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
53
50
|
_defineProperty(this, "renderExport", function () {
|
|
54
51
|
return null;
|
|
55
52
|
});
|
|
56
|
-
_defineProperty(this, "editRender", function (
|
|
53
|
+
_defineProperty(this, "editRender", function (p) {
|
|
57
54
|
var _this$componentConfig, _this$componentConfig2;
|
|
58
55
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
59
56
|
title: _this.name,
|
|
60
57
|
name: _this.id,
|
|
61
58
|
rules: _this.rules,
|
|
59
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
62
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,
|
|
63
61
|
component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
|
|
64
62
|
options: _this.expressDateInstance.getExpressData(),
|
|
65
|
-
onBlur:
|
|
63
|
+
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
66
64
|
}))
|
|
67
65
|
});
|
|
68
66
|
});
|
|
@@ -77,9 +75,6 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
77
75
|
this.id = options.id;
|
|
78
76
|
this.sortField = options.id;
|
|
79
77
|
this.type = options.type;
|
|
80
|
-
this.canFilter = false;
|
|
81
|
-
this.canGroup = false;
|
|
82
|
-
this.canHidden = true;
|
|
83
78
|
this.showContains = false;
|
|
84
79
|
this.dataType = 'string';
|
|
85
80
|
this.componentConfig = options.componentConfig;
|
|
@@ -94,6 +89,7 @@ var ReturnLogistics = /*#__PURE__*/_createClass(function ReturnLogistics(options
|
|
|
94
89
|
}));
|
|
95
90
|
this.isCombinationComponent = true;
|
|
96
91
|
this.canSort = false;
|
|
92
|
+
this.dataType = 'object';
|
|
97
93
|
this.children = [this.express, this.expressCode];
|
|
98
94
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
99
95
|
validator: function validator(_, value) {
|
|
@@ -10,8 +10,10 @@ 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'];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
|
-
editRender: () => React.JSX.Element;
|
|
16
|
+
editRender: (p: any) => React.JSX.Element;
|
|
15
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
16
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
17
19
|
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);
|
|
@@ -24,12 +25,15 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
24
25
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
25
26
|
_defineProperty(this, "canSort", void 0);
|
|
26
27
|
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "
|
|
28
|
+
_defineProperty(this, "dataType", void 0);
|
|
29
|
+
_defineProperty(this, "options", void 0);
|
|
30
|
+
_defineProperty(this, "editRender", function (p) {
|
|
28
31
|
var _this$componentConfig, _this$componentConfig2;
|
|
29
32
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
30
33
|
title: _this.name,
|
|
31
34
|
name: _this.id,
|
|
32
35
|
rules: _this.rules,
|
|
36
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
33
37
|
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
38
|
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
35
39
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
@@ -88,5 +92,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
88
92
|
this.isCombinationComponent = false;
|
|
89
93
|
this.canSort = true;
|
|
90
94
|
this.children = [];
|
|
95
|
+
this.dataType = 'string';
|
|
96
|
+
this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
|
|
91
97
|
});
|
|
92
98
|
export default BasicSelect;
|
|
@@ -10,6 +10,8 @@ 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'];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
16
|
renderPc: (shopName: unknown, record: any) => React.JSX.Element;
|
|
15
17
|
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);
|
|
@@ -21,6 +22,8 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
21
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
23
|
_defineProperty(this, "canSort", void 0);
|
|
23
24
|
_defineProperty(this, "children", void 0);
|
|
25
|
+
_defineProperty(this, "dataType", void 0);
|
|
26
|
+
_defineProperty(this, "options", void 0);
|
|
24
27
|
_defineProperty(this, "renderPc", function (shopName, record) {
|
|
25
28
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(PlatformAvatar, {
|
|
26
29
|
type: record === null || record === void 0 ? void 0 : record.platform,
|
|
@@ -89,5 +92,7 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
|
|
|
89
92
|
this.isCombinationComponent = false;
|
|
90
93
|
this.canSort = true;
|
|
91
94
|
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;
|
|
92
97
|
});
|
|
93
98
|
export default ShopInput;
|
|
@@ -10,13 +10,14 @@ declare class BasicInput implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
+
dataType: ComponentInterface['dataType'];
|
|
13
14
|
constructor(options: PickOption);
|
|
14
15
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
15
16
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
17
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
17
18
|
getComponentValue: (r: Record) => any;
|
|
18
19
|
renderExport: (value: any, record: Record) => any;
|
|
19
|
-
editRender: () => React.JSX.Element;
|
|
20
|
+
editRender: (p: any) => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
21
22
|
searchDefaultConditions: "like";
|
|
22
23
|
type: string;
|
|
@@ -24,6 +24,7 @@ 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);
|
|
27
28
|
_defineProperty(this, "renderClient", function (record) {
|
|
28
29
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
29
30
|
id: _this.id,
|
|
@@ -46,12 +47,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
46
47
|
var _record2;
|
|
47
48
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_shopName")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
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, _extends({}, _this.componentConfig, {
|
|
57
59
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -83,5 +85,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
83
85
|
this.isCombinationComponent = false;
|
|
84
86
|
this.canSort = true;
|
|
85
87
|
this.children = [];
|
|
88
|
+
this.dataType = 'string';
|
|
86
89
|
});
|
|
87
90
|
export default BasicInput;
|
|
@@ -10,6 +10,8 @@ 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'];
|
|
13
15
|
constructor(options: PickOption);
|
|
14
16
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
15
17
|
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);
|
|
@@ -20,6 +21,8 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
20
21
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
21
22
|
_defineProperty(this, "canSort", void 0);
|
|
22
23
|
_defineProperty(this, "children", void 0);
|
|
24
|
+
_defineProperty(this, "dataType", void 0);
|
|
25
|
+
_defineProperty(this, "options", void 0);
|
|
23
26
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
24
27
|
var _record;
|
|
25
28
|
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
@@ -76,5 +79,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
76
79
|
this.isCombinationComponent = false;
|
|
77
80
|
this.canSort = true;
|
|
78
81
|
this.children = [];
|
|
82
|
+
this.dataType = 'string';
|
|
83
|
+
this.options = ((_this$effects3 = this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.userList) || [];
|
|
79
84
|
});
|
|
80
85
|
export default Submitter;
|
|
@@ -11,13 +11,14 @@ declare class SystemOrderNo 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: unknown, record: Record) => React.JSX.Element;
|
|
17
18
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
18
19
|
getComponentValue: (r: Record) => any;
|
|
19
20
|
renderExport: (value: string, record: Record) => any;
|
|
20
|
-
editRender: () => React.JSX.Element;
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
22
23
|
searchDefaultConditions: "in";
|
|
23
24
|
type: string;
|
|
@@ -25,6 +25,7 @@ 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);
|
|
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,
|
|
@@ -47,12 +48,13 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
47
48
|
var _record2;
|
|
48
49
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_systemOrderNo")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
49
50
|
});
|
|
50
|
-
_defineProperty(this, "editRender", function () {
|
|
51
|
+
_defineProperty(this, "editRender", function (p) {
|
|
51
52
|
var _this$componentConfig, _this$componentConfig2;
|
|
52
53
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
53
54
|
title: _this.name,
|
|
54
55
|
name: _this.id,
|
|
55
56
|
rules: _this.rules,
|
|
57
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
56
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,
|
|
57
59
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
58
60
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -88,5 +90,6 @@ var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
|
88
90
|
this.isCombinationComponent = false;
|
|
89
91
|
this.canSort = true;
|
|
90
92
|
this.children = [];
|
|
93
|
+
this.dataType = 'string';
|
|
91
94
|
});
|
|
92
95
|
export default SystemOrderNo;
|
|
@@ -11,6 +11,8 @@ 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'];
|
|
14
16
|
constructor(options: PickOption);
|
|
15
17
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
16
18
|
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);
|
|
@@ -23,6 +24,8 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
23
24
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
25
|
_defineProperty(this, "canSort", void 0);
|
|
25
26
|
_defineProperty(this, "children", void 0);
|
|
27
|
+
_defineProperty(this, "dataType", void 0);
|
|
28
|
+
_defineProperty(this, "options", void 0);
|
|
26
29
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
27
30
|
var _this$effects;
|
|
28
31
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
|
|
@@ -86,5 +89,7 @@ var TemplateSelect = /*#__PURE__*/_createClass(function TemplateSelect(options)
|
|
|
86
89
|
this.isCombinationComponent = false;
|
|
87
90
|
this.canSort = true;
|
|
88
91
|
this.children = [];
|
|
92
|
+
this.dataType = 'string';
|
|
93
|
+
this.options = (_this$effects4 = this.effects) === null || _this$effects4 === void 0 ? void 0 : _this$effects4.templateList;
|
|
89
94
|
});
|
|
90
95
|
export default TemplateSelect;
|
|
@@ -10,13 +10,14 @@ declare class BasicInput implements ComponentInterface {
|
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
canSort: boolean;
|
|
12
12
|
children: ComponentInterface[];
|
|
13
|
+
dataType: ComponentInterface['dataType'];
|
|
13
14
|
constructor(options: PickOption);
|
|
14
15
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
15
16
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
16
17
|
getComponentValue: (r: Record) => any;
|
|
17
18
|
renderExport: (value: any, record: Record) => any;
|
|
18
19
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
19
|
-
editRender: () => React.JSX.Element;
|
|
20
|
+
editRender: (p: any) => React.JSX.Element;
|
|
20
21
|
filterConfig: (item: ColumnConfig) => {
|
|
21
22
|
searchDefaultConditions: "like";
|
|
22
23
|
type: string;
|
|
@@ -24,6 +24,7 @@ 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);
|
|
27
28
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
28
29
|
var _record;
|
|
29
30
|
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 +47,14 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
46
47
|
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
47
48
|
}) : null;
|
|
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,
|
|
55
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,
|
|
57
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
56
58
|
component: /*#__PURE__*/React.createElement(ApaasTextArea, _extends({}, _this.componentConfig, {
|
|
57
59
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
58
60
|
}))
|
|
@@ -79,6 +81,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
79
81
|
this.sortField = "".concat(options.id, "_textarea");
|
|
80
82
|
this.type = options.type;
|
|
81
83
|
this.componentConfig = options.componentConfig;
|
|
84
|
+
this.dataType = 'string';
|
|
82
85
|
this.rules = [];
|
|
83
86
|
this.isCombinationComponent = false;
|
|
84
87
|
this.canSort = true;
|
|
@@ -11,13 +11,14 @@ declare class ThirdItemSelect 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: () => React.JSX.Element;
|
|
21
|
+
editRender: (p: any) => React.JSX.Element;
|
|
21
22
|
filterConfig: (item: ColumnConfig) => {
|
|
22
23
|
searchDefaultConditions: "like";
|
|
23
24
|
type: string;
|
|
@@ -27,6 +27,7 @@ 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);
|
|
30
31
|
_defineProperty(this, "renderClient", function (record) {
|
|
31
32
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
32
33
|
id: _this.id,
|
|
@@ -61,13 +62,14 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
61
62
|
return "\u4F9B\u5E94\u5546\u7F16\u7801:".concat(item.itemId || item.supplierItemOuterId || '', "\n\u4F9B\u5E94\u5546\u540D\u79F0:").concat(item.supplierName || '');
|
|
62
63
|
});
|
|
63
64
|
});
|
|
64
|
-
_defineProperty(this, "editRender", function () {
|
|
65
|
+
_defineProperty(this, "editRender", function (p) {
|
|
65
66
|
var _this$componentConfig, _this$effects, _this$effects2;
|
|
66
67
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
67
68
|
title: _this.name,
|
|
68
69
|
name: _this.id,
|
|
69
70
|
rules: _this.rules,
|
|
70
71
|
required: false,
|
|
72
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
71
73
|
component: /*#__PURE__*/React.createElement(ItemEncode, _extends({}, _this.componentConfig, {
|
|
72
74
|
maxLength: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.maxLength) || 20,
|
|
73
75
|
type: 4,
|
|
@@ -108,6 +110,7 @@ var ThirdItemSelect = /*#__PURE__*/_createClass(function ThirdItemSelect(options
|
|
|
108
110
|
this.isCombinationComponent = false;
|
|
109
111
|
this.canSort = false;
|
|
110
112
|
this.children = [];
|
|
113
|
+
this.dataType = 'object';
|
|
111
114
|
this.rules = (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
112
115
|
required: true,
|
|
113
116
|
validator: function validator(_, value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption,
|
|
1
|
+
import { ComponentInterface, PickOption, 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,16 +7,14 @@ 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;
|
|
14
10
|
showContains: boolean;
|
|
15
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
16
12
|
isCombinationComponent: boolean;
|
|
17
13
|
canSort: boolean;
|
|
18
14
|
children: ComponentInterface[];
|
|
19
15
|
dataMap: Record;
|
|
16
|
+
dataType: ComponentInterface['dataType'];
|
|
17
|
+
format: ComponentInterface['format'];
|
|
20
18
|
constructor(options: PickOption);
|
|
21
19
|
render: (value: Value) => React.JSX.Element;
|
|
22
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -24,7 +22,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
24
22
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
25
23
|
getComponentValue: (r: Record) => any;
|
|
26
24
|
renderExport: (value: unknown, record: Record) => any;
|
|
27
|
-
editRender: () => React.JSX.Element;
|
|
25
|
+
editRender: (p: any) => React.JSX.Element;
|
|
28
26
|
getKeyByComponentType: (type: string) => "tradeCreateDateTime" | "tradePaymentDateTime" | "tradeDeliveryDateTime" | "tradeClosingDateTime" | undefined;
|
|
29
27
|
filterConfig: (item: ColumnConfig) => {
|
|
30
28
|
searchDefaultConditions: "between";
|
|
@@ -21,16 +21,14 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
21
21
|
_defineProperty(this, "sortField", void 0);
|
|
22
22
|
_defineProperty(this, "type", void 0);
|
|
23
23
|
_defineProperty(this, "rules", void 0);
|
|
24
|
-
_defineProperty(this, "canFilter", void 0);
|
|
25
|
-
_defineProperty(this, "canGroup", void 0);
|
|
26
|
-
_defineProperty(this, "canHidden", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
24
|
_defineProperty(this, "showContains", void 0);
|
|
29
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
30
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
31
27
|
_defineProperty(this, "canSort", void 0);
|
|
32
28
|
_defineProperty(this, "children", void 0);
|
|
33
29
|
_defineProperty(this, "dataMap", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "format", void 0);
|
|
34
32
|
_defineProperty(this, "render", function (value) {
|
|
35
33
|
return /*#__PURE__*/React.createElement("span", null, Array.isArray(value) ? value.join('~') : /*#__PURE__*/React.createElement("span", null, value));
|
|
36
34
|
});
|
|
@@ -66,12 +64,13 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
66
64
|
};
|
|
67
65
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(map[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
68
66
|
});
|
|
69
|
-
_defineProperty(this, "editRender", function () {
|
|
67
|
+
_defineProperty(this, "editRender", function (p) {
|
|
70
68
|
var _this$componentConfig, _this$componentConfig2;
|
|
71
69
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
72
70
|
title: _this.name,
|
|
73
71
|
name: _this.id,
|
|
74
72
|
rules: _this.rules,
|
|
73
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
75
74
|
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,
|
|
76
75
|
component: /*#__PURE__*/React.createElement(DateTime, _extends({}, _this.componentConfig, {
|
|
77
76
|
dateType: "DATE_TIME"
|
|
@@ -121,11 +120,9 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
121
120
|
this.id = options.id;
|
|
122
121
|
this.sortField = "".concat(options.id, "_").concat(this.getKeyByComponentType(options.type));
|
|
123
122
|
this.type = options.type;
|
|
124
|
-
this.canFilter = true;
|
|
125
|
-
this.canGroup = true;
|
|
126
|
-
this.canHidden = true;
|
|
127
123
|
this.showContains = false;
|
|
128
|
-
this.dataType = '
|
|
124
|
+
this.dataType = 'string';
|
|
125
|
+
this.format = 'dateTime';
|
|
129
126
|
this.componentConfig = options.componentConfig;
|
|
130
127
|
this.rules = [];
|
|
131
128
|
this.isCombinationComponent = false;
|
|
@@ -6,9 +6,6 @@ declare class ETradeId implements ComponentInterface {
|
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
canFilter: boolean;
|
|
10
|
-
canGroup: boolean;
|
|
11
|
-
canHidden: boolean;
|
|
12
9
|
dataType: DataType;
|
|
13
10
|
showContains: boolean;
|
|
14
11
|
onlyContainsString: boolean;
|
|
@@ -17,13 +14,14 @@ declare class ETradeId implements ComponentInterface {
|
|
|
17
14
|
isCombinationComponent: boolean;
|
|
18
15
|
canSort: boolean;
|
|
19
16
|
children: ComponentInterface[];
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
20
18
|
constructor(options: PickOption);
|
|
21
19
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
20
|
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
23
21
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
24
22
|
getComponentValue: (r: Record) => any;
|
|
25
23
|
renderExport: (value: unknown, record: Record) => any;
|
|
26
|
-
editRender: (
|
|
24
|
+
editRender: (p: any) => React.JSX.Element;
|
|
27
25
|
filterConfig: (item: ColumnConfig) => {
|
|
28
26
|
searchDefaultConditions: "in";
|
|
29
27
|
type: string;
|
|
@@ -20,9 +20,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
20
20
|
_defineProperty(this, "sortField", void 0);
|
|
21
21
|
_defineProperty(this, "type", void 0);
|
|
22
22
|
_defineProperty(this, "rules", void 0);
|
|
23
|
-
_defineProperty(this, "canFilter", void 0);
|
|
24
|
-
_defineProperty(this, "canGroup", void 0);
|
|
25
|
-
_defineProperty(this, "canHidden", void 0);
|
|
26
23
|
_defineProperty(this, "dataType", void 0);
|
|
27
24
|
_defineProperty(this, "showContains", void 0);
|
|
28
25
|
_defineProperty(this, "onlyContainsString", void 0);
|
|
@@ -31,6 +28,7 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
31
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
32
29
|
_defineProperty(this, "canSort", void 0);
|
|
33
30
|
_defineProperty(this, "children", void 0);
|
|
31
|
+
_defineProperty(this, "dataType", void 0);
|
|
34
32
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
33
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
36
34
|
id: _this.id,
|
|
@@ -53,16 +51,17 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
53
51
|
var _record2;
|
|
54
52
|
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
55
53
|
});
|
|
56
|
-
_defineProperty(this, "editRender", function (
|
|
54
|
+
_defineProperty(this, "editRender", function (p) {
|
|
57
55
|
var _this$componentConfig, _this$componentConfig2, _this$effects, _this$effects2;
|
|
58
56
|
var onTradeIdBlur = function onTradeIdBlur(e) {
|
|
59
|
-
var
|
|
60
|
-
|
|
57
|
+
var _p$onBlur;
|
|
58
|
+
p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, e.target.value, 'tradeId');
|
|
61
59
|
};
|
|
62
60
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
63
61
|
title: _this.name,
|
|
64
62
|
name: _this.id,
|
|
65
63
|
rules: _this.rules,
|
|
64
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
66
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,
|
|
67
66
|
component: /*#__PURE__*/React.createElement(TradeId, _extends({}, _this.componentConfig, {
|
|
68
67
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
@@ -95,9 +94,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
95
94
|
this.id = options.id;
|
|
96
95
|
this.sortField = "".concat(options.id, "_tradeId");
|
|
97
96
|
this.type = options.type;
|
|
98
|
-
this.canFilter = true;
|
|
99
|
-
this.canGroup = true;
|
|
100
|
-
this.canHidden = true;
|
|
101
97
|
this.dataType = 'tradeId';
|
|
102
98
|
this.showContains = false;
|
|
103
99
|
this.onlyContainsString = true;
|
|
@@ -107,5 +103,6 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
|
|
|
107
103
|
this.isCombinationComponent = false;
|
|
108
104
|
this.canSort = true;
|
|
109
105
|
this.children = [];
|
|
106
|
+
this.dataType = 'string';
|
|
110
107
|
});
|
|
111
108
|
export default ETradeId;
|
|
@@ -11,6 +11,7 @@ declare class WorkOrderId 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
|
copyHandle: (text: string) => void;
|
|
16
17
|
renderPc: (value: any, record: any) => React.JSX.Element;
|
|
@@ -18,7 +19,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
18
19
|
getComponentValue: (r: Record) => any;
|
|
19
20
|
renderExport: (value: any, record: any) => any;
|
|
20
21
|
renderClient: () => null;
|
|
21
|
-
editRender: () => React.JSX.Element;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
22
23
|
filterConfig: (item: ColumnConfig) => {
|
|
23
24
|
searchDefaultConditions: "like";
|
|
24
25
|
type: string;
|
|
@@ -28,6 +28,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(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, "copyHandle", function (text) {
|
|
32
33
|
copy(text);
|
|
33
34
|
message.success('复制成功');
|
|
@@ -78,12 +79,13 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
78
79
|
_defineProperty(this, "renderClient", function () {
|
|
79
80
|
return null;
|
|
80
81
|
});
|
|
81
|
-
_defineProperty(this, "editRender", function () {
|
|
82
|
+
_defineProperty(this, "editRender", function (p) {
|
|
82
83
|
var _this$componentConfig, _this$componentConfig2;
|
|
83
84
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
84
85
|
title: _this.name,
|
|
85
86
|
name: _this.id,
|
|
86
87
|
rules: _this.rules,
|
|
88
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
87
89
|
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,
|
|
88
90
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
89
91
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
@@ -112,6 +114,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
112
114
|
this.type = options.type;
|
|
113
115
|
this.componentConfig = options.componentConfig;
|
|
114
116
|
this.effects = options.effects;
|
|
117
|
+
this.dataType = 'string';
|
|
115
118
|
this.rules = [];
|
|
116
119
|
this.isCombinationComponent = false;
|
|
117
120
|
this.canSort = true;
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ export interface ComponentInterface {
|
|
|
31
31
|
rules?: any[];
|
|
32
32
|
width?: number;
|
|
33
33
|
align?: ALignType;
|
|
34
|
+
dataType: 'string' | 'number' | 'boolean' | 'array' | 'range' | 'object';
|
|
35
|
+
format?: 'dateTime' | 'date' | 'time';
|
|
36
|
+
options?: Array<any>;
|
|
34
37
|
/**
|
|
35
38
|
* @description 组件下标
|
|
36
39
|
* @deprecated 已弃用字段,后续版本不在使用
|
|
@@ -177,6 +180,7 @@ export interface ComponentInterface {
|
|
|
177
180
|
editRender: (p?: {
|
|
178
181
|
formItemIndex?: number;
|
|
179
182
|
onBlur?: (p1: any, p2: any) => void;
|
|
183
|
+
hidden?: false;
|
|
180
184
|
}) => JSX.Element | null;
|
|
181
185
|
filterConfig: (p: ColumnConfig) => FilterConfigType | FilterConfigType[];
|
|
182
186
|
getComponentValue: (r: Record) => any;
|