@utogether/udp-core 1.0.1-beta.5 → 1.0.1-beta.7

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 (98) hide show
  1. package/dist/{403-CP2RkkAy.js → 403-BQZ5OAKL.js} +10 -10
  2. package/dist/{404-DwK-0wNQ.js → 404-H55ex36i.js} +4 -4
  3. package/dist/{500-CLbJDqnd.js → 500-bbrspTnK.js} +1 -1
  4. package/dist/{AuthorityInfo-Bi1_uhMu.js → AuthorityInfo-BWni4UPQ.js} +1 -1
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-7WtOL6Hs.js +100 -0
  6. package/dist/{Company-B--cokc6.js → Company-CuebFrQ0.js} +3 -3
  7. package/dist/{CompanyPanel-B_gmcZ9L.js → CompanyPanel-DxPdJs6x.js} +6 -6
  8. package/dist/{Department-DbKdyNzK.js → Department-D2a6Juur.js} +3 -3
  9. package/dist/{DepartmentPanel-BmEttboJ.js → DepartmentPanel-C_s2R9yl.js} +24 -23
  10. package/dist/{DesignPanel-LL68_36s.js → DesignPanel-CexZj3HF.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js → DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js} +25 -24
  12. package/dist/{DictView-B8j-EWx5.js → DictView-C0GS72rG.js} +19 -18
  13. package/dist/{InvOrganization-DnGQlESM.js → InvOrganization-a1tQ2CEH.js} +8 -7
  14. package/dist/Org-DifvzLLy.js +35 -0
  15. package/dist/{Preview-yot4NBW5.js → Preview-BOv5j9i6.js} +1 -1
  16. package/dist/{ReportDefine-DHadqNYy.js → ReportDefine-Dli1Q0TB.js} +1 -1
  17. package/dist/{ReportDesign-CBihGRth.js → ReportDesign-zSWkcL_O.js} +37 -36
  18. package/dist/{ReportQuery-CwHQ6LUU.js → ReportQuery-D5r3bvFc.js} +1 -1
  19. package/dist/{ReportQueryFrom-ie6lQcGL.js → ReportQueryFrom-DiostHrX.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js} +1 -1
  21. package/dist/{ReportTemplate-B2Smwo-z.js → ReportTemplate-CYy4cZHQ.js} +24 -24
  22. package/dist/{Role-Cf7DB7uS.js → Role-BFQFxfQS.js} +6 -6
  23. package/dist/{RoleAssign-upUnqs_i.js → RoleAssign-BIdWSLTR.js} +8 -8
  24. package/dist/{RolePanel-EXL_FLvM.js → RolePanel-C7ybSknr.js} +1 -1
  25. package/dist/{RolePanel-BBGDGK8V.js → RolePanel-KC-UgmtF.js} +1 -1
  26. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-C91CJO4e.js +132 -0
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js → RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js} +40 -34
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js → ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js} +17 -17
  29. package/dist/{Staff-DYu5ZEyR.js → Staff-CY0DLsTN.js} +3 -3
  30. package/dist/{StaffInfo-CHvNGjtz.js → StaffInfo-DA7p265h.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js → StaffInfo.vue_vue_type_script_setup_true_lang-f29A44gS.js} +5 -5
  32. package/dist/{StaffPanel-C-ygEY65.js → StaffPanel-DYP-mMp9.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js → StaffPanel.vue_vue_type_script_setup_true_lang-C0YAG2xV.js} +6 -6
  34. package/dist/{SysUser-BHk_szpK.js → SysUser-FqS3Ctne.js} +2 -2
  35. package/dist/{SysUserPanel-DFvzA5d-.js → SysUserPanel-C_t6F99T.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CKZjy0OF.js} +93 -86
  37. package/dist/{SystemMenu-5TK9ZA11.js → SystemMenu-ChFrMzRg.js} +14 -13
  38. package/dist/{UserInfo-Bx3zQqHa.js → UserInfo-I36LAXVj.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js → UserInfo.vue_vue_type_style_index_0_lang-BGY-LYeL.js} +28 -25
  40. package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
  41. package/dist/{childView-BSUWnii7.js → childView-CYpuOzRx.js} +1 -1
  42. package/dist/{childView-CFC3gA_U.js → childView-Csnlaqfs.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js → childView.vue_vue_type_style_index_0_lang-B8EnA03l.js} +18 -17
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js → childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js} +10 -9
  45. package/dist/{code-rule-DybjhotB.js → code-rule-DHBSC5Qp.js} +14 -13
  46. package/dist/core.es.js +2 -2
  47. package/dist/{cron-task-DGdknqaF.js → cron-task-CiI1MFla.js} +8 -7
  48. package/dist/{frameView-BOOZRv1S.js → frameView-ZWKlbz9p.js} +1 -1
  49. package/dist/index-COBMRlmJ.js +5379 -0
  50. package/dist/{layoutView-BWeDLY9C.js → layoutView-5OsbpP0u.js} +11 -10
  51. package/dist/{login-BcuCHhGE.js → login-C55sa9gN.js} +26 -25
  52. package/dist/{lov-view-DDgzqYSW.js → lov-view-DFfaUQ5m.js} +9 -8
  53. package/dist/{menuInfo-B3MOxomU.js → menuInfo-CZdLtLjN.js} +1 -1
  54. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js → menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js} +16 -15
  55. package/dist/{pda-app-Dy9WMHEG.js → pda-app-fLe8mrx-.js} +213 -196
  56. package/dist/{resource-BoCP7-dM.js → resource-ohWKO6Fh.js} +20 -20
  57. package/dist/{su-welcome-DXpI1MHr.js → su-welcome-_UZTfrXX.js} +84 -84
  58. package/dist/{sys-config-BiUWzxGU.js → sys-config-DVuBsK7p.js} +19 -18
  59. package/dist/udp-core.css +1 -1
  60. package/dist/{utogether-DXDcsKt7.js → utogether-CxobZqGL.js} +1 -1
  61. package/package.json +18 -18
  62. package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
  63. package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
  64. package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
  65. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
  66. package/src/components/udp/grid.vue +12 -6
  67. package/src/components/udp/index.ts +2 -2
  68. package/src/components/udp/lov.vue +1 -1
  69. package/src/components/udp/modal-grid.vue +288 -297
  70. package/src/components/udp/utils.ts +4 -11
  71. package/src/layout/components/lay-search/index.vue +25 -25
  72. package/src/main.ts +18 -10
  73. package/src/plugins/i18n/zh.ts +348 -338
  74. package/src/plugins/vxe-table/index.ts +2 -2
  75. package/src/plugins/vxe-table/render.tsx +95 -18
  76. package/src/views/login/login-view.vue +1 -1
  77. package/src/views/system/role/AuthorityInfo.vue +19 -15
  78. package/src/views/system/role/Role.vue +1 -5
  79. package/src/views/system/role/RolePanel.vue +11 -2
  80. package/src/views/system/role/UserInfo.vue +5 -3
  81. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  82. package/src/views/system/role-assign/RolePanel.vue +139 -136
  83. package/src/views/system/sysUser/SysUserPanel.vue +37 -37
  84. package/src/views/uapp/pda/pda-app.vue +41 -10
  85. package/src/views/udev/dict/DictView.vue +6 -1
  86. package/src/views/udev/dict/childView.vue +1 -6
  87. package/src/views/ufile/aggregation/File.vue +5 -5
  88. package/src/views/ufile/file/water-mark.vue +14 -14
  89. package/src/views/uhome/su-welcome.vue +2 -2
  90. package/src/views/ulogin/login.vue +8 -0
  91. package/src/views/urpt/design/DesignPanel.vue +10 -33
  92. package/src/views/urpt/design/ReportDesign.vue +12 -16
  93. package/src/views/urpt/static-resource/resource.vue +3 -3
  94. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  95. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js +0 -101
  96. package/dist/Org-Dg9Xkd34.js +0 -34
  97. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js +0 -125
  98. package/dist/index-BDE4-ZvN.js +0 -5091
@@ -1,12 +1,13 @@
1
1
  import { defineComponent as u, ref as s, reactive as m, resolveComponent as f, createBlock as p, openBlock as g } from "vue";
2
- import { q as _, v as h } from "./index-BDE4-ZvN.js";
3
- import { useRender as z } from "@utogether/utils";
2
+ import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { useRender as h } from "@utogether/utils";
4
+ import { q as z } from "./index-COBMRlmJ.js";
4
5
  const k = {
5
6
  name: "InvOrganization"
6
- }, x = /* @__PURE__ */ u({
7
+ }, R = /* @__PURE__ */ u({
7
8
  ...k,
8
- setup(v) {
9
- const r = "/uums/cusOrganization", n = s(null), e = z(), i = [{
9
+ setup(C) {
10
+ const r = "/uums/cusOrganization", n = s(null), e = h(), i = [{
10
11
  field: "organizationCode"
11
12
  }, {
12
13
  field: "organizationName"
@@ -38,7 +39,7 @@ const k = {
38
39
  cellRender: e.renderEnabled(a)
39
40
  }];
40
41
  async function a(t) {
41
- const [o] = await _(h().put(r, [t]));
42
+ const [o] = await _(z().put(r, [t]));
42
43
  !o && n.value.refreshData();
43
44
  }
44
45
  const c = m({
@@ -61,5 +62,5 @@ const k = {
61
62
  }
62
63
  });
63
64
  export {
64
- x as default
65
+ R as default
65
66
  };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as a, ref as m, resolveComponent as s, createBlock as u, openBlock as f } from "vue";
2
+ import { t as p } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { clone as g } from "xe-utils";
4
+ import { useRender as _ } from "@utogether/utils";
5
+ import { q as h } from "./index-COBMRlmJ.js";
6
+ const k = { name: "OrgUnit" }, q = /* @__PURE__ */ a({
7
+ ...k,
8
+ setup(R) {
9
+ const r = "/uums/org", t = m(null), i = _(), d = [{ field: "orgCode" }, { field: "orgName" }, { field: "orgAlias" }], l = [
10
+ { type: "checkbox", width: 50, align: "center" },
11
+ { field: "orgCode", required: !0, editRender: { name: "$input" } },
12
+ { field: "orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
13
+ { field: "orgAlias", editRender: { name: "$input" } },
14
+ { field: "orgDesc", editRender: { name: "$input" } },
15
+ { field: "enabled", width: 80, cellRender: i.renderEnabled(c) }
16
+ ];
17
+ async function c({ row: n }) {
18
+ const o = g(n, !0), [e] = await p(h().put(r, [o]));
19
+ !e && t.value.refreshData();
20
+ }
21
+ return (n, o) => {
22
+ const e = s("ut-grid");
23
+ return f(), u(e, {
24
+ ref_key: "xgrid",
25
+ ref: t,
26
+ items: d,
27
+ columns: l,
28
+ url: r
29
+ }, null, 512);
30
+ };
31
+ }
32
+ });
33
+ export {
34
+ q as default
35
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, ref as o, resolveComponent as u, createElementBlock as h, openBlock as x, createVNode as c, withCtx as p, createElementVNode as g, nextTick as V } from "vue";
2
- import { _ as k } from "./index-BDE4-ZvN.js";
2
+ import { _ as k } from "./index-COBMRlmJ.js";
3
3
  const P = { class: "ut-preview-contain" }, C = /* @__PURE__ */ w({
4
4
  __name: "Preview",
5
5
  setup(T, { expose: d }) {
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as o } from "./index-BDE4-ZvN.js";
2
+ import { _ as o } from "./index-COBMRlmJ.js";
3
3
  const t = {};
4
4
  function c(n, _) {
5
5
  return r(), e("div");
@@ -1,21 +1,22 @@
1
- import { defineComponent as A, ref as s, createVNode as r, Fragment as I, resolveComponent as l, nextTick as b, createElementBlock as x, openBlock as d, withDirectives as w, createBlock as p, createCommentVNode as c, vShow as E } from "vue";
1
+ import { defineComponent as A, ref as s, createVNode as r, Fragment as I, resolveComponent as a, nextTick as b, createElementBlock as x, openBlock as u, withDirectives as w, createBlock as m, createCommentVNode as c, vShow as E } from "vue";
2
2
  import { useRender as S, successMessage as $ } from "@utogether/utils";
3
3
  import { useClipboard as V } from "@vueuse/core";
4
- import { q as B, v as M } from "./index-BDE4-ZvN.js";
5
- import { _ as U } from "./DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js";
6
- const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
4
+ import { t as B } from "./await-to-js.es5-BtRbN2QH.js";
5
+ import { _ as M } from "./DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js";
6
+ import { q as U } from "./index-COBMRlmJ.js";
7
+ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
7
8
  name: "ReportDesign",
8
9
  __name: "ReportDesign",
9
10
  setup(F) {
10
- const a = s(null), o = s(!1), i = s(!1), n = S(), t = s({}), {
11
+ const l = s(null), o = s(!1), i = s(!1), n = S(), t = s({}), {
11
12
  copy: v
12
- } = V(), g = M(), h = [{
13
+ } = V(), g = U(), h = [{
13
14
  field: "templateCode",
14
- title: "message.file.templateCode"
15
+ title: "message.urpt.templateCode"
15
16
  }, {
16
17
  field: "templateName",
17
- title: "message.file.templateName"
18
- }], u = [
18
+ title: "message.urpt.templateName"
19
+ }], d = [
19
20
  {
20
21
  type: "checkbox",
21
22
  width: 50,
@@ -23,21 +24,21 @@ const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
23
24
  },
24
25
  {
25
26
  field: "templateCode",
26
- title: "message.file.templateCode",
27
+ title: "message.urpt.templateCode",
27
28
  required: !0,
28
29
  width: 150,
29
30
  editRender: n.renderInput()
30
31
  },
31
32
  {
32
33
  field: "templateName",
33
- title: "message.file.templateName",
34
+ title: "message.urpt.templateName",
34
35
  required: !0,
35
36
  width: 240,
36
37
  editRender: n.renderInput()
37
38
  },
38
39
  {
39
40
  field: "paperType",
40
- title: "message.file.paperType",
41
+ title: "message.urpt.paperType",
41
42
  width: 120,
42
43
  required: !0,
43
44
  editRender: n.renderDict({
@@ -60,26 +61,26 @@ const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
60
61
  slots: {
61
62
  default: ({
62
63
  row: e
63
- }) => e.id ? r(I, null, [r(l("ut-button"), {
64
+ }) => e.id ? r(I, null, [r(a("ut-button"), {
64
65
  content: "design",
65
66
  icon: "ri-quill-pen-line",
66
67
  onTap: () => k(e)
67
- }, null), r(l("ut-button"), {
68
+ }, null), r(a("ut-button"), {
68
69
  content: "copy",
69
70
  status: "warning",
70
71
  icon: "ri-file-copy-2-fill",
71
72
  onTap: () => R(e)
72
- }, null), r(l("ut-button"), {
73
+ }, null), r(a("ut-button"), {
73
74
  content: "export",
74
75
  status: "u-cyan",
75
76
  icon: "ri-folder-download-fill",
76
- onTap: () => _(e)
77
+ onTap: () => y(e)
77
78
  }, null)]) : null
78
79
  }
79
80
  }
80
81
  ], C = [{
81
82
  field: "templateCode",
82
- title: "message.templateCode",
83
+ title: "message.urpt.templateCode",
83
84
  required: !0,
84
85
  itemRender: {
85
86
  name: "$input"
@@ -87,7 +88,7 @@ const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
87
88
  span: 24
88
89
  }, {
89
90
  field: "templateName",
90
- title: "message.templateName",
91
+ title: "message.urpt.templateName",
91
92
  required: !0,
92
93
  itemRender: {
93
94
  name: "$input"
@@ -95,6 +96,7 @@ const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
95
96
  span: 24
96
97
  }, {
97
98
  field: "paperType",
99
+ title: "message.urpt.paperType",
98
100
  width: 100,
99
101
  required: !0,
100
102
  itemRender: n.renderDict({
@@ -104,18 +106,17 @@ const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
104
106
  }, {
105
107
  field: "remarks",
106
108
  title: "message.remark",
107
- required: !0,
108
109
  itemRender: {
109
110
  name: "$input"
110
111
  },
111
112
  span: 24
112
113
  }], R = (e) => {
113
114
  t.value.templateContent = e.templateContent, t.value.paperType = e.paperType, i.value = !0;
114
- }, _ = (e) => {
115
+ }, y = (e) => {
115
116
  v(e.templateContent), $("复制成功,快试试右键粘贴吧");
116
- }, y = async () => {
117
+ }, _ = async () => {
117
118
  const [e] = await B(g.post(f, [t.value]));
118
- !e && a.value.refreshData(), i.value = !1;
119
+ !e && l.value.refreshData(), i.value = !1;
119
120
  }, k = (e) => {
120
121
  t.value = e, b(() => {
121
122
  o.value = !0;
@@ -124,41 +125,41 @@ const f = "/urpt/v1/printTemplate", z = /* @__PURE__ */ A({
124
125
  editActived({
125
126
  row: e
126
127
  }) {
127
- e.id && (u[1].editRender.props.disabled = !0, a.value.getInstance().refreshColumn());
128
+ e.id && (d[1].editRender.props.disabled = !0, l.value.getInstance().refreshColumn());
128
129
  }
129
130
  }, N = ({
130
131
  row: e
131
132
  }) => (e == null ? void 0 : e.enabled) !== "1", D = () => {
132
- t.value = {}, o.value = !1, a.value.refreshData();
133
+ t.value = {}, o.value = !1, l.value.refreshData();
133
134
  };
134
- return (e, m) => {
135
- const q = l("ut-grid"), P = l("ut-modal-form");
136
- return d(), x("div", null, [w(r(q, {
135
+ return (e, p) => {
136
+ const P = a("ut-grid"), q = a("ut-modal-form");
137
+ return u(), x("div", null, [w(r(P, {
137
138
  ref_key: "xgrid",
138
- ref: a,
139
+ ref: l,
139
140
  items: h,
140
- columns: u,
141
+ columns: d,
141
142
  "check-method": N,
142
143
  url: f,
143
144
  events: T
144
- }, null, 512), [[E, !o.value]]), o.value ? (d(), p(U, {
145
+ }, null, 512), [[E, !o.value]]), o.value ? (u(), m(M, {
145
146
  key: 0,
146
147
  record: t.value,
147
148
  onOnClose: D
148
- }, null, 8, ["record"])) : c("", !0), i.value ? (d(), p(P, {
149
+ }, null, 8, ["record"])) : c("", !0), i.value ? (u(), m(q, {
149
150
  key: 1,
150
151
  record: t.value,
151
152
  items: C,
152
- width: 300,
153
- height: 240,
153
+ width: "40%",
154
+ height: 290,
154
155
  "data-status": "update",
155
156
  title: "复制模板",
156
- onConfirm: y,
157
- onClose: m[0] || (m[0] = (G) => i.value = !1)
157
+ onConfirm: _,
158
+ onClose: p[0] || (p[0] = (G) => i.value = !1)
158
159
  }, null, 8, ["record"])) : c("", !0)]);
159
160
  };
160
161
  }
161
162
  });
162
163
  export {
163
- z as default
164
+ K as default
164
165
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, reactive as c, watch as f, ref as p, onMounted as u, resolveComponent as h, createElementBlock as _, openBlock as r, withDirectives as w, createBlock as x, createCommentVNode as D, createVNode as R, vShow as C } from "vue";
2
2
  import { useRoute as S } from "vue-router";
3
- import { _ as g } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js";
3
+ import { _ as g } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js";
4
4
  import { useRender as N } from "@utogether/utils";
5
5
  const T = { name: "ReportQuery" }, O = /* @__PURE__ */ m({
6
6
  ...T,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js";
1
+ import { _ as f } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@ import { useI18n as z } from "vue-i18n";
3
3
  import { clone as A } from "xe-utils";
4
4
  import { useRoute as J } from "vue-router";
5
5
  import { templateRef as O } from "@vueuse/core";
6
- import { v as V } from "./index-BDE4-ZvN.js";
6
+ import { q as V } from "./index-COBMRlmJ.js";
7
7
  import { useRender as Y } from "@utogether/utils";
8
8
  const H = { class: "ut-drawer-template" }, M = { class: "flex" }, te = /* @__PURE__ */ T({
9
9
  __name: "ReportQueryFrom",
@@ -1,22 +1,22 @@
1
- import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as a, createElementBlock as O, openBlock as f, createBlock as v, createCommentVNode as h } from "vue";
2
- import { useI18n as q } from "vue-i18n";
1
+ import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as s, createElementBlock as q, openBlock as f, createBlock as v, createCommentVNode as h } from "vue";
2
+ import { useI18n as O } from "vue-i18n";
3
3
  import { clone as U } from "xe-utils";
4
4
  import { useRender as V, successMessage as B, warnMessage as M } from "@utogether/utils";
5
- import { e as C, v as D } from "./index-BDE4-ZvN.js";
5
+ import { e as C, q as D } from "./index-COBMRlmJ.js";
6
6
  const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
7
7
  __name: "ReportTemplate",
8
8
  setup(W) {
9
9
  const {
10
10
  t: b
11
- } = q(), o = V(), s = r(null), l = r(!1), d = r(!1), g = r({}), u = r([]), i = r({}), R = [{
11
+ } = O(), o = V(), d = r(null), l = r(!1), i = r(!1), g = r({}), u = r([]), a = r({}), R = [{
12
12
  field: "templateCode",
13
- title: "message.file.templateCode"
13
+ title: "message.urpt.templateCode"
14
14
  }, {
15
15
  field: "templateName",
16
- title: "message.file.templateName"
16
+ title: "message.urpt.templateName"
17
17
  }, {
18
18
  field: "printPosition",
19
- title: "message.file.printPosition",
19
+ title: "message.urpt.printPosition",
20
20
  code: "SU.PRINT.VIEW"
21
21
  }], k = [{
22
22
  type: "checkbox",
@@ -24,7 +24,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
24
24
  align: "center"
25
25
  }, {
26
26
  field: "templateCode",
27
- title: "message.file.templateCode",
27
+ title: "message.urpt.templateCode",
28
28
  required: !0,
29
29
  width: 120,
30
30
  editRender: o.renderLov({
@@ -36,18 +36,18 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
36
36
  })
37
37
  }, {
38
38
  field: "templateName",
39
- title: "message.file.templateName",
39
+ title: "message.urpt.templateName",
40
40
  width: 180
41
41
  }, {
42
42
  field: "printPosition",
43
- title: "message.file.printPosition",
43
+ title: "message.urpt.printPosition",
44
44
  required: !0,
45
45
  width: 120,
46
46
  formatter: ["formatDict", "SU.PRINT.VIEW"],
47
47
  editRender: o.renderDict("SU.PRINT.VIEW")
48
48
  }, {
49
49
  field: "buttonCode",
50
- title: "message.file.buttonCode",
50
+ title: "message.urpt.buttonCode",
51
51
  width: 120,
52
52
  required: !0,
53
53
  editRender: o.renderInput()
@@ -65,14 +65,14 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
65
65
  slots: {
66
66
  default: ({
67
67
  row: t
68
- }) => [p(S, null, [p(a("ut-button"), {
68
+ }) => [p(S, null, [p(s("ut-button"), {
69
69
  content: "inv",
70
70
  icon: "ri-edit-line",
71
71
  onTap: () => y(t)
72
72
  }, null)])]
73
73
  }
74
74
  }], N = () => {
75
- if (!s.value.getInstance().getCheckboxRecords().length)
75
+ if (!d.value.getInstance().getCheckboxRecords().length)
76
76
  return M(b("message.selectedRecord"));
77
77
  u.value = [], u.value.push({
78
78
  field: "orgName",
@@ -84,12 +84,12 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
84
84
  label: e.orgName
85
85
  }))
86
86
  }
87
- }), i.value = {}, l.value = !0;
87
+ }), a.value = {}, l.value = !0;
88
88
  }, _ = () => {
89
- if (i.value.orgName) {
90
- const t = s.value.getInstance().getCheckboxRecords(), e = [];
89
+ if (a.value.orgName) {
90
+ const t = d.value.getInstance().getCheckboxRecords(), e = [];
91
91
  t.forEach((m) => {
92
- i.value.orgName.forEach((c) => {
92
+ a.value.orgName.forEach((c) => {
93
93
  const n = U(m, !0);
94
94
  n.orgId = c, n.id = null, e.push(n);
95
95
  });
@@ -115,7 +115,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
115
115
  }], y = (t) => {
116
116
  g.value = {
117
117
  headerId: t.id
118
- }, d.value = !0;
118
+ }, i.value = !0;
119
119
  }, P = [{
120
120
  code: "copy",
121
121
  icon: "ri-file-copy-line",
@@ -123,10 +123,10 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
123
123
  auth: "copy"
124
124
  }];
125
125
  return (t, e) => {
126
- const m = a("ut-grid"), c = a("ut-modal-form"), n = a("ut-modal-grid");
127
- return f(), O("div", null, [p(m, {
126
+ const m = s("ut-grid"), c = s("ut-modal-form"), n = s("ut-modal-grid");
127
+ return f(), q("div", null, [p(m, {
128
128
  ref_key: "xgrid",
129
- ref: s,
129
+ ref: d,
130
130
  items: R,
131
131
  buttons: P,
132
132
  columns: k,
@@ -135,7 +135,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
135
135
  }, null, 512), l.value ? (f(), v(c, {
136
136
  key: 0,
137
137
  ref: "xmodal",
138
- record: i.value,
138
+ record: a.value,
139
139
  items: u.value,
140
140
  width: "400",
141
141
  height: "170",
@@ -143,7 +143,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
143
143
  title: "单据复制",
144
144
  onConfirm: _,
145
145
  onClose: e[0] || (e[0] = (T) => l.value = !1)
146
- }, null, 8, ["record", "items"])) : h("", !0), d.value ? (f(), v(n, {
146
+ }, null, 8, ["record", "items"])) : h("", !0), i.value ? (f(), v(n, {
147
147
  key: 1,
148
148
  ref: "xmgrid",
149
149
  "default-value": g.value,
@@ -151,7 +151,7 @@ const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
151
151
  url: "/upms/v1/printTemplateConfigOgn",
152
152
  title: "库存组织",
153
153
  width: "45%",
154
- onClose: e[1] || (e[1] = (T) => d.value = !1)
154
+ onClose: e[1] || (e[1] = (T) => i.value = !1)
155
155
  }, null, 8, ["default-value"])) : h("", !0)]);
156
156
  };
157
157
  }
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as r, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as n } from "vue";
2
- import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js";
3
- import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js";
4
- import { _ as d } from "./index-BDE4-ZvN.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js";
3
+ import { _ as d } from "./RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js";
4
+ import { _ as p } from "./index-COBMRlmJ.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
6
6
  __name: "Role",
7
7
  setup(C) {
@@ -15,11 +15,11 @@ const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { cla
15
15
  }, null, 8, ["title"])
16
16
  ]),
17
17
  o("div", h, [
18
- n(p)
18
+ n(d)
19
19
  ])
20
20
  ]));
21
21
  }
22
- }), B = /* @__PURE__ */ d(v, [["__scopeId", "data-v-2087c3f3"]]);
22
+ }), x = /* @__PURE__ */ p(v, [["__scopeId", "data-v-e31bcedc"]]);
23
23
  export {
24
- B as default
24
+ x as default
25
25
  };
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as s } from "vue";
2
- import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js";
3
- import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js";
4
- import { _ as d } from "./index-BDE4-ZvN.js";
2
+ import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js";
3
+ import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-C91CJO4e.js";
4
+ import { _ as d } from "./index-COBMRlmJ.js";
5
5
  const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, g = { class: "content" }, h = /* @__PURE__ */ l({
6
6
  __name: "RoleAssign",
7
7
  setup(v) {
8
- const n = e({}), c = e(!1), a = e([]);
9
- return t("active", n), t("scrollPanelChange", c), t("treeList", a), (r, x) => (_(), i("div", f, [
8
+ const n = e({}), a = e(!1), c = e([]);
9
+ return t("active", n), t("scrollPanelChange", a), t("treeList", c), (r, C) => (_(), i("div", f, [
10
10
  o("div", u, [
11
11
  s(m, {
12
12
  title: r.$t("SuOrg"),
13
13
  "tree-otions": { children: "children", label: "orgName" },
14
- extParam: "{ pageSize: 500 }",
14
+ "default-params": { pageSize: 500 },
15
15
  url: "/uums/org"
16
16
  }, null, 8, ["title"])
17
17
  ]),
@@ -20,7 +20,7 @@ const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, g = { cla
20
20
  ])
21
21
  ]));
22
22
  }
23
- }), b = /* @__PURE__ */ d(h, [["__scopeId", "data-v-653b1ecc"]]);
23
+ }), x = /* @__PURE__ */ d(h, [["__scopeId", "data-v-1092c64b"]]);
24
24
  export {
25
- b as default
25
+ x as default
26
26
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js";
1
+ import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js";
1
+ import { _ as f } from "./RolePanel.vue_vue_type_script_setup_true_lang-C91CJO4e.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,132 @@
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, createElementBlock as A, openBlock as w, createBlock as R, createCommentVNode as S, unref as T } from "vue";
2
+ import { useI18n as U } from "vue-i18n";
3
+ import { clone as $ } from "xe-utils";
4
+ import { VxeUI as j } from "vxe-pc-ui";
5
+ import { t as v } from "./await-to-js.es5-BtRbN2QH.js";
6
+ import { successMessage as _ } from "@utogether/utils";
7
+ import { q as C } from "./index-COBMRlmJ.js";
8
+ const q = {
9
+ class: "page-content"
10
+ }, d = "/uums/orgRole", X = /* @__PURE__ */ b({
11
+ __name: "RolePanel",
12
+ setup(z) {
13
+ const e = E({
14
+ record: {},
15
+ loading: !1,
16
+ showModalView: !1
17
+ }), {
18
+ t: c
19
+ } = U(), n = g(null), u = g(null), t = M("active");
20
+ N(() => t.value, () => {
21
+ t != null && t.value.id && (e.fetchExtParam = {
22
+ orgId: t == null ? void 0 : t.value.id
23
+ }, B(() => {
24
+ n.value.refreshData();
25
+ }));
26
+ });
27
+ const k = [{
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 : [h(i("ut-button"), {
63
+ icon: "ri-delete-bin-5-fill",
64
+ content: "del",
65
+ status: "danger",
66
+ auth: "del",
67
+ onTap: () => D(o)
68
+ }, null)]
69
+ }
70
+ });
71
+ const x = () => {
72
+ e.record = {}, e.record.orgId = t.value.id, e.showModalView = !0;
73
+ }, D = async (o) => {
74
+ if (await j.modal.confirm(c("message.tip.del")) === "confirm") {
75
+ const a = {
76
+ orgId: t.value.id,
77
+ roleId: o.id
78
+ };
79
+ e.loading = !0;
80
+ const [s] = await v(C().delete(d, a));
81
+ s || _(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
82
+ }
83
+ }, I = async (o) => {
84
+ const r = [];
85
+ o.forEach((l) => {
86
+ l.orgId = t.value.id, l.roleId = l.id, r.push(l);
87
+ });
88
+ const a = {
89
+ orgRoleList: r
90
+ };
91
+ u.value.showLoading();
92
+ const [s] = await v(C().post(d, a));
93
+ s || (_(), n.value.refreshData(), e.showModalView = !1);
94
+ }, y = (o) => o.roleCode !== "admin", V = (o) => {
95
+ o === "add" && x();
96
+ };
97
+ return (o, r) => {
98
+ const a = i("ut-grid"), s = i("ut-modal-grid"), l = L("spinning");
99
+ return P((w(), A("div", q, [h(a, {
100
+ ref_key: "xgrid",
101
+ ref: n,
102
+ items: m,
103
+ columns: T(p),
104
+ "default-params": e.fetchExtParam,
105
+ "default-value": e.fetchExtParam,
106
+ buttons: k,
107
+ "auto-load": !1,
108
+ url: d,
109
+ "check-method": y,
110
+ mode: "form",
111
+ onButtonClick: V
112
+ }, null, 8, ["columns", "default-params", "default-value"]), e.showModalView ? (w(), R(s, {
113
+ key: 0,
114
+ ref_key: "xmodal",
115
+ ref: u,
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: r[0] || (r[0] = (F) => e.showModalView = !1),
125
+ onConfirm: I
126
+ }, null, 8, ["title"])) : S("", !0)])), [[l, e.loading]]);
127
+ };
128
+ }
129
+ });
130
+ export {
131
+ X as _
132
+ };