@utogether/udp-core 2.0.0-beta.23 → 2.0.0-beta.25

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 (149) hide show
  1. package/dist/403-QwBKrRZE.js +72 -0
  2. package/dist/404-Cr7MbzNV.js +72 -0
  3. package/dist/500-B7kCOeIA.js +77 -0
  4. package/dist/AuthorityInfo-Dwml2K4S.js +91 -0
  5. package/dist/AuthorityPanel-DzPhsPpa.js +98 -0
  6. package/dist/Company-BhOlvl7Q.js +21 -0
  7. package/dist/CompanyPanel-ByhY5-Sq.js +199 -0
  8. package/dist/DataSet-CuGZcKC-.js +141 -0
  9. package/dist/Department-QvngN63N.js +21 -0
  10. package/dist/DepartmentPanel-BCXqC39J.js +2 -0
  11. package/dist/DepartmentPanel-DntGycxr.js +242 -0
  12. package/dist/DesignPanel-BMN4DZ0R.js +1196 -0
  13. package/dist/DictView-ERFqZ5VD.js +100 -0
  14. package/dist/File-WJXjGYxr.js +89 -0
  15. package/dist/InvOrganization-BwMmD8Ua.js +76 -0
  16. package/dist/Org-HgnOWubi.js +76 -0
  17. package/dist/Preview-CVZdnHB1.js +45 -0
  18. package/dist/ReIcon-DecitXmg.js +413 -0
  19. package/dist/ReportDefine-BgLM-Rjk.js +10 -0
  20. package/dist/ReportDesign-CjfTyyy_.js +158 -0
  21. package/dist/ReportQuery-CP-E0Puv.js +101 -0
  22. package/dist/ReportQueryFrom-D7SPPAps.js +198 -0
  23. package/dist/ReportTemplate-DE25zc1f.js +162 -0
  24. package/dist/Role-K7v_ZhFE.js +21 -0
  25. package/dist/RoleAssign-C16fjLaX.js +22 -0
  26. package/dist/RolePanel-CV-xPlYJ.js +176 -0
  27. package/dist/RolePanel-DPCe9k8f.js +131 -0
  28. package/dist/ScrollPanel-DW30pGz1.js +88 -0
  29. package/dist/Staff-w2ly4qd0.js +22 -0
  30. package/dist/StaffInfo-DPDRpz6F.js +149 -0
  31. package/dist/StaffPanel-DI1eTTp9.js +143 -0
  32. package/dist/SysUser-BMTX1cJM.js +12 -0
  33. package/dist/SysUserPanel-xwZdVjdp.js +365 -0
  34. package/dist/SystemMenu-TXhiQZVm.js +154 -0
  35. package/dist/UserInfo-JQqw8FMT.js +194 -0
  36. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
  37. package/dist/api-BFNxcxSN.js +30 -0
  38. package/dist/authority-Bi6BGB5B.js +20 -0
  39. package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
  40. package/dist/childView-Bk8OD9bV.js +181 -0
  41. package/dist/childView-CyrcwshT.js +184 -0
  42. package/dist/code-rule-QFrhqFrW.js +151 -0
  43. package/dist/contant-Q77dU_V3.js +4 -0
  44. package/dist/core.es.js +6 -23
  45. package/dist/cron-task-BpUDKEAU.js +131 -0
  46. package/dist/flow-task-DAc2NrDU.js +11 -0
  47. package/dist/frameView-Di0zJZUR.js +39 -0
  48. package/dist/img/v_img.svg +1 -1
  49. package/dist/layout-home-BVp7vYLR.js +239 -0
  50. package/dist/layoutView-DFUjrqAS.js +2662 -0
  51. package/dist/log-in-BrNB0mLz.js +117 -0
  52. package/dist/log-out-dYfqvzy6.js +111 -0
  53. package/dist/login-BdCDnuXL.js +233 -0
  54. package/dist/login-log-CJak-ANA.js +79 -0
  55. package/dist/lov-view-DkmG4K57.js +95 -0
  56. package/dist/menuInfo-kp2wNYOp.js +346 -0
  57. package/dist/mitt-CQgI7DYU.js +27 -0
  58. package/dist/pda-app-CA7YI37u.js +589 -0
  59. package/dist/redirect-N0k4tImU.js +16 -0
  60. package/dist/resource-CfQTHFcs.js +94 -0
  61. package/dist/router-CeluSGiD.js +1531 -0
  62. package/dist/su-welcome-JeiovGpe.js +799 -0
  63. package/dist/sys-config-Ddb3vBpK.js +316 -0
  64. package/dist/udp-core-Dhm-BlAs.js +2032 -0
  65. package/dist/udp-core.css +2 -1
  66. package/dist/useDataThemeChange-BCy8JBG7.js +226 -0
  67. package/dist/useNav-DY8FkltH.js +106 -0
  68. package/dist/utogether-l7JXs4Lv.js +4 -0
  69. package/dist/water-mark-WDQZ9YqB.js +119 -0
  70. package/dist/wecom-push-kWkAVRCj.js +77 -0
  71. package/package.json +1 -1
  72. package/src/api/index.ts +51 -51
  73. package/src/components/udp/index.ts +9 -8
  74. package/src/components/udp/lov/index.vue +430 -0
  75. package/src/components/udp/upload/index.vue +444 -444
  76. package/src/main.ts +110 -111
  77. package/src/plugins/vxe-table/index.ts +1 -1
  78. package/src/plugins/vxe-table/render.tsx +999 -998
  79. package/tsconfig.json +1 -1
  80. package/vite.config.ts +8 -3
  81. package/dist/403-Bu1hm1tf.js +0 -65
  82. package/dist/404-BB-df9AI.js +0 -65
  83. package/dist/500-_ivjNAjo.js +0 -67
  84. package/dist/AuthorityInfo-DTeV-2ob.js +0 -4
  85. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BlaR0Onc.js +0 -100
  86. package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
  87. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
  88. package/dist/Company-B-kqHIz7.js +0 -25
  89. package/dist/CompanyPanel-DyKh7m0Z.js +0 -206
  90. package/dist/DataSet-DT-rGICv.js +0 -147
  91. package/dist/Department-CKsiqoIY.js +0 -25
  92. package/dist/DepartmentPanel-kCSiG2Hv.js +0 -254
  93. package/dist/DesignPanel-dpjAWAxC.js +0 -4
  94. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-e3mxfUBR.js +0 -1013
  95. package/dist/DictView-a_uYPbX5.js +0 -111
  96. package/dist/InvOrganization-DRhir-02.js +0 -74
  97. package/dist/Org-CqmyMUy_.js +0 -39
  98. package/dist/Preview-CXK4KxQN.js +0 -48
  99. package/dist/ReportDefine-BPBpVUdl.js +0 -10
  100. package/dist/ReportDesign-D_Cqvh_m.js +0 -165
  101. package/dist/ReportQuery-CPCKroWq.js +0 -75
  102. package/dist/ReportQueryFrom-DtVN20Ou.js +0 -4
  103. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-ByBocawe.js +0 -178
  104. package/dist/ReportTemplate-B3ubCMWK.js +0 -161
  105. package/dist/Role-Bq2GjT1k.js +0 -25
  106. package/dist/RoleAssign-CZGTP6M1.js +0 -26
  107. package/dist/RolePanel-B_2W2wLA.js +0 -4
  108. package/dist/RolePanel-DeHHsXTQ.js +0 -4
  109. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-D165_X8i.js +0 -132
  110. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-F40M5JeR.js +0 -154
  111. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-CjBEiasb.js +0 -101
  112. package/dist/Staff-e7v32WE7.js +0 -26
  113. package/dist/StaffInfo-CO0VfxT1.js +0 -4
  114. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DerORcB0.js +0 -108
  115. package/dist/StaffPanel-ZslIuuEe.js +0 -4
  116. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-ONDmYqiK.js +0 -154
  117. package/dist/SysUser-1LJIDkLs.js +0 -15
  118. package/dist/SysUserPanel-DGz0upa2.js +0 -4
  119. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BxDkwKk4.js +0 -356
  120. package/dist/SystemMenu-BJFA-7na.js +0 -156
  121. package/dist/UserInfo-DgEgNcI1.js +0 -4
  122. package/dist/UserInfo.vue_vue_type_style_index_0_lang-0LeXBHJO.js +0 -160
  123. package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
  124. package/dist/childView-n3PQsXw_.js +0 -4
  125. package/dist/childView-sWkqPxWe.js +0 -4
  126. package/dist/childView.vue_vue_type_style_index_0_lang-DlACXm6-.js +0 -183
  127. package/dist/childView.vue_vue_type_style_index_0_lang-XGM6istV.js +0 -143
  128. package/dist/code-rule-B5swnIDE.js +0 -148
  129. package/dist/cron-task-BgeQLdRW.js +0 -135
  130. package/dist/flow-task-B07st2aD.js +0 -10
  131. package/dist/frameView-B37Oqu4T.js +0 -44
  132. package/dist/index-BLLwR2mu.js +0 -7944
  133. package/dist/layout-home-mag8cpgN.js +0 -232
  134. package/dist/layoutView-D4YY2av1.js +0 -3239
  135. package/dist/log-in-BPUMwivh.js +0 -117
  136. package/dist/log-out-py6304lk.js +0 -130
  137. package/dist/login-BITK6XJ-.js +0 -235
  138. package/dist/login-log-BEHYT0v0.js +0 -70
  139. package/dist/lov-view-Cv-0Ii-W.js +0 -99
  140. package/dist/menuInfo-DqQdEkla.js +0 -4
  141. package/dist/menuInfo.vue_vue_type_style_index_0_lang-CObiQiIC.js +0 -363
  142. package/dist/pda-app-PLxdqt6q.js +0 -710
  143. package/dist/redirect-BqegffKC.js +0 -15
  144. package/dist/resource-Dz8NFuxi.js +0 -97
  145. package/dist/su-welcome-CSWrN5Dc.js +0 -42225
  146. package/dist/sys-config-BJY2IkSZ.js +0 -385
  147. package/dist/useNav-BT7Od00q.js +0 -92
  148. package/dist/utogether-MlnyYtNS.js +0 -4
  149. package/dist/wecom-push-DR7NsNro.js +0 -70
@@ -0,0 +1,198 @@
1
+ import { I as e } from "./router-CeluSGiD.js";
2
+ import { r as t } from "./api-BFNxcxSN.js";
3
+ import { computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, nextTick as s, onBeforeMount as c, openBlock as l, reactive as u, ref as d, resolveComponent as f, withCtx as p } from "vue";
4
+ import { useRender as m } from "@utogether/utils";
5
+ import { clone as h } from "xe-utils";
6
+ import { templateRef as g } from "@vueuse/core";
7
+ import { useI18n as _ } from "vue-i18n";
8
+ import { useRoute as v } from "vue-router";
9
+ //#region src/views/urpt/query/ReportQueryFrom.vue?vue&type=script&setup=true&lang.ts
10
+ var y = { class: "ut-drawer-template" }, b = { class: "flex" }, x = /* @__PURE__ */ o({
11
+ __name: "ReportQueryFrom",
12
+ props: {
13
+ show: {
14
+ type: Boolean,
15
+ default: !0
16
+ },
17
+ record: { default: () => ({}) },
18
+ dataStatus: { default: "add" },
19
+ drawTitle: { default: "报表模板" },
20
+ direction: { default: "rtl" }
21
+ },
22
+ emits: ["onClose"],
23
+ setup(e, { emit: o }) {
24
+ let x = e, { t: S } = _(), C = v(), w = {}, T = g("xForm", null), E = d(!1), D = m(), O = t(), k = n(() => {
25
+ let e = {};
26
+ return R.items.length && R.items.filter((e) => e.required).forEach((t) => {
27
+ e[t.field] = [{
28
+ required: !0,
29
+ message: `${S("message.required")}${t?.title ? S(t.title) : ""}`
30
+ }];
31
+ }), e;
32
+ }), A = [
33
+ {
34
+ field: "fileName",
35
+ title: "message.fileName",
36
+ span: 24,
37
+ itemRender: { name: "$input" }
38
+ },
39
+ {
40
+ field: "templateName",
41
+ required: !0,
42
+ span: 24,
43
+ itemRender: D.renderSelect({
44
+ optionProps: {
45
+ label: "tempName",
46
+ value: "tempName"
47
+ },
48
+ props: {
49
+ code: "EXP005",
50
+ fetchField: "tempName"
51
+ }
52
+ }, M)
53
+ },
54
+ {
55
+ field: "fileType",
56
+ required: !0,
57
+ span: 24,
58
+ itemRender: {
59
+ name: "$select",
60
+ props: {
61
+ options: [],
62
+ disabled: !0
63
+ }
64
+ }
65
+ }
66
+ ];
67
+ function j() {
68
+ return A.map((e) => (e.title = e.title || `message.${e.field}`, e.span = e.span || 8, e));
69
+ }
70
+ function M(e, t, n, r) {
71
+ r === "templateName" && n[r] && N(t);
72
+ }
73
+ function N(e) {
74
+ w = e, A[2].itemRender.props = {
75
+ disabled: !1,
76
+ options: e.exportFileType.split(",").map((e) => ({
77
+ label: e,
78
+ value: e
79
+ }))
80
+ }, O.post("EXP010", { templateId: e.id }).then((e) => {
81
+ e.list.forEach((e) => {
82
+ let t = {
83
+ field: e.parameterField,
84
+ title: e.parameterName,
85
+ span: 24,
86
+ dynamicsField: "Y",
87
+ itemRender: P(e)
88
+ };
89
+ A.push(t);
90
+ }), s(() => {
91
+ R.items = j();
92
+ });
93
+ });
94
+ }
95
+ let P = (e) => {
96
+ let t = {};
97
+ switch (e.parameterType) {
98
+ case "date":
99
+ t = {
100
+ name: "$input",
101
+ props: { type: "date" }
102
+ };
103
+ break;
104
+ case "number":
105
+ t = {
106
+ name: "$input",
107
+ props: { type: "number" }
108
+ };
109
+ break;
110
+ default:
111
+ e.selectOptions === "Y" ? e.valueType === "0" ? t = D.renderDict(e.serviceCode) : e.valueType === "1" && (t = D.renderSelect({
112
+ optionProps: {
113
+ label: e.showField,
114
+ value: e.valueField
115
+ },
116
+ props: {
117
+ code: e.serviceCode,
118
+ fetchField: e.showField
119
+ }
120
+ }, M)) : t = { name: "$input" };
121
+ break;
122
+ }
123
+ return t;
124
+ }, F = () => {
125
+ T.value.validate(async (e) => {
126
+ if (!e) {
127
+ let { dataStatus: e } = x, { row: t } = R, n = h(t, !0), r = e === "add" ? "EXP011" : "EXP003", i = {};
128
+ A.forEach((e) => {
129
+ e.dynamicsField && (i[e.field] = n[e.field]);
130
+ }), n.templateId = w.id, n.reportData = JSON.stringify(i), await O.post(r, n), L("submit");
131
+ }
132
+ });
133
+ }, I = o;
134
+ function L(e) {
135
+ I("onClose", e);
136
+ }
137
+ let R = u({
138
+ items: j(),
139
+ fetchParamExt: {},
140
+ row: {}
141
+ });
142
+ return c(() => {
143
+ R.row = x.record, R.fetchParamExt = { templateId: x.record.id }, C?.params?.isJump && (R.row = C.params, O.post("EXP005", {
144
+ tempName: "",
145
+ pageSize: 1
146
+ }).then((e) => {
147
+ e?.list && (A[1].itemRender.props.options = e.list, R.items = j(), N(e?.list[0]));
148
+ }));
149
+ }), (t, n) => {
150
+ let o = f("vxe-form"), s = f("el-divider"), c = f("ut-button"), u = f("el-row"), d = f("el-drawer");
151
+ return l(), r("div", y, [a(d, {
152
+ "model-value": e.show,
153
+ title: e.drawTitle,
154
+ "before-close": L,
155
+ "destroy-on-close": "",
156
+ size: "66%"
157
+ }, {
158
+ default: p(() => [
159
+ i("div", b, [a(o, {
160
+ ref_key: "xForm",
161
+ ref: T,
162
+ data: R.row,
163
+ rules: k.value,
164
+ items: R.items,
165
+ loading: E.value,
166
+ "title-colon": "",
167
+ "title-align": "right",
168
+ "title-width": "110"
169
+ }, null, 8, [
170
+ "data",
171
+ "rules",
172
+ "items",
173
+ "loading"
174
+ ])]),
175
+ a(s),
176
+ a(u, {
177
+ type: "flex",
178
+ justify: "end",
179
+ style: { "padding-right": "22px" }
180
+ }, {
181
+ default: p(() => [a(c, {
182
+ content: "cancel",
183
+ onClick: n[0] ||= (e) => L()
184
+ }), a(c, {
185
+ content: "confirm",
186
+ status: "u-cyan",
187
+ onClick: F
188
+ })]),
189
+ _: 1
190
+ })
191
+ ]),
192
+ _: 1
193
+ }, 8, ["model-value", "title"])]);
194
+ };
195
+ }
196
+ }), S = /* @__PURE__ */ e({ default: () => C }), C = x;
197
+ //#endregion
198
+ export { S as n, C as t };
@@ -0,0 +1,162 @@
1
+ import { y as e } from "./router-CeluSGiD.js";
2
+ import { r as t } from "./api-BFNxcxSN.js";
3
+ import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createVNode as o, defineComponent as s, openBlock as c, ref as l, resolveComponent as u } from "vue";
4
+ import { successMessage as d, useRender as f, warnMessage as p } from "@utogether/utils";
5
+ import { clone as m } from "xe-utils";
6
+ import { useI18n as h } from "vue-i18n";
7
+ //#region src/views/urpt/template/ReportTemplate.vue?vue&type=script&setup=true&lang.tsx
8
+ var g = "/upms/v1/printTemplateConfig", _ = /* @__PURE__ */ s({
9
+ __name: "ReportTemplate",
10
+ setup(s) {
11
+ let { t: _ } = h(), v = f(), y = l(null), b = l(!1), x = l(!1), S = l({}), C = l([]), w = l({}), T = [
12
+ {
13
+ field: "templateCode",
14
+ title: "message.urpt.templateCode"
15
+ },
16
+ {
17
+ field: "templateName",
18
+ title: "message.urpt.templateName"
19
+ },
20
+ {
21
+ field: "printPosition",
22
+ title: "message.urpt.printPosition",
23
+ code: "SU.PRINT.VIEW"
24
+ }
25
+ ], E = [
26
+ {
27
+ type: "checkbox",
28
+ width: 40,
29
+ align: "center"
30
+ },
31
+ {
32
+ field: "templateCode",
33
+ title: "message.urpt.templateCode",
34
+ required: !0,
35
+ width: 120,
36
+ editRender: v.renderLov({
37
+ field: "templateCode",
38
+ code: "SU.PRINT.CODE",
39
+ mapField: { templateName: "templateName" }
40
+ })
41
+ },
42
+ {
43
+ field: "templateName",
44
+ title: "message.urpt.templateName",
45
+ width: 180
46
+ },
47
+ {
48
+ field: "printPosition",
49
+ title: "message.urpt.printPosition",
50
+ required: !0,
51
+ width: 120,
52
+ formatter: ["formatDict", "SU.PRINT.VIEW"],
53
+ editRender: v.renderDict("SU.PRINT.VIEW")
54
+ },
55
+ {
56
+ field: "buttonCode",
57
+ title: "message.urpt.buttonCode",
58
+ width: 120,
59
+ required: !0,
60
+ editRender: v.renderInput()
61
+ },
62
+ {
63
+ field: "url",
64
+ title: "message.baseUrl",
65
+ editRender: v.renderInput()
66
+ },
67
+ {
68
+ field: "remark",
69
+ editRender: v.renderInput()
70
+ },
71
+ {
72
+ field: "operate",
73
+ width: 100,
74
+ fixed: "right",
75
+ slots: { default: ({ row: e }) => [o(n, null, [o(u("ut-button"), {
76
+ content: "inv",
77
+ icon: "ri-edit-line",
78
+ onTap: () => j(e)
79
+ }, null)])] }
80
+ }
81
+ ], D = () => {
82
+ if (!y.value.getInstance().getCheckboxRecords().length) return p(_("message.selectedRecord"));
83
+ C.value = [], C.value.push({
84
+ field: "orgName",
85
+ required: !0,
86
+ itemRender: {
87
+ name: "$checkbox",
88
+ options: e().getOrglist.map((e) => ({
89
+ value: e.id,
90
+ label: e.orgName
91
+ }))
92
+ }
93
+ }), w.value = {}, b.value = !0;
94
+ }, O = () => {
95
+ if (w.value.orgName) {
96
+ let e = y.value.getInstance().getCheckboxRecords(), n = [];
97
+ e.forEach((e) => {
98
+ w.value.orgName.forEach((t) => {
99
+ let r = m(e, !0);
100
+ r.orgId = t, r.id = null, n.push(r);
101
+ });
102
+ }), t().post(g, n).then(() => {
103
+ b.value = !1, d();
104
+ });
105
+ }
106
+ }, k = { toolbarButtonClick({ code: e }) {
107
+ e === "copy" && D();
108
+ } }, A = [{
109
+ field: "organizationName",
110
+ required: !0,
111
+ editRender: v.renderInvOrg({ orgId: e().getOrgId })
112
+ }, {
113
+ field: "remark",
114
+ editRender: v.renderInput()
115
+ }], j = (e) => {
116
+ S.value = { headerId: e.id }, x.value = !0;
117
+ }, M = [{
118
+ code: "copy",
119
+ icon: "ri-file-copy-line",
120
+ status: "warning",
121
+ auth: "copy"
122
+ }];
123
+ return (e, t) => {
124
+ let n = u("ut-grid"), s = u("ut-modal-form"), l = u("ut-modal-grid");
125
+ return c(), a("div", null, [
126
+ o(n, {
127
+ ref_key: "xgrid",
128
+ ref: y,
129
+ items: T,
130
+ buttons: M,
131
+ columns: E,
132
+ events: k,
133
+ url: g
134
+ }, null, 512),
135
+ b.value ? (c(), r(s, {
136
+ key: 0,
137
+ ref: "xmodal",
138
+ record: w.value,
139
+ items: C.value,
140
+ width: "400",
141
+ height: "170",
142
+ "data-status": "update",
143
+ title: "单据复制",
144
+ onConfirm: O,
145
+ onClose: t[0] ||= (e) => b.value = !1
146
+ }, null, 8, ["record", "items"])) : i("", !0),
147
+ x.value ? (c(), r(l, {
148
+ key: 1,
149
+ ref: "xmgrid",
150
+ "default-value": S.value,
151
+ columns: A,
152
+ url: "/upms/v1/printTemplateConfigOgn",
153
+ title: "库存组织",
154
+ width: "45%",
155
+ onClose: t[1] ||= (e) => x.value = !1
156
+ }, null, 8, ["default-value"])) : i("", !0)
157
+ ]);
158
+ };
159
+ }
160
+ });
161
+ //#endregion
162
+ export { _ as default };
@@ -0,0 +1,21 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
2
+ import { t } from "./ScrollPanel-DW30pGz1.js";
3
+ import { t as n } from "./RolePanel-CV-xPlYJ.js";
4
+ import { createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, provide as c, ref as l } from "vue";
5
+ //#region src/views/system/role/Role.vue?vue&type=script&setup=true&lang.ts
6
+ var u = { class: "u-content-panel" }, d = { class: "u-left-panel" }, f = { class: "content" }, p = /* @__PURE__ */ e(/* @__PURE__ */ o({
7
+ __name: "Role",
8
+ setup(e) {
9
+ let o = l({}), p = l(!1), m = l([]);
10
+ return c("active", o), c("scrollPanelChange", p), c("treeList", m), (e, o) => (s(), r("div", u, [i("div", d, [a(t, {
11
+ title: e.$t("company"),
12
+ url: "/uums/unit",
13
+ "tree-otions": {
14
+ children: "children",
15
+ label: "unitName"
16
+ }
17
+ }, null, 8, ["title"])]), i("div", f, [a(n)])]));
18
+ }
19
+ }), [["__scopeId", "data-v-e31bcedc"]]);
20
+ //#endregion
21
+ export { p as default };
@@ -0,0 +1,22 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
2
+ import { t } from "./ScrollPanel-DW30pGz1.js";
3
+ import { t as n } from "./RolePanel-DPCe9k8f.js";
4
+ import { createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, provide as c, ref as l } from "vue";
5
+ //#region src/views/system/role-assign/RoleAssign.vue?vue&type=script&setup=true&lang.ts
6
+ var u = { class: "u-content-panel" }, d = { class: "u-left-panel" }, f = { class: "content" }, p = /* @__PURE__ */ e(/* @__PURE__ */ o({
7
+ __name: "RoleAssign",
8
+ setup(e) {
9
+ let o = l({}), p = l(!1), m = l([]);
10
+ return c("active", o), c("scrollPanelChange", p), c("treeList", m), (e, o) => (s(), r("div", u, [i("div", d, [a(t, {
11
+ title: e.$t("SuOrg"),
12
+ "tree-otions": {
13
+ children: "children",
14
+ label: "orgName"
15
+ },
16
+ "default-params": { pageSize: 500 },
17
+ url: "/uums/org"
18
+ }, null, 8, ["title"])]), i("div", f, [a(n)])]));
19
+ }
20
+ }), [["__scopeId", "data-v-ee175fa5"]]);
21
+ //#endregion
22
+ export { p as default };
@@ -0,0 +1,176 @@
1
+ import { I as e, y as t } from "./router-CeluSGiD.js";
2
+ import { r as n } from "./api-BFNxcxSN.js";
3
+ import { t as r } from "./AuthorityInfo-Dwml2K4S.js";
4
+ import { t as i } from "./UserInfo-JQqw8FMT.js";
5
+ import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createVNode as l, defineComponent as u, inject as d, openBlock as f, reactive as p, ref as m, resolveComponent as h, watch as g } from "vue";
6
+ import { useRender as _ } from "@utogether/utils";
7
+ //#region src/views/system/role/RolePanel.vue?vue&type=script&setup=true&lang.tsx
8
+ var v = { class: "page-content" }, y = /* @__PURE__ */ u({
9
+ __name: "RolePanel",
10
+ setup(e) {
11
+ let u = p({
12
+ record: {},
13
+ showAuthView: !1,
14
+ showModalView: !1,
15
+ showUserView: !1,
16
+ dataStatus: ""
17
+ }), y = d("active"), b = _(), x = m(null), S = m(""), C = m({}), w = m("");
18
+ g(() => y.value, () => {
19
+ O();
20
+ });
21
+ let T = [{
22
+ field: "roleName",
23
+ title: "message.udp.roleName"
24
+ }, {
25
+ field: "roleCode",
26
+ title: "message.udp.roleCode"
27
+ }], E = [
28
+ {
29
+ field: "roleName",
30
+ title: "message.udp.roleName",
31
+ required: !0
32
+ },
33
+ {
34
+ field: "roleCode",
35
+ title: "message.udp.roleCode",
36
+ required: !0
37
+ },
38
+ {
39
+ field: "roleDesc",
40
+ title: "message.udp.roleDesc"
41
+ }
42
+ ], D = [
43
+ {
44
+ type: "checkbox",
45
+ width: 40,
46
+ align: "center",
47
+ fixed: "left"
48
+ },
49
+ {
50
+ field: "roleCode",
51
+ title: "message.udp.roleCode"
52
+ },
53
+ {
54
+ field: "roleName",
55
+ title: "message.udp.roleName"
56
+ },
57
+ {
58
+ field: "roleDesc",
59
+ title: "message.udp.roleDesc"
60
+ },
61
+ {
62
+ field: "enabled",
63
+ width: 90,
64
+ cellRender: b.renderEnabled(F)
65
+ },
66
+ {
67
+ field: "operate",
68
+ width: 260,
69
+ fixed: "right",
70
+ slots: { default: ({ row: e }) => [l(a, null, [
71
+ l(h("ut-button"), {
72
+ content: "edit",
73
+ auth: "edit",
74
+ disabled: e.roleCode === "admin",
75
+ onTap: () => j(e)
76
+ }, null),
77
+ l(h("ut-button"), {
78
+ content: "dispatchUser",
79
+ status: "warning",
80
+ icon: "ri-user-3-line",
81
+ auth: "user",
82
+ onTap: () => P(e)
83
+ }, null),
84
+ l(h("ut-button"), {
85
+ content: "dispatchAuth",
86
+ status: "success",
87
+ icon: "ri-plane-line",
88
+ auth: "auth",
89
+ onTap: () => N(e)
90
+ }, null)
91
+ ])] }
92
+ }
93
+ ], O = () => {
94
+ C.value = { unitId: y?.value?.id }, x.value.refreshData();
95
+ }, k = (e) => {
96
+ e === "add" && A(), e === "del" && M();
97
+ }, A = () => {
98
+ u.dataStatus = "add", S.value = "post", w.value = "/uums/role", u.record = {}, u.record.unitId = y?.value?.id, u.record.enabled = "1", u.record.orgId = t().getOrgId, u.showModalView = !0;
99
+ }, j = (e) => {
100
+ S.value = "put", w.value = "/uums/role/singleUpdate", u.dataStatus = "update", u.record = e, u.showModalView = !0;
101
+ }, M = () => {
102
+ x.value.getInstance().commitProxy("delete");
103
+ }, N = (e) => {
104
+ u.record = e, u.showAuthView = !0;
105
+ }, P = (e) => {
106
+ u.record = e, u.showUserView = !0;
107
+ };
108
+ async function F({ row: e }) {
109
+ if (e.roleCode === "admin") {
110
+ e.enabled = "1";
111
+ return;
112
+ }
113
+ await n().put("/uums/role/singleUpdate", e), x.value.refreshData();
114
+ }
115
+ let I = () => {
116
+ u.showDrawView = !1, u.showAuthView = !1, u.showUserView = !1;
117
+ }, L = (e) => e.roleCode !== "admin";
118
+ return (e, t) => {
119
+ let n = h("ut-grid"), a = h("ut-modal-form");
120
+ return f(), c("div", v, [
121
+ l(n, {
122
+ ref_key: "xgrid",
123
+ ref: x,
124
+ items: T,
125
+ columns: D,
126
+ "check-method": L,
127
+ url: "/uums/role",
128
+ mode: "form",
129
+ onButtonClick: k
130
+ }, null, 512),
131
+ u.showAuthView ? (f(), o(r, {
132
+ key: 0,
133
+ show: u.showAuthView,
134
+ record: u.record,
135
+ "data-status": u.dataStatus,
136
+ onOnClose: I
137
+ }, null, 8, [
138
+ "show",
139
+ "record",
140
+ "data-status"
141
+ ])) : s("", !0),
142
+ u.showUserView ? (f(), o(i, {
143
+ key: 1,
144
+ show: u.showUserView,
145
+ record: u.record,
146
+ "data-status": u.dataStatus,
147
+ onOnClose: I
148
+ }, null, 8, [
149
+ "show",
150
+ "record",
151
+ "data-status"
152
+ ])) : s("", !0),
153
+ u.showModalView ? (f(), o(a, {
154
+ key: 2,
155
+ ref: "xmodal",
156
+ record: u.record,
157
+ items: E,
158
+ url: w.value,
159
+ method: S.value,
160
+ width: "400",
161
+ height: "240",
162
+ "data-status": "update",
163
+ title: e.$t("message.title.authEdit"),
164
+ onClose: t[0] ||= (e) => u.showModalView = !1
165
+ }, null, 8, [
166
+ "record",
167
+ "url",
168
+ "method",
169
+ "title"
170
+ ])) : s("", !0)
171
+ ]);
172
+ };
173
+ }
174
+ }), b = /* @__PURE__ */ e({ default: () => x }), x = y;
175
+ //#endregion
176
+ export { b as n, x as t };