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

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 (155) hide show
  1. package/dist/403-D6Wb3JJh.js +72 -0
  2. package/dist/404-B_HNbPNV.js +72 -0
  3. package/dist/500-BMemTTy1.js +77 -0
  4. package/dist/AuthorityInfo-6wHxwiFM.js +91 -0
  5. package/dist/AuthorityPanel-OqF_DvXA.js +98 -0
  6. package/dist/Company-BLXSfow0.js +21 -0
  7. package/dist/CompanyPanel-B4kRZ5Cg.js +199 -0
  8. package/dist/DataSet-CuGZcKC-.js +141 -0
  9. package/dist/Department-oFhsa7cd.js +21 -0
  10. package/dist/DepartmentPanel-B1UGpu-r.js +242 -0
  11. package/dist/DepartmentPanel-BL58AdoT.js +2 -0
  12. package/dist/DesignPanel-DmkFVw1N.js +1196 -0
  13. package/dist/DictView-CC5yMzOq.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-CAzWxLmP.js +45 -0
  18. package/dist/ReIcon-DecitXmg.js +413 -0
  19. package/dist/ReportDefine-BgLM-Rjk.js +10 -0
  20. package/dist/ReportDesign-DwchGG2P.js +158 -0
  21. package/dist/ReportQuery-D5jaRJEn.js +101 -0
  22. package/dist/ReportQueryFrom-CNlmtYey.js +198 -0
  23. package/dist/ReportTemplate-CNcTmccs.js +162 -0
  24. package/dist/Role-Be8WfdCA.js +21 -0
  25. package/dist/RoleAssign-CtehGAUf.js +22 -0
  26. package/dist/RolePanel-CAwITg_q.js +131 -0
  27. package/dist/RolePanel-SN0FGFZ7.js +176 -0
  28. package/dist/ScrollPanel-DW30pGz1.js +88 -0
  29. package/dist/Staff-V2YsNKcj.js +22 -0
  30. package/dist/StaffInfo-CKRPW0r4.js +149 -0
  31. package/dist/StaffPanel-BxcgMg7u.js +143 -0
  32. package/dist/SysUser-Dxyj5w5m.js +12 -0
  33. package/dist/SysUserPanel-DI6CWcZo.js +365 -0
  34. package/dist/SystemMenu-BBHREM8T.js +154 -0
  35. package/dist/UserInfo-BMVQ0xwE.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-BJFEUdrh.js +20 -0
  39. package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
  40. package/dist/childView-BBjPEraB.js +184 -0
  41. package/dist/childView-DNqG2UVm.js +181 -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-B6Mx2ERA.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-D_Hjy3Jd.js +231 -0
  54. package/dist/login-log-CJak-ANA.js +79 -0
  55. package/dist/lov-view-DM5Nm5tW.js +95 -0
  56. package/dist/menuInfo-BlOY1KZW.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/su-welcome-DVD3S_du.js +799 -0
  62. package/dist/sys-config-Ddb3vBpK.js +316 -0
  63. package/dist/system-Cm3lyBas.js +1528 -0
  64. package/dist/udp-core-DaQd5CF1.js +2028 -0
  65. package/dist/udp-core.css +2 -1
  66. package/dist/useDataThemeChange-DJ4K3VGp.js +226 -0
  67. package/dist/useNav-BhOJIdrJ.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/App.vue +5 -0
  73. package/src/api/index.ts +51 -51
  74. package/src/components/udp/grid/index.vue +9 -11
  75. package/src/components/udp/index.ts +9 -8
  76. package/src/components/udp/lov/index.vue +430 -0
  77. package/src/components/udp/upload/index.vue +444 -444
  78. package/src/components/udp/utils.ts +420 -414
  79. package/src/main.ts +4 -6
  80. package/src/plugins/vxe-table/index.ts +1 -1
  81. package/src/plugins/vxe-table/render.tsx +999 -998
  82. package/src/router/utils.ts +2 -3
  83. package/src/views/login/login-view.vue +297 -301
  84. package/src/views/ulogin/login.vue +3 -32
  85. package/tsconfig.json +1 -1
  86. package/vite.config.ts +8 -3
  87. package/dist/403-DDCAPCYb.js +0 -65
  88. package/dist/404-BclWW4UB.js +0 -65
  89. package/dist/500-BAggMgTl.js +0 -67
  90. package/dist/AuthorityInfo-liCxYVNc.js +0 -4
  91. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js +0 -100
  92. package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
  93. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
  94. package/dist/Company-DjaOAaWM.js +0 -25
  95. package/dist/CompanyPanel-Dp_2z717.js +0 -206
  96. package/dist/DataSet-DT-rGICv.js +0 -147
  97. package/dist/Department-Bp5RGbl9.js +0 -25
  98. package/dist/DepartmentPanel-Bg4xM4Lx.js +0 -254
  99. package/dist/DesignPanel-BS2ioHd_.js +0 -4
  100. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DWwfRVCj.js +0 -1013
  101. package/dist/DictView-pYJXt6IS.js +0 -111
  102. package/dist/InvOrganization-D90gRzlN.js +0 -74
  103. package/dist/Org-Dk4KuIx2.js +0 -39
  104. package/dist/Preview-DpZR6uKs.js +0 -48
  105. package/dist/ReportDefine-PtJnfaLw.js +0 -10
  106. package/dist/ReportDesign-4HWkcTtA.js +0 -165
  107. package/dist/ReportQuery-BPY1lWFn.js +0 -75
  108. package/dist/ReportQueryFrom-CHFlkZ42.js +0 -4
  109. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DbbQydKz.js +0 -178
  110. package/dist/ReportTemplate-C2F3oy8I.js +0 -161
  111. package/dist/Role-iTP6DYOi.js +0 -25
  112. package/dist/RoleAssign-DIYNHQeF.js +0 -26
  113. package/dist/RolePanel-0ojFIz9G.js +0 -4
  114. package/dist/RolePanel-B0Yr5vjo.js +0 -4
  115. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js +0 -132
  116. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js +0 -154
  117. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js +0 -101
  118. package/dist/Staff-sftZ0bIV.js +0 -26
  119. package/dist/StaffInfo-BG2FMXzR.js +0 -4
  120. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js +0 -108
  121. package/dist/StaffPanel-BydqiitC.js +0 -4
  122. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js +0 -154
  123. package/dist/SysUser-qMGVHpJ_.js +0 -15
  124. package/dist/SysUserPanel-Bh1HgSAr.js +0 -4
  125. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js +0 -356
  126. package/dist/SystemMenu-DUbWmLip.js +0 -156
  127. package/dist/UserInfo-DNkiTdWm.js +0 -4
  128. package/dist/UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js +0 -160
  129. package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
  130. package/dist/childView-CjUjh8Da.js +0 -4
  131. package/dist/childView-DT9luEEK.js +0 -4
  132. package/dist/childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js +0 -183
  133. package/dist/childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js +0 -143
  134. package/dist/code-rule-uOazxFfn.js +0 -148
  135. package/dist/cron-task-DEykunjo.js +0 -135
  136. package/dist/flow-task-B07st2aD.js +0 -10
  137. package/dist/frameView-FxzlbkeM.js +0 -44
  138. package/dist/index-BnxyUGKa.js +0 -7944
  139. package/dist/layout-home-C0jme8Ju.js +0 -232
  140. package/dist/layoutView-BqMAHIxF.js +0 -3239
  141. package/dist/log-in-skZaWMBY.js +0 -117
  142. package/dist/log-out-BiND7muW.js +0 -130
  143. package/dist/login-C-184YPO.js +0 -235
  144. package/dist/login-log-BEHYT0v0.js +0 -70
  145. package/dist/lov-view-Df-swRfy.js +0 -99
  146. package/dist/menuInfo-CpyjX4a4.js +0 -4
  147. package/dist/menuInfo.vue_vue_type_style_index_0_lang-D09-OKji.js +0 -363
  148. package/dist/pda-app-DP87aTBc.js +0 -710
  149. package/dist/redirect-BqegffKC.js +0 -15
  150. package/dist/resource-CAldbnw4.js +0 -97
  151. package/dist/su-welcome-DoBUqadB.js +0 -42225
  152. package/dist/sys-config-hGuE7DUf.js +0 -385
  153. package/dist/useNav-Cf_e5pBY.js +0 -92
  154. package/dist/utogether-MlnyYtNS.js +0 -4
  155. package/dist/wecom-push-DR7NsNro.js +0 -70
@@ -0,0 +1,198 @@
1
+ import { I as e } from "./system-Cm3lyBas.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 { t as e } from "./system-Cm3lyBas.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-SN0FGFZ7.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-CAwITg_q.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,131 @@
1
+ import { I as e } from "./system-Cm3lyBas.js";
2
+ import { r as t } from "./api-BFNxcxSN.js";
3
+ import { t as n } from "./await-to-js.es5-DkWYmPXW.js";
4
+ import { createBlock as r, createCommentVNode as i, createElementBlock as a, createVNode as o, defineComponent as s, inject as c, nextTick as l, openBlock as u, reactive as d, ref as f, resolveComponent as p, resolveDirective as m, unref as h, watch as g, withDirectives as _ } from "vue";
5
+ import { successMessage as v } from "@utogether/utils";
6
+ import { clone as y } from "xe-utils";
7
+ import { useI18n as b } from "vue-i18n";
8
+ import { VxeUI as x } from "vxe-pc-ui";
9
+ //#region src/views/system/role-assign/RolePanel.vue?vue&type=script&setup=true&lang.tsx
10
+ var S = { class: "page-content" }, C = "/uums/orgRole", w = /* @__PURE__ */ s({
11
+ __name: "RolePanel",
12
+ setup(e) {
13
+ let s = d({
14
+ record: {},
15
+ loading: !1,
16
+ showModalView: !1
17
+ }), { t: w } = b(), T = f(null), E = f(null), D = c("active");
18
+ g(() => D.value, () => {
19
+ D?.value.id && (s.fetchExtParam = { orgId: D?.value.id }, l(() => {
20
+ T.value.refreshData();
21
+ }));
22
+ });
23
+ let O = [{
24
+ code: "del",
25
+ auth: "/"
26
+ }], k = [{
27
+ field: "roleName",
28
+ title: "message.udp.roleName",
29
+ span: 9
30
+ }, {
31
+ field: "roleCode",
32
+ title: "message.udp.roleCode",
33
+ span: 9
34
+ }], A = [
35
+ {
36
+ type: "checkbox",
37
+ width: 40
38
+ },
39
+ {
40
+ field: "roleCode",
41
+ title: "message.udp.roleCode"
42
+ },
43
+ {
44
+ field: "roleName",
45
+ title: "message.udp.roleName"
46
+ },
47
+ {
48
+ field: "roleDesc",
49
+ title: "message.udp.roleDesc"
50
+ },
51
+ {
52
+ field: "enabled",
53
+ width: 100,
54
+ formatter: ["formatDict", "SU.ENABLE"]
55
+ }
56
+ ], j = y(A, !0);
57
+ j.push({
58
+ field: "operate",
59
+ width: 80,
60
+ fixed: "right",
61
+ slots: { default: ({ row: e }) => e.roleCode === "admin" ? null : [o(p("ut-button"), {
62
+ icon: "ri-delete-bin-5-fill",
63
+ content: "del",
64
+ status: "danger",
65
+ auth: "del",
66
+ onTap: () => N(e)
67
+ }, null)] }
68
+ });
69
+ let M = () => {
70
+ s.record = {}, s.record.orgId = D.value.id, s.showModalView = !0;
71
+ }, N = async (e) => {
72
+ if (await x.modal.confirm(w("message.tip.del")) === "confirm") {
73
+ let r = {
74
+ orgId: D.value.id,
75
+ roleId: e.id
76
+ };
77
+ s.loading = !0;
78
+ let [i] = await n(t().delete(C, r));
79
+ i || v(w("message.operateSuccess")), T.value.refreshData(), s.loading = !1;
80
+ }
81
+ }, P = async (e) => {
82
+ let r = [];
83
+ e.forEach((e) => {
84
+ e.orgId = D.value.id, e.roleId = e.id, r.push(e);
85
+ });
86
+ let i = { orgRoleList: r };
87
+ E.value.showLoading();
88
+ let [a] = await n(t().post(C, i));
89
+ a || (v(), T.value.refreshData(), s.showModalView = !1);
90
+ }, F = (e) => e.roleCode !== "admin", I = (e) => {
91
+ e === "add" && M();
92
+ };
93
+ return (e, t) => {
94
+ let n = p("ut-grid"), c = p("ut-modal-grid"), l = m("spinning");
95
+ return _((u(), a("div", S, [o(n, {
96
+ ref_key: "xgrid",
97
+ ref: T,
98
+ items: k,
99
+ columns: h(j),
100
+ "default-params": s.fetchExtParam,
101
+ "default-value": s.fetchExtParam,
102
+ buttons: O,
103
+ "auto-load": !1,
104
+ url: C,
105
+ "check-method": F,
106
+ mode: "form",
107
+ onButtonClick: I
108
+ }, null, 8, [
109
+ "columns",
110
+ "default-params",
111
+ "default-value"
112
+ ]), s.showModalView ? (u(), r(c, {
113
+ key: 0,
114
+ ref_key: "xmodal",
115
+ ref: E,
116
+ items: k,
117
+ columns: A,
118
+ "show-footer": !0,
119
+ editable: !1,
120
+ title: e.$t("message.udp.roleList"),
121
+ url: "/uums/role",
122
+ width: "60%",
123
+ height: "75%",
124
+ onClose: t[0] ||= (e) => s.showModalView = !1,
125
+ onConfirm: P
126
+ }, null, 8, ["title"])) : i("", !0)])), [[l, s.loading]]);
127
+ };
128
+ }
129
+ }), T = /* @__PURE__ */ e({ default: () => E }), E = w;
130
+ //#endregion
131
+ export { T as n, E as t };