@utogether/udp-core 2.0.0-beta.26 → 2.0.0-beta.27

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 (161) hide show
  1. package/dist/403-gdcH0-Bo.js +65 -0
  2. package/dist/404-Se2SF97M.js +65 -0
  3. package/dist/500-B6j9AqLo.js +67 -0
  4. package/dist/AuthorityInfo-CQ8ydZvr.js +4 -0
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js +100 -0
  6. package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
  7. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
  8. package/dist/Company-BzSVBSC4.js +25 -0
  9. package/dist/CompanyPanel-DBjZB4aJ.js +204 -0
  10. package/dist/DataSet-iBHzs75s.js +147 -0
  11. package/dist/Department-BkgseHo8.js +25 -0
  12. package/dist/DepartmentPanel-Sen93_2M.js +249 -0
  13. package/dist/DesignPanel-pqDcwaFC.js +4 -0
  14. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js +1013 -0
  15. package/dist/DictView-CJLG4LlE.js +110 -0
  16. package/dist/InvOrganization-D0Jq1IAa.js +74 -0
  17. package/dist/Org-CO_1WT39.js +39 -0
  18. package/dist/Preview-DLI4Bwel.js +48 -0
  19. package/dist/ReportDefine-Cw46OnJ_.js +10 -0
  20. package/dist/ReportDesign-D4sHTXT7.js +165 -0
  21. package/dist/ReportQuery-DtOCvQSN.js +74 -0
  22. package/dist/ReportQueryFrom-QjL-ETPq.js +4 -0
  23. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js +177 -0
  24. package/dist/ReportTemplate-BxAgc_Aj.js +161 -0
  25. package/dist/Role-Df77BBD-.js +25 -0
  26. package/dist/RoleAssign-BrunouML.js +26 -0
  27. package/dist/RolePanel-DSVwqhiD.js +4 -0
  28. package/dist/RolePanel-HLA7XBlN.js +4 -0
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js +132 -0
  30. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js +152 -0
  31. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js +99 -0
  32. package/dist/Staff-BeL1xcRf.js +26 -0
  33. package/dist/StaffInfo-CIfnltyX.js +4 -0
  34. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js +107 -0
  35. package/dist/StaffPanel-BV2CHWac.js +4 -0
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js +153 -0
  37. package/dist/SysUser-DPfNvthk.js +15 -0
  38. package/dist/SysUserPanel-CoLKYlQE.js +4 -0
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js +353 -0
  40. package/dist/SystemMenu-sdj1dRDA.js +156 -0
  41. package/dist/UserInfo-CTX4hhFl.js +4 -0
  42. package/dist/UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js +160 -0
  43. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  44. package/dist/childView-BDmWwJO5.js +4 -0
  45. package/dist/childView-Dx3ACtHa.js +4 -0
  46. package/dist/childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js +183 -0
  47. package/dist/childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js +143 -0
  48. package/dist/code-rule-cvN4gYC_.js +148 -0
  49. package/dist/core.es.js +24 -6
  50. package/dist/cron-task-B0TkxFdp.js +135 -0
  51. package/dist/flow-task-PoDnE_kE.js +10 -0
  52. package/dist/frameView-5cy5BSgS.js +43 -0
  53. package/dist/img/minicolors.png +0 -0
  54. package/dist/index-C5WRTwvI.js +3006 -0
  55. package/dist/layout-home-DrARg-3o.js +232 -0
  56. package/dist/layoutView-25v_ngk5.js +3191 -0
  57. package/dist/log-in-Bmz5Uhbt.js +116 -0
  58. package/dist/log-out-B-8m3oNj.js +130 -0
  59. package/dist/login-Cmp2RvvW.js +217 -0
  60. package/dist/login-log-CVvRgZSu.js +70 -0
  61. package/dist/lov-view-BATtzw2X.js +99 -0
  62. package/dist/menuInfo-BIvrE7nm.js +4 -0
  63. package/dist/menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js +360 -0
  64. package/dist/pda-app-CzHVyeEa.js +707 -0
  65. package/dist/redirect-DTz8GSnv.js +15 -0
  66. package/dist/resource-Y5lGB38n.js +97 -0
  67. package/dist/su-welcome-CXA6OzBw.js +878 -0
  68. package/dist/sys-config-CqO03LeC.js +385 -0
  69. package/dist/udp-core.css +1 -2
  70. package/dist/useNav-C-rCgubt.js +84 -0
  71. package/dist/utogether-MlnyYtNS.js +4 -0
  72. package/dist/wecom-push-B75FLee5.js +70 -0
  73. package/index.ts +3 -2
  74. package/package.json +1 -1
  75. package/src/App.vue +79 -78
  76. package/src/api/index.ts +1 -1
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/layout/components/lay-panel/index.vue +2 -6
  79. package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
  80. package/src/main.ts +25 -23
  81. package/src/router/index.ts +156 -187
  82. package/src/store/modules/system.ts +7 -0
  83. package/src/style/vxetable.scss +372 -364
  84. package/src/utils/authority/index.ts +46 -29
  85. package/src/utils/udp/http/index.ts +115 -64
  86. package/src/utils/udp/http/types.d.ts +15 -14
  87. package/src/views/login/login-view.vue +4 -21
  88. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  89. package/src/views/system/sys/sys-config.vue +344 -344
  90. package/src/views/uhome/components/home-todo.vue +179 -178
  91. package/src/views/ulogin/login.vue +5 -9
  92. package/tsconfig.json +2 -3
  93. package/types/global.d.ts +234 -234
  94. package/vite.config.ts +2 -1
  95. package/dist/403-D6Wb3JJh.js +0 -72
  96. package/dist/404-B_HNbPNV.js +0 -72
  97. package/dist/500-BMemTTy1.js +0 -77
  98. package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
  99. package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
  100. package/dist/Company-BLXSfow0.js +0 -21
  101. package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
  102. package/dist/DataSet-CuGZcKC-.js +0 -141
  103. package/dist/Department-oFhsa7cd.js +0 -21
  104. package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
  105. package/dist/DepartmentPanel-BL58AdoT.js +0 -2
  106. package/dist/DesignPanel-DmkFVw1N.js +0 -1196
  107. package/dist/DictView-CC5yMzOq.js +0 -100
  108. package/dist/File-WJXjGYxr.js +0 -89
  109. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  110. package/dist/Org-HgnOWubi.js +0 -76
  111. package/dist/Preview-CAzWxLmP.js +0 -45
  112. package/dist/ReIcon-DecitXmg.js +0 -413
  113. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  114. package/dist/ReportDesign-DwchGG2P.js +0 -158
  115. package/dist/ReportQuery-D5jaRJEn.js +0 -101
  116. package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
  117. package/dist/ReportTemplate-CNcTmccs.js +0 -162
  118. package/dist/Role-Be8WfdCA.js +0 -21
  119. package/dist/RoleAssign-CtehGAUf.js +0 -22
  120. package/dist/RolePanel-CAwITg_q.js +0 -131
  121. package/dist/RolePanel-SN0FGFZ7.js +0 -176
  122. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  123. package/dist/Staff-V2YsNKcj.js +0 -22
  124. package/dist/StaffInfo-CKRPW0r4.js +0 -149
  125. package/dist/StaffPanel-BxcgMg7u.js +0 -143
  126. package/dist/SysUser-Dxyj5w5m.js +0 -12
  127. package/dist/SysUserPanel-DI6CWcZo.js +0 -365
  128. package/dist/SystemMenu-BBHREM8T.js +0 -154
  129. package/dist/UserInfo-BMVQ0xwE.js +0 -194
  130. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  131. package/dist/api-BFNxcxSN.js +0 -30
  132. package/dist/authority-BJFEUdrh.js +0 -20
  133. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  134. package/dist/childView-BBjPEraB.js +0 -184
  135. package/dist/childView-DNqG2UVm.js +0 -181
  136. package/dist/code-rule-QFrhqFrW.js +0 -151
  137. package/dist/contant-Q77dU_V3.js +0 -4
  138. package/dist/cron-task-BpUDKEAU.js +0 -131
  139. package/dist/flow-task-DAc2NrDU.js +0 -11
  140. package/dist/frameView-Di0zJZUR.js +0 -39
  141. package/dist/layout-home-BVp7vYLR.js +0 -239
  142. package/dist/layoutView-B6Mx2ERA.js +0 -2662
  143. package/dist/log-in-BrNB0mLz.js +0 -117
  144. package/dist/log-out-dYfqvzy6.js +0 -111
  145. package/dist/login-D_Hjy3Jd.js +0 -231
  146. package/dist/login-log-CJak-ANA.js +0 -79
  147. package/dist/lov-view-DM5Nm5tW.js +0 -95
  148. package/dist/menuInfo-BlOY1KZW.js +0 -346
  149. package/dist/mitt-CQgI7DYU.js +0 -27
  150. package/dist/pda-app-CA7YI37u.js +0 -589
  151. package/dist/redirect-N0k4tImU.js +0 -16
  152. package/dist/resource-CfQTHFcs.js +0 -94
  153. package/dist/su-welcome-DVD3S_du.js +0 -799
  154. package/dist/sys-config-Ddb3vBpK.js +0 -316
  155. package/dist/system-Cm3lyBas.js +0 -1528
  156. package/dist/udp-core-DaQd5CF1.js +0 -2028
  157. package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
  158. package/dist/useNav-BhOJIdrJ.js +0 -106
  159. package/dist/utogether-l7JXs4Lv.js +0 -4
  160. package/dist/water-mark-WDQZ9YqB.js +0 -119
  161. package/dist/wecom-push-kWkAVRCj.js +0 -77
@@ -0,0 +1,110 @@
1
+ import { defineComponent as _, ref as i, createVNode as c, resolveComponent as l, nextTick as v, openBlock as s, createElementBlock as g, createBlock as C, createCommentVNode as D } from "vue";
2
+ import { _ as T } from "./childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js";
3
+ import { useRender as k } from "@utogether/utils";
4
+ const E = {
5
+ name: "DictView"
6
+ }, w = /* @__PURE__ */ _({
7
+ ...E,
8
+ setup(y) {
9
+ const n = i(null), u = [{
10
+ field: "dictCode",
11
+ title: "message.udp.dictCode"
12
+ }, {
13
+ field: "dictName",
14
+ title: "message.udp.dictName"
15
+ }, {
16
+ field: "dictType",
17
+ title: "message.udp.dictType",
18
+ code: "SU.DICT.TYPE"
19
+ }], t = k(), o = [
20
+ {
21
+ type: "checkbox",
22
+ width: 40,
23
+ align: "center"
24
+ },
25
+ {
26
+ field: "dictCode",
27
+ title: "message.udp.dictCode",
28
+ required: !0,
29
+ editRender: t.renderInput()
30
+ },
31
+ {
32
+ field: "dictName",
33
+ title: "message.udp.dictName",
34
+ required: !0,
35
+ editRender: t.renderInput()
36
+ },
37
+ // {
38
+ // field: 'userName',
39
+ // width: 300,
40
+ // editRender: renderHook.renderUpload()
41
+ // },
42
+ {
43
+ field: "dictType",
44
+ title: "message.udp.dictType",
45
+ required: !0,
46
+ editRender: t.renderDict("SU.DICT.TYPE"),
47
+ formatter: ["formatDict", "SU.DICT.TYPE"]
48
+ },
49
+ {
50
+ field: "dictDesc",
51
+ title: "message.udp.dictDesc",
52
+ editRender: t.renderInput()
53
+ },
54
+ {
55
+ field: "enabled",
56
+ width: 110,
57
+ editRender: t.renderDict({
58
+ code: "SU.ENABLE",
59
+ defaultValue: "1"
60
+ }),
61
+ formatter: ["formatDict", "SU.ENABLE"]
62
+ },
63
+ {
64
+ field: "operate",
65
+ width: 80,
66
+ slots: {
67
+ default: ({
68
+ row: e
69
+ }) => e.id ? [c(l("ut-button"), {
70
+ content: "lov",
71
+ icon: "ri-dice-6-line",
72
+ onClick: () => a(e)
73
+ }, null)] : null
74
+ }
75
+ }
76
+ ], d = i(!1), r = i(null), a = (e) => {
77
+ v(() => {
78
+ d.value = !0, r.value = e, r.value.total = e.children?.length;
79
+ });
80
+ }, m = () => {
81
+ n.value.refreshData(), d.value = !1;
82
+ }, f = {
83
+ editActived({
84
+ row: e
85
+ }) {
86
+ o[1].editRender.props.disabled = !!e.id;
87
+ }
88
+ }, p = (e) => e.dictType !== "0";
89
+ return (e, N) => {
90
+ const h = l("ut-grid");
91
+ return s(), g("div", null, [c(h, {
92
+ ref_key: "xgrid",
93
+ ref: n,
94
+ items: u,
95
+ columns: o,
96
+ "check-method": p,
97
+ events: f,
98
+ url: "/upfm/v1/lov"
99
+ }, null, 512), d.value ? (s(), C(T, {
100
+ key: 0,
101
+ show: d.value,
102
+ record: r.value,
103
+ onOnClose: m
104
+ }, null, 8, ["show", "record"])) : D("", !0)]);
105
+ };
106
+ }
107
+ });
108
+ export {
109
+ w as default
110
+ };
@@ -0,0 +1,74 @@
1
+ import { defineComponent as u, ref as m, reactive as c, resolveComponent as g, openBlock as p, createBlock as f } from "vue";
2
+ import { t as _ } from "./await-to-js.es5-Bv3Eu4mi.js";
3
+ import { useRender as z } from "@utogether/utils";
4
+ import { n as h } from "./index-C5WRTwvI.js";
5
+ const C = {
6
+ name: "InvOrganization"
7
+ }, x = /* @__PURE__ */ u({
8
+ ...C,
9
+ setup(k) {
10
+ const t = "/uums/cusOrganization", n = m(null), e = z(), i = [{
11
+ field: "organizationCode",
12
+ title: "message.udp.organizationCode"
13
+ }, {
14
+ field: "organizationName",
15
+ title: "message.udp.organizationName"
16
+ }], a = [{
17
+ type: "checkbox",
18
+ width: 40,
19
+ align: "center"
20
+ }, {
21
+ field: "organizationCode",
22
+ width: 120,
23
+ title: "message.udp.organizationCode",
24
+ required: !0,
25
+ editRender: e.renderInput()
26
+ }, {
27
+ field: "organizationName",
28
+ minWidth: 120,
29
+ title: "message.udp.organizationName",
30
+ required: !0,
31
+ editRender: e.renderInput()
32
+ }, {
33
+ field: "orgName",
34
+ minWidth: 170,
35
+ title: "message.udp.orgName",
36
+ required: !0,
37
+ editRender: e.renderBU()
38
+ }, {
39
+ field: "orgCode",
40
+ width: 110,
41
+ title: "message.udp.orgCode"
42
+ }, {
43
+ field: "enabled",
44
+ width: 80,
45
+ cellRender: e.renderEnabled(d)
46
+ }];
47
+ async function d({
48
+ row: r
49
+ }) {
50
+ const [o] = await _(h().put(t, [r]));
51
+ !o && n.value.refreshData();
52
+ }
53
+ const s = c({
54
+ columns: a
55
+ });
56
+ return (r, o) => {
57
+ const l = g("ut-grid");
58
+ return p(), f(l, {
59
+ ref_key: "xgrid",
60
+ ref: n,
61
+ items: i,
62
+ "default-params": {
63
+ organizationId: "",
64
+ orgId: ""
65
+ },
66
+ columns: s.columns,
67
+ url: t
68
+ }, null, 8, ["columns"]);
69
+ };
70
+ }
71
+ });
72
+ export {
73
+ x as default
74
+ };
@@ -0,0 +1,39 @@
1
+ import { defineComponent as a, ref as m, resolveComponent as u, openBlock as c, createBlock as g } from "vue";
2
+ import { t as p } from "./await-to-js.es5-Bv3Eu4mi.js";
3
+ import { clone as f } from "xe-utils";
4
+ import { useRender as _ } from "@utogether/utils";
5
+ import { n as h } from "./index-C5WRTwvI.js";
6
+ const C = { name: "OrgUnit" }, N = /* @__PURE__ */ a({
7
+ ...C,
8
+ setup(k) {
9
+ const t = "/uums/org", r = m(null), i = _(), d = [
10
+ { field: "orgCode", title: "message.udp.orgCode" },
11
+ { field: "orgName", title: "message.udp.orgName" },
12
+ { field: "orgAlias", title: "message.udp.orgAlias" }
13
+ ], s = [
14
+ { type: "checkbox", width: 50, align: "center" },
15
+ { field: "orgCode", title: "message.udp.orgCode", required: !0, editRender: { name: "$input" } },
16
+ { field: "orgName", title: "message.udp.orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
17
+ { field: "orgAlias", title: "message.udp.orgAlias", editRender: { name: "$input" } },
18
+ { field: "orgDesc", title: "message.udp.orgDesc", editRender: { name: "$input" } },
19
+ { field: "enabled", width: 80, cellRender: i.renderEnabled(l) }
20
+ ];
21
+ async function l({ row: o }) {
22
+ const n = f(o, !0), [e] = await p(h().put(t, [n]));
23
+ !e && r.value.refreshData();
24
+ }
25
+ return (o, n) => {
26
+ const e = u("ut-grid");
27
+ return c(), g(e, {
28
+ ref_key: "xgrid",
29
+ ref: r,
30
+ items: d,
31
+ columns: s,
32
+ url: t
33
+ }, null, 512);
34
+ };
35
+ }
36
+ });
37
+ export {
38
+ N as default
39
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent as w, ref as o, resolveComponent as u, openBlock as h, createElementBlock as x, createVNode as c, withCtx as p, createElementVNode as g, nextTick as V } from "vue";
2
+ import { _ as k } from "./index-C5WRTwvI.js";
3
+ const P = { class: "ut-preview-contain" }, C = /* @__PURE__ */ w({
4
+ __name: "Preview",
5
+ setup(T, { expose: d }) {
6
+ const n = o(!1), l = o(!1), r = o(null), s = o(null), i = o(220), v = (t, e) => {
7
+ l.value = !0, r.value = t, s.value = e, V(() => {
8
+ $("#preview_content").html(t.getHtml(e)), l.value = !1;
9
+ });
10
+ }, m = () => {
11
+ r.value.print(s.value, {});
12
+ };
13
+ return d({
14
+ show: (t, e, a = 220) => {
15
+ n.value = !0, i.value = a, v(t, e);
16
+ }
17
+ }), (t, e) => {
18
+ const a = u("ut-button"), _ = u("vxe-modal");
19
+ return h(), x("div", P, [
20
+ c(_, {
21
+ modelValue: n.value,
22
+ "onUpdate:modelValue": e[0] || (e[0] = (f) => n.value = f),
23
+ loading: l.value,
24
+ width: i.value + "mm",
25
+ "min-height": "480",
26
+ "lock-scroll": !1,
27
+ "show-footer": !1
28
+ }, {
29
+ title: p(() => [
30
+ c(a, {
31
+ status: "u-cyan",
32
+ icon: "ri-printer-line",
33
+ content: "print",
34
+ onTap: m
35
+ })
36
+ ]),
37
+ default: p(() => [...e[1] || (e[1] = [
38
+ g("div", { id: "preview_content" }, null, -1)
39
+ ])]),
40
+ _: 1
41
+ }, 8, ["modelValue", "loading", "width"])
42
+ ]);
43
+ };
44
+ }
45
+ }), N = /* @__PURE__ */ k(C, [["__scopeId", "data-v-e51c0962"]]);
46
+ export {
47
+ N as default
48
+ };
@@ -0,0 +1,10 @@
1
+ import { openBlock as e, createElementBlock as r } from "vue";
2
+ import { _ as o } from "./index-C5WRTwvI.js";
3
+ const t = {};
4
+ function c(n, _) {
5
+ return e(), r("div");
6
+ }
7
+ const a = /* @__PURE__ */ o(t, [["render", c]]);
8
+ export {
9
+ a as default
10
+ };
@@ -0,0 +1,165 @@
1
+ import { defineComponent as A, ref as s, createVNode as n, Fragment as I, resolveComponent as o, nextTick as b, openBlock as u, createElementBlock as q, withDirectives as x, vShow as E, createBlock as m, createCommentVNode as c } from "vue";
2
+ import { useRender as S, successMessage as $ } from "@utogether/utils";
3
+ import { useClipboard as V } from "@vueuse/core";
4
+ import { t as B } from "./await-to-js.es5-Bv3Eu4mi.js";
5
+ import { _ as M } from "./DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js";
6
+ import { n as U } from "./index-C5WRTwvI.js";
7
+ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
8
+ name: "ReportDesign",
9
+ __name: "ReportDesign",
10
+ setup(F) {
11
+ const a = s(null), l = s(!1), i = s(!1), r = S(), t = s({}), {
12
+ copy: v
13
+ } = V(), g = U(), h = [{
14
+ field: "templateCode",
15
+ title: "message.urpt.templateCode"
16
+ }, {
17
+ field: "templateName",
18
+ title: "message.urpt.templateName"
19
+ }], d = [
20
+ {
21
+ type: "checkbox",
22
+ width: 50,
23
+ align: "center"
24
+ },
25
+ {
26
+ field: "templateCode",
27
+ title: "message.urpt.templateCode",
28
+ required: !0,
29
+ width: 150,
30
+ editRender: r.renderInput()
31
+ },
32
+ {
33
+ field: "templateName",
34
+ title: "message.urpt.templateName",
35
+ required: !0,
36
+ width: 240,
37
+ editRender: r.renderInput()
38
+ },
39
+ {
40
+ field: "paperType",
41
+ title: "message.urpt.paperType",
42
+ width: 120,
43
+ required: !0,
44
+ editRender: r.renderDict({
45
+ code: "SU.PRINT.PAPER",
46
+ defaultValue: "A4"
47
+ }),
48
+ formatter: ["formatDict", "SU.PRINT.PAPER"]
49
+ },
50
+ // { field: 'createdByName', width: 120 },
51
+ {
52
+ field: "remarks",
53
+ title: "message.remark",
54
+ minWidth: 120,
55
+ editRender: r.renderInput()
56
+ },
57
+ // { field: 'enabled', width: 55, formatter: ['formatDict', 'SU.ENABLE'] },
58
+ {
59
+ field: "operate",
60
+ width: 200,
61
+ slots: {
62
+ default: ({
63
+ row: e
64
+ }) => e.id ? n(I, null, [n(o("ut-button"), {
65
+ content: "design",
66
+ icon: "ri-quill-pen-line",
67
+ onTap: () => k(e)
68
+ }, null), n(o("ut-button"), {
69
+ content: "copy",
70
+ status: "warning",
71
+ icon: "ri-file-copy-2-fill",
72
+ onTap: () => R(e)
73
+ }, null), n(o("ut-button"), {
74
+ content: "export",
75
+ status: "u-cyan",
76
+ icon: "ri-folder-download-fill",
77
+ onTap: () => y(e)
78
+ }, null)]) : null
79
+ }
80
+ }
81
+ ], C = [{
82
+ field: "templateCode",
83
+ title: "message.urpt.templateCode",
84
+ required: !0,
85
+ itemRender: {
86
+ name: "$input"
87
+ },
88
+ span: 24
89
+ }, {
90
+ field: "templateName",
91
+ title: "message.urpt.templateName",
92
+ required: !0,
93
+ itemRender: {
94
+ name: "$input"
95
+ },
96
+ span: 24
97
+ }, {
98
+ field: "paperType",
99
+ title: "message.urpt.paperType",
100
+ width: 100,
101
+ required: !0,
102
+ itemRender: r.renderDict({
103
+ code: "SU.PRINT.PAPER",
104
+ defaultValue: "A4"
105
+ })
106
+ }, {
107
+ field: "remarks",
108
+ title: "message.remark",
109
+ itemRender: {
110
+ name: "$input"
111
+ },
112
+ span: 24
113
+ }], R = (e) => {
114
+ t.value.templateContent = e.templateContent, t.value.paperType = e.paperType, i.value = !0;
115
+ }, y = (e) => {
116
+ v(e.templateContent), $("复制成功,快试试右键粘贴吧");
117
+ }, _ = async () => {
118
+ const [e] = await B(g.post(f, [t.value]));
119
+ !e && a.value.refreshData(), i.value = !1;
120
+ }, k = (e) => {
121
+ t.value = e, b(() => {
122
+ l.value = !0;
123
+ });
124
+ }, T = {
125
+ editActived({
126
+ row: e
127
+ }) {
128
+ d[1].editRender.props.disabled = !!e.id, a.value.getInstance().refreshColumn();
129
+ }
130
+ }, N = ({
131
+ row: e
132
+ }) => e?.enabled !== "1", w = () => {
133
+ t.value = {}, l.value = !1, a.value.refreshData();
134
+ };
135
+ return (e, p) => {
136
+ const D = o("ut-grid"), P = o("ut-modal-form");
137
+ return u(), q("div", null, [x(n(D, {
138
+ ref_key: "xgrid",
139
+ ref: a,
140
+ items: h,
141
+ columns: d,
142
+ "check-method": N,
143
+ url: f,
144
+ events: T
145
+ }, null, 512), [[E, !l.value]]), l.value ? (u(), m(M, {
146
+ key: 0,
147
+ record: t.value,
148
+ onOnClose: w
149
+ }, null, 8, ["record"])) : c("", !0), i.value ? (u(), m(P, {
150
+ key: 1,
151
+ record: t.value,
152
+ items: C,
153
+ width: "40%",
154
+ height: 290,
155
+ "data-status": "update",
156
+ title: "复制模板",
157
+ onConfirm: _,
158
+ onClose: p[0] || (p[0] = (G) => i.value = !1)
159
+ }, null, 8, ["record"])) : c("", !0)]);
160
+ };
161
+ }
162
+ });
163
+ export {
164
+ K as default
165
+ };
@@ -0,0 +1,74 @@
1
+ import { defineComponent as s, reactive as m, watch as c, ref as f, onMounted as u, resolveComponent as p, openBlock as o, createElementBlock as h, withDirectives as _, createVNode as w, vShow as x, createBlock as D, createCommentVNode as R } from "vue";
2
+ import { useRoute as C } from "vue-router";
3
+ import { _ as S } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js";
4
+ import { useRender as g } from "@utogether/utils";
5
+ const N = { name: "ReportQuery" }, O = /* @__PURE__ */ s({
6
+ ...N,
7
+ setup(T) {
8
+ const e = m({
9
+ record: {},
10
+ showChild: !1,
11
+ loading: !1,
12
+ dataStatus: ""
13
+ }), t = C(), r = g();
14
+ c(
15
+ () => t.path,
16
+ () => {
17
+ }
18
+ );
19
+ const a = [
20
+ { field: "templateName" },
21
+ { field: "createdByName" },
22
+ { field: "exportResult", itemRender: r.renderDict("SU.REPORT.EXPORT_STATUS") },
23
+ {
24
+ field: "exportDate",
25
+ itemRender: { name: "#SuDateRange" },
26
+ fromField: "exportDateFrom",
27
+ toField: "exportDateTo"
28
+ },
29
+ {
30
+ field: "creationDate",
31
+ itemRender: { name: "#SuDateRange" },
32
+ fromField: "createDateFrom",
33
+ toField: "createDateTo"
34
+ }
35
+ ], d = [
36
+ { field: "exportNo", title: "message.reportCode", width: 100 },
37
+ { field: "templateName", width: 150 },
38
+ { field: "fileName", width: 150 },
39
+ { field: "exportStatus", width: 90 },
40
+ { field: "exportResult", width: 70 },
41
+ { field: "fileType", width: 80 },
42
+ { field: "exportMsg", minWidth: 100 },
43
+ { field: "createdByName", width: 100 },
44
+ { field: "exportDate", width: 100 },
45
+ { field: "creationDate", width: 100, formatter: ["formatDate"] }
46
+ ], i = f(null), l = () => {
47
+ e.showChild = !1;
48
+ };
49
+ return u(() => {
50
+ t?.params?.isJump && (e.dataStatus = "add", e.showChild = !0);
51
+ }), (k, y) => {
52
+ const n = p("ut-grid");
53
+ return o(), h("div", null, [
54
+ _(w(n, {
55
+ ref_key: "xgrid",
56
+ ref: i,
57
+ tems: a,
58
+ columns: d
59
+ }, null, 512), [
60
+ [x, !e.showChild]
61
+ ]),
62
+ e.showChild ? (o(), D(S, {
63
+ key: 0,
64
+ record: e.record,
65
+ "data-status": e.dataStatus,
66
+ onOnClose: l
67
+ }, null, 8, ["record", "data-status"])) : R("", !0)
68
+ ]);
69
+ };
70
+ }
71
+ });
72
+ export {
73
+ O as default
74
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js";
2
+ export {
3
+ f as default
4
+ };