iv-npm 1.7.108 → 1.7.111
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/package.json +1 -1
- package/packages/shared/dist/utils/index.d.ts +1 -1
- package/packages/shared/dist/utils/index.mjs +13 -1
- package/packages/ui/dist/business-ui/component/IVMeterageSelector.d.ts +66 -0
- package/packages/ui/dist/index.cjs.js +4 -4
- package/packages/ui/dist/index.cjs.js.map +1 -1
- package/packages/ui/dist/index.esm.js +5 -5
- package/packages/ui/dist/index.esm.js.map +1 -1
- package/packages/ui/dist/index.umd.js +5 -5
- package/packages/ui/dist/index.umd.js.map +1 -1
- package/packages/ui/dist/ui/src/api/api.config.d.ts +10 -0
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@ declare function buildURL(url: string, params: any): string;
|
|
|
83
83
|
|
|
84
84
|
declare function apiConfiger(config: any): any;
|
|
85
85
|
|
|
86
|
-
declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "ASSETS_URL" | "GATEWAY_URL" | "SFM_URL" | "CCFLOW_URL";
|
|
86
|
+
declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "ASSETS_URL" | "GATEWAY_URL" | "SFM_URL" | "CCFLOW_URL" | "SHARECOOL_URL";
|
|
87
87
|
declare function hostConfiger(key: HostKey): string;
|
|
88
88
|
|
|
89
89
|
declare type formatType = {
|
|
@@ -169,6 +169,9 @@ function buildURL(url, params) {
|
|
|
169
169
|
var hostname = window.location.hostname.split(".");
|
|
170
170
|
var protocol = window.location.protocol;
|
|
171
171
|
function apiConfiger(config) {
|
|
172
|
+
if (config.requestBase == "SHARECOOL_URL") {
|
|
173
|
+
config.baseURL = process.env.NODE_ENV == "development" ? "/mrp" : `${protocol}//mrp.${hostname[1]}.${hostname[2]}`;
|
|
174
|
+
}
|
|
172
175
|
if (config.requestBase == "USER_BASE_URL") {
|
|
173
176
|
config.baseURL = process.env.NODE_ENV == "development" ? "/user" : `${protocol}//basis.${hostname[1]}.${hostname[2]}`;
|
|
174
177
|
}
|
|
@@ -236,8 +239,14 @@ function hostConfiger(key) {
|
|
|
236
239
|
ASSETS_URL: "https://assets.nacho.cn",
|
|
237
240
|
GATEWAY_URL: "https://gateway.nacho.cn",
|
|
238
241
|
SFM_URL: "https://sfm.nacho.cn",
|
|
239
|
-
CCFLOW_URL: "https://ccflow.nacho.cn/"
|
|
242
|
+
CCFLOW_URL: "https://ccflow.nacho.cn/",
|
|
243
|
+
SHARECOOL_URL: "https://mrp.sharecool.com/"
|
|
240
244
|
};
|
|
245
|
+
try {
|
|
246
|
+
if (process.env.VITE_APP_SHARECOOL_URL)
|
|
247
|
+
devHost.SHARECOOL_URL = process.env.VITE_APP_SHARECOOL_URL;
|
|
248
|
+
} catch (error) {
|
|
249
|
+
}
|
|
241
250
|
try {
|
|
242
251
|
if (process.env.VITE_APP_BASE_URL)
|
|
243
252
|
devHost.BASE_URL = process.env.VITE_APP_BASE_URL;
|
|
@@ -306,6 +315,9 @@ function hostConfiger(key) {
|
|
|
306
315
|
case "CCFLOW_URL":
|
|
307
316
|
preString = "ccflow";
|
|
308
317
|
break;
|
|
318
|
+
case "SHARECOOL_URL":
|
|
319
|
+
preString = "mrp";
|
|
320
|
+
break;
|
|
309
321
|
default:
|
|
310
322
|
throw new Error("no matching arguments\uFF01");
|
|
311
323
|
}
|
|
@@ -109,6 +109,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
required: false;
|
|
110
110
|
default: boolean;
|
|
111
111
|
};
|
|
112
|
+
screenVendor: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
required: false;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
screenMaterialCategory: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
required: false;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
screenProductionBase: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
required: false;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
screenPartyB: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
required: false;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
screenContract: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
required: false;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
screenPartyA: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
required: false;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
112
142
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
113
143
|
[key: string]: any;
|
|
114
144
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "getItem")[], "update:show" | "getItem", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -219,6 +249,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
219
249
|
required: false;
|
|
220
250
|
default: boolean;
|
|
221
251
|
};
|
|
252
|
+
screenVendor: {
|
|
253
|
+
type: BooleanConstructor;
|
|
254
|
+
required: false;
|
|
255
|
+
default: boolean;
|
|
256
|
+
};
|
|
257
|
+
screenMaterialCategory: {
|
|
258
|
+
type: BooleanConstructor;
|
|
259
|
+
required: false;
|
|
260
|
+
default: boolean;
|
|
261
|
+
};
|
|
262
|
+
screenProductionBase: {
|
|
263
|
+
type: BooleanConstructor;
|
|
264
|
+
required: false;
|
|
265
|
+
default: boolean;
|
|
266
|
+
};
|
|
267
|
+
screenPartyB: {
|
|
268
|
+
type: BooleanConstructor;
|
|
269
|
+
required: false;
|
|
270
|
+
default: boolean;
|
|
271
|
+
};
|
|
272
|
+
screenContract: {
|
|
273
|
+
type: BooleanConstructor;
|
|
274
|
+
required: false;
|
|
275
|
+
default: boolean;
|
|
276
|
+
};
|
|
277
|
+
screenPartyA: {
|
|
278
|
+
type: BooleanConstructor;
|
|
279
|
+
required: false;
|
|
280
|
+
default: boolean;
|
|
281
|
+
};
|
|
222
282
|
}>> & {
|
|
223
283
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
224
284
|
onGetItem?: ((...args: any[]) => any) | undefined;
|
|
@@ -227,5 +287,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
227
287
|
isEntry: boolean;
|
|
228
288
|
isMultipleCheckEmptyGetData: boolean;
|
|
229
289
|
closeMultipleLinkage: boolean;
|
|
290
|
+
screenVendor: boolean;
|
|
291
|
+
screenMaterialCategory: boolean;
|
|
292
|
+
screenProductionBase: boolean;
|
|
293
|
+
screenPartyB: boolean;
|
|
294
|
+
screenContract: boolean;
|
|
295
|
+
screenPartyA: boolean;
|
|
230
296
|
}>;
|
|
231
297
|
export default _default;
|