@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.
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.147 */
1
+ /*! fmdeui-fmui v1.0.149 */
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';
@@ -27287,11 +27287,13 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
27287
27287
  if (props.optionData.length > 0) {
27288
27288
  state.optionData = props.optionData;
27289
27289
  }
27290
+ });
27291
+ const handClick = async () => {
27290
27292
  if (props.autoLoadData && props.basecode && props.basecode != "") {
27291
27293
  const useBaseApi = usefminputdropdownstore();
27292
27294
  state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
27293
27295
  }
27294
- });
27296
+ };
27295
27297
  const handRestdata = async () => {
27296
27298
  if (props.basecode && props.basecode != "") {
27297
27299
  const useBaseApi = usefminputdropdownstore();
@@ -27350,7 +27352,8 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
27350
27352
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
27351
27353
  placeholder: props.placeholder,
27352
27354
  style: normalizeStyle({ width: __props.inputWidth }),
27353
- onChange: handelChange
27355
+ onChange: handelChange,
27356
+ onClick: handClick
27354
27357
  }, {
27355
27358
  suffix: withCtx(() => [
27356
27359
  createVNode(_component_el_icon, {
@@ -29721,7 +29724,12 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29721
29724
  const autoId = useModel(__props, "id");
29722
29725
  const props = __props;
29723
29726
  const visibleopenDialog = ref(false);
29724
- const tableDialogRef = ref();
29727
+ const tableUserDialogRef = ref();
29728
+ const tableSupplierUserDialogRef = ref();
29729
+ const tableAccountDialogRef = ref();
29730
+ const tableSubjectDialogRef = ref();
29731
+ const tableLineDialogRef = ref();
29732
+ const tableSupplierDialogRef = ref();
29725
29733
  const emit = __emit;
29726
29734
  const querySearchAsync = async (queryString, cb) => {
29727
29735
  var _a;
@@ -29755,9 +29763,32 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29755
29763
  autoId.value = value.id;
29756
29764
  emit("select", value);
29757
29765
  };
29758
- const handleRefresh = () => {
29759
- if (tableDialogRef.value) {
29760
- tableDialogRef.value.handleQuery();
29766
+ const handleRefresh = async () => {
29767
+ var _a;
29768
+ await nextTick();
29769
+ if (props.openType == 0) {
29770
+ if (tableUserDialogRef.value) {
29771
+ tableUserDialogRef.value.handleQuery();
29772
+ }
29773
+ } else if (props.openType == 1) {
29774
+ if (tableSupplierUserDialogRef.value) {
29775
+ tableSupplierUserDialogRef.value.handleQuery();
29776
+ }
29777
+ }
29778
+ if (props.openType == 2) {
29779
+ if (tableSupplierDialogRef.value) {
29780
+ tableSupplierDialogRef.value.handleQuery();
29781
+ }
29782
+ } else if (props.openType == 3) {
29783
+ if (tableAccountDialogRef.value) {
29784
+ tableAccountDialogRef.value.handleQuery();
29785
+ }
29786
+ } else if (props.openType == 4) {
29787
+ if (tableSubjectDialogRef.value) {
29788
+ tableSubjectDialogRef.value.handleQuery();
29789
+ }
29790
+ } else if (props.openType == 5) {
29791
+ (_a = tableLineDialogRef.value) == null ? void 0 : _a.handleQuery();
29761
29792
  }
29762
29793
  };
29763
29794
  return (_ctx, _cache) => {
@@ -29806,6 +29837,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29806
29837
  }, 8, ["size"]),
29807
29838
  __props.openType == 0 ? (openBlock(), createBlock(_sfc_main$y, {
29808
29839
  key: 0,
29840
+ ref_key: "tableUserDialogRef",
29841
+ ref: tableUserDialogRef,
29809
29842
  visible: visibleopenDialog.value,
29810
29843
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
29811
29844
  orgService: __props.orgService,
@@ -29819,6 +29852,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29819
29852
  }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
29820
29853
  __props.openType == 1 ? (openBlock(), createBlock(_sfc_main$w, {
29821
29854
  key: 1,
29855
+ ref_key: "tableSupplierUserDialogRef",
29856
+ ref: tableSupplierUserDialogRef,
29822
29857
  visible: visibleopenDialog.value,
29823
29858
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
29824
29859
  title: __props.title,
@@ -29829,8 +29864,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29829
29864
  }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
29830
29865
  __props.openType == 2 ? (openBlock(), createBlock(_sfc_main$x, {
29831
29866
  key: 2,
29832
- ref_key: "tableDialogRef",
29833
- ref: tableDialogRef,
29867
+ ref_key: "tableSupplierDialogRef",
29868
+ ref: tableSupplierDialogRef,
29834
29869
  visible: visibleopenDialog.value,
29835
29870
  "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => visibleopenDialog.value = $event),
29836
29871
  title: __props.title,
@@ -29842,6 +29877,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29842
29877
  createCommentVNode("\u8D26\u53F7\u9009\u62E9"),
29843
29878
  __props.openType == 3 ? (openBlock(), createBlock(_sfc_main$v, {
29844
29879
  key: 3,
29880
+ ref_key: "tableAccountDialogRef",
29881
+ ref: tableAccountDialogRef,
29845
29882
  visible: visibleopenDialog.value,
29846
29883
  "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => visibleopenDialog.value = $event),
29847
29884
  title: __props.title,
@@ -29853,6 +29890,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29853
29890
  createCommentVNode("\u79D1\u76EE\u9009\u62E9"),
29854
29891
  __props.openType == 4 ? (openBlock(), createBlock(_sfc_main$u, {
29855
29892
  key: 4,
29893
+ ref_key: "tableSubjectDialogRef",
29894
+ ref: tableSubjectDialogRef,
29856
29895
  visible: visibleopenDialog.value,
29857
29896
  "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => visibleopenDialog.value = $event),
29858
29897
  title: __props.title,
@@ -29864,6 +29903,8 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
29864
29903
  createCommentVNode("\u7EBF\u8DEF\u9009\u62E9"),
29865
29904
  __props.openType == 5 ? (openBlock(), createBlock(_sfc_main$t, {
29866
29905
  key: 5,
29906
+ ref_key: "tableLineDialogRef",
29907
+ ref: tableLineDialogRef,
29867
29908
  visible: visibleopenDialog.value,
29868
29909
  "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => visibleopenDialog.value = $event),
29869
29910
  title: __props.title,
@@ -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;