@fmdeui/fmui 1.0.117 → 1.0.119
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 +69 -0
- package/es/components/fm-autocomplete/index.d.ts +27 -0
- package/es/components/fm-autocomplete/index.vue.d.ts +37 -4
- package/es/packages/components/fm-autocomplete/component/subjectSelectDialog.vue.mjs +5 -0
- package/es/packages/components/fm-autocomplete/component/subjectSelectDialog2.vue.mjs +326 -0
- package/es/packages/components/fm-autocomplete/index2.vue.mjs +33 -5
- package/index.js +462 -115
- package/index.min.js +6 -6
- package/index.min.mjs +7 -7
- package/index.mjs +462 -115
- package/lib/components/fm-autocomplete/component/subjectSelectDialog.vue.d.ts +69 -0
- package/lib/components/fm-autocomplete/index.d.ts +27 -0
- package/lib/components/fm-autocomplete/index.vue.d.ts +37 -4
- package/lib/packages/components/fm-autocomplete/component/subjectSelectDialog.vue.js +9 -0
- package/lib/packages/components/fm-autocomplete/component/subjectSelectDialog2.vue.js +330 -0
- package/lib/packages/components/fm-autocomplete/index2.vue.js +33 -5
- 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/lib/{index.css → defaults.css} +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
queryRef: unknown;
|
|
67
|
+
refTable: unknown;
|
|
68
|
+
}, any>;
|
|
69
|
+
export default _default;
|
|
@@ -28,6 +28,10 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
28
28
|
type: StringConstructor;
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
|
+
vLabel: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
31
35
|
qId: {
|
|
32
36
|
type: NumberConstructor;
|
|
33
37
|
default: number;
|
|
@@ -60,6 +64,14 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
60
64
|
type: StringConstructor;
|
|
61
65
|
default: string;
|
|
62
66
|
};
|
|
67
|
+
subjectService: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
subjectAction: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
63
75
|
name: {
|
|
64
76
|
type: PropType<string>;
|
|
65
77
|
required: true;
|
|
@@ -102,6 +114,10 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
102
114
|
type: StringConstructor;
|
|
103
115
|
default: string;
|
|
104
116
|
};
|
|
117
|
+
vLabel: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
105
121
|
qId: {
|
|
106
122
|
type: NumberConstructor;
|
|
107
123
|
default: number;
|
|
@@ -134,6 +150,14 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
134
150
|
type: StringConstructor;
|
|
135
151
|
default: string;
|
|
136
152
|
};
|
|
153
|
+
subjectService: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
default: string;
|
|
156
|
+
};
|
|
157
|
+
subjectAction: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
137
161
|
name: {
|
|
138
162
|
type: PropType<string>;
|
|
139
163
|
required: true;
|
|
@@ -157,10 +181,13 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
157
181
|
orgAction: string;
|
|
158
182
|
userService: string;
|
|
159
183
|
userAction: string;
|
|
184
|
+
subjectService: string;
|
|
185
|
+
subjectAction: string;
|
|
160
186
|
atoService: string;
|
|
161
187
|
atoAction: string;
|
|
162
188
|
searchsize: number;
|
|
163
189
|
vName: string;
|
|
190
|
+
vLabel: string;
|
|
164
191
|
qId: number;
|
|
165
192
|
openType: number;
|
|
166
193
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -40,6 +40,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
40
40
|
type: StringConstructor;
|
|
41
41
|
default: string;
|
|
42
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* 过滤出来显示的名称 加上属性标签
|
|
45
|
+
*/
|
|
46
|
+
vLabel: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
43
50
|
/**
|
|
44
51
|
* 查询业务表ID
|
|
45
52
|
*/
|
|
@@ -56,8 +63,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
56
63
|
default: () => void;
|
|
57
64
|
};
|
|
58
65
|
/**
|
|
59
|
-
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
60
|
-
* @default
|
|
66
|
+
* 打开类型 0--用户加机构 1-- 联系人 2-- 单位 3-- 银行账户 4--科目
|
|
67
|
+
* @default 0
|
|
61
68
|
*/
|
|
62
69
|
openType: {
|
|
63
70
|
type: NumberConstructor;
|
|
@@ -79,6 +86,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
79
86
|
type: StringConstructor;
|
|
80
87
|
default: string;
|
|
81
88
|
};
|
|
89
|
+
subjectService: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
subjectAction: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
82
97
|
name: {
|
|
83
98
|
type: PropType<string>;
|
|
84
99
|
required: true;
|
|
@@ -133,6 +148,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
133
148
|
type: StringConstructor;
|
|
134
149
|
default: string;
|
|
135
150
|
};
|
|
151
|
+
/**
|
|
152
|
+
* 过滤出来显示的名称 加上属性标签
|
|
153
|
+
*/
|
|
154
|
+
vLabel: {
|
|
155
|
+
type: StringConstructor;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
136
158
|
/**
|
|
137
159
|
* 查询业务表ID
|
|
138
160
|
*/
|
|
@@ -149,8 +171,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
149
171
|
default: () => void;
|
|
150
172
|
};
|
|
151
173
|
/**
|
|
152
|
-
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
153
|
-
* @default
|
|
174
|
+
* 打开类型 0--用户加机构 1-- 联系人 2-- 单位 3-- 银行账户 4--科目
|
|
175
|
+
* @default 0
|
|
154
176
|
*/
|
|
155
177
|
openType: {
|
|
156
178
|
type: NumberConstructor;
|
|
@@ -172,6 +194,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
172
194
|
type: StringConstructor;
|
|
173
195
|
default: string;
|
|
174
196
|
};
|
|
197
|
+
subjectService: {
|
|
198
|
+
type: StringConstructor;
|
|
199
|
+
default: string;
|
|
200
|
+
};
|
|
201
|
+
subjectAction: {
|
|
202
|
+
type: StringConstructor;
|
|
203
|
+
default: string;
|
|
204
|
+
};
|
|
175
205
|
name: {
|
|
176
206
|
type: PropType<string>;
|
|
177
207
|
required: true;
|
|
@@ -195,10 +225,13 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
195
225
|
orgAction: string;
|
|
196
226
|
userService: string;
|
|
197
227
|
userAction: string;
|
|
228
|
+
subjectService: string;
|
|
229
|
+
subjectAction: string;
|
|
198
230
|
atoService: string;
|
|
199
231
|
atoAction: string;
|
|
200
232
|
searchsize: number;
|
|
201
233
|
vName: string;
|
|
234
|
+
vLabel: string;
|
|
202
235
|
qId: number;
|
|
203
236
|
openType: number;
|
|
204
237
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { defineComponent, computed, reactive, ref, onMounted, resolveComponent, openBlock, createBlock, isRef, unref, withCtx, createVNode, createElementVNode, toDisplayString, withKeys, createTextVNode, createCommentVNode } from 'vue';
|
|
2
|
+
import '../../../api/index.mjs';
|
|
3
|
+
import { useBaseApi } from '../../../api/base/index.mjs';
|
|
4
|
+
|
|
5
|
+
const _hoisted_1 = { style: { "color": "#fff" } };
|
|
6
|
+
const _hoisted_2 = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
|
|
7
|
+
const _hoisted_3 = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
|
|
8
|
+
const _hoisted_4 = { style: { "margin-top": "10px" } };
|
|
9
|
+
const _hoisted_5 = { class: "dialog-footer" };
|
|
10
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "subjectSelectDialog",
|
|
12
|
+
props: {
|
|
13
|
+
visible: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
16
|
+
},
|
|
17
|
+
title: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
data: {
|
|
22
|
+
type: Array,
|
|
23
|
+
default: () => []
|
|
24
|
+
},
|
|
25
|
+
subjectService: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "autoRes"
|
|
28
|
+
},
|
|
29
|
+
subjectAction: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "subjectTable"
|
|
32
|
+
},
|
|
33
|
+
subjectParams: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default: () => {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
emits: ["update:visible", "change"],
|
|
40
|
+
setup(__props, { emit: __emit }) {
|
|
41
|
+
let emits = __emit;
|
|
42
|
+
const props = __props;
|
|
43
|
+
let visibleDialog = computed({
|
|
44
|
+
get() {
|
|
45
|
+
return props.visible;
|
|
46
|
+
},
|
|
47
|
+
set() {
|
|
48
|
+
closeDialog();
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
const state = reactive({
|
|
52
|
+
treeData: [{ id: 1, name: "\u8D44\u4EA7", code: "" }, { id: 2, name: "\u8D1F\u503A", code: "" }, { id: 3, name: "\u6743\u76CA", code: "" }, { id: 4, name: "\u6210\u672C", code: "" }, { id: 5, name: "\u635F\u76CA", code: "" }],
|
|
53
|
+
total: 0,
|
|
54
|
+
queryParams: {
|
|
55
|
+
pid: 0
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
const tableList = ref([]);
|
|
59
|
+
onMounted(async () => {
|
|
60
|
+
await getTableList();
|
|
61
|
+
});
|
|
62
|
+
const getTableList = async () => {
|
|
63
|
+
var _a;
|
|
64
|
+
const res = await useBaseApi(props.subjectService).post(state.queryParams, props.subjectAction);
|
|
65
|
+
tableList.value = (_a = res.data.result) != null ? _a : [];
|
|
66
|
+
};
|
|
67
|
+
function handleSelect(row) {
|
|
68
|
+
if (!row || row.id == "" || row.isLeaf == 0) return;
|
|
69
|
+
emits("change", { id: row.id, name: row.subjectName, code: row.subjectCode, data: row });
|
|
70
|
+
}
|
|
71
|
+
const handledbclick = (row) => {
|
|
72
|
+
handleSelect(row);
|
|
73
|
+
};
|
|
74
|
+
async function handleQuery() {
|
|
75
|
+
await getTableList();
|
|
76
|
+
}
|
|
77
|
+
const handleNodeChange = async (node) => {
|
|
78
|
+
state.queryParams.pid = node.id;
|
|
79
|
+
await handleQuery();
|
|
80
|
+
};
|
|
81
|
+
const resetQuery = () => {
|
|
82
|
+
state.queryParams = {};
|
|
83
|
+
handleQuery();
|
|
84
|
+
};
|
|
85
|
+
const closeDialog = () => {
|
|
86
|
+
emits("update:visible", false);
|
|
87
|
+
};
|
|
88
|
+
return (_ctx, _cache) => {
|
|
89
|
+
const _component_ele_Edit = resolveComponent("ele-Edit");
|
|
90
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
91
|
+
const _component_FmTree = resolveComponent("FmTree");
|
|
92
|
+
const _component_el_col = resolveComponent("el-col");
|
|
93
|
+
const _component_el_input = resolveComponent("el-input");
|
|
94
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
95
|
+
const _component_el_button = resolveComponent("el-button");
|
|
96
|
+
const _component_el_button_group = resolveComponent("el-button-group");
|
|
97
|
+
const _component_el_form = resolveComponent("el-form");
|
|
98
|
+
const _component_ele_Plus = resolveComponent("ele-Plus");
|
|
99
|
+
const _component_el_table_column = resolveComponent("el-table-column");
|
|
100
|
+
const _component_el_table = resolveComponent("el-table");
|
|
101
|
+
const _component_el_card = resolveComponent("el-card");
|
|
102
|
+
const _component_el_row = resolveComponent("el-row");
|
|
103
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
104
|
+
return openBlock(), createBlock(_component_el_dialog, {
|
|
105
|
+
modelValue: unref(visibleDialog),
|
|
106
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(visibleDialog) ? visibleDialog.value = $event : visibleDialog = $event),
|
|
107
|
+
style: { "width": "70vw" },
|
|
108
|
+
"append-to-body": "",
|
|
109
|
+
draggable: "",
|
|
110
|
+
"close-on-click-modal": false
|
|
111
|
+
}, {
|
|
112
|
+
header: withCtx(() => [
|
|
113
|
+
createElementVNode("div", _hoisted_1, [
|
|
114
|
+
createVNode(_component_el_icon, {
|
|
115
|
+
size: "16",
|
|
116
|
+
style: { "margin-right": "3px", "display": "inline", "vertical-align": "middle" }
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createVNode(_component_ele_Edit)
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
/* STABLE */
|
|
123
|
+
}),
|
|
124
|
+
createElementVNode(
|
|
125
|
+
"span",
|
|
126
|
+
null,
|
|
127
|
+
toDisplayString(_ctx.$t("\u9009\u62E9")) + toDisplayString(_ctx.$t(__props.title)),
|
|
128
|
+
1
|
|
129
|
+
/* TEXT */
|
|
130
|
+
)
|
|
131
|
+
])
|
|
132
|
+
]),
|
|
133
|
+
footer: withCtx(() => [
|
|
134
|
+
createElementVNode("div", _hoisted_5, [
|
|
135
|
+
createVNode(_component_el_button, {
|
|
136
|
+
icon: "ele-CircleCloseFilled",
|
|
137
|
+
onClick: closeDialog
|
|
138
|
+
}, {
|
|
139
|
+
default: withCtx(() => [
|
|
140
|
+
createTextVNode(
|
|
141
|
+
toDisplayString(_ctx.$t("\u53D6\u6D88")),
|
|
142
|
+
1
|
|
143
|
+
/* TEXT */
|
|
144
|
+
)
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
/* STABLE */
|
|
148
|
+
}),
|
|
149
|
+
createCommentVNode(' <el-button type="primary" icon="ele-CircleCheckFilled" @click="saveDialog">\u786E\u5B9A</el-button> ')
|
|
150
|
+
])
|
|
151
|
+
]),
|
|
152
|
+
default: withCtx(() => [
|
|
153
|
+
createVNode(_component_el_row, { gutter: 10 }, {
|
|
154
|
+
default: withCtx(() => [
|
|
155
|
+
createVNode(_component_el_col, { span: 6 }, {
|
|
156
|
+
default: withCtx(() => [
|
|
157
|
+
createElementVNode(
|
|
158
|
+
"p",
|
|
159
|
+
_hoisted_2,
|
|
160
|
+
toDisplayString(_ctx.$t("\u5927\u7C7B")),
|
|
161
|
+
1
|
|
162
|
+
/* TEXT */
|
|
163
|
+
),
|
|
164
|
+
createVNode(_component_FmTree, {
|
|
165
|
+
treeData: state.treeData,
|
|
166
|
+
onNodeClick: handleNodeChange,
|
|
167
|
+
style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
|
|
168
|
+
}, null, 8, ["treeData"])
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
/* STABLE */
|
|
172
|
+
}),
|
|
173
|
+
createVNode(_component_el_col, { span: 18 }, {
|
|
174
|
+
default: withCtx(() => [
|
|
175
|
+
createElementVNode(
|
|
176
|
+
"p",
|
|
177
|
+
_hoisted_3,
|
|
178
|
+
toDisplayString(_ctx.$t(__props.title)) + toDisplayString(_ctx.$t("\u5217\u8868")),
|
|
179
|
+
1
|
|
180
|
+
/* TEXT */
|
|
181
|
+
),
|
|
182
|
+
createElementVNode("div", _hoisted_4, [
|
|
183
|
+
createVNode(_component_el_form, {
|
|
184
|
+
model: state.queryParams,
|
|
185
|
+
ref: "queryRef",
|
|
186
|
+
inline: true
|
|
187
|
+
}, {
|
|
188
|
+
default: withCtx(() => [
|
|
189
|
+
createVNode(_component_el_form_item, {
|
|
190
|
+
label: _ctx.$t("\u5173\u952E\u5B57")
|
|
191
|
+
}, {
|
|
192
|
+
default: withCtx(() => [
|
|
193
|
+
createVNode(_component_el_input, {
|
|
194
|
+
modelValue: state.queryParams.keyword,
|
|
195
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.queryParams.keyword = $event),
|
|
196
|
+
clearable: "",
|
|
197
|
+
style: { "width": "150px" },
|
|
198
|
+
onKeyup: withKeys(handleQuery, ["enter"])
|
|
199
|
+
}, null, 8, ["modelValue"])
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
/* STABLE */
|
|
203
|
+
}, 8, ["label"]),
|
|
204
|
+
createVNode(_component_el_form_item, null, {
|
|
205
|
+
default: withCtx(() => [
|
|
206
|
+
createVNode(_component_el_button_group, null, {
|
|
207
|
+
default: withCtx(() => [
|
|
208
|
+
createVNode(_component_el_button, {
|
|
209
|
+
type: "primary",
|
|
210
|
+
icon: "ele-Search",
|
|
211
|
+
onClick: handleQuery
|
|
212
|
+
}, {
|
|
213
|
+
default: withCtx(() => [
|
|
214
|
+
createTextVNode(
|
|
215
|
+
toDisplayString(_ctx.$t("\u67E5\u8BE2")),
|
|
216
|
+
1
|
|
217
|
+
/* TEXT */
|
|
218
|
+
)
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
/* STABLE */
|
|
222
|
+
}),
|
|
223
|
+
createVNode(_component_el_button, {
|
|
224
|
+
icon: "ele-Refresh",
|
|
225
|
+
onClick: resetQuery
|
|
226
|
+
}, {
|
|
227
|
+
default: withCtx(() => [
|
|
228
|
+
createTextVNode(
|
|
229
|
+
toDisplayString(_ctx.$t("\u91CD\u7F6E")),
|
|
230
|
+
1
|
|
231
|
+
/* TEXT */
|
|
232
|
+
)
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
/* STABLE */
|
|
236
|
+
})
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
/* STABLE */
|
|
240
|
+
})
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
/* STABLE */
|
|
244
|
+
})
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
/* STABLE */
|
|
248
|
+
}, 8, ["model"]),
|
|
249
|
+
createVNode(_component_el_card, {
|
|
250
|
+
class: "full-table",
|
|
251
|
+
shadow: "hover"
|
|
252
|
+
}, {
|
|
253
|
+
default: withCtx(() => [
|
|
254
|
+
createVNode(_component_el_table, {
|
|
255
|
+
ref: "refTable",
|
|
256
|
+
data: tableList.value,
|
|
257
|
+
style: { "height": "calc(70vh - 96px)" },
|
|
258
|
+
onRowDblclick: handledbclick
|
|
259
|
+
}, {
|
|
260
|
+
default: withCtx(() => [
|
|
261
|
+
createVNode(_component_el_table_column, {
|
|
262
|
+
label: "\u64CD\u4F5C",
|
|
263
|
+
width: "60",
|
|
264
|
+
align: "center"
|
|
265
|
+
}, {
|
|
266
|
+
default: withCtx((scope) => [
|
|
267
|
+
scope.row.isLeaf == 1 ? (openBlock(), createBlock(_component_el_button, {
|
|
268
|
+
key: 0,
|
|
269
|
+
link: "",
|
|
270
|
+
type: "primary",
|
|
271
|
+
onClick: ($event) => handleSelect(scope.row)
|
|
272
|
+
}, {
|
|
273
|
+
default: withCtx(() => [
|
|
274
|
+
createVNode(_component_el_icon, null, {
|
|
275
|
+
default: withCtx(() => [
|
|
276
|
+
createVNode(_component_ele_Plus)
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
/* STABLE */
|
|
280
|
+
})
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
/* STABLE */
|
|
284
|
+
}, 8, ["onClick"])) : createCommentVNode("v-if", true)
|
|
285
|
+
]),
|
|
286
|
+
_: 1
|
|
287
|
+
/* STABLE */
|
|
288
|
+
}),
|
|
289
|
+
createVNode(_component_el_table_column, {
|
|
290
|
+
label: _ctx.$t("\u79D1\u76EE\u7F16\u7801"),
|
|
291
|
+
prop: "subjectCode",
|
|
292
|
+
align: "center",
|
|
293
|
+
"show-overflow-tooltip": true
|
|
294
|
+
}, null, 8, ["label"]),
|
|
295
|
+
createVNode(_component_el_table_column, {
|
|
296
|
+
label: _ctx.$t("\u79D1\u76EE\u540D\u79F0"),
|
|
297
|
+
prop: "subjectName",
|
|
298
|
+
align: "center",
|
|
299
|
+
"show-overflow-tooltip": true
|
|
300
|
+
}, null, 8, ["label"])
|
|
301
|
+
]),
|
|
302
|
+
_: 1
|
|
303
|
+
/* STABLE */
|
|
304
|
+
}, 8, ["data"])
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
/* STABLE */
|
|
308
|
+
})
|
|
309
|
+
])
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
/* STABLE */
|
|
313
|
+
})
|
|
314
|
+
]),
|
|
315
|
+
_: 1
|
|
316
|
+
/* STABLE */
|
|
317
|
+
})
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
/* STABLE */
|
|
321
|
+
}, 8, ["modelValue"]);
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
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({
|
|
@@ -54,6 +56,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
56
|
type: String,
|
|
55
57
|
default: "name"
|
|
56
58
|
},
|
|
59
|
+
/**
|
|
60
|
+
* 过滤出来显示的名称 加上属性标签
|
|
61
|
+
*/
|
|
62
|
+
vLabel: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: ""
|
|
65
|
+
},
|
|
57
66
|
/**
|
|
58
67
|
* 查询业务表ID
|
|
59
68
|
*/
|
|
@@ -71,8 +80,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
71
80
|
}
|
|
72
81
|
},
|
|
73
82
|
/**
|
|
74
|
-
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
75
|
-
* @default
|
|
83
|
+
* 打开类型 0--用户加机构 1-- 联系人 2-- 单位 3-- 银行账户 4--科目
|
|
84
|
+
* @default 0
|
|
76
85
|
*/
|
|
77
86
|
openType: {
|
|
78
87
|
type: Number,
|
|
@@ -93,6 +102,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
102
|
userAction: {
|
|
94
103
|
type: String,
|
|
95
104
|
default: "UserTable"
|
|
105
|
+
},
|
|
106
|
+
subjectService: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: "autoRes"
|
|
109
|
+
},
|
|
110
|
+
subjectAction: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: "subjectTable"
|
|
96
113
|
}
|
|
97
114
|
}, {
|
|
98
115
|
"name": {
|
|
@@ -150,7 +167,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
150
167
|
const _component_el_autocomplete = resolveComponent("el-autocomplete");
|
|
151
168
|
return openBlock(), createBlock(_component_el_autocomplete, {
|
|
152
169
|
modelValue: autoName.value,
|
|
153
|
-
"onUpdate:modelValue": _cache[
|
|
170
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => autoName.value = $event),
|
|
154
171
|
debounce: 500,
|
|
155
172
|
"fetch-suggestions": querySearchAsync,
|
|
156
173
|
placeholder: props.placeholder,
|
|
@@ -162,7 +179,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
162
179
|
createElementVNode(
|
|
163
180
|
"div",
|
|
164
181
|
_hoisted_1,
|
|
165
|
-
toDisplayString(item[__props.vName]),
|
|
182
|
+
toDisplayString(item[__props.vName]) + " " + toDisplayString(__props.vLabel != "" ? "(" + item[__props.vLabel] + ")" : ""),
|
|
166
183
|
1
|
|
167
184
|
/* TEXT */
|
|
168
185
|
)
|
|
@@ -206,7 +223,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
206
223
|
userAction: __props.userAction,
|
|
207
224
|
userParams: __props.params,
|
|
208
225
|
onChange: handleSelectDialogChange
|
|
209
|
-
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true)
|
|
226
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
|
|
227
|
+
createCommentVNode("\u79D1\u76EE\u9009\u62E9"),
|
|
228
|
+
__props.openType == 4 ? (openBlock(), createBlock(_sfc_main$3, {
|
|
229
|
+
key: 2,
|
|
230
|
+
visible: visibleopenDialog.value,
|
|
231
|
+
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => visibleopenDialog.value = $event),
|
|
232
|
+
title: __props.title,
|
|
233
|
+
subjectService: __props.subjectService,
|
|
234
|
+
subjectAction: __props.subjectAction,
|
|
235
|
+
subjectParams: __props.params,
|
|
236
|
+
onChange: handleSelectDialogChange
|
|
237
|
+
}, null, 8, ["visible", "title", "subjectService", "subjectAction", "subjectParams"])) : createCommentVNode("v-if", true)
|
|
210
238
|
]),
|
|
211
239
|
key: "0"
|
|
212
240
|
} : void 0
|