@unizhen/ui 0.1.119 → 0.1.121
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.
- package/lib/components/bom/columns.d.ts +253 -0
- package/lib/components/bom/identity.test.d.ts +1 -0
- package/lib/components/bom/index.vue.d.ts +20 -20
- package/lib/components/bom/interface.d.ts +1 -1
- package/lib/components/bom/options.d.ts +19 -0
- package/lib/components/bom/options.test.d.ts +1 -0
- package/lib/components/bom/quantity.d.ts +2 -0
- package/lib/components/bom/quantity.test.d.ts +1 -0
- package/lib/components/bom/sortable.d.ts +19 -0
- package/lib/components/bom/sortable.test.d.ts +1 -0
- package/lib/components/bom/tree.d.ts +4 -0
- package/lib/components/bom/tree.test.d.ts +1 -0
- package/lib/components/form/draggable.vue.d.ts +361 -1
- package/lib/components/form/index.vue.d.ts +360 -0
- package/lib/components/form/interface.d.ts +11 -1
- package/lib/components/searchBar/mobile.vue.d.ts +1 -1
- package/lib/components/table/factory.d.ts +10 -2
- package/lib/components/table/index.vue.d.ts +1 -1
- package/lib/components/thumbnail/index.vue.d.ts +1 -1
- package/lib/ui.css +1 -1
- package/lib/ui.js +1128 -695
- package/package.json +15 -15
package/lib/ui.js
CHANGED
|
@@ -7,9 +7,9 @@ import { cloneDeep as H, compact as Qe, debounce as $e, throttle as et } from "l
|
|
|
7
7
|
import tt from "dayjs";
|
|
8
8
|
import { VueDraggable as nt } from "vue-draggable-plus";
|
|
9
9
|
import rt from "json5";
|
|
10
|
-
import
|
|
11
|
-
import at from "
|
|
12
|
-
import ot from "
|
|
10
|
+
import it from "sortablejs";
|
|
11
|
+
import { UzNumberFlow as at } from "@unizhen/number";
|
|
12
|
+
import ot from "jsqr";
|
|
13
13
|
import { OEM as st, PSM as ct, createWorker as lt } from "tesseract.js";
|
|
14
14
|
//#region \0rolldown/runtime.js
|
|
15
15
|
var ut = Object.defineProperty, dt = (e, t) => {
|
|
@@ -213,11 +213,7 @@ var Mt = (e, t = "yyyy-MM-dd") => {
|
|
|
213
213
|
document.title = `${e} - ${q.title}`;
|
|
214
214
|
}, Pt = (e, t = 500) => {
|
|
215
215
|
let n = e, r, i = !1, a = function(...e) {
|
|
216
|
-
|
|
217
|
-
n.apply(a, e), i = !1;
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
r ||= setTimeout(function() {
|
|
216
|
+
i ? (n.apply(a, e), i = !1) : r ||= setTimeout(function() {
|
|
221
217
|
r && clearTimeout(r), r = void 0, n.apply(a, e);
|
|
222
218
|
}, t);
|
|
223
219
|
};
|
|
@@ -411,29 +407,27 @@ var Jt = d({
|
|
|
411
407
|
h(() => {
|
|
412
408
|
t.value = !0;
|
|
413
409
|
});
|
|
414
|
-
|
|
415
|
-
}
|
|
416
|
-
n.value = e;
|
|
410
|
+
} else n.value = e;
|
|
417
411
|
};
|
|
418
412
|
return r(e.icon), j(() => e.icon, (e) => {
|
|
419
413
|
r(e);
|
|
420
414
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
421
415
|
}
|
|
422
|
-
}),
|
|
423
|
-
function
|
|
424
|
-
return
|
|
416
|
+
}), Yt;
|
|
417
|
+
function Xt(e, t = "/") {
|
|
418
|
+
return Yt = Je({
|
|
425
419
|
history: Ye(t),
|
|
426
420
|
routes: e,
|
|
427
421
|
scrollBehavior: () => ({
|
|
428
422
|
left: 0,
|
|
429
423
|
top: 0
|
|
430
424
|
})
|
|
431
|
-
}),
|
|
425
|
+
}), Yt;
|
|
432
426
|
}
|
|
433
427
|
//#endregion
|
|
434
428
|
//#region components/monitor.ts
|
|
435
|
-
var
|
|
436
|
-
let e =
|
|
429
|
+
var Zt = 500, Qt = 300, $t = [], en = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakSet(), rn, an, on, sn, cn, ln, un = !1, dn = () => typeof navigator > "u" ? "" : navigator.userAgent.toLocaleUpperCase(), fn = () => {
|
|
430
|
+
let e = dn(), t = /ANDROID ([\d.]+)/.exec(e);
|
|
437
431
|
if (t) return `Android ${t[1]}`;
|
|
438
432
|
let n = /(?:IPHONE|IPAD).*OS ([\d_]+)/.exec(e);
|
|
439
433
|
if (n) return `${e.includes("IPAD") ? "iPad" : "iPhone"} ${n[1].replace(/_/g, ".")}`;
|
|
@@ -448,8 +442,8 @@ var Xt = 500, Zt = 300, Qt = [], $t = /* @__PURE__ */ new WeakMap(), en = /* @__
|
|
|
448
442
|
}[r[1]] ?? `Windows NT ${r[1]}`;
|
|
449
443
|
let i = /MAC OS X ([\d_]+)/.exec(e);
|
|
450
444
|
return i ? `macOS ${i[1].replace(/_/g, ".")}` : "Other Platform";
|
|
451
|
-
},
|
|
452
|
-
let e =
|
|
445
|
+
}, pn = () => {
|
|
446
|
+
let e = dn();
|
|
453
447
|
for (let [t, n] of [
|
|
454
448
|
[/EDG(?:A|IOS)?\/([\d.]+)/, "Edge"],
|
|
455
449
|
[/OPR\/([\d.]+)/, "Opera"],
|
|
@@ -464,7 +458,7 @@ var Xt = 500, Zt = 300, Qt = [], $t = /* @__PURE__ */ new WeakMap(), en = /* @__
|
|
|
464
458
|
if (r) return `${n} ${r[1]}`;
|
|
465
459
|
}
|
|
466
460
|
return "Others";
|
|
467
|
-
},
|
|
461
|
+
}, mn = (e, t) => e.length > t ? `${e.slice(0, t)}…` : e, hn = (e) => e.replace(/([?&](?:access[_-]?token|refresh[_-]?token|token|authorization|password|passwd|secret|api[_-]?key|cookie|session)=)[^&#\s]*/gi, "$1[REDACTED]").replace(/("(?:access[_-]?token|refresh[_-]?token|token|authorization|password|passwd|secret|api[_-]?key|cookie|session)"\s*:\s*)"[^"]*"/gi, "$1\"[REDACTED]\"").replace(/(\b(?:access[_-]?token|refresh[_-]?token|token|authorization|password|passwd|secret|api[_-]?key|cookie|session)\s*[=:]\s*)[^\s,;]+/gi, "$1[REDACTED]"), gn = (e) => {
|
|
468
462
|
let t = /* @__PURE__ */ new WeakSet();
|
|
469
463
|
try {
|
|
470
464
|
return JSON.stringify(e, (e, n) => {
|
|
@@ -478,7 +472,7 @@ var Xt = 500, Zt = 300, Qt = [], $t = /* @__PURE__ */ new WeakMap(), en = /* @__
|
|
|
478
472
|
} catch {
|
|
479
473
|
return String(e);
|
|
480
474
|
}
|
|
481
|
-
},
|
|
475
|
+
}, _n = (e) => e instanceof Error ? mn(hn(`${e.name && e.name !== "Error" ? `${e.name}: ` : ""}${e.message || "Unknown error"}`), Zt) : mn(hn((typeof e == "string" ? e : gn(e)).trim() || "Unknown error"), Zt), vn = (e) => {
|
|
482
476
|
let t = String(e || "");
|
|
483
477
|
if (!t) return "";
|
|
484
478
|
try {
|
|
@@ -487,7 +481,7 @@ var Xt = 500, Zt = 300, Qt = [], $t = /* @__PURE__ */ new WeakMap(), en = /* @__
|
|
|
487
481
|
} catch {
|
|
488
482
|
return t.split(/[?#]/, 1)[0];
|
|
489
483
|
}
|
|
490
|
-
},
|
|
484
|
+
}, yn = (e, t) => {
|
|
491
485
|
let n = [];
|
|
492
486
|
try {
|
|
493
487
|
let t = new URL(e, location.href).searchParams.toString();
|
|
@@ -504,8 +498,8 @@ var Xt = 500, Zt = 300, Qt = [], $t = /* @__PURE__ */ new WeakMap(), en = /* @__
|
|
|
504
498
|
}), n.push(e.join("&"));
|
|
505
499
|
} else typeof Blob < "u" && t instanceof Blob ? n.push(`[Blob:${t.type || "unknown"},${t.size}B]`) : typeof ArrayBuffer < "u" && (t instanceof ArrayBuffer || ArrayBuffer.isView(t)) && n.push("[Binary data]");
|
|
506
500
|
}
|
|
507
|
-
return
|
|
508
|
-
},
|
|
501
|
+
return mn(hn(n.filter(Boolean).join(" | ")), Qt);
|
|
502
|
+
}, bn = (e) => {
|
|
509
503
|
let t;
|
|
510
504
|
if (typeof TextEncoder < "u") {
|
|
511
505
|
let n = new TextEncoder().encode(e);
|
|
@@ -520,8 +514,8 @@ var Xt = 500, Zt = 300, Qt = [], $t = /* @__PURE__ */ new WeakMap(), en = /* @__
|
|
|
520
514
|
t = n.map((e) => String.fromCharCode(e)).join("");
|
|
521
515
|
}
|
|
522
516
|
return window.btoa(t);
|
|
523
|
-
},
|
|
524
|
-
let n =
|
|
517
|
+
}, xn = (e, t) => {
|
|
518
|
+
let n = bn(t), r = () => {
|
|
525
519
|
let t = new XMLHttpRequest();
|
|
526
520
|
t.open("POST", e, !0), t.setRequestHeader("Content-Type", "text/plain;charset=UTF-8"), t.send(n);
|
|
527
521
|
}, i = () => {
|
|
@@ -531,101 +525,97 @@ var Xt = 500, Zt = 300, Qt = [], $t = /* @__PURE__ */ new WeakMap(), en = /* @__
|
|
|
531
525
|
try {
|
|
532
526
|
r();
|
|
533
527
|
} catch {}
|
|
534
|
-
}, a =
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
i();
|
|
548
|
-
}, xn = (e, t) => (n, r, i) => {
|
|
549
|
-
if (!ln) {
|
|
550
|
-
ln = !0;
|
|
528
|
+
}, a = on ?? window.fetch;
|
|
529
|
+
typeof a == "function" ? a.call(window, e, {
|
|
530
|
+
method: "POST",
|
|
531
|
+
body: n,
|
|
532
|
+
keepalive: !0,
|
|
533
|
+
credentials: "same-origin",
|
|
534
|
+
headers: { "Content-Type": "text/plain;charset=UTF-8" }
|
|
535
|
+
}).then((e) => {
|
|
536
|
+
e.ok || i();
|
|
537
|
+
}).catch(i) : i();
|
|
538
|
+
}, Sn = (e, t) => (n, r, i) => {
|
|
539
|
+
if (!un) {
|
|
540
|
+
un = !0;
|
|
551
541
|
try {
|
|
552
|
-
let a =
|
|
553
|
-
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 &&
|
|
542
|
+
let a = _n(i);
|
|
543
|
+
a && a.toLocaleLowerCase().indexOf("resizeobserver") === -1 && xn(e, gn({
|
|
554
544
|
type: n,
|
|
555
545
|
time: Date.now(),
|
|
556
|
-
url:
|
|
557
|
-
browser:
|
|
558
|
-
platform:
|
|
546
|
+
url: vn(r) || vn(location.href),
|
|
547
|
+
browser: pn(),
|
|
548
|
+
platform: fn(),
|
|
559
549
|
message: `[${n}] [${window.document.title}] [${a}]`,
|
|
560
550
|
info: t ? t() : ""
|
|
561
551
|
}));
|
|
562
552
|
} catch {} finally {
|
|
563
|
-
|
|
553
|
+
un = !1;
|
|
564
554
|
}
|
|
565
555
|
}
|
|
566
|
-
},
|
|
567
|
-
for (let r of
|
|
568
|
-
}, Cn = (e) => {
|
|
569
|
-
let t = _n(e);
|
|
570
|
-
return Qt.some((e) => e.endpoint === t);
|
|
556
|
+
}, Cn = (e, t, n) => {
|
|
557
|
+
for (let r of $t) r.report(e, t, n);
|
|
571
558
|
}, wn = (e) => {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
559
|
+
let t = vn(e);
|
|
560
|
+
return $t.some((e) => e.endpoint === t);
|
|
561
|
+
}, Tn = (e) => {
|
|
562
|
+
nn.has(e) || (nn.add(e), e.addEventListener("error", () => {
|
|
563
|
+
let t = tn.get(e);
|
|
564
|
+
t && !wn(t.url) && Cn(3, t.url, `${t.method} network error`);
|
|
575
565
|
}), e.addEventListener("timeout", () => {
|
|
576
|
-
let t =
|
|
577
|
-
t && !
|
|
566
|
+
let t = tn.get(e);
|
|
567
|
+
t && !wn(t.url) && Cn(3, t.url, `${t.method} timeout`);
|
|
578
568
|
}), e.addEventListener("loadend", () => {
|
|
579
|
-
let t =
|
|
580
|
-
if (!t || e.status < 400 ||
|
|
569
|
+
let t = tn.get(e);
|
|
570
|
+
if (!t || e.status < 400 || wn(t.url)) return;
|
|
581
571
|
let n = Date.now() - t.startTime;
|
|
582
|
-
|
|
572
|
+
Cn(3, t.url, `${t.method} ${e.status} (${n}ms)`);
|
|
583
573
|
}));
|
|
584
|
-
},
|
|
585
|
-
|
|
586
|
-
|
|
574
|
+
}, En = () => {
|
|
575
|
+
rn || an || sn || cn || typeof XMLHttpRequest > "u" || (rn = XMLHttpRequest.prototype.open, an = XMLHttpRequest.prototype.send, sn = function(e, t, ...n) {
|
|
576
|
+
tn.set(this, {
|
|
587
577
|
method: String(e).toUpperCase(),
|
|
588
578
|
url: String(t),
|
|
589
579
|
startTime: Date.now()
|
|
590
|
-
}),
|
|
591
|
-
}, XMLHttpRequest.prototype.open =
|
|
592
|
-
let t =
|
|
593
|
-
t && (t.startTime = Date.now()),
|
|
594
|
-
}, XMLHttpRequest.prototype.send =
|
|
595
|
-
}, En = () => {
|
|
596
|
-
nn && XMLHttpRequest.prototype.open === on && (XMLHttpRequest.prototype.open = nn, nn = void 0, on = void 0), rn && XMLHttpRequest.prototype.send === sn && (XMLHttpRequest.prototype.send = rn, rn = void 0, sn = void 0);
|
|
580
|
+
}), Tn(this), rn?.call(this, e, t, n[0] ?? !0, n[1] ?? null, n[2] ?? null);
|
|
581
|
+
}, XMLHttpRequest.prototype.open = sn, cn = function(e) {
|
|
582
|
+
let t = tn.get(this);
|
|
583
|
+
t && (t.startTime = Date.now()), an?.call(this, e ?? null);
|
|
584
|
+
}, XMLHttpRequest.prototype.send = cn);
|
|
597
585
|
}, Dn = () => {
|
|
598
|
-
|
|
586
|
+
rn && XMLHttpRequest.prototype.open === sn && (XMLHttpRequest.prototype.open = rn, rn = void 0, sn = void 0), an && XMLHttpRequest.prototype.send === cn && (XMLHttpRequest.prototype.send = an, an = void 0, cn = void 0);
|
|
587
|
+
}, On = () => {
|
|
588
|
+
if (on || typeof window.fetch != "function") return;
|
|
599
589
|
let e = window.fetch;
|
|
600
|
-
|
|
601
|
-
let r = typeof Request < "u" && t instanceof Request, i = r ? t.url : String(t), a = String(n?.method || r && t.method || "GET").toUpperCase(), o =
|
|
590
|
+
on = e, ln = async function(t, n) {
|
|
591
|
+
let r = typeof Request < "u" && t instanceof Request, i = r ? t.url : String(t), a = String(n?.method || r && t.method || "GET").toUpperCase(), o = yn(i, n?.body), s = o ? ` | Params: ${o}` : "", c = Date.now();
|
|
602
592
|
try {
|
|
603
593
|
let r = await e.call(this, t, n);
|
|
604
|
-
return !r.ok && !
|
|
594
|
+
return !r.ok && !wn(i) && Cn(3, i, `${a} ${r.status} (${Date.now() - c}ms)${s}`), r;
|
|
605
595
|
} catch (e) {
|
|
606
|
-
throw
|
|
596
|
+
throw wn(i) || Cn(3, i, `${a} network error: ${_n(e)}${s}`), e;
|
|
607
597
|
}
|
|
608
|
-
}, window.fetch =
|
|
609
|
-
},
|
|
610
|
-
|
|
611
|
-
}, kn = (e) => {
|
|
612
|
-
Sn(1, e.filename || location.href, e.error || e.message);
|
|
598
|
+
}, window.fetch = ln;
|
|
599
|
+
}, kn = () => {
|
|
600
|
+
on && window.fetch === ln && (window.fetch = on, on = void 0, ln = void 0);
|
|
613
601
|
}, An = (e) => {
|
|
614
|
-
|
|
615
|
-
}, jn = () => {
|
|
616
|
-
|
|
602
|
+
Cn(1, e.filename || location.href, e.error || e.message);
|
|
603
|
+
}, jn = (e) => {
|
|
604
|
+
Cn(1, location.href, `Promise: ${_n(e.reason)}`);
|
|
617
605
|
}, Mn = () => {
|
|
618
|
-
|
|
606
|
+
$t.length === 1 && (En(), On(), window.addEventListener("error", An), window.addEventListener("unhandledrejection", jn));
|
|
607
|
+
}, Nn = () => {
|
|
608
|
+
$t.length > 0 || (Dn(), kn(), window.removeEventListener("error", An), window.removeEventListener("unhandledrejection", jn));
|
|
619
609
|
};
|
|
620
|
-
function
|
|
610
|
+
function Pn(e, t, n) {
|
|
621
611
|
if (!t || typeof window > "u" || typeof navigator > "u") return;
|
|
622
|
-
let r =
|
|
612
|
+
let r = en.get(e);
|
|
623
613
|
if (r) return r;
|
|
624
|
-
let i =
|
|
625
|
-
endpoint:
|
|
614
|
+
let i = Sn(t, n), a = {
|
|
615
|
+
endpoint: vn(t),
|
|
626
616
|
report: i
|
|
627
617
|
};
|
|
628
|
-
|
|
618
|
+
$t.push(a), Mn();
|
|
629
619
|
let o = e.config.errorHandler, s = (e, t, n) => {
|
|
630
620
|
i(2, location.href, e), o?.(e, t, n);
|
|
631
621
|
};
|
|
@@ -633,14 +623,14 @@ function Nn(e, t, n) {
|
|
|
633
623
|
let c = !1, l = () => {
|
|
634
624
|
if (c) return;
|
|
635
625
|
c = !0, e.config.errorHandler === s && (e.config.errorHandler = o);
|
|
636
|
-
let t =
|
|
637
|
-
t >= 0 &&
|
|
626
|
+
let t = $t.indexOf(a);
|
|
627
|
+
t >= 0 && $t.splice(t, 1), en.delete(e), Nn();
|
|
638
628
|
};
|
|
639
|
-
return
|
|
629
|
+
return en.set(e, l), e.onUnmount(l), l;
|
|
640
630
|
}
|
|
641
|
-
var
|
|
642
|
-
|
|
643
|
-
},
|
|
631
|
+
var Fn = (e, t, n) => {
|
|
632
|
+
Cn(e, t, n);
|
|
633
|
+
}, J = /* @__PURE__ */ new Map(), In = Object.prototype.hasOwnProperty, Ln = 300, Rn = (e) => {
|
|
644
634
|
if (e == null) return "";
|
|
645
635
|
let t;
|
|
646
636
|
if (typeof e == "string") t = e;
|
|
@@ -649,44 +639,44 @@ var Pn = (e, t, n) => {
|
|
|
649
639
|
} catch {
|
|
650
640
|
t = String(e);
|
|
651
641
|
}
|
|
652
|
-
return t.length >
|
|
642
|
+
return t.length > Ln ? `${t.slice(0, Ln)}…` : t;
|
|
653
643
|
};
|
|
654
|
-
function
|
|
644
|
+
function zn(e, t) {
|
|
655
645
|
let n = [];
|
|
656
646
|
for (let r in e) {
|
|
657
|
-
if (!
|
|
647
|
+
if (!In.call(e, r)) continue;
|
|
658
648
|
let i = e[r], a = encodeURIComponent(r), o;
|
|
659
|
-
o = typeof i == "object" ?
|
|
649
|
+
o = typeof i == "object" ? zn(i, t ? t + "[" + a + "]" : a) : (t ? t + "[" + a + "]" : a) + "=" + encodeURIComponent(i), n.push(o);
|
|
660
650
|
}
|
|
661
651
|
return n.join("&");
|
|
662
652
|
}
|
|
663
|
-
var
|
|
653
|
+
var Bn = (e) => {
|
|
664
654
|
let t = e["content-disposition"];
|
|
665
655
|
if (t) {
|
|
666
656
|
let e = t.match(/filename=(?<fileName>.+)/);
|
|
667
657
|
return e && e.groups && e.groups.fileName;
|
|
668
658
|
}
|
|
669
659
|
return "";
|
|
670
|
-
},
|
|
660
|
+
}, Vn = qe.create({
|
|
671
661
|
timeout: 3e5,
|
|
672
662
|
responseType: "json",
|
|
673
663
|
headers: { "Content-Type": "application/json" }
|
|
674
664
|
});
|
|
675
|
-
|
|
676
|
-
var
|
|
677
|
-
|
|
678
|
-
e.cancelToken =
|
|
665
|
+
Vn.defaults.timeout = 3e5;
|
|
666
|
+
var Hn = qe.CancelToken.source();
|
|
667
|
+
Vn.interceptors.request.use((e) => {
|
|
668
|
+
e.cancelToken = Hn.token, e.headers.Language = q.lang, e.headers.Platform = q.isMobile ? "mobile" : "pc";
|
|
679
669
|
let t = G("token", !1);
|
|
680
670
|
if (e.headers && t && (e.headers.token = t), e.method?.toLocaleUpperCase() === "GET") {
|
|
681
|
-
let t =
|
|
671
|
+
let t = zn(e.data);
|
|
682
672
|
t && (e.url = `${e.url}?${t}`);
|
|
683
673
|
}
|
|
684
674
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
685
|
-
}, (e) => Promise.reject(e)),
|
|
675
|
+
}, (e) => Promise.reject(e)), Vn.interceptors.response.use((e) => {
|
|
686
676
|
let t = e.data;
|
|
687
|
-
if (t.code === 401) return Dt("token"),
|
|
677
|
+
if (t.code === 401) return Dt("token"), Yt.replace("/login"), Promise.reject(!1);
|
|
688
678
|
if (e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
689
|
-
let t =
|
|
679
|
+
let t = Bn(e.headers);
|
|
690
680
|
return Promise.resolve({
|
|
691
681
|
fileName: decodeURIComponent(t),
|
|
692
682
|
data: e.data
|
|
@@ -698,8 +688,8 @@ Bn.interceptors.request.use((e) => {
|
|
|
698
688
|
}
|
|
699
689
|
{
|
|
700
690
|
Tt.destroyAll();
|
|
701
|
-
let n = t.message, r =
|
|
702
|
-
return
|
|
691
|
+
let n = t.message, r = Rn(e.config.data ?? e.config.params);
|
|
692
|
+
return Fn(3, e.config.url || location.href, `Fetch ${t.code ?? "error"}: ${n || "Unknown error"}${r ? ` | Params: ${r}` : ""}`), Tt.error({
|
|
703
693
|
content: n || K.global.t("Notice.error"),
|
|
704
694
|
duration: 3e3
|
|
705
695
|
}), Promise.reject(n);
|
|
@@ -711,73 +701,73 @@ Bn.interceptors.request.use((e) => {
|
|
|
711
701
|
content: K.global.t("Notice.error"),
|
|
712
702
|
duration: 3e3
|
|
713
703
|
}), Promise.reject(K.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(K.global.t("Notice.error")));
|
|
714
|
-
var
|
|
715
|
-
|
|
716
|
-
},
|
|
704
|
+
var Un = "/apiserver/", Wn = () => {
|
|
705
|
+
Hn.cancel(), Hn = qe.CancelToken.source();
|
|
706
|
+
}, Gn = (e, t, n = "json", r = 3e5) => {
|
|
717
707
|
let i = JSON.stringify({
|
|
718
708
|
fetchUri: e,
|
|
719
709
|
...t
|
|
720
710
|
});
|
|
721
|
-
if (
|
|
722
|
-
let a =
|
|
723
|
-
url: `${
|
|
711
|
+
if (J.has(i)) return J.get(i);
|
|
712
|
+
let a = Vn({
|
|
713
|
+
url: `${Un}${e}`,
|
|
724
714
|
method: "GET",
|
|
725
715
|
data: t,
|
|
726
716
|
responseType: n,
|
|
727
717
|
timeout: r
|
|
728
|
-
}).then((e) => (
|
|
729
|
-
|
|
718
|
+
}).then((e) => (J.delete(i), e)).catch(() => {
|
|
719
|
+
J.delete(i);
|
|
730
720
|
});
|
|
731
|
-
return
|
|
732
|
-
},
|
|
721
|
+
return J.set(i, a), a;
|
|
722
|
+
}, Y = (e, t = {}, n = "json", r = 3e5) => {
|
|
733
723
|
let i = JSON.stringify({
|
|
734
724
|
fetchUri: e,
|
|
735
725
|
...t
|
|
736
726
|
});
|
|
737
|
-
if (
|
|
738
|
-
let a =
|
|
739
|
-
url: `${
|
|
727
|
+
if (J.has(i)) return J.get(i);
|
|
728
|
+
let a = Vn({
|
|
729
|
+
url: `${Un}${e}`,
|
|
740
730
|
method: "POST",
|
|
741
731
|
data: t,
|
|
742
732
|
responseType: n,
|
|
743
733
|
timeout: r
|
|
744
|
-
}).then((e) => (
|
|
745
|
-
return
|
|
746
|
-
},
|
|
747
|
-
url: `${
|
|
734
|
+
}).then((e) => (J.delete(i), Promise.resolve(e))).catch((e) => (J.delete(i), Promise.reject(e)));
|
|
735
|
+
return J.set(i, a), a;
|
|
736
|
+
}, Kn = (e, t = {}, n = "blob", r = 3e5) => Vn({
|
|
737
|
+
url: `${Un}${e}`,
|
|
748
738
|
method: "POST",
|
|
749
739
|
data: t,
|
|
750
740
|
responseType: n,
|
|
751
741
|
timeout: r
|
|
752
|
-
}),
|
|
742
|
+
}), qn = (e) => Vn(e), Jn = (e, t) => Vn({
|
|
753
743
|
headers: { "Content-Type": "multipart/form-data" },
|
|
754
|
-
url: `${
|
|
744
|
+
url: `${Un}${e}`,
|
|
755
745
|
method: "POST",
|
|
756
746
|
data: t
|
|
757
|
-
}),
|
|
747
|
+
}), Yn = (e, t) => Y("dynamic-table/createTime", {
|
|
758
748
|
id: e,
|
|
759
749
|
createTime: t
|
|
760
|
-
}),
|
|
750
|
+
}), X = (e) => Y("table/query", e), Xn = (e) => Y("table/submit", e), Zn = (e) => Y("table/delete", e), Qn = (e) => Y("dataBind/query", { table_id: e }), $n = (e) => Y("dataBind/submit", e), er = (e, t, n) => Y("calculation/sqlExecute", {
|
|
761
751
|
calculationIds: e,
|
|
762
752
|
linkId: t,
|
|
763
753
|
...n
|
|
764
|
-
}), tr = (e) =>
|
|
754
|
+
}), tr = (e) => Kn("excel/template", { tableKey: e }, "arraybuffer"), nr = (e) => Y("excel/record/query", {
|
|
765
755
|
recordType: "import",
|
|
766
756
|
tableKey: e
|
|
767
|
-
}), rr = (e) =>
|
|
757
|
+
}), rr = (e) => Y("excel/exportData", e), ir = (e, t) => f(Re, { style: { "max-width": "300px" } }, {
|
|
768
758
|
trigger: () => e,
|
|
769
759
|
default: () => typeof t == "function" ? t() : t
|
|
770
760
|
}), ar = (e, t, n, r) => {
|
|
771
761
|
try {
|
|
772
762
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
773
763
|
n && n();
|
|
774
|
-
}, (e) =>
|
|
764
|
+
}, (e) => X({
|
|
775
765
|
id: e,
|
|
776
766
|
tableId: r
|
|
777
767
|
}), (e) => Xn({
|
|
778
768
|
tableId: r,
|
|
779
769
|
...e
|
|
780
|
-
}), Tt,
|
|
770
|
+
}), Tt, Y);
|
|
781
771
|
} catch (e) {
|
|
782
772
|
U(e);
|
|
783
773
|
}
|
|
@@ -1043,7 +1033,7 @@ var br = /*#__PURE__*/ Z(vr, [["render", yr]]), xr = d({
|
|
|
1043
1033
|
if (typeof t.form.updateValue == "string") try {
|
|
1044
1034
|
let o = t.form.updateValue, s = Function("value", "formValue", "mainFormValue", "index", "option", "POST", o);
|
|
1045
1035
|
try {
|
|
1046
|
-
let t = await s(n, a, r, e.itemIndex, i,
|
|
1036
|
+
let t = await s(n, a, r, e.itemIndex, i, Y);
|
|
1047
1037
|
t && typeof t == "object" && Object.keys(t).forEach((n) => {
|
|
1048
1038
|
e.formValue[n] = t[n];
|
|
1049
1039
|
});
|
|
@@ -1053,7 +1043,7 @@ var br = /*#__PURE__*/ Z(vr, [["render", yr]]), xr = d({
|
|
|
1053
1043
|
} catch (e) {
|
|
1054
1044
|
U(e);
|
|
1055
1045
|
}
|
|
1056
|
-
else t.form.updateValue(n, a, i,
|
|
1046
|
+
else t.form.updateValue(n, a, i, Y);
|
|
1057
1047
|
}
|
|
1058
1048
|
},
|
|
1059
1049
|
showPlaceholder: (e) => typeof e.params.placeholder == "function" ? e.params.placeholder() : e.params.placeholder ? e.params.placeholder : typeof e.label == "function" ? e.label() : e.label,
|
|
@@ -1668,7 +1658,7 @@ var wr = /*#__PURE__*/ Z(xr, [["render", Cr]]), Tr = d({
|
|
|
1668
1658
|
}
|
|
1669
1659
|
} else s.value[e.key] = e.form.defaultValue;
|
|
1670
1660
|
}
|
|
1671
|
-
if ((e.input === "cascader" || e.input === "select") && e.params.multiple && u.value.push(e.key), e.input === "date" && e.params.type.indexOf("range") > -1 && u.value.push(e.key), e.input === "select" && e.params.multiple && s.value[e.key] && typeof s.value[e.key] == "string") try {
|
|
1661
|
+
if ((e.input === "cascader" || e.input === "select") && e.params.multiple && u.value.push(e.key), e.input === "date" && e.params.type.indexOf("range") > -1 && u.value.push(e.key), e.input === "bom" && u.value.push(e.key), e.input === "select" && e.params.multiple && s.value[e.key] && typeof s.value[e.key] == "string") try {
|
|
1672
1662
|
s.value[e.key] = JSON.parse(s.value[e.key]);
|
|
1673
1663
|
} catch {
|
|
1674
1664
|
s.value[e.key] = [];
|
|
@@ -1756,8 +1746,8 @@ var wr = /*#__PURE__*/ Z(xr, [["render", Cr]]), Tr = d({
|
|
|
1756
1746
|
}
|
|
1757
1747
|
}), Er = ["onClick"];
|
|
1758
1748
|
function Dr(t, n, s, u, d, f) {
|
|
1759
|
-
let p = D("UzIcon"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("
|
|
1760
|
-
return x(), a(e, null, [l(
|
|
1749
|
+
let p = D("UzIcon"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("UzBom"), b = D("NDivider"), S = D("UzFormItem"), C = D("NFormItem"), w = D("NForm"), E = D("UzTableDrawer"), k = O("media");
|
|
1750
|
+
return x(), a(e, null, [l(w, {
|
|
1761
1751
|
ref: "formRef",
|
|
1762
1752
|
class: "uz-w-full uz-h-full",
|
|
1763
1753
|
model: t.formValue,
|
|
@@ -1766,7 +1756,7 @@ function Dr(t, n, s, u, d, f) {
|
|
|
1766
1756
|
labelAlign: t.labelAlign,
|
|
1767
1757
|
labelPlacement: t.labelPlacement
|
|
1768
1758
|
}, {
|
|
1769
|
-
default: N(() => [P((x(), a("div", { class: g(t.isMobile ? "" : "uz-form-grid") }, [(x(!0), a(e, null, T(t.formItems, (s, u) => (x(), a(e, { key: s.key }, [t.itemShow(s) ? (x(), r(
|
|
1759
|
+
default: N(() => [P((x(), a("div", { class: g(t.isMobile ? "" : "uz-form-grid") }, [(x(!0), a(e, null, T(t.formItems, (s, u) => (x(), a(e, { key: s.key }, [t.itemShow(s) ? (x(), r(C, {
|
|
1770
1760
|
key: 0,
|
|
1771
1761
|
path: s.key,
|
|
1772
1762
|
rule: s.input === "subTable" ? void 0 : s.form.rule?.required ? s.form.rule : void 0,
|
|
@@ -1808,14 +1798,18 @@ function Dr(t, n, s, u, d, f) {
|
|
|
1808
1798
|
key: 1,
|
|
1809
1799
|
formValue: t.formValue,
|
|
1810
1800
|
item: s
|
|
1811
|
-
}, null, 8, ["formValue", "item"])) : s.input === "
|
|
1801
|
+
}, null, 8, ["formValue", "item"])) : s.input === "bom" ? (x(), r(y, {
|
|
1812
1802
|
key: 2,
|
|
1803
|
+
value: t.formValue[`bom_${s.key}`],
|
|
1804
|
+
"onUpdate:value": (e) => t.formValue[`bom_${s.key}`] = e
|
|
1805
|
+
}, null, 8, ["value", "onUpdate:value"])) : s.input === "divider" ? (x(), r(b, {
|
|
1806
|
+
key: 3,
|
|
1813
1807
|
"title-placement": s.params.placement
|
|
1814
1808
|
}, {
|
|
1815
1809
|
default: N(() => [c(A(typeof s.label == "function" ? s.label() : s.label), 1)]),
|
|
1816
1810
|
_: 2
|
|
1817
|
-
}, 1032, ["title-placement"])) : (x(), r(
|
|
1818
|
-
key:
|
|
1811
|
+
}, 1032, ["title-placement"])) : (x(), r(S, {
|
|
1812
|
+
key: 4,
|
|
1819
1813
|
item: s,
|
|
1820
1814
|
formValue: t.formValue,
|
|
1821
1815
|
status: t.status
|
|
@@ -1831,7 +1825,7 @@ function Dr(t, n, s, u, d, f) {
|
|
|
1831
1825
|
"style",
|
|
1832
1826
|
"show-label",
|
|
1833
1827
|
"show-feedback"
|
|
1834
|
-
])) : i("", !0)], 64))), 128))], 2)), [[
|
|
1828
|
+
])) : i("", !0)], 64))), 128))], 2)), [[k]])]),
|
|
1835
1829
|
_: 1
|
|
1836
1830
|
}, 8, [
|
|
1837
1831
|
"model",
|
|
@@ -1839,7 +1833,7 @@ function Dr(t, n, s, u, d, f) {
|
|
|
1839
1833
|
"labelWidth",
|
|
1840
1834
|
"labelAlign",
|
|
1841
1835
|
"labelPlacement"
|
|
1842
|
-
]), l(
|
|
1836
|
+
]), l(E, {
|
|
1843
1837
|
ref: "drawerRef",
|
|
1844
1838
|
onOnSubmit: t.refreshOption
|
|
1845
1839
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
@@ -2171,7 +2165,7 @@ var Nr = /*#__PURE__*/ Z(kr, [["render", Mr]]), Pr = d({
|
|
|
2171
2165
|
}), r.value = !1, o();
|
|
2172
2166
|
else {
|
|
2173
2167
|
let s = new FormData();
|
|
2174
|
-
s.append("file", e.file.file), s.append("name", e.file.name),
|
|
2168
|
+
s.append("file", e.file.file), s.append("name", e.file.name), Jn("file/cos/upload", s).then((o) => {
|
|
2175
2169
|
i.value.push({
|
|
2176
2170
|
id: e.file.id,
|
|
2177
2171
|
name: e.file.name,
|
|
@@ -2204,11 +2198,8 @@ var Nr = /*#__PURE__*/ Z(kr, [["render", Mr]]), Pr = d({
|
|
|
2204
2198
|
i.value.splice(e, 1), a();
|
|
2205
2199
|
}, l = () => {
|
|
2206
2200
|
let t = H(e.value);
|
|
2207
|
-
if (!t)
|
|
2208
|
-
|
|
2209
|
-
return;
|
|
2210
|
-
}
|
|
2211
|
-
if (typeof t == "string") try {
|
|
2201
|
+
if (!t) i.value = [];
|
|
2202
|
+
else if (typeof t == "string") try {
|
|
2212
2203
|
t = rt.parse(t), i.value = t.map((e, t) => {
|
|
2213
2204
|
let n = decodeURIComponent(e), r = n.lastIndexOf("/"), i = n.substring(r + 1);
|
|
2214
2205
|
return {
|
|
@@ -2518,86 +2509,525 @@ function Jr(e, t = 1e3) {
|
|
|
2518
2509
|
};
|
|
2519
2510
|
}
|
|
2520
2511
|
//#endregion
|
|
2521
|
-
//#region components/bom/
|
|
2522
|
-
var Yr =
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
},
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2512
|
+
//#region components/bom/sortable.ts
|
|
2513
|
+
var Yr = (e, t) => e.map((e, n) => {
|
|
2514
|
+
let r = `${t}-${n + 1}`, i = Array.isArray(e.children) ? Yr(e.children, r) : e.children;
|
|
2515
|
+
return {
|
|
2516
|
+
...e,
|
|
2517
|
+
code: r,
|
|
2518
|
+
sort: n,
|
|
2519
|
+
children: i
|
|
2520
|
+
};
|
|
2521
|
+
}), Xr = (e, t) => {
|
|
2522
|
+
let n = new Map(e.map((e) => [e.code, e])), r = new Set(t);
|
|
2523
|
+
return [...t.flatMap((e) => {
|
|
2524
|
+
let t = n.get(e);
|
|
2525
|
+
return t ? [t] : [];
|
|
2526
|
+
}), ...e.filter((e) => !r.has(e.code))].map((e, t) => ({
|
|
2527
|
+
...e,
|
|
2528
|
+
sort: t
|
|
2529
|
+
}));
|
|
2530
|
+
}, Zr = (e, t, n) => t ? e.map((e) => e.code === t ? {
|
|
2531
|
+
...e,
|
|
2532
|
+
children: Yr(Xr(e.children ?? [], n), e.code)
|
|
2533
|
+
} : Array.isArray(e.children) ? {
|
|
2534
|
+
...e,
|
|
2535
|
+
children: Zr(e.children, t, n)
|
|
2536
|
+
} : e) : Xr(e, n), Qr = (e, t) => {
|
|
2537
|
+
let r = w(null), i = w(0), a = w(null), o = n(() => {
|
|
2538
|
+
let t = /* @__PURE__ */ new Map(), n = (e, r = "") => {
|
|
2539
|
+
e.forEach((e) => {
|
|
2540
|
+
t.set(e.code, r), Array.isArray(e.children) && n(e.children, e.code);
|
|
2541
|
+
});
|
|
2542
|
+
};
|
|
2543
|
+
return n(e.value), t;
|
|
2544
|
+
}), s = async () => {
|
|
2545
|
+
await h();
|
|
2546
|
+
let n = r.value?.$el?.querySelector(".n-data-table-tbody");
|
|
2547
|
+
n && a.value?.el !== n && (a.value?.destroy(), a.value = it.create(n, {
|
|
2548
|
+
animation: 150,
|
|
2549
|
+
handle: ".uz-bom-drag-handle",
|
|
2550
|
+
onMove: ({ dragged: e, related: t }) => {
|
|
2551
|
+
let n = e.dataset.parentKey;
|
|
2552
|
+
return !!(n && n === t.dataset.parentKey);
|
|
2553
|
+
},
|
|
2554
|
+
onEnd: ({ item: r }) => {
|
|
2555
|
+
let o = r.dataset.parentKey ?? "", s = Array.from(n.children).flatMap((e) => {
|
|
2556
|
+
let t = e, n = t.dataset.rowKey;
|
|
2557
|
+
return t.dataset.parentKey === o && n ? [n] : [];
|
|
2558
|
+
});
|
|
2559
|
+
a.value?.destroy(), a.value = null, i.value += 1, t(Zr(e.value, o, s));
|
|
2560
|
+
}
|
|
2561
|
+
}));
|
|
2562
|
+
};
|
|
2563
|
+
return y(s), j(e, s), v(() => a.value?.destroy()), {
|
|
2564
|
+
dragColumn: {
|
|
2565
|
+
title: "",
|
|
2566
|
+
key: "drag",
|
|
2567
|
+
width: 40,
|
|
2568
|
+
fixed: "left",
|
|
2569
|
+
align: "center",
|
|
2570
|
+
render: (e) => o.value.get(e.code) ? f("span", {
|
|
2571
|
+
class: "uz-bom-drag-handle uz-cursor-pointer uz-select-none",
|
|
2572
|
+
"aria-label": "拖拽排序"
|
|
2573
|
+
}, "⠿") : null
|
|
2574
|
+
},
|
|
2575
|
+
getSortableRowProps: (e) => ({
|
|
2576
|
+
"data-row-key": e.code,
|
|
2577
|
+
"data-parent-key": o.value.get(e.code) ?? ""
|
|
2578
|
+
}),
|
|
2579
|
+
tableRef: r,
|
|
2580
|
+
tableVersion: i
|
|
2581
|
+
};
|
|
2582
|
+
}, $r = (e, t) => e.map((e) => ({
|
|
2583
|
+
label: String(e[`${t}_name`] || e[`${t}_no`] || ""),
|
|
2584
|
+
value: e.id
|
|
2585
|
+
})), ei = (e) => $r(e, "operation"), ti = (e) => $r(e, "unit"), ni = (e, t) => [{
|
|
2586
|
+
label: "产品",
|
|
2587
|
+
key: "product",
|
|
2588
|
+
rows: e
|
|
2589
|
+
}, {
|
|
2590
|
+
label: "物料",
|
|
2591
|
+
key: "material",
|
|
2592
|
+
rows: t
|
|
2593
|
+
}].map(({ label: e, key: t, rows: n }) => ({
|
|
2594
|
+
type: "group",
|
|
2595
|
+
label: e,
|
|
2596
|
+
key: t,
|
|
2597
|
+
children: n.map((e) => {
|
|
2598
|
+
let t = e.product_no ?? e.material_no, n = e.product_name ?? e.material_name ?? e.name;
|
|
2599
|
+
return {
|
|
2600
|
+
label: n ? `${t}-${n}` : String(t),
|
|
2601
|
+
value: t,
|
|
2602
|
+
params: e
|
|
2603
|
+
};
|
|
2604
|
+
})
|
|
2605
|
+
})), ri = [
|
|
2547
2606
|
{
|
|
2548
|
-
|
|
2549
|
-
key: "product_name",
|
|
2607
|
+
input: "input",
|
|
2550
2608
|
width: 200,
|
|
2551
|
-
|
|
2609
|
+
label: "编码",
|
|
2610
|
+
key: "code",
|
|
2611
|
+
source: "",
|
|
2612
|
+
sourceFn: "",
|
|
2613
|
+
params: {
|
|
2614
|
+
placeholder: "编码",
|
|
2615
|
+
clearable: !1,
|
|
2616
|
+
type: "text"
|
|
2617
|
+
},
|
|
2618
|
+
form: {
|
|
2619
|
+
span: 24,
|
|
2620
|
+
show: !0,
|
|
2621
|
+
disabled: !1,
|
|
2622
|
+
readonly: !0,
|
|
2623
|
+
updateValue: "",
|
|
2624
|
+
display: "",
|
|
2625
|
+
readonlyFn: "",
|
|
2626
|
+
disabledFn: "",
|
|
2627
|
+
createButton: !1,
|
|
2628
|
+
showDays: !1,
|
|
2629
|
+
backfill: !1,
|
|
2630
|
+
rule: {
|
|
2631
|
+
required: !1,
|
|
2632
|
+
type: "string",
|
|
2633
|
+
message: "必填",
|
|
2634
|
+
trigger: "change",
|
|
2635
|
+
validator: ""
|
|
2636
|
+
},
|
|
2637
|
+
create: {
|
|
2638
|
+
show: !0,
|
|
2639
|
+
disabled: !1,
|
|
2640
|
+
readonly: !0
|
|
2641
|
+
},
|
|
2642
|
+
edit: {
|
|
2643
|
+
show: !0,
|
|
2644
|
+
disabled: !1,
|
|
2645
|
+
readonly: !0
|
|
2646
|
+
},
|
|
2647
|
+
expand: {
|
|
2648
|
+
show: !0,
|
|
2649
|
+
disabled: !1,
|
|
2650
|
+
readonly: !0
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2552
2653
|
},
|
|
2553
2654
|
{
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
width:
|
|
2557
|
-
|
|
2655
|
+
input: "select",
|
|
2656
|
+
label: "物料",
|
|
2657
|
+
width: 150,
|
|
2658
|
+
key: "product_no",
|
|
2659
|
+
source: "",
|
|
2660
|
+
sourceFn: "",
|
|
2661
|
+
params: {
|
|
2662
|
+
immediately: !1,
|
|
2663
|
+
placeholder: "物料",
|
|
2664
|
+
clearable: !0,
|
|
2665
|
+
options: []
|
|
2666
|
+
},
|
|
2667
|
+
form: {
|
|
2668
|
+
span: 24,
|
|
2669
|
+
show: !0,
|
|
2670
|
+
disabled: !1,
|
|
2671
|
+
readonly: !1,
|
|
2672
|
+
updateValue: "\n const source = (option && option.params) || {}\n return {\n product_name: source.product_name ?? source.material_name ?? '',\n unit: source.unit ?? '',\n operation_no: source.operation_no ?? ''\n }\n",
|
|
2673
|
+
display: "",
|
|
2674
|
+
readonlyFn: "",
|
|
2675
|
+
disabledFn: "",
|
|
2676
|
+
createButton: !1,
|
|
2677
|
+
showDays: !1,
|
|
2678
|
+
backfill: !1,
|
|
2679
|
+
rule: {
|
|
2680
|
+
required: !1,
|
|
2681
|
+
type: "string",
|
|
2682
|
+
message: "必填",
|
|
2683
|
+
trigger: "change",
|
|
2684
|
+
validator: ""
|
|
2685
|
+
},
|
|
2686
|
+
create: {
|
|
2687
|
+
show: !0,
|
|
2688
|
+
disabled: !1,
|
|
2689
|
+
readonly: !1
|
|
2690
|
+
},
|
|
2691
|
+
edit: {
|
|
2692
|
+
show: !0,
|
|
2693
|
+
disabled: !1,
|
|
2694
|
+
readonly: !1
|
|
2695
|
+
},
|
|
2696
|
+
expand: {
|
|
2697
|
+
show: !0,
|
|
2698
|
+
disabled: !1,
|
|
2699
|
+
readonly: !1
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2558
2702
|
},
|
|
2559
2703
|
{
|
|
2560
|
-
|
|
2704
|
+
input: "select",
|
|
2705
|
+
label: "单位",
|
|
2561
2706
|
key: "unit",
|
|
2562
|
-
|
|
2707
|
+
source: "",
|
|
2708
|
+
sourceFn: "",
|
|
2709
|
+
params: {
|
|
2710
|
+
immediately: !1,
|
|
2711
|
+
placeholder: "单位",
|
|
2712
|
+
clearable: !0,
|
|
2713
|
+
options: []
|
|
2714
|
+
},
|
|
2715
|
+
form: {
|
|
2716
|
+
span: 24,
|
|
2717
|
+
show: !0,
|
|
2718
|
+
disabled: !1,
|
|
2719
|
+
readonly: !1,
|
|
2720
|
+
updateValue: "",
|
|
2721
|
+
display: "",
|
|
2722
|
+
readonlyFn: "",
|
|
2723
|
+
disabledFn: "",
|
|
2724
|
+
createButton: !1,
|
|
2725
|
+
showDays: !1,
|
|
2726
|
+
backfill: !1,
|
|
2727
|
+
rule: {
|
|
2728
|
+
required: !1,
|
|
2729
|
+
type: "string",
|
|
2730
|
+
message: "必填",
|
|
2731
|
+
trigger: "change",
|
|
2732
|
+
validator: ""
|
|
2733
|
+
},
|
|
2734
|
+
create: {
|
|
2735
|
+
show: !0,
|
|
2736
|
+
disabled: !1,
|
|
2737
|
+
readonly: !1
|
|
2738
|
+
},
|
|
2739
|
+
edit: {
|
|
2740
|
+
show: !0,
|
|
2741
|
+
disabled: !1,
|
|
2742
|
+
readonly: !1
|
|
2743
|
+
},
|
|
2744
|
+
expand: {
|
|
2745
|
+
show: !0,
|
|
2746
|
+
disabled: !1,
|
|
2747
|
+
readonly: !1
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2563
2750
|
},
|
|
2564
2751
|
{
|
|
2565
|
-
|
|
2752
|
+
input: "select",
|
|
2753
|
+
label: "工序",
|
|
2754
|
+
width: 200,
|
|
2566
2755
|
key: "operation_no",
|
|
2567
|
-
|
|
2568
|
-
|
|
2756
|
+
source: "",
|
|
2757
|
+
sourceFn: "",
|
|
2758
|
+
params: {
|
|
2759
|
+
immediately: !1,
|
|
2760
|
+
placeholder: "工序",
|
|
2761
|
+
clearable: !0,
|
|
2762
|
+
options: []
|
|
2763
|
+
},
|
|
2764
|
+
form: {
|
|
2765
|
+
span: 24,
|
|
2766
|
+
show: !0,
|
|
2767
|
+
disabled: !1,
|
|
2768
|
+
readonly: !1,
|
|
2769
|
+
updateValue: "",
|
|
2770
|
+
display: "",
|
|
2771
|
+
readonlyFn: "",
|
|
2772
|
+
disabledFn: "",
|
|
2773
|
+
createButton: !1,
|
|
2774
|
+
showDays: !1,
|
|
2775
|
+
backfill: !1,
|
|
2776
|
+
rule: {
|
|
2777
|
+
required: !1,
|
|
2778
|
+
type: "string",
|
|
2779
|
+
message: "必填",
|
|
2780
|
+
trigger: "change",
|
|
2781
|
+
validator: ""
|
|
2782
|
+
},
|
|
2783
|
+
create: {
|
|
2784
|
+
show: !0,
|
|
2785
|
+
disabled: !1,
|
|
2786
|
+
readonly: !1
|
|
2787
|
+
},
|
|
2788
|
+
edit: {
|
|
2789
|
+
show: !0,
|
|
2790
|
+
disabled: !1,
|
|
2791
|
+
readonly: !1
|
|
2792
|
+
},
|
|
2793
|
+
expand: {
|
|
2794
|
+
show: !0,
|
|
2795
|
+
disabled: !1,
|
|
2796
|
+
readonly: !1
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2569
2799
|
},
|
|
2570
2800
|
{
|
|
2571
|
-
|
|
2801
|
+
input: "number",
|
|
2802
|
+
label: "用量",
|
|
2572
2803
|
key: "quantity",
|
|
2573
|
-
|
|
2804
|
+
source: "",
|
|
2805
|
+
sourceFn: "",
|
|
2806
|
+
params: {
|
|
2807
|
+
placeholder: "用量",
|
|
2808
|
+
clearable: !0,
|
|
2809
|
+
showButton: !1
|
|
2810
|
+
},
|
|
2811
|
+
form: {
|
|
2812
|
+
span: 24,
|
|
2813
|
+
show: !0,
|
|
2814
|
+
disabled: !1,
|
|
2815
|
+
readonly: !1,
|
|
2816
|
+
updateValue: "",
|
|
2817
|
+
display: "",
|
|
2818
|
+
readonlyFn: "",
|
|
2819
|
+
disabledFn: "",
|
|
2820
|
+
createButton: !1,
|
|
2821
|
+
showDays: !1,
|
|
2822
|
+
backfill: !1,
|
|
2823
|
+
rule: {
|
|
2824
|
+
required: !1,
|
|
2825
|
+
type: "number",
|
|
2826
|
+
message: "必填",
|
|
2827
|
+
trigger: "change",
|
|
2828
|
+
validator: ""
|
|
2829
|
+
},
|
|
2830
|
+
create: {
|
|
2831
|
+
show: !0,
|
|
2832
|
+
disabled: !1,
|
|
2833
|
+
readonly: !1
|
|
2834
|
+
},
|
|
2835
|
+
edit: {
|
|
2836
|
+
show: !0,
|
|
2837
|
+
disabled: !1,
|
|
2838
|
+
readonly: !1
|
|
2839
|
+
},
|
|
2840
|
+
expand: {
|
|
2841
|
+
show: !0,
|
|
2842
|
+
disabled: !1,
|
|
2843
|
+
readonly: !1
|
|
2844
|
+
}
|
|
2845
|
+
}
|
|
2574
2846
|
},
|
|
2575
2847
|
{
|
|
2576
|
-
|
|
2848
|
+
input: "input",
|
|
2849
|
+
label: "损耗率",
|
|
2577
2850
|
key: "lossRate",
|
|
2578
|
-
|
|
2851
|
+
source: "",
|
|
2852
|
+
sourceFn: "",
|
|
2853
|
+
params: {
|
|
2854
|
+
placeholder: "损耗率",
|
|
2855
|
+
clearable: !0,
|
|
2856
|
+
type: "text"
|
|
2857
|
+
},
|
|
2858
|
+
form: {
|
|
2859
|
+
span: 24,
|
|
2860
|
+
show: !0,
|
|
2861
|
+
disabled: !1,
|
|
2862
|
+
readonly: !1,
|
|
2863
|
+
updateValue: "",
|
|
2864
|
+
display: "",
|
|
2865
|
+
readonlyFn: "",
|
|
2866
|
+
disabledFn: "",
|
|
2867
|
+
createButton: !1,
|
|
2868
|
+
showDays: !1,
|
|
2869
|
+
backfill: !1,
|
|
2870
|
+
rule: {
|
|
2871
|
+
required: !1,
|
|
2872
|
+
type: "string",
|
|
2873
|
+
message: "必填",
|
|
2874
|
+
trigger: "change",
|
|
2875
|
+
validator: ""
|
|
2876
|
+
},
|
|
2877
|
+
create: {
|
|
2878
|
+
show: !0,
|
|
2879
|
+
disabled: !1,
|
|
2880
|
+
readonly: !1
|
|
2881
|
+
},
|
|
2882
|
+
edit: {
|
|
2883
|
+
show: !0,
|
|
2884
|
+
disabled: !1,
|
|
2885
|
+
readonly: !1
|
|
2886
|
+
},
|
|
2887
|
+
expand: {
|
|
2888
|
+
show: !0,
|
|
2889
|
+
disabled: !1,
|
|
2890
|
+
readonly: !1
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2579
2893
|
},
|
|
2580
2894
|
{
|
|
2581
|
-
|
|
2895
|
+
input: "number",
|
|
2896
|
+
label: "含损耗用量",
|
|
2582
2897
|
key: "required_quantity",
|
|
2583
|
-
|
|
2584
|
-
|
|
2898
|
+
source: "",
|
|
2899
|
+
sourceFn: "",
|
|
2900
|
+
params: {
|
|
2901
|
+
placeholder: "含损耗用量",
|
|
2902
|
+
clearable: !1,
|
|
2903
|
+
showButton: !1
|
|
2904
|
+
},
|
|
2905
|
+
form: {
|
|
2906
|
+
span: 24,
|
|
2907
|
+
show: !0,
|
|
2908
|
+
disabled: !1,
|
|
2909
|
+
readonly: !0,
|
|
2910
|
+
updateValue: "",
|
|
2911
|
+
display: "",
|
|
2912
|
+
readonlyFn: "",
|
|
2913
|
+
disabledFn: "",
|
|
2914
|
+
createButton: !1,
|
|
2915
|
+
showDays: !1,
|
|
2916
|
+
backfill: !1,
|
|
2917
|
+
rule: {
|
|
2918
|
+
required: !1,
|
|
2919
|
+
type: "number",
|
|
2920
|
+
message: "必填",
|
|
2921
|
+
trigger: "change",
|
|
2922
|
+
validator: ""
|
|
2923
|
+
},
|
|
2924
|
+
create: {
|
|
2925
|
+
show: !0,
|
|
2926
|
+
disabled: !1,
|
|
2927
|
+
readonly: !0
|
|
2928
|
+
},
|
|
2929
|
+
edit: {
|
|
2930
|
+
show: !0,
|
|
2931
|
+
disabled: !1,
|
|
2932
|
+
readonly: !0
|
|
2933
|
+
},
|
|
2934
|
+
expand: {
|
|
2935
|
+
show: !0,
|
|
2936
|
+
disabled: !1,
|
|
2937
|
+
readonly: !0
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2585
2940
|
},
|
|
2586
2941
|
{
|
|
2587
|
-
|
|
2942
|
+
input: "input",
|
|
2943
|
+
width: 300,
|
|
2944
|
+
label: "备注",
|
|
2588
2945
|
key: "remark",
|
|
2589
|
-
|
|
2590
|
-
|
|
2946
|
+
source: "",
|
|
2947
|
+
sourceFn: "",
|
|
2948
|
+
params: {
|
|
2949
|
+
placeholder: "备注",
|
|
2950
|
+
clearable: !0,
|
|
2951
|
+
type: "text"
|
|
2952
|
+
},
|
|
2953
|
+
form: {
|
|
2954
|
+
span: 24,
|
|
2955
|
+
show: !0,
|
|
2956
|
+
disabled: !1,
|
|
2957
|
+
readonly: !1,
|
|
2958
|
+
updateValue: "",
|
|
2959
|
+
display: "",
|
|
2960
|
+
readonlyFn: "",
|
|
2961
|
+
disabledFn: "",
|
|
2962
|
+
createButton: !1,
|
|
2963
|
+
showDays: !1,
|
|
2964
|
+
backfill: !1,
|
|
2965
|
+
rule: {
|
|
2966
|
+
required: !1,
|
|
2967
|
+
type: "string",
|
|
2968
|
+
message: "必填",
|
|
2969
|
+
trigger: "change",
|
|
2970
|
+
validator: ""
|
|
2971
|
+
},
|
|
2972
|
+
create: {
|
|
2973
|
+
show: !0,
|
|
2974
|
+
disabled: !1,
|
|
2975
|
+
readonly: !1
|
|
2976
|
+
},
|
|
2977
|
+
edit: {
|
|
2978
|
+
show: !0,
|
|
2979
|
+
disabled: !1,
|
|
2980
|
+
readonly: !1
|
|
2981
|
+
},
|
|
2982
|
+
expand: {
|
|
2983
|
+
show: !0,
|
|
2984
|
+
disabled: !1,
|
|
2985
|
+
readonly: !1
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2591
2988
|
}
|
|
2592
|
-
],
|
|
2989
|
+
], ii = () => Promise.all([
|
|
2990
|
+
X({ tableId: "product" }),
|
|
2991
|
+
X({ tableId: "material" }),
|
|
2992
|
+
X({ tableId: "operation" }),
|
|
2993
|
+
X({ tableId: "unit" })
|
|
2994
|
+
]).then(([e, t, n, r]) => {
|
|
2995
|
+
ri[1].params.options = ni(e, t), ri[2].params.options = ti(r), ri[3].params.options = ei(n);
|
|
2996
|
+
}).catch((e) => {
|
|
2997
|
+
U(e);
|
|
2998
|
+
}), ai = (e) => {
|
|
2999
|
+
if (e == null || e === "") return null;
|
|
3000
|
+
if (typeof e == "string") {
|
|
3001
|
+
let t = Number.parseFloat(e);
|
|
3002
|
+
return Number.isFinite(t) ? t : null;
|
|
3003
|
+
}
|
|
3004
|
+
return Number.isFinite(e) ? e : null;
|
|
3005
|
+
}, oi = (e) => {
|
|
3006
|
+
let t = Number(e.quantity), n = ai(e.lossRate);
|
|
3007
|
+
return !Number.isFinite(t) || n === null || n < 0 ? null : Math.ceil(t * (1 + n / 100));
|
|
3008
|
+
}, si = (e) => e.key ?? e.code, ci = (e, t, n) => {
|
|
3009
|
+
let r = e.findIndex((e) => si(e) === t);
|
|
3010
|
+
return r >= 0 ? [
|
|
3011
|
+
...e.slice(0, r + 1),
|
|
3012
|
+
{
|
|
3013
|
+
...n,
|
|
3014
|
+
sort: r + 1
|
|
3015
|
+
},
|
|
3016
|
+
...e.slice(r + 1)
|
|
3017
|
+
] : e.map((e) => Array.isArray(e.children) ? {
|
|
3018
|
+
...e,
|
|
3019
|
+
children: ci(e.children, t, n)
|
|
3020
|
+
} : e);
|
|
3021
|
+
}, li = [
|
|
3022
|
+
"var(--primary)",
|
|
3023
|
+
"var(--green)",
|
|
3024
|
+
"var(--yellow)",
|
|
3025
|
+
"var(--purple)"
|
|
3026
|
+
], ui = d({
|
|
2593
3027
|
name: "UzBom",
|
|
2594
3028
|
components: { NDataTable: se },
|
|
2595
3029
|
props: {
|
|
2596
|
-
|
|
2597
|
-
type: Array,
|
|
2598
|
-
default: () => []
|
|
2599
|
-
},
|
|
2600
|
-
extendTable: {
|
|
3030
|
+
value: {
|
|
2601
3031
|
type: Array,
|
|
2602
3032
|
default: () => []
|
|
2603
3033
|
},
|
|
@@ -2606,19 +3036,27 @@ var Yr = [
|
|
|
2606
3036
|
default: void 0
|
|
2607
3037
|
}
|
|
2608
3038
|
},
|
|
2609
|
-
|
|
2610
|
-
|
|
3039
|
+
emits: ["update:value"],
|
|
3040
|
+
setup(e, { emit: t }) {
|
|
3041
|
+
let r = (e, t, n) => n ? `${n}-${t + 1}` : String(e.product_no || e.code || t + 1), i = (e, t = 1, n) => e.map((e, t) => ({
|
|
3042
|
+
row: e,
|
|
3043
|
+
index: t
|
|
3044
|
+
})).sort((e, t) => (Number.isFinite(e.row.sort) ? e.row.sort : e.index) - (Number.isFinite(t.row.sort) ? t.row.sort : t.index)).map(({ row: e }, a) => {
|
|
2611
3045
|
let o = r(e, a, n), s = e.children;
|
|
2612
3046
|
return {
|
|
2613
3047
|
...e,
|
|
3048
|
+
key: si(e),
|
|
2614
3049
|
level: t,
|
|
2615
3050
|
code: o,
|
|
3051
|
+
sort: a,
|
|
2616
3052
|
...Array.isArray(s) ? { children: i(s, t + 1, o) } : {}
|
|
2617
3053
|
};
|
|
2618
|
-
}), a = w(i(e.
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
3054
|
+
}), a = w(i(e.value)), o = w([]), s = !1, c = 1, l = si, u = (e, t = 1, n) => {
|
|
3055
|
+
e.forEach((e, i) => {
|
|
3056
|
+
let a = e.code, o = r(e, i, n);
|
|
3057
|
+
e.level !== t && (e.level = t), a !== o && (e.code = o), Array.isArray(e.children) && u(e.children, t + 1, o);
|
|
3058
|
+
});
|
|
3059
|
+
}, d = (e) => {
|
|
2622
3060
|
let t = [];
|
|
2623
3061
|
return e.forEach((e) => {
|
|
2624
3062
|
let n = e.children;
|
|
@@ -2626,24 +3064,31 @@ var Yr = [
|
|
|
2626
3064
|
}), t;
|
|
2627
3065
|
}, p = (e) => {
|
|
2628
3066
|
o.value = e, s = !0;
|
|
2629
|
-
}, m = (
|
|
2630
|
-
let
|
|
3067
|
+
}, m = () => {
|
|
3068
|
+
let e = d(a.value);
|
|
2631
3069
|
if (!s) {
|
|
2632
3070
|
if (!a.value.length) return;
|
|
2633
|
-
o.value =
|
|
3071
|
+
o.value = e, s = !0;
|
|
2634
3072
|
return;
|
|
2635
3073
|
}
|
|
2636
|
-
let
|
|
2637
|
-
(
|
|
2638
|
-
}, { run: h, flush: g, cancel: _ } = Jr(() =>
|
|
2639
|
-
|
|
3074
|
+
let t = new Set(e), n = o.value.filter((e) => t.has(e));
|
|
3075
|
+
(n.length !== o.value.length || n.some((e, t) => e !== o.value[t])) && (o.value = n);
|
|
3076
|
+
}, { run: h, flush: g, cancel: _ } = Jr(() => {
|
|
3077
|
+
u(a.value), m();
|
|
3078
|
+
}, 200), b = /* @__PURE__ */ new WeakMap(), x = (e) => {
|
|
3079
|
+
let t = b.get(e);
|
|
2640
3080
|
if (t) return t;
|
|
2641
|
-
let n = new Proxy(e, {
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
3081
|
+
let n = new Proxy(e, {
|
|
3082
|
+
get(e, t, n) {
|
|
3083
|
+
return t === "required_quantity" ? oi(e) : Reflect.get(e, t, n);
|
|
3084
|
+
},
|
|
3085
|
+
set(e, t, n) {
|
|
3086
|
+
let r = Reflect.get(e, t) !== n, i = Reflect.set(e, t, n);
|
|
3087
|
+
return r && t === "product_no" && h(), i;
|
|
3088
|
+
}
|
|
3089
|
+
});
|
|
3090
|
+
return b.set(e, n), n;
|
|
3091
|
+
}, S = () => {
|
|
2647
3092
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
2648
3093
|
n.forEach((n) => {
|
|
2649
3094
|
e.add(l(n));
|
|
@@ -2660,6 +3105,7 @@ var Yr = [
|
|
|
2660
3105
|
key: n,
|
|
2661
3106
|
level: 1,
|
|
2662
3107
|
code: n,
|
|
3108
|
+
sort: 0,
|
|
2663
3109
|
product_no: n,
|
|
2664
3110
|
product_name: "新增零件",
|
|
2665
3111
|
product_specifications: "待填写",
|
|
@@ -2669,17 +3115,19 @@ var Yr = [
|
|
|
2669
3115
|
lossRate: "2%",
|
|
2670
3116
|
remark: "零件"
|
|
2671
3117
|
};
|
|
2672
|
-
}, S = (e) => {
|
|
2673
|
-
let t = i(e);
|
|
2674
|
-
a.value = t;
|
|
2675
3118
|
}, C = (e) => {
|
|
3119
|
+
a.value = i(e), m(), t("update:value", a.value);
|
|
3120
|
+
}, { dragColumn: T, getSortableRowProps: E, tableRef: D, tableVersion: O } = Qr(a, C), k = (e) => {
|
|
2676
3121
|
let t = l(e), n = !1, r = (e) => e.map((e) => {
|
|
2677
3122
|
if (l(e) === t) {
|
|
2678
3123
|
n = !0;
|
|
2679
3124
|
let t = e.children, r = Array.isArray(t) ? t : [];
|
|
2680
3125
|
return {
|
|
2681
3126
|
...e,
|
|
2682
|
-
children: [...r,
|
|
3127
|
+
children: [...r, {
|
|
3128
|
+
...S(),
|
|
3129
|
+
sort: r.length
|
|
3130
|
+
}]
|
|
2683
3131
|
};
|
|
2684
3132
|
}
|
|
2685
3133
|
let i = e.children;
|
|
@@ -2688,8 +3136,10 @@ var Yr = [
|
|
|
2688
3136
|
children: r(i)
|
|
2689
3137
|
} : e;
|
|
2690
3138
|
});
|
|
2691
|
-
|
|
2692
|
-
},
|
|
3139
|
+
C(r(a.value)), n && !o.value.includes(t) && p([...o.value, t]);
|
|
3140
|
+
}, A = (e) => {
|
|
3141
|
+
C(ci(a.value, l(e), S()));
|
|
3142
|
+
}, ee = (e) => {
|
|
2693
3143
|
let t = l(e), n = (e) => e.reduce((e, r) => {
|
|
2694
3144
|
if (l(r) === t) return e;
|
|
2695
3145
|
let i = r.children;
|
|
@@ -2698,8 +3148,8 @@ var Yr = [
|
|
|
2698
3148
|
children: n(i)
|
|
2699
3149
|
} : r), e;
|
|
2700
3150
|
}, []);
|
|
2701
|
-
|
|
2702
|
-
},
|
|
3151
|
+
C(n(a.value));
|
|
3152
|
+
}, te = {
|
|
2703
3153
|
title: () => f(fe, {
|
|
2704
3154
|
trigger: "click",
|
|
2705
3155
|
options: [{
|
|
@@ -2722,10 +3172,10 @@ var Yr = [
|
|
|
2722
3172
|
fixed: "left",
|
|
2723
3173
|
tree: !0,
|
|
2724
3174
|
ellipsis: { tooltip: !0 }
|
|
2725
|
-
},
|
|
3175
|
+
}, M = {
|
|
2726
3176
|
title: "操作",
|
|
2727
3177
|
key: "actions",
|
|
2728
|
-
width:
|
|
3178
|
+
width: 240,
|
|
2729
3179
|
fixed: "right",
|
|
2730
3180
|
align: "center",
|
|
2731
3181
|
titleAlign: "center",
|
|
@@ -2733,80 +3183,88 @@ var Yr = [
|
|
|
2733
3183
|
render: (e) => lr({
|
|
2734
3184
|
buttons: [{
|
|
2735
3185
|
type: "normal",
|
|
2736
|
-
key: "add",
|
|
3186
|
+
key: "add-child",
|
|
2737
3187
|
color: "primary",
|
|
2738
|
-
buttonText: "
|
|
2739
|
-
onClick: (e) =>
|
|
3188
|
+
buttonText: "新增下级",
|
|
3189
|
+
onClick: (e) => k(e)
|
|
3190
|
+
}, ...Number(e.level) === 1 ? [] : [{
|
|
3191
|
+
type: "normal",
|
|
3192
|
+
key: "add-sibling",
|
|
3193
|
+
color: "primary",
|
|
3194
|
+
buttonText: "新增同级",
|
|
3195
|
+
onClick: (e) => A(e)
|
|
2740
3196
|
}, {
|
|
2741
3197
|
type: "normal",
|
|
2742
3198
|
key: "delete",
|
|
2743
3199
|
color: "error",
|
|
2744
3200
|
buttonText: "删除",
|
|
2745
3201
|
confirmText: "确认删除该物料及其所有下级吗?",
|
|
2746
|
-
onClick: (e) =>
|
|
2747
|
-
}],
|
|
3202
|
+
onClick: (e) => ee(e)
|
|
3203
|
+
}]],
|
|
2748
3204
|
rowData: e,
|
|
2749
3205
|
hProps: {
|
|
2750
3206
|
size: "small",
|
|
2751
3207
|
secondary: !0
|
|
2752
3208
|
}
|
|
2753
3209
|
})
|
|
2754
|
-
},
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
itemIndex: n
|
|
2767
|
-
})
|
|
2768
|
-
}))), k = n(() => {
|
|
2769
|
-
let [e, ...t] = $r;
|
|
3210
|
+
}, N = n(() => {
|
|
3211
|
+
let e = ri.map((e) => ({
|
|
3212
|
+
title: e.label,
|
|
3213
|
+
key: e.key,
|
|
3214
|
+
width: e.width ?? 120,
|
|
3215
|
+
render: (t, n) => f(wr, {
|
|
3216
|
+
item: e,
|
|
3217
|
+
formValue: x(t),
|
|
3218
|
+
status: 1,
|
|
3219
|
+
itemIndex: n
|
|
3220
|
+
})
|
|
3221
|
+
}));
|
|
2770
3222
|
return [
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
...
|
|
2774
|
-
|
|
2775
|
-
D
|
|
3223
|
+
T,
|
|
3224
|
+
te,
|
|
3225
|
+
...e,
|
|
3226
|
+
M
|
|
2776
3227
|
];
|
|
2777
|
-
}),
|
|
3228
|
+
}), P = n(() => N.value.reduce((e, t) => {
|
|
2778
3229
|
let n = "width" in t ? Number(t.width) : 0;
|
|
2779
3230
|
return e + (Number.isFinite(n) ? n : 0);
|
|
2780
|
-
}, 0)),
|
|
3231
|
+
}, 0)), ne = (e) => {
|
|
2781
3232
|
p(e);
|
|
2782
|
-
},
|
|
3233
|
+
}, F = (e) => {
|
|
2783
3234
|
let t = Math.trunc(Number(e.level));
|
|
2784
3235
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
2785
3236
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
2786
3237
|
return {
|
|
2787
|
-
color:
|
|
2788
|
-
|
|
3238
|
+
color: li[n - 1],
|
|
3239
|
+
strength: `${Math.min(10 + r * 5, 40)}%`
|
|
2789
3240
|
};
|
|
2790
3241
|
};
|
|
2791
|
-
return j(() => e.
|
|
2792
|
-
_(),
|
|
2793
|
-
}), j(a, () => m(), { immediate: !0 }),
|
|
3242
|
+
return j(() => e.value, (e) => {
|
|
3243
|
+
e !== a.value && (_(), a.value = i(e));
|
|
3244
|
+
}), j(a, () => m(), { immediate: !0 }), y(ii), v(_), {
|
|
2794
3245
|
innerData: a,
|
|
2795
|
-
|
|
2796
|
-
|
|
3246
|
+
tableRef: D,
|
|
3247
|
+
tableVersion: O,
|
|
3248
|
+
tableColumns: N,
|
|
3249
|
+
scrollX: P,
|
|
2797
3250
|
innerExpandedRowKeys: o,
|
|
2798
3251
|
getRowKey: l,
|
|
2799
3252
|
getRowProps: (e) => {
|
|
2800
|
-
let t =
|
|
2801
|
-
return
|
|
3253
|
+
let t = F(e);
|
|
3254
|
+
return {
|
|
3255
|
+
...E(e),
|
|
3256
|
+
...t ? { style: `--uz-bom-level-color: ${t.color}; --uz-bom-level-strength: ${t.strength}` } : {}
|
|
3257
|
+
};
|
|
2802
3258
|
},
|
|
2803
|
-
handleExpandedRowKeysChange:
|
|
3259
|
+
handleExpandedRowKeysChange: ne
|
|
2804
3260
|
};
|
|
2805
3261
|
}
|
|
2806
|
-
}),
|
|
2807
|
-
function
|
|
2808
|
-
let
|
|
2809
|
-
return x(), a("div",
|
|
3262
|
+
}), di = { class: "uz-bom" };
|
|
3263
|
+
function fi(e, t, n, i, o, s) {
|
|
3264
|
+
let l = D("NDataTable");
|
|
3265
|
+
return x(), a("div", di, [(x(), r(l, {
|
|
3266
|
+
key: e.tableVersion,
|
|
3267
|
+
ref: "tableRef",
|
|
2810
3268
|
columns: e.tableColumns,
|
|
2811
3269
|
data: e.innerData,
|
|
2812
3270
|
"row-props": e.getRowProps,
|
|
@@ -2831,15 +3289,15 @@ function ni(e, t, n, r, i, o) {
|
|
|
2831
3289
|
"max-height",
|
|
2832
3290
|
"scroll-x",
|
|
2833
3291
|
"onUpdate:expandedRowKeys"
|
|
2834
|
-
])]);
|
|
3292
|
+
]))]);
|
|
2835
3293
|
}
|
|
2836
|
-
var
|
|
3294
|
+
var pi = /*#__PURE__*/ Z(ui, [["render", fi]]), mi = 46, hi = 8, Q = 2 * Math.PI * mi, gi = hi, _i = 19, vi = 69, yi = 52, bi = 8, xi = 135, Si = 270, Ci = 2 * Math.PI * yi, wi = Si / 360 * Ci, Ti = 11, Ei = `rotate(${xi} 60 ${vi})`, Di = (e, t, n, r) => {
|
|
2837
3295
|
let i = r * Math.PI / 180;
|
|
2838
3296
|
return {
|
|
2839
3297
|
x: e + n * Math.cos(i),
|
|
2840
3298
|
y: t + n * Math.sin(i)
|
|
2841
3299
|
};
|
|
2842
|
-
},
|
|
3300
|
+
}, Oi = ({ x: e, y: t }) => `${e.toFixed(3)} ${t.toFixed(3)}`, ki = (e, t, n, r, i, a) => {
|
|
2843
3301
|
if (a <= 0) return "";
|
|
2844
3302
|
let o = n + r / 2, s = n - r / 2;
|
|
2845
3303
|
if (a >= 359.999) {
|
|
@@ -2851,16 +3309,16 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
|
|
|
2851
3309
|
`A ${s} ${s} 0 1 0 ${i}`
|
|
2852
3310
|
].join(" ");
|
|
2853
3311
|
}
|
|
2854
|
-
let c = i + a, l =
|
|
3312
|
+
let c = i + a, l = Di(e, t, o, i), u = Di(e, t, o, c), d = Di(e, t, s, c), f = Di(e, t, s, i), p = r / 2, m = +(a > 180);
|
|
2855
3313
|
return [
|
|
2856
|
-
`M ${
|
|
2857
|
-
`A ${o} ${o} 0 ${m} 1 ${
|
|
2858
|
-
`A ${p} ${p} 0 0 1 ${
|
|
2859
|
-
`A ${s} ${s} 0 ${m} 0 ${
|
|
2860
|
-
`A ${p} ${p} 0 0 1 ${
|
|
3314
|
+
`M ${Oi(l)}`,
|
|
3315
|
+
`A ${o} ${o} 0 ${m} 1 ${Oi(u)}`,
|
|
3316
|
+
`A ${p} ${p} 0 0 1 ${Oi(d)}`,
|
|
3317
|
+
`A ${s} ${s} 0 ${m} 0 ${Oi(f)}`,
|
|
3318
|
+
`A ${p} ${p} 0 0 1 ${Oi(l)}`,
|
|
2861
3319
|
"Z"
|
|
2862
3320
|
].join(" ");
|
|
2863
|
-
},
|
|
3321
|
+
}, Ai = (e) => {
|
|
2864
3322
|
if (!e) return "";
|
|
2865
3323
|
let t = e.toLowerCase();
|
|
2866
3324
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -2874,9 +3332,9 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
|
|
|
2874
3332
|
return e.join(",");
|
|
2875
3333
|
}
|
|
2876
3334
|
return "0,0,0";
|
|
2877
|
-
},
|
|
3335
|
+
}, ji = d({
|
|
2878
3336
|
name: "UzCircle",
|
|
2879
|
-
components: { UzNumberFlow:
|
|
3337
|
+
components: { UzNumberFlow: at },
|
|
2880
3338
|
props: {
|
|
2881
3339
|
circle: {
|
|
2882
3340
|
required: !0,
|
|
@@ -2897,10 +3355,10 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
|
|
|
2897
3355
|
}
|
|
2898
3356
|
},
|
|
2899
3357
|
setup(e) {
|
|
2900
|
-
let t = ee(), r = `uz-blurs-${t}`, i = n(() => `rgba(${
|
|
3358
|
+
let t = ee(), r = `uz-blurs-${t}`, i = n(() => `rgba(${Ai(e.color).split(",").map((e) => {
|
|
2901
3359
|
let t = Number(e) - 50;
|
|
2902
3360
|
return t < 0 && (t = 0), t;
|
|
2903
|
-
})},1)`), a = n(() => `rgba(${
|
|
3361
|
+
})},1)`), a = n(() => `rgba(${Ai(e.color)},1)`), o = n(() => {
|
|
2904
3362
|
let t = Number(e.circle);
|
|
2905
3363
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
2906
3364
|
}), s = w(o.value), c;
|
|
@@ -2932,49 +3390,49 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
|
|
|
2932
3390
|
remainingLength: 0,
|
|
2933
3391
|
remainingStart: 0
|
|
2934
3392
|
};
|
|
2935
|
-
let n = Math.min(1, Math.min(e, t) /
|
|
3393
|
+
let n = Math.min(1, Math.min(e, t) / _i), r = gi + 3 * n, i = hi * n, a = e < _i ? i : Q - (t < _i ? i : t - r) - r * 2, o = Q - a - r * 2;
|
|
2936
3394
|
return {
|
|
2937
3395
|
activeLength: a,
|
|
2938
3396
|
activeStart: r / 2,
|
|
2939
3397
|
remainingLength: o,
|
|
2940
3398
|
remainingStart: r / 2 + a + r
|
|
2941
3399
|
};
|
|
2942
|
-
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() =>
|
|
2943
|
-
let e =
|
|
3400
|
+
}), u = n(() => l.value.activeLength), d = n(() => l.value.activeStart), f = n(() => l.value.remainingLength), p = n(() => l.value.remainingStart), m = n(() => ki(60, 60, mi, hi, -90 + p.value / Q * 360, f.value / Q * 360)), h = n(() => {
|
|
3401
|
+
let e = wi * (s.value / 100), t = wi - e;
|
|
2944
3402
|
if (e === 0) return {
|
|
2945
3403
|
activeLength: 0,
|
|
2946
|
-
remainingLength:
|
|
3404
|
+
remainingLength: wi,
|
|
2947
3405
|
remainingStart: 0
|
|
2948
3406
|
};
|
|
2949
3407
|
if (t === 0) return {
|
|
2950
|
-
activeLength:
|
|
3408
|
+
activeLength: wi,
|
|
2951
3409
|
remainingLength: 0,
|
|
2952
3410
|
remainingStart: 0
|
|
2953
3411
|
};
|
|
2954
|
-
let n = Math.min(
|
|
3412
|
+
let n = Math.min(Ti, e, t);
|
|
2955
3413
|
return {
|
|
2956
3414
|
activeLength: e - n / 2,
|
|
2957
3415
|
remainingLength: t - n / 2,
|
|
2958
3416
|
remainingStart: e + n / 2
|
|
2959
3417
|
};
|
|
2960
|
-
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), y = n(() => h.value.remainingStart), b = n(() =>
|
|
3418
|
+
}), g = n(() => h.value.activeLength), _ = n(() => h.value.remainingLength), y = n(() => h.value.remainingStart), b = n(() => ki(60, vi, yi, bi, xi + y.value / Ci * 360, _.value / Ci * 360));
|
|
2961
3419
|
return {
|
|
2962
3420
|
color: n(() => e.color),
|
|
2963
3421
|
colorA: i,
|
|
2964
3422
|
colorB: a,
|
|
2965
|
-
fullRadius:
|
|
2966
|
-
fullStrokeWidth:
|
|
3423
|
+
fullRadius: mi,
|
|
3424
|
+
fullStrokeWidth: hi,
|
|
2967
3425
|
fullCircumference: Q,
|
|
2968
3426
|
fullActiveLength: u,
|
|
2969
3427
|
fullActiveStart: d,
|
|
2970
3428
|
fullRemainingLength: f,
|
|
2971
3429
|
fullRemainingStart: p,
|
|
2972
3430
|
fullRemainingPath: m,
|
|
2973
|
-
gaugeCenterY:
|
|
2974
|
-
gaugeRadius:
|
|
2975
|
-
gaugeStrokeWidth:
|
|
2976
|
-
gaugeCircumference:
|
|
2977
|
-
gaugeTransform:
|
|
3431
|
+
gaugeCenterY: vi,
|
|
3432
|
+
gaugeRadius: yi,
|
|
3433
|
+
gaugeStrokeWidth: bi,
|
|
3434
|
+
gaugeCircumference: Ci,
|
|
3435
|
+
gaugeTransform: Ei,
|
|
2978
3436
|
gaugeActiveLength: g,
|
|
2979
3437
|
gaugeRemainingLength: _,
|
|
2980
3438
|
gaugeRemainingStart: y,
|
|
@@ -2983,31 +3441,31 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
|
|
|
2983
3441
|
blurFilterId: r
|
|
2984
3442
|
};
|
|
2985
3443
|
}
|
|
2986
|
-
}),
|
|
3444
|
+
}), Mi = { class: "uz-circle" }, Ni = {
|
|
2987
3445
|
key: 0,
|
|
2988
3446
|
viewBox: "0 0 120 120",
|
|
2989
3447
|
"aria-hidden": "true"
|
|
2990
|
-
},
|
|
3448
|
+
}, Pi = ["id"], Fi = ["stop-color"], Ii = ["stop-color"], Li = ["id"], Ri = [
|
|
2991
3449
|
"r",
|
|
2992
3450
|
"stroke-width",
|
|
2993
3451
|
"stroke-dasharray",
|
|
2994
3452
|
"stroke-dashoffset",
|
|
2995
3453
|
"filter",
|
|
2996
3454
|
"stroke"
|
|
2997
|
-
],
|
|
3455
|
+
], zi = [
|
|
2998
3456
|
"d",
|
|
2999
3457
|
"fill",
|
|
3000
3458
|
"filter"
|
|
3001
|
-
],
|
|
3459
|
+
], Bi = {
|
|
3002
3460
|
class: "uz-circle__unit",
|
|
3003
3461
|
x: "60",
|
|
3004
3462
|
y: "82",
|
|
3005
3463
|
"text-anchor": "middle"
|
|
3006
|
-
},
|
|
3464
|
+
}, Vi = {
|
|
3007
3465
|
key: 1,
|
|
3008
3466
|
viewBox: "0 0 120 120",
|
|
3009
3467
|
"aria-hidden": "true"
|
|
3010
|
-
},
|
|
3468
|
+
}, Hi = ["id"], Ui = ["stop-color"], Wi = ["stop-color"], Gi = ["id"], Ki = [
|
|
3011
3469
|
"cy",
|
|
3012
3470
|
"r",
|
|
3013
3471
|
"stroke-width",
|
|
@@ -3015,19 +3473,19 @@ var ri = /*#__PURE__*/ Z(ei, [["render", ni]]), ii = 46, ai = 8, Q = 2 * Math.PI
|
|
|
3015
3473
|
"transform",
|
|
3016
3474
|
"filter",
|
|
3017
3475
|
"stroke"
|
|
3018
|
-
],
|
|
3476
|
+
], qi = [
|
|
3019
3477
|
"d",
|
|
3020
3478
|
"fill",
|
|
3021
3479
|
"filter"
|
|
3022
|
-
],
|
|
3480
|
+
], Ji = {
|
|
3023
3481
|
class: "uz-circle__unit uz-circle__unit--gauge",
|
|
3024
3482
|
x: "60",
|
|
3025
3483
|
y: "90",
|
|
3026
3484
|
"text-anchor": "middle"
|
|
3027
3485
|
};
|
|
3028
|
-
function
|
|
3486
|
+
function Yi(e, t, n, r, s, c) {
|
|
3029
3487
|
let u = D("UzNumberFlow");
|
|
3030
|
-
return x(), a("div",
|
|
3488
|
+
return x(), a("div", Mi, [e.mode === 0 ? (x(), a("svg", Ni, [
|
|
3031
3489
|
o("defs", null, [o("linearGradient", {
|
|
3032
3490
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3033
3491
|
x1: "1",
|
|
@@ -3037,10 +3495,10 @@ function zi(e, t, n, r, s, c) {
|
|
|
3037
3495
|
}, [o("stop", {
|
|
3038
3496
|
offset: "0%",
|
|
3039
3497
|
"stop-color": e.colorA
|
|
3040
|
-
}, null, 8,
|
|
3498
|
+
}, null, 8, Fi), o("stop", {
|
|
3041
3499
|
offset: "50%",
|
|
3042
3500
|
"stop-color": e.colorB
|
|
3043
|
-
}, null, 8,
|
|
3501
|
+
}, null, 8, Ii)], 8, Pi), o("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3044
3502
|
o("feOffset", {
|
|
3045
3503
|
result: "offOut",
|
|
3046
3504
|
in: "SourceGraphic",
|
|
@@ -3057,7 +3515,7 @@ function zi(e, t, n, r, s, c) {
|
|
|
3057
3515
|
in2: "blurOut",
|
|
3058
3516
|
mode: "normal"
|
|
3059
3517
|
}, null, -1)
|
|
3060
|
-
]], 8,
|
|
3518
|
+
]], 8, Li)]),
|
|
3061
3519
|
e.fullActiveLength > 0 ? (x(), a("circle", {
|
|
3062
3520
|
key: 0,
|
|
3063
3521
|
class: "uz-circle__progress",
|
|
@@ -3072,7 +3530,7 @@ function zi(e, t, n, r, s, c) {
|
|
|
3072
3530
|
transform: "rotate(-90 60 60)",
|
|
3073
3531
|
filter: `url(#${e.blurFilterId})`,
|
|
3074
3532
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3075
|
-
}, null, 8,
|
|
3533
|
+
}, null, 8, Ri)) : i("", !0),
|
|
3076
3534
|
e.fullRemainingPath ? (x(), a("path", {
|
|
3077
3535
|
key: 1,
|
|
3078
3536
|
class: "uz-circle__progress",
|
|
@@ -3080,9 +3538,9 @@ function zi(e, t, n, r, s, c) {
|
|
|
3080
3538
|
fill: e.color,
|
|
3081
3539
|
"fill-opacity": "0.1",
|
|
3082
3540
|
filter: `url(#${e.blurFilterId})`
|
|
3083
|
-
}, null, 8,
|
|
3084
|
-
o("text",
|
|
3085
|
-
])) : (x(), a("svg",
|
|
3541
|
+
}, null, 8, zi)) : i("", !0),
|
|
3542
|
+
o("text", Bi, A(e.circleUnit), 1)
|
|
3543
|
+
])) : (x(), a("svg", Vi, [
|
|
3086
3544
|
o("defs", null, [o("linearGradient", {
|
|
3087
3545
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3088
3546
|
x1: "1",
|
|
@@ -3092,10 +3550,10 @@ function zi(e, t, n, r, s, c) {
|
|
|
3092
3550
|
}, [o("stop", {
|
|
3093
3551
|
offset: "0%",
|
|
3094
3552
|
"stop-color": e.colorA
|
|
3095
|
-
}, null, 8,
|
|
3553
|
+
}, null, 8, Ui), o("stop", {
|
|
3096
3554
|
offset: "50%",
|
|
3097
3555
|
"stop-color": e.colorB
|
|
3098
|
-
}, null, 8,
|
|
3556
|
+
}, null, 8, Wi)], 8, Hi), o("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3099
3557
|
o("feOffset", {
|
|
3100
3558
|
result: "offOut",
|
|
3101
3559
|
in: "SourceGraphic",
|
|
@@ -3112,7 +3570,7 @@ function zi(e, t, n, r, s, c) {
|
|
|
3112
3570
|
in2: "blurOut",
|
|
3113
3571
|
mode: "normal"
|
|
3114
3572
|
}, null, -1)
|
|
3115
|
-
]], 8,
|
|
3573
|
+
]], 8, Gi)]),
|
|
3116
3574
|
e.gaugeActiveLength > 0 ? (x(), a("circle", {
|
|
3117
3575
|
key: 0,
|
|
3118
3576
|
class: "uz-circle__progress",
|
|
@@ -3126,7 +3584,7 @@ function zi(e, t, n, r, s, c) {
|
|
|
3126
3584
|
transform: e.gaugeTransform,
|
|
3127
3585
|
filter: `url(#${e.blurFilterId})`,
|
|
3128
3586
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`
|
|
3129
|
-
}, null, 8,
|
|
3587
|
+
}, null, 8, Ki)) : i("", !0),
|
|
3130
3588
|
e.gaugeRemainingPath ? (x(), a("path", {
|
|
3131
3589
|
key: 1,
|
|
3132
3590
|
class: "uz-circle__progress",
|
|
@@ -3134,11 +3592,11 @@ function zi(e, t, n, r, s, c) {
|
|
|
3134
3592
|
fill: e.color,
|
|
3135
3593
|
"fill-opacity": "0.1",
|
|
3136
3594
|
filter: `url(#${e.blurFilterId})`
|
|
3137
|
-
}, null, 8,
|
|
3138
|
-
o("text",
|
|
3595
|
+
}, null, 8, qi)) : i("", !0),
|
|
3596
|
+
o("text", Ji, A(e.circleUnit), 1)
|
|
3139
3597
|
])), o("div", { class: g(["uz-circle__value uz-circle__value--gauge uz-circle__number", { "uz-circle__number--gauge": e.mode !== 0 }]) }, [l(u, { value: e.circle }, null, 8, ["value"])], 2)]);
|
|
3140
3598
|
}
|
|
3141
|
-
var
|
|
3599
|
+
var Xi = /*#__PURE__*/ Z(ji, [["render", Yi]]), Zi = d({
|
|
3142
3600
|
name: "UzCamera",
|
|
3143
3601
|
components: {
|
|
3144
3602
|
NButton: I,
|
|
@@ -3174,7 +3632,7 @@ var Bi = /*#__PURE__*/ Z(xi, [["render", zi]]), Vi = d({
|
|
|
3174
3632
|
s.width = r, s.height = u, o.drawImage(n.value, 0, 0, r, u);
|
|
3175
3633
|
let e = o.getImageData(0, 0, r, u);
|
|
3176
3634
|
try {
|
|
3177
|
-
let n =
|
|
3635
|
+
let n = ot(e.data, r, u);
|
|
3178
3636
|
if (n) {
|
|
3179
3637
|
let { location: e, data: r } = n;
|
|
3180
3638
|
r && (c(e.topLeftCorner, e.topRightCorner), c(e.topRightCorner, e.bottomRightCorner), c(e.bottomRightCorner, e.bottomLeftCorner), c(e.bottomLeftCorner, e.topLeftCorner), t("on-update:value", r));
|
|
@@ -3230,11 +3688,11 @@ var Bi = /*#__PURE__*/ Z(xi, [["render", zi]]), Vi = d({
|
|
|
3230
3688
|
closeAll: d
|
|
3231
3689
|
};
|
|
3232
3690
|
}
|
|
3233
|
-
}),
|
|
3691
|
+
}), Qi = ["width", "height"], $i = ["width", "height"], ea = { class: "uz-scan-video" }, ta = {
|
|
3234
3692
|
ref: "videoRef",
|
|
3235
3693
|
playsInline: ""
|
|
3236
3694
|
};
|
|
3237
|
-
function
|
|
3695
|
+
function na(t, n, s, l, u, d) {
|
|
3238
3696
|
let f = D("NButton"), p = D("NModal");
|
|
3239
3697
|
return x(), a(e, null, [
|
|
3240
3698
|
t.mode === "button" ? (x(), r(f, {
|
|
@@ -3266,7 +3724,7 @@ function Ki(t, n, s, l, u, d) {
|
|
|
3266
3724
|
id: "uz-scan-canvas",
|
|
3267
3725
|
width: t.width,
|
|
3268
3726
|
height: t.height
|
|
3269
|
-
}, null, 8,
|
|
3727
|
+
}, null, 8, Qi)], 4)]),
|
|
3270
3728
|
_: 1
|
|
3271
3729
|
}, 8, [
|
|
3272
3730
|
"show",
|
|
@@ -3284,11 +3742,11 @@ function Ki(t, n, s, l, u, d) {
|
|
|
3284
3742
|
id: "uz-scan-canvas",
|
|
3285
3743
|
width: t.width,
|
|
3286
3744
|
height: t.height
|
|
3287
|
-
}, null, 8,
|
|
3288
|
-
o("div",
|
|
3745
|
+
}, null, 8, $i)], 4)) : i("", !0),
|
|
3746
|
+
o("div", ea, [o("video", ta, null, 512)])
|
|
3289
3747
|
], 64);
|
|
3290
3748
|
}
|
|
3291
|
-
var
|
|
3749
|
+
var ra = /*#__PURE__*/ Z(Zi, [["render", na]]), ia = /* @__PURE__ */ new WeakMap(), aa = d({
|
|
3292
3750
|
name: "UzSearchBar",
|
|
3293
3751
|
components: {
|
|
3294
3752
|
NIcon: B,
|
|
@@ -3337,10 +3795,10 @@ var qi = /*#__PURE__*/ Z(Vi, [["render", Ki]]), Ji = /* @__PURE__ */ new WeakMap
|
|
|
3337
3795
|
e.offsetWidth > 1100 ? (t.instance.gridSpan = 1, t.instance.more = t.instance.moreCache, t.instance.offset = t.instance.offsetCache) : e.offsetWidth <= 1100 && e.offsetWidth > 550 ? (t.instance.gridSpan = 2, t.instance.more = t.instance.moreIndex > 2, t.instance.offset = t.instance.moreIndex === 1 ? 1 : -1) : (t.instance.gridSpan = 4, t.instance.more = t.instance.moreIndex > 1, t.instance.offset = -1);
|
|
3338
3796
|
}
|
|
3339
3797
|
});
|
|
3340
|
-
n.observe(e),
|
|
3798
|
+
n.observe(e), ia.set(e, n);
|
|
3341
3799
|
},
|
|
3342
3800
|
unmounted: (e) => {
|
|
3343
|
-
|
|
3801
|
+
ia.get(e)?.disconnect(), ia.delete(e);
|
|
3344
3802
|
}
|
|
3345
3803
|
} },
|
|
3346
3804
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -3455,24 +3913,24 @@ var qi = /*#__PURE__*/ Z(Vi, [["render", Ki]]), Ji = /* @__PURE__ */ new WeakMap
|
|
|
3455
3913
|
tabButtonType: b
|
|
3456
3914
|
};
|
|
3457
3915
|
}
|
|
3458
|
-
}),
|
|
3916
|
+
}), oa = { class: "uz-flex uz-justify-between uz-gap-2" }, sa = {
|
|
3459
3917
|
key: 0,
|
|
3460
3918
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-2 uz-w-full"
|
|
3461
|
-
},
|
|
3919
|
+
}, ca = { key: 0 }, la = { class: "uz-flex-1" }, ua = {
|
|
3462
3920
|
key: 1,
|
|
3463
3921
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
3464
|
-
},
|
|
3922
|
+
}, da = {
|
|
3465
3923
|
key: 0,
|
|
3466
3924
|
class: "uz-search-fields-collapse"
|
|
3467
3925
|
};
|
|
3468
|
-
function
|
|
3926
|
+
function fa(n, s, u, d, f, p) {
|
|
3469
3927
|
let m = D("NButton"), h = D("NButtonGroup"), _ = D("NGridItem"), v = D("NInputGroupLabel"), y = D("NPopover"), b = D("UzFormItem"), S = D("NInputGroup"), C = D("NGrid"), w = D("UzIcon"), k = D("NIcon"), ee = O("media");
|
|
3470
3928
|
return x(), a("div", {
|
|
3471
3929
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
3472
3930
|
onKeyup: s[1] ||= ne((e) => n.doSearch(!1), ["enter"])
|
|
3473
|
-
}, [o("div",
|
|
3931
|
+
}, [o("div", oa, [n.enableHeader ? (x(), a("div", sa, [
|
|
3474
3932
|
E(n.$slots, "header"),
|
|
3475
|
-
n.tabList && n.tabList.length > 0 ? (x(), a("div",
|
|
3933
|
+
n.tabList && n.tabList.length > 0 ? (x(), a("div", ca, [l(h, null, {
|
|
3476
3934
|
default: N(() => [(x(!0), a(e, null, T(n.tabList, (e) => (x(), r(m, {
|
|
3477
3935
|
key: e.value,
|
|
3478
3936
|
type: n.tabButtonType(e),
|
|
@@ -3484,7 +3942,7 @@ function na(n, s, u, d, f, p) {
|
|
|
3484
3942
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
3485
3943
|
_: 1
|
|
3486
3944
|
})])) : i("", !0),
|
|
3487
|
-
P((x(), a("div",
|
|
3945
|
+
P((x(), a("div", la, [l(C, {
|
|
3488
3946
|
"x-gap": "8",
|
|
3489
3947
|
"y-gap": "8",
|
|
3490
3948
|
cols: n.cols,
|
|
@@ -3521,7 +3979,7 @@ function na(n, s, u, d, f, p) {
|
|
|
3521
3979
|
}, 1032, ["span"]))), 128)) : i("", !0)]),
|
|
3522
3980
|
_: 1
|
|
3523
3981
|
}, 8, ["cols"])])), [[ee]])
|
|
3524
|
-
])) : i("", !0), n.enableHeader ? (x(), a("div",
|
|
3982
|
+
])) : i("", !0), n.enableHeader ? (x(), a("div", ua, [
|
|
3525
3983
|
n.more ? (x(), r(m, {
|
|
3526
3984
|
key: 0,
|
|
3527
3985
|
secondary: "",
|
|
@@ -3571,7 +4029,7 @@ function na(n, s, u, d, f, p) {
|
|
|
3571
4029
|
})) : i("", !0),
|
|
3572
4030
|
E(n.$slots, "action")
|
|
3573
4031
|
])) : i("", !0)]), l(t, { name: "uz-search-fields" }, {
|
|
3574
|
-
default: N(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div",
|
|
4032
|
+
default: N(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div", da, [l(C, {
|
|
3575
4033
|
"x-gap": "8",
|
|
3576
4034
|
"y-gap": "8",
|
|
3577
4035
|
cols: 4
|
|
@@ -3606,7 +4064,7 @@ function na(n, s, u, d, f, p) {
|
|
|
3606
4064
|
_: 1
|
|
3607
4065
|
})], 32);
|
|
3608
4066
|
}
|
|
3609
|
-
var
|
|
4067
|
+
var pa = /*#__PURE__*/ Z(aa, [["render", fa]]), ma = d({
|
|
3610
4068
|
name: "UzSearchMobileBar",
|
|
3611
4069
|
components: {
|
|
3612
4070
|
NIcon: B,
|
|
@@ -3695,10 +4153,10 @@ var ra = /*#__PURE__*/ Z(Yi, [["render", na]]), ia = d({
|
|
|
3695
4153
|
clearAll: l
|
|
3696
4154
|
};
|
|
3697
4155
|
}
|
|
3698
|
-
}),
|
|
3699
|
-
function
|
|
4156
|
+
}), ha = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, ga = { class: "uz-flex uz-gap-2" }, _a = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
4157
|
+
function va(t, n, s, u, d, f) {
|
|
3700
4158
|
let p = D("UzIcon"), m = D("NIcon"), h = D("NButton"), g = D("NInputGroupLabel"), _ = D("UzFormItem"), v = D("NInputGroup"), y = D("NGridItem"), b = D("NGrid"), S = D("NDrawerContent"), C = D("NDrawer");
|
|
3701
|
-
return x(), a(e, null, [o("div",
|
|
4159
|
+
return x(), a(e, null, [o("div", ha, [E(t.$slots, "header"), o("div", ga, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), r(h, {
|
|
3702
4160
|
key: 0,
|
|
3703
4161
|
secondary: "",
|
|
3704
4162
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
@@ -3723,7 +4181,7 @@ function ca(t, n, s, u, d, f) {
|
|
|
3723
4181
|
title: "查询",
|
|
3724
4182
|
closable: ""
|
|
3725
4183
|
}, {
|
|
3726
|
-
footer: N(() => [o("div",
|
|
4184
|
+
footer: N(() => [o("div", _a, [l(h, {
|
|
3727
4185
|
secondary: "",
|
|
3728
4186
|
loading: t.loading,
|
|
3729
4187
|
onClick: t.clearAll,
|
|
@@ -3778,7 +4236,7 @@ function ca(t, n, s, u, d, f) {
|
|
|
3778
4236
|
_: 1
|
|
3779
4237
|
}, 8, ["show"])], 64);
|
|
3780
4238
|
}
|
|
3781
|
-
var
|
|
4239
|
+
var ya = /*#__PURE__*/ Z(ma, [["render", va]]), ba = /(?<=\[)(.+?)(?=\])/g, xa = {
|
|
3782
4240
|
index: 1,
|
|
3783
4241
|
selection: 0,
|
|
3784
4242
|
pagination: 1,
|
|
@@ -3796,10 +4254,10 @@ var la = /*#__PURE__*/ Z(ia, [["render", ca]]), ua = /(?<=\[)(.+?)(?=\])/g, da =
|
|
|
3796
4254
|
placement: "right",
|
|
3797
4255
|
summary: ""
|
|
3798
4256
|
};
|
|
3799
|
-
function
|
|
4257
|
+
function Sa(e) {
|
|
3800
4258
|
return Function("return " + e)();
|
|
3801
4259
|
}
|
|
3802
|
-
var
|
|
4260
|
+
var Ca = () => new Promise((e) => {
|
|
3803
4261
|
let t = window.localStorage.getItem("city");
|
|
3804
4262
|
if (t) e(JSON.parse(t));
|
|
3805
4263
|
else {
|
|
@@ -3812,9 +4270,9 @@ var pa = () => new Promise((e) => {
|
|
|
3812
4270
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
3813
4271
|
}, 500);
|
|
3814
4272
|
}
|
|
3815
|
-
}),
|
|
4273
|
+
}), wa = async (e, t, n) => {
|
|
3816
4274
|
if (t && typeof t == "string") {
|
|
3817
|
-
let r = t.match(
|
|
4275
|
+
let r = t.match(ba);
|
|
3818
4276
|
if (r && t.indexOf("return") === -1) {
|
|
3819
4277
|
let t = r[0].split(":");
|
|
3820
4278
|
if (t[0] === "date") return (t) => Mt(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
@@ -3835,7 +4293,7 @@ var pa = () => new Promise((e) => {
|
|
|
3835
4293
|
}
|
|
3836
4294
|
}
|
|
3837
4295
|
return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
|
|
3838
|
-
},
|
|
4296
|
+
}, Ta = (e, t, n) => {
|
|
3839
4297
|
let r = t.map((t) => {
|
|
3840
4298
|
let r = [], i = t.id;
|
|
3841
4299
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -3848,35 +4306,35 @@ var pa = () => new Promise((e) => {
|
|
|
3848
4306
|
};
|
|
3849
4307
|
});
|
|
3850
4308
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
3851
|
-
},
|
|
3852
|
-
function
|
|
3853
|
-
|
|
4309
|
+
}, Ea = /* @__PURE__ */ new Map();
|
|
4310
|
+
function Da() {
|
|
4311
|
+
Ea.clear();
|
|
3854
4312
|
}
|
|
3855
|
-
async function
|
|
4313
|
+
async function Oa(e, t = !1) {
|
|
3856
4314
|
let n = e.split("."), r = !1;
|
|
3857
|
-
return n.length > 1 && (
|
|
4315
|
+
return n.length > 1 && (Ea.has(n[0]) && !t ? r = H(Ea.get(n[0])) : (r = await X({ tableId: n[0] }), Ea.set(n[0], r))), {
|
|
3858
4316
|
sourceData: r,
|
|
3859
4317
|
n
|
|
3860
4318
|
};
|
|
3861
4319
|
}
|
|
3862
|
-
async function
|
|
4320
|
+
async function ka(e) {
|
|
3863
4321
|
return new Promise((t, n) => {
|
|
3864
4322
|
let r = G(`dynamicTable_${e}`, !1);
|
|
3865
|
-
r &&
|
|
4323
|
+
r && Ea.has(`dynamicTable_${e}`) ? t(r) : Yn(e, r ? r.createTime : null).then((n) => {
|
|
3866
4324
|
if (n) {
|
|
3867
4325
|
let r = {
|
|
3868
4326
|
createTime: n.createTime,
|
|
3869
4327
|
tableTitle: n.tableTitle,
|
|
3870
4328
|
viewJson: n.viewJson
|
|
3871
4329
|
};
|
|
3872
|
-
W(`dynamicTable_${e}`, r, 0),
|
|
3873
|
-
} else
|
|
4330
|
+
W(`dynamicTable_${e}`, r, 0), Ea.set(`dynamicTable_${e}`, !0), Ot("tables_"), t(n);
|
|
4331
|
+
} else Ea.set(`dynamicTable_${e}`, !0), t(r);
|
|
3874
4332
|
}).catch(() => {
|
|
3875
4333
|
n();
|
|
3876
4334
|
});
|
|
3877
4335
|
});
|
|
3878
4336
|
}
|
|
3879
|
-
var
|
|
4337
|
+
var Aa = (e) => e.map((e) => {
|
|
3880
4338
|
let t = {};
|
|
3881
4339
|
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.x = +!!e.params.expandable, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
3882
4340
|
i: e.input,
|
|
@@ -3951,7 +4409,7 @@ var ba = (e) => e.map((e) => {
|
|
|
3951
4409
|
p: { s: +!!e.form.expand.show }
|
|
3952
4410
|
}
|
|
3953
4411
|
};
|
|
3954
|
-
}),
|
|
4412
|
+
}), ja = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
3955
4413
|
let t = {};
|
|
3956
4414
|
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), t.expandable = !!e.p.x, e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
|
|
3957
4415
|
input: e.i,
|
|
@@ -4026,12 +4484,12 @@ var ba = (e) => e.map((e) => {
|
|
|
4026
4484
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
4027
4485
|
}
|
|
4028
4486
|
};
|
|
4029
|
-
}),
|
|
4487
|
+
}), Ma = (e) => ({
|
|
4030
4488
|
f: e.fetch,
|
|
4031
4489
|
n: e.fetchFn,
|
|
4032
4490
|
o: e.when_drawer_open,
|
|
4033
4491
|
b: e.when_before_save
|
|
4034
|
-
}),
|
|
4492
|
+
}), Na = (e) => e ? e.fetch ? e : {
|
|
4035
4493
|
fetch: e.f,
|
|
4036
4494
|
fetchFn: e.n,
|
|
4037
4495
|
when_drawer_open: e.o,
|
|
@@ -4041,7 +4499,7 @@ var ba = (e) => e.map((e) => {
|
|
|
4041
4499
|
fetchFn: "",
|
|
4042
4500
|
when_drawer_open: "",
|
|
4043
4501
|
when_before_save: ""
|
|
4044
|
-
},
|
|
4502
|
+
}, Pa = (e) => ({
|
|
4045
4503
|
i: e.index,
|
|
4046
4504
|
s: e.selection,
|
|
4047
4505
|
p: e.pagination,
|
|
@@ -4057,7 +4515,7 @@ var ba = (e) => e.map((e) => {
|
|
|
4057
4515
|
h: e.drawerHeight,
|
|
4058
4516
|
l: e.placement,
|
|
4059
4517
|
r: e.summary
|
|
4060
|
-
}),
|
|
4518
|
+
}), Fa = (e) => {
|
|
4061
4519
|
let t = {};
|
|
4062
4520
|
return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.asynchronous !== void 0 || e.filePort !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
|
|
4063
4521
|
index: e.i,
|
|
@@ -4075,9 +4533,9 @@ var ba = (e) => e.map((e) => {
|
|
|
4075
4533
|
drawerHeight: e.h,
|
|
4076
4534
|
placement: e.l,
|
|
4077
4535
|
summary: e.r
|
|
4078
|
-
}), Object.assign({},
|
|
4536
|
+
}), Object.assign({}, xa, H(t));
|
|
4079
4537
|
};
|
|
4080
|
-
function
|
|
4538
|
+
function Ia(e, t, n, r) {
|
|
4081
4539
|
return new Promise(async (i, a) => {
|
|
4082
4540
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = H(e), p = [];
|
|
4083
4541
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -4112,21 +4570,21 @@ function Ea(e, t, n, r) {
|
|
|
4112
4570
|
disabled: !0
|
|
4113
4571
|
}];
|
|
4114
4572
|
if (e.params.immediately || r) {
|
|
4115
|
-
let { sourceData: t, n: r } = await
|
|
4573
|
+
let { sourceData: t, n: r } = await Oa(e.source);
|
|
4116
4574
|
if (t && Array.isArray(t)) {
|
|
4117
4575
|
if (e.sourceFn) {
|
|
4118
4576
|
let r = e.sourceFn;
|
|
4119
4577
|
n = Function("sourceData", r)(t);
|
|
4120
|
-
} else n =
|
|
4578
|
+
} else n = Ta(e, t, r);
|
|
4121
4579
|
}
|
|
4122
4580
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
4123
|
-
let { sourceData: t, n } = await
|
|
4581
|
+
let { sourceData: t, n } = await Oa(e.source);
|
|
4124
4582
|
if (t && Array.isArray(t)) {
|
|
4125
4583
|
if (e.sourceFn) {
|
|
4126
4584
|
let n = e.sourceFn;
|
|
4127
4585
|
return Function("sourceData", n)(t);
|
|
4128
4586
|
}
|
|
4129
|
-
return
|
|
4587
|
+
return Ta(e, t, n);
|
|
4130
4588
|
}
|
|
4131
4589
|
};
|
|
4132
4590
|
if (e.params.options = n, e.form.backfill && t) {
|
|
@@ -4160,27 +4618,27 @@ function Ea(e, t, n, r) {
|
|
|
4160
4618
|
U(e);
|
|
4161
4619
|
}
|
|
4162
4620
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
4163
|
-
let t = await
|
|
4621
|
+
let t = await Ca();
|
|
4164
4622
|
e.params.options = t;
|
|
4165
4623
|
}
|
|
4166
4624
|
if (e.input === "subTable" && e.params.link) {
|
|
4167
|
-
let t = await
|
|
4625
|
+
let t = await ka(e.params.link).catch(() => {
|
|
4168
4626
|
a();
|
|
4169
4627
|
});
|
|
4170
4628
|
if (t) try {
|
|
4171
4629
|
let n = rt.parse(t.viewJson);
|
|
4172
4630
|
n.suffix && (e._suffix = _r(n.suffix));
|
|
4173
|
-
let r =
|
|
4631
|
+
let r = ja(n.table);
|
|
4174
4632
|
r.forEach((e) => {
|
|
4175
4633
|
e.table.sorter = !1;
|
|
4176
4634
|
});
|
|
4177
4635
|
let i = r.filter((e) => e.input === "subTable");
|
|
4178
4636
|
if (i) for await (let e of i) {
|
|
4179
|
-
let t = await
|
|
4637
|
+
let t = await ka(e.params.link).catch(() => {
|
|
4180
4638
|
a();
|
|
4181
4639
|
});
|
|
4182
4640
|
if (t) try {
|
|
4183
|
-
let n = rt.parse(t.viewJson), r =
|
|
4641
|
+
let n = rt.parse(t.viewJson), r = ja(n.table);
|
|
4184
4642
|
r.forEach((e) => {
|
|
4185
4643
|
e.table.sorter = !1;
|
|
4186
4644
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -4214,7 +4672,7 @@ function Ea(e, t, n, r) {
|
|
|
4214
4672
|
});
|
|
4215
4673
|
});
|
|
4216
4674
|
}
|
|
4217
|
-
async function
|
|
4675
|
+
async function La(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
4218
4676
|
let s = 0, c = [], l = [], u = {
|
|
4219
4677
|
key: "",
|
|
4220
4678
|
link: "",
|
|
@@ -4229,25 +4687,25 @@ async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4229
4687
|
for await (let [e, s] of m.entries()) {
|
|
4230
4688
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) {
|
|
4231
4689
|
if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
4232
|
-
let { sourceData: t, n } = await
|
|
4690
|
+
let { sourceData: t, n } = await Oa(s.source, a && e === 0);
|
|
4233
4691
|
if (t && Array.isArray(t)) {
|
|
4234
4692
|
if (s.sourceFn) {
|
|
4235
4693
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
4236
4694
|
s.params.options = n(t);
|
|
4237
|
-
} else s.params.options =
|
|
4695
|
+
} else s.params.options = Ta(s, t, n);
|
|
4238
4696
|
}
|
|
4239
4697
|
} else s.params.options = [{
|
|
4240
4698
|
label: "加载中......",
|
|
4241
4699
|
value: "loading",
|
|
4242
4700
|
disabled: !0
|
|
4243
4701
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4244
|
-
let { sourceData: e, n: t } = await
|
|
4702
|
+
let { sourceData: e, n: t } = await Oa(s.source);
|
|
4245
4703
|
if (e && Array.isArray(e)) {
|
|
4246
4704
|
if (s.sourceFn) {
|
|
4247
4705
|
let t = s.sourceFn;
|
|
4248
4706
|
return Function("sourceData", t)(e);
|
|
4249
4707
|
}
|
|
4250
|
-
return
|
|
4708
|
+
return Ta(s, e, t);
|
|
4251
4709
|
}
|
|
4252
4710
|
};
|
|
4253
4711
|
}
|
|
@@ -4270,7 +4728,7 @@ async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4270
4728
|
tooltip: !0,
|
|
4271
4729
|
"line-clamp": s.table.clamp ?? 0
|
|
4272
4730
|
} : !1,
|
|
4273
|
-
render: s.table.render ? await
|
|
4731
|
+
render: s.table.render ? await wa(s.key, s.table.render, i) : void 0,
|
|
4274
4732
|
show: q.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
4275
4733
|
pin: !!s.table.fixed,
|
|
4276
4734
|
fixTemp: s.table.fixed
|
|
@@ -4305,34 +4763,34 @@ async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4305
4763
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
4306
4764
|
if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
|
|
4307
4765
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
4308
|
-
let { sourceData: e, n: t } = await
|
|
4766
|
+
let { sourceData: e, n: t } = await Oa(s.search.source);
|
|
4309
4767
|
if (e && Array.isArray(e)) {
|
|
4310
4768
|
if (s.sourceFn) {
|
|
4311
4769
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
4312
4770
|
s.params.options = n(e);
|
|
4313
|
-
} else s.params.options =
|
|
4771
|
+
} else s.params.options = Ta(s, e, t);
|
|
4314
4772
|
}
|
|
4315
4773
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
4316
|
-
let { sourceData: e, n: t } = await
|
|
4774
|
+
let { sourceData: e, n: t } = await Oa(s.search.source);
|
|
4317
4775
|
if (e && Array.isArray(e)) {
|
|
4318
4776
|
if (s.sourceFn) {
|
|
4319
4777
|
let t = s.sourceFn;
|
|
4320
4778
|
return Function("sourceData", t)(e);
|
|
4321
4779
|
}
|
|
4322
|
-
return
|
|
4780
|
+
return Ta(s, e, t);
|
|
4323
4781
|
}
|
|
4324
4782
|
};
|
|
4325
4783
|
}
|
|
4326
|
-
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue =
|
|
4784
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Sa(s.search.defaultValue))), s.search.show) {
|
|
4327
4785
|
let e = H(s);
|
|
4328
4786
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
4329
|
-
let { sourceData: t, n } = await
|
|
4787
|
+
let { sourceData: t, n } = await Oa(e.source || e.search.source);
|
|
4330
4788
|
if (t && Array.isArray(t)) {
|
|
4331
4789
|
if (e.sourceFn) {
|
|
4332
4790
|
let n = e.sourceFn;
|
|
4333
4791
|
return Function("sourceData", n)(t);
|
|
4334
4792
|
}
|
|
4335
|
-
return
|
|
4793
|
+
return Ta(e, t, n);
|
|
4336
4794
|
}
|
|
4337
4795
|
}), c.push({
|
|
4338
4796
|
input: e.input,
|
|
@@ -4386,7 +4844,7 @@ async function Da(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
4386
4844
|
}
|
|
4387
4845
|
//#endregion
|
|
4388
4846
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
4389
|
-
var
|
|
4847
|
+
var Ra = d({
|
|
4390
4848
|
name: "UzSpin",
|
|
4391
4849
|
components: {
|
|
4392
4850
|
NButton: I,
|
|
@@ -4432,7 +4890,7 @@ var Oa = d({
|
|
|
4432
4890
|
});
|
|
4433
4891
|
//#endregion
|
|
4434
4892
|
//#region components/spin/index.vue
|
|
4435
|
-
function
|
|
4893
|
+
function za(e, t, n, i, a, s) {
|
|
4436
4894
|
let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
|
|
4437
4895
|
return x(), r(f, { show: e.value }, {
|
|
4438
4896
|
description: N(() => [
|
|
@@ -4460,7 +4918,7 @@ function ka(e, t, n, i, a, s) {
|
|
|
4460
4918
|
_: 3
|
|
4461
4919
|
}, 8, ["show"]);
|
|
4462
4920
|
}
|
|
4463
|
-
var
|
|
4921
|
+
var Ba = /*#__PURE__*/ Z(Ra, [["render", za]]), Va = d({
|
|
4464
4922
|
name: "UzTableExpand",
|
|
4465
4923
|
components: {
|
|
4466
4924
|
NDataTable: se,
|
|
@@ -4482,12 +4940,12 @@ var Aa = /*#__PURE__*/ Z(Oa, [["render", ka]]), ja = d({
|
|
|
4482
4940
|
return y(async () => {
|
|
4483
4941
|
if (e.data.merge) try {
|
|
4484
4942
|
let t = e.data.merge, n = Function("formValue", "mainFormValue", "POST", t);
|
|
4485
|
-
r.value = await n(e.value[`sub_${e.data.key}`], { value: () => e.value },
|
|
4943
|
+
r.value = await n(e.value[`sub_${e.data.key}`], { value: () => e.value }, Y);
|
|
4486
4944
|
} catch (e) {
|
|
4487
4945
|
U(e);
|
|
4488
4946
|
}
|
|
4489
|
-
|
|
4490
|
-
let { tableColumns: r } = await
|
|
4947
|
+
ka(e.data.link).then(async (e) => {
|
|
4948
|
+
let { tableColumns: r } = await La(ja(rt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
4491
4949
|
...e,
|
|
4492
4950
|
sorter: !1,
|
|
4493
4951
|
resizable: !1
|
|
@@ -4508,7 +4966,7 @@ var Aa = /*#__PURE__*/ Z(Oa, [["render", ka]]), ja = d({
|
|
|
4508
4966
|
});
|
|
4509
4967
|
//#endregion
|
|
4510
4968
|
//#region components/table/components/expand.vue
|
|
4511
|
-
function
|
|
4969
|
+
function Ha(e, t, n, i, a, o) {
|
|
4512
4970
|
let s = D("NDataTable");
|
|
4513
4971
|
return x(), r(s, {
|
|
4514
4972
|
columns: e.columns,
|
|
@@ -4527,18 +4985,18 @@ function Ma(e, t, n, i, a, o) {
|
|
|
4527
4985
|
"scroll-x"
|
|
4528
4986
|
]);
|
|
4529
4987
|
}
|
|
4530
|
-
var
|
|
4988
|
+
var Ua = /*#__PURE__*/ Z(Va, [["render", Ha]]), Wa = d({
|
|
4531
4989
|
components: { NSkeleton: je },
|
|
4532
4990
|
setup() {
|
|
4533
4991
|
return {};
|
|
4534
4992
|
}
|
|
4535
|
-
}),
|
|
4536
|
-
function
|
|
4993
|
+
}), Ga = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Ka = { class: "uz-flex uz-justify-between" }, qa = { class: "uz-flex uz-gap-1" };
|
|
4994
|
+
function Ja(e, t, n, r, i, s) {
|
|
4537
4995
|
let c = D("NSkeleton");
|
|
4538
|
-
return x(), a("div",
|
|
4996
|
+
return x(), a("div", Ga, [o("div", Ka, [l(c, {
|
|
4539
4997
|
width: 120,
|
|
4540
4998
|
size: "medium"
|
|
4541
|
-
}), o("div",
|
|
4999
|
+
}), o("div", qa, [
|
|
4542
5000
|
l(c, {
|
|
4543
5001
|
width: 180,
|
|
4544
5002
|
size: "medium"
|
|
@@ -4571,7 +5029,7 @@ function Ra(e, t, n, r, i, s) {
|
|
|
4571
5029
|
}
|
|
4572
5030
|
//#endregion
|
|
4573
5031
|
//#region components/table/index.vue?vue&type=script&lang.ts
|
|
4574
|
-
var
|
|
5032
|
+
var Ya = d({
|
|
4575
5033
|
name: "UzTable",
|
|
4576
5034
|
components: {
|
|
4577
5035
|
NDataTable: se,
|
|
@@ -4581,9 +5039,9 @@ var za = d({
|
|
|
4581
5039
|
NCheckbox: ie,
|
|
4582
5040
|
NSpin: Ne,
|
|
4583
5041
|
VueDraggable: nt,
|
|
4584
|
-
UzSpin:
|
|
4585
|
-
TableExpand:
|
|
4586
|
-
SkeletonLoading: /* @__PURE__ */ Z(
|
|
5042
|
+
UzSpin: Ba,
|
|
5043
|
+
TableExpand: Ua,
|
|
5044
|
+
SkeletonLoading: /* @__PURE__ */ Z(Wa, [["render", Ja]])
|
|
4587
5045
|
},
|
|
4588
5046
|
props: {
|
|
4589
5047
|
id: {
|
|
@@ -4723,7 +5181,7 @@ var za = d({
|
|
|
4723
5181
|
fetchFn: "",
|
|
4724
5182
|
when_drawer_open: "",
|
|
4725
5183
|
when_before_save: ""
|
|
4726
|
-
}), L = w(
|
|
5184
|
+
}), L = w(Fa()), re = w(""), ie = w(!1), ae = w([]), R = w([]), oe = p("modules"), se = (e) => e.id, ce = (e, n) => {
|
|
4727
5185
|
t("update:rowKeys", {
|
|
4728
5186
|
keys: e,
|
|
4729
5187
|
rows: H(n)
|
|
@@ -4756,8 +5214,8 @@ var za = d({
|
|
|
4756
5214
|
});
|
|
4757
5215
|
else if (F.value.fetchFn) {
|
|
4758
5216
|
let e = F.value.fetchFn;
|
|
4759
|
-
r = Function("POST", "queryData", e)(
|
|
4760
|
-
} else r =
|
|
5217
|
+
r = Function("POST", "queryData", e)(Y, { ...t });
|
|
5218
|
+
} else r = X({
|
|
4761
5219
|
...t,
|
|
4762
5220
|
tableId: n
|
|
4763
5221
|
});
|
|
@@ -4770,8 +5228,8 @@ var za = d({
|
|
|
4770
5228
|
});
|
|
4771
5229
|
else if (F.value.fetchFn) {
|
|
4772
5230
|
let e = F.value.fetchFn;
|
|
4773
|
-
r = Function("POST", "queryData", e)(
|
|
4774
|
-
} else r =
|
|
5231
|
+
r = Function("POST", "queryData", e)(Y, { id: t.id });
|
|
5232
|
+
} else r = X({
|
|
4775
5233
|
id: t.id,
|
|
4776
5234
|
tableId: n
|
|
4777
5235
|
});
|
|
@@ -4832,7 +5290,7 @@ var za = d({
|
|
|
4832
5290
|
width: 180,
|
|
4833
5291
|
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => Mt(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
4834
5292
|
}], xe = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !M.value || M.value && M.value[0] === "*" ? !1 : !M.value?.includes(t), Se = async (e) => {
|
|
4835
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
5293
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Ia(N.value, e, () => m.value?.getFormValues());
|
|
4836
5294
|
return x.value = t, {
|
|
4837
5295
|
form: t,
|
|
4838
5296
|
fillingDefaultValue: n,
|
|
@@ -4850,13 +5308,13 @@ var za = d({
|
|
|
4850
5308
|
...i
|
|
4851
5309
|
};
|
|
4852
5310
|
if (t && typeof t == "string") try {
|
|
4853
|
-
a = await Function("rowData", "POST", "fnNotification", t)(a,
|
|
5311
|
+
a = await Function("rowData", "POST", "fnNotification", t)(a, Y, c).catch(() => null);
|
|
4854
5312
|
} catch (e) {
|
|
4855
5313
|
U(e);
|
|
4856
5314
|
}
|
|
4857
5315
|
let o = F.value.when_drawer_open;
|
|
4858
5316
|
if (o && typeof o == "string") try {
|
|
4859
|
-
a = await Function("data", "POST", o)(a,
|
|
5317
|
+
a = await Function("data", "POST", o)(a, Y).catch((e) => {
|
|
4860
5318
|
U(e);
|
|
4861
5319
|
});
|
|
4862
5320
|
} catch (e) {
|
|
@@ -4881,7 +5339,7 @@ var za = d({
|
|
|
4881
5339
|
Ce(e).then((r) => {
|
|
4882
5340
|
if (n.optionsType === "drawer:insider") {
|
|
4883
5341
|
if (i) try {
|
|
4884
|
-
Function("rowData", "POST", "fnNotification", i)(r,
|
|
5342
|
+
Function("rowData", "POST", "fnNotification", i)(r, Y, c).then((e) => {
|
|
4885
5343
|
m.value?.link(n.optionsSource || "", void 0, e);
|
|
4886
5344
|
}).catch((e) => {
|
|
4887
5345
|
U(e);
|
|
@@ -4927,7 +5385,7 @@ var za = d({
|
|
|
4927
5385
|
sub_table_ids: r
|
|
4928
5386
|
}), i.then(() => {
|
|
4929
5387
|
if (t) try {
|
|
4930
|
-
Function("rowData", "fnNotification", "POST", t)(n, c,
|
|
5388
|
+
Function("rowData", "fnNotification", "POST", t)(n, c, Y).then(() => {
|
|
4931
5389
|
z();
|
|
4932
5390
|
}).catch(() => null);
|
|
4933
5391
|
} catch (e) {
|
|
@@ -4962,34 +5420,27 @@ var za = d({
|
|
|
4962
5420
|
pe(t).then((t) => {
|
|
4963
5421
|
let r = t && t[0];
|
|
4964
5422
|
er([n.action], r.id, r).then((t) => {
|
|
4965
|
-
if (e && typeof e == "string") {
|
|
4966
|
-
|
|
4967
|
-
Function("rowData", "res", e)(r, t).then((e) => {
|
|
4968
|
-
c.success({
|
|
4969
|
-
content: e,
|
|
4970
|
-
duration: 3e3
|
|
4971
|
-
}), z();
|
|
4972
|
-
}).catch((e) => {
|
|
4973
|
-
U(e);
|
|
4974
|
-
});
|
|
4975
|
-
} catch (e) {
|
|
4976
|
-
U(e);
|
|
4977
|
-
}
|
|
4978
|
-
return;
|
|
4979
|
-
}
|
|
4980
|
-
if (e && typeof e == "function") {
|
|
4981
|
-
e(r, t, () => {
|
|
5423
|
+
if (e && typeof e == "string") try {
|
|
5424
|
+
Function("rowData", "res", e)(r, t).then((e) => {
|
|
4982
5425
|
c.success({
|
|
4983
|
-
content:
|
|
5426
|
+
content: e,
|
|
4984
5427
|
duration: 3e3
|
|
4985
5428
|
}), z();
|
|
5429
|
+
}).catch((e) => {
|
|
5430
|
+
U(e);
|
|
4986
5431
|
});
|
|
4987
|
-
|
|
5432
|
+
} catch (e) {
|
|
5433
|
+
U(e);
|
|
4988
5434
|
}
|
|
4989
|
-
|
|
5435
|
+
else e && typeof e == "function" ? e(r, t, () => {
|
|
5436
|
+
c.success({
|
|
5437
|
+
content: () => s("Notice.success"),
|
|
5438
|
+
duration: 3e3
|
|
5439
|
+
}), z();
|
|
5440
|
+
}) : (c.success({
|
|
4990
5441
|
content: () => s("Notice.success"),
|
|
4991
5442
|
duration: 3e3
|
|
4992
|
-
}), z();
|
|
5443
|
+
}), z());
|
|
4993
5444
|
}).catch(() => {
|
|
4994
5445
|
c.error({
|
|
4995
5446
|
content: () => s("Notice.failed"),
|
|
@@ -5000,8 +5451,8 @@ var za = d({
|
|
|
5000
5451
|
};
|
|
5001
5452
|
}
|
|
5002
5453
|
}, Ee = async () => {
|
|
5003
|
-
ie.value = !1,
|
|
5004
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await
|
|
5454
|
+
ie.value = !1, Da();
|
|
5455
|
+
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await La(N.value, e.child, 0, () => ({}), oe);
|
|
5005
5456
|
!l.value && L.value.index && n.unshift({
|
|
5006
5457
|
title: "#",
|
|
5007
5458
|
key: "index",
|
|
@@ -5070,7 +5521,7 @@ var za = d({
|
|
|
5070
5521
|
filter: "default",
|
|
5071
5522
|
filterOptionValue: null,
|
|
5072
5523
|
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(I, { onClick: Be }, { default: () => s("Common.expand") }), f(I, { onClick: Ve }, { default: () => s("Common.contract") })]),
|
|
5073
|
-
renderExpand: (e) => f(
|
|
5524
|
+
renderExpand: (e) => f(Ua, {
|
|
5074
5525
|
data: a,
|
|
5075
5526
|
value: e
|
|
5076
5527
|
})
|
|
@@ -5083,7 +5534,6 @@ var za = d({
|
|
|
5083
5534
|
if (e.height) {
|
|
5084
5535
|
let t = De(e.height);
|
|
5085
5536
|
ee.value = t, te.value = t;
|
|
5086
|
-
return;
|
|
5087
5537
|
}
|
|
5088
5538
|
}, ke = (t) => {
|
|
5089
5539
|
let n = e.id || o.params.id;
|
|
@@ -5137,13 +5587,13 @@ var za = d({
|
|
|
5137
5587
|
fetchFn: "",
|
|
5138
5588
|
when_drawer_open: "",
|
|
5139
5589
|
when_before_save: ""
|
|
5140
|
-
}, L.value =
|
|
5590
|
+
}, L.value = Fa();
|
|
5141
5591
|
}, Fe = (t) => {
|
|
5142
5592
|
let n = rt.parse(t.viewJson);
|
|
5143
|
-
b.value = t.tableTitle, N.value =
|
|
5593
|
+
b.value = t.tableTitle, N.value = ja(n.table), P.value = _r(e.actions || n.action);
|
|
5144
5594
|
let r = _r(n.suffix || []);
|
|
5145
|
-
ne.value = r.filter((e) => e.main).map((e) => (Le(e), e)), F.value =
|
|
5146
|
-
let i =
|
|
5595
|
+
ne.value = r.filter((e) => e.main).map((e) => (Le(e), e)), F.value = Na(n.trigger);
|
|
5596
|
+
let i = Fa(e.options ?? n.option);
|
|
5147
5597
|
t.tableTitle && i.title && Nt(t.tableTitle), L.value = i;
|
|
5148
5598
|
}, Ie = async () => {
|
|
5149
5599
|
v.value = !1, Pe();
|
|
@@ -5161,7 +5611,7 @@ var za = d({
|
|
|
5161
5611
|
re.value = s("Notice.network"), ie.value = !0;
|
|
5162
5612
|
return;
|
|
5163
5613
|
}
|
|
5164
|
-
Oe(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], ne.value = e.suffixes || [], L.value =
|
|
5614
|
+
Oe(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], ne.value = e.suffixes || [], L.value = Fa(e.options), await Ee()) : await ka(t).then(async (e) => {
|
|
5165
5615
|
Fe(e), await Ee();
|
|
5166
5616
|
}).catch((e) => {
|
|
5167
5617
|
re.value = e?.message || s("Notice.network"), ie.value = !0;
|
|
@@ -5187,14 +5637,11 @@ var za = d({
|
|
|
5187
5637
|
} else if (e.type !== "group") {
|
|
5188
5638
|
let t = H(e.onClick);
|
|
5189
5639
|
e.onClick = async () => {
|
|
5190
|
-
if (t && typeof t == "string") {
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
U(e);
|
|
5196
|
-
}
|
|
5197
|
-
return;
|
|
5640
|
+
if (t && typeof t == "string") try {
|
|
5641
|
+
let e = Function("rowData", "POST", "fnNotification", t);
|
|
5642
|
+
await e(R.value, Y, c, e), z();
|
|
5643
|
+
} catch (e) {
|
|
5644
|
+
U(e);
|
|
5198
5645
|
}
|
|
5199
5646
|
};
|
|
5200
5647
|
}
|
|
@@ -5280,14 +5727,14 @@ var za = d({
|
|
|
5280
5727
|
}
|
|
5281
5728
|
};
|
|
5282
5729
|
}
|
|
5283
|
-
}),
|
|
5730
|
+
}), Xa = { class: "uz-com-title" }, Za = {
|
|
5284
5731
|
ref: "mRef",
|
|
5285
5732
|
class: "uz-table-m-content"
|
|
5286
|
-
},
|
|
5733
|
+
}, Qa = {
|
|
5287
5734
|
key: 1,
|
|
5288
5735
|
class: "uz-transform-fade-in"
|
|
5289
|
-
},
|
|
5290
|
-
function
|
|
5736
|
+
}, $a = { class: "uz-com-title" }, eo = ["data-index"];
|
|
5737
|
+
function to(t, n, u, d, f, p) {
|
|
5291
5738
|
let m = D("SkeletonLoading"), h = D("NButton"), v = D("UzIcon"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("NCheckbox"), O = D("VueDraggable"), k = D("NPopover"), ee = D("UzTableFile"), j = D("UzSearchBar"), M = D("NDataTable"), ne = D("NSpin"), F = D("UzTableDrawer");
|
|
5292
5739
|
return x(), a("div", {
|
|
5293
5740
|
class: "uz-table",
|
|
@@ -5352,7 +5799,7 @@ function Ga(t, n, u, d, f, p) {
|
|
|
5352
5799
|
key: "0"
|
|
5353
5800
|
} : {
|
|
5354
5801
|
name: "header",
|
|
5355
|
-
fn: N(() => [o("div",
|
|
5802
|
+
fn: N(() => [o("div", Xa, A(t.title), 1)]),
|
|
5356
5803
|
key: "1"
|
|
5357
5804
|
}]), 1032, [
|
|
5358
5805
|
"data",
|
|
@@ -5360,7 +5807,7 @@ function Ga(t, n, u, d, f, p) {
|
|
|
5360
5807
|
"cache",
|
|
5361
5808
|
"loading",
|
|
5362
5809
|
"onOnUpdate:value"
|
|
5363
|
-
]), o("div",
|
|
5810
|
+
]), o("div", Za, [l(C, {
|
|
5364
5811
|
tableColumns: t.tableCols,
|
|
5365
5812
|
tableData: t.tableData,
|
|
5366
5813
|
tableQueries: t.tableQueries,
|
|
@@ -5378,7 +5825,7 @@ function Ga(t, n, u, d, f, p) {
|
|
|
5378
5825
|
"minH",
|
|
5379
5826
|
"maxH",
|
|
5380
5827
|
"onUpdate:rowKeys"
|
|
5381
|
-
])], 512)], 2)) : (x(), a("div",
|
|
5828
|
+
])], 512)], 2)) : (x(), a("div", Qa, [l(j, {
|
|
5382
5829
|
data: t.searchData,
|
|
5383
5830
|
id: t.id || t.route.params.id,
|
|
5384
5831
|
cache: t.tableOption.cache,
|
|
@@ -5433,7 +5880,7 @@ function Ga(t, n, u, d, f, p) {
|
|
|
5433
5880
|
_: 1
|
|
5434
5881
|
})]),
|
|
5435
5882
|
_: 1
|
|
5436
|
-
})], 8,
|
|
5883
|
+
})], 8, eo)), [[te, !e.hide]])), 128)), l(h, {
|
|
5437
5884
|
block: "",
|
|
5438
5885
|
tertiary: "",
|
|
5439
5886
|
loading: t.loading,
|
|
@@ -5487,7 +5934,7 @@ function Ga(t, n, u, d, f, p) {
|
|
|
5487
5934
|
key: "0"
|
|
5488
5935
|
} : {
|
|
5489
5936
|
name: "header",
|
|
5490
|
-
fn: N(() => [o("div",
|
|
5937
|
+
fn: N(() => [o("div", $a, A(t.title), 1)]),
|
|
5491
5938
|
key: "1"
|
|
5492
5939
|
}]), 1032, [
|
|
5493
5940
|
"data",
|
|
@@ -5548,7 +5995,7 @@ function Ga(t, n, u, d, f, p) {
|
|
|
5548
5995
|
l(F, { ref: "drawerRef" }, null, 512)
|
|
5549
5996
|
], 4);
|
|
5550
5997
|
}
|
|
5551
|
-
var
|
|
5998
|
+
var no = /*#__PURE__*/ Z(Ya, [["render", to]]), ro = d({
|
|
5552
5999
|
name: "UzTableChild",
|
|
5553
6000
|
components: {
|
|
5554
6001
|
UzIcon: Jt,
|
|
@@ -5577,7 +6024,7 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
|
|
|
5577
6024
|
emits: ["update:value"],
|
|
5578
6025
|
setup(e, { emit: t, expose: r }) {
|
|
5579
6026
|
let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = n(() => s ? s() : 0), { t: l } = Ke(), u = w(), d = w(), m = w(), g = w(!1), _ = w(!0), y = w([]), b = w({ child: [] }), x = w(""), S = w({}), C = w([]), T = w(void 0), E = async (t, n) => {
|
|
5580
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
6027
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Ia(H(n ?? e.item.params.columns), t, void 0, !0);
|
|
5581
6028
|
return S.value = r, i;
|
|
5582
6029
|
}, D = async (t) => {
|
|
5583
6030
|
if (g.value) return;
|
|
@@ -5596,7 +6043,7 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
|
|
|
5596
6043
|
});
|
|
5597
6044
|
}), e.item.params.init && r.length === 0 && e.status === 0 && (r = [S.value]), e.item.params.merge && typeof e.item.params.merge == "string") try {
|
|
5598
6045
|
let t = e.item.params.merge;
|
|
5599
|
-
r = await Function("formValue", "mainFormValue", "POST", t)(r, o,
|
|
6046
|
+
r = await Function("formValue", "mainFormValue", "POST", t)(r, o, Y);
|
|
5600
6047
|
} catch (e) {
|
|
5601
6048
|
U(e);
|
|
5602
6049
|
}
|
|
@@ -5608,7 +6055,7 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
|
|
|
5608
6055
|
});
|
|
5609
6056
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5610
6057
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
5611
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
6058
|
+
let { tableColumns: r, tableWidth: i } = await La(H(t ?? e.item.params.columns), !0, e.status, () => b.value.child, a, n), s = i;
|
|
5612
6059
|
r.unshift({
|
|
5613
6060
|
title: " ",
|
|
5614
6061
|
key: "index",
|
|
@@ -5689,7 +6136,7 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
|
|
|
5689
6136
|
mainFormValue: o,
|
|
5690
6137
|
children: () => b.value.child,
|
|
5691
6138
|
callback: async (e) => {
|
|
5692
|
-
let t = await n(e, o,
|
|
6139
|
+
let t = await n(e, o, Y);
|
|
5693
6140
|
b.value.child = [...b.value.child, ...t], h(() => {
|
|
5694
6141
|
P();
|
|
5695
6142
|
});
|
|
@@ -5712,17 +6159,13 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
|
|
|
5712
6159
|
m.value?.restoreValidation();
|
|
5713
6160
|
}, N = () => (x.value = "", new Promise((t, n) => {
|
|
5714
6161
|
let r = b.value.child.filter((e) => !e.delete).length;
|
|
5715
|
-
|
|
5716
|
-
x.value = e.item.form.rule.message, n();
|
|
5717
|
-
return;
|
|
5718
|
-
}
|
|
5719
|
-
m.value?.validate((r) => {
|
|
6162
|
+
e.item.form.rule.required && r === 0 ? (x.value = e.item.form.rule.message, n()) : m.value?.validate((r) => {
|
|
5720
6163
|
r ? (x.value = e.item.form.rule.message, n()) : t();
|
|
5721
6164
|
});
|
|
5722
6165
|
})), P = () => {
|
|
5723
6166
|
if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
|
|
5724
6167
|
let e = u.value.$el.querySelector(".n-data-table-tbody");
|
|
5725
|
-
e && (d.value =
|
|
6168
|
+
e && (d.value = it.create(e, {
|
|
5726
6169
|
handle: ".uz-drag-handle",
|
|
5727
6170
|
onEnd: ({ oldIndex: e, newIndex: t }) => {
|
|
5728
6171
|
d.value?.destroy(), d.value = null, _.value = !1;
|
|
@@ -5784,14 +6227,14 @@ var Ka = /*#__PURE__*/ Z(za, [["render", Ga]]), qa = d({
|
|
|
5784
6227
|
}
|
|
5785
6228
|
};
|
|
5786
6229
|
}
|
|
5787
|
-
}),
|
|
6230
|
+
}), io = { class: "uz-flex-1 uz-w-full" }, ao = { class: "uz-flex uz-justify-between" }, oo = { class: "uz-com-title" }, so = {
|
|
5788
6231
|
key: 0,
|
|
5789
6232
|
class: "uz-table-asterisk"
|
|
5790
|
-
},
|
|
5791
|
-
function
|
|
6233
|
+
}, co = { class: "uz-flex uz-gap-2" }, lo = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6234
|
+
function uo(t, n, u, d, f, p) {
|
|
5792
6235
|
let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("NDataTable"), y = D("NForm");
|
|
5793
|
-
return x(), a("div",
|
|
5794
|
-
o("div",
|
|
6236
|
+
return x(), a("div", io, [
|
|
6237
|
+
o("div", ao, [o("div", oo, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), a("span", so, " \xA0* ")) : i("", !0)]), o("div", co, [
|
|
5795
6238
|
t.status === 2 ? i("", !0) : (x(!0), a(e, { key: 0 }, T(t.suffixes, (e) => (x(), r(_, {
|
|
5796
6239
|
key: e.key,
|
|
5797
6240
|
type: e.color,
|
|
@@ -5864,7 +6307,7 @@ function eo(t, n, u, d, f, p) {
|
|
|
5864
6307
|
"scroll-x",
|
|
5865
6308
|
"class",
|
|
5866
6309
|
"row-class-name"
|
|
5867
|
-
])) : i("", !0), o("div",
|
|
6310
|
+
])) : i("", !0), o("div", lo, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
|
|
5868
6311
|
key: 0,
|
|
5869
6312
|
type: "success",
|
|
5870
6313
|
secondary: "",
|
|
@@ -5893,7 +6336,7 @@ function eo(t, n, u, d, f, p) {
|
|
|
5893
6336
|
}, 8, ["model"])
|
|
5894
6337
|
]);
|
|
5895
6338
|
}
|
|
5896
|
-
var
|
|
6339
|
+
var fo = /*#__PURE__*/ Z(ro, [["render", uo]]), po = d({
|
|
5897
6340
|
name: "UzTableQuestChild",
|
|
5898
6341
|
components: { NDataTable: se },
|
|
5899
6342
|
props: {
|
|
@@ -5921,7 +6364,7 @@ var to = /*#__PURE__*/ Z(qa, [["render", eo]]), no = d({
|
|
|
5921
6364
|
}), o.value = t, i.value = !1;
|
|
5922
6365
|
}
|
|
5923
6366
|
}, l = async (i) => {
|
|
5924
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
6367
|
+
let { tableColumns: c, tableWidth: l } = await La(H(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
5925
6368
|
c.unshift({
|
|
5926
6369
|
title: " ",
|
|
5927
6370
|
key: "index",
|
|
@@ -5961,7 +6404,7 @@ var to = /*#__PURE__*/ Z(qa, [["render", eo]]), no = d({
|
|
|
5961
6404
|
}), M(async () => {
|
|
5962
6405
|
try {
|
|
5963
6406
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
5964
|
-
let t = await
|
|
6407
|
+
let t = await X({
|
|
5965
6408
|
tableId: e.item.params.link,
|
|
5966
6409
|
params: [{
|
|
5967
6410
|
key: e.item.params.searchKey,
|
|
@@ -5995,11 +6438,11 @@ var to = /*#__PURE__*/ Z(qa, [["render", eo]]), no = d({
|
|
|
5995
6438
|
tableScrollX: s
|
|
5996
6439
|
};
|
|
5997
6440
|
}
|
|
5998
|
-
}),
|
|
5999
|
-
function
|
|
6441
|
+
}), mo = { class: "uz-flex-1 uz-w-full" }, ho = { class: "uz-flex uz-justify-between" }, go = { class: "uz-com-title" };
|
|
6442
|
+
function _o(e, t, n, r, i, s) {
|
|
6000
6443
|
let c = D("NDataTable"), u = D("UzTableDrawer");
|
|
6001
|
-
return x(), a("div",
|
|
6002
|
-
o("div",
|
|
6444
|
+
return x(), a("div", mo, [
|
|
6445
|
+
o("div", ho, [o("div", go, A(e.item.label), 1)]),
|
|
6003
6446
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
6004
6447
|
l(c, {
|
|
6005
6448
|
columns: e.columns,
|
|
@@ -6021,7 +6464,7 @@ function oo(e, t, n, r, i, s) {
|
|
|
6021
6464
|
l(u, { ref: "drawerRef" }, null, 512)
|
|
6022
6465
|
]);
|
|
6023
6466
|
}
|
|
6024
|
-
var
|
|
6467
|
+
var vo = /*#__PURE__*/ Z(po, [["render", _o]]), yo = d({
|
|
6025
6468
|
name: "UzTableDrawer",
|
|
6026
6469
|
components: {
|
|
6027
6470
|
NButton: I,
|
|
@@ -6075,7 +6518,7 @@ var so = /*#__PURE__*/ Z(no, [["render", oo]]), co = d({
|
|
|
6075
6518
|
}, T = (e) => {
|
|
6076
6519
|
let t = y.value.when_drawer_open;
|
|
6077
6520
|
if (t && typeof t == "string") try {
|
|
6078
|
-
Function("formValues", "POST", t)(e,
|
|
6521
|
+
Function("formValues", "POST", t)(e, Y).then((e) => {
|
|
6079
6522
|
c.value = e;
|
|
6080
6523
|
}).catch((e) => {
|
|
6081
6524
|
U(e);
|
|
@@ -6093,11 +6536,11 @@ var so = /*#__PURE__*/ Z(no, [["render", oo]]), co = d({
|
|
|
6093
6536
|
linkFn: t
|
|
6094
6537
|
};
|
|
6095
6538
|
let r = e.split(".")[0];
|
|
6096
|
-
|
|
6539
|
+
ka(r).then((e) => {
|
|
6097
6540
|
h(async () => {
|
|
6098
6541
|
let t = rt.parse(e.viewJson);
|
|
6099
|
-
d.value =
|
|
6100
|
-
let { form: i } = await
|
|
6542
|
+
d.value = Fa(t.option), u.value = !0;
|
|
6543
|
+
let { form: i } = await Ia(ja(t.table), n);
|
|
6101
6544
|
y.value = t.trigger, n && T(n);
|
|
6102
6545
|
let a = G(`tables_cache_link_${r}`, !1);
|
|
6103
6546
|
a && (c.value = a), h(() => {
|
|
@@ -6137,28 +6580,25 @@ var so = /*#__PURE__*/ Z(no, [["render", oo]]), co = d({
|
|
|
6137
6580
|
_.value = 0, p.value = !0, a.value?.validate().then(async (e) => {
|
|
6138
6581
|
if (y.value.when_before_save) try {
|
|
6139
6582
|
let t = y.value.when_before_save;
|
|
6140
|
-
e = await Function("data", "POST", t)(e,
|
|
6583
|
+
e = await Function("data", "POST", t)(e, Y).catch((e) => {
|
|
6141
6584
|
_.value = 1, g.value = e.message;
|
|
6142
6585
|
});
|
|
6143
6586
|
} catch (e) {
|
|
6144
6587
|
_.value = 1, g.value = e.message;
|
|
6145
6588
|
return;
|
|
6146
6589
|
}
|
|
6147
|
-
if (x.value) {
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
return;
|
|
6154
|
-
}
|
|
6155
|
-
{
|
|
6590
|
+
if (x.value) x.value(e, () => {
|
|
6591
|
+
Dt(`tables_cache_${o.value}`), S();
|
|
6592
|
+
}, (e) => {
|
|
6593
|
+
_.value = 1, g.value = e;
|
|
6594
|
+
});
|
|
6595
|
+
else {
|
|
6156
6596
|
let n = l.value.link.split(".")[0];
|
|
6157
6597
|
Xn({
|
|
6158
6598
|
tableId: n,
|
|
6159
6599
|
...e
|
|
6160
6600
|
}).then(() => {
|
|
6161
|
-
|
|
6601
|
+
Da(), X({ tableId: n }).then((e) => {
|
|
6162
6602
|
let r = l.value.link.split("."), i;
|
|
6163
6603
|
if (l.value.linkFn) {
|
|
6164
6604
|
let t = l.value.linkFn;
|
|
@@ -6191,11 +6631,11 @@ var so = /*#__PURE__*/ Z(no, [["render", oo]]), co = d({
|
|
|
6191
6631
|
}
|
|
6192
6632
|
};
|
|
6193
6633
|
}
|
|
6194
|
-
}),
|
|
6634
|
+
}), bo = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, xo = {
|
|
6195
6635
|
key: 0,
|
|
6196
6636
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
6197
|
-
},
|
|
6198
|
-
function
|
|
6637
|
+
}, So = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, Co = { class: "uz-flex uz-gap-2" };
|
|
6638
|
+
function wo(t, n, u, d, f, p) {
|
|
6199
6639
|
let m = D("NSkeleton"), h = D("UzForm"), g = D("UzSpin"), _ = D("NSpin"), v = D("NButton"), y = D("NPopover"), b = D("NDrawerContent"), S = D("NDrawer"), C = D("UzOcr"), w = D("NModal");
|
|
6200
6640
|
return x(), a(e, null, [l(S, {
|
|
6201
6641
|
show: t.drawer,
|
|
@@ -6221,7 +6661,7 @@ function mo(t, n, u, d, f, p) {
|
|
|
6221
6661
|
message: t.spinMsg,
|
|
6222
6662
|
status: t.spinStatus
|
|
6223
6663
|
}, {
|
|
6224
|
-
default: N(() => [o("div",
|
|
6664
|
+
default: N(() => [o("div", bo, [t.skeletonShow ? (x(), a("div", xo, [
|
|
6225
6665
|
l(m, {
|
|
6226
6666
|
size: "large",
|
|
6227
6667
|
style: { height: "156px" }
|
|
@@ -6284,7 +6724,7 @@ function mo(t, n, u, d, f, p) {
|
|
|
6284
6724
|
_: 2
|
|
6285
6725
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6286
6726
|
name: "footer",
|
|
6287
|
-
fn: N(() => [o("div",
|
|
6727
|
+
fn: N(() => [o("div", So, [t.isMobile ? i("", !0) : (x(), r(v, {
|
|
6288
6728
|
key: 0,
|
|
6289
6729
|
loading: t.spinShow,
|
|
6290
6730
|
type: "success",
|
|
@@ -6293,7 +6733,7 @@ function mo(t, n, u, d, f, p) {
|
|
|
6293
6733
|
}, {
|
|
6294
6734
|
default: N(() => [c(A(t.$t("OCR.ocr")), 1)]),
|
|
6295
6735
|
_: 1
|
|
6296
|
-
}, 8, ["loading"])), o("div",
|
|
6736
|
+
}, 8, ["loading"])), o("div", Co, [
|
|
6297
6737
|
l(v, {
|
|
6298
6738
|
loading: t.spinShow,
|
|
6299
6739
|
class: "uz-drawer-button",
|
|
@@ -6361,7 +6801,7 @@ function mo(t, n, u, d, f, p) {
|
|
|
6361
6801
|
_: 1
|
|
6362
6802
|
}, 8, ["show"])], 64);
|
|
6363
6803
|
}
|
|
6364
|
-
var
|
|
6804
|
+
var To = /*#__PURE__*/ Z(yo, [["render", wo]]), Eo = d({
|
|
6365
6805
|
name: "UzTableMobileList",
|
|
6366
6806
|
props: {
|
|
6367
6807
|
tableData: {
|
|
@@ -6379,12 +6819,12 @@ var ho = /*#__PURE__*/ Z(co, [["render", mo]]), go = d({
|
|
|
6379
6819
|
},
|
|
6380
6820
|
emits: ["update:row-keys"],
|
|
6381
6821
|
setup() {}
|
|
6382
|
-
}),
|
|
6822
|
+
}), Do = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Oo = {
|
|
6383
6823
|
key: 1,
|
|
6384
6824
|
class: "uz-table-mobile-group-txt"
|
|
6385
6825
|
};
|
|
6386
|
-
function
|
|
6387
|
-
return x(), a("div",
|
|
6826
|
+
function ko(t, n, s, c, l, u) {
|
|
6827
|
+
return x(), a("div", Do, [(x(!0), a(e, null, T(t.tableColumns, (n) => (x(), a("div", {
|
|
6388
6828
|
key: n.key,
|
|
6389
6829
|
class: g(["uz-flex uz-overflow-hidden", n.lineBreak ? "uz-flex-col" : ""]),
|
|
6390
6830
|
style: _(`grid-column: span ${n.lineCol || 2} / span ${n.lineCol || 2}`)
|
|
@@ -6395,11 +6835,11 @@ function yo(t, n, s, c, l, u) {
|
|
|
6395
6835
|
class: "mobile"
|
|
6396
6836
|
})) : i("", !0)], 64)) : (x(), a(e, { key: 1 }, [o("div", { class: g(["uz-table-mobile-group-title", n.lineBreak ? "line-break" : ""]) }, [o("div", null, A(typeof n.title == "string" ? n.title : n.title()), 1)], 2), o("div", { class: g(["uz-table-mobile-group-content", n.lineBreak ? "line-break" : ""]) }, [n.render ? (x(), r(k(() => {
|
|
6397
6837
|
if (t.tableData) return n.render(t.tableData, t.tableIndex);
|
|
6398
|
-
}), { key: 0 })) : (x(), a("div",
|
|
6838
|
+
}), { key: 0 })) : (x(), a("div", Oo, A(t.tableData[n.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
6399
6839
|
}
|
|
6400
6840
|
//#endregion
|
|
6401
6841
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
6402
|
-
var
|
|
6842
|
+
var Ao = d({
|
|
6403
6843
|
name: "UzTableMobile",
|
|
6404
6844
|
components: {
|
|
6405
6845
|
NCheckbox: ie,
|
|
@@ -6407,7 +6847,7 @@ var bo = d({
|
|
|
6407
6847
|
NPagination: Te,
|
|
6408
6848
|
NCheckboxGroup: ae,
|
|
6409
6849
|
NRadioGroup: ke,
|
|
6410
|
-
UzTableMobileList: /* @__PURE__ */ Z(
|
|
6850
|
+
UzTableMobileList: /* @__PURE__ */ Z(Eo, [["render", ko], ["__scopeId", "data-v-84c394fe"]])
|
|
6411
6851
|
},
|
|
6412
6852
|
props: {
|
|
6413
6853
|
tableData: {
|
|
@@ -6454,17 +6894,17 @@ var bo = d({
|
|
|
6454
6894
|
}
|
|
6455
6895
|
};
|
|
6456
6896
|
}
|
|
6457
|
-
}),
|
|
6897
|
+
}), jo = {
|
|
6458
6898
|
key: 0,
|
|
6459
6899
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6460
|
-
},
|
|
6900
|
+
}, Mo = {
|
|
6461
6901
|
key: 0,
|
|
6462
6902
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6463
|
-
},
|
|
6903
|
+
}, No = {
|
|
6464
6904
|
key: 0,
|
|
6465
6905
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
6466
6906
|
};
|
|
6467
|
-
function
|
|
6907
|
+
function Po(t, n, o, s, c, u) {
|
|
6468
6908
|
let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
|
|
6469
6909
|
return t.selection === 2 ? (x(), r(m, {
|
|
6470
6910
|
key: 0,
|
|
@@ -6491,7 +6931,7 @@ function wo(t, n, o, s, c, u) {
|
|
|
6491
6931
|
"tableColumns"
|
|
6492
6932
|
])]),
|
|
6493
6933
|
_: 2
|
|
6494
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div",
|
|
6934
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", jo, [l(p, {
|
|
6495
6935
|
page: t.tableQueries.query.page,
|
|
6496
6936
|
"onUpdate:page": [n[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6497
6937
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6533,7 +6973,7 @@ function wo(t, n, o, s, c, u) {
|
|
|
6533
6973
|
"tableColumns"
|
|
6534
6974
|
])]),
|
|
6535
6975
|
_: 2
|
|
6536
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div",
|
|
6976
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", Mo, [l(p, {
|
|
6537
6977
|
page: t.tableQueries.query.page,
|
|
6538
6978
|
"onUpdate:page": [n[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6539
6979
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6568,7 +7008,7 @@ function wo(t, n, o, s, c, u) {
|
|
|
6568
7008
|
"tableData",
|
|
6569
7009
|
"tableIndex",
|
|
6570
7010
|
"tableColumns"
|
|
6571
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div",
|
|
7011
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), a("div", No, [l(p, {
|
|
6572
7012
|
page: t.tableQueries.query.page,
|
|
6573
7013
|
"onUpdate:page": [n[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
6574
7014
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -6581,7 +7021,7 @@ function wo(t, n, o, s, c, u) {
|
|
|
6581
7021
|
"onUpdate:page"
|
|
6582
7022
|
])])) : i("", !0)], 4));
|
|
6583
7023
|
}
|
|
6584
|
-
var
|
|
7024
|
+
var Fo = /*#__PURE__*/ Z(Ao, [["render", Po], ["__scopeId", "data-v-70b54e3b"]]), Io = d({
|
|
6585
7025
|
name: "UzTableFile",
|
|
6586
7026
|
components: {
|
|
6587
7027
|
UzIcon: Jt,
|
|
@@ -6660,7 +7100,7 @@ var To = /*#__PURE__*/ Z(bo, [["render", wo], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6660
7100
|
o.value = !1;
|
|
6661
7101
|
}));
|
|
6662
7102
|
}, _ = () => {
|
|
6663
|
-
o.value || (o.value = !0,
|
|
7103
|
+
o.value || (o.value = !0, Jn("excel/import", l.value).then(() => {
|
|
6664
7104
|
i.success({
|
|
6665
7105
|
content: "导入执行中...",
|
|
6666
7106
|
duration: 3e3
|
|
@@ -6689,32 +7129,25 @@ var To = /*#__PURE__*/ Z(bo, [["render", wo], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6689
7129
|
rawFileName: c,
|
|
6690
7130
|
dropOption: u,
|
|
6691
7131
|
dropSelect: (t) => {
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
duration: 3e3
|
|
6712
|
-
});
|
|
6713
|
-
}).catch(() => null);
|
|
6714
|
-
}
|
|
6715
|
-
});
|
|
6716
|
-
return;
|
|
6717
|
-
}
|
|
7132
|
+
t === "import" ? (a.value = !0, v()) : t === "export" && Et.info({
|
|
7133
|
+
title: "提示",
|
|
7134
|
+
content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
|
|
7135
|
+
positiveText: "确定",
|
|
7136
|
+
negativeText: "取消",
|
|
7137
|
+
draggable: !0,
|
|
7138
|
+
onPositiveClick: () => {
|
|
7139
|
+
let t = e.query ?? {};
|
|
7140
|
+
rr({
|
|
7141
|
+
tableKey: r.params.id,
|
|
7142
|
+
...t
|
|
7143
|
+
}).then(() => {
|
|
7144
|
+
i.success({
|
|
7145
|
+
content: "导出中...稍后请在文件中心查看",
|
|
7146
|
+
duration: 3e3
|
|
7147
|
+
});
|
|
7148
|
+
}).catch(() => null);
|
|
7149
|
+
}
|
|
7150
|
+
});
|
|
6718
7151
|
},
|
|
6719
7152
|
beforeUpload: m,
|
|
6720
7153
|
clearFile: h,
|
|
@@ -6726,11 +7159,11 @@ var To = /*#__PURE__*/ Z(bo, [["render", wo], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6726
7159
|
}
|
|
6727
7160
|
};
|
|
6728
7161
|
}
|
|
6729
|
-
}),
|
|
7162
|
+
}), Lo = { class: "uz-file-port-modal" }, Ro = {
|
|
6730
7163
|
key: 1,
|
|
6731
7164
|
class: "uz-file-port-panel"
|
|
6732
|
-
},
|
|
6733
|
-
function
|
|
7165
|
+
}, zo = { class: "uz-flex uz-justify-between" };
|
|
7166
|
+
function Bo(t, n, i, s, u, d) {
|
|
6734
7167
|
let f = D("UzIcon"), p = D("NIcon"), m = D("NButton"), h = D("NDropdown"), g = D("NUpload"), _ = D("NSpace"), v = D("NDataTable"), y = D("NModal");
|
|
6735
7168
|
return x(), a(e, null, [l(h, {
|
|
6736
7169
|
trigger: "hover",
|
|
@@ -6765,8 +7198,8 @@ function Ao(t, n, i, s, u, d) {
|
|
|
6765
7198
|
default: N(() => [...n[1] ||= [c(" 下载模板 ", -1)]]),
|
|
6766
7199
|
_: 1
|
|
6767
7200
|
}, 8, ["onClick"])]),
|
|
6768
|
-
default: N(() => [o("div",
|
|
6769
|
-
t.rawFile ? (x(), a("div",
|
|
7201
|
+
default: N(() => [o("div", Lo, [
|
|
7202
|
+
t.rawFile ? (x(), a("div", Ro, [
|
|
6770
7203
|
n[5] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
6771
7204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6772
7205
|
viewBox: "0 0 24 24",
|
|
@@ -6814,7 +7247,7 @@ function Ao(t, n, i, s, u, d) {
|
|
|
6814
7247
|
}, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])]), o("div", { class: "uz-file-port-subtitle" }, "拖拽或点击上传Excel文件")], -1)]]),
|
|
6815
7248
|
_: 1
|
|
6816
7249
|
}, 8, ["on-before-upload"])),
|
|
6817
|
-
o("div",
|
|
7250
|
+
o("div", zo, [n[8] ||= o("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
|
|
6818
7251
|
onClick: t.init,
|
|
6819
7252
|
loading: t.loading,
|
|
6820
7253
|
secondary: ""
|
|
@@ -6837,7 +7270,7 @@ function Ao(t, n, i, s, u, d) {
|
|
|
6837
7270
|
_: 1
|
|
6838
7271
|
}, 8, ["show", "on-after-leave"])], 64);
|
|
6839
7272
|
}
|
|
6840
|
-
var
|
|
7273
|
+
var Vo = /*#__PURE__*/ Z(Io, [["render", Bo], ["__scopeId", "data-v-a491799c"]]), $ = C({
|
|
6841
7274
|
page: {
|
|
6842
7275
|
label: "首页",
|
|
6843
7276
|
key: "/",
|
|
@@ -6848,7 +7281,7 @@ var jo = /*#__PURE__*/ Z(Eo, [["render", Ao], ["__scopeId", "data-v-a491799c"]])
|
|
|
6848
7281
|
active: "/",
|
|
6849
7282
|
thumbnail: []
|
|
6850
7283
|
});
|
|
6851
|
-
function
|
|
7284
|
+
function Ho(e) {
|
|
6852
7285
|
$.cache = e.cache, $.page = {
|
|
6853
7286
|
label: e.label,
|
|
6854
7287
|
key: e.key,
|
|
@@ -6863,35 +7296,35 @@ function Mo(e) {
|
|
|
6863
7296
|
closable: !1
|
|
6864
7297
|
}];
|
|
6865
7298
|
}
|
|
6866
|
-
function
|
|
6867
|
-
$.active = e,
|
|
7299
|
+
function Uo(e) {
|
|
7300
|
+
$.active = e, Yt.push(e), W($.cache, $, 0);
|
|
6868
7301
|
}
|
|
6869
|
-
function
|
|
7302
|
+
function Wo(e, t) {
|
|
6870
7303
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
6871
7304
|
n && (n.key = t, $.active = t, W($.cache, $, 0));
|
|
6872
7305
|
}
|
|
6873
|
-
function
|
|
7306
|
+
function Go(e) {
|
|
6874
7307
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
6875
|
-
t ? ($.active = t.key, W($.cache, $, 0),
|
|
7308
|
+
t ? ($.active = t.key, W($.cache, $, 0), Yt.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
6876
7309
|
...e,
|
|
6877
7310
|
path: e.key,
|
|
6878
7311
|
closable: !0
|
|
6879
|
-
}),
|
|
7312
|
+
}), Yt.push(e.key));
|
|
6880
7313
|
}
|
|
6881
|
-
function
|
|
7314
|
+
function Ko(e) {
|
|
6882
7315
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
6883
7316
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
6884
7317
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
6885
|
-
$.active = e,
|
|
7318
|
+
$.active = e, Yt.push(e);
|
|
6886
7319
|
}
|
|
6887
7320
|
W($.cache, $, 0);
|
|
6888
7321
|
}
|
|
6889
|
-
function
|
|
6890
|
-
$.active = $.page.path, $.thumbnail = [$.page],
|
|
7322
|
+
function qo() {
|
|
7323
|
+
$.active = $.page.path, $.thumbnail = [$.page], Yt.push($.page.path), W($.cache, $, 0);
|
|
6891
7324
|
}
|
|
6892
7325
|
//#endregion
|
|
6893
7326
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
6894
|
-
var
|
|
7327
|
+
var Jo = d({
|
|
6895
7328
|
name: "UzThumbnail",
|
|
6896
7329
|
components: {
|
|
6897
7330
|
NTabs: Ie,
|
|
@@ -6912,29 +7345,29 @@ var Ro = d({
|
|
|
6912
7345
|
setup(e, { slots: t }) {
|
|
6913
7346
|
let n = w(!!t.prefix), r = Xe();
|
|
6914
7347
|
return y(() => {
|
|
6915
|
-
|
|
7348
|
+
Ho(e.option), $.active !== r.path && Wo(r.path, r.fullPath);
|
|
6916
7349
|
}), j(() => r, (e) => {
|
|
6917
|
-
$.active === r.path &&
|
|
7350
|
+
$.active === r.path && Wo(e.path, e.fullPath);
|
|
6918
7351
|
}, { deep: !0 }), j(() => e.option, (e) => {
|
|
6919
|
-
|
|
7352
|
+
Ho(e);
|
|
6920
7353
|
}, { deep: !0 }), {
|
|
6921
7354
|
thumbnailStore: $,
|
|
6922
7355
|
isSlotPrefix: n,
|
|
6923
7356
|
handleClose: (e) => {
|
|
6924
|
-
|
|
7357
|
+
Ko(e);
|
|
6925
7358
|
},
|
|
6926
7359
|
handleChange: (e) => {
|
|
6927
|
-
|
|
7360
|
+
Uo(e);
|
|
6928
7361
|
},
|
|
6929
7362
|
handleClear: () => {
|
|
6930
|
-
|
|
7363
|
+
qo();
|
|
6931
7364
|
}
|
|
6932
7365
|
};
|
|
6933
7366
|
}
|
|
6934
7367
|
});
|
|
6935
7368
|
//#endregion
|
|
6936
7369
|
//#region components/thumbnail/index.vue
|
|
6937
|
-
function
|
|
7370
|
+
function Yo(t, n, i, o, u, d) {
|
|
6938
7371
|
let f = D("NTabPane"), p = D("UzIcon"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
|
|
6939
7372
|
return x(), r(v, {
|
|
6940
7373
|
value: t.thumbnailStore.active,
|
|
@@ -6983,33 +7416,33 @@ function zo(t, n, i, o, u, d) {
|
|
|
6983
7416
|
"on-update:value"
|
|
6984
7417
|
]);
|
|
6985
7418
|
}
|
|
6986
|
-
var
|
|
6987
|
-
V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover =
|
|
6988
|
-
var
|
|
7419
|
+
var Xo = /*#__PURE__*/ Z(Jo, [["render", Yo]]), Zo = "#007AFF", Qo = "#0A84FF", $o = "#FF9500", es = "#FF9F0A", ts = "#28CD41", ns = "#32D74B", rs = "#FFCC00", is = "#FFD60A", as = "#FF3B30", os = "#FF453A";
|
|
7420
|
+
V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover = Qo, V.common.infoColor = "#FF9F0A", V.common.infoColorHover = es, V.common.successColor = "#32D74B", V.common.successColorHover = ns, V.common.warningColor = "#FFD60A", V.common.successColorHover = is, V.common.errorColor = "#FF453A", V.common.errorColorHover = os, V.common.borderRadius = "var(--borderRadius)", V.common.inputColor = "rgba(var(--input))", V.common.borderColor = "rgba(var(--border), 0.7)", V.DataTable.tdColor = "#2d2d31", V.Scrollbar.width = "8px", V.Scrollbar.height = "8px", V.Scrollbar.borderRadius = "8px", V.Scrollbar.color = "#686873";
|
|
7421
|
+
var ss = {
|
|
6989
7422
|
common: {
|
|
6990
7423
|
inputColor: "rgba(var(--input))",
|
|
6991
7424
|
borderColor: "rgba(var(--border), 0.7)",
|
|
6992
7425
|
borderRadius: "var(--borderRadius)",
|
|
6993
|
-
primaryColor:
|
|
6994
|
-
primaryColorHover:
|
|
6995
|
-
primaryColorPressed:
|
|
6996
|
-
primaryColorSuppl:
|
|
6997
|
-
infoColor:
|
|
6998
|
-
infoColorHover:
|
|
6999
|
-
infoColorPressed:
|
|
7000
|
-
infoColorSuppl:
|
|
7001
|
-
successColor:
|
|
7002
|
-
successColorHover:
|
|
7003
|
-
successColorPressed:
|
|
7004
|
-
successColorSuppl:
|
|
7005
|
-
warningColor:
|
|
7006
|
-
warningColorHover:
|
|
7007
|
-
warningColorPressed:
|
|
7008
|
-
warningColorSuppl:
|
|
7009
|
-
errorColor:
|
|
7010
|
-
errorColorHover:
|
|
7011
|
-
errorColorPressed:
|
|
7012
|
-
errorColorSuppl:
|
|
7426
|
+
primaryColor: Zo,
|
|
7427
|
+
primaryColorHover: Qo,
|
|
7428
|
+
primaryColorPressed: Zo,
|
|
7429
|
+
primaryColorSuppl: Zo,
|
|
7430
|
+
infoColor: $o,
|
|
7431
|
+
infoColorHover: es,
|
|
7432
|
+
infoColorPressed: $o,
|
|
7433
|
+
infoColorSuppl: $o,
|
|
7434
|
+
successColor: ts,
|
|
7435
|
+
successColorHover: ns,
|
|
7436
|
+
successColorPressed: ts,
|
|
7437
|
+
successColorSuppl: ts,
|
|
7438
|
+
warningColor: rs,
|
|
7439
|
+
warningColorHover: is,
|
|
7440
|
+
warningColorPressed: rs,
|
|
7441
|
+
warningColorSuppl: rs,
|
|
7442
|
+
errorColor: as,
|
|
7443
|
+
errorColorHover: os,
|
|
7444
|
+
errorColorPressed: as,
|
|
7445
|
+
errorColorSuppl: as,
|
|
7013
7446
|
cardColor: "#fff"
|
|
7014
7447
|
},
|
|
7015
7448
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7023,7 +7456,7 @@ var Zo = {
|
|
|
7023
7456
|
borderRadius: "8px",
|
|
7024
7457
|
color: "#c0c0c0"
|
|
7025
7458
|
}
|
|
7026
|
-
},
|
|
7459
|
+
}, cs = V, ls = d({
|
|
7027
7460
|
name: "UzWrap",
|
|
7028
7461
|
components: { NConfigProvider: oe },
|
|
7029
7462
|
setup() {
|
|
@@ -7031,14 +7464,14 @@ var Zo = {
|
|
|
7031
7464
|
zhCN: We,
|
|
7032
7465
|
dateZhCN: He,
|
|
7033
7466
|
commonStore: q,
|
|
7034
|
-
lightTheme:
|
|
7035
|
-
darkTheme:
|
|
7467
|
+
lightTheme: ss,
|
|
7468
|
+
darkTheme: cs
|
|
7036
7469
|
};
|
|
7037
7470
|
}
|
|
7038
7471
|
});
|
|
7039
7472
|
//#endregion
|
|
7040
7473
|
//#region components/wrap/index.vue
|
|
7041
|
-
function
|
|
7474
|
+
function us(e, t, n, i, a, o) {
|
|
7042
7475
|
let s = D("NConfigProvider");
|
|
7043
7476
|
return x(), r(s, {
|
|
7044
7477
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7057,10 +7490,10 @@ function es(e, t, n, i, a, o) {
|
|
|
7057
7490
|
"date-locale"
|
|
7058
7491
|
]);
|
|
7059
7492
|
}
|
|
7060
|
-
var
|
|
7493
|
+
var ds = /*#__PURE__*/ Z(ls, [["render", us]]);
|
|
7061
7494
|
//#endregion
|
|
7062
7495
|
//#region components/ocr/preprocess.ts
|
|
7063
|
-
function
|
|
7496
|
+
function fs(e) {
|
|
7064
7497
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
7065
7498
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
7066
7499
|
let r = 0;
|
|
@@ -7075,7 +7508,7 @@ function ns(e) {
|
|
|
7075
7508
|
}
|
|
7076
7509
|
return c;
|
|
7077
7510
|
}
|
|
7078
|
-
function
|
|
7511
|
+
function ps(e, t) {
|
|
7079
7512
|
return new Promise((n, r) => {
|
|
7080
7513
|
let i = new Image();
|
|
7081
7514
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -7108,7 +7541,7 @@ function rs(e, t) {
|
|
|
7108
7541
|
}
|
|
7109
7542
|
let u = t.threshold;
|
|
7110
7543
|
if (t.binarize) {
|
|
7111
|
-
t.autoThreshold && (u =
|
|
7544
|
+
t.autoThreshold && (u = fs(l));
|
|
7112
7545
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
7113
7546
|
let n = l[t] < u ? 0 : 255;
|
|
7114
7547
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -7131,7 +7564,7 @@ function rs(e, t) {
|
|
|
7131
7564
|
}
|
|
7132
7565
|
//#endregion
|
|
7133
7566
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
7134
|
-
var
|
|
7567
|
+
var ms = d({
|
|
7135
7568
|
name: "UzOcr",
|
|
7136
7569
|
components: {
|
|
7137
7570
|
NButton: I,
|
|
@@ -7168,7 +7601,7 @@ var is = d({
|
|
|
7168
7601
|
tessedit_char_blacklist: "|"
|
|
7169
7602
|
}), a.value), v = async () => {
|
|
7170
7603
|
if (f.value) try {
|
|
7171
|
-
let e = await
|
|
7604
|
+
let e = await ps(f.value, {
|
|
7172
7605
|
enabled: o.value,
|
|
7173
7606
|
scale: s.value,
|
|
7174
7607
|
grayscale: !0,
|
|
@@ -7205,7 +7638,7 @@ var is = d({
|
|
|
7205
7638
|
t.value = !0, r.value = e("OCR.analysis");
|
|
7206
7639
|
let a = n;
|
|
7207
7640
|
if (o.value || s.value > 1) try {
|
|
7208
|
-
let e = await
|
|
7641
|
+
let e = await ps(n, {
|
|
7209
7642
|
enabled: o.value,
|
|
7210
7643
|
scale: s.value,
|
|
7211
7644
|
grayscale: !0,
|
|
@@ -7267,25 +7700,25 @@ var is = d({
|
|
|
7267
7700
|
t: e
|
|
7268
7701
|
};
|
|
7269
7702
|
}
|
|
7270
|
-
}),
|
|
7703
|
+
}), hs = { class: "uz-ocr" }, gs = { class: "uz-ocr-left-col" }, _s = { class: "uz-ocr-upload-card" }, vs = { class: "uz-ocr-upload-title" }, ys = {
|
|
7271
7704
|
key: 1,
|
|
7272
7705
|
class: "uz-ocr-preview-panel"
|
|
7273
|
-
},
|
|
7706
|
+
}, bs = { class: "uz-ocr-preview-box" }, xs = ["src"], Ss = {
|
|
7274
7707
|
key: 0,
|
|
7275
7708
|
class: "uz-ocr-threshold-badge"
|
|
7276
|
-
},
|
|
7709
|
+
}, Cs = { class: "uz-ocr-preview-box" }, ws = ["src"], Ts = { class: "uz-ocr-settings-form" }, Es = { class: "uz-settings-row" }, Ds = { class: "uz-settings-label" }, Os = {
|
|
7277
7710
|
key: 0,
|
|
7278
7711
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
7279
|
-
},
|
|
7712
|
+
}, ks = { class: "uz-settings-row" }, As = { class: "uz-settings-label" }, js = { class: "uz-settings-row" }, Ms = { class: "uz-settings-label" }, Ns = { class: "uz-ocr-right-col" }, Ps = { class: "uz-ocr-result-header" }, Fs = { class: "uz-result-title" }, Is = {
|
|
7280
7713
|
key: 0,
|
|
7281
7714
|
class: "uz-ocr-empty-state"
|
|
7282
|
-
},
|
|
7715
|
+
}, Ls = { class: "uz-empty-text" }, Rs = {
|
|
7283
7716
|
key: 1,
|
|
7284
7717
|
class: "uz-ocr-result-tabs"
|
|
7285
7718
|
};
|
|
7286
|
-
function
|
|
7719
|
+
function zs(e, t, n, s, u, d) {
|
|
7287
7720
|
let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
|
|
7288
|
-
return x(), a("div",
|
|
7721
|
+
return x(), a("div", hs, [o("div", gs, [e.rawImage ? (x(), a("div", ys, [l(m, {
|
|
7289
7722
|
value: e.imagePreviewTab,
|
|
7290
7723
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
7291
7724
|
type: "segment",
|
|
@@ -7295,21 +7728,21 @@ function ks(e, t, n, s, u, d) {
|
|
|
7295
7728
|
name: "processed",
|
|
7296
7729
|
tab: e.t("OCR.previewProcessed")
|
|
7297
7730
|
}, {
|
|
7298
|
-
default: N(() => [o("div",
|
|
7731
|
+
default: N(() => [o("div", bs, [o("img", {
|
|
7299
7732
|
src: e.processedImage,
|
|
7300
7733
|
alt: "Processed Preview",
|
|
7301
7734
|
class: "uz-ocr-preview-img"
|
|
7302
|
-
}, null, 8,
|
|
7735
|
+
}, null, 8, xs), e.preEnabled && e.preBinarize ? (x(), a("div", Ss, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : i("", !0)])]),
|
|
7303
7736
|
_: 1
|
|
7304
7737
|
}, 8, ["tab"]), l(p, {
|
|
7305
7738
|
name: "raw",
|
|
7306
7739
|
tab: e.t("OCR.previewRaw")
|
|
7307
7740
|
}, {
|
|
7308
|
-
default: N(() => [o("div",
|
|
7741
|
+
default: N(() => [o("div", Cs, [o("img", {
|
|
7309
7742
|
src: e.rawImage,
|
|
7310
7743
|
alt: "Raw Preview",
|
|
7311
7744
|
class: "uz-ocr-preview-img"
|
|
7312
|
-
}, null, 8,
|
|
7745
|
+
}, null, 8, ws)])]),
|
|
7313
7746
|
_: 1
|
|
7314
7747
|
}, 8, ["tab"])]),
|
|
7315
7748
|
_: 1
|
|
@@ -7343,7 +7776,7 @@ function ks(e, t, n, s, u, d) {
|
|
|
7343
7776
|
"directory-dnd": "",
|
|
7344
7777
|
class: "uz-w-full"
|
|
7345
7778
|
}, {
|
|
7346
|
-
default: N(() => [o("div",
|
|
7779
|
+
default: N(() => [o("div", _s, [
|
|
7347
7780
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7348
7781
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7349
7782
|
viewBox: "0 0 24 24",
|
|
@@ -7351,32 +7784,32 @@ function ks(e, t, n, s, u, d) {
|
|
|
7351
7784
|
height: "40",
|
|
7352
7785
|
fill: "currentColor"
|
|
7353
7786
|
}, [o("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
|
|
7354
|
-
o("div",
|
|
7787
|
+
o("div", vs, A(e.t("OCR.scan")), 1),
|
|
7355
7788
|
t[5] ||= o("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
7356
7789
|
])]),
|
|
7357
7790
|
_: 1
|
|
7358
|
-
}, 8, ["on-before-upload"])), o("div",
|
|
7791
|
+
}, 8, ["on-before-upload"])), o("div", Ts, [o("div", Es, [o("span", Ds, A(e.t("OCR.preprocess")), 1), l(_, {
|
|
7359
7792
|
value: e.preEnabled,
|
|
7360
7793
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
7361
7794
|
size: "small"
|
|
7362
|
-
}, null, 8, ["value"])]), e.preEnabled ? (x(), a("div",
|
|
7795
|
+
}, null, 8, ["value"])]), e.preEnabled ? (x(), a("div", Os, [o("div", ks, [o("span", As, A(e.t("OCR.scale")), 1), l(v, {
|
|
7363
7796
|
value: e.preScale,
|
|
7364
7797
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
7365
7798
|
options: e.scaleOptions,
|
|
7366
7799
|
size: "small",
|
|
7367
7800
|
class: "uz-settings-select"
|
|
7368
|
-
}, null, 8, ["value", "options"])]), o("div",
|
|
7801
|
+
}, null, 8, ["value", "options"])]), o("div", js, [o("span", Ms, A(e.t("OCR.contrast")), 1), l(_, {
|
|
7369
7802
|
value: e.preContrast,
|
|
7370
7803
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
7371
7804
|
size: "small"
|
|
7372
|
-
}, null, 8, ["value"])])])) : i("", !0)])]), o("div",
|
|
7805
|
+
}, null, 8, ["value"])])])) : i("", !0)])]), o("div", Ns, [o("div", Ps, [o("span", Fs, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), a("div", Rs, A(e.fullText), 1)) : (x(), a("div", Is, [t[7] ||= o("div", { class: "uz-empty-icon" }, "📝", -1), o("div", Ls, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
7373
7806
|
}
|
|
7374
|
-
var
|
|
7807
|
+
var Bs = /*#__PURE__*/ Z(ms, [["render", zs], ["__scopeId", "data-v-c7224ff5"]]), Vs = /* @__PURE__ */ dt({
|
|
7375
7808
|
UzActionButton: () => ft,
|
|
7376
7809
|
UzBack: () => br,
|
|
7377
|
-
UzBom: () =>
|
|
7378
|
-
UzCamera: () =>
|
|
7379
|
-
UzCircle: () =>
|
|
7810
|
+
UzBom: () => pi,
|
|
7811
|
+
UzCamera: () => ra,
|
|
7812
|
+
UzCircle: () => Xi,
|
|
7380
7813
|
UzDraggableForm: () => Nr,
|
|
7381
7814
|
UzForm: () => Or,
|
|
7382
7815
|
UzFormItem: () => wr,
|
|
@@ -7384,44 +7817,44 @@ var As = /*#__PURE__*/ Z(is, [["render", ks], ["__scopeId", "data-v-c7224ff5"]])
|
|
|
7384
7817
|
UzFormItemTimesPicker: () => qr,
|
|
7385
7818
|
UzFormItemUpload: () => zr,
|
|
7386
7819
|
UzIcon: () => Jt,
|
|
7387
|
-
UzOcr: () =>
|
|
7388
|
-
UzSearchBar: () =>
|
|
7389
|
-
UzSearchMobileBar: () =>
|
|
7390
|
-
UzSpin: () =>
|
|
7391
|
-
UzTable: () =>
|
|
7392
|
-
UzTableChild: () =>
|
|
7393
|
-
UzTableDrawer: () =>
|
|
7394
|
-
UzTableFile: () =>
|
|
7395
|
-
UzTableMobile: () =>
|
|
7396
|
-
UzTableQuestChild: () =>
|
|
7397
|
-
UzThumbnail: () =>
|
|
7398
|
-
UzWrap: () =>
|
|
7820
|
+
UzOcr: () => Bs,
|
|
7821
|
+
UzSearchBar: () => pa,
|
|
7822
|
+
UzSearchMobileBar: () => ya,
|
|
7823
|
+
UzSpin: () => Ba,
|
|
7824
|
+
UzTable: () => no,
|
|
7825
|
+
UzTableChild: () => fo,
|
|
7826
|
+
UzTableDrawer: () => To,
|
|
7827
|
+
UzTableFile: () => Vo,
|
|
7828
|
+
UzTableMobile: () => Fo,
|
|
7829
|
+
UzTableQuestChild: () => vo,
|
|
7830
|
+
UzThumbnail: () => Xo,
|
|
7831
|
+
UzWrap: () => ds,
|
|
7399
7832
|
commonStore: () => q,
|
|
7400
7833
|
fnActionReduction: () => _r,
|
|
7401
7834
|
fnActionSimplify: () => gr,
|
|
7402
|
-
fnAddThumbnail: () =>
|
|
7403
|
-
fnClearAllThumbnail: () =>
|
|
7404
|
-
fnDeleteThumbnail: () =>
|
|
7405
|
-
fnGetTableData: () =>
|
|
7406
|
-
fnOptionReduction: () =>
|
|
7407
|
-
fnOptionSimplify: () =>
|
|
7408
|
-
fnPrepareFormData: () =>
|
|
7409
|
-
fnPrepareTableData: () =>
|
|
7835
|
+
fnAddThumbnail: () => Go,
|
|
7836
|
+
fnClearAllThumbnail: () => qo,
|
|
7837
|
+
fnDeleteThumbnail: () => Ko,
|
|
7838
|
+
fnGetTableData: () => ka,
|
|
7839
|
+
fnOptionReduction: () => Fa,
|
|
7840
|
+
fnOptionSimplify: () => Pa,
|
|
7841
|
+
fnPrepareFormData: () => Ia,
|
|
7842
|
+
fnPrepareTableData: () => La,
|
|
7410
7843
|
fnRenderAction: () => lr,
|
|
7411
7844
|
fnSetLang: () => Ut,
|
|
7412
7845
|
fnSetTheme: () => Wt,
|
|
7413
|
-
fnSetThumbnail: () =>
|
|
7414
|
-
fnTableReduction: () =>
|
|
7415
|
-
fnTableSimplify: () =>
|
|
7416
|
-
fnTriggersReduction: () =>
|
|
7417
|
-
fnTriggersSimplify: () =>
|
|
7846
|
+
fnSetThumbnail: () => Uo,
|
|
7847
|
+
fnTableReduction: () => ja,
|
|
7848
|
+
fnTableSimplify: () => Aa,
|
|
7849
|
+
fnTriggersReduction: () => Na,
|
|
7850
|
+
fnTriggersSimplify: () => Ma,
|
|
7418
7851
|
i18n: () => K
|
|
7419
|
-
}),
|
|
7420
|
-
function
|
|
7421
|
-
|
|
7852
|
+
}), Hs = 3840, Us = 2160, Ws = C({ scale: 1 });
|
|
7853
|
+
function Gs(e, t) {
|
|
7854
|
+
Hs = e, Us = t;
|
|
7422
7855
|
}
|
|
7423
|
-
function
|
|
7424
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
7856
|
+
function Ks() {
|
|
7857
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = Hs, i = Us, a = parseFloat((r / i).toFixed(5));
|
|
7425
7858
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
7426
7859
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
7427
7860
|
e = t > 1 ? 1 : t;
|
|
@@ -7429,17 +7862,17 @@ function Is() {
|
|
|
7429
7862
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
7430
7863
|
e = n > 1 ? 1 : n;
|
|
7431
7864
|
}
|
|
7432
|
-
|
|
7865
|
+
Ws.scale = e;
|
|
7433
7866
|
}
|
|
7434
|
-
function
|
|
7435
|
-
let e = $e(
|
|
7867
|
+
function qs() {
|
|
7868
|
+
let e = $e(Ks, 200);
|
|
7436
7869
|
return e(), window.addEventListener("resize", e), () => {
|
|
7437
|
-
|
|
7870
|
+
Hs = 3840, Us = 2160, window.removeEventListener("resize", e);
|
|
7438
7871
|
};
|
|
7439
7872
|
}
|
|
7440
7873
|
//#endregion
|
|
7441
7874
|
//#region components/hooks/useThrottleFn.ts
|
|
7442
|
-
function
|
|
7875
|
+
function Js(e, t = 1e3) {
|
|
7443
7876
|
let r = w(e), i = n(() => et((...e) => r.value([...e]), t));
|
|
7444
7877
|
return b(() => {
|
|
7445
7878
|
i.value.cancel();
|
|
@@ -7451,16 +7884,16 @@ function Rs(e, t = 1e3) {
|
|
|
7451
7884
|
}
|
|
7452
7885
|
//#endregion
|
|
7453
7886
|
//#region components/hooks/useLocalStorage.ts
|
|
7454
|
-
function
|
|
7887
|
+
function Ys(e, t) {
|
|
7455
7888
|
return [w(G(e, t?.defaultValue)), (n) => {
|
|
7456
7889
|
n === void 0 ? Dt(e) : W(e, n, t?.expired || "1 Day");
|
|
7457
7890
|
}];
|
|
7458
7891
|
}
|
|
7459
7892
|
//#endregion
|
|
7460
7893
|
//#region components/hooks/useQuery.ts
|
|
7461
|
-
function
|
|
7894
|
+
function Xs(e, t, n) {
|
|
7462
7895
|
let r = `useQuery-${e}`, i = w(), a = w(), o = w(), s = w(!1), c = w("idle"), l = w(), u = w(0), d = w(0), f = () => {
|
|
7463
|
-
|
|
7896
|
+
Wn(), clearInterval(o.value), o.value = null;
|
|
7464
7897
|
}, p = async () => {
|
|
7465
7898
|
if (!s.value) {
|
|
7466
7899
|
h(!0, "loading");
|
|
@@ -7496,7 +7929,7 @@ function Bs(e, t, n) {
|
|
|
7496
7929
|
}, g = (e) => {
|
|
7497
7930
|
l.value = e;
|
|
7498
7931
|
}, _ = () => {
|
|
7499
|
-
|
|
7932
|
+
Wn(), i.value && i.value();
|
|
7500
7933
|
}, y = () => {
|
|
7501
7934
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
7502
7935
|
p();
|
|
@@ -7524,26 +7957,26 @@ function Bs(e, t, n) {
|
|
|
7524
7957
|
}
|
|
7525
7958
|
//#endregion
|
|
7526
7959
|
//#region package.json
|
|
7527
|
-
var
|
|
7528
|
-
async function
|
|
7960
|
+
var Zs = "0.1.121", Qs;
|
|
7961
|
+
async function $s() {
|
|
7529
7962
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7530
7963
|
method: "HEAD",
|
|
7531
7964
|
cache: "no-cache"
|
|
7532
7965
|
});
|
|
7533
7966
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
7534
7967
|
}
|
|
7535
|
-
async function
|
|
7536
|
-
let e = await
|
|
7537
|
-
|
|
7968
|
+
async function ec() {
|
|
7969
|
+
let e = await $s();
|
|
7970
|
+
Qs !== e && Gt(!0);
|
|
7538
7971
|
}
|
|
7539
|
-
async function
|
|
7540
|
-
|
|
7541
|
-
|
|
7972
|
+
async function tc() {
|
|
7973
|
+
Qs = await $s(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
7974
|
+
ec();
|
|
7542
7975
|
}, 6e4);
|
|
7543
7976
|
}
|
|
7544
7977
|
//#endregion
|
|
7545
7978
|
//#region components/create.ts
|
|
7546
|
-
function
|
|
7979
|
+
function nc({ components: e = [] } = {}) {
|
|
7547
7980
|
let t = [];
|
|
7548
7981
|
function n(e, t, n) {
|
|
7549
7982
|
e.component(t) || e.component(t, n);
|
|
@@ -7559,16 +7992,16 @@ function Ks({ components: e = [] } = {}) {
|
|
|
7559
7992
|
Kt(e), Ht(o), Ut(d), Wt(u), Vt({
|
|
7560
7993
|
icons: c,
|
|
7561
7994
|
iconDefault: l
|
|
7562
|
-
}), K.global.locale.value = d, a &&
|
|
7995
|
+
}), K.global.locale.value = d, a && tc(), t && Pn(r, t, n);
|
|
7563
7996
|
}
|
|
7564
7997
|
}
|
|
7565
7998
|
return {
|
|
7566
|
-
version:
|
|
7999
|
+
version: Zs,
|
|
7567
8000
|
install: r
|
|
7568
8001
|
};
|
|
7569
8002
|
}
|
|
7570
8003
|
//#endregion
|
|
7571
8004
|
//#region components/preset.ts
|
|
7572
|
-
var
|
|
8005
|
+
var rc = nc({ components: Object.keys(Vs).map((e) => Vs[e]) }), ic = rc.install;
|
|
7573
8006
|
//#endregion
|
|
7574
|
-
export {
|
|
8007
|
+
export { Kn as BLOB, qn as CUSTOM, Jn as FILE, Gn as GET, Y as POST, ft as UzActionButton, br as UzBack, pi as UzBom, ra as UzCamera, Xi as UzCircle, Nr as UzDraggableForm, Or as UzForm, wr as UzFormItem, Ur as UzFormItemImage, qr as UzFormItemTimesPicker, zr as UzFormItemUpload, Jt as UzIcon, Bs as UzOcr, pa as UzSearchBar, ya as UzSearchMobileBar, Ba as UzSpin, no as UzTable, fo as UzTableChild, To as UzTableDrawer, Vo as UzTableFile, Fo as UzTableMobile, vo as UzTableQuestChild, Xo as UzThumbnail, ds as UzWrap, q as commonStore, nc as create, cs as darkTheme, rc as default, _r as fnActionReduction, gr as fnActionSimplify, Go as fnAddThumbnail, Wn as fnCancelFetch, qo as fnClearAllThumbnail, Ks as fnComputedScale, Xt as fnCreateRouter, Dt as fnDelStorage, kt as fnDelStorageAll, Ot as fnDelStorageByPrefix, Ko as fnDeleteThumbnail, Et as fnDialog, U as fnErrorLog, zt as fnFilterByPinyinInitials, Mt as fnFormatTime, It as fnFormatUnits, Ft as fnFullScreen, G as fnGetStorage, ka as fnGetTableData, qs as fnListenerScale, Tt as fnNotification, Fa as fnOptionReduction, Pa as fnOptionSimplify, jt as fnPageModel2Naive, Ia as fnPrepareFormData, La as fnPrepareTableData, lr as fnRenderAction, At as fnScrollTop, Ut as fnSetLang, Gs as fnSetNormalWidthAndHeight, W as fnSetStorage, Wt as fnSetTheme, Uo as fnSetThumbnail, ja as fnTableReduction, Aa as fnTableSimplify, Pt as fnThrottle, Nt as fnTitle, Na as fnTriggersReduction, Ma as fnTriggersSimplify, K as i18n, ic as install, ss as lightTheme, Bt as mergeColumns, Yt as router, Ws as scaleStore, Jr as useDebounceFn, Ys as useLocalStorage, Xs as useQuery, Js as useThrottleFn };
|