@fmdeui/fmui 1.0.117 → 1.0.118
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/es/components/fm-autocomplete/component/subjectSelectDialog.vue.d.ts +68 -0
- package/es/components/fm-autocomplete/index.d.ts +18 -0
- package/es/components/fm-autocomplete/index.vue.d.ts +22 -4
- package/es/packages/components/fm-autocomplete/component/subjectSelectDialog.vue.mjs +5 -0
- package/es/packages/components/fm-autocomplete/component/subjectSelectDialog2.vue.mjs +143 -0
- package/es/packages/components/fm-autocomplete/index2.vue.mjs +25 -4
- package/index.js +249 -90
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +249 -90
- package/lib/components/fm-autocomplete/component/subjectSelectDialog.vue.d.ts +68 -0
- package/lib/components/fm-autocomplete/index.d.ts +18 -0
- package/lib/components/fm-autocomplete/index.vue.d.ts +22 -4
- package/lib/packages/components/fm-autocomplete/component/subjectSelectDialog.vue.js +9 -0
- package/lib/packages/components/fm-autocomplete/component/subjectSelectDialog2.vue.js +147 -0
- package/lib/packages/components/fm-autocomplete/index2.vue.js +25 -4
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{component.css → version.css} +0 -0
- /package/lib/{index.css → component.css} +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
visible: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
data: {
|
|
12
|
+
type: ArrayConstructor;
|
|
13
|
+
default: () => never[];
|
|
14
|
+
};
|
|
15
|
+
subjectService: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
subjectAction: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
subjectParams: {
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
default: () => void;
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
|
+
change: (...args: any[]) => void;
|
|
29
|
+
"update:visible": (...args: any[]) => void;
|
|
30
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
31
|
+
visible: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
title: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
data: {
|
|
40
|
+
type: ArrayConstructor;
|
|
41
|
+
default: () => never[];
|
|
42
|
+
};
|
|
43
|
+
subjectService: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
subjectAction: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
subjectParams: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
default: () => void;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{
|
|
56
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
title: string;
|
|
60
|
+
data: unknown[];
|
|
61
|
+
visible: boolean;
|
|
62
|
+
subjectService: string;
|
|
63
|
+
subjectAction: string;
|
|
64
|
+
subjectParams: Record<string, any>;
|
|
65
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
66
|
+
orgTreeRef: unknown;
|
|
67
|
+
}, any>;
|
|
68
|
+
export default _default;
|
|
@@ -60,6 +60,14 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
60
60
|
type: StringConstructor;
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
|
+
subjectService: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
subjectAction: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
63
71
|
name: {
|
|
64
72
|
type: PropType<string>;
|
|
65
73
|
required: true;
|
|
@@ -134,6 +142,14 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
134
142
|
type: StringConstructor;
|
|
135
143
|
default: string;
|
|
136
144
|
};
|
|
145
|
+
subjectService: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
subjectAction: {
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
default: string;
|
|
152
|
+
};
|
|
137
153
|
name: {
|
|
138
154
|
type: PropType<string>;
|
|
139
155
|
required: true;
|
|
@@ -157,6 +173,8 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
157
173
|
orgAction: string;
|
|
158
174
|
userService: string;
|
|
159
175
|
userAction: string;
|
|
176
|
+
subjectService: string;
|
|
177
|
+
subjectAction: string;
|
|
160
178
|
atoService: string;
|
|
161
179
|
atoAction: string;
|
|
162
180
|
searchsize: number;
|
|
@@ -56,8 +56,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
56
56
|
default: () => void;
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
|
-
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
60
|
-
* @default
|
|
59
|
+
* 打开类型 0--用户加机构 1-- 联系人 2-- 单位 3-- 银行账户 4--科目
|
|
60
|
+
* @default 0
|
|
61
61
|
*/
|
|
62
62
|
openType: {
|
|
63
63
|
type: NumberConstructor;
|
|
@@ -79,6 +79,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
79
79
|
type: StringConstructor;
|
|
80
80
|
default: string;
|
|
81
81
|
};
|
|
82
|
+
subjectService: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
subjectAction: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
default: string;
|
|
89
|
+
};
|
|
82
90
|
name: {
|
|
83
91
|
type: PropType<string>;
|
|
84
92
|
required: true;
|
|
@@ -149,8 +157,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
149
157
|
default: () => void;
|
|
150
158
|
};
|
|
151
159
|
/**
|
|
152
|
-
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
153
|
-
* @default
|
|
160
|
+
* 打开类型 0--用户加机构 1-- 联系人 2-- 单位 3-- 银行账户 4--科目
|
|
161
|
+
* @default 0
|
|
154
162
|
*/
|
|
155
163
|
openType: {
|
|
156
164
|
type: NumberConstructor;
|
|
@@ -172,6 +180,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
172
180
|
type: StringConstructor;
|
|
173
181
|
default: string;
|
|
174
182
|
};
|
|
183
|
+
subjectService: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
default: string;
|
|
186
|
+
};
|
|
187
|
+
subjectAction: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
default: string;
|
|
190
|
+
};
|
|
175
191
|
name: {
|
|
176
192
|
type: PropType<string>;
|
|
177
193
|
required: true;
|
|
@@ -195,6 +211,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
195
211
|
orgAction: string;
|
|
196
212
|
userService: string;
|
|
197
213
|
userAction: string;
|
|
214
|
+
subjectService: string;
|
|
215
|
+
subjectAction: string;
|
|
198
216
|
atoService: string;
|
|
199
217
|
atoAction: string;
|
|
200
218
|
searchsize: number;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent, computed, onMounted, resolveComponent, openBlock, createBlock, isRef, unref, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
const _hoisted_1 = { style: { "color": "#fff" } };
|
|
4
|
+
const _hoisted_2 = { class: "dialog-footer" };
|
|
5
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "subjectSelectDialog",
|
|
7
|
+
props: {
|
|
8
|
+
visible: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: false
|
|
11
|
+
},
|
|
12
|
+
title: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
data: {
|
|
17
|
+
type: Array,
|
|
18
|
+
default: () => []
|
|
19
|
+
},
|
|
20
|
+
subjectService: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "autoRes"
|
|
23
|
+
},
|
|
24
|
+
subjectAction: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "subjectTable"
|
|
27
|
+
},
|
|
28
|
+
subjectParams: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: () => {
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:visible", "change"],
|
|
35
|
+
setup(__props, { emit: __emit }) {
|
|
36
|
+
let emits = __emit;
|
|
37
|
+
const props = __props;
|
|
38
|
+
let visibleDialog = computed({
|
|
39
|
+
get() {
|
|
40
|
+
return props.visible;
|
|
41
|
+
},
|
|
42
|
+
set() {
|
|
43
|
+
closeDialog();
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
onMounted(async () => {
|
|
47
|
+
});
|
|
48
|
+
const handleNodeChange = async (node) => {
|
|
49
|
+
if (node.data.isLeaf == 1) {
|
|
50
|
+
emits("change", { id: node.id, name: node.name, code: node.data.subjectCode, data: node.data });
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const closeDialog = () => {
|
|
54
|
+
emits("update:visible", false);
|
|
55
|
+
};
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
const _component_ele_Edit = resolveComponent("ele-Edit");
|
|
58
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
59
|
+
const _component_FmTree = resolveComponent("FmTree");
|
|
60
|
+
const _component_el_col = resolveComponent("el-col");
|
|
61
|
+
const _component_el_row = resolveComponent("el-row");
|
|
62
|
+
const _component_el_button = resolveComponent("el-button");
|
|
63
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
64
|
+
return openBlock(), createBlock(_component_el_dialog, {
|
|
65
|
+
modelValue: unref(visibleDialog),
|
|
66
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(visibleDialog) ? visibleDialog.value = $event : visibleDialog = $event),
|
|
67
|
+
style: { "width": "70vw" },
|
|
68
|
+
"append-to-body": "",
|
|
69
|
+
draggable: "",
|
|
70
|
+
"close-on-click-modal": false
|
|
71
|
+
}, {
|
|
72
|
+
header: withCtx(() => [
|
|
73
|
+
createElementVNode("div", _hoisted_1, [
|
|
74
|
+
createVNode(_component_el_icon, {
|
|
75
|
+
size: "16",
|
|
76
|
+
style: { "margin-right": "3px", "display": "inline", "vertical-align": "middle" }
|
|
77
|
+
}, {
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
createVNode(_component_ele_Edit)
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
/* STABLE */
|
|
83
|
+
}),
|
|
84
|
+
createElementVNode(
|
|
85
|
+
"span",
|
|
86
|
+
null,
|
|
87
|
+
toDisplayString(_ctx.$t("\u9009\u62E9")) + toDisplayString(_ctx.$t(__props.title)),
|
|
88
|
+
1
|
|
89
|
+
/* TEXT */
|
|
90
|
+
)
|
|
91
|
+
])
|
|
92
|
+
]),
|
|
93
|
+
footer: withCtx(() => [
|
|
94
|
+
createElementVNode("div", _hoisted_2, [
|
|
95
|
+
createVNode(_component_el_button, {
|
|
96
|
+
icon: "ele-CircleCloseFilled",
|
|
97
|
+
onClick: closeDialog
|
|
98
|
+
}, {
|
|
99
|
+
default: withCtx(() => [
|
|
100
|
+
createTextVNode(
|
|
101
|
+
toDisplayString(_ctx.$t("\u53D6\u6D88")),
|
|
102
|
+
1
|
|
103
|
+
/* TEXT */
|
|
104
|
+
)
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
/* STABLE */
|
|
108
|
+
}),
|
|
109
|
+
createCommentVNode(' <el-button type="primary" icon="ele-CircleCheckFilled" @click="saveDialog">\u786E\u5B9A</el-button> ')
|
|
110
|
+
])
|
|
111
|
+
]),
|
|
112
|
+
default: withCtx(() => [
|
|
113
|
+
createVNode(_component_el_row, { gutter: 10 }, {
|
|
114
|
+
default: withCtx(() => [
|
|
115
|
+
createVNode(_component_el_col, { span: 24 }, {
|
|
116
|
+
default: withCtx(() => [
|
|
117
|
+
createVNode(_component_FmTree, {
|
|
118
|
+
ref: "orgTreeRef",
|
|
119
|
+
apiService: __props.subjectService,
|
|
120
|
+
apiAction: __props.subjectAction,
|
|
121
|
+
isPost: true,
|
|
122
|
+
defaultProps: { children: "children", label: "subjectName" },
|
|
123
|
+
paras: __props.subjectParams,
|
|
124
|
+
onNodeClick: handleNodeChange,
|
|
125
|
+
style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
|
|
126
|
+
}, null, 8, ["apiService", "apiAction", "paras"])
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
/* STABLE */
|
|
130
|
+
})
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
/* STABLE */
|
|
134
|
+
})
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
/* STABLE */
|
|
138
|
+
}, 8, ["modelValue"]);
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
export { _sfc_main as default };
|
|
@@ -3,9 +3,11 @@ import { Search } from '@element-plus/icons-vue';
|
|
|
3
3
|
import '../../api/index.mjs';
|
|
4
4
|
import './component/userSelectDialog.vue.mjs';
|
|
5
5
|
import './component/supplierSelectDialog.vue.mjs';
|
|
6
|
+
import './component/subjectSelectDialog.vue.mjs';
|
|
6
7
|
import { useBaseApi } from '../../api/base/index.mjs';
|
|
7
8
|
import _sfc_main$1 from './component/userSelectDialog2.vue.mjs';
|
|
8
9
|
import _sfc_main$2 from './component/supplierSelectDialog2.vue.mjs';
|
|
10
|
+
import _sfc_main$3 from './component/subjectSelectDialog2.vue.mjs';
|
|
9
11
|
|
|
10
12
|
const _hoisted_1 = { style: { "font-size": "14px", "line-height": "30px" } };
|
|
11
13
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -71,8 +73,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
73
|
}
|
|
72
74
|
},
|
|
73
75
|
/**
|
|
74
|
-
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
75
|
-
* @default
|
|
76
|
+
* 打开类型 0--用户加机构 1-- 联系人 2-- 单位 3-- 银行账户 4--科目
|
|
77
|
+
* @default 0
|
|
76
78
|
*/
|
|
77
79
|
openType: {
|
|
78
80
|
type: Number,
|
|
@@ -93,6 +95,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
95
|
userAction: {
|
|
94
96
|
type: String,
|
|
95
97
|
default: "UserTable"
|
|
98
|
+
},
|
|
99
|
+
subjectService: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: "autoRes"
|
|
102
|
+
},
|
|
103
|
+
subjectAction: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: "subjectTable"
|
|
96
106
|
}
|
|
97
107
|
}, {
|
|
98
108
|
"name": {
|
|
@@ -150,7 +160,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
150
160
|
const _component_el_autocomplete = resolveComponent("el-autocomplete");
|
|
151
161
|
return openBlock(), createBlock(_component_el_autocomplete, {
|
|
152
162
|
modelValue: autoName.value,
|
|
153
|
-
"onUpdate:modelValue": _cache[
|
|
163
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => autoName.value = $event),
|
|
154
164
|
debounce: 500,
|
|
155
165
|
"fetch-suggestions": querySearchAsync,
|
|
156
166
|
placeholder: props.placeholder,
|
|
@@ -206,7 +216,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
206
216
|
userAction: __props.userAction,
|
|
207
217
|
userParams: __props.params,
|
|
208
218
|
onChange: handleSelectDialogChange
|
|
209
|
-
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true)
|
|
219
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
|
|
220
|
+
createCommentVNode("\u79D1\u76EE\u9009\u62E9"),
|
|
221
|
+
__props.openType == 4 ? (openBlock(), createBlock(_sfc_main$3, {
|
|
222
|
+
key: 2,
|
|
223
|
+
visible: visibleopenDialog.value,
|
|
224
|
+
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => visibleopenDialog.value = $event),
|
|
225
|
+
title: __props.title,
|
|
226
|
+
subjectService: __props.subjectService,
|
|
227
|
+
subjectAction: __props.subjectAction,
|
|
228
|
+
subjectParams: __props.params,
|
|
229
|
+
onChange: handleSelectDialogChange
|
|
230
|
+
}, null, 8, ["visible", "title", "subjectService", "subjectAction", "subjectParams"])) : createCommentVNode("v-if", true)
|
|
210
231
|
]),
|
|
211
232
|
key: "0"
|
|
212
233
|
} : void 0
|