@utogether/udp-core 2.0.0-beta.26 → 2.0.0-beta.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/403-CyoOD-Ik.js +65 -0
  2. package/dist/404-Ch_OHTw0.js +65 -0
  3. package/dist/500-Cf9am7HK.js +67 -0
  4. package/dist/AuthorityInfo-BJ427cqG.js +4 -0
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js +99 -0
  6. package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
  7. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
  8. package/dist/Company-qo-lKPkv.js +25 -0
  9. package/dist/CompanyPanel-DkKWAKvY.js +204 -0
  10. package/dist/DataSet-iBHzs75s.js +147 -0
  11. package/dist/Department-CHUQByKX.js +25 -0
  12. package/dist/DepartmentPanel-C742dfOO.js +248 -0
  13. package/dist/DesignPanel-D9oE5R7m.js +4 -0
  14. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js +1097 -0
  15. package/dist/DictView-CrFXprP9.js +110 -0
  16. package/dist/InvOrganization-Cz8SzIgs.js +73 -0
  17. package/dist/Org-Bzt6yKox.js +38 -0
  18. package/dist/Preview-jonigfMQ.js +48 -0
  19. package/dist/ReportDefine-BpiM5Ovq.js +10 -0
  20. package/dist/ReportDesign-fp09cXJ7.js +164 -0
  21. package/dist/ReportQuery-52ZP1PYP.js +74 -0
  22. package/dist/ReportQueryFrom-DSYavJb1.js +4 -0
  23. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js +177 -0
  24. package/dist/ReportTemplate-CA_UW0eD.js +161 -0
  25. package/dist/Role-DqOt8Bk0.js +25 -0
  26. package/dist/RoleAssign-BdxhefhQ.js +26 -0
  27. package/dist/RolePanel-2gZ3H0ET.js +4 -0
  28. package/dist/RolePanel-BsNd0svJ.js +4 -0
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js +152 -0
  30. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js +131 -0
  31. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js +99 -0
  32. package/dist/Staff-D3L8fEoY.js +26 -0
  33. package/dist/StaffInfo-DYRw6ZYJ.js +4 -0
  34. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js +107 -0
  35. package/dist/StaffPanel-DkrNH6Px.js +4 -0
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js +152 -0
  37. package/dist/SysUser-Bl1-cIpJ.js +15 -0
  38. package/dist/SysUserPanel-yxNLaBwt.js +4 -0
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js +352 -0
  40. package/dist/SystemMenu-C4_Arn12.js +155 -0
  41. package/dist/UserInfo-QcNwJCUR.js +4 -0
  42. package/dist/UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js +159 -0
  43. package/dist/childView-B23DEO2u.js +4 -0
  44. package/dist/childView-saDZQv9x.js +4 -0
  45. package/dist/childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js +182 -0
  46. package/dist/childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js +142 -0
  47. package/dist/code-rule-2_Ihx_by.js +147 -0
  48. package/dist/core.es.js +26 -6
  49. package/dist/cron-task-BFOPJQIk.js +134 -0
  50. package/dist/flow-task-PoDnE_kE.js +10 -0
  51. package/dist/frameView-f7Ya0Knj.js +43 -0
  52. package/dist/index-BpdTDaTk.js +3213 -0
  53. package/dist/layout-home-v3DPJ7rB.js +231 -0
  54. package/dist/layoutView-DZHoQDH1.js +3190 -0
  55. package/dist/log-in-BPAMJTwH.js +115 -0
  56. package/dist/log-out-DZACF0jg.js +129 -0
  57. package/dist/login-B8cwozax.js +216 -0
  58. package/dist/login-log-CVvRgZSu.js +70 -0
  59. package/dist/lov-view-Ba7Y7xy0.js +98 -0
  60. package/dist/menuInfo-BpRKFYK8.js +4 -0
  61. package/dist/menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js +359 -0
  62. package/dist/pda-app-C0jJecrL.js +706 -0
  63. package/dist/redirect-DTz8GSnv.js +15 -0
  64. package/dist/resource-BG22Cw4P.js +97 -0
  65. package/dist/su-welcome-DaxhbrC6.js +879 -0
  66. package/dist/sys-config-CG2fMtak.js +384 -0
  67. package/dist/udp-core.css +1 -2
  68. package/dist/useNav-_u2UAQWk.js +84 -0
  69. package/dist/utogether-MlnyYtNS.js +4 -0
  70. package/dist/wecom-push-B75FLee5.js +70 -0
  71. package/index.ts +54 -50
  72. package/package.json +21 -21
  73. package/src/App.vue +79 -78
  74. package/src/api/http.ts +10 -4
  75. package/src/api/index.ts +51 -51
  76. package/src/api/user.ts +64 -64
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/components/udp/content/index.vue +93 -93
  79. package/src/components/udp/form-upload/form-upload.vue +496 -496
  80. package/src/components/udp/grid/index.vue +643 -544
  81. package/src/components/udp/index.ts +2 -1
  82. package/src/components/udp/modal-form/index.vue +326 -0
  83. package/src/components/udp/utils.ts +420 -420
  84. package/src/layout/components/lay-navbar/index.vue +240 -240
  85. package/src/layout/components/lay-panel/index.vue +2 -6
  86. package/src/layout/components/lay-search/components/SearchModal.vue +185 -181
  87. package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
  88. package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
  89. package/src/layout/components/lay-sidebar/vertical.vue +92 -92
  90. package/src/layout/layoutView.vue +1 -0
  91. package/src/main.ts +111 -109
  92. package/src/plugins/i18n/zh.ts +5 -1
  93. package/src/plugins/vxe-table/index.ts +116 -116
  94. package/src/router/index.ts +5 -34
  95. package/src/router/utils.ts +434 -430
  96. package/src/store/modules/permission.ts +1 -1
  97. package/src/store/modules/system.ts +193 -186
  98. package/src/style/print-lock.css +380 -375
  99. package/src/style/suprint.css +990 -985
  100. package/src/style/vxetable.scss +372 -364
  101. package/src/utils/authority/index.ts +19 -2
  102. package/src/utils/dataFormat/index.ts +309 -222
  103. package/src/utils/udp/http/index.ts +126 -67
  104. package/src/utils/udp/http/types.d.ts +15 -14
  105. package/src/views/login/login-view.vue +4 -21
  106. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  107. package/src/views/system/sys/sys-config.vue +344 -344
  108. package/src/views/uhome/components/home-todo.vue +191 -178
  109. package/src/views/uhome/dynamic-card.vue +31 -31
  110. package/src/views/uhome/su-welcome.vue +310 -310
  111. package/src/views/ulogin/login.vue +292 -296
  112. package/src/views/urpt/design/DesignPanel.vue +538 -507
  113. package/src/views/urpt/design/print-data.ts +39 -59
  114. package/tsconfig.json +2 -3
  115. package/types/global.d.ts +234 -234
  116. package/vite.config.ts +2 -1
  117. package/dist/403-D6Wb3JJh.js +0 -72
  118. package/dist/404-B_HNbPNV.js +0 -72
  119. package/dist/500-BMemTTy1.js +0 -77
  120. package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
  121. package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
  122. package/dist/Company-BLXSfow0.js +0 -21
  123. package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
  124. package/dist/DataSet-CuGZcKC-.js +0 -141
  125. package/dist/Department-oFhsa7cd.js +0 -21
  126. package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
  127. package/dist/DepartmentPanel-BL58AdoT.js +0 -2
  128. package/dist/DesignPanel-DmkFVw1N.js +0 -1196
  129. package/dist/DictView-CC5yMzOq.js +0 -100
  130. package/dist/File-WJXjGYxr.js +0 -89
  131. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  132. package/dist/Org-HgnOWubi.js +0 -76
  133. package/dist/Preview-CAzWxLmP.js +0 -45
  134. package/dist/ReIcon-DecitXmg.js +0 -413
  135. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  136. package/dist/ReportDesign-DwchGG2P.js +0 -158
  137. package/dist/ReportQuery-D5jaRJEn.js +0 -101
  138. package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
  139. package/dist/ReportTemplate-CNcTmccs.js +0 -162
  140. package/dist/Role-Be8WfdCA.js +0 -21
  141. package/dist/RoleAssign-CtehGAUf.js +0 -22
  142. package/dist/RolePanel-CAwITg_q.js +0 -131
  143. package/dist/RolePanel-SN0FGFZ7.js +0 -176
  144. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  145. package/dist/Staff-V2YsNKcj.js +0 -22
  146. package/dist/StaffInfo-CKRPW0r4.js +0 -149
  147. package/dist/StaffPanel-BxcgMg7u.js +0 -143
  148. package/dist/SysUser-Dxyj5w5m.js +0 -12
  149. package/dist/SysUserPanel-DI6CWcZo.js +0 -365
  150. package/dist/SystemMenu-BBHREM8T.js +0 -154
  151. package/dist/UserInfo-BMVQ0xwE.js +0 -194
  152. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  153. package/dist/api-BFNxcxSN.js +0 -30
  154. package/dist/authority-BJFEUdrh.js +0 -20
  155. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  156. package/dist/childView-BBjPEraB.js +0 -184
  157. package/dist/childView-DNqG2UVm.js +0 -181
  158. package/dist/code-rule-QFrhqFrW.js +0 -151
  159. package/dist/contant-Q77dU_V3.js +0 -4
  160. package/dist/cron-task-BpUDKEAU.js +0 -131
  161. package/dist/flow-task-DAc2NrDU.js +0 -11
  162. package/dist/frameView-Di0zJZUR.js +0 -39
  163. package/dist/layout-home-BVp7vYLR.js +0 -239
  164. package/dist/layoutView-B6Mx2ERA.js +0 -2662
  165. package/dist/log-in-BrNB0mLz.js +0 -117
  166. package/dist/log-out-dYfqvzy6.js +0 -111
  167. package/dist/login-D_Hjy3Jd.js +0 -231
  168. package/dist/login-log-CJak-ANA.js +0 -79
  169. package/dist/lov-view-DM5Nm5tW.js +0 -95
  170. package/dist/menuInfo-BlOY1KZW.js +0 -346
  171. package/dist/mitt-CQgI7DYU.js +0 -27
  172. package/dist/pda-app-CA7YI37u.js +0 -589
  173. package/dist/redirect-N0k4tImU.js +0 -16
  174. package/dist/resource-CfQTHFcs.js +0 -94
  175. package/dist/su-welcome-DVD3S_du.js +0 -799
  176. package/dist/sys-config-Ddb3vBpK.js +0 -316
  177. package/dist/system-Cm3lyBas.js +0 -1528
  178. package/dist/udp-core-DaQd5CF1.js +0 -2028
  179. package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
  180. package/dist/useNav-BhOJIdrJ.js +0 -106
  181. package/dist/utogether-l7JXs4Lv.js +0 -4
  182. package/dist/water-mark-WDQZ9YqB.js +0 -119
  183. package/dist/wecom-push-kWkAVRCj.js +0 -77
@@ -0,0 +1,706 @@
1
+ import { defineComponent as re, ref as N, computed as G, watch as me, createVNode as p, Fragment as Y, withDirectives as he, unref as C, resolveDirective as be, nextTick as ve, resolveComponent as x, openBlock as J, createElementBlock as Oe, createBlock as _e, createCommentVNode as we, isVNode as Te } from "vue";
2
+ import { useI18n as je } from "vue-i18n";
3
+ import { I as Ce, x as Se, i as xe, j as $e, _ as Pe } from "./index-BpdTDaTk.js";
4
+ import { withInstall as Ve, useRender as Ae } from "@utogether/utils";
5
+ import { clone as oe, isString as Z } from "xe-utils";
6
+ import Ne from "qrcode";
7
+ const z = {
8
+ silent: !1,
9
+ logLevel: "warn"
10
+ };
11
+ function j(e) {
12
+ if (typeof e != "object" || e === null)
13
+ return !1;
14
+ const t = Object.getPrototypeOf(e);
15
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
16
+ }
17
+ const ke = () => ({
18
+ func: () => {
19
+ },
20
+ bool: !0,
21
+ string: "",
22
+ number: 0,
23
+ array: () => [],
24
+ object: () => ({}),
25
+ integer: 0
26
+ }), ie = Object.prototype, se = ie.toString, Le = ie.hasOwnProperty, ae = /^\s*function (\w+)/;
27
+ function ee(e) {
28
+ const t = e?.type ?? e;
29
+ if (t) {
30
+ const r = t.toString().match(ae);
31
+ return r ? r[1] : "";
32
+ }
33
+ return "";
34
+ }
35
+ function Re(e) {
36
+ if (e == null)
37
+ return "";
38
+ const t = e.constructor.toString().match(ae);
39
+ return t ? t[1].replace(/^Async/, "") : "";
40
+ }
41
+ function te(e) {
42
+ return "structuredClone" in globalThis ? structuredClone(e) : Array.isArray(e) ? [...e] : j(e) ? Object.assign({}, e) : e;
43
+ }
44
+ function le() {
45
+ }
46
+ let c = le;
47
+ process.env.NODE_ENV !== "production" && (c = typeof console < "u" ? function(r, n = z.logLevel) {
48
+ z.silent === !1 && console[n](`[VueTypes warn]: ${r}`);
49
+ } : le);
50
+ const k = (e, t) => Le.call(e, t), Ie = Number.isInteger || function(t) {
51
+ return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
52
+ }, L = Array.isArray || function(t) {
53
+ return se.call(t) === "[object Array]";
54
+ }, R = (e) => se.call(e) === "[object Function]", M = (e, t) => j(e) && k(e, "_vueTypes_name") && (!t || e._vueTypes_name === t), ue = (e) => j(e) && (k(e, "type") || ["_vueTypes_name", "validator", "default", "required"].some(
55
+ (t) => k(e, t)
56
+ ));
57
+ function ce(e, t) {
58
+ return Object.defineProperty(e.bind(t), "__original", {
59
+ value: e
60
+ });
61
+ }
62
+ function S(e, t, r = !1) {
63
+ let n, o = !0, a = "";
64
+ j(e) ? n = e : n = { type: e };
65
+ const s = M(n) ? n._vueTypes_name + " - " : "";
66
+ if (ue(n) && n.type !== null) {
67
+ if (n.type === void 0 || n.type === !0 || !n.required && t == null)
68
+ return o;
69
+ L(n.type) ? (o = n.type.some(
70
+ (d) => S(d, t, !0) === !0
71
+ ), a = n.type.map((d) => ee(d)).join(" or ")) : (a = ee(n), a === "Array" ? o = L(t) : a === "Object" ? o = j(t) : a === "String" || a === "Number" || a === "Boolean" || a === "Function" ? o = Re(t) === a : o = t instanceof n.type);
72
+ }
73
+ if (!o) {
74
+ const d = `${s}value "${t}" should be of type "${a}"`;
75
+ return r === !1 ? (c(d), !1) : d;
76
+ }
77
+ if (k(n, "validator") && R(n.validator)) {
78
+ const d = c, y = [];
79
+ if (c = (g) => {
80
+ y.push(g);
81
+ }, o = n.validator(t), c = d, !o) {
82
+ const g = (y.length > 1 ? "* " : "") + y.join(`
83
+ * `);
84
+ return y.length = 0, r === !1 ? (c(g), o) : g;
85
+ }
86
+ }
87
+ return o;
88
+ }
89
+ function b(e, t) {
90
+ const r = Object.defineProperties(t, {
91
+ _vueTypes_name: {
92
+ value: e,
93
+ writable: !0
94
+ },
95
+ isRequired: {
96
+ get() {
97
+ return this.required = !0, this;
98
+ }
99
+ },
100
+ def: {
101
+ value(o) {
102
+ if (o === void 0) {
103
+ if (this.type === Boolean || Array.isArray(this.type) && this.type.includes(Boolean)) {
104
+ this.default = void 0;
105
+ return;
106
+ }
107
+ return k(this, "default") && delete this.default, this;
108
+ }
109
+ return !R(o) && S(this, o, !0) !== !0 ? (c(`${this._vueTypes_name} - invalid default value: "${o}"`), this) : (L(o) ? this.default = () => te(o) : j(o) ? this.default = () => te(o) : this.default = o, this);
110
+ }
111
+ }
112
+ }), { validator: n } = r;
113
+ return R(n) && (r.validator = ce(n, r)), r;
114
+ }
115
+ function _(e, t) {
116
+ const r = b(e, t);
117
+ return Object.defineProperty(r, "validate", {
118
+ value(n) {
119
+ return R(this.validator) && c(
120
+ `${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
121
+ ${JSON.stringify(
122
+ this
123
+ )}`
124
+ ), this.validator = ce(n, this), this;
125
+ }
126
+ });
127
+ }
128
+ function B(e) {
129
+ return e.replace(/^(?!\s*$)/gm, " ");
130
+ }
131
+ const Ue = () => _("any", {}), qe = () => _("function", {
132
+ type: Function
133
+ }), ne = () => _("boolean", {
134
+ type: Boolean
135
+ }), De = () => _("string", {
136
+ type: String
137
+ }), Be = () => _("number", {
138
+ type: Number
139
+ }), Ee = () => _("array", {
140
+ type: Array
141
+ }), Fe = () => _("object", {
142
+ type: Object
143
+ }), We = () => b("integer", {
144
+ type: Number,
145
+ validator(e) {
146
+ const t = Ie(e);
147
+ return t === !1 && c(`integer - "${e}" is not an integer`), t;
148
+ }
149
+ }), Ye = () => b("symbol", {
150
+ validator(e) {
151
+ const t = typeof e == "symbol";
152
+ return t === !1 && c(`symbol - invalid value "${e}"`), t;
153
+ }
154
+ }), ze = () => Object.defineProperty(
155
+ {
156
+ type: null,
157
+ validator(e) {
158
+ const t = e === null;
159
+ return t === !1 && c("nullable - value should be null"), t;
160
+ }
161
+ },
162
+ "_vueTypes_name",
163
+ { value: "nullable" }
164
+ );
165
+ function Me(e, t = "custom validation failed") {
166
+ if (typeof e != "function")
167
+ throw new TypeError(
168
+ "[VueTypes error]: You must provide a function as argument"
169
+ );
170
+ return b(e.name || "<<anonymous function>>", {
171
+ type: null,
172
+ validator(r) {
173
+ const n = e(r);
174
+ return n || c(`${this._vueTypes_name} - ${t}`), n;
175
+ }
176
+ });
177
+ }
178
+ function Qe(e) {
179
+ if (!L(e))
180
+ throw new TypeError(
181
+ "[VueTypes error]: You must provide an array as argument."
182
+ );
183
+ const t = `oneOf - value should be one of "${e.map((n) => typeof n == "symbol" ? n.toString() : n).join('", "')}".`, r = {
184
+ validator(n) {
185
+ const o = e.indexOf(n) !== -1;
186
+ return o || c(t), o;
187
+ }
188
+ };
189
+ if (e.indexOf(null) === -1) {
190
+ const n = e.reduce(
191
+ (o, a) => {
192
+ if (a != null) {
193
+ const s = a.constructor;
194
+ o.indexOf(s) === -1 && o.push(s);
195
+ }
196
+ return o;
197
+ },
198
+ []
199
+ );
200
+ n.length > 0 && (r.type = n);
201
+ }
202
+ return b("oneOf", r);
203
+ }
204
+ function He(e) {
205
+ if (!L(e))
206
+ throw new TypeError(
207
+ "[VueTypes error]: You must provide an array as argument"
208
+ );
209
+ let t = !1, r = !1, n = [];
210
+ for (let a = 0; a < e.length; a += 1) {
211
+ const s = e[a];
212
+ if (ue(s)) {
213
+ if (R(s.validator) && (t = !0), M(s, "oneOf") && s.type) {
214
+ n = n.concat(s.type);
215
+ continue;
216
+ }
217
+ if (M(s, "nullable")) {
218
+ r = !0;
219
+ continue;
220
+ }
221
+ if (s.type === !0 || !s.type) {
222
+ c('oneOfType - invalid usage of "true" and "null" as types.');
223
+ continue;
224
+ }
225
+ n = n.concat(s.type);
226
+ } else
227
+ n.push(s);
228
+ }
229
+ n = n.filter((a, s) => n.indexOf(a) === s);
230
+ const o = r === !1 && n.length > 0 ? n : null;
231
+ return t ? b("oneOfType", {
232
+ type: o,
233
+ validator(a) {
234
+ const s = [], d = e.some((y) => {
235
+ const g = S(y, a, !0);
236
+ return typeof g == "string" && s.push(g), g === !0;
237
+ });
238
+ return d || c(
239
+ `oneOfType - provided value does not match any of the ${s.length} passed-in validators:
240
+ ${B(s.join(`
241
+ `))}`
242
+ ), d;
243
+ }
244
+ }) : b("oneOfType", {
245
+ type: o
246
+ });
247
+ }
248
+ function Xe(e) {
249
+ return b("arrayOf", {
250
+ type: Array,
251
+ validator(t) {
252
+ let r = "";
253
+ const n = t.every((o) => (r = S(e, o, !0), r === !0));
254
+ return n || c(`arrayOf - value validation error:
255
+ ${B(r)}`), n;
256
+ }
257
+ });
258
+ }
259
+ function Ke(e) {
260
+ return b("instanceOf", {
261
+ type: e
262
+ });
263
+ }
264
+ function Ge(e) {
265
+ return b("objectOf", {
266
+ type: Object,
267
+ validator(t) {
268
+ let r = "";
269
+ if (!j(t))
270
+ return !1;
271
+ const n = Object.keys(t).every((o) => (r = S(e, t[o], !0), r === !0));
272
+ return n || c(`objectOf - value validation error:
273
+ ${B(r)}`), n;
274
+ }
275
+ });
276
+ }
277
+ function Je(e) {
278
+ const t = Object.keys(e), r = t.filter((o) => !!e[o]?.required), n = b("shape", {
279
+ type: Object,
280
+ validator(o) {
281
+ if (!j(o))
282
+ return !1;
283
+ const a = Object.keys(o);
284
+ if (r.length > 0 && r.some((s) => a.indexOf(s) === -1)) {
285
+ const s = r.filter(
286
+ (d) => a.indexOf(d) === -1
287
+ );
288
+ return s.length === 1 ? c(`shape - required property "${s[0]}" is not defined.`) : c(
289
+ `shape - required properties "${s.join(
290
+ '", "'
291
+ )}" are not defined.`
292
+ ), !1;
293
+ }
294
+ return a.every((s) => {
295
+ if (t.indexOf(s) === -1)
296
+ return this._vueTypes_isLoose === !0 ? !0 : (c(
297
+ `shape - shape definition does not include a "${s}" property. Allowed keys: "${t.join(
298
+ '", "'
299
+ )}".`
300
+ ), !1);
301
+ const d = e[s], y = S(d, o[s], !0);
302
+ return typeof y == "string" && c(`shape - "${s}" property validation error:
303
+ ${B(y)}`), y === !0;
304
+ });
305
+ }
306
+ });
307
+ return Object.defineProperty(n, "_vueTypes_isLoose", {
308
+ writable: !0,
309
+ value: !1
310
+ }), Object.defineProperty(n, "loose", {
311
+ get() {
312
+ return this._vueTypes_isLoose = !0, this;
313
+ }
314
+ }), n;
315
+ }
316
+ var Ze = Object.defineProperty, et = (e, t, r) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, h = (e, t, r) => (et(e, typeof t != "symbol" ? t + "" : t, r), r);
317
+ const tt = /* @__PURE__ */ (() => {
318
+ var e;
319
+ return (
320
+ // eslint-disable-next-line @typescript-eslint/no-extraneous-class
321
+ e = class {
322
+ static get any() {
323
+ return Ue();
324
+ }
325
+ static get func() {
326
+ return qe().def(this.defaults.func);
327
+ }
328
+ static get bool() {
329
+ return this.defaults.bool === void 0 ? ne() : ne().def(this.defaults.bool);
330
+ }
331
+ static get string() {
332
+ return De().def(this.defaults.string);
333
+ }
334
+ static get number() {
335
+ return Be().def(this.defaults.number);
336
+ }
337
+ static get array() {
338
+ return Ee().def(this.defaults.array);
339
+ }
340
+ static get object() {
341
+ return Fe().def(this.defaults.object);
342
+ }
343
+ static get integer() {
344
+ return We().def(this.defaults.integer);
345
+ }
346
+ static get symbol() {
347
+ return Ye();
348
+ }
349
+ static get nullable() {
350
+ return ze();
351
+ }
352
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
353
+ static extend(...t) {
354
+ c(
355
+ "VueTypes.extend has been removed. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."
356
+ );
357
+ }
358
+ }, h(e, "defaults", {}), h(e, "sensibleDefaults"), h(e, "config", z), h(e, "custom", Me), h(e, "oneOf", Qe), h(e, "instanceOf", Ke), h(e, "oneOfType", He), h(e, "arrayOf", Xe), h(e, "objectOf", Ge), h(e, "shape", Je), h(e, "utils", {
359
+ validate(t, r) {
360
+ return S(r, t, !0) === !0;
361
+ },
362
+ toType(t, r, n = !1) {
363
+ return n ? _(t, r) : b(t, r);
364
+ }
365
+ }), e
366
+ );
367
+ })();
368
+ function de(e = ke()) {
369
+ var t;
370
+ return t = class extends tt {
371
+ static get sensibleDefaults() {
372
+ return { ...this.defaults };
373
+ }
374
+ static set sensibleDefaults(r) {
375
+ if (r === !1) {
376
+ this.defaults = {};
377
+ return;
378
+ }
379
+ if (r === !0) {
380
+ this.defaults = { ...e };
381
+ return;
382
+ }
383
+ this.defaults = { ...r };
384
+ }
385
+ }, h(t, "defaults", { ...e }), t;
386
+ }
387
+ class gt extends de() {
388
+ }
389
+ const nt = de({
390
+ func: void 0,
391
+ bool: void 0,
392
+ string: void 0,
393
+ number: void 0,
394
+ object: void 0,
395
+ integer: void 0
396
+ });
397
+ class D extends nt {
398
+ // a native-like validator that supports the `.validable` method
399
+ static get style() {
400
+ return _("style", {
401
+ type: [String, Object]
402
+ });
403
+ }
404
+ static get VNodeChild() {
405
+ return _("VNodeChild", {
406
+ type: void 0
407
+ });
408
+ }
409
+ }
410
+ const rt = {
411
+ // img 或者 canvas,img不支持logo嵌套
412
+ tag: D.string.validate((e) => ["canvas", "img"].includes(e)).def("canvas"),
413
+ // 二维码内容
414
+ text: {
415
+ type: [String, Array],
416
+ default: null
417
+ },
418
+ // qrcode.js配置项
419
+ options: {
420
+ type: Object,
421
+ default: () => ({})
422
+ },
423
+ // 宽度
424
+ width: D.number.def(200),
425
+ // logo
426
+ logo: {
427
+ type: [String, Object],
428
+ default: () => ""
429
+ },
430
+ // 是否过期
431
+ disabled: D.bool.def(!1),
432
+ // 过期提示内容
433
+ disabledText: D.string.def("")
434
+ }, ot = /* @__PURE__ */ re({
435
+ name: "SuQrcode",
436
+ props: rt,
437
+ emits: ["done", "click", "disabled-click"],
438
+ setup(e, {
439
+ emit: t
440
+ }) {
441
+ const {
442
+ toCanvas: r,
443
+ toDataURL: n
444
+ } = Ne, o = N(!0), a = N(null), s = G(() => String(e.text)), d = G(() => ({
445
+ width: e.width + "px",
446
+ height: e.width + "px"
447
+ })), y = async () => {
448
+ await ve();
449
+ const i = oe(e.options || {}, !0);
450
+ if (e.tag === "canvas") {
451
+ i.errorCorrectionLevel = i.errorCorrectionLevel || $(C(s));
452
+ const l = await E(C(s), i);
453
+ i.scale = e.width === 0 ? void 0 : e.width / l * 4;
454
+ const u = await r(C(a), C(s), i);
455
+ if (e.logo) {
456
+ const f = await g(u);
457
+ t("done", f), o.value = !1;
458
+ } else
459
+ t("done", u.toDataURL()), o.value = !1;
460
+ } else {
461
+ const l = await n(s.value, {
462
+ errorCorrectionLevel: "H",
463
+ width: e.width,
464
+ ...i
465
+ });
466
+ C(a).src = l, t("done", l), o.value = !1;
467
+ }
468
+ };
469
+ me(() => s.value, (i) => {
470
+ i && y();
471
+ }, {
472
+ deep: !0,
473
+ immediate: !0
474
+ });
475
+ const g = (i) => {
476
+ const l = i.width, u = Object.assign({
477
+ logoSize: 0.15,
478
+ bgColor: "#ffffff",
479
+ borderSize: 0.05,
480
+ crossOrigin: "anonymous",
481
+ borderRadius: 8,
482
+ logoRadius: 0
483
+ }, Z(e.logo) ? {} : e.logo), {
484
+ logoSize: f = 0.15,
485
+ bgColor: m = "#ffffff",
486
+ borderSize: O = 0.05,
487
+ crossOrigin: P = "anonymous",
488
+ borderRadius: fe = 8,
489
+ logoRadius: W = 0
490
+ } = u, pe = Z(e.logo) ? e.logo : e.logo.src, w = l * f, T = l * (1 - f) / 2, Q = l * (f + O), H = l * (1 - f - O) / 2, v = i.getContext("2d");
491
+ if (!v) return;
492
+ I(v)(H, H, Q, Q, fe), v.fillStyle = m, v.fill();
493
+ const V = new Image();
494
+ (P || W) && V.setAttribute("crossOrigin", P), V.src = pe;
495
+ const ye = (A) => {
496
+ v.drawImage(A, T, T, w, w);
497
+ }, ge = (A) => {
498
+ const q = document.createElement("canvas");
499
+ q.width = T + w, q.height = T + w;
500
+ const X = q.getContext("2d");
501
+ if (!X || !v || (X.drawImage(A, T, T, w, w), I(v)(T, T, w, w, W), !v)) return;
502
+ const K = v.createPattern(q, "no-repeat");
503
+ K && (v.fillStyle = K, v.fill());
504
+ };
505
+ return new Promise((A) => {
506
+ V.onload = () => {
507
+ W ? ge(V) : ye(V), A(i.toDataURL());
508
+ };
509
+ });
510
+ }, E = async (i, l) => {
511
+ const u = document.createElement("canvas");
512
+ return await r(u, i, l), u.width;
513
+ }, $ = (i) => i.length > 36 ? "M" : i.length > 16 ? "Q" : "H", I = (i) => (l, u, f, m, O) => {
514
+ const P = Math.min(f, m);
515
+ return O > P / 2 && (O = P / 2), i.beginPath(), i.moveTo(l + O, u), i.arcTo(l + f, u, l + f, u + m, O), i.arcTo(l + f, u + m, l, u + m, O), i.arcTo(l, u + m, l, u, O), i.arcTo(l, u, l + f, u, O), i.closePath(), i;
516
+ }, U = () => {
517
+ t("click");
518
+ }, F = () => {
519
+ t("disabled-click");
520
+ };
521
+ return () => p(Y, null, [he(p("div", {
522
+ class: "qrcode relative inline-block",
523
+ style: C(d)
524
+ }, [e.tag === "canvas" ? p("canvas", {
525
+ ref: a,
526
+ onClick: U
527
+ }, null) : p("img", {
528
+ ref: a,
529
+ onClick: U
530
+ }, null), e.disabled && p("div", {
531
+ class: "qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",
532
+ onClick: F
533
+ }, [p("div", {
534
+ class: "absolute top-[50%] left-[50%] font-bold"
535
+ }, [p(Ce, {
536
+ class: "cursor-pointer",
537
+ icon: "refresh-right",
538
+ width: "30",
539
+ color: "var(--el-color-primary)"
540
+ }, null), p("div", null, [e.disabledText])])])]), [[be("loading"), C(o)]])]);
541
+ }
542
+ }), it = Ve(ot);
543
+ function st(e) {
544
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Te(e);
545
+ }
546
+ const at = {
547
+ name: "PdaApp"
548
+ }, lt = /* @__PURE__ */ re({
549
+ ...at,
550
+ setup(e) {
551
+ const t = Se(), r = Ae(), {
552
+ t: n
553
+ } = je(), o = "/upms/v1/app-manage", a = N(null), s = N({}), d = [{
554
+ type: "checkbox",
555
+ width: 45,
556
+ align: "center"
557
+ }, {
558
+ field: "appVersion",
559
+ title: "message.udp.appVersion",
560
+ width: 110
561
+ }, {
562
+ field: "buildNo",
563
+ title: "message.udp.buildNo",
564
+ width: 130
565
+ }, {
566
+ field: "isForceUpdate",
567
+ title: "message.udp.isForceUpdate",
568
+ width: 130,
569
+ formatter: ({
570
+ row: i
571
+ }) => i.isForceUpdate === "Y" ? n("message.udp.forceUpdate") : n("message.udp.freeUpdate")
572
+ }, {
573
+ field: "versionInfo",
574
+ title: "message.udp.versionInfo",
575
+ miWidth: 200
576
+ }, {
577
+ field: "enabled",
578
+ title: "message.status",
579
+ width: 90,
580
+ formatter: ({
581
+ row: i
582
+ }) => i.enabled === "1" ? n("message.udp.appupper") : n("message.udp.applower")
583
+ }, {
584
+ field: "creationDate",
585
+ width: 140
586
+ }, {
587
+ field: "operate",
588
+ width: 260,
589
+ fixed: "right",
590
+ slots: {
591
+ default: ({
592
+ row: i
593
+ }) => {
594
+ const l = i.enabled === "1" ? "applower" : "appupper", u = i.enabled === "1" ? "warning" : "primary", f = i.enabled === "1" ? "ri-inbox-archive-line" : "ri-inbox-unarchive-line";
595
+ return i.enabled !== "1" ? [p(x("ut-button"), {
596
+ content: l,
597
+ icon: f,
598
+ status: u,
599
+ onTap: () => y(i)
600
+ }, null)] : [
601
+ p(Y, null, [p("div", {
602
+ style: "display: flex; justify-content: space-between;"
603
+ }, [p(x("ut-button"), {
604
+ content: l,
605
+ icon: f,
606
+ status: u,
607
+ onTap: () => y(i)
608
+ }, null), p(x("el-popover"), {
609
+ placement: "left"
610
+ }, {
611
+ default: () => [p(Y, null, [p(it, {
612
+ text: t + "/ufil/" + i.downloadUrl
613
+ }, null)])],
614
+ reference: () => {
615
+ let m;
616
+ return p(x("el-button"), {
617
+ type: "success"
618
+ }, st(m = n("message.btn.scan")) ? m : {
619
+ default: () => [m]
620
+ });
621
+ }
622
+ })])])
623
+ // <el-popover
624
+ // placement="left"
625
+ // v-slots={{
626
+ // reference: () => <el-button type="primary">外网下载</el-button>
627
+ // }}
628
+ // >
629
+ // <>
630
+ // <SuQrcode text={'http://jemes.uzuo.cn/gateway/ufil/' + row.downloadUrl} />
631
+ // </>
632
+ // </el-popover>
633
+ ];
634
+ }
635
+ }
636
+ }], y = async (i) => {
637
+ const l = oe(i, !0);
638
+ l.enabled = i.enabled === "1" ? "0" : "1", await xe($e().put(o, l)), a.value.refreshData();
639
+ }, g = (i) => {
640
+ i === "add" && I(), i === "del" && U();
641
+ }, E = [{
642
+ field: "appVersion",
643
+ title: "message.udp.appVersion",
644
+ required: !0
645
+ }, {
646
+ field: "buildNo",
647
+ title: "message.udp.buildNo",
648
+ required: !0
649
+ }, {
650
+ field: "isForceUpdate",
651
+ title: "message.udp.isForceUpdate",
652
+ required: !0,
653
+ itemRender: r.renderSwitch({
654
+ openLabel: n("message.udp.forceUpdate"),
655
+ closeLabel: n("message.udp.freeUpdate"),
656
+ openValue: "Y",
657
+ closeValue: "N"
658
+ })
659
+ }, {
660
+ field: "versionInfo",
661
+ title: "message.udp.versionInfo",
662
+ required: !0,
663
+ itemRender: r.renderTextarea()
664
+ }, {
665
+ field: "downloadUrl",
666
+ required: !1,
667
+ title: "message.udp.downloadUrl",
668
+ itemRender: r.renderUpload()
669
+ }], $ = N(!1), I = () => {
670
+ s.value = {
671
+ // downloadUrl: 'https://vxeui.com/resource/img/fj577.jpg'
672
+ // downloadUrl: '/resource/image/20250817/15806d21e3f445dcae0e2e0825c76a79.jpg'
673
+ }, $.value = !0;
674
+ }, U = () => {
675
+ a.value.getInstance().commitProxy("delete");
676
+ }, F = () => {
677
+ a.value.refreshData();
678
+ };
679
+ return (i, l) => {
680
+ const u = x("ut-grid"), f = x("ut-modal-form");
681
+ return J(), Oe("div", null, [p(u, {
682
+ ref_key: "xgrid",
683
+ ref: a,
684
+ columns: d,
685
+ url: o,
686
+ mode: "form",
687
+ onButtonClick: g
688
+ }, null, 512), $.value ? (J(), _e(f, {
689
+ key: 0,
690
+ record: s.value,
691
+ items: E,
692
+ width: 420,
693
+ height: 450,
694
+ title: i.$t("message.title.appAdd"),
695
+ url: o,
696
+ class: "ut-app-form",
697
+ "data-status": "add",
698
+ onClose: l[0] || (l[0] = (m) => $.value = !1),
699
+ onConfirm: F
700
+ }, null, 8, ["record", "title"])) : we("", !0)]);
701
+ };
702
+ }
703
+ }), mt = /* @__PURE__ */ Pe(lt, [["__scopeId", "data-v-4c7392db"]]);
704
+ export {
705
+ mt as default
706
+ };