hs-admin-ui 16.8.0 → 16.8.2

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,20 +1,20 @@
1
- import { R as v, X as F, H as h, ax as P, J as L, ef as U, Q as S, eg as ne, eh as C, ei as b, aa as R, T as le, bD as re, ap as oe, ae as D, aj as se, br as ie, bs as ue, ej as ce, W as de, bu as fe, bv as ge, bq as me, ek as pe, aT as ye, aS as be, el as he, em as ve, en as _e, eo as xe, ep as we, eq as De, er as Ce, es as Ee, et as Se, am as Ae, Z as Te, L as Ne, eu as Be, ev as Fe, a4 as Pe, ew as Me, ex as je, ey as Ie, ez as Le, eA as Re, K as Oe, eB as Ye, eC as $e, eD as ke, eE as Ke, eF as Ue, eG as He, eH as qe, eI as We, aw as Je, eJ as ze, eK as Qe, ac as Ze, eL as Xe, eM as Ge, eN as Ve, eO as et, eP as tt, V as at, al as nt, S as lt, eQ as rt, eR as ot, an as st, eS as it, eT as ut, at as ct, eU as dt, eV as ft, eW as gt, eX as mt, eY as pt, eZ as yt, e_ as bt, e$ as ht, f0 as vt, f1 as _t, f2 as xt, f3 as wt, f4 as Dt, f5 as Ct, f6 as Et, f7 as St, f8 as At, f9 as Tt, fa as Nt, fb as Bt, fc as Ft, fd as Pt, fe as Mt, ff as jt, fg as It } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-Bz1acKsn.js";
1
+ import { R as v, X as F, H as y, ax as P, J as L, ef as U, Q as S, eg as ne, eh as C, ei as h, aa as R, T as le, bD as re, ap as oe, ae as D, aj as se, br as ie, bs as ue, ej as ce, W as de, bu as fe, bv as ge, bq as me, ek as pe, aT as ye, aS as be, el as he, em as ve, en as _e, eo as xe, ep as we, eq as De, er as Ce, es as Ee, et as Se, am as Ae, Z as Te, L as Ne, eu as Be, ev as Fe, a4 as Pe, ew as Me, ex as je, ey as Ie, ez as Le, eA as Re, K as Oe, eB as Ye, eC as $e, eD as ke, eE as Ke, eF as Ue, eG as He, eH as qe, eI as We, aw as Je, eJ as ze, eK as Qe, ac as Ze, eL as Xe, eM as Ge, eN as Ve, eO as et, eP as tt, V as at, al as nt, S as lt, eQ as rt, eR as ot, an as st, eS as it, eT as ut, at as ct, eU as dt, eV as ft, eW as gt, eX as mt, eY as pt, eZ as yt, e_ as bt, e$ as ht, f0 as vt, f1 as _t, f2 as xt, f3 as wt, f4 as Dt, f5 as Ct, f6 as Et, f7 as St, f8 as At, f9 as Tt, fa as Nt, fb as Bt, fc as Ft, fd as Pt, fe as Mt, ff as jt, fg as It } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-Bz1acKsn.js";
2
2
  import { ref as Lt, onBeforeUnmount as Rt, nextTick as Ot } from "vue";
3
3
  function Yt(t, e) {
4
- const l = M(t), a = M(e);
5
- let n = 0;
6
- const o = l.length;
4
+ const n = M(t), a = M(e);
5
+ let l = 0;
6
+ const o = n.length;
7
7
  for (let r in a)
8
- for (let s in l)
9
- a[r] === l[s] && n++;
10
- return n === o;
8
+ for (let s in n)
9
+ a[r] === n[s] && l++;
10
+ return l === o;
11
11
  }
12
12
  function H(t, e) {
13
13
  if (!t || !e) return !1;
14
- let l = Object.getOwnPropertyNames(t), a = Object.getOwnPropertyNames(e);
15
- if (l.length != a.length) return !1;
16
- for (let n = 0; n < l.length; n++) {
17
- let o = l[n], r = t[o], s = e[o];
14
+ let n = Object.getOwnPropertyNames(t), a = Object.getOwnPropertyNames(e);
15
+ if (n.length != a.length) return !1;
16
+ for (let l = 0; l < n.length; l++) {
17
+ let o = n[l], r = t[o], s = e[o];
18
18
  if (!e.hasOwnProperty(o)) return !1;
19
19
  if (r instanceof Object) {
20
20
  if (!H(r, s)) return !1;
@@ -26,15 +26,15 @@ function H(t, e) {
26
26
  function M(t, e) {
27
27
  if (Object.keys(t).length)
28
28
  if (e) {
29
- const l = {};
30
- return t.reduce((a, n) => (l[n[e]] || (l[n[e]] = n[e] && a.push(n)), a), []);
29
+ const n = {};
30
+ return t.reduce((a, l) => (n[l[e]] || (n[l[e]] = l[e] && a.push(l)), a), []);
31
31
  } else
32
32
  return [...new Set(t)];
33
33
  else
34
34
  return t;
35
35
  }
36
36
  let q = "127.0.0.1", W = 54321, f;
37
- function $t(t, e, l = "ws") {
37
+ function $t(t, e, n = "ws") {
38
38
  return f || (f = new ws(t, e, {
39
39
  automaticOpen: !1,
40
40
  //是否自动连接标志(true|false),默认为true
@@ -42,7 +42,7 @@ function $t(t, e, l = "ws") {
42
42
  //自动重连延迟重连速度,数字,默认为1.5
43
43
  output: "output",
44
44
  //指定调试输出div
45
- protocol: l
45
+ protocol: n
46
46
  //指定通讯协议(ws|wss),默认为"ws"
47
47
  }), f.onconnecting = function(a) {
48
48
  f.log("正与服务器建立连接...", a);
@@ -52,8 +52,8 @@ function $t(t, e, l = "ws") {
52
52
  f.log("与打印服务器的连接已关闭", a);
53
53
  }, f.onmessage = function(a) {
54
54
  f.log('收到消息!"' + a.data + '"', a);
55
- let n = JSON && JSON.parse(a.data);
56
- n.result === 1 || v.error("Print failed: " + n.message);
55
+ let l = JSON && JSON.parse(a.data);
56
+ l.result === 1 || v.error("Print failed: " + l.message);
57
57
  }, f.onerror = function(a) {
58
58
  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);
59
59
  }, f);
@@ -61,20 +61,20 @@ function $t(t, e, l = "ws") {
61
61
  const O = () => $t(q, W);
62
62
  function J() {
63
63
  const t = O();
64
- return t.open(), new Promise((e, l) => {
65
- t.addEventListener("open", e), t.addEventListener("close", l);
64
+ return t.open(), new Promise((e, n) => {
65
+ t.addEventListener("open", e), t.addEventListener("close", n);
66
66
  });
67
67
  }
68
68
  function z(t) {
69
69
  return J().then(() => {
70
- const e = O(), l = function(n, o) {
70
+ const e = O(), n = function(l, o) {
71
71
  e.protocol === "ws" && (e.setHost(q), e.setPort(W)), e.protocol, e.open();
72
- }, a = function(n) {
73
- e.log("SENT: <br/>" + n), e.log("正在发送消息..."), e.send(n);
72
+ }, a = function(l) {
73
+ e.log("SENT: <br/>" + l), e.log("正在发送消息..."), e.send(l);
74
74
  };
75
- e.state() !== e.OPEN ? (e.log("连接已断开,正在重新连接。"), e.onopen = function(n) {
76
- e.log("与服务器连接成功。", n), a(t);
77
- }, l()) : a(t);
75
+ e.state() !== e.OPEN ? (e.log("连接已断开,正在重新连接。"), e.onopen = function(l) {
76
+ e.log("与服务器连接成功。", l), a(t);
77
+ }, n()) : a(t);
78
78
  }).catch(() => {
79
79
  v.warning("请先启动康虎云打印服务器!");
80
80
  });
@@ -83,20 +83,20 @@ async function Q(t, e) {
83
83
  var x, g, T, N;
84
84
  if (!t.config_info)
85
85
  return v.warning("请先添加模板!"), Promise.reject();
86
- const l = JSON.parse(t.config_info) || {};
87
- let a = [], n = {}, o = [], r = [], s = [], u = [];
88
- (x = l.formData) == null || x.map((i) => {
86
+ const n = JSON.parse(t.config_info) || {};
87
+ let a = [], l = {}, o = [], r = [], s = [], u = [];
88
+ (x = n.formData) == null || x.map((i) => {
89
89
  a.push({
90
90
  type: "str",
91
91
  size: 255,
92
92
  name: i.name,
93
93
  required: !1
94
- }), i.name === "销售日期" || i.name === "移库日期" || i.name === "申请单单据日期" || i.name === "交易日期" ? n[i.name] = e[i.value] ? F(e[i.value]).format("YYYY-MM-DD HH:mm") : "" : h.endsWith(i.name, "日期") || i.name === "有效期" ? n[i.name] = e[i.value] ? F(e[i.value]).format("YYYY-MM-DD") : "" : h.endsWith(i.name, "金额") ? n[i.name] = P(e[i.value] || "") : n[i.name] = e[i.value] || "";
94
+ }), i.name === "销售日期" || i.name === "移库日期" || i.name === "申请单单据日期" || i.name === "交易日期" ? l[i.name] = e[i.value] ? F(e[i.value]).format("YYYY-MM-DD HH:mm") : "" : y.endsWith(i.name, "日期") || i.name === "有效期" ? l[i.name] = e[i.value] ? F(e[i.value]).format("YYYY-MM-DD") : "" : y.endsWith(i.name, "金额") ? l[i.name] = P(e[i.value] || "") : l[i.name] = e[i.value] || "";
95
95
  });
96
96
  const c = await L.get("userInfo");
97
- n.所属公司 = c.company_name;
97
+ l.所属公司 = c.company_name;
98
98
  const _ = ((g = e == null ? void 0 : e.detail) == null ? void 0 : g.reduce((i, p) => i += p.commodity_num || 0, 0)) || 0;
99
- n.本单合计数量 = _, [
99
+ l.本单合计数量 = _, [
100
100
  "repayment_sum",
101
101
  //还款金额
102
102
  "arrears_sum",
@@ -133,8 +133,8 @@ async function Q(t, e) {
133
133
  ].forEach((i) => {
134
134
  if (!e[i]) return;
135
135
  let p = U(e[i]);
136
- n.本单合计金额大写 = p, n.本单合计金额 = e.commodity_sum || e.delivery_sum;
137
- }), o = ((T = l.tableData) == null ? void 0 : T.map((i) => ({
136
+ l.本单合计金额大写 = p, l.本单合计金额 = e.commodity_sum || e.delivery_sum;
137
+ }), o = ((T = n.tableData) == null ? void 0 : T.map((i) => ({
138
138
  type: i.type,
139
139
  size: i.type === "Str" ? 255 : 0,
140
140
  name: i.name,
@@ -142,17 +142,17 @@ async function Q(t, e) {
142
142
  }))) || [], r = ((N = e == null ? void 0 : e.detail) == null ? void 0 : N.map((i) => {
143
143
  var w;
144
144
  let p = {};
145
- return (w = l.tableData) == null || w.forEach((y) => {
146
- h.endsWith(y.name, "日期") || h.endsWith(y.name, "时间") || y.name === "有效期至" ? p[y.name] = i[y.value] ? F(i[y.value]).format("YYYY-MM-DD") : "" : h.endsWith(y.name, "金额") ? p[y.name] = P(i[y.value] || "") : p[y.name] = i[y.value] || "";
145
+ return (w = n.tableData) == null || w.forEach((b) => {
146
+ y.endsWith(b.name, "日期") || y.endsWith(b.name, "时间") || b.name === "有效期至" ? p[b.name] = i[b.value] ? F(i[b.value]).format("YYYY-MM-DD") : "" : y.endsWith(b.name, "金额") ? p[b.name] = P(i[b.value] || "") : p[b.name] = i[b.value] || "";
147
147
  }), p;
148
- })) || [], e.other_information && (s = l.otherData.map((i) => ({
148
+ })) || [], e.other_information && (s = n.otherData.map((i) => ({
149
149
  type: i.type,
150
150
  size: i.type === "Str" ? 255 : 0,
151
151
  name: i.name,
152
152
  required: !1
153
153
  })), u = e.other_information.map((i) => {
154
154
  let p = {};
155
- return l.otherData.forEach((w) => {
155
+ return n.otherData.forEach((w) => {
156
156
  p[w.name] = i[w.value] || "";
157
157
  }), p;
158
158
  }));
@@ -170,7 +170,7 @@ async function Q(t, e) {
170
170
  {
171
171
  Name: "表单信息",
172
172
  Cols: a,
173
- Data: [n]
173
+ Data: [l]
174
174
  },
175
175
  {
176
176
  Name: "销售配车单",
@@ -186,77 +186,77 @@ async function Q(t, e) {
186
186
  }), console.log("trimPrintData整理打印数据=>>>>>", m), m;
187
187
  }
188
188
  function kt(t) {
189
- return new Promise((e, l) => {
189
+ return new Promise((e, n) => {
190
190
  try {
191
- let a = document.createElement("canvas"), n = a.getContext("2d"), o = new Image();
191
+ let a = document.createElement("canvas"), l = a.getContext("2d"), o = new Image();
192
192
  o.setAttribute("crossOrigin", "anonymous"), o.src = t, o.onload = function() {
193
- a.height = o.height, a.width = o.width, n.drawImage(o, 0, 0);
193
+ a.height = o.height, a.width = o.width, l.drawImage(o, 0, 0);
194
194
  let r = a.toDataURL("image/jpeg", 1);
195
195
  a = null, e("base64/jpeg:" + r.split(",")[1]);
196
196
  };
197
197
  } catch {
198
- l("");
198
+ n("");
199
199
  }
200
200
  });
201
201
  }
202
202
  async function Kt(t, e) {
203
- const l = await L.get("userInfo"), a = await S({
204
- url: `/${l.project_code}-web/pri/print_template/get_template_by_code`,
203
+ const n = await L.get("userInfo"), a = await S({
204
+ url: `/${n.project_code}-web/pri/print_template/get_template_by_code`,
205
205
  method: "get",
206
206
  params: {
207
207
  template_code: t
208
208
  }
209
- }).then((o) => h.get(o, "data", {}));
209
+ }).then((o) => y.get(o, "data", {}));
210
210
  e || (e = {
211
211
  detail: []
212
212
  });
213
- const n = await Q(a, e);
214
- return z(JSON.stringify(n));
213
+ const l = await Q(a, e);
214
+ return z(JSON.stringify(l));
215
215
  }
216
216
  const Ut = (t) => ({
217
- toClipboard(e, l) {
218
- return new Promise((a, n) => {
217
+ toClipboard(e, n) {
218
+ return new Promise((a, l) => {
219
219
  const o = document.createElement("button"), r = new ne(o, {
220
220
  text: () => e,
221
221
  action: () => "copy",
222
- container: l !== void 0 ? l : document.body
222
+ container: n !== void 0 ? n : document.body
223
223
  });
224
224
  r.on("success", (s) => {
225
225
  r.destroy(), a(s);
226
226
  }), r.on("error", (s) => {
227
- r.destroy(), n(s);
227
+ r.destroy(), l(s);
228
228
  }), document.body.appendChild(o), o.click(), document.body.removeChild(o);
229
229
  });
230
230
  }
231
- }), Ht = (t) => new Promise((e, l) => {
231
+ }), Ht = (t) => new Promise((e, n) => {
232
232
  try {
233
233
  Ut().toClipboard(t), v.success("复制成功!"), e(t);
234
234
  } catch (a) {
235
- v.error("复制失败!"), l(a);
235
+ v.error("复制失败!"), n(a);
236
236
  }
237
237
  });
238
- function Z(t, e, l = ["id"]) {
238
+ function Z(t, e, n = ["id"]) {
239
239
  for (let a in e)
240
- Object.keys(t).includes(a) ? typeof e[a] == "object" && !Array.isArray(e[a]) ? Z(t[a], e[a]) : t[a] = e[a] : l.includes(a) && (t[a] = e[a]);
240
+ Object.keys(t).includes(a) ? typeof e[a] == "object" && !Array.isArray(e[a]) ? Z(t[a], e[a]) : t[a] = e[a] : n.includes(a) && (t[a] = e[a]);
241
241
  return t;
242
242
  }
243
243
  function qt(t) {
244
- const e = Lt(!1), l = () => {
244
+ const e = Lt(!1), n = () => {
245
245
  e.value = C.isFullscreen;
246
246
  };
247
- C.on("change", l);
247
+ C.on("change", n);
248
248
  function a() {
249
249
  if (!C.isEnabled)
250
250
  return v.warning("暂不不支持全屏"), !1;
251
251
  C.toggle(t);
252
252
  }
253
253
  return Rt(() => {
254
- C.off("change", l);
254
+ C.off("change", n);
255
255
  }), { isFullPage: e, toggle: a };
256
256
  }
257
257
  function A(t, e) {
258
258
  if (!t) return "";
259
- let l = t.getDay(), a = X(t), n = Math.floor((t.getMonth() + 3) / 3).toString();
259
+ let n = t.getDay(), a = X(t), l = Math.floor((t.getMonth() + 3) / 3).toString();
260
260
  const o = {
261
261
  "Y+": t.getFullYear().toString(),
262
262
  // 年
@@ -270,7 +270,7 @@ function A(t, e) {
270
270
  // 分
271
271
  "S+": t.getSeconds().toString(),
272
272
  // 秒
273
- "q+": n
273
+ "q+": l
274
274
  // 季度
275
275
  }, r = {
276
276
  0: "日",
@@ -286,7 +286,7 @@ function A(t, e) {
286
286
  3: "三",
287
287
  4: "四"
288
288
  };
289
- /(W+)/.test(e) && (e = e.replace(RegExp.$1, RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "星期" + r[l] : "周" + r[l] : r[l])), /(Q+)/.test(e) && (e = e.replace(RegExp.$1, RegExp.$1.length == 4 ? "第" + s[n] + "季度" : s[n])), /(Z+)/.test(e) && (e = e.replace(RegExp.$1, RegExp.$1.length == 3 ? "第" + a + "周" : a + ""));
289
+ /(W+)/.test(e) && (e = e.replace(RegExp.$1, RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? "星期" + r[n] : "周" + r[n] : r[n])), /(Q+)/.test(e) && (e = e.replace(RegExp.$1, RegExp.$1.length == 4 ? "第" + s[l] + "季度" : s[l])), /(Z+)/.test(e) && (e = e.replace(RegExp.$1, RegExp.$1.length == 3 ? "第" + a + "周" : a + ""));
290
290
  for (let u in o) {
291
291
  let c = new RegExp("(" + u + ")").exec(e);
292
292
  c && (e = e.replace(c[1], RegExp.$1.length == 1 ? o[u] : o[u].padStart(RegExp.$1.length, "0")));
@@ -294,25 +294,25 @@ function A(t, e) {
294
294
  return e;
295
295
  }
296
296
  function X(t) {
297
- let e = new Date(t.getTime()), l = e.getDay() || 7;
298
- e.setDate(e.getDate() - l + 1 + 5);
299
- let a = new Date(e.getFullYear(), 0, 1), n = a.getDay(), o = 1;
300
- n != 0 && (o = 7 - n + 1), a = new Date(e.getFullYear(), 0, 1 + o);
297
+ let e = new Date(t.getTime()), n = e.getDay() || 7;
298
+ e.setDate(e.getDate() - n + 1 + 5);
299
+ let a = new Date(e.getFullYear(), 0, 1), l = a.getDay(), o = 1;
300
+ l != 0 && (o = 7 - l + 1), a = new Date(e.getFullYear(), 0, 1 + o);
301
301
  let r = Math.ceil((e.valueOf() - a.valueOf()) / 864e5);
302
302
  return Math.ceil(r / 7);
303
303
  }
304
304
  function Wt(t, e = "YYYY-mm-dd") {
305
- let l, a, n = (/* @__PURE__ */ new Date()).getTime();
306
- if (typeof t == "string" || typeof t == "object" ? l = new Date(t).getTime() : l = t, n = Number.parseInt(`${n - l}`), n < 1e4)
305
+ let n, a, l = (/* @__PURE__ */ new Date()).getTime();
306
+ if (typeof t == "string" || typeof t == "object" ? n = new Date(t).getTime() : n = t, l = Number.parseInt(`${l - n}`), l < 1e4)
307
307
  return "刚刚";
308
- if (n < 6e4 && n >= 1e4)
309
- return a = Math.floor(n / 1e3), `${a}秒前`;
310
- if (n < 36e5 && n >= 6e4)
311
- return a = Math.floor(n / 6e4), `${a}分钟前`;
312
- if (n < 864e5 && n >= 36e5)
313
- return a = Math.floor(n / 36e5), `${a}小时前`;
314
- if (n < 2592e5 && n >= 864e5)
315
- return a = Math.floor(n / 864e5), `${a}天前`;
308
+ if (l < 6e4 && l >= 1e4)
309
+ return a = Math.floor(l / 1e3), `${a}秒前`;
310
+ if (l < 36e5 && l >= 6e4)
311
+ return a = Math.floor(l / 6e4), `${a}分钟前`;
312
+ if (l < 864e5 && l >= 36e5)
313
+ return a = Math.floor(l / 36e5), `${a}小时前`;
314
+ if (l < 2592e5 && l >= 864e5)
315
+ return a = Math.floor(l / 864e5), `${a}天前`;
316
316
  {
317
317
  let o = t;
318
318
  return (typeof t == "string" || typeof t == "object") && (o = new Date(t)), A(o, e);
@@ -322,13 +322,13 @@ function Jt(t) {
322
322
  let e = new Date(t).getHours();
323
323
  return e < 6 ? "凌晨好" : e < 9 ? "早上好" : e < 12 ? "上午好" : e < 14 ? "中午好" : e < 17 ? "下午好" : e < 19 ? "傍晚好" : e < 22 ? "晚上好" : "夜里好";
324
324
  }
325
- const zt = (t, e, l) => l ? `${l}%` : "-", Qt = (t, e, l) => l ? A(new Date(l), "YYYY-mm-dd") : "-", Zt = (t, e, l) => l ? A(new Date(l), "YYYY-mm-dd HH:MM:SS") : "-", Xt = (t, e, l) => {
326
- if (!l) return "-";
325
+ const zt = (t, e, n) => n ? `${n}%` : "-", Qt = (t, e, n) => n ? A(new Date(n), "YYYY-mm-dd") : "-", Zt = (t, e, n) => n ? A(new Date(n), "YYYY-mm-dd HH:MM:SS") : "-", Xt = (t, e, n) => {
326
+ if (!n) return "-";
327
327
  let a = 0;
328
- return typeof t == "number" && (a = t), typeof l == "number" && (a = l), A(new Date(a * 1e3), "HH:MM:SS");
328
+ return typeof t == "number" && (a = t), typeof n == "number" && (a = n), A(new Date(a * 1e3), "HH:MM:SS");
329
329
  }, Gt = (t = "0", e = 4) => Number.parseFloat(t).toFixed(e), Vt = (t = "0") => Number.parseFloat(t).toFixed(2), ea = (t) => {
330
330
  let e = t && t.toUpperCase();
331
- const l = {
331
+ const n = {
332
332
  11: "北京",
333
333
  12: "天津",
334
334
  13: "河北",
@@ -365,50 +365,50 @@ const zt = (t, e, l) => l ? `${l}%` : "-", Qt = (t, e, l) => l ? A(new Date(l),
365
365
  82: "澳门",
366
366
  91: "国外 "
367
367
  };
368
- let a = "", n = !0;
368
+ let a = "", l = !0;
369
369
  if (!e || !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(e))
370
- a = "身份证号格式错误", n = !1;
371
- else if (!l[e.substr(0, 2)])
372
- a = "身份证地址编码错误", n = !1;
370
+ a = "身份证号格式错误", l = !1;
371
+ else if (!n[e.substr(0, 2)])
372
+ a = "身份证地址编码错误", l = !1;
373
373
  else if (e.length == 18) {
374
374
  e = e.split("");
375
375
  for (var o = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2], r = [1, 0, "X", 9, 8, 7, 6, 5, 4, 3, 2], s = 0, u = 0, c = 0, _ = 0; _ < 17; _++)
376
376
  u = e[_], c = o[_], s += u * c;
377
- r[s % 11], r[s % 11] != e[17] && (a = "身份证校验位错误", n = !1);
377
+ r[s % 11], r[s % 11] != e[17] && (a = "身份证校验位错误", l = !1);
378
378
  }
379
379
  return {
380
380
  tip: a,
381
- pass: n
381
+ pass: l
382
382
  };
383
- }, ta = (t, e, l) => {
384
- e = e || "hskj20180614java", l = l || "hskj20180614java";
385
- let a = b.enc.Utf8.parse(e), n = b.enc.Utf8.parse(l), o = b.enc.Utf8.parse(t), r = b.AES.encrypt(o, a, {
386
- iv: n,
387
- mode: b.mode.CBC,
388
- padding: b.pad.ZeroPadding
383
+ }, ta = (t, e, n) => {
384
+ e = e || "hskj20180614java", n = n || "hskj20180614java";
385
+ let a = h.enc.Utf8.parse(e), l = h.enc.Utf8.parse(n), o = h.enc.Utf8.parse(t), r = h.AES.encrypt(o, a, {
386
+ iv: l,
387
+ mode: h.mode.CBC,
388
+ padding: h.pad.ZeroPadding
389
389
  });
390
- return b.enc.Base64.stringify(r.ciphertext);
391
- }, aa = (t, e, l) => {
392
- e = e || "hskj20180614java", l = l || "hskj20180614java";
393
- var a = b.enc.Utf8.parse(e);
394
- let n = b.enc.Utf8.parse(l);
395
- var o = b.AES.decrypt(t, a, {
396
- iv: n,
397
- mode: b.mode.CBC,
398
- padding: b.pad.ZeroPadding
390
+ return h.enc.Base64.stringify(r.ciphertext);
391
+ }, aa = (t, e, n) => {
392
+ e = e || "hskj20180614java", n = n || "hskj20180614java";
393
+ var a = h.enc.Utf8.parse(e);
394
+ let l = h.enc.Utf8.parse(n);
395
+ var o = h.AES.decrypt(t, a, {
396
+ iv: l,
397
+ mode: h.mode.CBC,
398
+ padding: h.pad.ZeroPadding
399
399
  });
400
- return b.enc.Base64.stringify(o.ciphertext);
400
+ return h.enc.Base64.stringify(o.ciphertext);
401
401
  };
402
- function na({ uniqueId: t, projectCode: e, templateName: l, tableConfig: a, tableData: n }) {
402
+ function na({ uniqueId: t, projectCode: e, templateName: n, tableConfig: a, tableData: l }) {
403
403
  const o = [];
404
404
  if (a.filter((c) => R({ ...c.data, uniqueId: t })).map((c) => c.data).filter((c) => c.fieldExport == !0).forEach((c) => {
405
405
  le.includes(c.type) || o.push(c);
406
- }), h.isEmpty(o))
406
+ }), y.isEmpty(o))
407
407
  return v.warning("未配置导出字段"), Promise.reject();
408
- const r = u({ templateArr: o, tableData: n });
408
+ const r = u({ templateArr: o, tableData: l });
409
409
  return s(
410
410
  {
411
- template_name: l,
411
+ template_name: n,
412
412
  ...r
413
413
  },
414
414
  e
@@ -515,8 +515,8 @@ function na({ uniqueId: t, projectCode: e, templateName: l, tableConfig: a, tabl
515
515
  d[i.title] = g[p + 1], x.push(i.field);
516
516
  }), _.forEach((i, p) => {
517
517
  let w = { A: p + 1 };
518
- x.forEach((y, ae) => {
519
- w[g[ae + 1]] = N(i[y]);
518
+ x.forEach((b, ae) => {
519
+ w[g[ae + 1]] = N(i[b]);
520
520
  }), m.push(w);
521
521
  });
522
522
  function N(i) {
@@ -530,8 +530,8 @@ function na({ uniqueId: t, projectCode: e, templateName: l, tableConfig: a, tabl
530
530
  }
531
531
  }
532
532
  function la(t) {
533
- return new Promise((e, l) => {
534
- const a = {}, n = t.columnConfig.filter(
533
+ return new Promise((e, n) => {
534
+ const a = {}, l = t.columnConfig.filter(
535
535
  (r) => R({
536
536
  ...r.data,
537
537
  uniqueId: t.uniqueId
@@ -540,8 +540,8 @@ function la(t) {
540
540
  const u = s;
541
541
  typeof r[u] == "function" && (a[r.field] || (a[r.field] = []), a[r.field].push(r[u]));
542
542
  }), { fieldName: r.field, title: r.title }));
543
- if (h.isEmpty(n))
544
- return v.warning("未配置导出字段"), l();
543
+ if (y.isEmpty(l))
544
+ return v.warning("未配置导出字段"), n();
545
545
  const o = t.data.map((r) => (Object.keys(a).forEach((s) => {
546
546
  var u;
547
547
  (u = a[s]) == null || u.forEach((c) => {
@@ -553,7 +553,7 @@ function la(t) {
553
553
  responseType: "blob",
554
554
  method: "post",
555
555
  data: {
556
- titles_json_data: n,
556
+ titles_json_data: l,
557
557
  data_json_data: o,
558
558
  template_name: t.template_name,
559
559
  export_biz_type: t.export_biz_type
@@ -570,8 +570,8 @@ function la(t) {
570
570
  });
571
571
  }
572
572
  function ra(t, e = "/pri/easyexcel/export_model_all") {
573
- return new Promise((l, a) => {
574
- const n = t.columnConfig.filter(
573
+ return new Promise((n, a) => {
574
+ const l = t.columnConfig.filter(
575
575
  (d) => R({
576
576
  ...d.data,
577
577
  uniqueId: t.uniqueId
@@ -585,13 +585,13 @@ function ra(t, e = "/pri/easyexcel/export_model_all") {
585
585
  }
586
586
  return { fieldName: m, title: d.title };
587
587
  });
588
- if (h.isEmpty(n))
588
+ if (y.isEmpty(l))
589
589
  return v.warning("未配置导出字段"), a();
590
590
  let s = (re(t.uniqueId) || {})[`${oe}${t.tableId}`] || {};
591
591
  for (let d in t.search_json_data)
592
592
  (t.search_json_data[d] || t.search_json_data[d] === 0) && (s[d] = t.search_json_data[d]);
593
593
  const u = {
594
- titles_json_data: n,
594
+ titles_json_data: l,
595
595
  search_json_data: s,
596
596
  template_name: t.template_name,
597
597
  export_biz_type: t.export_biz_type
@@ -614,7 +614,7 @@ function ra(t, e = "/pri/easyexcel/export_model_all") {
614
614
  timeout: 1e3 * 60 * 20
615
615
  // 二十分钟
616
616
  }).then((d) => {
617
- l();
617
+ n();
618
618
  const m = new Blob([d], {
619
619
  type: "application/vnd.ms-excel"
620
620
  });
@@ -627,14 +627,14 @@ function oa(t) {
627
627
  e.href = t.url, e.download = t.name, e.style.display = "none", document.body.appendChild(e), e.click(), document.body.removeChild(e);
628
628
  }
629
629
  function Y(t, e) {
630
- let l = document.createElement("a");
631
- l.href = window.URL.createObjectURL(t), l.download = /\./.test(e) ? e : e + ".xlsx", document.body.appendChild(l), l.click(), document.body.removeChild(l);
630
+ let n = document.createElement("a");
631
+ n.href = window.URL.createObjectURL(t), n.download = /\./.test(e) ? e : e + ".xlsx", document.body.appendChild(n), n.click(), document.body.removeChild(n);
632
632
  }
633
633
  function sa(t) {
634
- const [e = "", l = ""] = t.split(","), a = e.match(/:(.*?);/)[1], n = atob(l);
635
- let o = n.length, r = new Uint8Array(o);
634
+ const [e = "", n = ""] = t.split(","), a = e.match(/:(.*?);/)[1], l = atob(n);
635
+ let o = l.length, r = new Uint8Array(o);
636
636
  for (; o--; )
637
- r[o] = n.charCodeAt(o);
637
+ r[o] = l.charCodeAt(o);
638
638
  return new Blob([r], {
639
639
  type: a
640
640
  });
@@ -644,7 +644,7 @@ const ia = {
644
644
  start: () => {
645
645
  const t = document.body, e = document.createElement("div");
646
646
  e.setAttribute("class", "loading-next");
647
- const l = `
647
+ const n = `
648
648
  <div class="loading-next-box">
649
649
  <div class="loading-next-box-warp">
650
650
  <div class="loading-next-box-item"></div>
@@ -659,16 +659,16 @@ const ia = {
659
659
  </div>
660
660
  </div>
661
661
  `;
662
- e.innerHTML = l, t.insertBefore(e, t.childNodes[0]), window.nextLoading = !0;
662
+ e.innerHTML = n, t.insertBefore(e, t.childNodes[0]), window.nextLoading = !0;
663
663
  },
664
664
  // 移除 loading
665
665
  done: (t = 0) => {
666
666
  Ot(() => {
667
667
  setTimeout(() => {
668
- var l;
668
+ var n;
669
669
  window.nextLoading = !1;
670
670
  const e = document.querySelector(".loading-next");
671
- (l = e == null ? void 0 : e.parentNode) == null || l.removeChild(e);
671
+ (n = e == null ? void 0 : e.parentNode) == null || n.removeChild(e);
672
672
  }, t);
673
673
  });
674
674
  }
@@ -747,62 +747,62 @@ const ia = {
747
747
  ];
748
748
  function E() {
749
749
  return {
750
- hexToRgb: (n) => {
750
+ hexToRgb: (l) => {
751
751
  let o = "";
752
- if (!/^\#?[0-9A-Fa-f]{6}$/.test(n))
752
+ if (!/^\#?[0-9A-Fa-f]{6}$/.test(l))
753
753
  return v.warning("输入错误的hex"), "";
754
- n = n.replace("#", ""), o = n.match(/../g);
754
+ l = l.replace("#", ""), o = l.match(/../g);
755
755
  for (let s = 0; s < 3; s++) o[s] = parseInt(o[s], 16);
756
756
  return o;
757
757
  },
758
- rgbToHex: (n, o, r) => {
758
+ rgbToHex: (l, o, r) => {
759
759
  let s = /^\d{1,3}$/;
760
- if (!s.test(String(n)) || !s.test(String(o)) || !s.test(String(r)))
760
+ if (!s.test(String(l)) || !s.test(String(o)) || !s.test(String(r)))
761
761
  return v.warning("输入错误的rgb颜色值"), "";
762
- let u = [n.toString(16), o.toString(16), r.toString(16)];
762
+ let u = [l.toString(16), o.toString(16), r.toString(16)];
763
763
  for (let c = 0; c < 3; c++) u[c].length == 1 && (u[c] = `0${u[c]}`);
764
764
  return `#${u.join("")}`;
765
765
  },
766
- getDarkColor: (n, o) => {
767
- if (!/^\#?[0-9A-Fa-f]{6}$/.test(n))
766
+ getDarkColor: (l, o) => {
767
+ if (!/^\#?[0-9A-Fa-f]{6}$/.test(l))
768
768
  return v.warning("输入错误的hex颜色值"), "";
769
- let s = E().hexToRgb(n);
769
+ let s = E().hexToRgb(l);
770
770
  for (let u = 0; u < 3; u++) s[u] = Math.floor(s[u] * (1 - o));
771
771
  return E().rgbToHex(s[0], s[1], s[2]);
772
772
  },
773
- getLightColor: (n, o) => {
774
- if (!/^\#?[0-9A-Fa-f]{6}$/.test(n))
773
+ getLightColor: (l, o) => {
774
+ if (!/^\#?[0-9A-Fa-f]{6}$/.test(l))
775
775
  return v.warning("输入错误的hex颜色值"), "";
776
- let s = E().hexToRgb(n);
776
+ let s = E().hexToRgb(l);
777
777
  for (let u = 0; u < 3; u++) s[u] = Math.floor((255 - s[u]) * o + s[u]);
778
778
  return E().rgbToHex(s[0], s[1], s[2]);
779
779
  }
780
780
  };
781
781
  }
782
782
  function ca(t, e = !0) {
783
- const l = [];
784
- function a(n, o = []) {
785
- return n.reduce((r, s) => (r.push(s), s != null && s.children && s.children.length && r.push(...a(s.children)), r), o);
783
+ const n = [];
784
+ function a(l, o = []) {
785
+ return l.reduce((r, s) => (r.push(s), s != null && s.children && s.children.length && r.push(...a(s.children)), r), o);
786
786
  }
787
- return a(e ? h.cloneDeep(t) : t, l), l;
787
+ return a(e ? y.cloneDeep(t) : t, n), n;
788
788
  }
789
789
  function da(t) {
790
- return t.reduce((e, l) => {
790
+ return t.reduce((e, n) => {
791
791
  e[D] || (e[D] = []);
792
- const a = e[D].concat(l[D] || []);
793
- return Object.assign({}, e, l, {
792
+ const a = e[D].concat(n[D] || []);
793
+ return Object.assign({}, e, n, {
794
794
  [D]: [...new Set(a)]
795
795
  });
796
796
  }, {});
797
797
  }
798
- function fa(t) {
799
- const e = {}, l = (a) => Object.values(a).reduce((n, o) => (delete o[D], n = Object.assign(n, o), n), {});
800
- return t.forEach((a) => {
801
- const n = a.getData();
802
- Object.assign(e, l(n));
803
- }), h.cloneDeep({
804
- ...e,
805
- [D]: Object.keys(e)
798
+ function fa(t, e = !1) {
799
+ const n = {}, a = (l) => Object.values(l).reduce((o, r) => (delete r[D], o = Object.assign(o, r), o), {});
800
+ return t.forEach((l) => {
801
+ const o = l.getData();
802
+ Object.assign(n, a(o));
803
+ }), e ? y.cloneDeep(n) : y.cloneDeep({
804
+ ...n,
805
+ [D]: Object.keys(n)
806
806
  });
807
807
  }
808
808
  function ga(t) {
@@ -812,18 +812,18 @@ function ga(t) {
812
812
  }
813
813
  return typeof t == "object" && t !== null ? JSON.stringify(t) : t;
814
814
  }
815
- const ma = (t, e, l) => {
815
+ const ma = (t, e, n) => {
816
816
  if (!e) return t;
817
817
  const a = e.toLowerCase();
818
- return t.filter((n) => l(n).some((r) => r && r.toLowerCase().includes(a)));
818
+ return t.filter((l) => n(l).some((r) => r && r.toLowerCase().includes(a)));
819
819
  };
820
820
  let G;
821
821
  const pa = 60 * 1e3;
822
822
  let $ = !1, j = !1, B;
823
823
  const ya = /<script.*?src=["'](.*?)["'].*?><\/script>/g, k = /index-(.*?)\.js/g, V = async () => fetch("/index.html?timestep=" + Date.now()).then((t) => t.text()).then((t) => {
824
- var l, a;
825
- const e = (l = t.match(ya)) == null ? void 0 : l.filter((n) => k.test(n));
826
- return e && e.length > 0 ? h.get(((a = e[0]) == null ? void 0 : a.match(k)) || [], "0", "") : "";
824
+ var n, a;
825
+ const e = (n = t.match(ya)) == null ? void 0 : n.filter((l) => k.test(l));
826
+ return e && e.length > 0 ? y.get(((a = e[0]) == null ? void 0 : a.match(k)) || [], "0", "") : "";
827
827
  }), ee = () => V().then((t) => {
828
828
  t && t != G && !$ && ($ = !0, te(), se.confirm("系统版本更新了,是否立即刷新页面?", "提示", {
829
829
  confirmButtonText: "立即刷新",
@@ -851,12 +851,12 @@ async function ba() {
851
851
  const K = (t) => {
852
852
  const e = "1.23452384164.123412416";
853
853
  document.getElementById(e) !== null && document.body.removeChild(document.getElementById(e));
854
- const l = document.createElement("canvas");
855
- l.width = 200, l.height = 130;
856
- const a = l.getContext("2d");
857
- a.rotate(-20 * Math.PI / 180), a.font = "12px Vedana", a.fillStyle = "rgba(200, 200, 200, 0.30)", a.textBaseline = "middle", a.fillText(t, l.width / 10, l.height / 2);
858
- const n = document.createElement("div");
859
- return n.id = e, n.style.pointerEvents = "none", n.style.top = "0px", n.style.left = "0px", n.style.position = "fixed", n.style.zIndex = "10000000", n.style.width = `${document.documentElement.clientWidth}px`, n.style.height = `${document.documentElement.clientHeight}px`, n.style.background = `url(${l.toDataURL("image/png")}) left top repeat`, document.body.appendChild(n), e;
854
+ const n = document.createElement("canvas");
855
+ n.width = 200, n.height = 130;
856
+ const a = n.getContext("2d");
857
+ a.rotate(-20 * Math.PI / 180), a.font = "12px Vedana", a.fillStyle = "rgba(200, 200, 200, 0.30)", a.textBaseline = "middle", a.fillText(t, n.width / 10, n.height / 2);
858
+ const l = document.createElement("div");
859
+ return l.id = e, l.style.pointerEvents = "none", l.style.top = "0px", l.style.left = "0px", l.style.position = "fixed", l.style.zIndex = "10000000", l.style.width = `${document.documentElement.clientWidth}px`, l.style.height = `${document.documentElement.clientHeight}px`, l.style.background = `url(${n.toDataURL("image/png")}) left top repeat`, document.body.appendChild(l), e;
860
860
  }, ha = {
861
861
  // 设置水印
862
862
  set: (t) => {
@@ -938,7 +938,7 @@ const K = (t) => {
938
938
  isUpdate: ba,
939
939
  judementSameArr: Yt,
940
940
  lazyImg: We,
941
- lodash: h,
941
+ lodash: y,
942
942
  mathTool: Je,
943
943
  message: ze,
944
944
  messageBox: Qe,