@fmdeui/fmui 1.0.146 → 1.0.148

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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.146 */
1
+ /*! fmdeui-fmui v1.0.148 */
2
2
  import VxeUITable from 'vxe-table';
3
3
  import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element';
4
4
  import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
@@ -29721,7 +29721,12 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29721
29721
  const autoId = useModel(__props, "id");
29722
29722
  const props = __props;
29723
29723
  const visibleopenDialog = ref(false);
29724
- const tableDialogRef = ref();
29724
+ const tableUserDialogRef = ref();
29725
+ const tableSupplierUserDialogRef = ref();
29726
+ const tableAccountDialogRef = ref();
29727
+ const tableSubjectDialogRef = ref();
29728
+ const tableLineDialogRef = ref();
29729
+ const tableSupplierDialogRef = ref();
29725
29730
  const emit = __emit;
29726
29731
  const querySearchAsync = async (queryString, cb) => {
29727
29732
  var _a;
@@ -29755,9 +29760,32 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29755
29760
  autoId.value = value.id;
29756
29761
  emit("select", value);
29757
29762
  };
29758
- const handleRefresh = () => {
29759
- if (tableDialogRef.value) {
29760
- tableDialogRef.value.handleQuery();
29763
+ const handleRefresh = async () => {
29764
+ var _a;
29765
+ await nextTick();
29766
+ if (props.openType == 0) {
29767
+ if (tableUserDialogRef.value) {
29768
+ tableUserDialogRef.value.handleQuery();
29769
+ }
29770
+ } else if (props.openType == 1) {
29771
+ if (tableSupplierUserDialogRef.value) {
29772
+ tableSupplierUserDialogRef.value.handleQuery();
29773
+ }
29774
+ }
29775
+ if (props.openType == 2) {
29776
+ if (tableSupplierDialogRef.value) {
29777
+ tableSupplierDialogRef.value.handleQuery();
29778
+ }
29779
+ } else if (props.openType == 3) {
29780
+ if (tableAccountDialogRef.value) {
29781
+ tableAccountDialogRef.value.handleQuery();
29782
+ }
29783
+ } else if (props.openType == 4) {
29784
+ if (tableSubjectDialogRef.value) {
29785
+ tableSubjectDialogRef.value.handleQuery();
29786
+ }
29787
+ } else if (props.openType == 5) {
29788
+ (_a = tableLineDialogRef.value) == null ? void 0 : _a.handleQuery();
29761
29789
  }
29762
29790
  };
29763
29791
  return (_ctx, _cache) => {
@@ -29806,6 +29834,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29806
29834
  }, 8, ["size"]),
29807
29835
  __props.openType == 0 ? (openBlock(), createBlock(_sfc_main$y, {
29808
29836
  key: 0,
29837
+ ref_key: "tableUserDialogRef",
29838
+ ref: tableUserDialogRef,
29809
29839
  visible: visibleopenDialog.value,
29810
29840
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
29811
29841
  orgService: __props.orgService,
@@ -29819,6 +29849,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29819
29849
  }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
29820
29850
  __props.openType == 1 ? (openBlock(), createBlock(_sfc_main$w, {
29821
29851
  key: 1,
29852
+ ref_key: "tableSupplierUserDialogRef",
29853
+ ref: tableSupplierUserDialogRef,
29822
29854
  visible: visibleopenDialog.value,
29823
29855
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
29824
29856
  title: __props.title,
@@ -29829,8 +29861,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29829
29861
  }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
29830
29862
  __props.openType == 2 ? (openBlock(), createBlock(_sfc_main$x, {
29831
29863
  key: 2,
29832
- ref_key: "tableDialogRef",
29833
- ref: tableDialogRef,
29864
+ ref_key: "tableSupplierDialogRef",
29865
+ ref: tableSupplierDialogRef,
29834
29866
  visible: visibleopenDialog.value,
29835
29867
  "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => visibleopenDialog.value = $event),
29836
29868
  title: __props.title,
@@ -29842,6 +29874,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29842
29874
  createCommentVNode("\u8D26\u53F7\u9009\u62E9"),
29843
29875
  __props.openType == 3 ? (openBlock(), createBlock(_sfc_main$v, {
29844
29876
  key: 3,
29877
+ ref_key: "tableAccountDialogRef",
29878
+ ref: tableAccountDialogRef,
29845
29879
  visible: visibleopenDialog.value,
29846
29880
  "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => visibleopenDialog.value = $event),
29847
29881
  title: __props.title,
@@ -29853,6 +29887,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29853
29887
  createCommentVNode("\u79D1\u76EE\u9009\u62E9"),
29854
29888
  __props.openType == 4 ? (openBlock(), createBlock(_sfc_main$u, {
29855
29889
  key: 4,
29890
+ ref_key: "tableSubjectDialogRef",
29891
+ ref: tableSubjectDialogRef,
29856
29892
  visible: visibleopenDialog.value,
29857
29893
  "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => visibleopenDialog.value = $event),
29858
29894
  title: __props.title,
@@ -29864,6 +29900,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29864
29900
  createCommentVNode("\u7EBF\u8DEF\u9009\u62E9"),
29865
29901
  __props.openType == 5 ? (openBlock(), createBlock(_sfc_main$t, {
29866
29902
  key: 5,
29903
+ ref_key: "tableLineDialogRef",
29904
+ ref: tableLineDialogRef,
29867
29905
  visible: visibleopenDialog.value,
29868
29906
  "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => visibleopenDialog.value = $event),
29869
29907
  title: __props.title,
@@ -30030,7 +30068,7 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
30030
30068
  };
30031
30069
  const handleSelect = (item) => {
30032
30070
  for (let keyitem of props.vGroup) {
30033
- if (!item[keyitem.key]) {
30071
+ if (!item[keyitem.tokey]) {
30034
30072
  continue;
30035
30073
  }
30036
30074
  modelValue.value[keyitem.key] = item[keyitem.tokey];
@@ -218,7 +218,488 @@ export declare const FmAutocomplete: DefineComponent<ExtractPropTypes<{
218
218
  accountService: string;
219
219
  accountAction: string;
220
220
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
221
- tableDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
221
+ tableUserDialogRef: 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
+ orgService: {
235
+ type: StringConstructor;
236
+ default: string;
237
+ };
238
+ orgAction: {
239
+ type: StringConstructor;
240
+ default: string;
241
+ };
242
+ orgPost: {
243
+ type: BooleanConstructor;
244
+ default: boolean;
245
+ };
246
+ orgparas: {
247
+ type: ObjectConstructor;
248
+ default: null;
249
+ };
250
+ userService: {
251
+ type: StringConstructor;
252
+ default: string;
253
+ };
254
+ userAction: {
255
+ type: StringConstructor;
256
+ default: string;
257
+ };
258
+ userParams: {
259
+ type: ObjectConstructor;
260
+ default: () => void;
261
+ };
262
+ }>> & Readonly<{
263
+ onChange?: ((...args: any[]) => any) | undefined;
264
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
265
+ }>, {
266
+ handleQuery: () => Promise<void>;
267
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
268
+ change: (...args: any[]) => void;
269
+ "update:visible": (...args: any[]) => void;
270
+ }, PublicProps, {
271
+ title: string;
272
+ data: unknown[];
273
+ visible: boolean;
274
+ orgService: string;
275
+ orgAction: string;
276
+ orgPost: boolean;
277
+ orgparas: Record<string, any>;
278
+ userService: string;
279
+ userAction: string;
280
+ userParams: Record<string, any>;
281
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
282
+ orgTreeRef: unknown;
283
+ queryRef: unknown;
284
+ refTable: unknown;
285
+ }, any, ComponentProvideOptions, {
286
+ P: {};
287
+ B: {};
288
+ D: {};
289
+ C: {};
290
+ M: {};
291
+ Defaults: {};
292
+ }, Readonly< ExtractPropTypes<{
293
+ visible: {
294
+ type: BooleanConstructor;
295
+ default: boolean;
296
+ };
297
+ title: {
298
+ type: StringConstructor;
299
+ default: string;
300
+ };
301
+ data: {
302
+ type: ArrayConstructor;
303
+ default: () => never[];
304
+ };
305
+ orgService: {
306
+ type: StringConstructor;
307
+ default: string;
308
+ };
309
+ orgAction: {
310
+ type: StringConstructor;
311
+ default: string;
312
+ };
313
+ orgPost: {
314
+ type: BooleanConstructor;
315
+ default: boolean;
316
+ };
317
+ orgparas: {
318
+ type: ObjectConstructor;
319
+ default: null;
320
+ };
321
+ userService: {
322
+ type: StringConstructor;
323
+ default: string;
324
+ };
325
+ userAction: {
326
+ type: StringConstructor;
327
+ default: string;
328
+ };
329
+ userParams: {
330
+ type: ObjectConstructor;
331
+ default: () => void;
332
+ };
333
+ }>> & Readonly<{
334
+ onChange?: ((...args: any[]) => any) | undefined;
335
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
336
+ }>, {
337
+ handleQuery: () => Promise<void>;
338
+ }, {}, {}, {}, {
339
+ title: string;
340
+ data: unknown[];
341
+ visible: boolean;
342
+ orgService: string;
343
+ orgAction: string;
344
+ orgPost: boolean;
345
+ orgparas: Record<string, any>;
346
+ userService: string;
347
+ userAction: string;
348
+ userParams: Record<string, any>;
349
+ }> | null;
350
+ tableSupplierUserDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
351
+ visible: {
352
+ type: BooleanConstructor;
353
+ default: boolean;
354
+ };
355
+ title: {
356
+ type: StringConstructor;
357
+ default: string;
358
+ };
359
+ data: {
360
+ type: ArrayConstructor;
361
+ default: () => never[];
362
+ };
363
+ userService: {
364
+ type: StringConstructor;
365
+ default: string;
366
+ };
367
+ userAction: {
368
+ type: StringConstructor;
369
+ default: string;
370
+ };
371
+ userParams: {
372
+ type: ObjectConstructor;
373
+ default: () => void;
374
+ };
375
+ }>> & Readonly<{
376
+ onChange?: ((...args: any[]) => any) | undefined;
377
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
378
+ }>, {
379
+ handleQuery: () => Promise<void>;
380
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
381
+ change: (...args: any[]) => void;
382
+ "update:visible": (...args: any[]) => void;
383
+ }, PublicProps, {
384
+ title: string;
385
+ data: unknown[];
386
+ visible: boolean;
387
+ userService: string;
388
+ userAction: string;
389
+ userParams: Record<string, any>;
390
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
391
+ queryRef: unknown;
392
+ refTable: unknown;
393
+ }, any, ComponentProvideOptions, {
394
+ P: {};
395
+ B: {};
396
+ D: {};
397
+ C: {};
398
+ M: {};
399
+ Defaults: {};
400
+ }, Readonly< ExtractPropTypes<{
401
+ visible: {
402
+ type: BooleanConstructor;
403
+ default: boolean;
404
+ };
405
+ title: {
406
+ type: StringConstructor;
407
+ default: string;
408
+ };
409
+ data: {
410
+ type: ArrayConstructor;
411
+ default: () => never[];
412
+ };
413
+ userService: {
414
+ type: StringConstructor;
415
+ default: string;
416
+ };
417
+ userAction: {
418
+ type: StringConstructor;
419
+ default: string;
420
+ };
421
+ userParams: {
422
+ type: ObjectConstructor;
423
+ default: () => void;
424
+ };
425
+ }>> & Readonly<{
426
+ onChange?: ((...args: any[]) => any) | undefined;
427
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
428
+ }>, {
429
+ handleQuery: () => Promise<void>;
430
+ }, {}, {}, {}, {
431
+ title: string;
432
+ data: unknown[];
433
+ visible: boolean;
434
+ userService: string;
435
+ userAction: string;
436
+ userParams: Record<string, any>;
437
+ }> | null;
438
+ tableSupplierDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
439
+ visible: {
440
+ type: BooleanConstructor;
441
+ default: boolean;
442
+ };
443
+ title: {
444
+ type: StringConstructor;
445
+ default: string;
446
+ };
447
+ data: {
448
+ type: ArrayConstructor;
449
+ default: () => never[];
450
+ };
451
+ userService: {
452
+ type: StringConstructor;
453
+ default: string;
454
+ };
455
+ userAction: {
456
+ type: StringConstructor;
457
+ default: string;
458
+ };
459
+ userParams: {
460
+ type: ObjectConstructor;
461
+ default: () => void;
462
+ };
463
+ }>> & Readonly<{
464
+ onChange?: ((...args: any[]) => any) | undefined;
465
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
466
+ }>, {
467
+ handleQuery: () => Promise<void>;
468
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
469
+ change: (...args: any[]) => void;
470
+ "update:visible": (...args: any[]) => void;
471
+ }, PublicProps, {
472
+ title: string;
473
+ data: unknown[];
474
+ visible: boolean;
475
+ userService: string;
476
+ userAction: string;
477
+ userParams: Record<string, any>;
478
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
479
+ queryRef: unknown;
480
+ refTable: unknown;
481
+ }, any, ComponentProvideOptions, {
482
+ P: {};
483
+ B: {};
484
+ D: {};
485
+ C: {};
486
+ M: {};
487
+ Defaults: {};
488
+ }, Readonly< ExtractPropTypes<{
489
+ visible: {
490
+ type: BooleanConstructor;
491
+ default: boolean;
492
+ };
493
+ title: {
494
+ type: StringConstructor;
495
+ default: string;
496
+ };
497
+ data: {
498
+ type: ArrayConstructor;
499
+ default: () => never[];
500
+ };
501
+ userService: {
502
+ type: StringConstructor;
503
+ default: string;
504
+ };
505
+ userAction: {
506
+ type: StringConstructor;
507
+ default: string;
508
+ };
509
+ userParams: {
510
+ type: ObjectConstructor;
511
+ default: () => void;
512
+ };
513
+ }>> & Readonly<{
514
+ onChange?: ((...args: any[]) => any) | undefined;
515
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
516
+ }>, {
517
+ handleQuery: () => Promise<void>;
518
+ }, {}, {}, {}, {
519
+ title: string;
520
+ data: unknown[];
521
+ visible: boolean;
522
+ userService: string;
523
+ userAction: string;
524
+ userParams: Record<string, any>;
525
+ }> | null;
526
+ tableAccountDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
527
+ visible: {
528
+ type: BooleanConstructor;
529
+ default: boolean;
530
+ };
531
+ title: {
532
+ type: StringConstructor;
533
+ default: string;
534
+ };
535
+ data: {
536
+ type: ArrayConstructor;
537
+ default: () => never[];
538
+ };
539
+ userService: {
540
+ type: StringConstructor;
541
+ default: string;
542
+ };
543
+ userAction: {
544
+ type: StringConstructor;
545
+ default: string;
546
+ };
547
+ userParams: {
548
+ type: ObjectConstructor;
549
+ default: () => void;
550
+ };
551
+ }>> & Readonly<{
552
+ onChange?: ((...args: any[]) => any) | undefined;
553
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
554
+ }>, {
555
+ handleQuery: () => Promise<void>;
556
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
557
+ change: (...args: any[]) => void;
558
+ "update:visible": (...args: any[]) => void;
559
+ }, PublicProps, {
560
+ title: string;
561
+ data: unknown[];
562
+ visible: boolean;
563
+ userService: string;
564
+ userAction: string;
565
+ userParams: Record<string, any>;
566
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
567
+ queryRef: unknown;
568
+ refTable: unknown;
569
+ }, any, ComponentProvideOptions, {
570
+ P: {};
571
+ B: {};
572
+ D: {};
573
+ C: {};
574
+ M: {};
575
+ Defaults: {};
576
+ }, Readonly< ExtractPropTypes<{
577
+ visible: {
578
+ type: BooleanConstructor;
579
+ default: boolean;
580
+ };
581
+ title: {
582
+ type: StringConstructor;
583
+ default: string;
584
+ };
585
+ data: {
586
+ type: ArrayConstructor;
587
+ default: () => never[];
588
+ };
589
+ userService: {
590
+ type: StringConstructor;
591
+ default: string;
592
+ };
593
+ userAction: {
594
+ type: StringConstructor;
595
+ default: string;
596
+ };
597
+ userParams: {
598
+ type: ObjectConstructor;
599
+ default: () => void;
600
+ };
601
+ }>> & Readonly<{
602
+ onChange?: ((...args: any[]) => any) | undefined;
603
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
604
+ }>, {
605
+ handleQuery: () => Promise<void>;
606
+ }, {}, {}, {}, {
607
+ title: string;
608
+ data: unknown[];
609
+ visible: boolean;
610
+ userService: string;
611
+ userAction: string;
612
+ userParams: Record<string, any>;
613
+ }> | null;
614
+ tableSubjectDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
615
+ visible: {
616
+ type: BooleanConstructor;
617
+ default: boolean;
618
+ };
619
+ title: {
620
+ type: StringConstructor;
621
+ default: string;
622
+ };
623
+ data: {
624
+ type: ArrayConstructor;
625
+ default: () => never[];
626
+ };
627
+ subjectService: {
628
+ type: StringConstructor;
629
+ default: string;
630
+ };
631
+ subjectAction: {
632
+ type: StringConstructor;
633
+ default: string;
634
+ };
635
+ subjectParams: {
636
+ type: ObjectConstructor;
637
+ default: () => void;
638
+ };
639
+ }>> & Readonly<{
640
+ onChange?: ((...args: any[]) => any) | undefined;
641
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
642
+ }>, {
643
+ handleQuery: () => Promise<void>;
644
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
645
+ change: (...args: any[]) => void;
646
+ "update:visible": (...args: any[]) => void;
647
+ }, PublicProps, {
648
+ title: string;
649
+ data: unknown[];
650
+ visible: boolean;
651
+ subjectService: string;
652
+ subjectAction: string;
653
+ subjectParams: Record<string, any>;
654
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
655
+ queryRef: unknown;
656
+ refTable: unknown;
657
+ }, any, ComponentProvideOptions, {
658
+ P: {};
659
+ B: {};
660
+ D: {};
661
+ C: {};
662
+ M: {};
663
+ Defaults: {};
664
+ }, Readonly< ExtractPropTypes<{
665
+ visible: {
666
+ type: BooleanConstructor;
667
+ default: boolean;
668
+ };
669
+ title: {
670
+ type: StringConstructor;
671
+ default: string;
672
+ };
673
+ data: {
674
+ type: ArrayConstructor;
675
+ default: () => never[];
676
+ };
677
+ subjectService: {
678
+ type: StringConstructor;
679
+ default: string;
680
+ };
681
+ subjectAction: {
682
+ type: StringConstructor;
683
+ default: string;
684
+ };
685
+ subjectParams: {
686
+ type: ObjectConstructor;
687
+ default: () => void;
688
+ };
689
+ }>> & Readonly<{
690
+ onChange?: ((...args: any[]) => any) | undefined;
691
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
692
+ }>, {
693
+ handleQuery: () => Promise<void>;
694
+ }, {}, {}, {}, {
695
+ title: string;
696
+ data: unknown[];
697
+ visible: boolean;
698
+ subjectService: string;
699
+ subjectAction: string;
700
+ subjectParams: Record<string, any>;
701
+ }> | null;
702
+ tableLineDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
222
703
  visible: {
223
704
  type: BooleanConstructor;
224
705
  default: boolean;