hs-admin-ui 17.2.2 → 17.2.4

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.
@@ -1,6 +1,6 @@
1
- import { S as v, X as F, H as y, ax as P, J as L, dT as K, M as S, dU as ne, dV as C, dW as h, aa as R, T as le, be as re, ap as oe, ae as D, aj as se, b2 as ie, b3 as ue, dX as ce, W as de, b5 as fe, b6 as ge, b1 as me, dY as pe, aT as ye, aS as be, dZ as he, d_ as ve, d$ as _e, e0 as xe, e1 as we, e2 as De, e3 as Ce, e4 as Ee, e5 as Se, am as Ae, Z as Te, L as Ne, e6 as Be, e7 as Fe, a4 as Pe, e8 as Me, e9 as je, ea as Ie, eb as Le, ec as Re, K as Oe, ed as Ye, ee as $e, ef as ke, eg as Ue, eh as Ke, ei as He, ej as We, ek as qe, aw as Je, el as ze, em as Ze, ac as Qe, en as Xe, eo as Ge, ep as Ve, eq as et, er as tt, V as at, al as nt, N as lt, es as rt, et as ot, an as st, eu as it, ev as ut, at as ct, ew as dt, ex as ft, ey as gt, ez as mt, eA as pt, eB as yt, eC as bt, eD as ht, eE as vt, eF as _t, eG as xt, eH as wt, eI as Dt, eJ as Ct, eK as Et, eL as St, eM as At, eN as Tt, eO as Nt, eP as Bt, eQ as Ft, eR as Pt, eS as Mt, eT as jt, eU as It } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-CEIF4C5E.js";
1
+ import { S as v, X as F, H as y, ay as P, J as L, dU as K, M as A, dV as ne, dW as C, dX as h, ab as R, T as le, bf as re, aq as oe, af as D, ak as se, b3 as ie, b4 as ue, dY as ce, W as de, b6 as fe, b7 as ge, b2 as me, dZ as pe, aU as ye, aT as be, d_ as he, d$ as ve, e0 as _e, e1 as xe, e2 as we, e3 as De, e4 as Ce, e5 as Ee, e6 as Ae, an as Se, Z as Ne, L as Te, e7 as Be, e8 as Fe, a5 as Pe, e9 as Me, ea as je, eb as Ie, ec as Le, ed as Re, K as Oe, ee as ke, ef as Ye, eg as $e, eh as Ue, ei as Ke, ej as He, ek as qe, el as We, ax as Je, em as ze, en as Ze, ad as Qe, eo as Ve, ep as Xe, eq as Ge, er as et, es as tt, V as at, am as nt, N as lt, et as rt, eu as ot, ao as st, ev as it, ew as ut, au as ct, ex as dt, ey as ft, ez as gt, eA as mt, eB as pt, eC as yt, eD as bt, eE as ht, eF as vt, eG as _t, eH as xt, eI as wt, eJ as Dt, eK as Ct, eL as Et, eM as At, eN as St, eO as Nt, eP as Tt, eQ as Bt, eR as Ft, eS as Pt, eT as Mt, eU as jt, eV as It } from "./bcVisual.vue_vue_type_style_index_0_scoped_a917535e_lang-Dhl_88yy.js";
2
2
  import { ref as Lt, onBeforeUnmount as Rt, nextTick as Ot } from "vue";
3
- function Yt(t, e) {
3
+ function kt(t, e) {
4
4
  const n = M(t), a = M(e);
5
5
  let l = 0;
6
6
  const o = n.length;
@@ -37,8 +37,8 @@ function M(t, e) {
37
37
  else
38
38
  return t;
39
39
  }
40
- let W = "127.0.0.1", q = 54321, f;
41
- function $t(t, e, n = "ws") {
40
+ let q = "127.0.0.1", W = 54321, f;
41
+ function Yt(t, e, n = "ws") {
42
42
  return f || (f = new ws(t, e, {
43
43
  automaticOpen: !1,
44
44
  //是否自动连接标志(true|false),默认为true
@@ -62,7 +62,7 @@ function $t(t, e, n = "ws") {
62
62
  typeof a.detail == "object" ? (typeof a.detail.message == "string" && f.log("遇到一个错误: " + a.detail.message, a), typeof a.detail.data == "string" && f.log("遇到一个错误: " + a.detail.message, a)) : typeof a.data == "string" ? f.log("遇到一个错误: " + a.data, a) : f.log("遇到一个错误", a);
63
63
  }, f);
64
64
  }
65
- const O = () => $t(W, q);
65
+ const O = () => Yt(q, W);
66
66
  function J() {
67
67
  const t = O();
68
68
  return t.open(), new Promise((e, n) => {
@@ -72,7 +72,7 @@ function J() {
72
72
  function z(t) {
73
73
  return J().then(() => {
74
74
  const e = O(), n = function(l, o) {
75
- e.protocol === "ws" && (e.setHost(W), e.setPort(q)), e.protocol, e.open();
75
+ e.protocol === "ws" && (e.setHost(q), e.setPort(W)), e.protocol, e.open();
76
76
  }, a = function(l) {
77
77
  e.log("SENT: <br/>" + l), e.log("正在发送消息..."), e.send(l);
78
78
  };
@@ -84,7 +84,7 @@ function z(t) {
84
84
  });
85
85
  }
86
86
  async function Z(t, e) {
87
- var x, g, T, N;
87
+ var x, g, N, T;
88
88
  if (!t.config_info)
89
89
  return v.warning("请先添加模板!"), Promise.reject();
90
90
  const n = JSON.parse(t.config_info) || {};
@@ -139,12 +139,12 @@ async function Z(t, e) {
139
139
  return;
140
140
  let p = K(e[i]);
141
141
  l.本单合计金额大写 = p, l.本单合计金额 = e.commodity_sum || e.delivery_sum;
142
- }), o = ((T = n.tableData) == null ? void 0 : T.map((i) => ({
142
+ }), o = ((N = n.tableData) == null ? void 0 : N.map((i) => ({
143
143
  type: i.type,
144
144
  size: i.type === "Str" ? 255 : 0,
145
145
  name: i.name,
146
146
  required: !1
147
- }))) || [], r = ((N = e == null ? void 0 : e.detail) == null ? void 0 : N.map((i) => {
147
+ }))) || [], r = ((T = e == null ? void 0 : e.detail) == null ? void 0 : T.map((i) => {
148
148
  var w;
149
149
  let p = {};
150
150
  return (w = n.tableData) == null || w.forEach((b) => {
@@ -190,7 +190,7 @@ async function Z(t, e) {
190
190
  Data: u.length ? u : [{}]
191
191
  }), console.log("trimPrintData整理打印数据=>>>>>", m), m;
192
192
  }
193
- function kt(t) {
193
+ function $t(t) {
194
194
  return new Promise((e, n) => {
195
195
  try {
196
196
  let a = document.createElement("canvas"), l = a.getContext("2d"), o = new Image();
@@ -205,7 +205,7 @@ function kt(t) {
205
205
  });
206
206
  }
207
207
  async function Ut(t, e) {
208
- const n = await L.get("userInfo"), a = await S({
208
+ const n = await L.get("userInfo"), a = await A({
209
209
  url: `/${n.project_code}-web/pri/print_template/get_template_by_code`,
210
210
  method: "get",
211
211
  params: {
@@ -245,7 +245,7 @@ function Q(t, e, n = ["id"]) {
245
245
  Object.keys(t).includes(a) ? typeof e[a] == "object" && !Array.isArray(e[a]) ? Q(t[a], e[a]) : t[a] = e[a] : n.includes(a) && (t[a] = e[a]);
246
246
  return t;
247
247
  }
248
- function Wt(t) {
248
+ function qt(t) {
249
249
  const e = Lt(!1), n = () => {
250
250
  e.value = C.isFullscreen;
251
251
  };
@@ -259,10 +259,10 @@ function Wt(t) {
259
259
  C.off("change", n);
260
260
  }), { isFullPage: e, toggle: a };
261
261
  }
262
- function A(t, e) {
262
+ function S(t, e) {
263
263
  if (!t)
264
264
  return "";
265
- let n = t.getDay(), a = X(t), l = Math.floor((t.getMonth() + 3) / 3).toString();
265
+ let n = t.getDay(), a = V(t), l = Math.floor((t.getMonth() + 3) / 3).toString();
266
266
  const o = {
267
267
  "Y+": t.getFullYear().toString(),
268
268
  // 年
@@ -299,7 +299,7 @@ function A(t, e) {
299
299
  }
300
300
  return e;
301
301
  }
302
- function X(t) {
302
+ function V(t) {
303
303
  let e = new Date(t.getTime()), n = e.getDay() || 7;
304
304
  e.setDate(e.getDate() - n + 1 + 5);
305
305
  let a = new Date(e.getFullYear(), 0, 1), l = a.getDay(), o = 1;
@@ -307,7 +307,7 @@ function X(t) {
307
307
  let r = Math.ceil((e.valueOf() - a.valueOf()) / 864e5);
308
308
  return Math.ceil(r / 7);
309
309
  }
310
- function qt(t, e = "YYYY-mm-dd") {
310
+ function Wt(t, e = "YYYY-mm-dd") {
311
311
  let n, a, l = (/* @__PURE__ */ new Date()).getTime();
312
312
  if (typeof t == "string" || typeof t == "object" ? n = new Date(t).getTime() : n = t, l = Number.parseInt(`${l - n}`), l < 1e4)
313
313
  return "刚刚";
@@ -321,19 +321,19 @@ function qt(t, e = "YYYY-mm-dd") {
321
321
  return a = Math.floor(l / 864e5), `${a}天前`;
322
322
  {
323
323
  let o = t;
324
- return (typeof t == "string" || typeof t == "object") && (o = new Date(t)), A(o, e);
324
+ return (typeof t == "string" || typeof t == "object") && (o = new Date(t)), S(o, e);
325
325
  }
326
326
  }
327
327
  function Jt(t) {
328
328
  let e = new Date(t).getHours();
329
329
  return e < 6 ? "凌晨好" : e < 9 ? "早上好" : e < 12 ? "上午好" : e < 14 ? "中午好" : e < 17 ? "下午好" : e < 19 ? "傍晚好" : e < 22 ? "晚上好" : "夜里好";
330
330
  }
331
- const zt = (t, e, n) => n ? `${n}%` : "-", Zt = (t, e, n) => n ? A(new Date(n), "YYYY-mm-dd") : "-", Qt = (t, e, n) => n ? A(new Date(n), "YYYY-mm-dd HH:MM:SS") : "-", Xt = (t, e, n) => {
331
+ const zt = (t, e, n) => n ? `${n}%` : "-", Zt = (t, e, n) => n ? S(new Date(n), "YYYY-mm-dd") : "-", Qt = (t, e, n) => n ? S(new Date(n), "YYYY-mm-dd HH:MM:SS") : "-", Vt = (t, e, n) => {
332
332
  if (!n)
333
333
  return "-";
334
334
  let a = 0;
335
- return typeof t == "number" && (a = t), typeof n == "number" && (a = n), A(new Date(a * 1e3), "HH:MM:SS");
336
- }, Gt = (t = "0", e = 4) => Number.parseFloat(t).toFixed(e), Vt = (t = "0") => Number.parseFloat(t).toFixed(2), ea = (t) => {
335
+ return typeof t == "number" && (a = t), typeof n == "number" && (a = n), S(new Date(a * 1e3), "HH:MM:SS");
336
+ }, Xt = (t = "0", e = 4) => Number.parseFloat(t).toFixed(e), Gt = (t = "0") => Number.parseFloat(t).toFixed(2), ea = (t) => {
337
337
  let e = t && t.toUpperCase();
338
338
  const n = {
339
339
  11: "北京",
@@ -421,7 +421,7 @@ function na({ uniqueId: t, projectCode: e, templateName: n, tableConfig: a, tabl
421
421
  e
422
422
  );
423
423
  async function s(c, _) {
424
- return S({
424
+ return A({
425
425
  url: `/${_}-web/pub/excel/export_model_assign`,
426
426
  responseType: "blob",
427
427
  method: "post",
@@ -517,22 +517,22 @@ function na({ uniqueId: t, projectCode: e, templateName: n, tableConfig: a, tabl
517
517
  "BY",
518
518
  "BZ"
519
519
  ];
520
- let T = "";
520
+ let N = "";
521
521
  c.forEach((i, p) => {
522
522
  d[i.title] = g[p + 1], x.push(i.field);
523
523
  }), _.forEach((i, p) => {
524
524
  let w = { A: p + 1 };
525
525
  x.forEach((b, ae) => {
526
- w[g[ae + 1]] = N(i[b]);
526
+ w[g[ae + 1]] = T(i[b]);
527
527
  }), m.push(w);
528
528
  });
529
- function N(i) {
529
+ function T(i) {
530
530
  return i == "1" ? "开启" : i == "0" ? "关闭" : i;
531
531
  }
532
532
  return {
533
533
  titles_json_data: JSON.stringify(d),
534
534
  infoData_json_data: JSON.stringify(m),
535
- isNumerical: T
535
+ isNumerical: N
536
536
  };
537
537
  }
538
538
  }
@@ -555,7 +555,7 @@ function la(t) {
555
555
  r[`_old_${s}`] = r[`_old_${s}`] || r[s], r[s] = r[`_old_${s}`], r[s] = c({ row: r, column: { field: s } }) || "";
556
556
  });
557
557
  }), r));
558
- return S({
558
+ return A({
559
559
  url: `/${t.projectCode}-web/pri/easyexcel/export_model_assign`,
560
560
  responseType: "blob",
561
561
  method: "post",
@@ -572,7 +572,7 @@ function la(t) {
572
572
  const s = new Blob([r], {
573
573
  type: "application/vnd.ms-excel"
574
574
  });
575
- Y(s, t.template_name + ".xlsx");
575
+ k(s, t.template_name + ".xlsx");
576
576
  });
577
577
  });
578
578
  }
@@ -613,7 +613,7 @@ function ra(t, e = "/pri/easyexcel/export_model_all") {
613
613
  });
614
614
  c.length > 0 && (u.qry_json_data = JSON.stringify(c));
615
615
  const _ = t.projectCode.replace("-web", "");
616
- return S({
616
+ return A({
617
617
  url: `/${_}-web${e}`,
618
618
  responseType: "blob",
619
619
  method: "post",
@@ -625,7 +625,7 @@ function ra(t, e = "/pri/easyexcel/export_model_all") {
625
625
  const m = new Blob([d], {
626
626
  type: "application/vnd.ms-excel"
627
627
  });
628
- Y(m, t.template_name + ".xlsx");
628
+ k(m, t.template_name + ".xlsx");
629
629
  });
630
630
  });
631
631
  }
@@ -633,7 +633,7 @@ function oa(t) {
633
633
  const e = document.createElement("a");
634
634
  e.href = t.url, e.download = t.name, e.style.display = "none", document.body.appendChild(e), e.click(), document.body.removeChild(e);
635
635
  }
636
- function Y(t, e) {
636
+ function k(t, e) {
637
637
  let n = document.createElement("a");
638
638
  n.href = window.URL.createObjectURL(t), n.download = /\./.test(e) ? e : e + ".xlsx", document.body.appendChild(n), n.click(), document.body.removeChild(n);
639
639
  }
@@ -831,15 +831,15 @@ const ma = (t, e, n) => {
831
831
  const a = e.toLowerCase();
832
832
  return t.filter((l) => n(l).some((r) => r && r.toLowerCase().includes(a)));
833
833
  };
834
- let G;
834
+ let X;
835
835
  const pa = 60 * 1e3;
836
- let $ = !1, j = !1, B;
837
- const ya = /<script.*?src=["'](.*?)["'].*?><\/script>/g, k = /index-(.*?)\.js/g, V = async () => fetch("/index.html?timestep=" + Date.now()).then((t) => t.text()).then((t) => {
836
+ let Y = !1, j = !1, B;
837
+ const ya = /<script.*?src=["'](.*?)["'].*?><\/script>/g, $ = /index-(.*?)\.js/g, G = async () => fetch("/index.html?timestep=" + Date.now()).then((t) => t.text()).then((t) => {
838
838
  var n, a;
839
- const e = (n = t.match(ya)) == null ? void 0 : n.filter((l) => k.test(l));
840
- return e && e.length > 0 ? y.get(((a = e[0]) == null ? void 0 : a.match(k)) || [], "0", "") : "";
841
- }), ee = () => V().then((t) => {
842
- t && t != G && !$ && ($ = !0, te(), se.confirm("系统版本更新了,是否立即刷新页面?", "提示", {
839
+ const e = (n = t.match(ya)) == null ? void 0 : n.filter((l) => $.test(l));
840
+ return e && e.length > 0 ? y.get(((a = e[0]) == null ? void 0 : a.match($)) || [], "0", "") : "";
841
+ }), ee = () => G().then((t) => {
842
+ t && t != X && !Y && (Y = !0, te(), se.confirm("系统版本更新了,是否立即刷新页面?", "提示", {
843
843
  confirmButtonText: "立即刷新",
844
844
  cancelButtonText: "稍后刷新",
845
845
  type: "warning",
@@ -856,8 +856,8 @@ function te() {
856
856
  B && (clearTimeout(B), B = 0);
857
857
  }
858
858
  async function ba() {
859
- return V().then((t) => {
860
- G = t, I(), document.addEventListener("visibilitychange", () => {
859
+ return G().then((t) => {
860
+ X = t, I(), document.addEventListener("visibilitychange", () => {
861
861
  j = document.hidden, j ? te() : (ee(), I());
862
862
  });
863
863
  });
@@ -906,28 +906,28 @@ const U = (t) => {
906
906
  convertCurrency: K,
907
907
  copyText: Ht,
908
908
  dataURLtoBlob: sa,
909
- dateFormatHMS: Xt,
909
+ dateFormatHMS: Vt,
910
910
  dateFormatYMD: Zt,
911
911
  dateFormatYMDHMS: Qt,
912
912
  decimalDigits: we,
913
913
  decrypt: aa,
914
914
  deepClone: De,
915
915
  div: Ce,
916
- downloadFile: Y,
916
+ downloadFile: k,
917
917
  elSvg: Ee,
918
918
  encrypt: ta,
919
- encryptionTool: Se,
919
+ encryptionTool: Ae,
920
920
  exportAllData: ra,
921
921
  exportSelectedData: la,
922
922
  exportSelectedDownloadFile: na,
923
923
  fixedNumAccuracy: P,
924
924
  formatAxis: Jt,
925
- formatDate: A,
926
- formatPast: qt,
925
+ formatDate: S,
926
+ formatPast: Wt,
927
927
  fuzzySearch: ma,
928
- getAuthFieldsByMid: Ae,
929
- getColumnWidthConfig: Te,
930
- getConfig: Ne,
928
+ getAuthFieldsByMid: Se,
929
+ getColumnWidthConfig: Ne,
930
+ getConfig: Te,
931
931
  getDataDictListByMid: Be,
932
932
  getDataType: Fe,
933
933
  getDictListByMid: Pe,
@@ -938,28 +938,28 @@ const U = (t) => {
938
938
  getStoreSystemParams: Ie,
939
939
  getSystemParams: Le,
940
940
  getTableDataType: Re,
941
- getUrlBase64: kt,
941
+ getUrlBase64: $t,
942
942
  getUrlParams: Oe,
943
- getWeek: X,
944
- globalComponentSize: Ye,
945
- handleEmpty: $e,
946
- handleOpenLink: ke,
943
+ getWeek: V,
944
+ globalComponentSize: ke,
945
+ handleEmpty: Ye,
946
+ handleOpenLink: $e,
947
947
  iframeMessage: Ue,
948
948
  isLegalNumber: Ke,
949
949
  isMobile: He,
950
950
  isObjectValueEqual: H,
951
- isToNumber: We,
951
+ isToNumber: qe,
952
952
  isUpdate: ba,
953
- judementSameArr: Yt,
954
- lazyImg: qe,
953
+ judementSameArr: kt,
954
+ lazyImg: We,
955
955
  lodash: y,
956
956
  mathTool: Je,
957
957
  message: ze,
958
958
  messageBox: Ze,
959
959
  mittBus: Qe,
960
- notification: Xe,
961
- numberToChinese: Ge,
962
- other: Ve,
960
+ notification: Ve,
961
+ numberToChinese: Xe,
962
+ other: Ge,
963
963
  percentFormat: zt,
964
964
  popupPlugin: et,
965
965
  print: Ut,
@@ -967,9 +967,9 @@ const U = (t) => {
967
967
  push: tt,
968
968
  removeConfig: at,
969
969
  removeDuplicate: M,
970
- request: S,
971
- scale2Format: Vt,
972
- scaleFormat: Gt,
970
+ request: A,
971
+ scale2Format: Gt,
972
+ scaleFormat: Xt,
973
973
  sendMsg: z,
974
974
  setColumnWidthConfig: nt,
975
975
  setConfig: lt,
@@ -987,7 +987,7 @@ const U = (t) => {
987
987
  useMittBus: ct,
988
988
  useRequest: dt,
989
989
  useTitle: ft,
990
- useToggleFullPage: Wt,
990
+ useToggleFullPage: qt,
991
991
  verifiyNumberInteger: gt,
992
992
  verifyAccount: mt,
993
993
  verifyAndSpace: pt,
@@ -1001,10 +1001,10 @@ const U = (t) => {
1001
1001
  verifyNumberCnUppercase: Dt,
1002
1002
  verifyNumberComma: Ct,
1003
1003
  verifyNumberIntegerAndFloat: Et,
1004
- verifyNumberPercentage: St,
1005
- verifyNumberPercentageFloat: At,
1006
- verifyPassword: Tt,
1007
- verifyPasswordPowerful: Nt,
1004
+ verifyNumberPercentage: At,
1005
+ verifyNumberPercentageFloat: St,
1006
+ verifyPassword: Nt,
1007
+ verifyPasswordPowerful: Tt,
1008
1008
  verifyPasswordStrength: Bt,
1009
1009
  verifyPhone: Ft,
1010
1010
  verifyPostalCode: Pt,