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

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 (183) hide show
  1. package/dist/403-CyoOD-Ik.js +65 -0
  2. package/dist/404-Ch_OHTw0.js +65 -0
  3. package/dist/500-Cf9am7HK.js +67 -0
  4. package/dist/AuthorityInfo-BJ427cqG.js +4 -0
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js +99 -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-qo-lKPkv.js +25 -0
  9. package/dist/CompanyPanel-DkKWAKvY.js +204 -0
  10. package/dist/DataSet-iBHzs75s.js +147 -0
  11. package/dist/Department-CHUQByKX.js +25 -0
  12. package/dist/DepartmentPanel-C742dfOO.js +248 -0
  13. package/dist/DesignPanel-D9oE5R7m.js +4 -0
  14. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js +1097 -0
  15. package/dist/DictView-CrFXprP9.js +110 -0
  16. package/dist/InvOrganization-Cz8SzIgs.js +73 -0
  17. package/dist/Org-Bzt6yKox.js +38 -0
  18. package/dist/Preview-jonigfMQ.js +48 -0
  19. package/dist/ReportDefine-BpiM5Ovq.js +10 -0
  20. package/dist/ReportDesign-fp09cXJ7.js +164 -0
  21. package/dist/ReportQuery-52ZP1PYP.js +74 -0
  22. package/dist/ReportQueryFrom-DSYavJb1.js +4 -0
  23. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js +177 -0
  24. package/dist/ReportTemplate-CA_UW0eD.js +161 -0
  25. package/dist/Role-DqOt8Bk0.js +25 -0
  26. package/dist/RoleAssign-BdxhefhQ.js +26 -0
  27. package/dist/RolePanel-2gZ3H0ET.js +4 -0
  28. package/dist/RolePanel-BsNd0svJ.js +4 -0
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js +152 -0
  30. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js +131 -0
  31. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js +99 -0
  32. package/dist/Staff-D3L8fEoY.js +26 -0
  33. package/dist/StaffInfo-DYRw6ZYJ.js +4 -0
  34. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js +107 -0
  35. package/dist/StaffPanel-DkrNH6Px.js +4 -0
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js +152 -0
  37. package/dist/SysUser-Bl1-cIpJ.js +15 -0
  38. package/dist/SysUserPanel-yxNLaBwt.js +4 -0
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js +352 -0
  40. package/dist/SystemMenu-C4_Arn12.js +155 -0
  41. package/dist/UserInfo-QcNwJCUR.js +4 -0
  42. package/dist/UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js +159 -0
  43. package/dist/childView-B23DEO2u.js +4 -0
  44. package/dist/childView-saDZQv9x.js +4 -0
  45. package/dist/childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js +182 -0
  46. package/dist/childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js +142 -0
  47. package/dist/code-rule-2_Ihx_by.js +147 -0
  48. package/dist/core.es.js +26 -6
  49. package/dist/cron-task-BFOPJQIk.js +134 -0
  50. package/dist/flow-task-PoDnE_kE.js +10 -0
  51. package/dist/frameView-f7Ya0Knj.js +43 -0
  52. package/dist/index-BpdTDaTk.js +3213 -0
  53. package/dist/layout-home-v3DPJ7rB.js +231 -0
  54. package/dist/layoutView-DZHoQDH1.js +3190 -0
  55. package/dist/log-in-BPAMJTwH.js +115 -0
  56. package/dist/log-out-DZACF0jg.js +129 -0
  57. package/dist/login-B8cwozax.js +216 -0
  58. package/dist/login-log-CVvRgZSu.js +70 -0
  59. package/dist/lov-view-Ba7Y7xy0.js +98 -0
  60. package/dist/menuInfo-BpRKFYK8.js +4 -0
  61. package/dist/menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js +359 -0
  62. package/dist/pda-app-C0jJecrL.js +706 -0
  63. package/dist/redirect-DTz8GSnv.js +15 -0
  64. package/dist/resource-BG22Cw4P.js +97 -0
  65. package/dist/su-welcome-DaxhbrC6.js +879 -0
  66. package/dist/sys-config-CG2fMtak.js +384 -0
  67. package/dist/udp-core.css +1 -2
  68. package/dist/useNav-_u2UAQWk.js +84 -0
  69. package/dist/utogether-MlnyYtNS.js +4 -0
  70. package/dist/wecom-push-B75FLee5.js +70 -0
  71. package/index.ts +54 -50
  72. package/package.json +21 -21
  73. package/src/App.vue +79 -78
  74. package/src/api/http.ts +10 -4
  75. package/src/api/index.ts +51 -51
  76. package/src/api/user.ts +64 -64
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/components/udp/content/index.vue +93 -93
  79. package/src/components/udp/form-upload/form-upload.vue +496 -496
  80. package/src/components/udp/grid/index.vue +643 -544
  81. package/src/components/udp/index.ts +2 -1
  82. package/src/components/udp/modal-form/index.vue +326 -0
  83. package/src/components/udp/utils.ts +420 -420
  84. package/src/layout/components/lay-navbar/index.vue +240 -240
  85. package/src/layout/components/lay-panel/index.vue +2 -6
  86. package/src/layout/components/lay-search/components/SearchModal.vue +185 -181
  87. package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
  88. package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
  89. package/src/layout/components/lay-sidebar/vertical.vue +92 -92
  90. package/src/layout/layoutView.vue +1 -0
  91. package/src/main.ts +111 -109
  92. package/src/plugins/i18n/zh.ts +5 -1
  93. package/src/plugins/vxe-table/index.ts +116 -116
  94. package/src/router/index.ts +5 -34
  95. package/src/router/utils.ts +434 -430
  96. package/src/store/modules/permission.ts +1 -1
  97. package/src/store/modules/system.ts +193 -186
  98. package/src/style/print-lock.css +380 -375
  99. package/src/style/suprint.css +990 -985
  100. package/src/style/vxetable.scss +372 -364
  101. package/src/utils/authority/index.ts +19 -2
  102. package/src/utils/dataFormat/index.ts +309 -222
  103. package/src/utils/udp/http/index.ts +126 -67
  104. package/src/utils/udp/http/types.d.ts +15 -14
  105. package/src/views/login/login-view.vue +4 -21
  106. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  107. package/src/views/system/sys/sys-config.vue +344 -344
  108. package/src/views/uhome/components/home-todo.vue +191 -178
  109. package/src/views/uhome/dynamic-card.vue +31 -31
  110. package/src/views/uhome/su-welcome.vue +310 -310
  111. package/src/views/ulogin/login.vue +292 -296
  112. package/src/views/urpt/design/DesignPanel.vue +538 -507
  113. package/src/views/urpt/design/print-data.ts +39 -59
  114. package/tsconfig.json +2 -3
  115. package/types/global.d.ts +234 -234
  116. package/vite.config.ts +2 -1
  117. package/dist/403-D6Wb3JJh.js +0 -72
  118. package/dist/404-B_HNbPNV.js +0 -72
  119. package/dist/500-BMemTTy1.js +0 -77
  120. package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
  121. package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
  122. package/dist/Company-BLXSfow0.js +0 -21
  123. package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
  124. package/dist/DataSet-CuGZcKC-.js +0 -141
  125. package/dist/Department-oFhsa7cd.js +0 -21
  126. package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
  127. package/dist/DepartmentPanel-BL58AdoT.js +0 -2
  128. package/dist/DesignPanel-DmkFVw1N.js +0 -1196
  129. package/dist/DictView-CC5yMzOq.js +0 -100
  130. package/dist/File-WJXjGYxr.js +0 -89
  131. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  132. package/dist/Org-HgnOWubi.js +0 -76
  133. package/dist/Preview-CAzWxLmP.js +0 -45
  134. package/dist/ReIcon-DecitXmg.js +0 -413
  135. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  136. package/dist/ReportDesign-DwchGG2P.js +0 -158
  137. package/dist/ReportQuery-D5jaRJEn.js +0 -101
  138. package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
  139. package/dist/ReportTemplate-CNcTmccs.js +0 -162
  140. package/dist/Role-Be8WfdCA.js +0 -21
  141. package/dist/RoleAssign-CtehGAUf.js +0 -22
  142. package/dist/RolePanel-CAwITg_q.js +0 -131
  143. package/dist/RolePanel-SN0FGFZ7.js +0 -176
  144. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  145. package/dist/Staff-V2YsNKcj.js +0 -22
  146. package/dist/StaffInfo-CKRPW0r4.js +0 -149
  147. package/dist/StaffPanel-BxcgMg7u.js +0 -143
  148. package/dist/SysUser-Dxyj5w5m.js +0 -12
  149. package/dist/SysUserPanel-DI6CWcZo.js +0 -365
  150. package/dist/SystemMenu-BBHREM8T.js +0 -154
  151. package/dist/UserInfo-BMVQ0xwE.js +0 -194
  152. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  153. package/dist/api-BFNxcxSN.js +0 -30
  154. package/dist/authority-BJFEUdrh.js +0 -20
  155. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  156. package/dist/childView-BBjPEraB.js +0 -184
  157. package/dist/childView-DNqG2UVm.js +0 -181
  158. package/dist/code-rule-QFrhqFrW.js +0 -151
  159. package/dist/contant-Q77dU_V3.js +0 -4
  160. package/dist/cron-task-BpUDKEAU.js +0 -131
  161. package/dist/flow-task-DAc2NrDU.js +0 -11
  162. package/dist/frameView-Di0zJZUR.js +0 -39
  163. package/dist/layout-home-BVp7vYLR.js +0 -239
  164. package/dist/layoutView-B6Mx2ERA.js +0 -2662
  165. package/dist/log-in-BrNB0mLz.js +0 -117
  166. package/dist/log-out-dYfqvzy6.js +0 -111
  167. package/dist/login-D_Hjy3Jd.js +0 -231
  168. package/dist/login-log-CJak-ANA.js +0 -79
  169. package/dist/lov-view-DM5Nm5tW.js +0 -95
  170. package/dist/menuInfo-BlOY1KZW.js +0 -346
  171. package/dist/mitt-CQgI7DYU.js +0 -27
  172. package/dist/pda-app-CA7YI37u.js +0 -589
  173. package/dist/redirect-N0k4tImU.js +0 -16
  174. package/dist/resource-CfQTHFcs.js +0 -94
  175. package/dist/su-welcome-DVD3S_du.js +0 -799
  176. package/dist/sys-config-Ddb3vBpK.js +0 -316
  177. package/dist/system-Cm3lyBas.js +0 -1528
  178. package/dist/udp-core-DaQd5CF1.js +0 -2028
  179. package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
  180. package/dist/useNav-BhOJIdrJ.js +0 -106
  181. package/dist/utogether-l7JXs4Lv.js +0 -4
  182. package/dist/water-mark-WDQZ9YqB.js +0 -119
  183. 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-RsKR6CAC.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,73 @@
1
+ import { defineComponent as u, ref as m, reactive as c, resolveComponent as g, openBlock as p, createBlock as f } from "vue";
2
+ import { i as _, j as z } from "./index-BpdTDaTk.js";
3
+ import { useRender as h } from "@utogether/utils";
4
+ const C = {
5
+ name: "InvOrganization"
6
+ }, w = /* @__PURE__ */ u({
7
+ ...C,
8
+ setup(k) {
9
+ const t = "/uums/cusOrganization", n = m(null), e = h(), i = [{
10
+ field: "organizationCode",
11
+ title: "message.udp.organizationCode"
12
+ }, {
13
+ field: "organizationName",
14
+ title: "message.udp.organizationName"
15
+ }], a = [{
16
+ type: "checkbox",
17
+ width: 40,
18
+ align: "center"
19
+ }, {
20
+ field: "organizationCode",
21
+ width: 120,
22
+ title: "message.udp.organizationCode",
23
+ required: !0,
24
+ editRender: e.renderInput()
25
+ }, {
26
+ field: "organizationName",
27
+ minWidth: 120,
28
+ title: "message.udp.organizationName",
29
+ required: !0,
30
+ editRender: e.renderInput()
31
+ }, {
32
+ field: "orgName",
33
+ minWidth: 170,
34
+ title: "message.udp.orgName",
35
+ required: !0,
36
+ editRender: e.renderBU()
37
+ }, {
38
+ field: "orgCode",
39
+ width: 110,
40
+ title: "message.udp.orgCode"
41
+ }, {
42
+ field: "enabled",
43
+ width: 80,
44
+ cellRender: e.renderEnabled(d)
45
+ }];
46
+ async function d({
47
+ row: r
48
+ }) {
49
+ const [o] = await _(z().put(t, [r]));
50
+ !o && n.value.refreshData();
51
+ }
52
+ const s = c({
53
+ columns: a
54
+ });
55
+ return (r, o) => {
56
+ const l = g("ut-grid");
57
+ return p(), f(l, {
58
+ ref_key: "xgrid",
59
+ ref: n,
60
+ items: i,
61
+ "default-params": {
62
+ organizationId: "",
63
+ orgId: ""
64
+ },
65
+ columns: s.columns,
66
+ url: t
67
+ }, null, 8, ["columns"]);
68
+ };
69
+ }
70
+ });
71
+ export {
72
+ w as default
73
+ };
@@ -0,0 +1,38 @@
1
+ import { defineComponent as a, ref as m, resolveComponent as u, openBlock as c, createBlock as g } from "vue";
2
+ import { i as p, j as f } from "./index-BpdTDaTk.js";
3
+ import { clone as _ } from "xe-utils";
4
+ import { useRender as h } from "@utogether/utils";
5
+ const C = { name: "OrgUnit" }, y = /* @__PURE__ */ a({
6
+ ...C,
7
+ setup(k) {
8
+ const t = "/uums/org", r = m(null), n = h(), d = [
9
+ { field: "orgCode", title: "message.udp.orgCode" },
10
+ { field: "orgName", title: "message.udp.orgName" },
11
+ { field: "orgAlias", title: "message.udp.orgAlias" }
12
+ ], s = [
13
+ { type: "checkbox", width: 50, align: "center" },
14
+ { field: "orgCode", title: "message.udp.orgCode", required: !0, editRender: { name: "$input" } },
15
+ { field: "orgName", title: "message.udp.orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
16
+ { field: "orgAlias", title: "message.udp.orgAlias", editRender: { name: "$input" } },
17
+ { field: "orgDesc", title: "message.udp.orgDesc", editRender: { name: "$input" } },
18
+ { field: "enabled", width: 80, cellRender: n.renderEnabled(l) }
19
+ ];
20
+ async function l({ row: o }) {
21
+ const i = _(o, !0), [e] = await p(f().put(t, [i]));
22
+ !e && r.value.refreshData();
23
+ }
24
+ return (o, i) => {
25
+ const e = u("ut-grid");
26
+ return c(), g(e, {
27
+ ref_key: "xgrid",
28
+ ref: r,
29
+ items: d,
30
+ columns: s,
31
+ url: t
32
+ }, null, 512);
33
+ };
34
+ }
35
+ });
36
+ export {
37
+ y as default
38
+ };
@@ -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-BpdTDaTk.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-BpdTDaTk.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,164 @@
1
+ import { defineComponent as A, ref as s, createVNode as r, Fragment as I, resolveComponent as a, 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 { i as B, j as M } from "./index-BpdTDaTk.js";
5
+ import { _ as U } from "./DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js";
6
+ const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
7
+ name: "ReportDesign",
8
+ __name: "ReportDesign",
9
+ setup(j) {
10
+ const o = s(null), l = s(!1), i = s(!1), n = S(), t = s({}), {
11
+ copy: v
12
+ } = V(), g = M(), h = [{
13
+ field: "templateCode",
14
+ title: "message.urpt.templateCode"
15
+ }, {
16
+ field: "templateName",
17
+ title: "message.urpt.templateName"
18
+ }], d = [
19
+ {
20
+ type: "checkbox",
21
+ width: 50,
22
+ align: "center"
23
+ },
24
+ {
25
+ field: "templateCode",
26
+ title: "message.urpt.templateCode",
27
+ required: !0,
28
+ width: 150,
29
+ editRender: n.renderInput()
30
+ },
31
+ {
32
+ field: "templateName",
33
+ title: "message.urpt.templateName",
34
+ required: !0,
35
+ width: 240,
36
+ editRender: n.renderInput()
37
+ },
38
+ {
39
+ field: "paperType",
40
+ title: "message.urpt.paperType",
41
+ width: 120,
42
+ required: !0,
43
+ editRender: n.renderDict({
44
+ code: "SU.PRINT.PAPER",
45
+ defaultValue: "A4"
46
+ }),
47
+ formatter: ["formatDict", "SU.PRINT.PAPER"]
48
+ },
49
+ // { field: 'createdByName', width: 120 },
50
+ {
51
+ field: "remarks",
52
+ title: "message.remark",
53
+ minWidth: 120,
54
+ editRender: n.renderInput()
55
+ },
56
+ // { field: 'enabled', width: 55, formatter: ['formatDict', 'SU.ENABLE'] },
57
+ {
58
+ field: "operate",
59
+ width: 200,
60
+ slots: {
61
+ default: ({
62
+ row: e
63
+ }) => e.id ? r(I, null, [r(a("ut-button"), {
64
+ content: "design",
65
+ icon: "ri-quill-pen-line",
66
+ onTap: () => k(e)
67
+ }, null), r(a("ut-button"), {
68
+ content: "copy",
69
+ status: "warning",
70
+ icon: "ri-file-copy-2-fill",
71
+ onTap: () => R(e)
72
+ }, null), r(a("ut-button"), {
73
+ content: "export",
74
+ status: "u-cyan",
75
+ icon: "ri-folder-download-fill",
76
+ onTap: () => y(e)
77
+ }, null)]) : null
78
+ }
79
+ }
80
+ ], C = [{
81
+ field: "templateCode",
82
+ title: "message.urpt.templateCode",
83
+ required: !0,
84
+ itemRender: {
85
+ name: "$input"
86
+ },
87
+ span: 24
88
+ }, {
89
+ field: "templateName",
90
+ title: "message.urpt.templateName",
91
+ required: !0,
92
+ itemRender: {
93
+ name: "$input"
94
+ },
95
+ span: 24
96
+ }, {
97
+ field: "paperType",
98
+ title: "message.urpt.paperType",
99
+ width: 100,
100
+ required: !0,
101
+ itemRender: n.renderDict({
102
+ code: "SU.PRINT.PAPER",
103
+ defaultValue: "A4"
104
+ })
105
+ }, {
106
+ field: "remarks",
107
+ title: "message.remark",
108
+ itemRender: {
109
+ name: "$input"
110
+ },
111
+ span: 24
112
+ }], R = (e) => {
113
+ t.value.templateContent = e.templateContent, t.value.paperType = e.paperType, i.value = !0;
114
+ }, y = (e) => {
115
+ v(e.templateContent), $("复制成功,快试试右键粘贴吧");
116
+ }, _ = async () => {
117
+ const [e] = await B(g.post(f, [t.value]));
118
+ !e && o.value.refreshData(), i.value = !1;
119
+ }, k = (e) => {
120
+ t.value = e, b(() => {
121
+ l.value = !0;
122
+ });
123
+ }, T = {
124
+ editActived({
125
+ row: e
126
+ }) {
127
+ d[1].editRender.props.disabled = !!e.id, o.value.getInstance().refreshColumn();
128
+ }
129
+ }, N = ({
130
+ row: e
131
+ }) => e?.enabled !== "1", w = () => {
132
+ t.value = {}, l.value = !1, o.value.refreshData();
133
+ };
134
+ return (e, p) => {
135
+ const D = a("ut-grid"), P = a("ut-modal-form");
136
+ return u(), q("div", null, [x(r(D, {
137
+ ref_key: "xgrid",
138
+ ref: o,
139
+ items: h,
140
+ columns: d,
141
+ "check-method": N,
142
+ url: f,
143
+ events: T
144
+ }, null, 512), [[E, !l.value]]), l.value ? (u(), m(U, {
145
+ key: 0,
146
+ record: t.value,
147
+ onOnClose: w
148
+ }, null, 8, ["record"])) : c("", !0), i.value ? (u(), m(P, {
149
+ key: 1,
150
+ record: t.value,
151
+ items: C,
152
+ width: "40%",
153
+ height: 290,
154
+ "data-status": "update",
155
+ title: "复制模板",
156
+ onConfirm: _,
157
+ onClose: p[0] || (p[0] = (F) => i.value = !1)
158
+ }, null, 8, ["record"])) : c("", !0)]);
159
+ };
160
+ }
161
+ });
162
+ export {
163
+ z as default
164
+ };
@@ -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-DBGYEp0u.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-DBGYEp0u.js";
2
+ export {
3
+ f as default
4
+ };