cloud-web-corejs 1.0.94 → 1.0.96

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.
Files changed (64) hide show
  1. package/package.json +39 -30
  2. package/src/components/wf/content.vue +2 -0
  3. package/src/components/wf/setCandidateDialog.vue +1 -0
  4. package/src/components/xform/form-designer/designer.js +1 -1
  5. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +2 -1
  6. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +3 -0
  7. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +1 -1
  8. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  9. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  10. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +7 -2
  11. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
  12. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  13. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
  14. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +5 -2
  15. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +1 -1
  16. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  17. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +2 -1
  18. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  19. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +3 -2
  20. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
  21. package/src/components/xform/form-designer/indexMixin.js +1 -1
  22. package/src/components/xform/form-designer/setting-panel/form-setting.vue +260 -38
  23. package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
  24. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  25. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +8 -3
  26. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
  27. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +3 -2
  28. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +0 -8
  29. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +183 -45
  30. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  31. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +26 -8
  32. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  33. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  34. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +7 -2
  35. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +8 -2
  36. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
  37. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  38. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +722 -467
  39. package/src/components/xform/form-designer/setting-panel/property-editor/formulaEnabled-editor.vue +1 -1
  40. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
  41. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +159 -18
  42. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +51 -2
  43. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +2 -30
  44. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +220 -0
  45. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +5 -0
  46. package/src/components/xform/form-designer/toolbar-panel/index.vue +8 -4
  47. package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
  48. package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
  49. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +489 -132
  50. package/src/components/xform/form-render/container-item/data-table-item.vue +7 -4
  51. package/src/components/xform/form-render/container-item/data-table-mixin.js +4 -1
  52. package/src/components/xform/form-render/container-item/data-table-mixin2.js +2169 -0
  53. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  54. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  55. package/src/components/xform/form-render/indexMixin.js +7 -3
  56. package/src/components/xform/lang/zh-CN.js +13 -3
  57. package/src/components/xform/mixins/defaultHandle.js +1 -1
  58. package/src/components/xform/mixins/scriptHttp.js +1 -1
  59. package/src/components/xform/utils/format.js +21 -30
  60. package/src/components/xform/utils/formula-util.js +669 -0
  61. package/src/components/xform/utils/util.js +1 -1
  62. package/src/mixins/selectDialog/index.js +1 -1
  63. package/src/store/modules/permission.js +1 -1
  64. package/src/store/modules/settings.js +1 -1
@@ -288,7 +288,7 @@ export const containers = [
288
288
  showRuleFlag: 1,
289
289
  showRuleEnabled: 1,
290
290
  showRules: [],
291
- hideGridCheckBox:false
291
+ hideGridCheckBox: false
292
292
  }
293
293
  },
294
294
  /*{
@@ -766,7 +766,8 @@ export const defaultSearchDialogConfig = {
766
766
  tableUniqueKey: null,
767
767
  tableData: [],
768
768
  multipleChoices: true,
769
- confirmCallback: null
769
+ confirmCallback: null,
770
+ dialogQueryParam: null
770
771
  }
771
772
 
772
773
  export const defaultWfConfig = {
@@ -780,6 +781,7 @@ export const defaultWfConfig = {
780
781
  }
781
782
 
782
783
  export const defaultTextFlagConfig = {
784
+ widgetTextFlag: null,
783
785
  textFlag: 1,
784
786
  showTextEnabled: false,
785
787
  showEncryptTextEnabled: false,
@@ -789,13 +791,112 @@ export const defaultTextFlagConfig = {
789
791
  textRule2: false,
790
792
  textRule2Number: null,
791
793
  textRule3: false,
792
- textRule3Number: null
794
+ textRule3Number: null,
795
+ widgetTextLinkConfig: null
793
796
  }
794
797
 
798
+ export const defaultWidgetShowRuleConfig = {
799
+ widgetShowRuleFlag: 1,
800
+ widgetShowRuleEnabled: false,
801
+ widgetShowRuleConfig: [],
802
+ }
803
+
804
+ const vabsearchConfig = {
805
+ name: "",
806
+ keyNameEnabled: !1,
807
+ keyName: "",
808
+ vabSearchName: "",
809
+ userDefaultVabSearch: false,
810
+ saleOrgDefaultVabSearch: false,
811
+ label: "",
812
+ submitFlag: true,
813
+ disabled: !1,
814
+ hidden: !1,
815
+ required: !1,
816
+ labelWidth: null,
817
+ labelHidden: !1,
818
+ readonly: true,
819
+ /*formCode: null,
820
+ formName: null,
821
+ formVersion: null,
822
+ showFormField: null,*/
823
+ /* gridConfig: {
824
+ tableColumns: [],
825
+ searchFields: [],
826
+ searchParams: ""
827
+ },*/
828
+ // vabSearchField: null,
829
+ vabsearchFlag: 1,
830
+ onSearchClear: "",
831
+ dialogModel: '1',
832
+ systemDialogUrl: null,
833
+ accessType: "1",
834
+ onCreated: "",
835
+ onMounted: "",
836
+ onChange: "",
837
+ onAppendButtonClick: "",
838
+ clickBindEvent: '1',
839
+ searchDialogConfig: {
840
+ ...defaultSearchDialogConfig,
841
+ multipleChoices: false
842
+ },
843
+ ...defaultWfConfig,
844
+ valueField: null,
845
+ multipleChoices: false,
846
+
847
+ showRuleFlag: 1,
848
+ showRuleEnabled: 1,
849
+ showRules: []
850
+ }
851
+
852
+ const projectTagConfig = {
853
+ name: "",
854
+ keyNameEnabled: !1,
855
+ keyName: "",
856
+ // keyNameSuffix: "",
857
+ label: "",
858
+ submitFlag: true,
859
+ disabled: !1,
860
+ readonly: false,
861
+ hidden: !1,
862
+ required: !1,
863
+ labelWidth: null,
864
+ labelHidden: !1,
865
+ onCreated: "if(this.dataId)this.loadDataDefaultHandle();",
866
+ onMounted: "",
867
+ onClick: "",
868
+ // vabUpload: 1,
869
+ formScriptEnabled: true,
870
+ formScriptCode: "getList",
871
+ formScriptParam: null,
872
+ formScriptSuccess: null,
873
+ ...defaultWfConfig,
874
+
875
+ showRuleFlag: 1,
876
+ showRuleEnabled: 1,
877
+ showRules: [],
878
+
879
+ tagFormCode: null,
880
+ tagFormParam: null,
881
+ tagLabelField: null,
882
+ tagUniqueField: null,
883
+ tagFormLabelField: null,
884
+ tagFormUniqueField: null,
885
+ tagFillConfig: [],
886
+ tagConfirmCallback: null,
887
+ tagDeleteCallback: null,
888
+ tabDeleteEnabled: true,
889
+
890
+ }
891
+
892
+ export const hiddenWidgetTypesOfWf = ["button"];
893
+ export const freeWidgetTypesOfWf = ["reset_button","a-link","a-text"];
894
+
795
895
  export const basicFields = [
796
896
  {
797
897
  type: "input",
798
898
  icon: "text-field",
899
+ commonFlag: !0,
799
900
  formItemFlag: !0,
800
901
  columnFlag: true,
801
902
  tableField: null,
@@ -858,6 +959,7 @@ export const basicFields = [
858
959
  {
859
960
  type: "input-batch",
860
961
  icon: "input-batch",
962
+ commonFlag: !0,
861
963
  formItemFlag: !0,
862
964
  columnFlag: true,
863
965
  tableField: null,
@@ -919,6 +1021,7 @@ export const basicFields = [
919
1021
  {
920
1022
  type: "textarea",
921
1023
  icon: "textarea-field",
1024
+ commonFlag: !0,
922
1025
  formItemFlag: !0,
923
1026
  columnFlag: true,
924
1027
  tableField: null,
@@ -971,6 +1074,7 @@ export const basicFields = [
971
1074
  {
972
1075
  type: "number",
973
1076
  icon: "number-field",
1077
+ commonFlag: !0,
974
1078
  formItemFlag: !0,
975
1079
  columnFlag: true,
976
1080
  tableField: null,
@@ -1026,6 +1130,7 @@ export const basicFields = [
1026
1130
  {
1027
1131
  type: "radio",
1028
1132
  icon: "radio-field",
1133
+ commonFlag: !0,
1029
1134
  formItemFlag: !0,
1030
1135
  columnFlag: true,
1031
1136
  tableField: null,
@@ -1095,6 +1200,7 @@ export const basicFields = [
1095
1200
  {
1096
1201
  type: "checkbox",
1097
1202
  icon: "checkbox-field",
1203
+ commonFlag: !0,
1098
1204
  formItemFlag: !0,
1099
1205
  columnFlag: true,
1100
1206
  tableField: null,
@@ -1165,6 +1271,7 @@ export const basicFields = [
1165
1271
  {
1166
1272
  type: "select",
1167
1273
  icon: "select-field",
1274
+ commonFlag: !0,
1168
1275
  formItemFlag: !0,
1169
1276
  columnFlag: true,
1170
1277
  tableField: null,
@@ -1235,6 +1342,8 @@ export const basicFields = [
1235
1342
  commonAttributeEnabled: false,
1236
1343
  commonAttributeCode: "",
1237
1344
 
1345
+ showCollapseTags:false,
1346
+
1238
1347
  showRuleFlag: 1,
1239
1348
  showRuleEnabled: 1,
1240
1349
  showRules: [],
@@ -1243,6 +1352,7 @@ export const basicFields = [
1243
1352
  {
1244
1353
  type: "time",
1245
1354
  icon: "time-field",
1355
+ commonFlag: !0,
1246
1356
  formItemFlag: !0,
1247
1357
  columnFlag: true,
1248
1358
  tableField: null,
@@ -1295,6 +1405,7 @@ export const basicFields = [
1295
1405
  {
1296
1406
  type: "time-range",
1297
1407
  icon: "time-range-field",
1408
+ commonFlag: !0,
1298
1409
  formItemFlag: !0,
1299
1410
  columnFlag: true,
1300
1411
  tableField: null,
@@ -1346,6 +1457,7 @@ export const basicFields = [
1346
1457
  {
1347
1458
  type: "date",
1348
1459
  icon: "date-field",
1460
+ commonFlag: !0,
1349
1461
  formItemFlag: !0,
1350
1462
  columnFlag: true,
1351
1463
  tableField: null,
@@ -1400,6 +1512,7 @@ export const basicFields = [
1400
1512
  {
1401
1513
  type: "date-range",
1402
1514
  icon: "date-range-field",
1515
+ commonFlag: !0,
1403
1516
  formItemFlag: !0,
1404
1517
  columnFlag: true,
1405
1518
  tableField: null,
@@ -1577,6 +1690,7 @@ export const basicFields = [
1577
1690
  {
1578
1691
  type: "static-text",
1579
1692
  icon: "static-text",
1693
+ commonFlag: !0,
1580
1694
  formItemFlag: !1,
1581
1695
  columnFlag: true,
1582
1696
  options: {
@@ -1602,6 +1716,7 @@ export const basicFields = [
1602
1716
  {
1603
1717
  type: "html-text",
1604
1718
  icon: "html-text",
1719
+ commonFlag: !0,
1605
1720
  formItemFlag: !1,
1606
1721
  columnFlag: true,
1607
1722
  options: {
@@ -1641,11 +1756,13 @@ export const basicFields = [
1641
1756
  {
1642
1757
  type: "button",
1643
1758
  icon: "button",
1759
+ commonFlag: !0,
1644
1760
  formItemFlag: !1,
1645
1761
  columnFlag: true,
1646
1762
  options: {
1647
1763
  name: "",
1648
1764
  label: "",
1765
+ wfHideFlag:1,
1649
1766
  columnWidth: "200px",
1650
1767
  size: "",
1651
1768
  displayStyle: "block",
@@ -1670,6 +1787,8 @@ export const basicFields = [
1670
1787
  tableData: {}
1671
1788
  },
1672
1789
  ...defaultWfConfig,
1790
+ hiddenByWf: true,
1791
+ ...defaultWidgetShowRuleConfig,
1673
1792
 
1674
1793
  showRuleFlag: 1,
1675
1794
  showRuleEnabled: 1,
@@ -1680,6 +1799,7 @@ export const basicFields = [
1680
1799
  {
1681
1800
  type: "divider",
1682
1801
  icon: "divider",
1802
+ commonFlag: !0,
1683
1803
  formItemFlag: !1,
1684
1804
  columnFlag: true,
1685
1805
  options: {
@@ -1752,6 +1872,7 @@ export const basicFields = [
1752
1872
  {
1753
1873
  type: "text",
1754
1874
  icon: "text",
1875
+ commonFlag: !0,
1755
1876
  formItemFlag: !0,
1756
1877
  columnFlag: true,
1757
1878
  tableField: null,
@@ -1788,6 +1909,7 @@ export const basicFields = [
1788
1909
  {
1789
1910
  type: "a-text",
1790
1911
  icon: "text-field",
1912
+ commonFlag: !0,
1791
1913
  formItemFlag: !0,
1792
1914
  columnFlag: true,
1793
1915
  tableField: null,
@@ -1824,6 +1946,7 @@ export const basicFields = [
1824
1946
  onClick: "",
1825
1947
  accessType: "1",
1826
1948
  ...defaultWfConfig,
1949
+ ...defaultWidgetShowRuleConfig,
1827
1950
 
1828
1951
  showRuleFlag: 1,
1829
1952
  showRuleEnabled: 1,
@@ -1835,6 +1958,7 @@ export const basicFields = [
1835
1958
  {
1836
1959
  type: "a-link",
1837
1960
  icon: "button",
1961
+ commonFlag: !0,
1838
1962
  formItemFlag: !1,
1839
1963
  columnFlag: true,
1840
1964
  options: {
@@ -1849,6 +1973,7 @@ export const basicFields = [
1849
1973
  prefixIcon: "",
1850
1974
  suffixIcon: "",
1851
1975
  customClass: "",
1976
+ wfHideFlag:1,
1852
1977
  aLinkFlag: 1,
1853
1978
  underline: false,
1854
1979
  href: "",
@@ -1866,6 +1991,7 @@ export const basicFields = [
1866
1991
  tableData: {}
1867
1992
  },
1868
1993
  ...defaultWfConfig,
1994
+ ...defaultWidgetShowRuleConfig,
1869
1995
 
1870
1996
  showRuleFlag: 1,
1871
1997
  showRuleEnabled: 1,
@@ -1874,6 +2000,32 @@ export const basicFields = [
1874
2000
  ...defaultTextFlagConfig
1875
2001
  }
1876
2002
  },
2003
+ {
2004
+ type: "a-link2",
2005
+ icon: "button",
2006
+ commonFlag: !1,
2007
+ formItemFlag: !1,
2008
+ columnFlag: false,
2009
+ options: {
2010
+ prefixIcon: "",
2011
+ suffixIcon: "",
2012
+ customClass: "",
2013
+ aLinkFlag: 1,
2014
+ underline: false,
2015
+ href: "",
2016
+ coloClass: "f-blue",
2017
+
2018
+ onClick: "",
2019
+ clickBindEvent: null,
2020
+ searchDialogConfig: {
2021
+ ...defaultSearchDialogConfig
2022
+ },
2023
+ addTableDataConfig: {
2024
+ tableRef: null,
2025
+ tableData: {}
2026
+ },
2027
+ }
2028
+ },
1877
2029
 
1878
2030
  ]
1879
2031
 
@@ -2508,6 +2660,7 @@ export const advancedFields = [
2508
2660
  showFileSize: false,
2509
2661
  showFileCreateBy: false,
2510
2662
  showFileCreateDate: false,
2663
+ widgetSize: 2
2511
2664
  }
2512
2665
  },
2513
2666
  {
@@ -2518,49 +2671,29 @@ export const advancedFields = [
2518
2671
  formItemFlag: !0,
2519
2672
  tableField: null,
2520
2673
  options: {
2521
- name: "",
2522
- keyNameEnabled: !1,
2523
- keyName: "",
2524
- vabSearchName: "",
2525
- label: "",
2526
- submitFlag: true,
2527
- disabled: !1,
2528
- hidden: !1,
2529
- required: !1,
2530
- labelWidth: null,
2531
- labelHidden: !1,
2532
- readonly: true,
2533
- /*formCode: null,
2534
- formName: null,
2535
- formVersion: null,
2536
- showFormField: null,*/
2537
- /* gridConfig: {
2538
- tableColumns: [],
2539
- searchFields: [],
2540
- searchParams: ""
2541
- },*/
2542
- // vabSearchField: null,
2543
- onSearchClear: "",
2544
- dialogModel: '1',
2545
- systemDialogUrl: null,
2546
- accessType: "1",
2547
- onCreated: "",
2548
- onMounted: "",
2549
- onChange: "",
2550
- onAppendButtonClick: "",
2551
- clickBindEvent: '1',
2552
- searchDialogConfig: {
2553
- ...defaultSearchDialogConfig,
2554
- multipleChoices: false
2555
- },
2556
- ...defaultWfConfig,
2557
- valueField: null,
2558
- multipleChoices: false,
2559
-
2560
- showRuleFlag: 1,
2561
- showRuleEnabled: 1,
2562
- showRules: []
2563
-
2674
+ ...vabsearchConfig
2675
+ }
2676
+ },
2677
+ {
2678
+ type: "singerSearch",
2679
+ icon: "searchbox",
2680
+ // commonFlag: !0,
2681
+ // columnFlag: true,
2682
+ formItemFlag: !0,
2683
+ tableField: null,
2684
+ options: {
2685
+ ...vabsearchConfig
2686
+ }
2687
+ },
2688
+ {
2689
+ type: "multiSearch",
2690
+ icon: "searchbox",
2691
+ // commonFlag: !0,
2692
+ // columnFlag: true,
2693
+ formItemFlag: !0,
2694
+ tableField: null,
2695
+ options: {
2696
+ ...vabsearchConfig
2564
2697
  }
2565
2698
  },
2566
2699
  {
@@ -2600,7 +2733,7 @@ export const advancedFields = [
2600
2733
  tableEnabled: true
2601
2734
  },
2602
2735
  ...defaultWfConfig,
2603
-
2736
+ ...defaultWidgetShowRuleConfig,
2604
2737
  showRuleFlag: 1,
2605
2738
  showRuleEnabled: 1,
2606
2739
  showRules: []
@@ -2638,6 +2771,8 @@ export const advancedFields = [
2638
2771
  ...defaultSearchDialogConfig
2639
2772
  },
2640
2773
  ...defaultWfConfig,
2774
+ ...defaultWidgetShowRuleConfig,
2775
+ hiddenByWf: true,
2641
2776
 
2642
2777
  showRuleFlag: 1,
2643
2778
  showRuleEnabled: 1,
@@ -2675,7 +2810,7 @@ export const advancedFields = [
2675
2810
  ...defaultSearchDialogConfig
2676
2811
  },
2677
2812
  ...defaultWfConfig,
2678
-
2813
+ ...defaultWidgetShowRuleConfig,
2679
2814
  showRuleFlag: 1,
2680
2815
  showRuleEnabled: 1,
2681
2816
  showRules: []
@@ -2702,7 +2837,7 @@ export const advancedFields = [
2702
2837
  onCreated: "",
2703
2838
  onMounted: "",
2704
2839
  ...defaultWfConfig,
2705
-
2840
+ ...defaultWidgetShowRuleConfig,
2706
2841
  showRuleFlag: 1,
2707
2842
  showRuleEnabled: 1,
2708
2843
  showRules: []
@@ -2738,51 +2873,13 @@ export const advancedFields = [
2738
2873
  ...defaultSearchDialogConfig
2739
2874
  },
2740
2875
  ...defaultWfConfig,
2741
-
2876
+ hiddenByWf: true,
2877
+ ...defaultWidgetShowRuleConfig,
2742
2878
  showRuleFlag: 1,
2743
2879
  showRuleEnabled: 1,
2744
2880
  showRules: []
2745
2881
  },
2746
2882
  },
2747
- {
2748
- type: "save_button",
2749
- targetType: "button",
2750
- icon: "button",
2751
- commonFlag: !0,
2752
- columnFlag: true,
2753
- formItemFlag: !1,
2754
- options: {
2755
- name: "",
2756
- label: "保存",
2757
- columnWidth: "200px",
2758
- size: "",
2759
- displayStyle: "block",
2760
- disabled: !1,
2761
- hidden: !1,
2762
- type: "primary",
2763
- plain: !1,
2764
- round: !1,
2765
- circle: !1,
2766
- icon: "el-icon-check",
2767
- customClass: "",
2768
- onCreated: "",
2769
- onMounted: "",
2770
- // onClick: "let formRef = this.getFormRef();\r\nformRef.validate(valid => {\r\n if (valid) {\r\n let formData = formRef.getRealFormData(); \r\n let reqData = {\r\n formCode:formCode,\r\n data:formData\r\n };\r\n this.formHttp({\r\n scriptCode: 'xx',\r\n data: reqData,\r\n successMsg:true,\r\n isConfirm: true,\r\n confirmText: \"您确定要保存吗?\",\r\n success: res => {\r\n formRef.reloadForm({\r\n updateParam: {\r\n _dataId: res.objx\r\n }\r\n });\r\n }\r\n });\r\n }\r\n});",
2771
- onClick: "this.saveDefaultHandle();",
2772
- accessType: "1",
2773
- saveButton: true,
2774
- clickBindEvent: null,
2775
- searchDialogConfig: {
2776
- ...defaultSearchDialogConfig
2777
- },
2778
- ...defaultWfConfig,
2779
-
2780
- showRuleFlag: 1,
2781
- showRuleEnabled: 1,
2782
- showRules: []
2783
-
2784
- },
2785
- },
2786
2883
  {
2787
2884
  type: "import-button",
2788
2885
  icon: "button",
@@ -2798,6 +2895,7 @@ export const advancedFields = [
2798
2895
  // displayStyle: "block",
2799
2896
  disabled: !1,
2800
2897
  hidden: !1,
2898
+ buttonTypeFlag: 1,
2801
2899
  type: "primary",
2802
2900
  /*plain: !1,
2803
2901
  round: !1,
@@ -2811,15 +2909,17 @@ export const advancedFields = [
2811
2909
  ...defaultSearchDialogConfig
2812
2910
  },
2813
2911
  ...defaultWfConfig,
2814
-
2912
+ hiddenByWf: true,
2913
+ ...defaultWidgetShowRuleConfig,
2815
2914
  importFileLimitSize: 200,
2816
2915
  importEntity: '',
2817
2916
  importAttachCode: '',
2917
+ importAttachName: '',
2818
2918
  importScriptCode: '',
2819
2919
  onBeforeImport: '',
2820
2920
  enabledImportPreHandle: false,
2821
- tableRef:'',
2822
- onSuccessImport:'',
2921
+ tableRef: '',
2922
+ onSuccessImport: '',
2823
2923
 
2824
2924
  showRuleFlag: 1,
2825
2925
  showRuleEnabled: 1,
@@ -2841,7 +2941,8 @@ export const advancedFields = [
2841
2941
  // displayStyle: "block",
2842
2942
  disabled: !1,
2843
2943
  hidden: !1,
2844
- type: "primary",
2944
+ buttonTypeFlag: 1,
2945
+ type: "",
2845
2946
  /*plain: !1,
2846
2947
  round: !1,
2847
2948
  circle: !1,
@@ -2854,14 +2955,16 @@ export const advancedFields = [
2854
2955
  ...defaultSearchDialogConfig
2855
2956
  },
2856
2957
  ...defaultWfConfig,
2857
-
2858
- frontImportFlag:1,
2958
+ hiddenByWf: true,
2959
+ ...defaultWidgetShowRuleConfig,
2960
+ frontImportFlag: 1,
2859
2961
  importFileLimitSize: 200,
2860
2962
  importAttachCode: '',
2861
- tableRef:'',
2862
- onConfirmImportEnabled:false,
2963
+ importAttachName: '',
2964
+ tableRef: '',
2965
+ onConfirmImportEnabled: false,
2863
2966
  onConfirmImport: '',
2864
- onSuccessImport:'',
2967
+ onSuccessImport: '',
2865
2968
 
2866
2969
  showRuleFlag: 1,
2867
2970
  showRuleEnabled: 1,
@@ -2895,6 +2998,7 @@ export const advancedFields = [
2895
2998
  ...defaultSearchDialogConfig
2896
2999
  },
2897
3000
  ...defaultWfConfig,
3001
+ ...defaultWidgetShowRuleConfig,
2898
3002
  printTableRef: "",
2899
3003
  printItems: [],
2900
3004
 
@@ -3014,6 +3118,7 @@ export const advancedFields = [
3014
3118
  showRules: []
3015
3119
  }
3016
3120
  },
3121
+
3017
3122
  {
3018
3123
  type: "project-tag",
3019
3124
  icon: "uploadbox",
@@ -3021,74 +3126,326 @@ export const advancedFields = [
3021
3126
  columnFlag: true,
3022
3127
  formItemFlag: !0,
3023
3128
  tableField: null,
3129
+ options: {
3130
+ ...projectTagConfig
3131
+ }
3132
+ },
3133
+ {
3134
+ type: "table2",
3135
+ category: "container",
3136
+ icon: "table",
3137
+ commonFlag: !0,
3138
+ formItemFlag: !0,
3139
+ rows: [],
3024
3140
  options: {
3025
3141
  name: "",
3026
- keyNameEnabled: !1,
3142
+ keyNameEnabled: !0,
3027
3143
  keyName: "",
3028
- // keyNameSuffix: "",
3029
- label: "",
3144
+ hidden: !1,
3145
+ customClass: "",
3146
+ styleTableClass: '',
3147
+ // fullWidth: false,
3030
3148
  submitFlag: true,
3149
+ formScriptEnabled: true,
3150
+ formScriptCode: "",
3151
+ formScriptParam: null,
3152
+ formScriptSuccess: null,
3153
+ onCreated: "this.loadDataDefaultHandle()",
3154
+ onMounted: "",
3155
+ ...defaultWfConfig,
3156
+ showRuleFlag: 1,
3157
+ showRuleEnabled: 1,
3158
+ showRules: []
3159
+ }
3160
+ },
3161
+ {
3162
+ type: "dropdown-menu",
3163
+ icon: "tab",
3164
+ // commonFlag: !0,
3165
+ // columnFlag: true,
3166
+ widgetList: [],
3167
+ options: {
3168
+ name: "",
3169
+ label: "",
3170
+ hidden: !1,
3171
+ disabled: !1,
3172
+ height: '',
3173
+ // isFullscreen: false,
3174
+ tabClass: 'tab-boxCard tabCard-sty1',
3175
+ customClass: "",
3176
+ dropdownMenuFlag: 1,
3177
+ ...defaultWfConfig,
3178
+ onCreated: "",
3179
+ onMounted: "",
3180
+ }
3181
+ },
3182
+ {
3183
+ type: "dropdown-item",
3184
+ icon: "tab-pane",
3185
+ internal: !0,
3186
+ options: {
3187
+ name: "",
3188
+ label: "",
3189
+ hidden: !1,
3190
+ active: !1,
3031
3191
  disabled: !1,
3032
- readonly: false,
3192
+ customClass: "",
3193
+ dropdownItemFlag: 1,
3194
+
3195
+ onClick: "",
3196
+ clickBindEvent: null,
3197
+ searchDialogConfig: {
3198
+ ...defaultSearchDialogConfig
3199
+ },
3200
+ addTableDataConfig: {
3201
+ tableRef: null,
3202
+ tableData: {}
3203
+ },
3204
+ }
3205
+ },
3206
+ ]
3207
+
3208
+
3209
+ export const businessFields = [
3210
+ {
3211
+ type: "create_by-text",
3212
+ targetType: "text",
3213
+ icon: "text",
3214
+ commonFlag: !0,
3215
+ formItemFlag: !0,
3216
+ columnFlag: true,
3217
+ tableField: null,
3218
+ options: {
3219
+ name: "",
3220
+ keyNameEnabled: !0,
3221
+ keyName: "_createBy",
3222
+ label: "创建人",
3223
+ submitFlag: true,
3224
+ formField: "",
3033
3225
  hidden: !1,
3034
3226
  required: !1,
3227
+ customClass: "",
3228
+ defaultValue: "",
3229
+ labelAlign: "",
3035
3230
  labelWidth: null,
3036
3231
  labelHidden: !1,
3037
- onCreated: "if(this.dataId)this.loadDataDefaultHandle();",
3232
+ onCreated: "",
3038
3233
  onMounted: "",
3039
- onClick: "",
3040
- // vabUpload: 1,
3041
- formScriptEnabled: true,
3042
- formScriptCode: "getList",
3043
- formScriptParam: null,
3044
- formScriptSuccess: null,
3234
+ accessType: "1",
3235
+ labelColor: '#555555',
3045
3236
  ...defaultWfConfig,
3046
3237
 
3238
+ autoValueEnabled: false,
3239
+ autoValueHanlde: null,
3240
+
3047
3241
  showRuleFlag: 1,
3048
3242
  showRuleEnabled: 1,
3049
3243
  showRules: [],
3050
3244
 
3051
- tagFormCode: null,
3052
- tagFormParam: null,
3053
- tagLabelField: null,
3054
- tagUniqueField: null,
3055
- tagFormLabelField: null,
3056
- tagFormUniqueField: null,
3057
- tagFillConfig: [],
3058
- tagConfirmCallback: null,
3059
- tagDeleteCallback: null,
3060
- tabDeleteEnabled: false,
3245
+ ...defaultTextFlagConfig
3246
+ }
3247
+ },
3248
+ {
3249
+ type: "modify_by-text",
3250
+ targetType: "text",
3251
+ icon: "text",
3252
+ commonFlag: !0,
3253
+ formItemFlag: !0,
3254
+ columnFlag: true,
3255
+ tableField: null,
3256
+ options: {
3257
+ name: "",
3258
+ keyNameEnabled: !0,
3259
+ keyName: "_modifyBy",
3260
+ label: "更新人",
3261
+ submitFlag: true,
3262
+ formField: "",
3263
+ hidden: !1,
3264
+ required: !1,
3265
+ customClass: "",
3266
+ defaultValue: "",
3267
+ labelAlign: "",
3268
+ labelWidth: null,
3269
+ labelHidden: !1,
3270
+ onCreated: "",
3271
+ onMounted: "",
3272
+ accessType: "1",
3273
+ labelColor: '#555555',
3274
+ ...defaultWfConfig,
3275
+
3276
+ autoValueEnabled: false,
3277
+ autoValueHanlde: null,
3278
+
3279
+ showRuleFlag: 1,
3280
+ showRuleEnabled: 1,
3281
+ showRules: [],
3061
3282
 
3283
+ ...defaultTextFlagConfig
3062
3284
  }
3063
3285
  },
3064
3286
  {
3065
- type: "table2",
3066
- category: "container",
3067
- icon: "table",
3287
+ type: "create_date-text",
3288
+ targetType: "text",
3289
+ icon: "text",
3068
3290
  commonFlag: !0,
3069
3291
  formItemFlag: !0,
3070
- rows: [],
3292
+ columnFlag: true,
3293
+ tableField: null,
3071
3294
  options: {
3072
3295
  name: "",
3073
3296
  keyNameEnabled: !0,
3074
- keyName: "",
3297
+ keyName: "create_date",
3298
+ label: "创建时间",
3299
+ submitFlag: true,
3300
+ formField: "",
3075
3301
  hidden: !1,
3302
+ required: !1,
3076
3303
  customClass: "",
3077
- styleTableClass: '',
3078
- // fullWidth: false,
3304
+ defaultValue: "",
3305
+ labelAlign: "",
3306
+ labelWidth: null,
3307
+ labelHidden: !1,
3308
+ onCreated: "",
3309
+ onMounted: "",
3310
+ accessType: "1",
3311
+ labelColor: '#555555',
3312
+ ...defaultWfConfig,
3313
+
3314
+ autoValueEnabled: false,
3315
+ autoValueHanlde: null,
3316
+
3317
+ showRuleFlag: 1,
3318
+ showRuleEnabled: 1,
3319
+ showRules: [],
3320
+
3321
+ ...defaultTextFlagConfig
3322
+ }
3323
+ },
3324
+ {
3325
+ type: "modify_date-text",
3326
+ targetType: "text",
3327
+ icon: "text",
3328
+ commonFlag: !0,
3329
+ formItemFlag: !0,
3330
+ columnFlag: true,
3331
+ tableField: null,
3332
+ options: {
3333
+ name: "",
3334
+ keyNameEnabled: !0,
3335
+ keyName: "modify_date",
3336
+ label: "更新时间",
3079
3337
  submitFlag: true,
3080
- formScriptEnabled: true,
3081
- formScriptCode: "",
3082
- formScriptParam: null,
3083
- formScriptSuccess: null,
3084
- onCreated: "this.loadDataDefaultHandle()",
3338
+ formField: "",
3339
+ hidden: !1,
3340
+ required: !1,
3341
+ customClass: "",
3342
+ defaultValue: "",
3343
+ labelAlign: "",
3344
+ labelWidth: null,
3345
+ labelHidden: !1,
3346
+ onCreated: "",
3085
3347
  onMounted: "",
3348
+ accessType: "1",
3349
+ labelColor: '#555555',
3086
3350
  ...defaultWfConfig,
3351
+
3352
+ autoValueEnabled: false,
3353
+ autoValueHanlde: null,
3354
+
3087
3355
  showRuleFlag: 1,
3088
3356
  showRuleEnabled: 1,
3089
- showRules: []
3357
+ showRules: [],
3358
+
3359
+ ...defaultTextFlagConfig
3360
+ }
3361
+ },
3362
+
3363
+ {
3364
+ type: "user-vabsearch",
3365
+ targetType: "singerSearch",
3366
+ icon: "searchbox",
3367
+ commonFlag: !0,
3368
+ columnFlag: true,
3369
+ formItemFlag: !0,
3370
+ tableField: null,
3371
+ options: {
3372
+ ...vabsearchConfig,
3373
+ vabSearchName: "nick_name",
3374
+ userDefaultVabSearch: true,
3375
+ label: "用户",
3376
+ searchDialogConfig: {
3377
+ ...defaultSearchDialogConfig,
3378
+ multipleChoices: false,
3379
+ formCode: "user_dialog",
3380
+ valueSourceField: "id",
3381
+ labelSourceField: "nick_name",
3382
+ },
3383
+ }
3384
+ },
3385
+ {
3386
+ type: "saleOrg-vabsearch",
3387
+ targetType: "singerSearch",
3388
+ icon: "searchbox",
3389
+ commonFlag: !0,
3390
+ columnFlag: true,
3391
+ formItemFlag: !0,
3392
+ tableField: null,
3393
+ options: {
3394
+ ...vabsearchConfig,
3395
+ vabSearchName: "sale_org_name",
3396
+ saleOrgDefaultVabSearch: true,
3397
+ label: "机构",
3398
+ searchDialogConfig: {
3399
+ ...defaultSearchDialogConfig,
3400
+ multipleChoices: false,
3401
+ formCode: "sale_org_dialog",
3402
+ valueSourceField: "id",
3403
+ labelSourceField: "name"
3404
+ },
3405
+ }
3406
+ },
3407
+
3408
+ {
3409
+ type: "user-project-tag",
3410
+ targetType: "project-tag",
3411
+ icon: "uploadbox",
3412
+ commonFlag: !0,
3413
+ columnFlag: true,
3414
+ formItemFlag: !0,
3415
+ tableField: null,
3416
+ options: {
3417
+ ...projectTagConfig,
3418
+ label: "用户",
3419
+ tagFormCode: "user_dialog",
3420
+ tagLabelField: "nick_name",
3421
+ tagUniqueField: "id",
3422
+ tagFormLabelField: "nick_name",
3423
+ tagFormUniqueField: "id",
3424
+ tabDeleteEnabled: true,
3090
3425
  }
3091
3426
  },
3427
+ {
3428
+ type: "saleOrg-project-tag",
3429
+ targetType: "project-tag",
3430
+ icon: "uploadbox",
3431
+ commonFlag: !0,
3432
+ columnFlag: true,
3433
+ formItemFlag: !0,
3434
+ tableField: null,
3435
+ options: {
3436
+ ...projectTagConfig,
3437
+ label: "机构",
3438
+ tagFormCode: "sale_org_dialog",
3439
+ tagLabelField: "name",
3440
+ tagUniqueField: "id",
3441
+ tagFormLabelField: "name",
3442
+ tagFormUniqueField: "id",
3443
+ tabDeleteEnabled: true,
3444
+
3445
+ }
3446
+ },
3447
+
3448
+
3092
3449
  ]
3093
3450
 
3094
3451
  export const keyNamePrefixMap = {