@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,177 @@
1
+ import { defineComponent as T, ref as $, computed as S, nextTick as I, reactive as q, onBeforeMount as X, resolveComponent as i, openBlock as B, createElementBlock as j, createVNode as a, withCtx as F, createElementVNode as D } from "vue";
2
+ import { useI18n as z } from "vue-i18n";
3
+ import { clone as A } from "xe-utils";
4
+ import { useRoute as J } from "vue-router";
5
+ import { templateRef as O } from "@vueuse/core";
6
+ import { j as V } from "./index-BpdTDaTk.js";
7
+ import { useRender as Y } from "@utogether/utils";
8
+ const H = { class: "ut-drawer-template" }, M = { class: "flex" }, te = /* @__PURE__ */ T({
9
+ __name: "ReportQueryFrom",
10
+ props: {
11
+ show: { type: Boolean, default: !0 },
12
+ record: { default: () => ({}) },
13
+ dataStatus: { default: "add" },
14
+ drawTitle: { default: "报表模板" },
15
+ direction: { default: "rtl" }
16
+ },
17
+ emits: ["onClose"],
18
+ setup(c, { emit: C }) {
19
+ const m = c, { t: _ } = z(), y = J();
20
+ let g = {};
21
+ const w = O("xForm", null), E = $(!1), u = Y(), f = V(), N = S(() => {
22
+ const e = {};
23
+ return r.items.length && r.items.filter((t) => t.required).forEach((t) => {
24
+ e[t.field] = [
25
+ {
26
+ required: !0,
27
+ message: `${_("message.required")}${t?.title ? _(t.title) : ""}`
28
+ }
29
+ ];
30
+ }), e;
31
+ }), s = [
32
+ { field: "fileName", title: "message.fileName", span: 24, itemRender: { name: "$input" } },
33
+ {
34
+ field: "templateName",
35
+ required: !0,
36
+ span: 24,
37
+ itemRender: u.renderSelect(
38
+ {
39
+ optionProps: { label: "tempName", value: "tempName" },
40
+ props: { code: "EXP005", fetchField: "tempName" }
41
+ },
42
+ b
43
+ )
44
+ },
45
+ {
46
+ field: "fileType",
47
+ required: !0,
48
+ span: 24,
49
+ itemRender: {
50
+ name: "$select",
51
+ props: {
52
+ options: [],
53
+ disabled: !0
54
+ }
55
+ }
56
+ }
57
+ ];
58
+ function v() {
59
+ return s.map((e) => (e.title = e.title || `message.${e.field}`, e.span = e.span || 8, e));
60
+ }
61
+ function b(e, t, n, o) {
62
+ o === "templateName" && n[o] && x(t);
63
+ }
64
+ function x(e) {
65
+ g = e, s[2].itemRender.props = {
66
+ disabled: !1,
67
+ options: e.exportFileType.split(",").map((t) => ({ label: t, value: t }))
68
+ }, f.post("EXP010", { templateId: e.id }).then((t) => {
69
+ t.list.forEach((n) => {
70
+ const o = {
71
+ field: n.parameterField,
72
+ title: n.parameterName,
73
+ span: 24,
74
+ dynamicsField: "Y",
75
+ itemRender: R(n)
76
+ };
77
+ s.push(o);
78
+ }), I(() => {
79
+ r.items = v();
80
+ });
81
+ });
82
+ }
83
+ const R = (e) => {
84
+ let t = {};
85
+ switch (e.parameterType) {
86
+ case "date":
87
+ t = { name: "$input", props: { type: "date" } };
88
+ break;
89
+ case "number":
90
+ t = { name: "$input", props: { type: "number" } };
91
+ break;
92
+ default:
93
+ e.selectOptions === "Y" ? e.valueType === "0" ? t = u.renderDict(e.serviceCode) : e.valueType === "1" && (t = u.renderSelect(
94
+ {
95
+ optionProps: { label: e.showField, value: e.valueField },
96
+ props: { code: e.serviceCode, fetchField: e.showField }
97
+ },
98
+ b
99
+ )) : t = { name: "$input" };
100
+ break;
101
+ }
102
+ return t;
103
+ }, k = () => {
104
+ w.value.validate(async (e) => {
105
+ if (!e) {
106
+ const { dataStatus: t } = m, { row: n } = r, o = A(n, !0), d = t === "add" ? "EXP011" : "EXP003", p = {};
107
+ s.forEach((l) => {
108
+ l.dynamicsField && (p[l.field] = o[l.field]);
109
+ }), o.templateId = g.id, o.reportData = JSON.stringify(p), await f.post(d, o), h("submit");
110
+ }
111
+ });
112
+ }, P = C;
113
+ function h(e) {
114
+ P("onClose", e);
115
+ }
116
+ const r = q({
117
+ items: v(),
118
+ fetchParamExt: {},
119
+ row: {}
120
+ });
121
+ return X(() => {
122
+ r.row = m.record, r.fetchParamExt = { templateId: m.record.id }, y?.params?.isJump && (r.row = y.params, f.post("EXP005", { tempName: "", pageSize: 1 }).then((e) => {
123
+ e?.list && (s[1].itemRender.props.options = e.list, r.items = v(), x(e?.list[0]));
124
+ }));
125
+ }), (e, t) => {
126
+ const n = i("vxe-form"), o = i("el-divider"), d = i("ut-button"), p = i("el-row"), l = i("el-drawer");
127
+ return B(), j("div", H, [
128
+ a(l, {
129
+ "model-value": c.show,
130
+ title: c.drawTitle,
131
+ "before-close": h,
132
+ "destroy-on-close": "",
133
+ size: "66%"
134
+ }, {
135
+ default: F(() => [
136
+ D("div", M, [
137
+ a(n, {
138
+ ref_key: "xForm",
139
+ ref: w,
140
+ data: r.row,
141
+ rules: N.value,
142
+ items: r.items,
143
+ loading: E.value,
144
+ "title-colon": "",
145
+ "title-align": "right",
146
+ "title-width": "110"
147
+ }, null, 8, ["data", "rules", "items", "loading"])
148
+ ]),
149
+ a(o),
150
+ a(p, {
151
+ type: "flex",
152
+ justify: "end",
153
+ style: { "padding-right": "22px" }
154
+ }, {
155
+ default: F(() => [
156
+ a(d, {
157
+ content: "cancel",
158
+ onClick: t[0] || (t[0] = (Q) => h())
159
+ }),
160
+ a(d, {
161
+ content: "confirm",
162
+ status: "u-cyan",
163
+ onClick: k
164
+ })
165
+ ]),
166
+ _: 1
167
+ })
168
+ ]),
169
+ _: 1
170
+ }, 8, ["model-value", "title"])
171
+ ]);
172
+ };
173
+ }
174
+ });
175
+ export {
176
+ te as _
177
+ };
@@ -0,0 +1,161 @@
1
+ import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as s, openBlock as f, createElementBlock as O, createBlock as v, createCommentVNode as h } from "vue";
2
+ import { useI18n as q } from "vue-i18n";
3
+ import { clone as U } from "xe-utils";
4
+ import { useRender as V, successMessage as B, warnMessage as M } from "@utogether/utils";
5
+ import { h as C, j as D } from "./index-BpdTDaTk.js";
6
+ const I = "/upms/v1/printTemplateConfig", A = /* @__PURE__ */ E({
7
+ __name: "ReportTemplate",
8
+ setup(W) {
9
+ const {
10
+ t: b
11
+ } = q(), o = V(), d = r(null), l = r(!1), i = r(!1), g = r({}), u = r([]), a = r({}), R = [{
12
+ field: "templateCode",
13
+ title: "message.urpt.templateCode"
14
+ }, {
15
+ field: "templateName",
16
+ title: "message.urpt.templateName"
17
+ }, {
18
+ field: "printPosition",
19
+ title: "message.urpt.printPosition",
20
+ code: "SU.PRINT.VIEW"
21
+ }], k = [{
22
+ type: "checkbox",
23
+ width: 40,
24
+ align: "center"
25
+ }, {
26
+ field: "templateCode",
27
+ title: "message.urpt.templateCode",
28
+ required: !0,
29
+ width: 120,
30
+ editRender: o.renderLov({
31
+ field: "templateCode",
32
+ code: "SU.PRINT.CODE",
33
+ mapField: {
34
+ templateName: "templateName"
35
+ }
36
+ })
37
+ }, {
38
+ field: "templateName",
39
+ title: "message.urpt.templateName",
40
+ width: 180
41
+ }, {
42
+ field: "printPosition",
43
+ title: "message.urpt.printPosition",
44
+ required: !0,
45
+ width: 120,
46
+ formatter: ["formatDict", "SU.PRINT.VIEW"],
47
+ editRender: o.renderDict("SU.PRINT.VIEW")
48
+ }, {
49
+ field: "buttonCode",
50
+ title: "message.urpt.buttonCode",
51
+ width: 120,
52
+ required: !0,
53
+ editRender: o.renderInput()
54
+ }, {
55
+ field: "url",
56
+ title: "message.baseUrl",
57
+ editRender: o.renderInput()
58
+ }, {
59
+ field: "remark",
60
+ editRender: o.renderInput()
61
+ }, {
62
+ field: "operate",
63
+ width: 100,
64
+ fixed: "right",
65
+ slots: {
66
+ default: ({
67
+ row: t
68
+ }) => [p(S, null, [p(s("ut-button"), {
69
+ content: "inv",
70
+ icon: "ri-edit-line",
71
+ onTap: () => y(t)
72
+ }, null)])]
73
+ }
74
+ }], N = () => {
75
+ if (!d.value.getInstance().getCheckboxRecords().length)
76
+ return M(b("message.selectedRecord"));
77
+ u.value = [], u.value.push({
78
+ field: "orgName",
79
+ required: !0,
80
+ itemRender: {
81
+ name: "$checkbox",
82
+ options: C().getOrglist.map((e) => ({
83
+ value: e.id,
84
+ label: e.orgName
85
+ }))
86
+ }
87
+ }), a.value = {}, l.value = !0;
88
+ }, _ = () => {
89
+ if (a.value.orgName) {
90
+ const t = d.value.getInstance().getCheckboxRecords(), e = [];
91
+ t.forEach((m) => {
92
+ a.value.orgName.forEach((c) => {
93
+ const n = U(m, !0);
94
+ n.orgId = c, n.id = null, e.push(n);
95
+ });
96
+ }), D().post(I, e).then(() => {
97
+ l.value = !1, B();
98
+ });
99
+ }
100
+ }, x = {
101
+ toolbarButtonClick({
102
+ code: t
103
+ }) {
104
+ t === "copy" && N();
105
+ }
106
+ }, w = [{
107
+ field: "organizationName",
108
+ required: !0,
109
+ editRender: o.renderInvOrg({
110
+ orgId: C().getOrgId
111
+ })
112
+ }, {
113
+ field: "remark",
114
+ editRender: o.renderInput()
115
+ }], y = (t) => {
116
+ g.value = {
117
+ headerId: t.id
118
+ }, i.value = !0;
119
+ }, P = [{
120
+ code: "copy",
121
+ icon: "ri-file-copy-line",
122
+ status: "warning",
123
+ auth: "copy"
124
+ }];
125
+ return (t, e) => {
126
+ const m = s("ut-grid"), c = s("ut-modal-form"), n = s("ut-modal-grid");
127
+ return f(), O("div", null, [p(m, {
128
+ ref_key: "xgrid",
129
+ ref: d,
130
+ items: R,
131
+ buttons: P,
132
+ columns: k,
133
+ events: x,
134
+ url: I
135
+ }, null, 512), l.value ? (f(), v(c, {
136
+ key: 0,
137
+ ref: "xmodal",
138
+ record: a.value,
139
+ items: u.value,
140
+ width: "400",
141
+ height: "170",
142
+ "data-status": "update",
143
+ title: "单据复制",
144
+ onConfirm: _,
145
+ onClose: e[0] || (e[0] = (T) => l.value = !1)
146
+ }, null, 8, ["record", "items"])) : h("", !0), i.value ? (f(), v(n, {
147
+ key: 1,
148
+ ref: "xmgrid",
149
+ "default-value": g.value,
150
+ columns: w,
151
+ url: "/upms/v1/printTemplateConfigOgn",
152
+ title: "库存组织",
153
+ width: "45%",
154
+ onClose: e[1] || (e[1] = (T) => i.value = !1)
155
+ }, null, 8, ["default-value"])) : h("", !0)]);
156
+ };
157
+ }
158
+ });
159
+ export {
160
+ A as default
161
+ };
@@ -0,0 +1,25 @@
1
+ import { defineComponent as r, ref as e, provide as t, openBlock as i, createElementBlock as _, createElementVNode as o, createVNode as n } from "vue";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js";
3
+ import { _ as d } from "./RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js";
4
+ import { _ as p } from "./index-BpdTDaTk.js";
5
+ const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
6
+ __name: "Role",
7
+ setup(C) {
8
+ const s = e({}), c = e(!1), a = e([]);
9
+ return t("active", s), t("scrollPanelChange", c), t("treeList", a), (l, N) => (i(), _("div", f, [
10
+ o("div", u, [
11
+ n(m, {
12
+ title: l.$t("company"),
13
+ url: "/uums/unit",
14
+ "tree-otions": { children: "children", label: "unitName" }
15
+ }, null, 8, ["title"])
16
+ ]),
17
+ o("div", h, [
18
+ n(d)
19
+ ])
20
+ ]));
21
+ }
22
+ }), x = /* @__PURE__ */ p(v, [["__scopeId", "data-v-e31bcedc"]]);
23
+ export {
24
+ x as default
25
+ };
@@ -0,0 +1,26 @@
1
+ import { defineComponent as l, ref as e, provide as t, openBlock as i, createElementBlock as _, createElementVNode as o, createVNode as s } from "vue";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js";
3
+ import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js";
4
+ import { _ as d } from "./index-BpdTDaTk.js";
5
+ const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, g = { class: "content" }, h = /* @__PURE__ */ l({
6
+ __name: "RoleAssign",
7
+ setup(v) {
8
+ const n = e({}), a = e(!1), r = e([]);
9
+ return t("active", n), t("scrollPanelChange", a), t("treeList", r), (c, C) => (i(), _("div", f, [
10
+ o("div", u, [
11
+ s(m, {
12
+ title: c.$t("SuOrg"),
13
+ "tree-otions": { children: "children", label: "orgName" },
14
+ "default-params": { pageSize: 500 },
15
+ url: "/uums/org"
16
+ }, null, 8, ["title"])
17
+ ]),
18
+ o("div", g, [
19
+ s(p)
20
+ ])
21
+ ]));
22
+ }
23
+ }), A = /* @__PURE__ */ d(h, [["__scopeId", "data-v-ee175fa5"]]);
24
+ export {
25
+ A as default
26
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,152 @@
1
+ import { defineComponent as S, reactive as I, inject as M, ref as r, watch as B, createVNode as o, Fragment as E, resolveComponent as s, openBlock as l, createElementBlock as $, createBlock as i, createCommentVNode as c } from "vue";
2
+ import { useRender as O } from "@utogether/utils";
3
+ import { _ as P } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js";
4
+ import { _ as R } from "./UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js";
5
+ import { j as T, h as j } from "./index-BpdTDaTk.js";
6
+ const q = {
7
+ class: "page-content"
8
+ }, K = /* @__PURE__ */ S({
9
+ __name: "RolePanel",
10
+ setup(H) {
11
+ const e = I({
12
+ record: {},
13
+ showAuthView: !1,
14
+ showModalView: !1,
15
+ showUserView: !1,
16
+ dataStatus: ""
17
+ }), d = M("active"), f = O(), a = r(null), n = r(""), p = r({}), u = r("");
18
+ B(() => d.value, () => {
19
+ v();
20
+ });
21
+ const w = [{
22
+ field: "roleName",
23
+ title: "message.udp.roleName"
24
+ }, {
25
+ field: "roleCode",
26
+ title: "message.udp.roleCode"
27
+ }], g = [{
28
+ field: "roleName",
29
+ title: "message.udp.roleName",
30
+ required: !0
31
+ }, {
32
+ field: "roleCode",
33
+ title: "message.udp.roleCode",
34
+ required: !0
35
+ }, {
36
+ field: "roleDesc",
37
+ title: "message.udp.roleDesc"
38
+ }], _ = [{
39
+ type: "checkbox",
40
+ width: 40,
41
+ align: "center",
42
+ fixed: "left"
43
+ }, {
44
+ field: "roleCode",
45
+ title: "message.udp.roleCode"
46
+ }, {
47
+ field: "roleName",
48
+ title: "message.udp.roleName"
49
+ }, {
50
+ field: "roleDesc",
51
+ title: "message.udp.roleDesc"
52
+ }, {
53
+ field: "enabled",
54
+ width: 90,
55
+ cellRender: f.renderEnabled(A)
56
+ }, {
57
+ field: "operate",
58
+ width: 260,
59
+ fixed: "right",
60
+ slots: {
61
+ default: ({
62
+ row: t
63
+ }) => [o(E, null, [o(s("ut-button"), {
64
+ content: "edit",
65
+ auth: "edit",
66
+ disabled: t.roleCode === "admin",
67
+ onTap: () => k(t)
68
+ }, null), o(s("ut-button"), {
69
+ content: "dispatchUser",
70
+ status: "warning",
71
+ icon: "ri-user-3-line",
72
+ auth: "user",
73
+ onTap: () => y(t)
74
+ }, null), o(s("ut-button"), {
75
+ content: "dispatchAuth",
76
+ status: "success",
77
+ icon: "ri-plane-line",
78
+ auth: "auth",
79
+ onTap: () => D(t)
80
+ }, null)])]
81
+ }
82
+ }], v = () => {
83
+ p.value = {
84
+ unitId: d?.value?.id
85
+ }, a.value.refreshData();
86
+ }, C = (t) => {
87
+ t === "add" && V(), t === "del" && b();
88
+ }, V = () => {
89
+ e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = d?.value?.id, e.record.enabled = "1", e.record.orgId = j().getOrgId, e.showModalView = !0;
90
+ }, k = (t) => {
91
+ n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
92
+ }, b = () => {
93
+ a.value.getInstance().commitProxy("delete");
94
+ }, D = (t) => {
95
+ e.record = t, e.showAuthView = !0;
96
+ }, y = (t) => {
97
+ e.record = t, e.showUserView = !0;
98
+ };
99
+ async function A({
100
+ row: t
101
+ }) {
102
+ if (t.roleCode === "admin") {
103
+ t.enabled = "1";
104
+ return;
105
+ }
106
+ await T().put("/uums/role/singleUpdate", t), a.value.refreshData();
107
+ }
108
+ const m = () => {
109
+ e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
110
+ }, U = (t) => t.roleCode !== "admin";
111
+ return (t, h) => {
112
+ const x = s("ut-grid"), N = s("ut-modal-form");
113
+ return l(), $("div", q, [o(x, {
114
+ ref_key: "xgrid",
115
+ ref: a,
116
+ items: w,
117
+ columns: _,
118
+ "check-method": U,
119
+ url: "/uums/role",
120
+ mode: "form",
121
+ onButtonClick: C
122
+ }, null, 512), e.showAuthView ? (l(), i(P, {
123
+ key: 0,
124
+ show: e.showAuthView,
125
+ record: e.record,
126
+ "data-status": e.dataStatus,
127
+ onOnClose: m
128
+ }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (l(), i(R, {
129
+ key: 1,
130
+ show: e.showUserView,
131
+ record: e.record,
132
+ "data-status": e.dataStatus,
133
+ onOnClose: m
134
+ }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (l(), i(N, {
135
+ key: 2,
136
+ ref: "xmodal",
137
+ record: e.record,
138
+ items: g,
139
+ url: u.value,
140
+ method: n.value,
141
+ width: "400",
142
+ height: "240",
143
+ "data-status": "update",
144
+ title: t.$t("message.title.authEdit"),
145
+ onClose: h[0] || (h[0] = (F) => e.showModalView = !1)
146
+ }, null, 8, ["record", "url", "method", "title"])) : c("", !0)]);
147
+ };
148
+ }
149
+ });
150
+ export {
151
+ K as _
152
+ };
@@ -0,0 +1,131 @@
1
+ import { defineComponent as b, reactive as E, ref as g, inject as M, watch as N, nextTick as B, createVNode as h, resolveComponent as i, resolveDirective as L, withDirectives as P, openBlock as v, createElementBlock as A, unref as R, createBlock as S, createCommentVNode as j } from "vue";
2
+ import { useI18n as T } from "vue-i18n";
3
+ import { clone as U } from "xe-utils";
4
+ import { VxeUI as $ } from "vxe-pc-ui";
5
+ import { i as w, j as _ } from "./index-BpdTDaTk.js";
6
+ import { successMessage as C } from "@utogether/utils";
7
+ const q = {
8
+ class: "page-content"
9
+ }, d = "/uums/orgRole", W = /* @__PURE__ */ b({
10
+ __name: "RolePanel",
11
+ setup(z) {
12
+ const e = E({
13
+ record: {},
14
+ loading: !1,
15
+ showModalView: !1
16
+ }), {
17
+ t: c
18
+ } = T(), n = g(null), u = g(null), t = M("active");
19
+ N(() => t.value, () => {
20
+ t?.value.id && (e.fetchExtParam = {
21
+ orgId: t?.value.id
22
+ }, B(() => {
23
+ n.value.refreshData();
24
+ }));
25
+ });
26
+ const k = [{
27
+ code: "del",
28
+ auth: "/"
29
+ }], m = [{
30
+ field: "roleName",
31
+ title: "message.udp.roleName",
32
+ span: 9
33
+ }, {
34
+ field: "roleCode",
35
+ title: "message.udp.roleCode",
36
+ span: 9
37
+ }], f = [{
38
+ type: "checkbox",
39
+ width: 40
40
+ }, {
41
+ field: "roleCode",
42
+ title: "message.udp.roleCode"
43
+ }, {
44
+ field: "roleName",
45
+ title: "message.udp.roleName"
46
+ }, {
47
+ field: "roleDesc",
48
+ title: "message.udp.roleDesc"
49
+ }, {
50
+ field: "enabled",
51
+ width: 100,
52
+ formatter: ["formatDict", "SU.ENABLE"]
53
+ }], p = U(f, !0);
54
+ p.push({
55
+ field: "operate",
56
+ width: 80,
57
+ fixed: "right",
58
+ slots: {
59
+ default: ({
60
+ row: o
61
+ }) => o.roleCode === "admin" ? null : [h(i("ut-button"), {
62
+ icon: "ri-delete-bin-5-fill",
63
+ content: "del",
64
+ status: "danger",
65
+ auth: "del",
66
+ onTap: () => D(o)
67
+ }, null)]
68
+ }
69
+ });
70
+ const x = () => {
71
+ e.record = {}, e.record.orgId = t.value.id, e.showModalView = !0;
72
+ }, D = async (o) => {
73
+ if (await $.modal.confirm(c("message.tip.del")) === "confirm") {
74
+ const r = {
75
+ orgId: t.value.id,
76
+ roleId: o.id
77
+ };
78
+ e.loading = !0;
79
+ const [s] = await w(_().delete(d, r));
80
+ s || C(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
81
+ }
82
+ }, I = async (o) => {
83
+ const a = [];
84
+ o.forEach((l) => {
85
+ l.orgId = t.value.id, l.roleId = l.id, a.push(l);
86
+ });
87
+ const r = {
88
+ orgRoleList: a
89
+ };
90
+ u.value.showLoading();
91
+ const [s] = await w(_().post(d, r));
92
+ s || (C(), n.value.refreshData(), e.showModalView = !1);
93
+ }, y = (o) => o.roleCode !== "admin", V = (o) => {
94
+ o === "add" && x();
95
+ };
96
+ return (o, a) => {
97
+ const r = i("ut-grid"), s = i("ut-modal-grid"), l = L("spinning");
98
+ return P((v(), A("div", q, [h(r, {
99
+ ref_key: "xgrid",
100
+ ref: n,
101
+ items: m,
102
+ columns: R(p),
103
+ "default-params": e.fetchExtParam,
104
+ "default-value": e.fetchExtParam,
105
+ buttons: k,
106
+ "auto-load": !1,
107
+ url: d,
108
+ "check-method": y,
109
+ mode: "form",
110
+ onButtonClick: V
111
+ }, null, 8, ["columns", "default-params", "default-value"]), e.showModalView ? (v(), S(s, {
112
+ key: 0,
113
+ ref_key: "xmodal",
114
+ ref: u,
115
+ items: m,
116
+ columns: f,
117
+ "show-footer": !0,
118
+ editable: !1,
119
+ title: o.$t("message.udp.roleList"),
120
+ url: "/uums/role",
121
+ width: "60%",
122
+ height: "75%",
123
+ onClose: a[0] || (a[0] = (F) => e.showModalView = !1),
124
+ onConfirm: I
125
+ }, null, 8, ["title"])) : j("", !0)])), [[l, e.loading]]);
126
+ };
127
+ }
128
+ });
129
+ export {
130
+ W as _
131
+ };