iv-npm 1.1.5 → 1.1.8
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 +3 -1
- package/packages/shared/dist/utils/index.mjs +6 -0
- package/packages/ui/README.md +41 -1
- package/packages/ui/dist/api/api.config.d.ts +8 -0
- package/packages/ui/dist/business-ui/component/IVMrpLineDropdown.d.ts +11 -1
- package/packages/ui/dist/business-ui/component/IVMrpOrgDropdown.d.ts +15 -1
- package/packages/ui/dist/business-ui/component/IVMrpPostDropdown.d.ts +53 -0
- package/packages/ui/dist/business-ui/component/IVMrpProdBaseDropdown.d.ts +11 -1
- package/packages/ui/dist/business-ui/component/IVMrpSetofbookDropdown.d.ts +68 -0
- package/packages/ui/dist/business-ui/index.d.ts +3 -1
- package/packages/ui/dist/index.cjs.js +448 -64
- package/packages/ui/dist/index.d.ts +2 -2
- package/packages/ui/dist/index.esm.js +444 -62
- package/packages/ui/dist/index.umd.js +448 -64
- package/packages/ui/dist/index.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -34,4 +34,6 @@ declare const assign: {
|
|
|
34
34
|
(target: object, ...sources: any[]): any;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
declare function filterOptionHeadle(input: string, option: any): any;
|
|
38
|
+
|
|
39
|
+
export { arrToTree, assign, filterOptionHeadle, findTree, isObject, isPlainObject, tranListToTreeData };
|
|
@@ -62,9 +62,15 @@ var isObject = (val) => val !== null && typeof val === "object";
|
|
|
62
62
|
|
|
63
63
|
// utils/obj/cache.ts
|
|
64
64
|
var assign = Object.assign;
|
|
65
|
+
|
|
66
|
+
// utils/input/index.ts
|
|
67
|
+
function filterOptionHeadle(input, option) {
|
|
68
|
+
return option.label && option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
69
|
+
}
|
|
65
70
|
export {
|
|
66
71
|
arrToTree,
|
|
67
72
|
assign,
|
|
73
|
+
filterOptionHeadle,
|
|
68
74
|
findTree,
|
|
69
75
|
isObject,
|
|
70
76
|
isPlainObject,
|
package/packages/ui/README.md
CHANGED
|
@@ -148,4 +148,44 @@ app.use(ivUi)
|
|
|
148
148
|
|
|
149
149
|
| props |
|
|
150
150
|
| -------- |
|
|
151
|
-
| 参考生产基地下拉 |
|
|
151
|
+
| 参考生产基地下拉 |
|
|
152
|
+
|
|
153
|
+
## 账套下拉
|
|
154
|
+
|
|
155
|
+
> <IVMrpSetofbookDropdown/>
|
|
156
|
+
|
|
157
|
+
- 组件API
|
|
158
|
+
|
|
159
|
+
```js
|
|
160
|
+
{
|
|
161
|
+
method: "GET",
|
|
162
|
+
url:'/api/basis-management/setOfBook/all',
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
- 示例
|
|
170
|
+
|
|
171
|
+
```vue
|
|
172
|
+
<template>
|
|
173
|
+
<IVMrpSetofbookDropdown
|
|
174
|
+
v-model:value="Detail.lineIds"
|
|
175
|
+
:params="{type:1}"
|
|
176
|
+
:data="{name:123}"
|
|
177
|
+
:fieldNames="{
|
|
178
|
+
label: "displayName",
|
|
179
|
+
value: "id",
|
|
180
|
+
}"
|
|
181
|
+
/>
|
|
182
|
+
</template>
|
|
183
|
+
<script setup lang="ts">
|
|
184
|
+
import { IVMrpSetofbookDropdown } from "iv-npm/packages/ui";
|
|
185
|
+
</script>
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
| props | describe | type |
|
|
189
|
+
| ------------ | -------- | ------------------- |
|
|
190
|
+
| multiple | 是否多选 | Boolean,defind:true |
|
|
191
|
+
| 其余参考参考生产基地下拉 | | |
|
|
@@ -12,6 +12,14 @@ declare const API_OPTION: {
|
|
|
12
12
|
url: string;
|
|
13
13
|
option: any;
|
|
14
14
|
};
|
|
15
|
+
getIVMrpSetofbookDropdown: {
|
|
16
|
+
url: string;
|
|
17
|
+
option: any;
|
|
18
|
+
};
|
|
19
|
+
getIVMrpPostDropdown: {
|
|
20
|
+
url: string;
|
|
21
|
+
option: any;
|
|
22
|
+
};
|
|
15
23
|
};
|
|
16
24
|
export declare const formatHTTP: (fetch: any) => Promise<any>;
|
|
17
25
|
export declare const formatUrl: (base: string, api: string, params: object) => string;
|
|
@@ -17,6 +17,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
fieldNames: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
+
default: () => {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
20
24
|
};
|
|
21
25
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
26
|
[key: string]: any;
|
|
@@ -36,8 +40,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
40
|
fieldNames: {
|
|
37
41
|
type: null;
|
|
38
42
|
required: false;
|
|
43
|
+
default: () => {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
39
47
|
};
|
|
40
48
|
}>> & {
|
|
41
49
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}, {
|
|
50
|
+
}, {
|
|
51
|
+
fieldNames: any;
|
|
52
|
+
}>;
|
|
43
53
|
export default _default;
|
|
@@ -17,6 +17,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
replaceFields: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
+
default: () => {
|
|
21
|
+
children: string;
|
|
22
|
+
label: string;
|
|
23
|
+
key: string;
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
20
26
|
};
|
|
21
27
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
28
|
[key: string]: any;
|
|
@@ -36,8 +42,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
42
|
replaceFields: {
|
|
37
43
|
type: null;
|
|
38
44
|
required: false;
|
|
45
|
+
default: () => {
|
|
46
|
+
children: string;
|
|
47
|
+
label: string;
|
|
48
|
+
key: string;
|
|
49
|
+
value: string;
|
|
50
|
+
};
|
|
39
51
|
};
|
|
40
52
|
}>> & {
|
|
41
53
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}, {
|
|
54
|
+
}, {
|
|
55
|
+
replaceFields: any;
|
|
56
|
+
}>;
|
|
43
57
|
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件定义-------------------------------------
|
|
3
|
+
* */
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
value: {
|
|
6
|
+
type: null;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
params: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
required: false;
|
|
12
|
+
};
|
|
13
|
+
data: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
};
|
|
17
|
+
fieldNames: {
|
|
18
|
+
type: null;
|
|
19
|
+
required: false;
|
|
20
|
+
default: () => {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
value: {
|
|
29
|
+
type: null;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
params: {
|
|
33
|
+
type: ObjectConstructor;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
data: {
|
|
37
|
+
type: ObjectConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
fieldNames: {
|
|
41
|
+
type: null;
|
|
42
|
+
required: false;
|
|
43
|
+
default: () => {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}>> & {
|
|
49
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
fieldNames: any;
|
|
52
|
+
}>;
|
|
53
|
+
export default _default;
|
|
@@ -17,6 +17,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
fieldNames: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
+
default: () => {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
20
24
|
};
|
|
21
25
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
26
|
[key: string]: any;
|
|
@@ -36,8 +40,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
40
|
fieldNames: {
|
|
37
41
|
type: null;
|
|
38
42
|
required: false;
|
|
43
|
+
default: () => {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
39
47
|
};
|
|
40
48
|
}>> & {
|
|
41
49
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}, {
|
|
50
|
+
}, {
|
|
51
|
+
fieldNames: any;
|
|
52
|
+
}>;
|
|
43
53
|
export default _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件定义-------------------------------------
|
|
3
|
+
* */
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
value: {
|
|
6
|
+
type: null;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
params: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
required: false;
|
|
12
|
+
};
|
|
13
|
+
data: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
};
|
|
17
|
+
replaceFields: {
|
|
18
|
+
type: null;
|
|
19
|
+
required: false;
|
|
20
|
+
default: () => {
|
|
21
|
+
children: string;
|
|
22
|
+
label: string;
|
|
23
|
+
key: string;
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
multiple: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
required: false;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
value: {
|
|
36
|
+
type: null;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
params: {
|
|
40
|
+
type: ObjectConstructor;
|
|
41
|
+
required: false;
|
|
42
|
+
};
|
|
43
|
+
data: {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
required: false;
|
|
46
|
+
};
|
|
47
|
+
replaceFields: {
|
|
48
|
+
type: null;
|
|
49
|
+
required: false;
|
|
50
|
+
default: () => {
|
|
51
|
+
children: string;
|
|
52
|
+
label: string;
|
|
53
|
+
key: string;
|
|
54
|
+
value: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
multiple: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
}>> & {
|
|
63
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
replaceFields: any;
|
|
66
|
+
multiple: boolean;
|
|
67
|
+
}>;
|
|
68
|
+
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import IVMrpOrgDropdown from "./component/IVMrpOrgDropdown.vue";
|
|
2
2
|
import IVMrpProdBaseDropdown from "./component/IVMrpProdBaseDropdown.vue";
|
|
3
3
|
import IVMrpLineDropdown from "./component/IVMrpLineDropdown.vue";
|
|
4
|
-
|
|
4
|
+
import IVMrpSetofbookDropdown from "./component/IVMrpSetofbookDropdown.vue";
|
|
5
|
+
import IVMrpPostDropdown from "./component/IVMrpPostDropdown.vue";
|
|
6
|
+
export { IVMrpOrgDropdown, IVMrpProdBaseDropdown, IVMrpLineDropdown, IVMrpSetofbookDropdown, IVMrpPostDropdown, };
|