@fmdeui/fmui 1.0.147 → 1.0.149

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.
@@ -262,7 +262,488 @@ declare const _default: DefineComponent<ExtractPropTypes<{
262
262
  accountService: string;
263
263
  accountAction: string;
264
264
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
265
- tableDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
265
+ tableUserDialogRef: 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
+ orgService: {
279
+ type: StringConstructor;
280
+ default: string;
281
+ };
282
+ orgAction: {
283
+ type: StringConstructor;
284
+ default: string;
285
+ };
286
+ orgPost: {
287
+ type: BooleanConstructor;
288
+ default: boolean;
289
+ };
290
+ orgparas: {
291
+ type: ObjectConstructor;
292
+ default: null;
293
+ };
294
+ userService: {
295
+ type: StringConstructor;
296
+ default: string;
297
+ };
298
+ userAction: {
299
+ type: StringConstructor;
300
+ default: string;
301
+ };
302
+ userParams: {
303
+ type: ObjectConstructor;
304
+ default: () => void;
305
+ };
306
+ }>> & Readonly<{
307
+ onChange?: ((...args: any[]) => any) | undefined;
308
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
309
+ }>, {
310
+ handleQuery: () => Promise<void>;
311
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
312
+ change: (...args: any[]) => void;
313
+ "update:visible": (...args: any[]) => void;
314
+ }, PublicProps, {
315
+ title: string;
316
+ data: unknown[];
317
+ visible: boolean;
318
+ orgService: string;
319
+ orgAction: string;
320
+ orgPost: boolean;
321
+ orgparas: Record<string, any>;
322
+ userService: string;
323
+ userAction: string;
324
+ userParams: Record<string, any>;
325
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
326
+ orgTreeRef: unknown;
327
+ queryRef: unknown;
328
+ refTable: unknown;
329
+ }, any, ComponentProvideOptions, {
330
+ P: {};
331
+ B: {};
332
+ D: {};
333
+ C: {};
334
+ M: {};
335
+ Defaults: {};
336
+ }, Readonly< ExtractPropTypes<{
337
+ visible: {
338
+ type: BooleanConstructor;
339
+ default: boolean;
340
+ };
341
+ title: {
342
+ type: StringConstructor;
343
+ default: string;
344
+ };
345
+ data: {
346
+ type: ArrayConstructor;
347
+ default: () => never[];
348
+ };
349
+ orgService: {
350
+ type: StringConstructor;
351
+ default: string;
352
+ };
353
+ orgAction: {
354
+ type: StringConstructor;
355
+ default: string;
356
+ };
357
+ orgPost: {
358
+ type: BooleanConstructor;
359
+ default: boolean;
360
+ };
361
+ orgparas: {
362
+ type: ObjectConstructor;
363
+ default: null;
364
+ };
365
+ userService: {
366
+ type: StringConstructor;
367
+ default: string;
368
+ };
369
+ userAction: {
370
+ type: StringConstructor;
371
+ default: string;
372
+ };
373
+ userParams: {
374
+ type: ObjectConstructor;
375
+ default: () => void;
376
+ };
377
+ }>> & Readonly<{
378
+ onChange?: ((...args: any[]) => any) | undefined;
379
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
380
+ }>, {
381
+ handleQuery: () => Promise<void>;
382
+ }, {}, {}, {}, {
383
+ title: string;
384
+ data: unknown[];
385
+ visible: boolean;
386
+ orgService: string;
387
+ orgAction: string;
388
+ orgPost: boolean;
389
+ orgparas: Record<string, any>;
390
+ userService: string;
391
+ userAction: string;
392
+ userParams: Record<string, any>;
393
+ }> | null;
394
+ tableSupplierUserDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
395
+ visible: {
396
+ type: BooleanConstructor;
397
+ default: boolean;
398
+ };
399
+ title: {
400
+ type: StringConstructor;
401
+ default: string;
402
+ };
403
+ data: {
404
+ type: ArrayConstructor;
405
+ default: () => never[];
406
+ };
407
+ userService: {
408
+ type: StringConstructor;
409
+ default: string;
410
+ };
411
+ userAction: {
412
+ type: StringConstructor;
413
+ default: string;
414
+ };
415
+ userParams: {
416
+ type: ObjectConstructor;
417
+ default: () => void;
418
+ };
419
+ }>> & Readonly<{
420
+ onChange?: ((...args: any[]) => any) | undefined;
421
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
422
+ }>, {
423
+ handleQuery: () => Promise<void>;
424
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
425
+ change: (...args: any[]) => void;
426
+ "update:visible": (...args: any[]) => void;
427
+ }, PublicProps, {
428
+ title: string;
429
+ data: unknown[];
430
+ visible: boolean;
431
+ userService: string;
432
+ userAction: string;
433
+ userParams: Record<string, any>;
434
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
435
+ queryRef: unknown;
436
+ refTable: unknown;
437
+ }, any, ComponentProvideOptions, {
438
+ P: {};
439
+ B: {};
440
+ D: {};
441
+ C: {};
442
+ M: {};
443
+ Defaults: {};
444
+ }, Readonly< ExtractPropTypes<{
445
+ visible: {
446
+ type: BooleanConstructor;
447
+ default: boolean;
448
+ };
449
+ title: {
450
+ type: StringConstructor;
451
+ default: string;
452
+ };
453
+ data: {
454
+ type: ArrayConstructor;
455
+ default: () => never[];
456
+ };
457
+ userService: {
458
+ type: StringConstructor;
459
+ default: string;
460
+ };
461
+ userAction: {
462
+ type: StringConstructor;
463
+ default: string;
464
+ };
465
+ userParams: {
466
+ type: ObjectConstructor;
467
+ default: () => void;
468
+ };
469
+ }>> & Readonly<{
470
+ onChange?: ((...args: any[]) => any) | undefined;
471
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
472
+ }>, {
473
+ handleQuery: () => Promise<void>;
474
+ }, {}, {}, {}, {
475
+ title: string;
476
+ data: unknown[];
477
+ visible: boolean;
478
+ userService: string;
479
+ userAction: string;
480
+ userParams: Record<string, any>;
481
+ }> | null;
482
+ tableSupplierDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
483
+ visible: {
484
+ type: BooleanConstructor;
485
+ default: boolean;
486
+ };
487
+ title: {
488
+ type: StringConstructor;
489
+ default: string;
490
+ };
491
+ data: {
492
+ type: ArrayConstructor;
493
+ default: () => never[];
494
+ };
495
+ userService: {
496
+ type: StringConstructor;
497
+ default: string;
498
+ };
499
+ userAction: {
500
+ type: StringConstructor;
501
+ default: string;
502
+ };
503
+ userParams: {
504
+ type: ObjectConstructor;
505
+ default: () => void;
506
+ };
507
+ }>> & Readonly<{
508
+ onChange?: ((...args: any[]) => any) | undefined;
509
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
510
+ }>, {
511
+ handleQuery: () => Promise<void>;
512
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
513
+ change: (...args: any[]) => void;
514
+ "update:visible": (...args: any[]) => void;
515
+ }, PublicProps, {
516
+ title: string;
517
+ data: unknown[];
518
+ visible: boolean;
519
+ userService: string;
520
+ userAction: string;
521
+ userParams: Record<string, any>;
522
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
523
+ queryRef: unknown;
524
+ refTable: unknown;
525
+ }, any, ComponentProvideOptions, {
526
+ P: {};
527
+ B: {};
528
+ D: {};
529
+ C: {};
530
+ M: {};
531
+ Defaults: {};
532
+ }, Readonly< ExtractPropTypes<{
533
+ visible: {
534
+ type: BooleanConstructor;
535
+ default: boolean;
536
+ };
537
+ title: {
538
+ type: StringConstructor;
539
+ default: string;
540
+ };
541
+ data: {
542
+ type: ArrayConstructor;
543
+ default: () => never[];
544
+ };
545
+ userService: {
546
+ type: StringConstructor;
547
+ default: string;
548
+ };
549
+ userAction: {
550
+ type: StringConstructor;
551
+ default: string;
552
+ };
553
+ userParams: {
554
+ type: ObjectConstructor;
555
+ default: () => void;
556
+ };
557
+ }>> & Readonly<{
558
+ onChange?: ((...args: any[]) => any) | undefined;
559
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
560
+ }>, {
561
+ handleQuery: () => Promise<void>;
562
+ }, {}, {}, {}, {
563
+ title: string;
564
+ data: unknown[];
565
+ visible: boolean;
566
+ userService: string;
567
+ userAction: string;
568
+ userParams: Record<string, any>;
569
+ }> | null;
570
+ tableAccountDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
571
+ visible: {
572
+ type: BooleanConstructor;
573
+ default: boolean;
574
+ };
575
+ title: {
576
+ type: StringConstructor;
577
+ default: string;
578
+ };
579
+ data: {
580
+ type: ArrayConstructor;
581
+ default: () => never[];
582
+ };
583
+ userService: {
584
+ type: StringConstructor;
585
+ default: string;
586
+ };
587
+ userAction: {
588
+ type: StringConstructor;
589
+ default: string;
590
+ };
591
+ userParams: {
592
+ type: ObjectConstructor;
593
+ default: () => void;
594
+ };
595
+ }>> & Readonly<{
596
+ onChange?: ((...args: any[]) => any) | undefined;
597
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
598
+ }>, {
599
+ handleQuery: () => Promise<void>;
600
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
601
+ change: (...args: any[]) => void;
602
+ "update:visible": (...args: any[]) => void;
603
+ }, PublicProps, {
604
+ title: string;
605
+ data: unknown[];
606
+ visible: boolean;
607
+ userService: string;
608
+ userAction: string;
609
+ userParams: Record<string, any>;
610
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
611
+ queryRef: unknown;
612
+ refTable: unknown;
613
+ }, any, ComponentProvideOptions, {
614
+ P: {};
615
+ B: {};
616
+ D: {};
617
+ C: {};
618
+ M: {};
619
+ Defaults: {};
620
+ }, Readonly< ExtractPropTypes<{
621
+ visible: {
622
+ type: BooleanConstructor;
623
+ default: boolean;
624
+ };
625
+ title: {
626
+ type: StringConstructor;
627
+ default: string;
628
+ };
629
+ data: {
630
+ type: ArrayConstructor;
631
+ default: () => never[];
632
+ };
633
+ userService: {
634
+ type: StringConstructor;
635
+ default: string;
636
+ };
637
+ userAction: {
638
+ type: StringConstructor;
639
+ default: string;
640
+ };
641
+ userParams: {
642
+ type: ObjectConstructor;
643
+ default: () => void;
644
+ };
645
+ }>> & Readonly<{
646
+ onChange?: ((...args: any[]) => any) | undefined;
647
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
648
+ }>, {
649
+ handleQuery: () => Promise<void>;
650
+ }, {}, {}, {}, {
651
+ title: string;
652
+ data: unknown[];
653
+ visible: boolean;
654
+ userService: string;
655
+ userAction: string;
656
+ userParams: Record<string, any>;
657
+ }> | null;
658
+ tableSubjectDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
659
+ visible: {
660
+ type: BooleanConstructor;
661
+ default: boolean;
662
+ };
663
+ title: {
664
+ type: StringConstructor;
665
+ default: string;
666
+ };
667
+ data: {
668
+ type: ArrayConstructor;
669
+ default: () => never[];
670
+ };
671
+ subjectService: {
672
+ type: StringConstructor;
673
+ default: string;
674
+ };
675
+ subjectAction: {
676
+ type: StringConstructor;
677
+ default: string;
678
+ };
679
+ subjectParams: {
680
+ type: ObjectConstructor;
681
+ default: () => void;
682
+ };
683
+ }>> & Readonly<{
684
+ onChange?: ((...args: any[]) => any) | undefined;
685
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
686
+ }>, {
687
+ handleQuery: () => Promise<void>;
688
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
689
+ change: (...args: any[]) => void;
690
+ "update:visible": (...args: any[]) => void;
691
+ }, PublicProps, {
692
+ title: string;
693
+ data: unknown[];
694
+ visible: boolean;
695
+ subjectService: string;
696
+ subjectAction: string;
697
+ subjectParams: Record<string, any>;
698
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
699
+ queryRef: unknown;
700
+ refTable: unknown;
701
+ }, any, ComponentProvideOptions, {
702
+ P: {};
703
+ B: {};
704
+ D: {};
705
+ C: {};
706
+ M: {};
707
+ Defaults: {};
708
+ }, Readonly< ExtractPropTypes<{
709
+ visible: {
710
+ type: BooleanConstructor;
711
+ default: boolean;
712
+ };
713
+ title: {
714
+ type: StringConstructor;
715
+ default: string;
716
+ };
717
+ data: {
718
+ type: ArrayConstructor;
719
+ default: () => never[];
720
+ };
721
+ subjectService: {
722
+ type: StringConstructor;
723
+ default: string;
724
+ };
725
+ subjectAction: {
726
+ type: StringConstructor;
727
+ default: string;
728
+ };
729
+ subjectParams: {
730
+ type: ObjectConstructor;
731
+ default: () => void;
732
+ };
733
+ }>> & Readonly<{
734
+ onChange?: ((...args: any[]) => any) | undefined;
735
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
736
+ }>, {
737
+ handleQuery: () => Promise<void>;
738
+ }, {}, {}, {}, {
739
+ title: string;
740
+ data: unknown[];
741
+ visible: boolean;
742
+ subjectService: string;
743
+ subjectAction: string;
744
+ subjectParams: Record<string, any>;
745
+ }> | null;
746
+ tableLineDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
266
747
  visible: {
267
748
  type: BooleanConstructor;
268
749
  default: boolean;
@@ -1,4 +1,4 @@
1
- import { defineComponent, useModel, ref, resolveComponent, openBlock, createBlock, createSlots, withCtx, createElementVNode, toDisplayString, createVNode, withModifiers, unref, createCommentVNode, mergeModels } from 'vue';
1
+ import { defineComponent, useModel, ref, nextTick, resolveComponent, openBlock, createBlock, createSlots, withCtx, createElementVNode, toDisplayString, createVNode, withModifiers, unref, createCommentVNode, 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';
@@ -147,7 +147,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
147
147
  const autoId = useModel(__props, "id");
148
148
  const props = __props;
149
149
  const visibleopenDialog = ref(false);
150
- const tableDialogRef = ref();
150
+ const tableUserDialogRef = ref();
151
+ const tableSupplierUserDialogRef = ref();
152
+ const tableAccountDialogRef = ref();
153
+ const tableSubjectDialogRef = ref();
154
+ const tableLineDialogRef = ref();
155
+ const tableSupplierDialogRef = ref();
151
156
  const emit = __emit;
152
157
  const querySearchAsync = async (queryString, cb) => {
153
158
  var _a;
@@ -181,9 +186,32 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
181
186
  autoId.value = value.id;
182
187
  emit("select", value);
183
188
  };
184
- const handleRefresh = () => {
185
- if (tableDialogRef.value) {
186
- tableDialogRef.value.handleQuery();
189
+ const handleRefresh = async () => {
190
+ var _a;
191
+ await nextTick();
192
+ if (props.openType == 0) {
193
+ if (tableUserDialogRef.value) {
194
+ tableUserDialogRef.value.handleQuery();
195
+ }
196
+ } else if (props.openType == 1) {
197
+ if (tableSupplierUserDialogRef.value) {
198
+ tableSupplierUserDialogRef.value.handleQuery();
199
+ }
200
+ }
201
+ if (props.openType == 2) {
202
+ if (tableSupplierDialogRef.value) {
203
+ tableSupplierDialogRef.value.handleQuery();
204
+ }
205
+ } else if (props.openType == 3) {
206
+ if (tableAccountDialogRef.value) {
207
+ tableAccountDialogRef.value.handleQuery();
208
+ }
209
+ } else if (props.openType == 4) {
210
+ if (tableSubjectDialogRef.value) {
211
+ tableSubjectDialogRef.value.handleQuery();
212
+ }
213
+ } else if (props.openType == 5) {
214
+ (_a = tableLineDialogRef.value) == null ? void 0 : _a.handleQuery();
187
215
  }
188
216
  };
189
217
  return (_ctx, _cache) => {
@@ -232,6 +260,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
232
260
  }, 8, ["size"]),
233
261
  __props.openType == 0 ? (openBlock(), createBlock(_sfc_main$1, {
234
262
  key: 0,
263
+ ref_key: "tableUserDialogRef",
264
+ ref: tableUserDialogRef,
235
265
  visible: visibleopenDialog.value,
236
266
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
237
267
  orgService: __props.orgService,
@@ -245,6 +275,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
245
275
  }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
246
276
  __props.openType == 1 ? (openBlock(), createBlock(_sfc_main$2, {
247
277
  key: 1,
278
+ ref_key: "tableSupplierUserDialogRef",
279
+ ref: tableSupplierUserDialogRef,
248
280
  visible: visibleopenDialog.value,
249
281
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
250
282
  title: __props.title,
@@ -255,8 +287,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
255
287
  }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
256
288
  __props.openType == 2 ? (openBlock(), createBlock(_sfc_main$3, {
257
289
  key: 2,
258
- ref_key: "tableDialogRef",
259
- ref: tableDialogRef,
290
+ ref_key: "tableSupplierDialogRef",
291
+ ref: tableSupplierDialogRef,
260
292
  visible: visibleopenDialog.value,
261
293
  "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => visibleopenDialog.value = $event),
262
294
  title: __props.title,
@@ -268,6 +300,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
268
300
  createCommentVNode("\u8D26\u53F7\u9009\u62E9"),
269
301
  __props.openType == 3 ? (openBlock(), createBlock(_sfc_main$4, {
270
302
  key: 3,
303
+ ref_key: "tableAccountDialogRef",
304
+ ref: tableAccountDialogRef,
271
305
  visible: visibleopenDialog.value,
272
306
  "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => visibleopenDialog.value = $event),
273
307
  title: __props.title,
@@ -279,6 +313,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
279
313
  createCommentVNode("\u79D1\u76EE\u9009\u62E9"),
280
314
  __props.openType == 4 ? (openBlock(), createBlock(_sfc_main$5, {
281
315
  key: 4,
316
+ ref_key: "tableSubjectDialogRef",
317
+ ref: tableSubjectDialogRef,
282
318
  visible: visibleopenDialog.value,
283
319
  "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => visibleopenDialog.value = $event),
284
320
  title: __props.title,
@@ -290,6 +326,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
290
326
  createCommentVNode("\u7EBF\u8DEF\u9009\u62E9"),
291
327
  __props.openType == 5 ? (openBlock(), createBlock(_sfc_main$6, {
292
328
  key: 5,
329
+ ref_key: "tableLineDialogRef",
330
+ ref: tableLineDialogRef,
293
331
  visible: visibleopenDialog.value,
294
332
  "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => visibleopenDialog.value = $event),
295
333
  title: __props.title,
@@ -111,11 +111,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
111
111
  if (props.optionData.length > 0) {
112
112
  state.optionData = props.optionData;
113
113
  }
114
+ });
115
+ const handClick = async () => {
114
116
  if (props.autoLoadData && props.basecode && props.basecode != "") {
115
117
  const useBaseApi = usefminputdropdownstore();
116
118
  state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
117
119
  }
118
- });
120
+ };
119
121
  const handRestdata = async () => {
120
122
  if (props.basecode && props.basecode != "") {
121
123
  const useBaseApi = usefminputdropdownstore();
@@ -174,7 +176,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
174
176
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
175
177
  placeholder: props.placeholder,
176
178
  style: normalizeStyle({ width: __props.inputWidth }),
177
- onChange: handelChange
179
+ onChange: handelChange,
180
+ onClick: handClick
178
181
  }, {
179
182
  suffix: withCtx(() => [
180
183
  createVNode(_component_el_icon, {