@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
@@ -1,198 +0,0 @@
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 };
@@ -1,162 +0,0 @@
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 };
@@ -1,21 +0,0 @@
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 };
@@ -1,22 +0,0 @@
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 };
@@ -1,131 +0,0 @@
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 };