@fmdeui/fmui 1.0.107 → 1.0.108
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/supplierSelectDialog.vue.d.ts +69 -0
- package/es/components/fm-autocomplete/index.vue.d.ts +2 -2
- package/es/packages/components/fm-autocomplete/component/supplierSelectDialog.vue.mjs +5 -0
- package/es/packages/components/fm-autocomplete/component/supplierSelectDialog.vue2.mjs +378 -0
- package/es/packages/components/fm-autocomplete/index.vue2.mjs +19 -6
- package/es/packages/hooks/limitsFunction.mjs +1 -1
- package/index.js +481 -97
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +481 -97
- package/lib/components/fm-autocomplete/component/supplierSelectDialog.vue.d.ts +69 -0
- package/lib/components/fm-autocomplete/index.vue.d.ts +2 -2
- package/lib/packages/components/fm-autocomplete/component/supplierSelectDialog.vue.js +9 -0
- package/lib/packages/components/fm-autocomplete/component/supplierSelectDialog.vue2.js +382 -0
- package/lib/packages/components/fm-autocomplete/index.vue2.js +18 -5
- package/lib/packages/hooks/limitsFunction.js +1 -1
- 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/{make-installer.css → component.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
|
+
userService: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
userAction: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
userParams: {
|
|
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
|
+
userService: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
userAction: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
userParams: {
|
|
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
|
+
userService: string;
|
|
63
|
+
userAction: string;
|
|
64
|
+
userParams: Record<string, any>;
|
|
65
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
66
|
+
queryRef: unknown;
|
|
67
|
+
refTable: unknown;
|
|
68
|
+
}, any>;
|
|
69
|
+
export default _default;
|
|
@@ -56,7 +56,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
56
56
|
default: () => void;
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
|
-
* 打开类型 1
|
|
59
|
+
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
60
60
|
* @default 1
|
|
61
61
|
*/
|
|
62
62
|
openType: {
|
|
@@ -149,7 +149,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
149
149
|
default: () => void;
|
|
150
150
|
};
|
|
151
151
|
/**
|
|
152
|
-
* 打开类型 1
|
|
152
|
+
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
153
153
|
* @default 1
|
|
154
154
|
*/
|
|
155
155
|
openType: {
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { defineComponent, ref, reactive, computed, 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: { "margin-top": "10px" } };
|
|
8
|
+
const _hoisted_4 = { class: "dialog-footer" };
|
|
9
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "supplierSelectDialog",
|
|
11
|
+
props: {
|
|
12
|
+
visible: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
title: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
data: {
|
|
21
|
+
type: Array,
|
|
22
|
+
default: () => []
|
|
23
|
+
},
|
|
24
|
+
userService: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "autoRes"
|
|
27
|
+
},
|
|
28
|
+
userAction: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "UserTable"
|
|
31
|
+
},
|
|
32
|
+
userParams: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: () => {
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
emits: ["update:visible", "change"],
|
|
39
|
+
setup(__props, { emit: __emit }) {
|
|
40
|
+
let emits = __emit;
|
|
41
|
+
const props = __props;
|
|
42
|
+
const userList = ref([]);
|
|
43
|
+
let checkedUsersList = ref([]);
|
|
44
|
+
const state = reactive({
|
|
45
|
+
total: 0,
|
|
46
|
+
queryParams: {
|
|
47
|
+
orgId: -1,
|
|
48
|
+
page: 1,
|
|
49
|
+
pageSize: 50
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
let visibleDialog = computed({
|
|
53
|
+
get() {
|
|
54
|
+
return props.visible;
|
|
55
|
+
},
|
|
56
|
+
set() {
|
|
57
|
+
closeDialog();
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
onMounted(async () => {
|
|
61
|
+
await getUserList();
|
|
62
|
+
});
|
|
63
|
+
const resetQuery = () => {
|
|
64
|
+
state.queryParams = {};
|
|
65
|
+
handleQuery();
|
|
66
|
+
};
|
|
67
|
+
const getUserList = async () => {
|
|
68
|
+
var _a, _b, _c, _d;
|
|
69
|
+
let res = await useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams }, props.userAction);
|
|
70
|
+
userList.value = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
|
|
71
|
+
state.queryParams.total = (_d = (_c = res.data.result) == null ? void 0 : _c.total) != null ? _d : 0;
|
|
72
|
+
};
|
|
73
|
+
async function handleQuery() {
|
|
74
|
+
state.queryParams.pageNum = 1;
|
|
75
|
+
await getUserList();
|
|
76
|
+
}
|
|
77
|
+
function handleSelectUser(row) {
|
|
78
|
+
if (!row || row.id == "") return;
|
|
79
|
+
emits("change", { id: row.id, name: row.supplierName, data: row });
|
|
80
|
+
}
|
|
81
|
+
const handledbclick = (row) => {
|
|
82
|
+
handleSelectUser(row);
|
|
83
|
+
};
|
|
84
|
+
const handleSizeChange = (val) => {
|
|
85
|
+
state.queryParams.pageSize = val;
|
|
86
|
+
handleQuery();
|
|
87
|
+
};
|
|
88
|
+
const handleCurrentChange = (val) => {
|
|
89
|
+
state.queryParams.page = val;
|
|
90
|
+
handleQuery();
|
|
91
|
+
};
|
|
92
|
+
const closeDialog = () => {
|
|
93
|
+
checkedUsersList.value = [];
|
|
94
|
+
emits("update:visible", false);
|
|
95
|
+
};
|
|
96
|
+
return (_ctx, _cache) => {
|
|
97
|
+
const _component_ele_Edit = resolveComponent("ele-Edit");
|
|
98
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
99
|
+
const _component_el_input = resolveComponent("el-input");
|
|
100
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
101
|
+
const _component_el_button = resolveComponent("el-button");
|
|
102
|
+
const _component_el_button_group = resolveComponent("el-button-group");
|
|
103
|
+
const _component_el_form = resolveComponent("el-form");
|
|
104
|
+
const _component_ele_Plus = resolveComponent("ele-Plus");
|
|
105
|
+
const _component_el_table_column = resolveComponent("el-table-column");
|
|
106
|
+
const _component_el_table = resolveComponent("el-table");
|
|
107
|
+
const _component_el_pagination = resolveComponent("el-pagination");
|
|
108
|
+
const _component_el_card = resolveComponent("el-card");
|
|
109
|
+
const _component_el_col = resolveComponent("el-col");
|
|
110
|
+
const _component_el_row = resolveComponent("el-row");
|
|
111
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
112
|
+
return openBlock(), createBlock(_component_el_dialog, {
|
|
113
|
+
modelValue: unref(visibleDialog),
|
|
114
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(visibleDialog) ? visibleDialog.value = $event : visibleDialog = $event),
|
|
115
|
+
style: { "width": "70vw" },
|
|
116
|
+
"append-to-body": "",
|
|
117
|
+
draggable: "",
|
|
118
|
+
"close-on-click-modal": false
|
|
119
|
+
}, {
|
|
120
|
+
header: withCtx(() => [
|
|
121
|
+
createElementVNode("div", _hoisted_1, [
|
|
122
|
+
createVNode(_component_el_icon, {
|
|
123
|
+
size: "16",
|
|
124
|
+
style: { "margin-right": "3px", "display": "inline", "vertical-align": "middle" }
|
|
125
|
+
}, {
|
|
126
|
+
default: withCtx(() => [
|
|
127
|
+
createVNode(_component_ele_Edit)
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
/* STABLE */
|
|
131
|
+
}),
|
|
132
|
+
createElementVNode(
|
|
133
|
+
"span",
|
|
134
|
+
null,
|
|
135
|
+
toDisplayString(_ctx.$t("\u9009\u62E9")) + toDisplayString(_ctx.$t(__props.title)),
|
|
136
|
+
1
|
|
137
|
+
/* TEXT */
|
|
138
|
+
)
|
|
139
|
+
])
|
|
140
|
+
]),
|
|
141
|
+
footer: withCtx(() => [
|
|
142
|
+
createElementVNode("div", _hoisted_4, [
|
|
143
|
+
createVNode(_component_el_button, {
|
|
144
|
+
icon: "ele-CircleCloseFilled",
|
|
145
|
+
onClick: closeDialog
|
|
146
|
+
}, {
|
|
147
|
+
default: withCtx(() => [
|
|
148
|
+
createTextVNode(
|
|
149
|
+
toDisplayString(_ctx.$t("\u53D6\u6D88")),
|
|
150
|
+
1
|
|
151
|
+
/* TEXT */
|
|
152
|
+
)
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
/* STABLE */
|
|
156
|
+
}),
|
|
157
|
+
createCommentVNode(' <el-button type="primary" icon="ele-CircleCheckFilled" @click="saveDialog">\u786E\u5B9A</el-button> ')
|
|
158
|
+
])
|
|
159
|
+
]),
|
|
160
|
+
default: withCtx(() => [
|
|
161
|
+
createVNode(_component_el_row, { gutter: 10 }, {
|
|
162
|
+
default: withCtx(() => [
|
|
163
|
+
createVNode(_component_el_col, { span: 18 }, {
|
|
164
|
+
default: withCtx(() => [
|
|
165
|
+
createElementVNode(
|
|
166
|
+
"p",
|
|
167
|
+
_hoisted_2,
|
|
168
|
+
toDisplayString(_ctx.$t(__props.title)) + toDisplayString(_ctx.$t("\u5217\u8868")),
|
|
169
|
+
1
|
|
170
|
+
/* TEXT */
|
|
171
|
+
),
|
|
172
|
+
createElementVNode("div", _hoisted_3, [
|
|
173
|
+
createVNode(_component_el_form, {
|
|
174
|
+
model: state.queryParams,
|
|
175
|
+
ref: "queryRef",
|
|
176
|
+
inline: true
|
|
177
|
+
}, {
|
|
178
|
+
default: withCtx(() => [
|
|
179
|
+
createVNode(_component_el_form_item, {
|
|
180
|
+
label: _ctx.$t("\u5173\u952E\u5B57")
|
|
181
|
+
}, {
|
|
182
|
+
default: withCtx(() => [
|
|
183
|
+
createVNode(_component_el_input, {
|
|
184
|
+
modelValue: state.queryParams.keyword,
|
|
185
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => state.queryParams.keyword = $event),
|
|
186
|
+
clearable: "",
|
|
187
|
+
style: { "width": "150px" },
|
|
188
|
+
onKeyup: withKeys(handleQuery, ["enter"])
|
|
189
|
+
}, null, 8, ["modelValue"])
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
/* STABLE */
|
|
193
|
+
}, 8, ["label"]),
|
|
194
|
+
createVNode(_component_el_form_item, null, {
|
|
195
|
+
default: withCtx(() => [
|
|
196
|
+
createVNode(_component_el_button_group, null, {
|
|
197
|
+
default: withCtx(() => [
|
|
198
|
+
createVNode(_component_el_button, {
|
|
199
|
+
type: "primary",
|
|
200
|
+
icon: "ele-Search",
|
|
201
|
+
onClick: handleQuery
|
|
202
|
+
}, {
|
|
203
|
+
default: withCtx(() => [
|
|
204
|
+
createTextVNode(
|
|
205
|
+
toDisplayString(_ctx.$t("\u67E5\u8BE2")),
|
|
206
|
+
1
|
|
207
|
+
/* TEXT */
|
|
208
|
+
)
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
/* STABLE */
|
|
212
|
+
}),
|
|
213
|
+
createVNode(_component_el_button, {
|
|
214
|
+
icon: "ele-Refresh",
|
|
215
|
+
onClick: resetQuery
|
|
216
|
+
}, {
|
|
217
|
+
default: withCtx(() => [
|
|
218
|
+
createTextVNode(
|
|
219
|
+
toDisplayString(_ctx.$t("\u91CD\u7F6E")),
|
|
220
|
+
1
|
|
221
|
+
/* TEXT */
|
|
222
|
+
)
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
/* STABLE */
|
|
226
|
+
})
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
/* STABLE */
|
|
230
|
+
}),
|
|
231
|
+
createCommentVNode(' <el-button type="primary" icon="ele-DArrowRight" plain style="margin-left: 10px" @click="handleSelectAllUser"> \u5168\u9009 </el-button> ')
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
/* STABLE */
|
|
235
|
+
})
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
/* STABLE */
|
|
239
|
+
}, 8, ["model"]),
|
|
240
|
+
createVNode(_component_el_card, {
|
|
241
|
+
class: "full-table",
|
|
242
|
+
shadow: "hover"
|
|
243
|
+
}, {
|
|
244
|
+
default: withCtx(() => [
|
|
245
|
+
createVNode(_component_el_table, {
|
|
246
|
+
ref: "refTable",
|
|
247
|
+
data: userList.value,
|
|
248
|
+
style: { "height": "calc(70vh - 96px)" },
|
|
249
|
+
onRowDblclick: handledbclick
|
|
250
|
+
}, {
|
|
251
|
+
default: withCtx(() => [
|
|
252
|
+
createVNode(_component_el_table_column, {
|
|
253
|
+
label: "\u64CD\u4F5C",
|
|
254
|
+
width: "60",
|
|
255
|
+
align: "center"
|
|
256
|
+
}, {
|
|
257
|
+
default: withCtx((scope) => [
|
|
258
|
+
createVNode(_component_el_button, {
|
|
259
|
+
link: "",
|
|
260
|
+
type: "primary",
|
|
261
|
+
onClick: ($event) => handleSelectUser(scope.row)
|
|
262
|
+
}, {
|
|
263
|
+
default: withCtx(() => [
|
|
264
|
+
createVNode(_component_el_icon, null, {
|
|
265
|
+
default: withCtx(() => [
|
|
266
|
+
createVNode(_component_ele_Plus)
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
/* STABLE */
|
|
270
|
+
})
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
/* STABLE */
|
|
274
|
+
}, 8, ["onClick"])
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
/* STABLE */
|
|
278
|
+
}),
|
|
279
|
+
createVNode(_component_el_table_column, {
|
|
280
|
+
label: _ctx.$t("\u540D\u79F0"),
|
|
281
|
+
prop: "supplierName",
|
|
282
|
+
align: "center",
|
|
283
|
+
"show-overflow-tooltip": true
|
|
284
|
+
}, null, 8, ["label"]),
|
|
285
|
+
createVNode(_component_el_table_column, {
|
|
286
|
+
label: _ctx.$t("\u8D1F\u8D23\u4EBA"),
|
|
287
|
+
prop: "mainuser",
|
|
288
|
+
align: "center",
|
|
289
|
+
"show-overflow-tooltip": true
|
|
290
|
+
}, {
|
|
291
|
+
default: withCtx((scope) => {
|
|
292
|
+
var _a, _b;
|
|
293
|
+
return [
|
|
294
|
+
createTextVNode(
|
|
295
|
+
toDisplayString((_b = (_a = scope.row) == null ? void 0 : _a.mainManager) == null ? void 0 : _b.Contact),
|
|
296
|
+
1
|
|
297
|
+
/* TEXT */
|
|
298
|
+
)
|
|
299
|
+
];
|
|
300
|
+
}),
|
|
301
|
+
_: 1
|
|
302
|
+
/* STABLE */
|
|
303
|
+
}, 8, ["label"]),
|
|
304
|
+
createVNode(_component_el_table_column, {
|
|
305
|
+
label: _ctx.$t("\u7535\u8BDD"),
|
|
306
|
+
prop: "mainusertel",
|
|
307
|
+
align: "center",
|
|
308
|
+
"show-overflow-tooltip": true
|
|
309
|
+
}, {
|
|
310
|
+
default: withCtx((scope) => {
|
|
311
|
+
var _a, _b;
|
|
312
|
+
return [
|
|
313
|
+
createTextVNode(
|
|
314
|
+
toDisplayString((_b = (_a = scope.row) == null ? void 0 : _a.mainManager) == null ? void 0 : _b.tel),
|
|
315
|
+
1
|
|
316
|
+
/* TEXT */
|
|
317
|
+
)
|
|
318
|
+
];
|
|
319
|
+
}),
|
|
320
|
+
_: 1
|
|
321
|
+
/* STABLE */
|
|
322
|
+
}, 8, ["label"]),
|
|
323
|
+
createVNode(_component_el_table_column, {
|
|
324
|
+
label: _ctx.$t("\u6240\u5728\u533A\u57DF"),
|
|
325
|
+
prop: "mainusertel",
|
|
326
|
+
align: "center",
|
|
327
|
+
"show-overflow-tooltip": true
|
|
328
|
+
}, {
|
|
329
|
+
default: withCtx((scope) => {
|
|
330
|
+
var _a, _b, _c, _d, _e, _f;
|
|
331
|
+
return [
|
|
332
|
+
createTextVNode(
|
|
333
|
+
toDisplayString((_b = (_a = scope.row) == null ? void 0 : _a.mainManager) == null ? void 0 : _b.province) + toDisplayString((_d = (_c = scope.row) == null ? void 0 : _c.mainManager) == null ? void 0 : _d.city) + toDisplayString((_f = (_e = scope.row) == null ? void 0 : _e.mainManager) == null ? void 0 : _f.district),
|
|
334
|
+
1
|
|
335
|
+
/* TEXT */
|
|
336
|
+
)
|
|
337
|
+
];
|
|
338
|
+
}),
|
|
339
|
+
_: 1
|
|
340
|
+
/* STABLE */
|
|
341
|
+
}, 8, ["label"])
|
|
342
|
+
]),
|
|
343
|
+
_: 1
|
|
344
|
+
/* STABLE */
|
|
345
|
+
}, 8, ["data"]),
|
|
346
|
+
createVNode(_component_el_pagination, {
|
|
347
|
+
currentPage: state.queryParams.page,
|
|
348
|
+
"page-size": state.queryParams.pageSize,
|
|
349
|
+
total: state.queryParams.total,
|
|
350
|
+
"page-sizes": [10, 20, 50, 100],
|
|
351
|
+
background: "",
|
|
352
|
+
onSizeChange: handleSizeChange,
|
|
353
|
+
onCurrentChange: handleCurrentChange,
|
|
354
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
355
|
+
style: { "padding-bottom": "8px" }
|
|
356
|
+
}, null, 8, ["currentPage", "page-size", "total"])
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
/* STABLE */
|
|
360
|
+
})
|
|
361
|
+
])
|
|
362
|
+
]),
|
|
363
|
+
_: 1
|
|
364
|
+
/* STABLE */
|
|
365
|
+
})
|
|
366
|
+
]),
|
|
367
|
+
_: 1
|
|
368
|
+
/* STABLE */
|
|
369
|
+
})
|
|
370
|
+
]),
|
|
371
|
+
_: 1
|
|
372
|
+
/* STABLE */
|
|
373
|
+
}, 8, ["modelValue"]);
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
export { _sfc_main as default };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { defineComponent, useModel, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, withModifiers, unref, createElementVNode, toDisplayString, mergeModels } from 'vue';
|
|
1
|
+
import { defineComponent, useModel, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, withModifiers, unref, createCommentVNode, createElementVNode, toDisplayString, mergeModels } from 'vue';
|
|
2
2
|
import { Search } from '@element-plus/icons-vue';
|
|
3
3
|
import '../../api/index.mjs';
|
|
4
4
|
import './component/userSelectDialog.vue.mjs';
|
|
5
|
+
import './component/supplierSelectDialog.vue.mjs';
|
|
5
6
|
import { useBaseApi } from '../../api/base/index.mjs';
|
|
6
7
|
import _sfc_main$1 from './component/userSelectDialog.vue2.mjs';
|
|
8
|
+
import _sfc_main$2 from './component/supplierSelectDialog.vue2.mjs';
|
|
7
9
|
|
|
8
10
|
const _hoisted_1 = { style: { "font-size": "14px", "line-height": "30px" } };
|
|
9
11
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -69,12 +71,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
71
|
}
|
|
70
72
|
},
|
|
71
73
|
/**
|
|
72
|
-
* 打开类型 1
|
|
74
|
+
* 打开类型 0--用户加机构 1 联系人 2 单位
|
|
73
75
|
* @default 1
|
|
74
76
|
*/
|
|
75
77
|
openType: {
|
|
76
78
|
type: Number,
|
|
77
|
-
default:
|
|
79
|
+
default: 0
|
|
78
80
|
},
|
|
79
81
|
orgService: {
|
|
80
82
|
type: String,
|
|
@@ -148,7 +150,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
148
150
|
const _component_el_autocomplete = resolveComponent("el-autocomplete");
|
|
149
151
|
return openBlock(), createBlock(_component_el_autocomplete, {
|
|
150
152
|
modelValue: autoName.value,
|
|
151
|
-
"onUpdate:modelValue": _cache[
|
|
153
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => autoName.value = $event),
|
|
152
154
|
debounce: 500,
|
|
153
155
|
"fetch-suggestions": querySearchAsync,
|
|
154
156
|
placeholder: props.placeholder,
|
|
@@ -177,7 +179,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
177
179
|
_: 1
|
|
178
180
|
/* STABLE */
|
|
179
181
|
}, 8, ["size"]),
|
|
180
|
-
|
|
182
|
+
__props.openType == 0 ? (openBlock(), createBlock(_sfc_main$1, {
|
|
183
|
+
key: 0,
|
|
181
184
|
visible: visibleopenDialog.value,
|
|
182
185
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
|
|
183
186
|
orgService: __props.orgService,
|
|
@@ -188,7 +191,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
188
191
|
userAction: __props.userAction,
|
|
189
192
|
userParams: __props.params,
|
|
190
193
|
onChange: handleSelectDialogChange
|
|
191
|
-
}, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])
|
|
194
|
+
}, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
|
|
195
|
+
__props.openType == 2 ? (openBlock(), createBlock(_sfc_main$2, {
|
|
196
|
+
key: 1,
|
|
197
|
+
visible: visibleopenDialog.value,
|
|
198
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
|
|
199
|
+
title: __props.title,
|
|
200
|
+
userService: __props.userService,
|
|
201
|
+
userAction: __props.userAction,
|
|
202
|
+
userParams: __props.params,
|
|
203
|
+
onChange: handleSelectDialogChange
|
|
204
|
+
}, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true)
|
|
192
205
|
]),
|
|
193
206
|
_: 1
|
|
194
207
|
/* STABLE */
|
|
@@ -81,7 +81,7 @@ function getShowColumnWidth(flag, field, defaultValue = "", isJson = false) {
|
|
|
81
81
|
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === field);
|
|
82
82
|
let width = defaultValue;
|
|
83
83
|
if (ItemField) {
|
|
84
|
-
if (ItemField.width) {
|
|
84
|
+
if (ItemField.width && ItemField.width != "" && ItemField.width > 0) {
|
|
85
85
|
width = ItemField.width + ItemField.widthUnit;
|
|
86
86
|
}
|
|
87
87
|
}
|