@kmkf-fe-packages/services-components 0.7.11-alpha.0 → 0.7.11-alpha.10
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 -0
- package/dist/esm/components/ActualPayment/index.js +2 -0
- package/dist/esm/components/Address/index.d.ts +1 -0
- package/dist/esm/components/Address/index.js +2 -0
- package/dist/esm/components/Alipay/index.d.ts +1 -0
- package/dist/esm/components/Alipay/index.js +2 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +1 -0
- package/dist/esm/components/AlipayAccount/index.js +2 -0
- package/dist/esm/components/AlipayName/index.d.ts +1 -0
- package/dist/esm/components/AlipayName/index.js +2 -0
- package/dist/esm/components/BuyerNick/index.d.ts +1 -0
- package/dist/esm/components/BuyerNick/index.js +2 -0
- package/dist/esm/components/Cascader/index.d.ts +1 -0
- package/dist/esm/components/Cascader/index.js +2 -0
- package/dist/esm/components/Checkbox/index.d.ts +2 -0
- package/dist/esm/components/Checkbox/index.js +5 -0
- package/dist/esm/components/CommonDataTime/index.d.ts +1 -0
- package/dist/esm/components/CommonDataTime/index.js +2 -0
- package/dist/esm/components/CompletedUser/index.d.ts +1 -0
- package/dist/esm/components/CompletedUser/index.js +2 -0
- package/dist/esm/components/DataTime/index.d.ts +1 -0
- package/dist/esm/components/DataTime/index.js +2 -0
- package/dist/esm/components/EItemEnCode/index.d.ts +1 -0
- package/dist/esm/components/EItemEnCode/index.js +2 -0
- package/dist/esm/components/EItemId/index.d.ts +1 -0
- package/dist/esm/components/EItemId/index.js +2 -0
- package/dist/esm/components/EItemSelect/index.d.ts +1 -0
- package/dist/esm/components/EItemSelect/index.js +2 -0
- package/dist/esm/components/ErpTradeId/index.d.ts +1 -0
- package/dist/esm/components/ErpTradeId/index.js +2 -0
- package/dist/esm/components/Express/index.d.ts +1 -0
- package/dist/esm/components/Express/index.js +2 -0
- package/dist/esm/components/ExpressCode/index.d.ts +1 -0
- package/dist/esm/components/ExpressCode/index.js +2 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +1 -0
- package/dist/esm/components/FlowStatusSelect/index.js +10 -5
- package/dist/esm/components/GetFormItem/index.d.ts +1 -1
- package/dist/esm/components/GetFormItem/index.js +4 -2
- package/dist/esm/components/Grade/index.d.ts +1 -0
- package/dist/esm/components/Grade/index.js +2 -0
- package/dist/esm/components/Handler/index.d.ts +1 -0
- package/dist/esm/components/Handler/index.js +2 -0
- package/dist/esm/components/Input/index.d.ts +1 -0
- package/dist/esm/components/Input/index.js +2 -0
- package/dist/esm/components/JstItemSelect/index.d.ts +1 -0
- package/dist/esm/components/JstItemSelect/index.js +2 -0
- package/dist/esm/components/JstLogistics/index.d.ts +1 -0
- package/dist/esm/components/JstLogistics/index.js +2 -0
- package/dist/esm/components/JstSendGood/index.d.ts +1 -0
- package/dist/esm/components/JstSendGood/index.js +2 -0
- package/dist/esm/components/JstSupply/index.d.ts +1 -0
- package/dist/esm/components/JstSupply/index.js +2 -0
- package/dist/esm/components/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptStatus.js +2 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/InterceptType.js +2 -0
- package/dist/esm/components/LogisticsInterception/index.d.ts +1 -0
- package/dist/esm/components/LogisticsInterception/index.js +2 -0
- 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 +1 -0
- package/dist/esm/components/MultSelect/index.js +2 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +1 -0
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +2 -0
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +1 -0
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +2 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +1 -0
- package/dist/esm/components/Ordinary/OrdinarySerial.js +2 -0
- package/dist/esm/components/Ordinary/index.d.ts +1 -0
- package/dist/esm/components/Ordinary/index.js +2 -1
- package/dist/esm/components/Payment/AlipayNick.d.ts +1 -0
- package/dist/esm/components/Payment/AlipayNick.js +2 -0
- package/dist/esm/components/Payment/AlipayNo.d.ts +1 -0
- package/dist/esm/components/Payment/AlipayNo.js +2 -0
- package/dist/esm/components/Payment/AlipayTime.d.ts +1 -0
- package/dist/esm/components/Payment/AlipayTime.js +2 -0
- package/dist/esm/components/Payment/BuyerNick.d.ts +1 -0
- package/dist/esm/components/Payment/BuyerNick.js +2 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentAmount.js +2 -0
- package/dist/esm/components/Payment/PaymentStatus.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentStatus.js +2 -0
- package/dist/esm/components/Payment/PaymentTid.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentTid.js +2 -0
- package/dist/esm/components/Payment/index.d.ts +1 -0
- package/dist/esm/components/Payment/index.js +2 -0
- package/dist/esm/components/Picture/index.d.ts +1 -0
- package/dist/esm/components/Picture/index.js +2 -0
- package/dist/esm/components/PlatForm/index.d.ts +1 -0
- package/dist/esm/components/PlatForm/index.js +2 -0
- package/dist/esm/components/Radio/index.d.ts +2 -0
- package/dist/esm/components/Radio/index.js +5 -0
- package/dist/esm/components/Rate/index.d.ts +1 -0
- package/dist/esm/components/Rate/index.js +2 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +1 -0
- package/dist/esm/components/ReceiverAddress/index.js +2 -0
- package/dist/esm/components/ReceiverMobile/index.d.ts +1 -0
- package/dist/esm/components/ReceiverMobile/index.js +2 -0
- package/dist/esm/components/ReceiverName/index.d.ts +1 -0
- package/dist/esm/components/ReceiverName/index.js +2 -0
- package/dist/esm/components/Remark/index.d.ts +1 -0
- package/dist/esm/components/Remark/index.js +2 -0
- package/dist/esm/components/ReturnLogistics/index.d.ts +1 -0
- package/dist/esm/components/ReturnLogistics/index.js +2 -0
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +2 -0
- package/dist/esm/components/ShopInput/index.d.ts +1 -0
- package/dist/esm/components/ShopInput/index.js +2 -0
- package/dist/esm/components/ShopName/index.d.ts +1 -0
- package/dist/esm/components/ShopName/index.js +2 -0
- package/dist/esm/components/Submitter/index.d.ts +1 -0
- package/dist/esm/components/Submitter/index.js +2 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +1 -0
- package/dist/esm/components/SystemOrderNo/index.js +2 -0
- package/dist/esm/components/TemplateSelect/index.d.ts +1 -0
- package/dist/esm/components/TemplateSelect/index.js +2 -0
- package/dist/esm/components/TextArea/index.d.ts +1 -0
- package/dist/esm/components/TextArea/index.js +2 -0
- package/dist/esm/components/ThirdItemSelect/index.d.ts +1 -0
- package/dist/esm/components/ThirdItemSelect/index.js +2 -0
- package/dist/esm/components/TradeDateTime/index.d.ts +1 -0
- package/dist/esm/components/TradeDateTime/index.js +2 -0
- package/dist/esm/components/TradeId/index.d.ts +2 -2
- package/dist/esm/components/TradeId/index.js +2 -2
- package/dist/esm/components/WorkOrderId/index.d.ts +1 -0
- package/dist/esm/components/WorkOrderId/index.js +2 -0
- package/dist/esm/type.d.ts +2 -0
- package/package.json +4 -4
|
@@ -24,6 +24,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
24
24
|
_defineProperty(this, "type", void 0);
|
|
25
25
|
_defineProperty(this, "rules", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -135,6 +136,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
135
136
|
});
|
|
136
137
|
this.id = options.id;
|
|
137
138
|
this.sortField = "".concat(options.id, "_actualPayment");
|
|
139
|
+
this.formField = "".concat(options.id, "_actualPayment");
|
|
138
140
|
this.name = options.name;
|
|
139
141
|
this.type = options.type;
|
|
140
142
|
this.dataType = 'number';
|
|
@@ -23,6 +23,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
23
23
|
_defineProperty(this, "type", void 0);
|
|
24
24
|
_defineProperty(this, "rules", 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);
|
|
28
29
|
_defineProperty(this, "componentConfig", void 0);
|
|
@@ -120,6 +121,7 @@ var Address = /*#__PURE__*/_createClass(function Address(options) {
|
|
|
120
121
|
this.name = options.name;
|
|
121
122
|
this.id = options.id;
|
|
122
123
|
this.sortField = "".concat(options.id, "_basicDistrict");
|
|
124
|
+
this.formField = "".concat(options.id, "_basicDistrict");
|
|
123
125
|
this.type = options.type;
|
|
124
126
|
this.dataType = 'object';
|
|
125
127
|
this.isCombinationComponent = false;
|
|
@@ -12,6 +12,7 @@ declare class Alipay implements ComponentInterface {
|
|
|
12
12
|
alipayAccount: EAlipayAccount;
|
|
13
13
|
alipayName: EAlipayName;
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
15
16
|
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
17
18
|
dataType: ComponentInterface['dataType'];
|
|
@@ -26,6 +26,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
26
26
|
_defineProperty(this, "alipayAccount", void 0);
|
|
27
27
|
_defineProperty(this, "alipayName", void 0);
|
|
28
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
29
30
|
_defineProperty(this, "canSort", void 0);
|
|
30
31
|
_defineProperty(this, "children", void 0);
|
|
31
32
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -66,6 +67,7 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
66
67
|
this.name = options.name;
|
|
67
68
|
this.id = options.id;
|
|
68
69
|
this.sortField = options.id;
|
|
70
|
+
this.formField = options.id;
|
|
69
71
|
this.type = options.type;
|
|
70
72
|
this.isCombinationComponent = true;
|
|
71
73
|
this.canSort = false;
|
|
@@ -27,6 +27,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
27
27
|
_defineProperty(this, "align", void 0);
|
|
28
28
|
_defineProperty(this, "width", void 0);
|
|
29
29
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
30
|
+
_defineProperty(this, "formField", void 0);
|
|
30
31
|
_defineProperty(this, "canSort", void 0);
|
|
31
32
|
_defineProperty(this, "children", void 0);
|
|
32
33
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -85,6 +86,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
85
86
|
this.name = '支付宝账号';
|
|
86
87
|
this.id = "".concat(options.id, "_alipayAccount");
|
|
87
88
|
this.sortField = "".concat(options.id, "_alipayAccount");
|
|
89
|
+
this.formField = "".concat(options.id, "_alipayAccount");
|
|
88
90
|
this.type = options.type;
|
|
89
91
|
this.isCombinationComponent = false;
|
|
90
92
|
this.canSort = true;
|
|
@@ -9,6 +9,7 @@ declare class EAlipayAccount 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[];
|
|
14
15
|
align: ALignType;
|
|
@@ -25,6 +25,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(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);
|
|
30
31
|
_defineProperty(this, "align", void 0);
|
|
@@ -85,6 +86,7 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
85
86
|
this.name = '支付宝名称';
|
|
86
87
|
this.id = "".concat(options.id, "_alipayName");
|
|
87
88
|
this.sortField = "".concat(options.id, "_alipayName");
|
|
89
|
+
this.formField = "".concat(options.id, "_alipayName");
|
|
88
90
|
this.type = options.type;
|
|
89
91
|
this.isCombinationComponent = false;
|
|
90
92
|
this.canSort = true;
|
|
@@ -9,6 +9,7 @@ declare class EBuyerNick 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[];
|
|
14
15
|
dataType: ComponentInterface['dataType'];
|
|
@@ -26,6 +26,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
26
26
|
_defineProperty(this, "componentConfig", void 0);
|
|
27
27
|
_defineProperty(this, "effects", void 0);
|
|
28
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
29
30
|
_defineProperty(this, "canSort", void 0);
|
|
30
31
|
_defineProperty(this, "children", void 0);
|
|
31
32
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -100,6 +101,7 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
100
101
|
this.id = options.id;
|
|
101
102
|
this.type = options.type;
|
|
102
103
|
this.sortField = "".concat(options.id, "_buyerNick");
|
|
104
|
+
this.formField = "".concat(options.id, "_buyerNick");
|
|
103
105
|
this.isCombinationComponent = false;
|
|
104
106
|
this.canSort = true;
|
|
105
107
|
this.children = [];
|
|
@@ -8,6 +8,7 @@ declare class BasicCascader 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[];
|
|
13
14
|
dataType: ComponentInterface['dataType'];
|
|
@@ -24,6 +24,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
24
24
|
_defineProperty(this, "rules", void 0);
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -131,6 +132,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
131
132
|
this.name = _options.name;
|
|
132
133
|
this.id = _options.id;
|
|
133
134
|
this.sortField = "".concat(_options.id, "_multSelect");
|
|
135
|
+
this.formField = "".concat(_options.id, "_multSelect");
|
|
134
136
|
this.type = _options.type;
|
|
135
137
|
this.componentConfig = _options.componentConfig;
|
|
136
138
|
this.rules = [];
|
|
@@ -12,6 +12,7 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
12
12
|
rules: any[];
|
|
13
13
|
componentConfig: ComponentInterface["componentConfig"];
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
15
16
|
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
17
18
|
dataType: ComponentInterface['dataType'];
|
|
@@ -38,5 +39,6 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
38
39
|
};
|
|
39
40
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
40
41
|
};
|
|
42
|
+
formDataTransform: (v: Value) => string[] | undefined;
|
|
41
43
|
}
|
|
42
44
|
export default BasicCheckbox;
|
|
@@ -24,6 +24,7 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
24
24
|
_defineProperty(this, "rules", void 0);
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -112,9 +113,13 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
112
113
|
}
|
|
113
114
|
};
|
|
114
115
|
});
|
|
116
|
+
_defineProperty(this, "formDataTransform", function (v) {
|
|
117
|
+
return v === null || v === void 0 ? void 0 : v.value;
|
|
118
|
+
});
|
|
115
119
|
this.name = options.name;
|
|
116
120
|
this.id = options.id;
|
|
117
121
|
this.sortField = "".concat(options.id, "_checkbox");
|
|
122
|
+
this.formField = "".concat(options.id, "_checkbox");
|
|
118
123
|
this.type = options.type;
|
|
119
124
|
this.isCombinationComponent = false;
|
|
120
125
|
this.canSort = true;
|
|
@@ -11,6 +11,7 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
11
11
|
rules: any[];
|
|
12
12
|
componentConfig: ComponentInterface["componentConfig"];
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
16
17
|
dataType: ComponentInterface['dataType'];
|
|
@@ -24,6 +24,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
24
24
|
_defineProperty(this, "rules", void 0);
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -93,6 +94,7 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
93
94
|
this.name = options.name;
|
|
94
95
|
this.id = options.id;
|
|
95
96
|
this.sortField = options.id;
|
|
97
|
+
this.formField = options.id;
|
|
96
98
|
this.type = options.type;
|
|
97
99
|
this.componentConfig = options.componentConfig;
|
|
98
100
|
this.rules = [];
|
|
@@ -8,6 +8,7 @@ declare class CompletedUser 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[];
|
|
13
14
|
dataType: ComponentInterface['dataType'];
|
|
@@ -19,6 +19,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
19
19
|
_defineProperty(this, "componentConfig", void 0);
|
|
20
20
|
_defineProperty(this, "effects", void 0);
|
|
21
21
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
22
|
+
_defineProperty(this, "formField", void 0);
|
|
22
23
|
_defineProperty(this, "canSort", void 0);
|
|
23
24
|
_defineProperty(this, "children", void 0);
|
|
24
25
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -66,6 +67,7 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
|
66
67
|
this.name = "完成人";
|
|
67
68
|
this.id = "completedUserName";
|
|
68
69
|
this.sortField = "completedUserName";
|
|
70
|
+
this.formField = "completedUserName";
|
|
69
71
|
this.type = "COMPLETED_USER_INPUT";
|
|
70
72
|
this.effects = options.effects;
|
|
71
73
|
this.isCombinationComponent = false;
|
|
@@ -10,6 +10,7 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
10
10
|
rules: any[];
|
|
11
11
|
componentConfig: ComponentInterface["componentConfig"];
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
15
16
|
dataType: ComponentInterface['dataType'];
|
|
@@ -44,6 +44,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
44
44
|
_defineProperty(this, "rules", void 0);
|
|
45
45
|
_defineProperty(this, "componentConfig", void 0);
|
|
46
46
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
47
|
+
_defineProperty(this, "formField", void 0);
|
|
47
48
|
_defineProperty(this, "canSort", void 0);
|
|
48
49
|
_defineProperty(this, "children", void 0);
|
|
49
50
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -125,6 +126,7 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
125
126
|
this.name = options.name;
|
|
126
127
|
this.id = options.id;
|
|
127
128
|
this.sortField = "".concat(options.id, "_dateTime");
|
|
129
|
+
this.formField = "".concat(options.id, "_dateTime");
|
|
128
130
|
this.type = options.type;
|
|
129
131
|
this.componentConfig = options.componentConfig;
|
|
130
132
|
this.rules = [];
|
|
@@ -9,6 +9,7 @@ declare class EItemEncode 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[];
|
|
14
15
|
dataType: ComponentInterface['dataType'];
|
|
@@ -25,6 +25,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(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);
|
|
30
31
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -99,6 +100,7 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
99
100
|
this.name = options.name;
|
|
100
101
|
this.id = options.id;
|
|
101
102
|
this.sortField = "".concat(options.id, "_itemList");
|
|
103
|
+
this.formField = "".concat(options.id, "_itemList");
|
|
102
104
|
this.type = options.type;
|
|
103
105
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
104
106
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
@@ -9,6 +9,7 @@ declare class EItemId 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[];
|
|
14
15
|
dataType: ComponentInterface['dataType'];
|
|
@@ -25,6 +25,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(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);
|
|
30
31
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -100,6 +101,7 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
100
101
|
this.name = options.name;
|
|
101
102
|
this.id = options.id;
|
|
102
103
|
this.sortField = "".concat(options.id, "_itemList");
|
|
104
|
+
this.formField = "".concat(options.id, "_itemList");
|
|
103
105
|
this.type = options.type;
|
|
104
106
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
105
107
|
this.isCombinationComponent = false;
|
|
@@ -9,6 +9,7 @@ declare class EItemSelect 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[];
|
|
14
15
|
dataType: ComponentInterface['dataType'];
|
|
@@ -23,6 +23,7 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(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);
|
|
28
29
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -78,6 +79,7 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
|
|
|
78
79
|
this.name = options.name;
|
|
79
80
|
this.id = options.id;
|
|
80
81
|
this.sortField = "".concat(options.id, "_itemList");
|
|
82
|
+
this.formField = "".concat(options.id, "_itemList");
|
|
81
83
|
this.type = options.type;
|
|
82
84
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
83
85
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
@@ -8,6 +8,7 @@ declare class ErpTradeId 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[];
|
|
13
14
|
dataType: ComponentInterface['dataType'];
|
|
@@ -21,6 +21,7 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
21
21
|
_defineProperty(this, "rules", void 0);
|
|
22
22
|
_defineProperty(this, "componentConfig", void 0);
|
|
23
23
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
+
_defineProperty(this, "formField", void 0);
|
|
24
25
|
_defineProperty(this, "canSort", void 0);
|
|
25
26
|
_defineProperty(this, "children", void 0);
|
|
26
27
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -79,6 +80,7 @@ var ErpTradeId = /*#__PURE__*/_createClass(function ErpTradeId(options) {
|
|
|
79
80
|
this.name = options.name;
|
|
80
81
|
this.id = options.id;
|
|
81
82
|
this.sortField = "".concat(options.id, "_tradeId");
|
|
83
|
+
this.formField = "".concat(options.id, "_tradeId");
|
|
82
84
|
this.type = options.type;
|
|
83
85
|
this.componentConfig = options.componentConfig;
|
|
84
86
|
this.rules = [];
|
|
@@ -12,6 +12,7 @@ declare class Express implements ComponentInterface {
|
|
|
12
12
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
13
|
width: number;
|
|
14
14
|
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
15
16
|
canSort: boolean;
|
|
16
17
|
children: ComponentInterface[];
|
|
17
18
|
dataType: ComponentInterface['dataType'];
|
|
@@ -25,6 +25,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
25
25
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
26
26
|
_defineProperty(this, "width", void 0);
|
|
27
27
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
+
_defineProperty(this, "formField", void 0);
|
|
28
29
|
_defineProperty(this, "canSort", void 0);
|
|
29
30
|
_defineProperty(this, "children", void 0);
|
|
30
31
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -86,6 +87,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
86
87
|
this.name = options.name;
|
|
87
88
|
this.id = options.id;
|
|
88
89
|
this.sortField = options.id;
|
|
90
|
+
this.formField = options.id;
|
|
89
91
|
this.type = options.type;
|
|
90
92
|
this.componentConfig = options.componentConfig;
|
|
91
93
|
this.rules = [];
|
|
@@ -24,6 +24,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
24
24
|
_defineProperty(this, "align", void 0);
|
|
25
25
|
_defineProperty(this, "width", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -78,6 +79,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
78
79
|
this.name = options.name;
|
|
79
80
|
this.id = options.id;
|
|
80
81
|
this.sortField = options.id;
|
|
82
|
+
this.formField = options.id;
|
|
81
83
|
this.type = options.type;
|
|
82
84
|
this.componentConfig = options.componentConfig;
|
|
83
85
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
@@ -10,6 +10,7 @@ declare class WorkOrderId implements ComponentInterface {
|
|
|
10
10
|
effects: ComponentInterface["effects"];
|
|
11
11
|
workOrderStatus: any;
|
|
12
12
|
isCombinationComponent: boolean;
|
|
13
|
+
formField: string;
|
|
13
14
|
canSort: boolean;
|
|
14
15
|
children: ComponentInterface[];
|
|
15
16
|
dataType: ComponentInterface['dataType'];
|
|
@@ -7,7 +7,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { Menu } from 'antd';
|
|
11
11
|
import { ApaasSelect } from '@kmkf-fe-packages/basic-components';
|
|
12
12
|
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
@@ -26,6 +26,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
26
26
|
_defineProperty(this, "effects", void 0);
|
|
27
27
|
_defineProperty(this, "workOrderStatus", void 0);
|
|
28
28
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
29
|
+
_defineProperty(this, "formField", void 0);
|
|
29
30
|
_defineProperty(this, "canSort", void 0);
|
|
30
31
|
_defineProperty(this, "children", void 0);
|
|
31
32
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -50,13 +51,16 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
50
51
|
});
|
|
51
52
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
52
53
|
var status = get(_this.workOrderStatus, record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
|
|
53
|
-
return status ?
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
return status ?
|
|
55
|
+
/*#__PURE__*/
|
|
56
|
+
// <Dropdown overlay={this.renderMenu(record)}>
|
|
57
|
+
React.createElement("span", {
|
|
56
58
|
style: {
|
|
57
59
|
color: status.color
|
|
58
60
|
}
|
|
59
|
-
}, status === null || status === void 0 ? void 0 : status.label)
|
|
61
|
+
}, status === null || status === void 0 ? void 0 : status.label)
|
|
62
|
+
// </Dropdown>
|
|
63
|
+
: /*#__PURE__*/React.createElement("span", null, "--");
|
|
60
64
|
});
|
|
61
65
|
_defineProperty(this, "renderLog", function (r) {
|
|
62
66
|
var status = get(_this.workOrderStatus, r === null || r === void 0 ? void 0 : r["".concat(_this.id)]);
|
|
@@ -116,6 +120,7 @@ var WorkOrderId = /*#__PURE__*/_createClass(function WorkOrderId(options) {
|
|
|
116
120
|
this.name = options.name;
|
|
117
121
|
this.id = options.id;
|
|
118
122
|
this.sortField = options.id;
|
|
123
|
+
this.formField = options.id;
|
|
119
124
|
this.type = options.type;
|
|
120
125
|
this.componentConfig = options.componentConfig;
|
|
121
126
|
this.effects = options.effects;
|
|
@@ -7,5 +7,5 @@ declare type GetFormItemProps = {
|
|
|
7
7
|
component: JSX.Element | null;
|
|
8
8
|
hidden?: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare const GetFormItem: ({ rules, required, title, component, name, hidden }: GetFormItemProps) => React.JSX.Element;
|
|
10
|
+
declare const GetFormItem: ({ rules, required, title, component, name, hidden }: GetFormItemProps) => React.JSX.Element | null;
|
|
11
11
|
export default GetFormItem;
|
|
@@ -15,6 +15,8 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
15
15
|
message: "\u8BF7\u8F93\u5165".concat(title)
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
// 当隐藏时, 不在拥有该组件
|
|
19
|
+
if (hidden) return null;
|
|
18
20
|
return /*#__PURE__*/React.createElement("div", {
|
|
19
21
|
className: "form-item--wrap",
|
|
20
22
|
style: {
|
|
@@ -24,8 +26,8 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
24
26
|
name: name,
|
|
25
27
|
label: title,
|
|
26
28
|
rules: newRules,
|
|
27
|
-
className: "form-item-label--index"
|
|
28
|
-
|
|
29
|
+
className: "form-item-label--index"
|
|
30
|
+
// hidden={hidden}
|
|
29
31
|
}, component));
|
|
30
32
|
};
|
|
31
33
|
export default GetFormItem;
|
|
@@ -8,6 +8,7 @@ declare class BasicGrade 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[];
|
|
13
14
|
dataType: ComponentInterface['dataType'];
|
|
@@ -20,6 +20,7 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
|
|
|
20
20
|
_defineProperty(this, "rules", void 0);
|
|
21
21
|
_defineProperty(this, "componentConfig", void 0);
|
|
22
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "formField", void 0);
|
|
23
24
|
_defineProperty(this, "canSort", void 0);
|
|
24
25
|
_defineProperty(this, "children", void 0);
|
|
25
26
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -62,6 +63,7 @@ var BasicGrade = /*#__PURE__*/_createClass(function BasicGrade(options) {
|
|
|
62
63
|
this.name = options.name;
|
|
63
64
|
this.id = options.id;
|
|
64
65
|
this.sortField = "".concat(options.id, "_basicGrade");
|
|
66
|
+
this.formField = "".concat(options.id, "_basicGrade");
|
|
65
67
|
this.type = options.type;
|
|
66
68
|
this.componentConfig = options.componentConfig;
|
|
67
69
|
this.rules = [];
|
|
@@ -8,6 +8,7 @@ declare class Handler 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[];
|
|
13
14
|
dataType: ComponentInterface['dataType'];
|
|
@@ -20,6 +20,7 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
20
20
|
_defineProperty(this, "componentConfig", void 0);
|
|
21
21
|
_defineProperty(this, "effects", void 0);
|
|
22
22
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
23
|
+
_defineProperty(this, "formField", void 0);
|
|
23
24
|
_defineProperty(this, "canSort", void 0);
|
|
24
25
|
_defineProperty(this, "children", void 0);
|
|
25
26
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -76,6 +77,7 @@ var Handler = /*#__PURE__*/_createClass(function Handler(options) {
|
|
|
76
77
|
this.name = "处理人";
|
|
77
78
|
this.id = "handlerList";
|
|
78
79
|
this.sortField = "handlerList";
|
|
80
|
+
this.formField = "handlerList";
|
|
79
81
|
this.type = "HANDLER_INPUT";
|
|
80
82
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
81
83
|
this.isCombinationComponent = false;
|
|
@@ -8,6 +8,7 @@ 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[];
|
|
13
14
|
dataType: ComponentInterface['dataType'];
|
|
@@ -24,6 +24,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
24
24
|
_defineProperty(this, "rules", void 0);
|
|
25
25
|
_defineProperty(this, "componentConfig", void 0);
|
|
26
26
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
27
28
|
_defineProperty(this, "canSort", void 0);
|
|
28
29
|
_defineProperty(this, "children", void 0);
|
|
29
30
|
_defineProperty(this, "dataType", void 0);
|
|
@@ -81,6 +82,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
81
82
|
this.name = options.name;
|
|
82
83
|
this.id = options.id;
|
|
83
84
|
this.sortField = "".concat(options.id, "_input");
|
|
85
|
+
this.formField = "".concat(options.id, "_input");
|
|
84
86
|
this.type = options.type;
|
|
85
87
|
this.componentConfig = options.componentConfig;
|
|
86
88
|
this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ? [{
|
|
@@ -11,6 +11,7 @@ declare class JstItemSelect implements ComponentInterface {
|
|
|
11
11
|
align: ALignType;
|
|
12
12
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
13
|
isCombinationComponent: boolean;
|
|
14
|
+
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
16
17
|
dataType: ComponentInterface['dataType'];
|