@fmdeui/fmui 1.0.137 → 1.0.139
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 +4 -1
- package/es/components/fm-autocomplete/index.d.ts +100 -2
- package/es/components/fm-autocomplete/index.vue.d.ts +100 -2
- package/es/packages/components/fm-autocomplete/component/supplierSelectDialog2.vue.mjs +7 -2
- package/es/packages/components/fm-autocomplete/index2.vue.mjs +18 -1
- package/index.js +26 -4
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +26 -4
- package/lib/components/fm-autocomplete/component/supplierSelectDialog.vue.d.ts +4 -1
- package/lib/components/fm-autocomplete/index.d.ts +100 -2
- package/lib/components/fm-autocomplete/index.vue.d.ts +100 -2
- package/lib/packages/components/fm-autocomplete/component/supplierSelectDialog2.vue.js +7 -2
- package/lib/packages/components/fm-autocomplete/index2.vue.js +18 -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 → index.css} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare function handleQuery(): Promise<void>;
|
|
2
3
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
4
|
visible: {
|
|
4
5
|
type: BooleanConstructor;
|
|
@@ -24,7 +25,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
24
25
|
type: ObjectConstructor;
|
|
25
26
|
default: () => void;
|
|
26
27
|
};
|
|
27
|
-
}>, {
|
|
28
|
+
}>, {
|
|
29
|
+
handleQuery: typeof handleQuery;
|
|
30
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
31
|
change: (...args: any[]) => void;
|
|
29
32
|
"update:visible": (...args: any[]) => void;
|
|
30
33
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
|
|
2
2
|
export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
3
3
|
placeholder: {
|
|
4
4
|
type: StringConstructor;
|
|
@@ -80,6 +80,10 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
80
80
|
type: StringConstructor;
|
|
81
81
|
default: string;
|
|
82
82
|
};
|
|
83
|
+
refresh: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
83
87
|
name: {
|
|
84
88
|
type: PropType<string>;
|
|
85
89
|
required: true;
|
|
@@ -174,6 +178,10 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
174
178
|
type: StringConstructor;
|
|
175
179
|
default: string;
|
|
176
180
|
};
|
|
181
|
+
refresh: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
177
185
|
name: {
|
|
178
186
|
type: PropType<string>;
|
|
179
187
|
required: true;
|
|
@@ -191,6 +199,7 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
191
199
|
top: number;
|
|
192
200
|
params: Record<string, any>;
|
|
193
201
|
title: string;
|
|
202
|
+
refresh: boolean;
|
|
194
203
|
placeholder: string;
|
|
195
204
|
vId: string;
|
|
196
205
|
orgService: string;
|
|
@@ -208,4 +217,93 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
|
|
|
208
217
|
openType: number;
|
|
209
218
|
accountService: string;
|
|
210
219
|
accountAction: string;
|
|
211
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
220
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
221
|
+
tableDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
222
|
+
visible: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
226
|
+
title: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
230
|
+
data: {
|
|
231
|
+
type: ArrayConstructor;
|
|
232
|
+
default: () => never[];
|
|
233
|
+
};
|
|
234
|
+
userService: {
|
|
235
|
+
type: StringConstructor;
|
|
236
|
+
default: string;
|
|
237
|
+
};
|
|
238
|
+
userAction: {
|
|
239
|
+
type: StringConstructor;
|
|
240
|
+
default: string;
|
|
241
|
+
};
|
|
242
|
+
userParams: {
|
|
243
|
+
type: ObjectConstructor;
|
|
244
|
+
default: () => void;
|
|
245
|
+
};
|
|
246
|
+
}>> & Readonly<{
|
|
247
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
248
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
249
|
+
}>, {
|
|
250
|
+
handleQuery: () => Promise<void>;
|
|
251
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
252
|
+
change: (...args: any[]) => void;
|
|
253
|
+
"update:visible": (...args: any[]) => void;
|
|
254
|
+
}, PublicProps, {
|
|
255
|
+
title: string;
|
|
256
|
+
data: unknown[];
|
|
257
|
+
visible: boolean;
|
|
258
|
+
userService: string;
|
|
259
|
+
userAction: string;
|
|
260
|
+
userParams: Record<string, any>;
|
|
261
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
262
|
+
queryRef: unknown;
|
|
263
|
+
refTable: unknown;
|
|
264
|
+
}, any, ComponentProvideOptions, {
|
|
265
|
+
P: {};
|
|
266
|
+
B: {};
|
|
267
|
+
D: {};
|
|
268
|
+
C: {};
|
|
269
|
+
M: {};
|
|
270
|
+
Defaults: {};
|
|
271
|
+
}, Readonly< ExtractPropTypes<{
|
|
272
|
+
visible: {
|
|
273
|
+
type: BooleanConstructor;
|
|
274
|
+
default: boolean;
|
|
275
|
+
};
|
|
276
|
+
title: {
|
|
277
|
+
type: StringConstructor;
|
|
278
|
+
default: string;
|
|
279
|
+
};
|
|
280
|
+
data: {
|
|
281
|
+
type: ArrayConstructor;
|
|
282
|
+
default: () => never[];
|
|
283
|
+
};
|
|
284
|
+
userService: {
|
|
285
|
+
type: StringConstructor;
|
|
286
|
+
default: string;
|
|
287
|
+
};
|
|
288
|
+
userAction: {
|
|
289
|
+
type: StringConstructor;
|
|
290
|
+
default: string;
|
|
291
|
+
};
|
|
292
|
+
userParams: {
|
|
293
|
+
type: ObjectConstructor;
|
|
294
|
+
default: () => void;
|
|
295
|
+
};
|
|
296
|
+
}>> & Readonly<{
|
|
297
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
298
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
299
|
+
}>, {
|
|
300
|
+
handleQuery: () => Promise<void>;
|
|
301
|
+
}, {}, {}, {}, {
|
|
302
|
+
title: string;
|
|
303
|
+
data: unknown[];
|
|
304
|
+
visible: boolean;
|
|
305
|
+
userService: string;
|
|
306
|
+
userAction: string;
|
|
307
|
+
userParams: Record<string, any>;
|
|
308
|
+
}> | null;
|
|
309
|
+
}, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
|
|
2
2
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
3
|
placeholder: {
|
|
4
4
|
type: StringConstructor;
|
|
@@ -102,6 +102,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
102
102
|
type: StringConstructor;
|
|
103
103
|
default: string;
|
|
104
104
|
};
|
|
105
|
+
refresh: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
105
109
|
name: {
|
|
106
110
|
type: PropType<string>;
|
|
107
111
|
required: true;
|
|
@@ -218,6 +222,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
218
222
|
type: StringConstructor;
|
|
219
223
|
default: string;
|
|
220
224
|
};
|
|
225
|
+
refresh: {
|
|
226
|
+
type: BooleanConstructor;
|
|
227
|
+
default: boolean;
|
|
228
|
+
};
|
|
221
229
|
name: {
|
|
222
230
|
type: PropType<string>;
|
|
223
231
|
required: true;
|
|
@@ -235,6 +243,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
235
243
|
top: number;
|
|
236
244
|
params: Record<string, any>;
|
|
237
245
|
title: string;
|
|
246
|
+
refresh: boolean;
|
|
238
247
|
placeholder: string;
|
|
239
248
|
vId: string;
|
|
240
249
|
orgService: string;
|
|
@@ -252,5 +261,94 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
252
261
|
openType: number;
|
|
253
262
|
accountService: string;
|
|
254
263
|
accountAction: string;
|
|
255
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
264
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
265
|
+
tableDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
266
|
+
visible: {
|
|
267
|
+
type: BooleanConstructor;
|
|
268
|
+
default: boolean;
|
|
269
|
+
};
|
|
270
|
+
title: {
|
|
271
|
+
type: StringConstructor;
|
|
272
|
+
default: string;
|
|
273
|
+
};
|
|
274
|
+
data: {
|
|
275
|
+
type: ArrayConstructor;
|
|
276
|
+
default: () => never[];
|
|
277
|
+
};
|
|
278
|
+
userService: {
|
|
279
|
+
type: StringConstructor;
|
|
280
|
+
default: string;
|
|
281
|
+
};
|
|
282
|
+
userAction: {
|
|
283
|
+
type: StringConstructor;
|
|
284
|
+
default: string;
|
|
285
|
+
};
|
|
286
|
+
userParams: {
|
|
287
|
+
type: ObjectConstructor;
|
|
288
|
+
default: () => void;
|
|
289
|
+
};
|
|
290
|
+
}>> & Readonly<{
|
|
291
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
292
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
293
|
+
}>, {
|
|
294
|
+
handleQuery: () => Promise<void>;
|
|
295
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
296
|
+
change: (...args: any[]) => void;
|
|
297
|
+
"update:visible": (...args: any[]) => void;
|
|
298
|
+
}, PublicProps, {
|
|
299
|
+
title: string;
|
|
300
|
+
data: unknown[];
|
|
301
|
+
visible: boolean;
|
|
302
|
+
userService: string;
|
|
303
|
+
userAction: string;
|
|
304
|
+
userParams: Record<string, any>;
|
|
305
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
306
|
+
queryRef: unknown;
|
|
307
|
+
refTable: unknown;
|
|
308
|
+
}, any, ComponentProvideOptions, {
|
|
309
|
+
P: {};
|
|
310
|
+
B: {};
|
|
311
|
+
D: {};
|
|
312
|
+
C: {};
|
|
313
|
+
M: {};
|
|
314
|
+
Defaults: {};
|
|
315
|
+
}, Readonly< ExtractPropTypes<{
|
|
316
|
+
visible: {
|
|
317
|
+
type: BooleanConstructor;
|
|
318
|
+
default: boolean;
|
|
319
|
+
};
|
|
320
|
+
title: {
|
|
321
|
+
type: StringConstructor;
|
|
322
|
+
default: string;
|
|
323
|
+
};
|
|
324
|
+
data: {
|
|
325
|
+
type: ArrayConstructor;
|
|
326
|
+
default: () => never[];
|
|
327
|
+
};
|
|
328
|
+
userService: {
|
|
329
|
+
type: StringConstructor;
|
|
330
|
+
default: string;
|
|
331
|
+
};
|
|
332
|
+
userAction: {
|
|
333
|
+
type: StringConstructor;
|
|
334
|
+
default: string;
|
|
335
|
+
};
|
|
336
|
+
userParams: {
|
|
337
|
+
type: ObjectConstructor;
|
|
338
|
+
default: () => void;
|
|
339
|
+
};
|
|
340
|
+
}>> & Readonly<{
|
|
341
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
342
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
343
|
+
}>, {
|
|
344
|
+
handleQuery: () => Promise<void>;
|
|
345
|
+
}, {}, {}, {}, {
|
|
346
|
+
title: string;
|
|
347
|
+
data: unknown[];
|
|
348
|
+
visible: boolean;
|
|
349
|
+
userService: string;
|
|
350
|
+
userAction: string;
|
|
351
|
+
userParams: Record<string, any>;
|
|
352
|
+
}> | null;
|
|
353
|
+
}, any>;
|
|
256
354
|
export default _default;
|
|
@@ -35,13 +35,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
emits: ["update:visible", "change"],
|
|
38
|
-
setup(__props, { emit: __emit }) {
|
|
38
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39
39
|
let emits = __emit;
|
|
40
40
|
const props = __props;
|
|
41
41
|
const userList = ref([]);
|
|
42
42
|
let checkedUsersList = ref([]);
|
|
43
43
|
const state = reactive({
|
|
44
44
|
total: 0,
|
|
45
|
+
pdata: null,
|
|
45
46
|
queryParams: {
|
|
46
47
|
orgId: -1,
|
|
47
48
|
page: 1,
|
|
@@ -75,13 +76,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
76
|
}
|
|
76
77
|
function handleSelectUser(row) {
|
|
77
78
|
if (!row || row.id == "") return;
|
|
78
|
-
emits("change", { id: row.id, name: row.supplierName, supplierType: row.supplierType, data: row });
|
|
79
|
+
emits("change", { id: row.id, name: row.supplierName, supplierType: row.supplierType, pdata: state.pdata, data: row });
|
|
79
80
|
}
|
|
80
81
|
const handledbclick = (row) => {
|
|
81
82
|
handleSelectUser(row);
|
|
82
83
|
};
|
|
83
84
|
const loadSub = async (row, treeNode, resolve) => {
|
|
84
85
|
var _a, _b, _c;
|
|
86
|
+
state.pdata = row;
|
|
85
87
|
let res = await useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams, pid: row.id }, props.userAction);
|
|
86
88
|
row.children = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
|
|
87
89
|
resolve((_c = row.children) != null ? _c : []);
|
|
@@ -98,6 +100,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
100
|
checkedUsersList.value = [];
|
|
99
101
|
emits("update:visible", false);
|
|
100
102
|
};
|
|
103
|
+
__expose({
|
|
104
|
+
handleQuery
|
|
105
|
+
});
|
|
101
106
|
return (_ctx, _cache) => {
|
|
102
107
|
const _component_ele_Edit = resolveComponent("ele-Edit");
|
|
103
108
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -120,6 +120,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
120
|
accountAction: {
|
|
121
121
|
type: String,
|
|
122
122
|
default: "accountTable"
|
|
123
|
+
},
|
|
124
|
+
refresh: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: false
|
|
123
127
|
}
|
|
124
128
|
}, {
|
|
125
129
|
"name": {
|
|
@@ -139,6 +143,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
139
143
|
const autoId = useModel(__props, "id");
|
|
140
144
|
const props = __props;
|
|
141
145
|
const visibleopenDialog = ref(false);
|
|
146
|
+
const tableDialogRef = ref();
|
|
142
147
|
const emit = __emit;
|
|
143
148
|
const querySearchAsync = async (queryString, cb) => {
|
|
144
149
|
var _a;
|
|
@@ -172,6 +177,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
172
177
|
autoId.value = value.id;
|
|
173
178
|
emit("select", value);
|
|
174
179
|
};
|
|
180
|
+
const handleRefresh = () => {
|
|
181
|
+
if (tableDialogRef.value) {
|
|
182
|
+
tableDialogRef.value.handleQuery();
|
|
183
|
+
}
|
|
184
|
+
};
|
|
175
185
|
return (_ctx, _cache) => {
|
|
176
186
|
const _component_el_icon = resolveComponent("el-icon");
|
|
177
187
|
const _component_el_autocomplete = resolveComponent("el-autocomplete");
|
|
@@ -203,7 +213,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
203
213
|
createVNode(_component_el_icon, {
|
|
204
214
|
color: "#E6A23C",
|
|
205
215
|
size: __props.searchsize,
|
|
206
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() =>
|
|
216
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
217
|
+
visibleopenDialog.value = true;
|
|
218
|
+
if (props.refresh) {
|
|
219
|
+
handleRefresh();
|
|
220
|
+
}
|
|
221
|
+
}, ["stop"]))
|
|
207
222
|
}, {
|
|
208
223
|
default: withCtx(() => [
|
|
209
224
|
createVNode(unref(Search))
|
|
@@ -226,6 +241,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
226
241
|
}, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
|
|
227
242
|
__props.openType == 2 ? (openBlock(), createBlock(_sfc_main$2, {
|
|
228
243
|
key: 1,
|
|
244
|
+
ref_key: "tableDialogRef",
|
|
245
|
+
ref: tableDialogRef,
|
|
229
246
|
visible: visibleopenDialog.value,
|
|
230
247
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
|
|
231
248
|
title: __props.title,
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.139 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -27926,13 +27926,14 @@
|
|
|
27926
27926
|
}
|
|
27927
27927
|
},
|
|
27928
27928
|
emits: ["update:visible", "change"],
|
|
27929
|
-
setup(__props, { emit: __emit }) {
|
|
27929
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
27930
27930
|
let emits = __emit;
|
|
27931
27931
|
const props = __props;
|
|
27932
27932
|
const userList = vue.ref([]);
|
|
27933
27933
|
let checkedUsersList = vue.ref([]);
|
|
27934
27934
|
const state = vue.reactive({
|
|
27935
27935
|
total: 0,
|
|
27936
|
+
pdata: null,
|
|
27936
27937
|
queryParams: {
|
|
27937
27938
|
orgId: -1,
|
|
27938
27939
|
page: 1,
|
|
@@ -27966,13 +27967,14 @@
|
|
|
27966
27967
|
}
|
|
27967
27968
|
function handleSelectUser(row) {
|
|
27968
27969
|
if (!row || row.id == "") return;
|
|
27969
|
-
emits("change", { id: row.id, name: row.supplierName, supplierType: row.supplierType, data: row });
|
|
27970
|
+
emits("change", { id: row.id, name: row.supplierName, supplierType: row.supplierType, pdata: state.pdata, data: row });
|
|
27970
27971
|
}
|
|
27971
27972
|
const handledbclick = (row) => {
|
|
27972
27973
|
handleSelectUser(row);
|
|
27973
27974
|
};
|
|
27974
27975
|
const loadSub = async (row, treeNode, resolve) => {
|
|
27975
27976
|
var _a, _b, _c;
|
|
27977
|
+
state.pdata = row;
|
|
27976
27978
|
let res = await useBaseApi(props.userService).post({ ...state.queryParams, ...props.userParams, pid: row.id }, props.userAction);
|
|
27977
27979
|
row.children = (_b = (_a = res.data.result) == null ? void 0 : _a.items) != null ? _b : [];
|
|
27978
27980
|
resolve((_c = row.children) != null ? _c : []);
|
|
@@ -27989,6 +27991,9 @@
|
|
|
27989
27991
|
checkedUsersList.value = [];
|
|
27990
27992
|
emits("update:visible", false);
|
|
27991
27993
|
};
|
|
27994
|
+
__expose({
|
|
27995
|
+
handleQuery
|
|
27996
|
+
});
|
|
27992
27997
|
return (_ctx, _cache) => {
|
|
27993
27998
|
const _component_ele_Edit = vue.resolveComponent("ele-Edit");
|
|
27994
27999
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
@@ -29020,6 +29025,10 @@
|
|
|
29020
29025
|
accountAction: {
|
|
29021
29026
|
type: String,
|
|
29022
29027
|
default: "accountTable"
|
|
29028
|
+
},
|
|
29029
|
+
refresh: {
|
|
29030
|
+
type: Boolean,
|
|
29031
|
+
default: false
|
|
29023
29032
|
}
|
|
29024
29033
|
}, {
|
|
29025
29034
|
"name": {
|
|
@@ -29039,6 +29048,7 @@
|
|
|
29039
29048
|
const autoId = vue.useModel(__props, "id");
|
|
29040
29049
|
const props = __props;
|
|
29041
29050
|
const visibleopenDialog = vue.ref(false);
|
|
29051
|
+
const tableDialogRef = vue.ref();
|
|
29042
29052
|
const emit = __emit;
|
|
29043
29053
|
const querySearchAsync = async (queryString, cb) => {
|
|
29044
29054
|
var _a;
|
|
@@ -29072,6 +29082,11 @@
|
|
|
29072
29082
|
autoId.value = value.id;
|
|
29073
29083
|
emit("select", value);
|
|
29074
29084
|
};
|
|
29085
|
+
const handleRefresh = () => {
|
|
29086
|
+
if (tableDialogRef.value) {
|
|
29087
|
+
tableDialogRef.value.handleQuery();
|
|
29088
|
+
}
|
|
29089
|
+
};
|
|
29075
29090
|
return (_ctx, _cache) => {
|
|
29076
29091
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
29077
29092
|
const _component_el_autocomplete = vue.resolveComponent("el-autocomplete");
|
|
@@ -29103,7 +29118,12 @@
|
|
|
29103
29118
|
vue.createVNode(_component_el_icon, {
|
|
29104
29119
|
color: "#E6A23C",
|
|
29105
29120
|
size: __props.searchsize,
|
|
29106
|
-
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() =>
|
|
29121
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
29122
|
+
visibleopenDialog.value = true;
|
|
29123
|
+
if (props.refresh) {
|
|
29124
|
+
handleRefresh();
|
|
29125
|
+
}
|
|
29126
|
+
}, ["stop"]))
|
|
29107
29127
|
}, {
|
|
29108
29128
|
default: vue.withCtx(() => [
|
|
29109
29129
|
vue.createVNode(vue.unref(svg.Search))
|
|
@@ -29126,6 +29146,8 @@
|
|
|
29126
29146
|
}, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : vue.createCommentVNode("v-if", true),
|
|
29127
29147
|
__props.openType == 2 ? (vue.openBlock(), vue.createBlock(_sfc_main$u, {
|
|
29128
29148
|
key: 1,
|
|
29149
|
+
ref_key: "tableDialogRef",
|
|
29150
|
+
ref: tableDialogRef,
|
|
29129
29151
|
visible: visibleopenDialog.value,
|
|
29130
29152
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
|
|
29131
29153
|
title: __props.title,
|