@utogether/udp-core 2.0.0-beta.3 → 2.0.0-beta.5

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 (134) hide show
  1. package/dist/{403-CxOqlq0f.js → 403-y4Id7pky.js} +1 -1
  2. package/dist/{404-xdB6lFeQ.js → 404-DdxstlUr.js} +1 -1
  3. package/dist/{500-C94bRK2S.js → 500-BpsDn21g.js} +1 -1
  4. package/dist/{AuthorityInfo-Dy3b_nFN.js → AuthorityInfo-0CnlrZVd.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY.js → AuthorityInfo.vue_vue_type_style_index_0_lang-D5cXM84w.js} +1 -1
  6. package/dist/{Company-gKkfnhLt.js → Company-BPAqJfZm.js} +3 -3
  7. package/dist/{CompanyPanel-BF5Pc35s.js → CompanyPanel-CCeM96w4.js} +7 -7
  8. package/dist/{Department-D0I3QVZe.js → Department-BsLrIIrS.js} +3 -3
  9. package/dist/{DepartmentPanel-2LHODgc7.js → DepartmentPanel-B2YqwLmq.js} +20 -20
  10. package/dist/{DesignPanel-CtF3cAAQ.js → DesignPanel-CVSOCMvU.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt.js → DesignPanel.vue_vue_type_style_index_0_lang-Dte8DQnU.js} +2 -2
  12. package/dist/{DictView-H3V5hxg3.js → DictView-CKVpPtFg.js} +1 -1
  13. package/dist/{InvOrganization-BiGLnbqe.js → InvOrganization-BBODO8aK.js} +1 -1
  14. package/dist/{Org-DQTCQHNY.js → Org-BYRi0OAt.js} +1 -1
  15. package/dist/{Preview-DXaiis29.js → Preview-COI8NwWh.js} +1 -1
  16. package/dist/{ReportDefine-BLh4CiER.js → ReportDefine-Dbh_8ykf.js} +1 -1
  17. package/dist/{ReportDesign-Ni1YxrLC.js → ReportDesign-DOeKYL9V.js} +6 -6
  18. package/dist/{ReportQuery-C8G88_qF.js → ReportQuery-Bb4r9lNR.js} +1 -1
  19. package/dist/{ReportQueryFrom-CuZKPtB4.js → ReportQueryFrom-CavcWtL3.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-tuLRWEK9.js} +7 -7
  21. package/dist/{ReportTemplate-DFnDXWmx.js → ReportTemplate-C9NzPxM4.js} +8 -8
  22. package/dist/{Role-BQ7hsfPn.js → Role-Bqt4d9Lz.js} +3 -3
  23. package/dist/{RoleAssign-UPCg2d4G.js → RoleAssign-CWcytVz3.js} +3 -3
  24. package/dist/{RolePanel-CoSXOCZN.js → RolePanel-Di5nsMqt.js} +1 -1
  25. package/dist/{RolePanel-C-mQ5XRq.js → RolePanel-DlU0aCnL.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF.js → RolePanel.vue_vue_type_script_setup_true_lang-BOq0iJsT.js} +7 -7
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8.js → RolePanel.vue_vue_type_script_setup_true_lang-hzbUepuW.js} +7 -7
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk.js → ScrollPanel.vue_vue_type_style_index_0_lang-Bg3rg4P4.js} +1 -1
  29. package/dist/{Staff-D-CmvG1R.js → Staff-DXr2Ka1N.js} +3 -3
  30. package/dist/{StaffInfo-Idhvuc6e.js → StaffInfo-C6lDK0S_.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU.js → StaffInfo.vue_vue_type_script_setup_true_lang-YRJm87-b.js} +1 -1
  32. package/dist/{StaffPanel-CDDmAYE5.js → StaffPanel-WNpg0HWl.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee.js → StaffPanel.vue_vue_type_script_setup_true_lang-azLpvFRo.js} +8 -8
  34. package/dist/{SysUser-a-j5bppr.js → SysUser-Dph6Qi_a.js} +2 -2
  35. package/dist/{SysUserPanel-6V232wwB.js → SysUserPanel-Iz024NS_.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy.js → SysUserPanel.vue_vue_type_script_setup_true_lang-D8GUQHic.js} +1 -1
  37. package/dist/{SystemMenu-BnVeOSOQ.js → SystemMenu-6mTYGwbK.js} +6 -6
  38. package/dist/{UserInfo-Cax9b2nw.js → UserInfo-RQ7VgSbk.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9.js → UserInfo.vue_vue_type_style_index_0_lang-BYp2-i9R.js} +1 -1
  40. package/dist/{childView-DKG3eZo8.js → childView-B8L4By2o.js} +1 -1
  41. package/dist/{childView-siumuBz0.js → childView-nCa8t4tr.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-CUfXDS1q.js → childView.vue_vue_type_style_index_0_lang-Bl1MzDS9.js} +7 -7
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-CW3EbAmW.js → childView.vue_vue_type_style_index_0_lang-DDx9z61J.js} +7 -7
  44. package/dist/{code-rule-Dtoree6F.js → code-rule-8dQLPHni.js} +1 -1
  45. package/dist/core.es.js +10 -10
  46. package/dist/{cron-task-GSRgA7S5.js → cron-task-aDBWT_Uh.js} +1 -1
  47. package/dist/{frameView-Cy6wxW0K.js → frameView-DM3flfo5.js} +1 -1
  48. package/dist/{index-Dc7xWMiC.js → index-ClHeZ3q4.js} +88 -88
  49. package/dist/{layout-home-3Dy4onl4.js → layout-home-DNPOu6R4.js} +27 -23
  50. package/dist/{layoutView-DMjNscJ-.js → layoutView-Ymyja_uK.js} +1 -1
  51. package/dist/{log-in-VAG6Cvcx.js → log-in-DtHf5ZcG.js} +8 -8
  52. package/dist/{log-out-DZGaMCjC.js → log-out-DZ8OkPM6.js} +3 -3
  53. package/dist/{login-CqVMdNHs.js → login-CoX7TNHE.js} +15 -15
  54. package/dist/{lov-view-Cc68_28B.js → lov-view-BWtIPBNm.js} +6 -6
  55. package/dist/{menuInfo-BIrIaJlH.js → menuInfo-wG5Zt00s.js} +1 -1
  56. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X.js → menuInfo.vue_vue_type_style_index_0_lang-DiPeALce.js} +1 -1
  57. package/dist/{pda-app-DnjphrRS.js → pda-app-9b3JC2he.js} +8 -8
  58. package/dist/{resource-DISgPDM7.js → resource-DiHXYgfm.js} +4 -4
  59. package/dist/{su-welcome-CYYy-dzr-D3RKPoB0.js → su-welcome-COvSPTOW.js} +21215 -21131
  60. package/dist/{sys-config-Yc9vh1t1.js → sys-config-Mm50Y0LQ.js} +12 -12
  61. package/dist/udp-core.css +1 -1
  62. package/package.json +1 -1
  63. package/src/plugins/vxe-table/index.ts +116 -116
  64. package/src/views/system/layout/layout-home.vue +6 -5
  65. package/src/views/ufile/aggregation/File.vue +87 -87
  66. package/src/views/uhome/components/home-todo.vue +6 -6
  67. package/src/views/uhome/su-welcome.vue +2 -4
  68. package/vite.config.ts +0 -1
  69. package/dist/403-WCboRvzZ-ZAPgYStl.js +0 -65
  70. package/dist/404-2V0Qi-d7-DkNwQggp.js +0 -65
  71. package/dist/500-BYfzvixf-CGpEieyQ.js +0 -67
  72. package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5.js +0 -4
  73. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz.js +0 -100
  74. package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +0 -4
  75. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +0 -114
  76. package/dist/Company-B4vsXy2I-CkNCOqjJ.js +0 -25
  77. package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_.js +0 -206
  78. package/dist/DataSet-DT-rGICv-DaUfgbxk.js +0 -147
  79. package/dist/Department-D0dVUrGC-C6HJcYI1.js +0 -25
  80. package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd.js +0 -254
  81. package/dist/DesignPanel-DdFl_ohi-uCwFxcl1.js +0 -4
  82. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY.js +0 -1013
  83. package/dist/DictView-BzQLOf_P-DDicwdmM.js +0 -111
  84. package/dist/InvOrganization-atbhw0CI-BABbVt9V.js +0 -74
  85. package/dist/Org-BW1YHG-Q-Cow7JWlD.js +0 -39
  86. package/dist/Preview-DJtVsoq1-CCGidQjJ.js +0 -48
  87. package/dist/ReportDefine-CNx_ob99-6NQAHK-Q.js +0 -10
  88. package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp.js +0 -165
  89. package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda.js +0 -75
  90. package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy.js +0 -4
  91. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl.js +0 -178
  92. package/dist/ReportTemplate-BDANdIWv-D_IGjR1w.js +0 -161
  93. package/dist/Role-ByB0WbxW-5E8Mb148.js +0 -25
  94. package/dist/RoleAssign-DW6iC_0v-Bis61auk.js +0 -26
  95. package/dist/RolePanel-BM2MaQPU-CgcsbfaX.js +0 -4
  96. package/dist/RolePanel-ClQy8DBL-DARL4O-o.js +0 -4
  97. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js +0 -132
  98. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js +0 -154
  99. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js +0 -100
  100. package/dist/Staff-CuxzvhD9-D0KTcyRh.js +0 -25
  101. package/dist/StaffInfo-CY7gUICu-EZUhUwIp.js +0 -4
  102. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn.js +0 -108
  103. package/dist/StaffPanel-CwqG0_xr-CrvzLJoc.js +0 -4
  104. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0.js +0 -143
  105. package/dist/SysUser-9Q2UJWhi-DprWXFlR.js +0 -15
  106. package/dist/SysUserPanel-bJy69O7x-BJtBgFEs.js +0 -4
  107. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen.js +0 -356
  108. package/dist/SystemMenu-DGOAolc1-CJSLHP8i.js +0 -156
  109. package/dist/UserInfo-CKoOHkAM-DDWp0I_U.js +0 -4
  110. package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js +0 -160
  111. package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +0 -10
  112. package/dist/childView-0YZQ6GBn-CEqg7k5d.js +0 -4
  113. package/dist/childView-DKkgi3yo-D47ft-vi.js +0 -4
  114. package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa.js +0 -143
  115. package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK.js +0 -180
  116. package/dist/code-rule-wQyfgpNL-C4evD4Co.js +0 -148
  117. package/dist/cron-task-C-kryDtd-C0NuGZCe.js +0 -135
  118. package/dist/flow-task-B07st2aD-CgQvagSQ.js +0 -10
  119. package/dist/frameView-BOGA3ezf-QoSxzmSQ.js +0 -44
  120. package/dist/layout-home-CYHksXN_-Basy-3IH.js +0 -228
  121. package/dist/layoutView-BaRvAbIa-xVgfqspc.js +0 -3302
  122. package/dist/log-in-Cx1dGik8-BVeEHeZ8.js +0 -117
  123. package/dist/log-out-COYdxrNC-ftopGZdE.js +0 -130
  124. package/dist/login-Dg9ofNS8-Bocp1XMA.js +0 -241
  125. package/dist/login-log-DJBGJVV0-AoOyj0jD.js +0 -70
  126. package/dist/lov-view-C0T5prk8-B2DBmn55.js +0 -97
  127. package/dist/menuInfo-BZJ_q7bz-Drho-_QC.js +0 -4
  128. package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf.js +0 -363
  129. package/dist/pda-app-m9hsppHo-B4xyja1o.js +0 -710
  130. package/dist/redirect-BqegffKC-CBCIuqmz.js +0 -15
  131. package/dist/resource-C6KEIXu--B_ddyecm.js +0 -97
  132. package/dist/su-welcome-BjbuSrBZ.js +0 -49424
  133. package/dist/sys-config-DCjJGtht-DARDjlrt.js +0 -370
  134. package/dist/utogether-MlnyYtNS-CGgjFNPS.js +0 -4
@@ -1,178 +0,0 @@
1
- import { defineComponent as $, ref as S, computed as _, reactive as q, nextTick as X, onBeforeMount as B, resolveComponent as s, createElementBlock as I, openBlock as z, createVNode as i, withCtx as N, createElementVNode as D } from "vue";
2
- import { useI18n as J } from "vue-i18n";
3
- import { clone as M } from "xe-utils";
4
- import { useRoute as O } from "vue-router";
5
- import { templateRef as Q } from "@vueuse/core";
6
- import { W as V } from "./su-welcome-BjbuSrBZ.js";
7
- import { useRender as W } from "@utogether/utils";
8
- const Y = { class: "ut-drawer-template" }, j = { class: "flex" }, te = /* @__PURE__ */ $({
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(x, { emit: F }) {
19
- const p = x, { t: y } = J(), u = O();
20
- let w = {};
21
- const b = Q("xForm", null), R = S(!1), c = W(), f = V(), k = _(() => {
22
- const e = {};
23
- return l.items.length && l.items.filter((t) => t.required).forEach((t) => {
24
- e[t.field] = [
25
- {
26
- required: !0,
27
- message: `${y("message.required")}${t != null && t.title ? y(t.title) : ""}`
28
- }
29
- ];
30
- }), e;
31
- }), o = [
32
- { field: "fileName", title: "message.fileName", span: 24, itemRender: { name: "$input" } },
33
- {
34
- field: "templateName",
35
- required: !0,
36
- span: 24,
37
- itemRender: c.renderSelect(
38
- {
39
- optionProps: { label: "tempName", value: "tempName" },
40
- props: { code: "EXP005", fetchField: "tempName" }
41
- },
42
- g
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 o.map((e) => (e.title = e.title || `message.${e.field}`, e.span = e.span || 8, e));
60
- }
61
- function g(e, t, a, r) {
62
- r === "templateName" && a[r] && E(t);
63
- }
64
- function E(e) {
65
- w = e, o[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((a) => {
70
- const r = {
71
- field: a.parameterField,
72
- title: a.parameterName,
73
- span: 24,
74
- dynamicsField: "Y",
75
- itemRender: P(a)
76
- };
77
- o.push(r);
78
- }), X(() => {
79
- l.items = v();
80
- });
81
- });
82
- }
83
- const P = (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 = c.renderDict(e.serviceCode) : e.valueType === "1" && (t = c.renderSelect(
94
- {
95
- optionProps: { label: e.showField, value: e.valueField },
96
- props: { code: e.serviceCode, fetchField: e.showField }
97
- },
98
- g
99
- )) : t = { name: "$input" };
100
- break;
101
- }
102
- return t;
103
- }, C = () => {
104
- b.value.validate(async (e) => {
105
- if (!e) {
106
- const { dataStatus: t } = p, { row: a } = l, r = M(a, !0), d = t === "add" ? "EXP011" : "EXP003", m = {};
107
- o.forEach((n) => {
108
- n.dynamicsField && (m[n.field] = r[n.field]);
109
- }), r.templateId = w.id, r.reportData = JSON.stringify(m), await f.post(d, r), h("submit");
110
- }
111
- });
112
- }, T = F;
113
- function h(e) {
114
- T("onClose", e);
115
- }
116
- const l = q({
117
- items: v(),
118
- fetchParamExt: {},
119
- row: {}
120
- });
121
- return B(() => {
122
- var e;
123
- l.row = p.record, l.fetchParamExt = { templateId: p.record.id }, (e = u == null ? void 0 : u.params) != null && e.isJump && (l.row = u.params, f.post("EXP005", { tempName: "", pageSize: 1 }).then((t) => {
124
- t != null && t.list && (o[1].itemRender.props.options = t.list, l.items = v(), E(t == null ? void 0 : t.list[0]));
125
- }));
126
- }), (e, t) => {
127
- const a = s("vxe-form"), r = s("el-divider"), d = s("ut-button"), m = s("el-row"), n = s("el-drawer");
128
- return z(), I("div", Y, [
129
- i(n, {
130
- "model-value": e.show,
131
- title: e.drawTitle,
132
- "before-close": h,
133
- "destroy-on-close": "",
134
- size: "66%"
135
- }, {
136
- default: N(() => [
137
- D("div", j, [
138
- i(a, {
139
- ref_key: "xForm",
140
- ref: b,
141
- data: l.row,
142
- rules: k.value,
143
- items: l.items,
144
- loading: R.value,
145
- "title-colon": "",
146
- "title-align": "right",
147
- "title-width": "110"
148
- }, null, 8, ["data", "rules", "items", "loading"])
149
- ]),
150
- i(r),
151
- i(m, {
152
- type: "flex",
153
- justify: "end",
154
- style: { "padding-right": "22px" }
155
- }, {
156
- default: N(() => [
157
- i(d, {
158
- content: "cancel",
159
- onClick: t[0] || (t[0] = (H) => h())
160
- }),
161
- i(d, {
162
- content: "confirm",
163
- status: "u-cyan",
164
- onClick: C
165
- })
166
- ]),
167
- _: 1
168
- })
169
- ]),
170
- _: 1
171
- }, 8, ["model-value", "title"])
172
- ]);
173
- };
174
- }
175
- });
176
- export {
177
- te as t
178
- };
@@ -1,161 +0,0 @@
1
- import { defineComponent as W, ref as l, createVNode as c, Fragment as q, resolveComponent as n, createElementBlock as O, openBlock as f, createBlock as v, createCommentVNode as h } from "vue";
2
- import { useI18n as U } from "vue-i18n";
3
- import { clone as V } from "xe-utils";
4
- import { useRender as B, successMessage as M, warnMessage as S } from "@utogether/utils";
5
- import { M as I, W as _ } from "./su-welcome-BjbuSrBZ.js";
6
- const C = "/upms/v1/printTemplateConfig", A = /* @__PURE__ */ W({
7
- __name: "ReportTemplate",
8
- setup(D) {
9
- const {
10
- t: N
11
- } = U(), t = B(), d = l(null), o = l(!1), u = l(!1), g = l({}), s = l([]), i = l({}), 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: t.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: t.renderDict("SU.PRINT.VIEW")
48
- }, {
49
- field: "buttonCode",
50
- title: "message.urpt.buttonCode",
51
- width: 120,
52
- required: !0,
53
- editRender: t.renderInput()
54
- }, {
55
- field: "url",
56
- title: "message.baseUrl",
57
- editRender: t.renderInput()
58
- }, {
59
- field: "remark",
60
- editRender: t.renderInput()
61
- }, {
62
- field: "operate",
63
- width: 100,
64
- fixed: "right",
65
- slots: {
66
- default: ({
67
- row: e
68
- }) => [c(q, null, [c(n("ut-button"), {
69
- content: "inv",
70
- icon: "ri-edit-line",
71
- onTap: () => y(e)
72
- }, null)])]
73
- }
74
- }], b = () => {
75
- if (!d.value.getInstance().getCheckboxRecords().length)
76
- return S(N("message.selectedRecord"));
77
- s.value = [], s.value.push({
78
- field: "orgName",
79
- required: !0,
80
- itemRender: {
81
- name: "$checkbox",
82
- options: I().getOrglist.map((e) => ({
83
- value: e.id,
84
- label: e.orgName
85
- }))
86
- }
87
- }), i.value = {}, o.value = !0;
88
- }, w = () => {
89
- if (i.value.orgName) {
90
- const e = d.value.getInstance().getCheckboxRecords(), r = [];
91
- e.forEach((m) => {
92
- i.value.orgName.forEach((p) => {
93
- const a = V(m, !0);
94
- a.orgId = p, a.id = null, r.push(a);
95
- });
96
- }), _().post(C, r).then(() => {
97
- o.value = !1, M();
98
- });
99
- }
100
- }, x = {
101
- toolbarButtonClick({
102
- code: e
103
- }) {
104
- e === "copy" && b();
105
- }
106
- }, T = [{
107
- field: "organizationName",
108
- required: !0,
109
- editRender: t.renderInvOrg({
110
- orgId: I().getOrgId
111
- })
112
- }, {
113
- field: "remark",
114
- editRender: t.renderInput()
115
- }], y = (e) => {
116
- g.value = {
117
- headerId: e.id
118
- }, u.value = !0;
119
- }, P = [{
120
- code: "copy",
121
- icon: "ri-file-copy-line",
122
- status: "warning",
123
- auth: "copy"
124
- }];
125
- return (e, r) => {
126
- const m = n("ut-grid"), p = n("ut-modal-form"), a = n("ut-modal-grid");
127
- return f(), O("div", null, [c(m, {
128
- ref_key: "xgrid",
129
- ref: d,
130
- items: R,
131
- buttons: P,
132
- columns: k,
133
- events: x,
134
- url: C
135
- }, null, 512), o.value ? (f(), v(p, {
136
- key: 0,
137
- ref: "xmodal",
138
- record: i.value,
139
- items: s.value,
140
- width: "400",
141
- height: "170",
142
- "data-status": "update",
143
- title: "单据复制",
144
- onConfirm: w,
145
- onClose: r[0] || (r[0] = (E) => o.value = !1)
146
- }, null, 8, ["record", "items"])) : h("", !0), u.value ? (f(), v(a, {
147
- key: 1,
148
- ref: "xmgrid",
149
- "default-value": g.value,
150
- columns: T,
151
- url: "/upms/v1/printTemplateConfigOgn",
152
- title: "库存组织",
153
- width: "45%",
154
- onClose: r[1] || (r[1] = (E) => u.value = !1)
155
- }, null, 8, ["default-value"])) : h("", !0)]);
156
- };
157
- }
158
- });
159
- export {
160
- A as default
161
- };
@@ -1,25 +0,0 @@
1
- import { defineComponent as s, ref as e, createElementBlock as i, provide as t, openBlock as m, createElementVNode as o, createVNode as l } from "vue";
2
- import { K as d } from "./ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js";
3
- import { K as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js";
4
- import { t as u } from "./su-welcome-BjbuSrBZ.js";
5
- const f = { class: "u-content-panel" }, v = { class: "u-left-panel" }, h = { class: "content" }, N = /* @__PURE__ */ s({
6
- __name: "Role",
7
- setup(_) {
8
- const n = e({}), a = e(!1), r = e([]);
9
- return t("active", n), t("scrollPanelChange", a), t("treeList", r), (c, C) => (m(), i("div", f, [
10
- o("div", v, [
11
- l(d, {
12
- title: c.$t("company"),
13
- url: "/uums/unit",
14
- "tree-otions": { children: "children", label: "unitName" }
15
- }, null, 8, ["title"])
16
- ]),
17
- o("div", h, [
18
- l(p)
19
- ])
20
- ]));
21
- }
22
- }), B = /* @__PURE__ */ u(N, [["__scopeId", "data-v-e31bcedc"]]);
23
- export {
24
- B as default
25
- };
@@ -1,26 +0,0 @@
1
- import { defineComponent as i, ref as e, createElementBlock as c, provide as t, openBlock as m, createElementVNode as o, createVNode as r } from "vue";
2
- import { K as p } from "./ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3.js";
3
- import { X as d } from "./RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js";
4
- import { t as f } from "./su-welcome-BjbuSrBZ.js";
5
- const u = { class: "u-content-panel" }, g = { class: "u-left-panel" }, v = { class: "content" }, h = /* @__PURE__ */ i({
6
- __name: "RoleAssign",
7
- setup(_) {
8
- const a = e({}), l = e(!1), n = e([]);
9
- return t("active", a), t("scrollPanelChange", l), t("treeList", n), (s, C) => (m(), c("div", u, [
10
- o("div", g, [
11
- r(p, {
12
- title: s.$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", v, [
19
- r(d)
20
- ])
21
- ]));
22
- }
23
- }), E = /* @__PURE__ */ f(h, [["__scopeId", "data-v-ee175fa5"]]);
24
- export {
25
- E as default
26
- };
@@ -1,4 +0,0 @@
1
- import { K as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy.js";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { X as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI.js";
2
- export {
3
- f as default
4
- };
@@ -1,132 +0,0 @@
1
- import { defineComponent as N, reactive as b, ref as h, inject as M, watch as B, nextTick as L, createVNode as g, resolveComponent as i, resolveDirective as P, withDirectives as _, createElementBlock as R, openBlock as w, createBlock as S, createCommentVNode as T, unref as U } from "vue";
2
- import { useI18n as W } from "vue-i18n";
3
- import { clone as $ } from "xe-utils";
4
- import { VxeUI as j } from "vxe-pc-ui";
5
- import { c as v } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
6
- import { successMessage as C } from "@utogether/utils";
7
- import { W as k } from "./su-welcome-BjbuSrBZ.js";
8
- const q = {
9
- class: "page-content"
10
- }, n = "/uums/orgRole", Q = /* @__PURE__ */ N({
11
- __name: "RolePanel",
12
- setup(z) {
13
- const e = b({
14
- record: {},
15
- loading: !1,
16
- showModalView: !1
17
- }), {
18
- t: u
19
- } = W(), s = h(null), c = h(null), t = M("active");
20
- B(() => t.value, () => {
21
- t != null && t.value.id && (e.fetchExtParam = {
22
- orgId: t == null ? void 0 : t.value.id
23
- }, L(() => {
24
- s.value.refreshData();
25
- }));
26
- });
27
- const x = [{
28
- code: "del",
29
- auth: "/"
30
- }], m = [{
31
- field: "roleName",
32
- title: "message.udp.roleName",
33
- span: 9
34
- }, {
35
- field: "roleCode",
36
- title: "message.udp.roleCode",
37
- span: 9
38
- }], f = [{
39
- type: "checkbox",
40
- width: 40
41
- }, {
42
- field: "roleCode",
43
- title: "message.udp.roleCode"
44
- }, {
45
- field: "roleName",
46
- title: "message.udp.roleName"
47
- }, {
48
- field: "roleDesc",
49
- title: "message.udp.roleDesc"
50
- }, {
51
- field: "enabled",
52
- width: 100,
53
- formatter: ["formatDict", "SU.ENABLE"]
54
- }], p = $(f, !0);
55
- p.push({
56
- field: "operate",
57
- width: 80,
58
- fixed: "right",
59
- slots: {
60
- default: ({
61
- row: o
62
- }) => o.roleCode === "admin" ? null : [g(i("ut-button"), {
63
- icon: "ri-delete-bin-5-fill",
64
- content: "del",
65
- status: "danger",
66
- auth: "del",
67
- onTap: () => I(o)
68
- }, null)]
69
- }
70
- });
71
- const D = () => {
72
- e.record = {}, e.record.orgId = t.value.id, e.showModalView = !0;
73
- }, I = async (o) => {
74
- if (await j.modal.confirm(u("message.tip.del")) === "confirm") {
75
- const l = {
76
- orgId: t.value.id,
77
- roleId: o.id
78
- };
79
- e.loading = !0;
80
- const [r] = await v(k().delete(n, l));
81
- r || C(u("message.operateSuccess")), s.value.refreshData(), e.loading = !1;
82
- }
83
- }, V = async (o) => {
84
- const l = [];
85
- o.forEach((a) => {
86
- a.orgId = t.value.id, a.roleId = a.id, l.push(a);
87
- });
88
- const r = {
89
- orgRoleList: l
90
- };
91
- c.value.showLoading();
92
- const [d] = await v(k().post(n, r));
93
- d || (C(), s.value.refreshData(), e.showModalView = !1);
94
- }, y = (o) => o.roleCode !== "admin", E = (o) => {
95
- o === "add" && D();
96
- };
97
- return (o, l) => {
98
- const r = i("ut-grid"), d = i("ut-modal-grid"), a = P("spinning");
99
- return _((w(), R("div", q, [g(r, {
100
- ref_key: "xgrid",
101
- ref: s,
102
- items: m,
103
- columns: U(p),
104
- "default-params": e.fetchExtParam,
105
- "default-value": e.fetchExtParam,
106
- buttons: x,
107
- "auto-load": !1,
108
- url: n,
109
- "check-method": y,
110
- mode: "form",
111
- onButtonClick: E
112
- }, null, 8, ["columns", "default-params", "default-value"]), e.showModalView ? (w(), S(d, {
113
- key: 0,
114
- ref_key: "xmodal",
115
- ref: c,
116
- items: m,
117
- columns: f,
118
- "show-footer": !0,
119
- editable: !1,
120
- title: o.$t("message.udp.roleList"),
121
- url: "/uums/role",
122
- width: "60%",
123
- height: "75%",
124
- onClose: l[0] || (l[0] = (A) => e.showModalView = !1),
125
- onConfirm: V
126
- }, null, 8, ["title"])) : T("", !0)])), [[a, e.loading]]);
127
- };
128
- }
129
- });
130
- export {
131
- Q as X
132
- };
@@ -1,154 +0,0 @@
1
- import { defineComponent as I, reactive as S, inject as B, ref as d, watch as _, createVNode as r, Fragment as E, resolveComponent as l, createElementBlock as H, openBlock as s, createBlock as n, createCommentVNode as c } from "vue";
2
- import { useRender as O } from "@utogether/utils";
3
- import { H as R } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz.js";
4
- import { D as T } from "./UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO.js";
5
- import { W as $, M as j } from "./su-welcome-BjbuSrBZ.js";
6
- const q = {
7
- class: "page-content"
8
- }, L = /* @__PURE__ */ I({
9
- __name: "RolePanel",
10
- setup(F) {
11
- const e = S({
12
- record: {},
13
- showAuthView: !1,
14
- showModalView: !1,
15
- showUserView: !1,
16
- dataStatus: ""
17
- }), o = B("active"), w = O(), a = d(null), u = d(""), f = d({}), i = d("");
18
- _(() => o.value, () => {
19
- V();
20
- });
21
- const p = [{
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
- }], v = [{
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: w.renderEnabled(x)
56
- }, {
57
- field: "operate",
58
- width: 260,
59
- fixed: "right",
60
- slots: {
61
- default: ({
62
- row: t
63
- }) => [r(E, null, [r(l("ut-button"), {
64
- content: "edit",
65
- auth: "edit",
66
- disabled: t.roleCode === "admin",
67
- onTap: () => b(t)
68
- }, null), r(l("ut-button"), {
69
- content: "dispatchUser",
70
- status: "warning",
71
- icon: "ri-user-3-line",
72
- auth: "user",
73
- onTap: () => U(t)
74
- }, null), r(l("ut-button"), {
75
- content: "dispatchAuth",
76
- status: "success",
77
- icon: "ri-plane-line",
78
- auth: "auth",
79
- onTap: () => N(t)
80
- }, null)])]
81
- }
82
- }], V = () => {
83
- var t;
84
- f.value = {
85
- unitId: (t = o == null ? void 0 : o.value) == null ? void 0 : t.id
86
- }, a.value.refreshData();
87
- }, C = (t) => {
88
- t === "add" && k(), t === "del" && D();
89
- }, k = () => {
90
- var t;
91
- e.dataStatus = "add", u.value = "post", i.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId = j().getOrgId, e.showModalView = !0;
92
- }, b = (t) => {
93
- u.value = "put", i.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
94
- }, D = () => {
95
- a.value.getInstance().commitProxy("delete");
96
- }, N = (t) => {
97
- e.record = t, e.showAuthView = !0;
98
- }, U = (t) => {
99
- e.record = t, e.showUserView = !0;
100
- };
101
- async function x({
102
- row: t
103
- }) {
104
- if (t.roleCode === "admin") {
105
- t.enabled = "1";
106
- return;
107
- }
108
- await $().put("/uums/role/singleUpdate", t), a.value.refreshData();
109
- }
110
- const m = () => {
111
- e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
112
- }, y = (t) => t.roleCode !== "admin";
113
- return (t, h) => {
114
- const A = l("ut-grid"), M = l("ut-modal-form");
115
- return s(), H("div", q, [r(A, {
116
- ref_key: "xgrid",
117
- ref: a,
118
- items: p,
119
- columns: v,
120
- "check-method": y,
121
- url: "/uums/role",
122
- mode: "form",
123
- onButtonClick: C
124
- }, null, 512), e.showAuthView ? (s(), n(R, {
125
- key: 0,
126
- show: e.showAuthView,
127
- record: e.record,
128
- "data-status": e.dataStatus,
129
- onOnClose: m
130
- }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (s(), n(T, {
131
- key: 1,
132
- show: e.showUserView,
133
- record: e.record,
134
- "data-status": e.dataStatus,
135
- onOnClose: m
136
- }, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (s(), n(M, {
137
- key: 2,
138
- ref: "xmodal",
139
- record: e.record,
140
- items: g,
141
- url: i.value,
142
- method: u.value,
143
- width: "400",
144
- height: "240",
145
- "data-status": "update",
146
- title: t.$t("message.title.authEdit"),
147
- onClose: h[0] || (h[0] = (P) => e.showModalView = !1)
148
- }, null, 8, ["record", "url", "method", "title"])) : c("", !0)]);
149
- };
150
- }
151
- });
152
- export {
153
- L as K
154
- };