szld-libs 0.2.54 → 0.2.55
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/szld-components.es.js +1763 -1759
- package/dist/szld-components.umd.js +1 -1
- package/es/utils/method.d.ts +3 -2
- package/es/utils/method.js +10 -4
- package/lib/utils/method.d.ts +3 -2
- package/lib/utils/method.js +10 -4
- package/package.json +1 -1
package/es/utils/method.d.ts
CHANGED
|
@@ -6,12 +6,13 @@ export declare const handleSubmitForm: (originalData: any, allValues: any) => {
|
|
|
6
6
|
uploadedFiles: any[];
|
|
7
7
|
};
|
|
8
8
|
export declare const handleAttrList: (attrList: any[]) => any[];
|
|
9
|
-
export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName,
|
|
9
|
+
export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName, servicerAttrListInterfaceName, accepterAttrListInterfaceName, commonRequest, }: {
|
|
10
10
|
number: string | number;
|
|
11
11
|
key: string;
|
|
12
12
|
guidInterfaceName: string;
|
|
13
13
|
SelPCParamInterfaceName: string;
|
|
14
|
-
|
|
14
|
+
servicerAttrListInterfaceName: string;
|
|
15
|
+
accepterAttrListInterfaceName: string;
|
|
15
16
|
sourceNumber?: string | number | undefined;
|
|
16
17
|
commonRequest: any;
|
|
17
18
|
}) => Promise<{
|
package/es/utils/method.js
CHANGED
|
@@ -133,11 +133,12 @@ const handleFormConfig = async ({
|
|
|
133
133
|
sourceNumber,
|
|
134
134
|
guidInterfaceName,
|
|
135
135
|
SelPCParamInterfaceName,
|
|
136
|
-
|
|
136
|
+
servicerAttrListInterfaceName,
|
|
137
|
+
accepterAttrListInterfaceName,
|
|
137
138
|
commonRequest
|
|
138
139
|
}) => {
|
|
139
140
|
return new Promise(async (resolve, reject) => {
|
|
140
|
-
var _a, _b, _c;
|
|
141
|
+
var _a, _b, _c, _d;
|
|
141
142
|
let newGUID = "", attrListConfigs = [], baseData = {};
|
|
142
143
|
const guidRes = await commonRequest(guidInterfaceName || "FWDXGLCreateGUID", {
|
|
143
144
|
"source-number": sourceNumber
|
|
@@ -152,12 +153,17 @@ const handleFormConfig = async ({
|
|
|
152
153
|
});
|
|
153
154
|
if ((res == null ? void 0 : res.ReturnValue) === 1) {
|
|
154
155
|
const asid = (_b = res.data[number]) == null ? void 0 : _b[key];
|
|
155
|
-
const
|
|
156
|
+
const propertiesType = ((_c = res.data[number]) == null ? void 0 : _c["properties-type"]) || "accepter";
|
|
157
|
+
const propertiesTypeMap = {
|
|
158
|
+
server: servicerAttrListInterfaceName,
|
|
159
|
+
accepter: accepterAttrListInterfaceName
|
|
160
|
+
};
|
|
161
|
+
const res2 = await commonRequest(propertiesTypeMap[propertiesType] || "ACPTSubALLList", {
|
|
156
162
|
asid,
|
|
157
163
|
"source-number": sourceNumber
|
|
158
164
|
});
|
|
159
165
|
if ((res2 == null ? void 0 : res2.ReturnValue) === 1 && res2.data) {
|
|
160
|
-
const attrList = ((
|
|
166
|
+
const attrList = ((_d = res2.data) == null ? void 0 : _d["attr_list"]) || [];
|
|
161
167
|
attrListConfigs = handleAttrList(attrList);
|
|
162
168
|
baseData = {
|
|
163
169
|
...res2.data,
|
package/lib/utils/method.d.ts
CHANGED
|
@@ -6,12 +6,13 @@ export declare const handleSubmitForm: (originalData: any, allValues: any) => {
|
|
|
6
6
|
uploadedFiles: any[];
|
|
7
7
|
};
|
|
8
8
|
export declare const handleAttrList: (attrList: any[]) => any[];
|
|
9
|
-
export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName,
|
|
9
|
+
export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName, servicerAttrListInterfaceName, accepterAttrListInterfaceName, commonRequest, }: {
|
|
10
10
|
number: string | number;
|
|
11
11
|
key: string;
|
|
12
12
|
guidInterfaceName: string;
|
|
13
13
|
SelPCParamInterfaceName: string;
|
|
14
|
-
|
|
14
|
+
servicerAttrListInterfaceName: string;
|
|
15
|
+
accepterAttrListInterfaceName: string;
|
|
15
16
|
sourceNumber?: string | number | undefined;
|
|
16
17
|
commonRequest: any;
|
|
17
18
|
}) => Promise<{
|
package/lib/utils/method.js
CHANGED
|
@@ -135,11 +135,12 @@ const handleFormConfig = async ({
|
|
|
135
135
|
sourceNumber,
|
|
136
136
|
guidInterfaceName,
|
|
137
137
|
SelPCParamInterfaceName,
|
|
138
|
-
|
|
138
|
+
servicerAttrListInterfaceName,
|
|
139
|
+
accepterAttrListInterfaceName,
|
|
139
140
|
commonRequest
|
|
140
141
|
}) => {
|
|
141
142
|
return new Promise(async (resolve, reject) => {
|
|
142
|
-
var _a, _b, _c;
|
|
143
|
+
var _a, _b, _c, _d;
|
|
143
144
|
let newGUID = "", attrListConfigs = [], baseData = {};
|
|
144
145
|
const guidRes = await commonRequest(guidInterfaceName || "FWDXGLCreateGUID", {
|
|
145
146
|
"source-number": sourceNumber
|
|
@@ -154,12 +155,17 @@ const handleFormConfig = async ({
|
|
|
154
155
|
});
|
|
155
156
|
if ((res == null ? void 0 : res.ReturnValue) === 1) {
|
|
156
157
|
const asid = (_b = res.data[number]) == null ? void 0 : _b[key];
|
|
157
|
-
const
|
|
158
|
+
const propertiesType = ((_c = res.data[number]) == null ? void 0 : _c["properties-type"]) || "accepter";
|
|
159
|
+
const propertiesTypeMap = {
|
|
160
|
+
server: servicerAttrListInterfaceName,
|
|
161
|
+
accepter: accepterAttrListInterfaceName
|
|
162
|
+
};
|
|
163
|
+
const res2 = await commonRequest(propertiesTypeMap[propertiesType] || "ACPTSubALLList", {
|
|
158
164
|
asid,
|
|
159
165
|
"source-number": sourceNumber
|
|
160
166
|
});
|
|
161
167
|
if ((res2 == null ? void 0 : res2.ReturnValue) === 1 && res2.data) {
|
|
162
|
-
const attrList = ((
|
|
168
|
+
const attrList = ((_d = res2.data) == null ? void 0 : _d["attr_list"]) || [];
|
|
163
169
|
attrListConfigs = handleAttrList(attrList);
|
|
164
170
|
baseData = {
|
|
165
171
|
...res2.data,
|