@utogether/udp-core 1.0.1-beta.2 → 1.0.1-beta.21

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 (159) hide show
  1. package/build/plugins.ts +8 -1
  2. package/dist/{403-BBQoJwTM.js → 403-B_l9Q9w_.js} +1 -1
  3. package/dist/{404-BbJPSIWM.js → 404-33KZO3Vz.js} +1 -1
  4. package/dist/{500-BtFL9R4M.js → 500-oI74ZkQH.js} +1 -1
  5. package/dist/{AuthorityInfo-DhiwCeLN.js → AuthorityInfo-CNoxrmPS.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-CO01EWKQ.js +100 -0
  7. package/dist/{Company-CGqmslx-.js → Company-DOCRUvUs.js} +3 -3
  8. package/dist/{CompanyPanel-hlDsxD-6.js → CompanyPanel-Do2JlJ3U.js} +26 -26
  9. package/dist/{Department-BZyJtacc.js → Department-BAlx8Am2.js} +3 -3
  10. package/dist/{DepartmentPanel-D-a_EBFt.js → DepartmentPanel-BvQUkRaM.js} +25 -25
  11. package/dist/{DesignPanel-Bl4luWDV.js → DesignPanel-BMr-c76z.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js → DesignPanel.vue_vue_type_style_index_0_lang-COERxrYp.js} +28 -30
  13. package/dist/DictView-DkG5lo6m.js +109 -0
  14. package/dist/InvOrganization-D_PuTpPt.js +74 -0
  15. package/dist/Org-CtVfZAjI.js +39 -0
  16. package/dist/{Preview-pHD84xqI.js → Preview-Cuj_akRk.js} +2 -2
  17. package/dist/{ReportDefine-DnnCNQWS.js → ReportDefine-CM2aNEVp.js} +1 -1
  18. package/dist/{ReportDesign-BnI_Q4pg.js → ReportDesign-B1y79NKM.js} +43 -43
  19. package/dist/{ReportQuery-Dby2MmtM.js → ReportQuery-CZEfKCWP.js} +1 -1
  20. package/dist/{ReportQueryFrom-Blm1N8P1.js → ReportQueryFrom-C_cUB8bs.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBqJnvTQ.js} +1 -1
  22. package/dist/{ReportTemplate-D65RXRY_.js → ReportTemplate-BprAuCb1.js} +28 -28
  23. package/dist/{Role-eFZoTpXc.js → Role-CAaLVGNy.js} +6 -6
  24. package/dist/{RoleAssign-D9-Y3UNz.js → RoleAssign-DuFp2Ty7.js} +9 -9
  25. package/dist/{RolePanel-DlFw6HSf.js → RolePanel-BRStoO0e.js} +1 -1
  26. package/dist/{RolePanel-CoUOc3sX.js → RolePanel-FnyN7LiS.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CNIA7zdk.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js → RolePanel.vue_vue_type_script_setup_true_lang-CS7drFhn.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js → ScrollPanel.vue_vue_type_style_index_0_lang-CEnqhlSE.js} +23 -23
  30. package/dist/{Staff-DFBLCsAd.js → Staff-D493jHwR.js} +3 -3
  31. package/dist/{StaffInfo-d2CK0oBA.js → StaffInfo-suU_pcyD.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js → StaffInfo.vue_vue_type_script_setup_true_lang-DV16a2Nz.js} +16 -16
  33. package/dist/{StaffPanel-D6aWLKN3.js → StaffPanel-BbYWu-xZ.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js → StaffPanel.vue_vue_type_script_setup_true_lang-CfRIanr5.js} +2 -2
  35. package/dist/{SysUser-BdZvYxQH.js → SysUser-YXOsIVpJ.js} +2 -2
  36. package/dist/{SysUserPanel-BIVa6LLr.js → SysUserPanel-C1tQzih_.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BfT40pDr.js +298 -0
  38. package/dist/{SystemMenu-C-5VKlHK.js → SystemMenu-DzKl8RAz.js} +33 -33
  39. package/dist/{UserInfo-DqXCRZts.js → UserInfo-CYeYQNq8.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js → UserInfo.vue_vue_type_style_index_0_lang-DYVdi2Ck.js} +41 -39
  41. package/dist/{childView-B2lSsqS3.js → childView-BNYdfnMx.js} +1 -1
  42. package/dist/{childView-DRUNqgjI.js → childView-C6rHVrT6.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js → childView.vue_vue_type_style_index_0_lang-6o00J0a7.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-oGriyFTv.js → childView.vue_vue_type_style_index_0_lang-O_zWFjYY.js} +43 -43
  45. package/dist/{code-rule-DZC9T6cl.js → code-rule-MxcRbYZR.js} +13 -15
  46. package/dist/core.es.js +18 -10
  47. package/dist/{cron-task-BJwPeA5F.js → cron-task-B0yfTtm6.js} +11 -11
  48. package/dist/{frameView-C6wkvok-.js → frameView-DtHY5dLd.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/index-BWtOrjW2.js +4603 -0
  53. package/dist/{layoutView-CeJBpZb_.js → layoutView-D0Q7EG0u.js} +1564 -1559
  54. package/dist/{log-in-e7D5Ss1P.js → log-in-CpGqc33f.js} +5 -4
  55. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  56. package/dist/login-CuO8YgN1.js +249 -0
  57. package/dist/{login-log-CvVnyGi3.js → login-log-BNRXLeMi.js} +4 -3
  58. package/dist/{lov-view-DRF-99U4.js → lov-view-DcRVGqsD.js} +5 -5
  59. package/dist/{menuInfo-3Sjvs9nM.js → menuInfo-ccOqhCC8.js} +1 -1
  60. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js → menuInfo.vue_vue_type_style_index_0_lang-DTBPgTe_.js} +34 -32
  61. package/dist/{pda-app-B9tn7jdv.js → pda-app-D7n4oxyn.js} +202 -188
  62. package/dist/{resource-BqnxbQNe.js → resource-_h2OtsKS.js} +18 -18
  63. package/dist/{su-welcome-VwifUK_O.js → su-welcome-Co6e4akE.js} +118 -120
  64. package/dist/sys-config-C6Es9vZl.js +355 -0
  65. package/dist/udp-core.css +1 -9
  66. package/dist/utogether-MlnyYtNS.js +4 -0
  67. package/index.ts +17 -5
  68. package/package.json +1 -1
  69. package/src/App.vue +2 -7
  70. package/src/api/http.ts +1 -4
  71. package/src/api/index.ts +5 -3
  72. package/src/api/user.ts +2 -2
  73. package/src/components/SuCharts/src/UserInfo.vue +3 -3
  74. package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
  75. package/src/components/udp/form/form.vue +109 -0
  76. package/src/components/udp/grid/index.vue +509 -0
  77. package/src/components/udp/index.ts +4 -4
  78. package/src/components/udp/utils.ts +405 -40
  79. package/src/directives/permission/index.ts +1 -1
  80. package/src/layout/components/lay-navbar/index.vue +9 -7
  81. package/src/layout/components/lay-panel/index.vue +3 -3
  82. package/src/layout/components/lay-search/index.vue +1 -1
  83. package/src/layout/components/lay-select-org/index.vue +4 -9
  84. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  85. package/src/layout/components/lay-sidebar/horizontal.vue +4 -5
  86. package/src/layout/components/lay-sidebar/mixNav.vue +6 -4
  87. package/src/layout/components/lay-sidebar/sidebar-logo.vue +94 -98
  88. package/src/layout/components/lay-tag/index.vue +596 -625
  89. package/src/layout/hooks/useTag.ts +223 -233
  90. package/src/layout/layoutView.vue +215 -215
  91. package/src/layout/types.ts +3 -2
  92. package/src/main.ts +39 -31
  93. package/src/plugins/i18n/en.ts +26 -13
  94. package/src/plugins/i18n/zh.ts +35 -16
  95. package/src/plugins/vxe-table/index.ts +65 -2
  96. package/src/plugins/vxe-table/render.tsx +945 -817
  97. package/src/router/index.ts +186 -183
  98. package/src/router/modules/remaining.ts +1 -26
  99. package/src/router/utils.ts +393 -377
  100. package/src/store/modules/app.ts +1 -3
  101. package/src/store/modules/multiTags.ts +110 -109
  102. package/src/store/modules/permission.ts +113 -103
  103. package/src/store/modules/system.ts +1 -3
  104. package/src/style/button.scss +10 -3
  105. package/src/style/login.css +1 -1
  106. package/src/style/tailwind.css +1 -68
  107. package/src/style/vxetable.scss +348 -256
  108. package/src/utils/authority/index.ts +1 -1
  109. package/src/utils/index.ts +3 -1
  110. package/src/utils/propTypes.ts +1 -6
  111. package/src/views/login/login-view.vue +6 -20
  112. package/src/views/organization/company/CompanyPanel.vue +2 -2
  113. package/src/views/organization/department/DepartmentPanel.vue +269 -283
  114. package/src/views/organization/inv-org/InvOrganization.vue +23 -9
  115. package/src/views/organization/org/Org.vue +9 -5
  116. package/src/views/system/menu/SystemMenu.vue +183 -197
  117. package/src/views/system/menu/menuInfo.vue +8 -18
  118. package/src/views/system/role/AuthorityInfo.vue +19 -15
  119. package/src/views/system/role/Role.vue +1 -5
  120. package/src/views/system/role/RolePanel.vue +11 -2
  121. package/src/views/system/role/UserInfo.vue +11 -9
  122. package/src/views/system/role-assign/RoleAssign.vue +2 -2
  123. package/src/views/system/role-assign/RolePanel.vue +12 -9
  124. package/src/views/system/sys/sys-config.vue +66 -21
  125. package/src/views/system/sysUser/SysUserPanel.vue +44 -43
  126. package/src/views/uapp/pda/pda-app.vue +48 -16
  127. package/src/views/udev/coderule/code-rule.vue +120 -121
  128. package/src/views/udev/dict/DictView.vue +16 -4
  129. package/src/views/udev/dict/childView.vue +8 -8
  130. package/src/views/ufile/aggregation/File.vue +5 -5
  131. package/src/views/ufile/file/water-mark.vue +14 -14
  132. package/src/views/uhome/components/menu-favorite.vue +314 -331
  133. package/src/views/uhome/su-welcome.vue +3 -3
  134. package/src/views/ulogin/login.vue +19 -12
  135. package/src/views/upms/interface/log-in.vue +100 -106
  136. package/src/views/upms/interface/log-out.vue +2 -8
  137. package/src/views/upms/user/login-log.vue +54 -60
  138. package/src/views/urpt/design/DesignPanel.vue +16 -35
  139. package/src/views/urpt/design/Preview.vue +1 -0
  140. package/src/views/urpt/design/ReportDesign.vue +17 -23
  141. package/src/views/urpt/static-resource/resource.vue +3 -3
  142. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  143. package/types/global.d.ts +4 -9
  144. package/vite.config.ts +6 -2
  145. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js +0 -102
  146. package/dist/DictView-B4a7Hs1X.js +0 -95
  147. package/dist/InvOrganization-q4T3y8dQ.js +0 -260
  148. package/dist/Org-BTGTrAVz.js +0 -35
  149. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js +0 -126
  150. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js +0 -288
  151. package/dist/index-DZc3qRTx.js +0 -2650
  152. package/dist/login-BOxwzwdB.js +0 -252
  153. package/dist/sys-config-C0-gSBFO.js +0 -277
  154. package/dist/utogether-Di1byIum.js +0 -182
  155. package/src/components/udp/form-upload.vue +0 -183
  156. package/src/components/udp/modal-form.vue +0 -180
  157. package/src/utils/http/index.ts +0 -297
  158. package/src/utils/http/types.d.ts +0 -46
  159. package/src/utils/udp/useRender.ts +0 -420
@@ -1,10 +1,10 @@
1
- import { defineComponent as it, ref as f, reactive as k, onMounted as ot, onBeforeUnmount as nt, resolveComponent as r, resolveDirective as pt, withDirectives as at, createElementBlock as N, openBlock as w, createVNode as l, createBlock as S, createCommentVNode as H, withCtx as i, createElementVNode as e, Fragment as rt, renderList as st, unref as dt, toDisplayString as D, withModifiers as ct, createTextVNode as O, nextTick as ht } from "vue";
2
- import { VXETable as U } from "vxe-table";
1
+ import { defineComponent as it, ref as f, reactive as M, onMounted as ot, onBeforeUnmount as nt, resolveComponent as r, resolveDirective as pt, withDirectives as at, createElementBlock as N, openBlock as w, createVNode as l, createBlock as S, createCommentVNode as H, withCtx as i, createElementVNode as e, Fragment as rt, renderList as st, unref as dt, toDisplayString as D, withModifiers as ct, createTextVNode as U, nextTick as ht } from "vue";
2
+ import { VxeUI as O } from "vxe-pc-ui";
3
3
  import { useGlobal as ut } from "@utogether/utils";
4
4
  import { t as mt } from "./await-to-js.es5-BtRbN2QH.js";
5
5
  import { clone as ft } from "xe-utils";
6
- import { e as gt, q as yt } from "./index-DZc3qRTx.js";
7
- import vt from "./Preview-pHD84xqI.js";
6
+ import { i as gt, w as yt } from "./index-BWtOrjW2.js";
7
+ import vt from "./Preview-Cuj_akRk.js";
8
8
  const xt = {
9
9
  panels: [
10
10
  {
@@ -490,11 +490,11 @@ const xt = {
490
490
  },
491
491
  emits: ["onClose"],
492
492
  setup(J, { emit: B }) {
493
- const R = J;
493
+ const I = J;
494
494
  let { $printPlugin: u } = ut();
495
- const I = gt().getDataDict, W = yt();
495
+ const R = gt().getDataDict, W = yt();
496
496
  let s = null;
497
- const C = f(!1), g = f(!1), y = f(!1), v = f(!1), z = f(null), T = f(""), m = f({}), d = k({}), h = k({ max: 5, min: 0.5, value: 1, ration: "100%" }), j = () => {
497
+ const C = f(!1), g = f(!1), y = f(!1), v = f(!1), z = f(null), T = f(""), m = f({}), d = M({}), h = M({ max: 5, min: 0.5, value: 1, ration: "100%" }), j = () => {
498
498
  g.value = !1, s.setPaper(d.width || 210, d.height || 296.6);
499
499
  }, V = async (n) => {
500
500
  const t = m.value;
@@ -507,29 +507,29 @@ const xt = {
507
507
  const [E, _] = await mt(W.put("/urpt/v1/printTemplate", [t]));
508
508
  v.value = !1, E || (T.value = "", m.value = _[0]), n && n();
509
509
  }, P = () => {
510
- q("onClose");
511
- }, q = B, A = (n) => {
510
+ F("onClose");
511
+ }, F = B, A = (n) => {
512
512
  let t = h.value;
513
513
  n === "Y" ? (t += 0.1, t > h.max && (t = 5)) : (t -= 0.1, t < h.min && (t = 0.5)), s && (s.zoom(t), h.value = t, h.ration = `${(t * 100).toFixed(0)}%`);
514
- }, F = async () => {
515
- await U.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
514
+ }, q = async () => {
515
+ await O.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
516
516
  }, L = async () => {
517
517
  y.value = !0;
518
518
  }, Y = async () => {
519
- await U.modal.confirm("导入后将覆盖原有的模板,您确定继续吗?", "温馨提示") === "confirm" && (V(P), y.value = !1);
519
+ await O.modal.confirm("导入后将覆盖原有的模板,您确定继续吗?", "温馨提示") === "confirm" && (V(P), y.value = !1);
520
520
  }, G = async () => {
521
521
  C.value = !0;
522
522
  const n = {};
523
523
  ht(() => {
524
524
  z.value.show(s, n, d.width || 220);
525
525
  });
526
- }, X = (n) => {
526
+ }, K = (n) => {
527
527
  if (n !== "customize") {
528
- const { width: t, height: p } = K(n);
528
+ const { width: t, height: p } = Q(n);
529
529
  d.width = t, d.height = p, s.setPaper(d.width, d.height);
530
530
  } else
531
531
  g.value = !0;
532
- }, K = (n) => ({
532
+ }, Q = (n) => ({
533
533
  A3: { width: 420, height: 296.6 },
534
534
  A4: { width: 210, height: 296.6 },
535
535
  A5: { width: 210, height: 147.6 },
@@ -537,7 +537,7 @@ const xt = {
537
537
  trisection: { width: 241, height: 93 }
538
538
  })[n];
539
539
  return ot(() => {
540
- const { record: n } = R;
540
+ const { record: n } = I;
541
541
  v.value = !0, m.value = ft(n, !0);
542
542
  const t = n.templateContent ? JSON.parse(n.templateContent) : xt;
543
543
  $("#hiprint-printTemplate").empty(), u.print.init({
@@ -560,7 +560,7 @@ const xt = {
560
560
  }), nt(() => {
561
561
  u = null, s = null;
562
562
  }), (n, t) => {
563
- const p = r("ut-button"), E = r("el-option"), _ = r("el-select"), x = r("vxe-input"), Q = r("el-popover"), M = r("vxe-button"), Z = r("el-space"), c = r("el-row"), a = r("el-col"), b = r("el-card"), tt = r("vxe-textarea"), et = r("vxe-modal"), lt = pt("spinning");
563
+ const p = r("ut-button"), E = r("el-option"), _ = r("el-select"), x = r("vxe-input"), X = r("el-popover"), k = r("vxe-button"), Z = r("el-space"), c = r("el-row"), a = r("el-col"), b = r("el-card"), tt = r("vxe-textarea"), et = r("vxe-modal"), lt = pt("spinning");
564
564
  return at((w(), N("div", wt, [
565
565
  l(b, { class: "design-panel-contain" }, {
566
566
  default: i(() => [
@@ -583,10 +583,10 @@ const xt = {
583
583
  placeholder: "Select Paper",
584
584
  class: "ml-1 mr-1",
585
585
  style: { width: "100px !important" },
586
- onChange: t[1] || (t[1] = (o) => X(m.value.paperType))
586
+ onChange: t[1] || (t[1] = (o) => K(m.value.paperType))
587
587
  }, {
588
588
  default: i(() => [
589
- (w(!0), N(rt, null, st(dt(I)["SU.PRINT.PAPER"].children, (o) => (w(), S(E, {
589
+ (w(!0), N(rt, null, st(dt(R)["SU.PRINT.PAPER"].children, (o) => (w(), S(E, {
590
590
  key: o.dictCode,
591
591
  label: o.dictName,
592
592
  value: o.dictCode
@@ -600,7 +600,7 @@ const xt = {
600
600
  ]),
601
601
  _: 1
602
602
  }, 8, ["modelValue"]),
603
- m.value.paperType === "customize" ? (w(), S(Q, {
603
+ m.value.paperType === "customize" ? (w(), S(X, {
604
604
  key: 0,
605
605
  visible: g.value,
606
606
  "onUpdate:visible": t[5] || (t[5] = (o) => g.value = o),
@@ -614,7 +614,7 @@ const xt = {
614
614
  l(p, {
615
615
  icon: "ri-font-size",
616
616
  content: "customSize",
617
- onClick: t[4] || (t[4] = ct((o) => g.value = !0, ["stop"]))
617
+ onTap: t[4] || (t[4] = ct((o) => g.value = !0, ["stop"]))
618
618
  })
619
619
  ]),
620
620
  default: i(() => [
@@ -652,7 +652,7 @@ const xt = {
652
652
  auth: "import",
653
653
  onTap: t[6] || (t[6] = (o) => L())
654
654
  }),
655
- l(M, {
655
+ l(k, {
656
656
  icon: "ri-indeterminate-circle-line ",
657
657
  class: "design-custom-button",
658
658
  onClick: t[7] || (t[7] = (o) => A("N"))
@@ -664,7 +664,7 @@ const xt = {
664
664
  align: "center",
665
665
  style: { width: "70px", "margin-left": "10px" }
666
666
  }, null, 8, ["modelValue"]),
667
- l(M, {
667
+ l(k, {
668
668
  icon: "ri-add-circle-fill ",
669
669
  class: "design-custom-button",
670
670
  onClick: t[9] || (t[9] = (o) => A("Y"))
@@ -674,7 +674,7 @@ const xt = {
674
674
  icon: "ri-delete-bin-5-fill",
675
675
  content: "repaint",
676
676
  auth: "repaint",
677
- onTap: t[10] || (t[10] = (o) => F())
677
+ onTap: t[10] || (t[10] = (o) => q())
678
678
  })
679
679
  ]),
680
680
  e("div", null, [
@@ -710,7 +710,7 @@ const xt = {
710
710
  default: i(() => [
711
711
  l(c, { class: "drag_item_title" }, {
712
712
  default: i(() => t[17] || (t[17] = [
713
- O("拖拽组件列表")
713
+ U("拖拽组件列表")
714
714
  ])),
715
715
  _: 1
716
716
  }),
@@ -738,8 +738,7 @@ const xt = {
738
738
  }),
739
739
  l(a, {
740
740
  span: 12,
741
- class: "drag_item_box",
742
- tid: "defaultModule.text"
741
+ class: "drag_item_box"
743
742
  }, {
744
743
  default: i(() => t[19] || (t[19] = [
745
744
  e("div", null, [
@@ -785,8 +784,7 @@ const xt = {
785
784
  }),
786
785
  l(a, {
787
786
  span: 12,
788
- class: "drag_item_box",
789
- tid: "defaultModule.text"
787
+ class: "drag_item_box"
790
788
  }, {
791
789
  default: i(() => t[21] || (t[21] = [
792
790
  e("div", null, [
@@ -809,7 +807,7 @@ const xt = {
809
807
  }),
810
808
  l(c, { class: "drag_item_title" }, {
811
809
  default: i(() => t[22] || (t[22] = [
812
- O("辅助")
810
+ U("辅助")
813
811
  ])),
814
812
  _: 1
815
813
  }),
@@ -0,0 +1,109 @@
1
+ import { defineComponent as v, ref as o, createVNode as l, resolveComponent as c, nextTick as g, createElementBlock as C, openBlock as s, createBlock as k, createCommentVNode as D } from "vue";
2
+ import { _ as T } from "./childView.vue_vue_type_style_index_0_lang-O_zWFjYY.js";
3
+ import { useRender as E } from "@utogether/utils";
4
+ const y = {
5
+ name: "DictView"
6
+ }, R = /* @__PURE__ */ v({
7
+ ...y,
8
+ setup(N) {
9
+ const i = o(null), u = [{
10
+ field: "dictCode",
11
+ title: "message.udp.dictCode"
12
+ }, {
13
+ field: "dictName",
14
+ title: "message.udp.dictName"
15
+ }, {
16
+ field: "dictType",
17
+ title: "message.udp.dictType",
18
+ code: "SU.DICT.TYPE"
19
+ }], t = E(), a = [
20
+ {
21
+ type: "checkbox",
22
+ width: 40,
23
+ align: "center"
24
+ },
25
+ {
26
+ field: "dictCode",
27
+ title: "message.udp.dictCode",
28
+ required: !0,
29
+ editRender: t.renderInput()
30
+ },
31
+ {
32
+ field: "dictName",
33
+ title: "message.udp.dictName",
34
+ required: !0,
35
+ editRender: t.renderInput()
36
+ },
37
+ // {
38
+ // field: 'userName',
39
+ // width: 300,
40
+ // editRender: renderHook.renderUpload()
41
+ // },
42
+ {
43
+ field: "dictType",
44
+ title: "message.udp.dictType",
45
+ required: !0,
46
+ editRender: t.renderDict("SU.DICT.TYPE"),
47
+ formatter: ["formatDict", "SU.DICT.TYPE"]
48
+ },
49
+ {
50
+ field: "dictDesc",
51
+ title: "message.remark",
52
+ editRender: t.renderInput()
53
+ },
54
+ {
55
+ field: "enabled",
56
+ width: 90,
57
+ editRender: t.renderDict({
58
+ code: "SU.ENABLE",
59
+ defaultValue: "1"
60
+ }),
61
+ formatter: ["formatDict", "SU.ENABLE"]
62
+ },
63
+ {
64
+ field: "operate",
65
+ width: 80,
66
+ slots: {
67
+ default: ({
68
+ row: e
69
+ }) => e.id ? [l(c("ut-button"), {
70
+ content: "lov",
71
+ onClick: () => m(e)
72
+ }, null)] : null
73
+ }
74
+ }
75
+ ], d = o(!1), r = o(null), m = (e) => {
76
+ g(() => {
77
+ var n;
78
+ d.value = !0, r.value = e, r.value.total = (n = e.children) == null ? void 0 : n.length;
79
+ });
80
+ }, f = () => {
81
+ i.value.refreshData(), d.value = !1;
82
+ }, p = {
83
+ editActived({
84
+ row: e
85
+ }) {
86
+ }
87
+ }, h = (e) => e.dictType !== "0";
88
+ return (e, n) => {
89
+ const _ = c("ut-grid");
90
+ return s(), C("div", null, [l(_, {
91
+ ref_key: "xgrid",
92
+ ref: i,
93
+ items: u,
94
+ columns: a,
95
+ "check-method": h,
96
+ events: p,
97
+ url: "/upfm/v1/lov"
98
+ }, null, 512), d.value ? (s(), k(T, {
99
+ key: 0,
100
+ show: d.value,
101
+ record: r.value,
102
+ onOnClose: f
103
+ }, null, 8, ["show", "record"])) : D("", !0)]);
104
+ };
105
+ }
106
+ });
107
+ export {
108
+ R as default
109
+ };
@@ -0,0 +1,74 @@
1
+ import { defineComponent as u, ref as m, reactive as c, resolveComponent as g, createBlock as p, openBlock as f } from "vue";
2
+ import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { useRender as z } from "@utogether/utils";
4
+ import { w as h } from "./index-BWtOrjW2.js";
5
+ const C = {
6
+ name: "InvOrganization"
7
+ }, x = /* @__PURE__ */ u({
8
+ ...C,
9
+ setup(k) {
10
+ const t = "/uums/cusOrganization", r = m(null), e = z(), i = [{
11
+ field: "organizationCode",
12
+ title: "message.udp.organizationCode"
13
+ }, {
14
+ field: "organizationName",
15
+ title: "message.udp.organizationName"
16
+ }], a = [{
17
+ type: "checkbox",
18
+ width: 40,
19
+ align: "center"
20
+ }, {
21
+ field: "organizationCode",
22
+ width: 120,
23
+ title: "message.udp.organizationCode",
24
+ required: !0,
25
+ editRender: e.renderInput()
26
+ }, {
27
+ field: "organizationName",
28
+ minWidth: 120,
29
+ title: "message.udp.organizationName",
30
+ required: !0,
31
+ editRender: e.renderInput()
32
+ }, {
33
+ field: "orgName",
34
+ minWidth: 170,
35
+ title: "message.udp.orgName",
36
+ required: !0,
37
+ editRender: e.renderBU()
38
+ }, {
39
+ field: "orgCode",
40
+ width: 110,
41
+ title: "message.udp.orgCode"
42
+ }, {
43
+ field: "enabled",
44
+ width: 80,
45
+ cellRender: e.renderEnabled(d)
46
+ }];
47
+ async function d({
48
+ row: n
49
+ }) {
50
+ const [o] = await _(h().put(t, [n]));
51
+ !o && r.value.refreshData();
52
+ }
53
+ const s = c({
54
+ columns: a
55
+ });
56
+ return (n, o) => {
57
+ const l = g("ut-grid");
58
+ return f(), p(l, {
59
+ ref_key: "xgrid",
60
+ ref: r,
61
+ items: i,
62
+ "default-params": {
63
+ organizationId: "",
64
+ orgId: ""
65
+ },
66
+ columns: s.columns,
67
+ url: t
68
+ }, null, 8, ["columns"]);
69
+ };
70
+ }
71
+ });
72
+ export {
73
+ x as default
74
+ };
@@ -0,0 +1,39 @@
1
+ import { defineComponent as a, ref as m, resolveComponent as u, createBlock as c, openBlock as g } from "vue";
2
+ import { t as p } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { clone as f } from "xe-utils";
4
+ import { useRender as _ } from "@utogether/utils";
5
+ import { w as h } from "./index-BWtOrjW2.js";
6
+ const C = { name: "OrgUnit" }, y = /* @__PURE__ */ a({
7
+ ...C,
8
+ setup(k) {
9
+ const t = "/uums/org", r = m(null), n = _(), d = [
10
+ { field: "orgCode", title: "message.udp.orgCode" },
11
+ { field: "orgName", title: "message.udp.orgName" },
12
+ { field: "orgAlias", title: "message.udp.orgAlias" }
13
+ ], s = [
14
+ { type: "checkbox", width: 50, align: "center" },
15
+ { field: "orgCode", title: "message.udp.orgCode", required: !0, editRender: { name: "$input" } },
16
+ { field: "orgName", title: "message.udp.orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
17
+ { field: "orgAlias", title: "message.udp.orgAlias", editRender: { name: "$input" } },
18
+ { field: "orgDesc", title: "message.udp.orgDesc", editRender: { name: "$input" } },
19
+ { field: "enabled", width: 80, cellRender: n.renderEnabled(l) }
20
+ ];
21
+ async function l({ row: o }) {
22
+ const i = f(o, !0), [e] = await p(h().put(t, [i]));
23
+ !e && r.value.refreshData();
24
+ }
25
+ return (o, i) => {
26
+ const e = u("ut-grid");
27
+ return g(), c(e, {
28
+ ref_key: "xgrid",
29
+ ref: r,
30
+ items: d,
31
+ columns: s,
32
+ url: t
33
+ }, null, 512);
34
+ };
35
+ }
36
+ });
37
+ export {
38
+ y as default
39
+ };
@@ -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-DZc3qRTx.js";
2
+ import { _ as k } from "./index-BWtOrjW2.js";
3
3
  const P = { class: "ut-preview-contain" }, C = /* @__PURE__ */ w({
4
4
  __name: "Preview",
5
5
  setup(T, { expose: d }) {
@@ -42,7 +42,7 @@ const P = { class: "ut-preview-contain" }, C = /* @__PURE__ */ w({
42
42
  ]);
43
43
  };
44
44
  }
45
- }), N = /* @__PURE__ */ k(C, [["__scopeId", "data-v-a7a65711"]]);
45
+ }), N = /* @__PURE__ */ k(C, [["__scopeId", "data-v-e51c0962"]]);
46
46
  export {
47
47
  N as default
48
48
  };
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as o } from "./index-DZc3qRTx.js";
2
+ import { _ as o } from "./index-BWtOrjW2.js";
3
3
  const t = {};
4
4
  function c(n, _) {
5
5
  return r(), e("div");
@@ -1,22 +1,22 @@
1
- import { defineComponent as P, ref as s, createVNode as r, Fragment as A, resolveComponent as l, nextTick as I, createElementBlock as b, openBlock as d, withDirectives as x, createBlock as p, createCommentVNode as c, vShow as E } from "vue";
1
+ import { defineComponent as I, ref as s, createVNode as r, Fragment as b, resolveComponent as a, nextTick as q, createElementBlock as w, openBlock as u, withDirectives as x, createBlock as m, createCommentVNode as c, vShow as E } from "vue";
2
2
  import { useRender as S, successMessage as $ } from "@utogether/utils";
3
- import { useClipboard as M } from "@vueuse/core";
4
- import { t as V } from "./await-to-js.es5-BtRbN2QH.js";
5
- import { _ as B } from "./DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js";
6
- import { q as U } from "./index-DZc3qRTx.js";
7
- const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
3
+ import { useClipboard as V } from "@vueuse/core";
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-COERxrYp.js";
6
+ import { w as U } from "./index-BWtOrjW2.js";
7
+ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ I({
8
8
  name: "ReportDesign",
9
9
  __name: "ReportDesign",
10
10
  setup(F) {
11
- const o = s(null), a = s(!1), i = s(!1), n = S(), t = s({}), {
11
+ const l = s(null), o = s(!1), i = s(!1), n = S(), t = s({}), {
12
12
  copy: v
13
- } = M(), g = U(), h = [{
13
+ } = V(), g = U(), h = [{
14
14
  field: "templateCode",
15
- title: "message.file.templateCode"
15
+ title: "message.urpt.templateCode"
16
16
  }, {
17
17
  field: "templateName",
18
- title: "message.file.templateName"
19
- }], u = [
18
+ title: "message.urpt.templateName"
19
+ }], d = [
20
20
  {
21
21
  type: "checkbox",
22
22
  width: 50,
@@ -24,21 +24,21 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
24
24
  },
25
25
  {
26
26
  field: "templateCode",
27
- title: "message.file.templateCode",
27
+ title: "message.urpt.templateCode",
28
28
  required: !0,
29
29
  width: 150,
30
30
  editRender: n.renderInput()
31
31
  },
32
32
  {
33
33
  field: "templateName",
34
- title: "message.file.templateName",
34
+ title: "message.urpt.templateName",
35
35
  required: !0,
36
36
  width: 240,
37
37
  editRender: n.renderInput()
38
38
  },
39
39
  {
40
40
  field: "paperType",
41
- title: "message.file.paperType",
41
+ title: "message.urpt.paperType",
42
42
  width: 120,
43
43
  required: !0,
44
44
  editRender: n.renderDict({
@@ -61,26 +61,26 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
61
61
  slots: {
62
62
  default: ({
63
63
  row: e
64
- }) => e.id ? r(A, null, [r(l("ut-button"), {
64
+ }) => e.id ? r(b, null, [r(a("ut-button"), {
65
65
  content: "design",
66
66
  icon: "ri-quill-pen-line",
67
67
  onTap: () => k(e)
68
- }, null), r(l("ut-button"), {
68
+ }, null), r(a("ut-button"), {
69
69
  content: "copy",
70
70
  status: "warning",
71
71
  icon: "ri-file-copy-2-fill",
72
72
  onTap: () => R(e)
73
- }, null), r(l("ut-button"), {
73
+ }, null), r(a("ut-button"), {
74
74
  content: "export",
75
75
  status: "u-cyan",
76
76
  icon: "ri-folder-download-fill",
77
- onTap: () => _(e)
77
+ onTap: () => y(e)
78
78
  }, null)]) : null
79
79
  }
80
80
  }
81
81
  ], C = [{
82
82
  field: "templateCode",
83
- title: "message.templateCode",
83
+ title: "message.urpt.templateCode",
84
84
  required: !0,
85
85
  itemRender: {
86
86
  name: "$input"
@@ -88,7 +88,7 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
88
88
  span: 24
89
89
  }, {
90
90
  field: "templateName",
91
- title: "message.templateName",
91
+ title: "message.urpt.templateName",
92
92
  required: !0,
93
93
  itemRender: {
94
94
  name: "$input"
@@ -96,6 +96,7 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
96
96
  span: 24
97
97
  }, {
98
98
  field: "paperType",
99
+ title: "message.urpt.paperType",
99
100
  width: 100,
100
101
  required: !0,
101
102
  itemRender: n.renderDict({
@@ -105,57 +106,56 @@ const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ P({
105
106
  }, {
106
107
  field: "remarks",
107
108
  title: "message.remark",
108
- required: !0,
109
109
  itemRender: {
110
110
  name: "$input"
111
111
  },
112
112
  span: 24
113
113
  }], R = (e) => {
114
114
  t.value.templateContent = e.templateContent, t.value.paperType = e.paperType, i.value = !0;
115
- }, _ = (e) => {
115
+ }, y = (e) => {
116
116
  v(e.templateContent), $("复制成功,快试试右键粘贴吧");
117
- }, y = async () => {
118
- const [e] = await V(g.post(f, [t.value]));
119
- !e && o.value.refreshData(), i.value = !1;
117
+ }, _ = async () => {
118
+ const [e] = await B(g.post(f, [t.value]));
119
+ !e && l.value.refreshData(), i.value = !1;
120
120
  }, k = (e) => {
121
- t.value = e, I(() => {
122
- a.value = !0;
121
+ t.value = e, q(() => {
122
+ o.value = !0;
123
123
  });
124
124
  }, T = {
125
125
  editActived({
126
126
  row: e
127
127
  }) {
128
- e.id && (u[1].editRender.props.disabled = !0, o.value.getInstance().refreshColumn());
128
+ d[1].editRender.props.disabled = !!e.id, l.value.getInstance().refreshColumn();
129
129
  }
130
130
  }, N = ({
131
131
  row: e
132
- }) => e.enabled !== "1", w = () => {
133
- t.value = {}, a.value = !1, o.value.refreshData();
132
+ }) => (e == null ? void 0 : e.enabled) !== "1", D = () => {
133
+ t.value = {}, o.value = !1, l.value.refreshData();
134
134
  };
135
- return (e, m) => {
136
- const D = l("ut-grid"), q = l("ut-modal-form");
137
- return d(), b("div", null, [x(r(D, {
135
+ return (e, p) => {
136
+ const P = a("ut-grid"), A = a("ut-modal-form");
137
+ return u(), w("div", null, [x(r(P, {
138
138
  ref_key: "xgrid",
139
- ref: o,
139
+ ref: l,
140
140
  items: h,
141
- columns: u,
142
- checkMethod: N,
141
+ columns: d,
142
+ "check-method": N,
143
143
  url: f,
144
144
  events: T
145
- }, null, 512), [[E, !a.value]]), a.value ? (d(), p(B, {
145
+ }, null, 512), [[E, !o.value]]), o.value ? (u(), m(M, {
146
146
  key: 0,
147
147
  record: t.value,
148
- onOnClose: w
149
- }, null, 8, ["record"])) : c("", !0), i.value ? (d(), p(q, {
148
+ onOnClose: D
149
+ }, null, 8, ["record"])) : c("", !0), i.value ? (u(), m(A, {
150
150
  key: 1,
151
151
  record: t.value,
152
152
  items: C,
153
- width: 300,
154
- height: 240,
153
+ width: "40%",
154
+ height: 290,
155
155
  "data-status": "update",
156
156
  title: "复制模板",
157
- onConfirm: y,
158
- onClose: m[0] || (m[0] = (G) => i.value = !1)
157
+ onConfirm: _,
158
+ onClose: p[0] || (p[0] = (G) => i.value = !1)
159
159
  }, null, 8, ["record"])) : c("", !0)]);
160
160
  };
161
161
  }
@@ -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-CnG_Ybnt.js";
3
+ import { _ as g } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-DBqJnvTQ.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-CnG_Ybnt.js";
1
+ import { _ as f } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-DBqJnvTQ.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 { q as V } from "./index-DZc3qRTx.js";
6
+ import { w as V } from "./index-BWtOrjW2.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",