@fmdeui/fmui 1.0.143 → 1.0.144

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.143 */
1
+ /*! fmdeui-fmui v1.0.144 */
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';
@@ -27862,7 +27862,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
27862
27862
  /* STABLE */
27863
27863
  }, 8, ["data"]),
27864
27864
  createVNode(_component_el_pagination, {
27865
- currentPage: state.queryParams.page,
27865
+ "current-page": state.queryParams.page,
27866
27866
  "page-size": state.queryParams.pageSize,
27867
27867
  total: state.queryParams.total,
27868
27868
  "page-sizes": [10, 20, 50, 100],
@@ -27871,7 +27871,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
27871
27871
  onCurrentChange: handleCurrentChange,
27872
27872
  layout: "total, sizes, prev, pager, next, jumper",
27873
27873
  style: { "padding-bottom": "8px" }
27874
- }, null, 8, ["currentPage", "page-size", "total"])
27874
+ }, null, 8, ["current-page", "page-size", "total"])
27875
27875
  ]),
27876
27876
  _: 1
27877
27877
  /* STABLE */
@@ -30000,7 +30000,12 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
30000
30000
  const modelValue = useModel(__props, "modelValue");
30001
30001
  const props = __props;
30002
30002
  const visibleopenDialog = ref(false);
30003
- const tableDialogRef = ref();
30003
+ const tableUserDialogRef = ref();
30004
+ const tableSupplierUserDialogRef = ref();
30005
+ const tableAccountDialogRef = ref();
30006
+ const tableSubjectDialogRef = ref();
30007
+ const tableLineDialogRef = ref();
30008
+ const tableSupplierDialogRef = ref();
30004
30009
  const emit = __emit;
30005
30010
  const querySearchAsync = async (queryString, cb) => {
30006
30011
  var _a;
@@ -30047,9 +30052,32 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
30047
30052
  }
30048
30053
  emit("select", item);
30049
30054
  };
30050
- const handleRefresh = () => {
30051
- if (tableDialogRef.value) {
30052
- tableDialogRef.value.handleQuery();
30055
+ const handleRefresh = async () => {
30056
+ var _a;
30057
+ await nextTick();
30058
+ if (props.openType == 0) {
30059
+ if (tableUserDialogRef.value) {
30060
+ tableUserDialogRef.value.handleQuery();
30061
+ }
30062
+ } else if (props.openType == 1) {
30063
+ if (tableSupplierUserDialogRef.value) {
30064
+ tableSupplierUserDialogRef.value.handleQuery();
30065
+ }
30066
+ }
30067
+ if (props.openType == 2) {
30068
+ if (tableSupplierDialogRef.value) {
30069
+ tableSupplierDialogRef.value.handleQuery();
30070
+ }
30071
+ } else if (props.openType == 3) {
30072
+ if (tableAccountDialogRef.value) {
30073
+ tableAccountDialogRef.value.handleQuery();
30074
+ }
30075
+ } else if (props.openType == 4) {
30076
+ if (tableSubjectDialogRef.value) {
30077
+ tableSubjectDialogRef.value.handleQuery();
30078
+ }
30079
+ } else if (props.openType == 5) {
30080
+ (_a = tableLineDialogRef.value) == null ? void 0 : _a.handleQuery();
30053
30081
  }
30054
30082
  };
30055
30083
  return (_ctx, _cache) => {
@@ -30098,8 +30126,8 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
30098
30126
  }, 8, ["size"]),
30099
30127
  __props.openType == 0 ? (openBlock(), createBlock(_sfc_main$y, {
30100
30128
  key: 0,
30101
- ref_key: "tableDialogRef",
30102
- ref: tableDialogRef,
30129
+ ref_key: "tableUserDialogRef",
30130
+ ref: tableUserDialogRef,
30103
30131
  visible: visibleopenDialog.value,
30104
30132
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
30105
30133
  orgService: __props.orgService,
@@ -30113,8 +30141,8 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
30113
30141
  }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
30114
30142
  __props.openType == 1 ? (openBlock(), createBlock(_sfc_main$w, {
30115
30143
  key: 1,
30116
- ref_key: "tableDialogRef",
30117
- ref: tableDialogRef,
30144
+ ref_key: "tableSupplierUserDialogRef",
30145
+ ref: tableSupplierUserDialogRef,
30118
30146
  visible: visibleopenDialog.value,
30119
30147
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
30120
30148
  title: __props.title,
@@ -30125,8 +30153,8 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
30125
30153
  }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
30126
30154
  __props.openType == 2 ? (openBlock(), createBlock(_sfc_main$x, {
30127
30155
  key: 2,
30128
- ref_key: "tableDialogRef",
30129
- ref: tableDialogRef,
30156
+ ref_key: "tableSupplierDialogRef",
30157
+ ref: tableSupplierDialogRef,
30130
30158
  visible: visibleopenDialog.value,
30131
30159
  "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => visibleopenDialog.value = $event),
30132
30160
  title: __props.title,
@@ -30138,8 +30166,8 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
30138
30166
  createCommentVNode("\u8D26\u53F7\u9009\u62E9"),
30139
30167
  __props.openType == 3 ? (openBlock(), createBlock(_sfc_main$v, {
30140
30168
  key: 3,
30141
- ref_key: "tableDialogRef",
30142
- ref: tableDialogRef,
30169
+ ref_key: "tableAccountDialogRef",
30170
+ ref: tableAccountDialogRef,
30143
30171
  visible: visibleopenDialog.value,
30144
30172
  "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => visibleopenDialog.value = $event),
30145
30173
  title: __props.title,
@@ -30151,8 +30179,8 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
30151
30179
  createCommentVNode("\u79D1\u76EE\u9009\u62E9"),
30152
30180
  __props.openType == 4 ? (openBlock(), createBlock(_sfc_main$u, {
30153
30181
  key: 4,
30154
- ref_key: "tableDialogRef",
30155
- ref: tableDialogRef,
30182
+ ref_key: "tableSubjectDialogRef",
30183
+ ref: tableSubjectDialogRef,
30156
30184
  visible: visibleopenDialog.value,
30157
30185
  "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => visibleopenDialog.value = $event),
30158
30186
  title: __props.title,
@@ -30164,8 +30192,8 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
30164
30192
  createCommentVNode("\u7EBF\u8DEF\u9009\u62E9"),
30165
30193
  __props.openType == 5 ? (openBlock(), createBlock(_sfc_main$t, {
30166
30194
  key: 5,
30167
- ref_key: "tableDialogRef",
30168
- ref: tableDialogRef,
30195
+ ref_key: "tableLineDialogRef",
30196
+ ref: tableLineDialogRef,
30169
30197
  visible: visibleopenDialog.value,
30170
30198
  "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => visibleopenDialog.value = $event),
30171
30199
  title: __props.title,
@@ -270,7 +270,488 @@ declare const _default: DefineComponent<ExtractPropTypes<{
270
270
  accountAction: string;
271
271
  vGroup: any[];
272
272
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
273
- tableDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
273
+ tableUserDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
274
+ visible: {
275
+ type: BooleanConstructor;
276
+ default: boolean;
277
+ };
278
+ title: {
279
+ type: StringConstructor;
280
+ default: string;
281
+ };
282
+ data: {
283
+ type: ArrayConstructor;
284
+ default: () => never[];
285
+ };
286
+ orgService: {
287
+ type: StringConstructor;
288
+ default: string;
289
+ };
290
+ orgAction: {
291
+ type: StringConstructor;
292
+ default: string;
293
+ };
294
+ orgPost: {
295
+ type: BooleanConstructor;
296
+ default: boolean;
297
+ };
298
+ orgparas: {
299
+ type: ObjectConstructor;
300
+ default: null;
301
+ };
302
+ userService: {
303
+ type: StringConstructor;
304
+ default: string;
305
+ };
306
+ userAction: {
307
+ type: StringConstructor;
308
+ default: string;
309
+ };
310
+ userParams: {
311
+ type: ObjectConstructor;
312
+ default: () => void;
313
+ };
314
+ }>> & Readonly<{
315
+ onChange?: ((...args: any[]) => any) | undefined;
316
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
317
+ }>, {
318
+ handleQuery: () => Promise<void>;
319
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
320
+ change: (...args: any[]) => void;
321
+ "update:visible": (...args: any[]) => void;
322
+ }, PublicProps, {
323
+ title: string;
324
+ data: unknown[];
325
+ visible: boolean;
326
+ orgService: string;
327
+ orgAction: string;
328
+ orgPost: boolean;
329
+ orgparas: Record<string, any>;
330
+ userService: string;
331
+ userAction: string;
332
+ userParams: Record<string, any>;
333
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
334
+ orgTreeRef: unknown;
335
+ queryRef: unknown;
336
+ refTable: unknown;
337
+ }, any, ComponentProvideOptions, {
338
+ P: {};
339
+ B: {};
340
+ D: {};
341
+ C: {};
342
+ M: {};
343
+ Defaults: {};
344
+ }, Readonly< ExtractPropTypes<{
345
+ visible: {
346
+ type: BooleanConstructor;
347
+ default: boolean;
348
+ };
349
+ title: {
350
+ type: StringConstructor;
351
+ default: string;
352
+ };
353
+ data: {
354
+ type: ArrayConstructor;
355
+ default: () => never[];
356
+ };
357
+ orgService: {
358
+ type: StringConstructor;
359
+ default: string;
360
+ };
361
+ orgAction: {
362
+ type: StringConstructor;
363
+ default: string;
364
+ };
365
+ orgPost: {
366
+ type: BooleanConstructor;
367
+ default: boolean;
368
+ };
369
+ orgparas: {
370
+ type: ObjectConstructor;
371
+ default: null;
372
+ };
373
+ userService: {
374
+ type: StringConstructor;
375
+ default: string;
376
+ };
377
+ userAction: {
378
+ type: StringConstructor;
379
+ default: string;
380
+ };
381
+ userParams: {
382
+ type: ObjectConstructor;
383
+ default: () => void;
384
+ };
385
+ }>> & Readonly<{
386
+ onChange?: ((...args: any[]) => any) | undefined;
387
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
388
+ }>, {
389
+ handleQuery: () => Promise<void>;
390
+ }, {}, {}, {}, {
391
+ title: string;
392
+ data: unknown[];
393
+ visible: boolean;
394
+ orgService: string;
395
+ orgAction: string;
396
+ orgPost: boolean;
397
+ orgparas: Record<string, any>;
398
+ userService: string;
399
+ userAction: string;
400
+ userParams: Record<string, any>;
401
+ }> | null;
402
+ tableSupplierUserDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
403
+ visible: {
404
+ type: BooleanConstructor;
405
+ default: boolean;
406
+ };
407
+ title: {
408
+ type: StringConstructor;
409
+ default: string;
410
+ };
411
+ data: {
412
+ type: ArrayConstructor;
413
+ default: () => never[];
414
+ };
415
+ userService: {
416
+ type: StringConstructor;
417
+ default: string;
418
+ };
419
+ userAction: {
420
+ type: StringConstructor;
421
+ default: string;
422
+ };
423
+ userParams: {
424
+ type: ObjectConstructor;
425
+ default: () => void;
426
+ };
427
+ }>> & Readonly<{
428
+ onChange?: ((...args: any[]) => any) | undefined;
429
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
430
+ }>, {
431
+ handleQuery: () => Promise<void>;
432
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
433
+ change: (...args: any[]) => void;
434
+ "update:visible": (...args: any[]) => void;
435
+ }, PublicProps, {
436
+ title: string;
437
+ data: unknown[];
438
+ visible: boolean;
439
+ userService: string;
440
+ userAction: string;
441
+ userParams: Record<string, any>;
442
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
443
+ queryRef: unknown;
444
+ refTable: unknown;
445
+ }, any, ComponentProvideOptions, {
446
+ P: {};
447
+ B: {};
448
+ D: {};
449
+ C: {};
450
+ M: {};
451
+ Defaults: {};
452
+ }, Readonly< ExtractPropTypes<{
453
+ visible: {
454
+ type: BooleanConstructor;
455
+ default: boolean;
456
+ };
457
+ title: {
458
+ type: StringConstructor;
459
+ default: string;
460
+ };
461
+ data: {
462
+ type: ArrayConstructor;
463
+ default: () => never[];
464
+ };
465
+ userService: {
466
+ type: StringConstructor;
467
+ default: string;
468
+ };
469
+ userAction: {
470
+ type: StringConstructor;
471
+ default: string;
472
+ };
473
+ userParams: {
474
+ type: ObjectConstructor;
475
+ default: () => void;
476
+ };
477
+ }>> & Readonly<{
478
+ onChange?: ((...args: any[]) => any) | undefined;
479
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
480
+ }>, {
481
+ handleQuery: () => Promise<void>;
482
+ }, {}, {}, {}, {
483
+ title: string;
484
+ data: unknown[];
485
+ visible: boolean;
486
+ userService: string;
487
+ userAction: string;
488
+ userParams: Record<string, any>;
489
+ }> | null;
490
+ tableSupplierDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
491
+ visible: {
492
+ type: BooleanConstructor;
493
+ default: boolean;
494
+ };
495
+ title: {
496
+ type: StringConstructor;
497
+ default: string;
498
+ };
499
+ data: {
500
+ type: ArrayConstructor;
501
+ default: () => never[];
502
+ };
503
+ userService: {
504
+ type: StringConstructor;
505
+ default: string;
506
+ };
507
+ userAction: {
508
+ type: StringConstructor;
509
+ default: string;
510
+ };
511
+ userParams: {
512
+ type: ObjectConstructor;
513
+ default: () => void;
514
+ };
515
+ }>> & Readonly<{
516
+ onChange?: ((...args: any[]) => any) | undefined;
517
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
518
+ }>, {
519
+ handleQuery: () => Promise<void>;
520
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
521
+ change: (...args: any[]) => void;
522
+ "update:visible": (...args: any[]) => void;
523
+ }, PublicProps, {
524
+ title: string;
525
+ data: unknown[];
526
+ visible: boolean;
527
+ userService: string;
528
+ userAction: string;
529
+ userParams: Record<string, any>;
530
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
531
+ queryRef: unknown;
532
+ refTable: unknown;
533
+ }, any, ComponentProvideOptions, {
534
+ P: {};
535
+ B: {};
536
+ D: {};
537
+ C: {};
538
+ M: {};
539
+ Defaults: {};
540
+ }, Readonly< ExtractPropTypes<{
541
+ visible: {
542
+ type: BooleanConstructor;
543
+ default: boolean;
544
+ };
545
+ title: {
546
+ type: StringConstructor;
547
+ default: string;
548
+ };
549
+ data: {
550
+ type: ArrayConstructor;
551
+ default: () => never[];
552
+ };
553
+ userService: {
554
+ type: StringConstructor;
555
+ default: string;
556
+ };
557
+ userAction: {
558
+ type: StringConstructor;
559
+ default: string;
560
+ };
561
+ userParams: {
562
+ type: ObjectConstructor;
563
+ default: () => void;
564
+ };
565
+ }>> & Readonly<{
566
+ onChange?: ((...args: any[]) => any) | undefined;
567
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
568
+ }>, {
569
+ handleQuery: () => Promise<void>;
570
+ }, {}, {}, {}, {
571
+ title: string;
572
+ data: unknown[];
573
+ visible: boolean;
574
+ userService: string;
575
+ userAction: string;
576
+ userParams: Record<string, any>;
577
+ }> | null;
578
+ tableAccountDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
579
+ visible: {
580
+ type: BooleanConstructor;
581
+ default: boolean;
582
+ };
583
+ title: {
584
+ type: StringConstructor;
585
+ default: string;
586
+ };
587
+ data: {
588
+ type: ArrayConstructor;
589
+ default: () => never[];
590
+ };
591
+ userService: {
592
+ type: StringConstructor;
593
+ default: string;
594
+ };
595
+ userAction: {
596
+ type: StringConstructor;
597
+ default: string;
598
+ };
599
+ userParams: {
600
+ type: ObjectConstructor;
601
+ default: () => void;
602
+ };
603
+ }>> & Readonly<{
604
+ onChange?: ((...args: any[]) => any) | undefined;
605
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
606
+ }>, {
607
+ handleQuery: () => Promise<void>;
608
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
609
+ change: (...args: any[]) => void;
610
+ "update:visible": (...args: any[]) => void;
611
+ }, PublicProps, {
612
+ title: string;
613
+ data: unknown[];
614
+ visible: boolean;
615
+ userService: string;
616
+ userAction: string;
617
+ userParams: Record<string, any>;
618
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
619
+ queryRef: unknown;
620
+ refTable: unknown;
621
+ }, any, ComponentProvideOptions, {
622
+ P: {};
623
+ B: {};
624
+ D: {};
625
+ C: {};
626
+ M: {};
627
+ Defaults: {};
628
+ }, Readonly< ExtractPropTypes<{
629
+ visible: {
630
+ type: BooleanConstructor;
631
+ default: boolean;
632
+ };
633
+ title: {
634
+ type: StringConstructor;
635
+ default: string;
636
+ };
637
+ data: {
638
+ type: ArrayConstructor;
639
+ default: () => never[];
640
+ };
641
+ userService: {
642
+ type: StringConstructor;
643
+ default: string;
644
+ };
645
+ userAction: {
646
+ type: StringConstructor;
647
+ default: string;
648
+ };
649
+ userParams: {
650
+ type: ObjectConstructor;
651
+ default: () => void;
652
+ };
653
+ }>> & Readonly<{
654
+ onChange?: ((...args: any[]) => any) | undefined;
655
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
656
+ }>, {
657
+ handleQuery: () => Promise<void>;
658
+ }, {}, {}, {}, {
659
+ title: string;
660
+ data: unknown[];
661
+ visible: boolean;
662
+ userService: string;
663
+ userAction: string;
664
+ userParams: Record<string, any>;
665
+ }> | null;
666
+ tableSubjectDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
667
+ visible: {
668
+ type: BooleanConstructor;
669
+ default: boolean;
670
+ };
671
+ title: {
672
+ type: StringConstructor;
673
+ default: string;
674
+ };
675
+ data: {
676
+ type: ArrayConstructor;
677
+ default: () => never[];
678
+ };
679
+ subjectService: {
680
+ type: StringConstructor;
681
+ default: string;
682
+ };
683
+ subjectAction: {
684
+ type: StringConstructor;
685
+ default: string;
686
+ };
687
+ subjectParams: {
688
+ type: ObjectConstructor;
689
+ default: () => void;
690
+ };
691
+ }>> & Readonly<{
692
+ onChange?: ((...args: any[]) => any) | undefined;
693
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
694
+ }>, {
695
+ handleQuery: () => Promise<void>;
696
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
697
+ change: (...args: any[]) => void;
698
+ "update:visible": (...args: any[]) => void;
699
+ }, PublicProps, {
700
+ title: string;
701
+ data: unknown[];
702
+ visible: boolean;
703
+ subjectService: string;
704
+ subjectAction: string;
705
+ subjectParams: Record<string, any>;
706
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
707
+ queryRef: unknown;
708
+ refTable: unknown;
709
+ }, any, ComponentProvideOptions, {
710
+ P: {};
711
+ B: {};
712
+ D: {};
713
+ C: {};
714
+ M: {};
715
+ Defaults: {};
716
+ }, Readonly< ExtractPropTypes<{
717
+ visible: {
718
+ type: BooleanConstructor;
719
+ default: boolean;
720
+ };
721
+ title: {
722
+ type: StringConstructor;
723
+ default: string;
724
+ };
725
+ data: {
726
+ type: ArrayConstructor;
727
+ default: () => never[];
728
+ };
729
+ subjectService: {
730
+ type: StringConstructor;
731
+ default: string;
732
+ };
733
+ subjectAction: {
734
+ type: StringConstructor;
735
+ default: string;
736
+ };
737
+ subjectParams: {
738
+ type: ObjectConstructor;
739
+ default: () => void;
740
+ };
741
+ }>> & Readonly<{
742
+ onChange?: ((...args: any[]) => any) | undefined;
743
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
744
+ }>, {
745
+ handleQuery: () => Promise<void>;
746
+ }, {}, {}, {}, {
747
+ title: string;
748
+ data: unknown[];
749
+ visible: boolean;
750
+ subjectService: string;
751
+ subjectAction: string;
752
+ subjectParams: Record<string, any>;
753
+ }> | null;
754
+ tableLineDialogRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
274
755
  visible: {
275
756
  type: BooleanConstructor;
276
757
  default: boolean;