@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,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var subjectSelectDialog_vue_vue_type_script_setup_true_lang = require('./subjectSelectDialog2.vue.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = subjectSelectDialog_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../../../api/index.js');
|
|
7
|
+
var index = require('../../../api/base/index.js');
|
|
8
|
+
|
|
9
|
+
const _hoisted_1 = { style: { "color": "#fff" } };
|
|
10
|
+
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" } };
|
|
11
|
+
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" } };
|
|
12
|
+
const _hoisted_4 = { style: { "margin-top": "10px" } };
|
|
13
|
+
const _hoisted_5 = { class: "dialog-footer" };
|
|
14
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
15
|
+
__name: "subjectSelectDialog",
|
|
16
|
+
props: {
|
|
17
|
+
visible: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
21
|
+
title: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
data: {
|
|
26
|
+
type: Array,
|
|
27
|
+
default: () => []
|
|
28
|
+
},
|
|
29
|
+
subjectService: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "autoRes"
|
|
32
|
+
},
|
|
33
|
+
subjectAction: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "subjectTable"
|
|
36
|
+
},
|
|
37
|
+
subjectParams: {
|
|
38
|
+
type: Object,
|
|
39
|
+
default: () => {
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["update:visible", "change"],
|
|
44
|
+
setup(__props, { emit: __emit }) {
|
|
45
|
+
let emits = __emit;
|
|
46
|
+
const props = __props;
|
|
47
|
+
let visibleDialog = vue.computed({
|
|
48
|
+
get() {
|
|
49
|
+
return props.visible;
|
|
50
|
+
},
|
|
51
|
+
set() {
|
|
52
|
+
closeDialog();
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const state = vue.reactive({
|
|
56
|
+
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: "" }],
|
|
57
|
+
total: 0,
|
|
58
|
+
queryParams: {
|
|
59
|
+
pid: 0
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const tableList = vue.ref([]);
|
|
63
|
+
vue.onMounted(async () => {
|
|
64
|
+
await getTableList();
|
|
65
|
+
});
|
|
66
|
+
const getTableList = async () => {
|
|
67
|
+
var _a;
|
|
68
|
+
const res = await index.useBaseApi(props.subjectService).post(state.queryParams, props.subjectAction);
|
|
69
|
+
tableList.value = (_a = res.data.result) != null ? _a : [];
|
|
70
|
+
};
|
|
71
|
+
function handleSelect(row) {
|
|
72
|
+
if (!row || row.id == "" || row.isLeaf == 0) return;
|
|
73
|
+
emits("change", { id: row.id, name: row.subjectName, code: row.subjectCode, data: row });
|
|
74
|
+
}
|
|
75
|
+
const handledbclick = (row) => {
|
|
76
|
+
handleSelect(row);
|
|
77
|
+
};
|
|
78
|
+
async function handleQuery() {
|
|
79
|
+
await getTableList();
|
|
80
|
+
}
|
|
81
|
+
const handleNodeChange = async (node) => {
|
|
82
|
+
state.queryParams.pid = node.id;
|
|
83
|
+
await handleQuery();
|
|
84
|
+
};
|
|
85
|
+
const resetQuery = () => {
|
|
86
|
+
state.queryParams = {};
|
|
87
|
+
handleQuery();
|
|
88
|
+
};
|
|
89
|
+
const closeDialog = () => {
|
|
90
|
+
emits("update:visible", false);
|
|
91
|
+
};
|
|
92
|
+
return (_ctx, _cache) => {
|
|
93
|
+
const _component_ele_Edit = vue.resolveComponent("ele-Edit");
|
|
94
|
+
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
95
|
+
const _component_FmTree = vue.resolveComponent("FmTree");
|
|
96
|
+
const _component_el_col = vue.resolveComponent("el-col");
|
|
97
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
98
|
+
const _component_el_form_item = vue.resolveComponent("el-form-item");
|
|
99
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
|
100
|
+
const _component_el_button_group = vue.resolveComponent("el-button-group");
|
|
101
|
+
const _component_el_form = vue.resolveComponent("el-form");
|
|
102
|
+
const _component_ele_Plus = vue.resolveComponent("ele-Plus");
|
|
103
|
+
const _component_el_table_column = vue.resolveComponent("el-table-column");
|
|
104
|
+
const _component_el_table = vue.resolveComponent("el-table");
|
|
105
|
+
const _component_el_card = vue.resolveComponent("el-card");
|
|
106
|
+
const _component_el_row = vue.resolveComponent("el-row");
|
|
107
|
+
const _component_el_dialog = vue.resolveComponent("el-dialog");
|
|
108
|
+
return vue.openBlock(), vue.createBlock(_component_el_dialog, {
|
|
109
|
+
modelValue: vue.unref(visibleDialog),
|
|
110
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(visibleDialog) ? visibleDialog.value = $event : visibleDialog = $event),
|
|
111
|
+
style: { "width": "70vw" },
|
|
112
|
+
"append-to-body": "",
|
|
113
|
+
draggable: "",
|
|
114
|
+
"close-on-click-modal": false
|
|
115
|
+
}, {
|
|
116
|
+
header: vue.withCtx(() => [
|
|
117
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
118
|
+
vue.createVNode(_component_el_icon, {
|
|
119
|
+
size: "16",
|
|
120
|
+
style: { "margin-right": "3px", "display": "inline", "vertical-align": "middle" }
|
|
121
|
+
}, {
|
|
122
|
+
default: vue.withCtx(() => [
|
|
123
|
+
vue.createVNode(_component_ele_Edit)
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
/* STABLE */
|
|
127
|
+
}),
|
|
128
|
+
vue.createElementVNode(
|
|
129
|
+
"span",
|
|
130
|
+
null,
|
|
131
|
+
vue.toDisplayString(_ctx.$t("\u9009\u62E9")) + vue.toDisplayString(_ctx.$t(__props.title)),
|
|
132
|
+
1
|
|
133
|
+
/* TEXT */
|
|
134
|
+
)
|
|
135
|
+
])
|
|
136
|
+
]),
|
|
137
|
+
footer: vue.withCtx(() => [
|
|
138
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
139
|
+
vue.createVNode(_component_el_button, {
|
|
140
|
+
icon: "ele-CircleCloseFilled",
|
|
141
|
+
onClick: closeDialog
|
|
142
|
+
}, {
|
|
143
|
+
default: vue.withCtx(() => [
|
|
144
|
+
vue.createTextVNode(
|
|
145
|
+
vue.toDisplayString(_ctx.$t("\u53D6\u6D88")),
|
|
146
|
+
1
|
|
147
|
+
/* TEXT */
|
|
148
|
+
)
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
/* STABLE */
|
|
152
|
+
}),
|
|
153
|
+
vue.createCommentVNode(' <el-button type="primary" icon="ele-CircleCheckFilled" @click="saveDialog">\u786E\u5B9A</el-button> ')
|
|
154
|
+
])
|
|
155
|
+
]),
|
|
156
|
+
default: vue.withCtx(() => [
|
|
157
|
+
vue.createVNode(_component_el_row, { gutter: 10 }, {
|
|
158
|
+
default: vue.withCtx(() => [
|
|
159
|
+
vue.createVNode(_component_el_col, { span: 6 }, {
|
|
160
|
+
default: vue.withCtx(() => [
|
|
161
|
+
vue.createElementVNode(
|
|
162
|
+
"p",
|
|
163
|
+
_hoisted_2,
|
|
164
|
+
vue.toDisplayString(_ctx.$t("\u5927\u7C7B")),
|
|
165
|
+
1
|
|
166
|
+
/* TEXT */
|
|
167
|
+
),
|
|
168
|
+
vue.createVNode(_component_FmTree, {
|
|
169
|
+
treeData: state.treeData,
|
|
170
|
+
onNodeClick: handleNodeChange,
|
|
171
|
+
style: { "height": "calc(100% - 40px)", "overflow-y": "scroll", "overflow-x": "hidden" }
|
|
172
|
+
}, null, 8, ["treeData"])
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
/* STABLE */
|
|
176
|
+
}),
|
|
177
|
+
vue.createVNode(_component_el_col, { span: 18 }, {
|
|
178
|
+
default: vue.withCtx(() => [
|
|
179
|
+
vue.createElementVNode(
|
|
180
|
+
"p",
|
|
181
|
+
_hoisted_3,
|
|
182
|
+
vue.toDisplayString(_ctx.$t(__props.title)) + vue.toDisplayString(_ctx.$t("\u5217\u8868")),
|
|
183
|
+
1
|
|
184
|
+
/* TEXT */
|
|
185
|
+
),
|
|
186
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
187
|
+
vue.createVNode(_component_el_form, {
|
|
188
|
+
model: state.queryParams,
|
|
189
|
+
ref: "queryRef",
|
|
190
|
+
inline: true
|
|
191
|
+
}, {
|
|
192
|
+
default: vue.withCtx(() => [
|
|
193
|
+
vue.createVNode(_component_el_form_item, {
|
|
194
|
+
label: _ctx.$t("\u5173\u952E\u5B57")
|
|
195
|
+
}, {
|
|
196
|
+
default: vue.withCtx(() => [
|
|
197
|
+
vue.createVNode(_component_el_input, {
|
|
198
|
+
modelValue: state.queryParams.keyword,
|
|
199
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.queryParams.keyword = $event),
|
|
200
|
+
clearable: "",
|
|
201
|
+
style: { "width": "150px" },
|
|
202
|
+
onKeyup: vue.withKeys(handleQuery, ["enter"])
|
|
203
|
+
}, null, 8, ["modelValue"])
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
/* STABLE */
|
|
207
|
+
}, 8, ["label"]),
|
|
208
|
+
vue.createVNode(_component_el_form_item, null, {
|
|
209
|
+
default: vue.withCtx(() => [
|
|
210
|
+
vue.createVNode(_component_el_button_group, null, {
|
|
211
|
+
default: vue.withCtx(() => [
|
|
212
|
+
vue.createVNode(_component_el_button, {
|
|
213
|
+
type: "primary",
|
|
214
|
+
icon: "ele-Search",
|
|
215
|
+
onClick: handleQuery
|
|
216
|
+
}, {
|
|
217
|
+
default: vue.withCtx(() => [
|
|
218
|
+
vue.createTextVNode(
|
|
219
|
+
vue.toDisplayString(_ctx.$t("\u67E5\u8BE2")),
|
|
220
|
+
1
|
|
221
|
+
/* TEXT */
|
|
222
|
+
)
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
/* STABLE */
|
|
226
|
+
}),
|
|
227
|
+
vue.createVNode(_component_el_button, {
|
|
228
|
+
icon: "ele-Refresh",
|
|
229
|
+
onClick: resetQuery
|
|
230
|
+
}, {
|
|
231
|
+
default: vue.withCtx(() => [
|
|
232
|
+
vue.createTextVNode(
|
|
233
|
+
vue.toDisplayString(_ctx.$t("\u91CD\u7F6E")),
|
|
234
|
+
1
|
|
235
|
+
/* TEXT */
|
|
236
|
+
)
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
/* STABLE */
|
|
240
|
+
})
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
/* STABLE */
|
|
244
|
+
})
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
/* STABLE */
|
|
248
|
+
})
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
/* STABLE */
|
|
252
|
+
}, 8, ["model"]),
|
|
253
|
+
vue.createVNode(_component_el_card, {
|
|
254
|
+
class: "full-table",
|
|
255
|
+
shadow: "hover"
|
|
256
|
+
}, {
|
|
257
|
+
default: vue.withCtx(() => [
|
|
258
|
+
vue.createVNode(_component_el_table, {
|
|
259
|
+
ref: "refTable",
|
|
260
|
+
data: tableList.value,
|
|
261
|
+
style: { "height": "calc(70vh - 96px)" },
|
|
262
|
+
onRowDblclick: handledbclick
|
|
263
|
+
}, {
|
|
264
|
+
default: vue.withCtx(() => [
|
|
265
|
+
vue.createVNode(_component_el_table_column, {
|
|
266
|
+
label: "\u64CD\u4F5C",
|
|
267
|
+
width: "60",
|
|
268
|
+
align: "center"
|
|
269
|
+
}, {
|
|
270
|
+
default: vue.withCtx((scope) => [
|
|
271
|
+
scope.row.isLeaf == 1 ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
272
|
+
key: 0,
|
|
273
|
+
link: "",
|
|
274
|
+
type: "primary",
|
|
275
|
+
onClick: ($event) => handleSelect(scope.row)
|
|
276
|
+
}, {
|
|
277
|
+
default: vue.withCtx(() => [
|
|
278
|
+
vue.createVNode(_component_el_icon, null, {
|
|
279
|
+
default: vue.withCtx(() => [
|
|
280
|
+
vue.createVNode(_component_ele_Plus)
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
/* STABLE */
|
|
284
|
+
})
|
|
285
|
+
]),
|
|
286
|
+
_: 1
|
|
287
|
+
/* STABLE */
|
|
288
|
+
}, 8, ["onClick"])) : vue.createCommentVNode("v-if", true)
|
|
289
|
+
]),
|
|
290
|
+
_: 1
|
|
291
|
+
/* STABLE */
|
|
292
|
+
}),
|
|
293
|
+
vue.createVNode(_component_el_table_column, {
|
|
294
|
+
label: _ctx.$t("\u79D1\u76EE\u7F16\u7801"),
|
|
295
|
+
prop: "subjectCode",
|
|
296
|
+
align: "center",
|
|
297
|
+
"show-overflow-tooltip": true
|
|
298
|
+
}, null, 8, ["label"]),
|
|
299
|
+
vue.createVNode(_component_el_table_column, {
|
|
300
|
+
label: _ctx.$t("\u79D1\u76EE\u540D\u79F0"),
|
|
301
|
+
prop: "subjectName",
|
|
302
|
+
align: "center",
|
|
303
|
+
"show-overflow-tooltip": true
|
|
304
|
+
}, null, 8, ["label"])
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
/* STABLE */
|
|
308
|
+
}, 8, ["data"])
|
|
309
|
+
]),
|
|
310
|
+
_: 1
|
|
311
|
+
/* STABLE */
|
|
312
|
+
})
|
|
313
|
+
])
|
|
314
|
+
]),
|
|
315
|
+
_: 1
|
|
316
|
+
/* STABLE */
|
|
317
|
+
})
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
/* STABLE */
|
|
321
|
+
})
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
/* STABLE */
|
|
325
|
+
}, 8, ["modelValue"]);
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
exports.default = _sfc_main;
|
|
@@ -7,9 +7,11 @@ var svg = require('@element-plus/icons-vue');
|
|
|
7
7
|
require('../../api/index.js');
|
|
8
8
|
require('./component/userSelectDialog.vue.js');
|
|
9
9
|
require('./component/supplierSelectDialog.vue.js');
|
|
10
|
+
require('./component/subjectSelectDialog.vue.js');
|
|
10
11
|
var index = require('../../api/base/index.js');
|
|
11
12
|
var userSelectDialog_vue_vue_type_script_setup_true_lang = require('./component/userSelectDialog2.vue.js');
|
|
12
13
|
var supplierSelectDialog_vue_vue_type_script_setup_true_lang = require('./component/supplierSelectDialog2.vue.js');
|
|
14
|
+
var subjectSelectDialog_vue_vue_type_script_setup_true_lang = require('./component/subjectSelectDialog2.vue.js');
|
|
13
15
|
|
|
14
16
|
const _hoisted_1 = { style: { "font-size": "14px", "line-height": "30px" } };
|
|
15
17
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -58,6 +60,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
58
60
|
type: String,
|
|
59
61
|
default: "name"
|
|
60
62
|
},
|
|
63
|
+
/**
|
|
64
|
+
* 过滤出来显示的名称 加上属性标签
|
|
65
|
+
*/
|
|
66
|
+
vLabel: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: ""
|
|
69
|
+
},
|
|
61
70
|
/**
|
|
62
71
|
* 查询业务表ID
|
|
63
72
|
*/
|
|
@@ -75,8 +84,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
75
84
|
}
|
|
76
85
|
},
|
|
77
86
|
/**
|
|
78
|
-
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
79
|
-
* @default
|
|
87
|
+
* 打开类型 0--用户加机构 1-- 联系人 2-- 单位 3-- 银行账户 4--科目
|
|
88
|
+
* @default 0
|
|
80
89
|
*/
|
|
81
90
|
openType: {
|
|
82
91
|
type: Number,
|
|
@@ -97,6 +106,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
97
106
|
userAction: {
|
|
98
107
|
type: String,
|
|
99
108
|
default: "UserTable"
|
|
109
|
+
},
|
|
110
|
+
subjectService: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: "autoRes"
|
|
113
|
+
},
|
|
114
|
+
subjectAction: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: "subjectTable"
|
|
100
117
|
}
|
|
101
118
|
}, {
|
|
102
119
|
"name": {
|
|
@@ -154,7 +171,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
154
171
|
const _component_el_autocomplete = vue.resolveComponent("el-autocomplete");
|
|
155
172
|
return vue.openBlock(), vue.createBlock(_component_el_autocomplete, {
|
|
156
173
|
modelValue: autoName.value,
|
|
157
|
-
"onUpdate:modelValue": _cache[
|
|
174
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => autoName.value = $event),
|
|
158
175
|
debounce: 500,
|
|
159
176
|
"fetch-suggestions": querySearchAsync,
|
|
160
177
|
placeholder: props.placeholder,
|
|
@@ -166,7 +183,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
166
183
|
vue.createElementVNode(
|
|
167
184
|
"div",
|
|
168
185
|
_hoisted_1,
|
|
169
|
-
vue.toDisplayString(item[__props.vName]),
|
|
186
|
+
vue.toDisplayString(item[__props.vName]) + " " + vue.toDisplayString(__props.vLabel != "" ? "(" + item[__props.vLabel] + ")" : ""),
|
|
170
187
|
1
|
|
171
188
|
/* TEXT */
|
|
172
189
|
)
|
|
@@ -210,7 +227,18 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
210
227
|
userAction: __props.userAction,
|
|
211
228
|
userParams: __props.params,
|
|
212
229
|
onChange: handleSelectDialogChange
|
|
213
|
-
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true)
|
|
230
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true),
|
|
231
|
+
vue.createCommentVNode("\u79D1\u76EE\u9009\u62E9"),
|
|
232
|
+
__props.openType == 4 ? (vue.openBlock(), vue.createBlock(subjectSelectDialog_vue_vue_type_script_setup_true_lang.default, {
|
|
233
|
+
key: 2,
|
|
234
|
+
visible: visibleopenDialog.value,
|
|
235
|
+
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => visibleopenDialog.value = $event),
|
|
236
|
+
title: __props.title,
|
|
237
|
+
subjectService: __props.subjectService,
|
|
238
|
+
subjectAction: __props.subjectAction,
|
|
239
|
+
subjectParams: __props.params,
|
|
240
|
+
onChange: handleSelectDialogChange
|
|
241
|
+
}, null, 8, ["visible", "title", "subjectService", "subjectAction", "subjectParams"])) : vue.createCommentVNode("v-if", true)
|
|
214
242
|
]),
|
|
215
243
|
key: "0"
|
|
216
244
|
} : void 0
|
package/locale/en.js
CHANGED
package/locale/en.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.119 */(function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.fmdeuiPlusLocaleEn=t())})(this,(function(){"use strict";var e={name:"en",plus:{datepicker:{date:"Please select date",dates:"Please select dates",week:"Please select week",month:"Please select month",months:"Please select months",year:"Please select year",years:"Please select years",startDatePlaceholder:"Please select start date",endDatePlaceholder:"Please select end date",datetime:"Please select datetime",startMonthPlaceholder:"Please select start month",endMonthPlaceholder:"Please select end month",startTimePlaceholder:"Please select start time",endTimePlaceholder:"Please select end time",shortcutsDate:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDaterange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"},shortcutsMonthrange:{thisMonth:"This month",thisYear:"This year",pastSixMonths:"Past six months"},shortcutsDatetime:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDatetimerange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"}},form:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},input:{placeholder:"Please enter ",appendTitle:"Yuan",validatePhone:"Please enter a valid phone number",validateIdCard:"Please enter a valid ID card number",validateInteger:"Please enter a valid integer",format:"Please enter a valid ",amount:"amount",numbers:"numbers",digitUppercase:"Please enter a valid amount format",validateError:"Please enter a valid format",escaped:{0:"Cent",1:"Penny",2:"Zero",3:"One",4:"Two",5:"Three",6:"Four",7:"Five",8:"Six",9:"Seven",10:"Eight",11:"Nine",12:"Yuan",13:"Ten thousand",14:"Ten million",15:"Ten billion",16:"Ten",17:"Hundred",18:"Thousand",19:"Short",20:"Whole"}},moduleForm:{save:"Save",back:"Back"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract",pleaseEnter:"Please enter ",pleaseSelect:"Please select ",popoverAttrs:{showTxt:"More",title:"All conditions",allTxt:"SelectAll",reverseTxt:"Reverse",clearTxt:"ClearAll"}},select:{selectAllTxt:"Select all"},selectIcon:{placeholder:"Please select icon",dialogTitle:"Please select icon",searchPlaceholder:"Search icon",emptyDescription:"No icon found"},copy:{copySuccess:"Copy success",copyFail:"Copy fail",invalidCopyContent:"Invalid copy content"},selectTable:{searchBtnTxt:"Search",radioTxt:"Radio",loadingTxt:"Loading...",copySuccess:"Copy success",copyFail:"Copy fail"},stepWizard:{lastBtnTitle:"Complete"},table:{columnBind:{btnTxt:"Column setting",title:"Column setting"},fistColumn:{label:"Number",radio:"Radio"},operator:{label:"Operation",more:"More",sum:"Sum",total:"Total",allSum:"All sum"},singleEdit:{tipText:"Click to edit"},pleaseEnter:"Please enter ",pleaseSelect:"Please select ",loadingTxt:"Loading...",dragTxt:"Drag",saveBtnTxt:"Save",density:"Density",default:"Default",loose:"Loose",compact:"Compact"},list:{idleTimeoutMessage:"Long time no operation, system logged out.",sysMessage:"System Message"}}};return e}));
|