cd-form 2.0.49 → 2.0.50
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/dist/cd-form.js +701 -701
- package/dist/cd-form.umd.cjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cd-form.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Nt, computed as Fe, resolveComponent as de, openBlock as x, createBlock as pe, normalizeClass as Qe, withCtx as R, renderSlot as er, createElementBlock as F, createElementVNode as f, normalizeStyle as St, toDisplayString as le, createCommentVNode as ke, createTextVNode as xe, withModifiers as pt, Fragment as Pe, renderList as ze, ref as se, watch as lt, nextTick as Mt, createVNode as V, withDirectives as Ja, withKeys as jr, vModelText as ln, createStaticVNode as $c, onMounted as vn, onUnmounted as cl, mergeProps as Oa, useCssVars as Vc, normalizeProps as kr, vShow as Vn, Teleport as Wl, Transition as Co, unref as Nr, reactive as br, inject as Hl, resolveDynamicComponent as nd, createSlots as On, provide as Nn, watchEffect as Gl, TransitionGroup as id, h as El, guardReactiveProps as ld, isRef as sd } from "vue";
|
|
2
|
-
import { MessagePlugin as
|
|
2
|
+
import { MessagePlugin as Ke, DialogPlugin as Xl } from "tdesign-vue-next";
|
|
3
3
|
import Fn from "vxe-table";
|
|
4
4
|
import od from "axios";
|
|
5
5
|
const ai = /* @__PURE__ */ Nt({
|
|
@@ -2652,7 +2652,7 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2652
2652
|
const ye = de("t-option"), Ne = de("t-select"), X = de("t-icon"), De = de("t-input"), fe = de("t-button"), Ee = de("t-loading"), Re = de("t-checkbox"), Me = de("t-tree"), At = de("t-tab-panel"), bt = de("t-tabs"), ta = de("t-dialog");
|
|
2653
2653
|
return x(), pe(ta, {
|
|
2654
2654
|
visible: s.value,
|
|
2655
|
-
"onUpdate:visible": oe[4] || (oe[4] = (
|
|
2655
|
+
"onUpdate:visible": oe[4] || (oe[4] = (Ye) => s.value = Ye),
|
|
2656
2656
|
header: "选择人员",
|
|
2657
2657
|
width: w.value,
|
|
2658
2658
|
footer: !0,
|
|
@@ -2667,16 +2667,16 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2667
2667
|
D.value && E.value.length > 0 ? (x(), F("div", tp, [
|
|
2668
2668
|
V(Ne, {
|
|
2669
2669
|
modelValue: u.value,
|
|
2670
|
-
"onUpdate:modelValue": oe[0] || (oe[0] = (
|
|
2670
|
+
"onUpdate:modelValue": oe[0] || (oe[0] = (Ye) => u.value = Ye),
|
|
2671
2671
|
placeholder: "选择组织",
|
|
2672
2672
|
style: { width: "200px" },
|
|
2673
2673
|
onChange: j
|
|
2674
2674
|
}, {
|
|
2675
2675
|
default: R(() => [
|
|
2676
|
-
(x(!0), F(Pe, null, ze(E.value, (
|
|
2677
|
-
key:
|
|
2678
|
-
value:
|
|
2679
|
-
label:
|
|
2676
|
+
(x(!0), F(Pe, null, ze(E.value, (Ye) => (x(), pe(ye, {
|
|
2677
|
+
key: Ye.id,
|
|
2678
|
+
value: Ye.id,
|
|
2679
|
+
label: Ye.displayName || Ye.name
|
|
2680
2680
|
}, null, 8, ["value", "label"]))), 128))
|
|
2681
2681
|
]),
|
|
2682
2682
|
_: 1
|
|
@@ -2685,7 +2685,7 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2685
2685
|
f("div", ap, [
|
|
2686
2686
|
V(De, {
|
|
2687
2687
|
modelValue: o.value,
|
|
2688
|
-
"onUpdate:modelValue": oe[1] || (oe[1] = (
|
|
2688
|
+
"onUpdate:modelValue": oe[1] || (oe[1] = (Ye) => o.value = Ye),
|
|
2689
2689
|
placeholder: "输入手机号/工号/姓名/部门/职位搜索",
|
|
2690
2690
|
clearable: "",
|
|
2691
2691
|
onInput: ve,
|
|
@@ -2725,13 +2725,13 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2725
2725
|
}),
|
|
2726
2726
|
oe[8] || (oe[8] = f("p", null, "未找到匹配的人员", -1))
|
|
2727
2727
|
])) : (x(), F("div", cp, [
|
|
2728
|
-
(x(!0), F(Pe, null, ze(_.value, (
|
|
2729
|
-
key:
|
|
2730
|
-
class: Qe(["cd-ps-result-item", { "cd-ps-selected": h.value.includes(
|
|
2731
|
-
onClick: (ea) => J(
|
|
2728
|
+
(x(!0), F(Pe, null, ze(_.value, (Ye) => (x(), F("div", {
|
|
2729
|
+
key: Ye.id,
|
|
2730
|
+
class: Qe(["cd-ps-result-item", { "cd-ps-selected": h.value.includes(Ye.id) }]),
|
|
2731
|
+
onClick: (ea) => J(Ye)
|
|
2732
2732
|
}, [
|
|
2733
2733
|
V(Re, {
|
|
2734
|
-
checked: h.value.includes(
|
|
2734
|
+
checked: h.value.includes(Ye.id),
|
|
2735
2735
|
onClick: oe[2] || (oe[2] = pt(() => {
|
|
2736
2736
|
}, ["stop"]))
|
|
2737
2737
|
}, null, 8, ["checked"]),
|
|
@@ -2739,11 +2739,11 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2739
2739
|
V(X, { name: "user" })
|
|
2740
2740
|
]),
|
|
2741
2741
|
f("div", dp, [
|
|
2742
|
-
f("div", hp, le(
|
|
2742
|
+
f("div", hp, le(Ye.displayName || Ye.name), 1),
|
|
2743
2743
|
f("div", vp, [
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2744
|
+
Ye.position ? (x(), F("span", mp, le(Ye.position), 1)) : ke("", !0),
|
|
2745
|
+
Ye.department ? (x(), F("span", pp, le(Ye.department), 1)) : ke("", !0),
|
|
2746
|
+
Ye.phone ? (x(), F("span", gp, le(Ye.phone), 1)) : ke("", !0)
|
|
2747
2747
|
])
|
|
2748
2748
|
])
|
|
2749
2749
|
], 10, up))), 128))
|
|
@@ -2751,24 +2751,24 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2751
2751
|
])) : (x(), pe(bt, {
|
|
2752
2752
|
key: 1,
|
|
2753
2753
|
modelValue: c.value,
|
|
2754
|
-
"onUpdate:modelValue": oe[3] || (oe[3] = (
|
|
2754
|
+
"onUpdate:modelValue": oe[3] || (oe[3] = (Ye) => c.value = Ye),
|
|
2755
2755
|
onChange: U
|
|
2756
2756
|
}, {
|
|
2757
2757
|
default: R(() => [
|
|
2758
|
-
(x(!0), F(Pe, null, ze(T.value, (
|
|
2759
|
-
key:
|
|
2760
|
-
value:
|
|
2761
|
-
label:
|
|
2758
|
+
(x(!0), F(Pe, null, ze(T.value, (Ye) => (x(), pe(At, {
|
|
2759
|
+
key: Ye.key,
|
|
2760
|
+
value: Ye.key,
|
|
2761
|
+
label: Ye.name
|
|
2762
2762
|
}, {
|
|
2763
2763
|
default: R(() => {
|
|
2764
2764
|
var ea;
|
|
2765
2765
|
return [
|
|
2766
2766
|
f("div", xp, [
|
|
2767
|
-
((ea = C.value[
|
|
2767
|
+
((ea = C.value[Ye.key]) == null ? void 0 : ea.length) > 0 ? (x(), pe(Me, {
|
|
2768
2768
|
key: 0,
|
|
2769
2769
|
ref_for: !0,
|
|
2770
|
-
ref: (Tt) => N(
|
|
2771
|
-
data: C.value[
|
|
2770
|
+
ref: (Tt) => N(Ye.key, Tt),
|
|
2771
|
+
data: C.value[Ye.key],
|
|
2772
2772
|
keys: { value: "id", label: "name", children: "children" },
|
|
2773
2773
|
hover: "",
|
|
2774
2774
|
checkable: "",
|
|
@@ -2783,7 +2783,7 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2783
2783
|
class: Qe(["cd-ps-node", { "cd-ps-node-user": Tt.data.isUser }])
|
|
2784
2784
|
}, [
|
|
2785
2785
|
V(X, {
|
|
2786
|
-
name: Tt.data.isUser ? "user" :
|
|
2786
|
+
name: Tt.data.isUser ? "user" : Ye.icon || "folder"
|
|
2787
2787
|
}, null, 8, ["name"]),
|
|
2788
2788
|
f("span", _p, [
|
|
2789
2789
|
xe(le(Tt.label) + " ", 1),
|
|
@@ -2795,7 +2795,7 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2795
2795
|
size: "small",
|
|
2796
2796
|
variant: "text",
|
|
2797
2797
|
class: "cd-ps-load-btn",
|
|
2798
|
-
onClick: pt((ht) => B(Tt,
|
|
2798
|
+
onClick: pt((ht) => B(Tt, Ye.key), ["stop"])
|
|
2799
2799
|
}, {
|
|
2800
2800
|
default: R(() => [...oe[9] || (oe[9] = [
|
|
2801
2801
|
xe("显示人员", -1)
|
|
@@ -2808,7 +2808,7 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2808
2808
|
_: 2
|
|
2809
2809
|
}, 1032, ["data", "value"])) : (x(), F("div", wp, [
|
|
2810
2810
|
V(X, {
|
|
2811
|
-
name:
|
|
2811
|
+
name: Ye.icon || "folder-open",
|
|
2812
2812
|
size: "48px",
|
|
2813
2813
|
style: { color: "#ddd" }
|
|
2814
2814
|
}, null, 8, ["name"]),
|
|
@@ -2848,25 +2848,25 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2848
2848
|
}),
|
|
2849
2849
|
oe[13] || (oe[13] = f("p", null, "暂无选择", -1))
|
|
2850
2850
|
])) : (x(), F("div", Fp, [
|
|
2851
|
-
(x(!0), F(Pe, null, ze(A.value, (
|
|
2852
|
-
key:
|
|
2853
|
-
class: Qe(["cd-ps-selected-item", { "cd-ps-dept-item": !
|
|
2851
|
+
(x(!0), F(Pe, null, ze(A.value, (Ye) => (x(), F("div", {
|
|
2852
|
+
key: Ye.id,
|
|
2853
|
+
class: Qe(["cd-ps-selected-item", { "cd-ps-dept-item": !Ye.isUser }])
|
|
2854
2854
|
}, [
|
|
2855
2855
|
f("div", Ap, [
|
|
2856
2856
|
f("div", {
|
|
2857
|
-
class: Qe(["cd-ps-avatar", { "cd-ps-avatar-dept": !
|
|
2857
|
+
class: Qe(["cd-ps-avatar", { "cd-ps-avatar-dept": !Ye.isUser }])
|
|
2858
2858
|
}, [
|
|
2859
2859
|
V(X, {
|
|
2860
|
-
name:
|
|
2860
|
+
name: Ye.isUser ? "user" : "folder"
|
|
2861
2861
|
}, null, 8, ["name"])
|
|
2862
2862
|
], 2),
|
|
2863
2863
|
f("div", Dp, [
|
|
2864
|
-
f("div", Ip, le(
|
|
2864
|
+
f("div", Ip, le(Ye.displayName || Ye.name), 1),
|
|
2865
2865
|
f("div", Op, [
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
!
|
|
2866
|
+
Ye.isUser && Ye.position ? (x(), F("span", Rp, le(Ye.position), 1)) : ke("", !0),
|
|
2867
|
+
Ye.isUser && Ye.department ? (x(), F("span", Np, le(Ye.department), 1)) : ke("", !0),
|
|
2868
|
+
Ye.isUser ? ke("", !0) : (x(), F("span", Mp, le(Ye.typeName || "部门"), 1)),
|
|
2869
|
+
!Ye.isUser && Ye.userCount ? (x(), F("span", Pp, le(Ye.userCount) + "人", 1)) : ke("", !0)
|
|
2870
2870
|
])
|
|
2871
2871
|
])
|
|
2872
2872
|
]),
|
|
@@ -2874,7 +2874,7 @@ const cd = { class: "cd-usercard__header" }, ud = { class: "cd-usercard__avatar-
|
|
|
2874
2874
|
size: "small",
|
|
2875
2875
|
variant: "text",
|
|
2876
2876
|
shape: "circle",
|
|
2877
|
-
onClick: (ea) => z(
|
|
2877
|
+
onClick: (ea) => z(Ye.id)
|
|
2878
2878
|
}, {
|
|
2879
2879
|
icon: R(() => [
|
|
2880
2880
|
V(X, { name: "close" })
|
|
@@ -4642,11 +4642,11 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
4642
4642
|
});
|
|
4643
4643
|
const _ = () => {
|
|
4644
4644
|
if (!m.value) {
|
|
4645
|
-
|
|
4645
|
+
Ke.warning("请至少为一列选择对应的字段");
|
|
4646
4646
|
return;
|
|
4647
4647
|
}
|
|
4648
4648
|
if (v.value.length === 0) {
|
|
4649
|
-
|
|
4649
|
+
Ke.warning("请输入要添加的数据");
|
|
4650
4650
|
return;
|
|
4651
4651
|
}
|
|
4652
4652
|
const E = v.value.map((k) => {
|
|
@@ -4675,10 +4675,10 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
4675
4675
|
}
|
|
4676
4676
|
}), D;
|
|
4677
4677
|
});
|
|
4678
|
-
r("add-data", E),
|
|
4678
|
+
r("add-data", E), Ke.success(`成功添加 ${E.length} 条数据`), s.value = "", u.value = [], n.value = !1;
|
|
4679
4679
|
}, T = () => {
|
|
4680
4680
|
if (!l.value.trim()) {
|
|
4681
|
-
|
|
4681
|
+
Ke.warning("请输入描述信息");
|
|
4682
4682
|
return;
|
|
4683
4683
|
}
|
|
4684
4684
|
o.value = !0, r("ai-parse", l.value.trim()), setTimeout(() => {
|
|
@@ -4975,11 +4975,11 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
4975
4975
|
setup(e, { emit: a }) {
|
|
4976
4976
|
var zt, ba, Yt, Fa, Ua;
|
|
4977
4977
|
const t = e, r = se(((zt = t.field.__config__) == null ? void 0 : zt.active) || ((Fa = (Yt = (ba = t.field.__config__) == null ? void 0 : ba.children) == null ? void 0 : Yt[0]) == null ? void 0 : Fa.name) || "1"), n = se(((Ua = t.field.__config__) == null ? void 0 : Ua.active) || []), i = se(!1), l = se([]), s = async () => {
|
|
4978
|
-
var he, te, Te, Xe,
|
|
4978
|
+
var he, te, Te, Xe, je;
|
|
4979
4979
|
if (((he = t.field.__config__) == null ? void 0 : he.cdkey) === "billSelector") {
|
|
4980
4980
|
i.value = !0;
|
|
4981
4981
|
try {
|
|
4982
|
-
const st = await $a.get("/visualdev/release/search/published", { params: { keyword: "" } }), gt = ((Te = (te = st == null ? void 0 : st.data) == null ? void 0 : te.data) == null ? void 0 : Te.list) || ((Xe = st == null ? void 0 : st.data) == null ? void 0 : Xe.data) || ((
|
|
4982
|
+
const st = await $a.get("/visualdev/release/search/published", { params: { keyword: "" } }), gt = ((Te = (te = st == null ? void 0 : st.data) == null ? void 0 : te.data) == null ? void 0 : Te.list) || ((Xe = st == null ? void 0 : st.data) == null ? void 0 : Xe.data) || ((je = st == null ? void 0 : st.data) == null ? void 0 : je.list) || (st == null ? void 0 : st.data) || [];
|
|
4983
4983
|
l.value = Array.isArray(gt) ? gt : [];
|
|
4984
4984
|
} catch (st) {
|
|
4985
4985
|
console.error("[BillSelector] Failed to load:", st);
|
|
@@ -5082,8 +5082,8 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5082
5082
|
if (!he || I.value !== "vxeSubGrid") return [];
|
|
5083
5083
|
const te = t.formModel[he], Te = Array.isArray(te) ? te : [];
|
|
5084
5084
|
if (!re.value) {
|
|
5085
|
-
const Xe = [...Te],
|
|
5086
|
-
if (!(
|
|
5085
|
+
const Xe = [...Te], je = Xe[Xe.length - 1];
|
|
5086
|
+
if (!(je && je._isEmpty)) {
|
|
5087
5087
|
const gt = {
|
|
5088
5088
|
_X_ROW_KEY: `__empty_row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}__`,
|
|
5089
5089
|
_isEmpty: !0
|
|
@@ -5114,18 +5114,18 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5114
5114
|
}), he.forEach((Te) => {
|
|
5115
5115
|
const Xe = Te.__config__;
|
|
5116
5116
|
if (!Xe || Xe.noShow) return;
|
|
5117
|
-
const
|
|
5118
|
-
if (!
|
|
5117
|
+
const je = Te.__vModel__ || Te.field;
|
|
5118
|
+
if (!je) return;
|
|
5119
5119
|
const st = {
|
|
5120
5120
|
...Te,
|
|
5121
|
-
__vModel__:
|
|
5121
|
+
__vModel__: je,
|
|
5122
5122
|
// 确保有 __vModel__ 属性
|
|
5123
5123
|
__config__: {
|
|
5124
5124
|
...Xe,
|
|
5125
5125
|
layout: "colFormItem"
|
|
5126
5126
|
}
|
|
5127
5127
|
}, gt = {
|
|
5128
|
-
field:
|
|
5128
|
+
field: je,
|
|
5129
5129
|
title: Te.title || Xe.label,
|
|
5130
5130
|
width: Te.width || Xe.tableWidth || 150,
|
|
5131
5131
|
align: Te.align || Xe.tableAlign || "left",
|
|
@@ -5249,7 +5249,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5249
5249
|
body: { options: Te }
|
|
5250
5250
|
};
|
|
5251
5251
|
}, S = ({ menu: he, row: te, column: Te }) => {
|
|
5252
|
-
var Xe,
|
|
5252
|
+
var Xe, je, st, gt, Ct;
|
|
5253
5253
|
switch (he.code) {
|
|
5254
5254
|
case "insertRowAbove":
|
|
5255
5255
|
A(te, "above");
|
|
@@ -5271,7 +5271,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5271
5271
|
}
|
|
5272
5272
|
break;
|
|
5273
5273
|
case "exportCsv":
|
|
5274
|
-
(st = c.value) == null || st.exportData({ type: "csv", filename: ((
|
|
5274
|
+
(st = c.value) == null || st.exportData({ type: "csv", filename: ((je = t.field.__config__) == null ? void 0 : je.label) || "export" });
|
|
5275
5275
|
break;
|
|
5276
5276
|
case "copyTableData": {
|
|
5277
5277
|
const Pt = Array.isArray(E.value) ? E.value.filter((Ca) => !Ca._isEmpty) : [], Aa = (t.field.children || ((gt = t.field.__config__) == null ? void 0 : gt.children) || []).filter((Ca) => Ca.__vModel__ || Ca.field), Da = Aa.map((Ca) => {
|
|
@@ -5331,10 +5331,10 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5331
5331
|
Te.splice(gt, 0, Xe), q("change", t.field.__vModel__, [...Te]);
|
|
5332
5332
|
}, M = (he) => {
|
|
5333
5333
|
if (!t.field.__vModel__) return;
|
|
5334
|
-
const te = Array.isArray(E.value) ? E.value.filter((
|
|
5334
|
+
const te = Array.isArray(E.value) ? E.value.filter((je) => !je._isEmpty) : [], Te = {
|
|
5335
5335
|
...he,
|
|
5336
5336
|
_X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
5337
|
-
}, Xe = te.findIndex((
|
|
5337
|
+
}, Xe = te.findIndex((je) => je === he || je._X_ROW_KEY === (he == null ? void 0 : he._X_ROW_KEY));
|
|
5338
5338
|
Xe !== -1 ? te.splice(Xe + 1, 0, Te) : te.push(Te), q("change", t.field.__vModel__, [...te]);
|
|
5339
5339
|
}, L = (he) => {
|
|
5340
5340
|
if (!t.field.__vModel__) return;
|
|
@@ -5343,14 +5343,14 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5343
5343
|
}, U = () => {
|
|
5344
5344
|
const he = t.field.__vModel__;
|
|
5345
5345
|
if (!he) return;
|
|
5346
|
-
const te = Array.isArray(E.value) ? E.value.filter((
|
|
5346
|
+
const te = Array.isArray(E.value) ? E.value.filter((je) => !je._isEmpty) : [], Te = {
|
|
5347
5347
|
_X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
5348
5348
|
};
|
|
5349
|
-
(t.field.children || t.field.__config__.children || []).forEach((
|
|
5349
|
+
(t.field.children || t.field.__config__.children || []).forEach((je) => {
|
|
5350
5350
|
var Ct;
|
|
5351
|
-
const st =
|
|
5351
|
+
const st = je.__vModel__ || je.field;
|
|
5352
5352
|
if (!st) return;
|
|
5353
|
-
switch ((Ct =
|
|
5353
|
+
switch ((Ct = je.__config__) == null ? void 0 : Ct.cdkey) {
|
|
5354
5354
|
case "input":
|
|
5355
5355
|
case "textarea":
|
|
5356
5356
|
case "work_company":
|
|
@@ -5369,7 +5369,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5369
5369
|
case "checkbox":
|
|
5370
5370
|
case "select":
|
|
5371
5371
|
case "edu_degree":
|
|
5372
|
-
Te[st] =
|
|
5372
|
+
Te[st] = je.multiple ? [] : null;
|
|
5373
5373
|
break;
|
|
5374
5374
|
case "date":
|
|
5375
5375
|
case "datetime":
|
|
@@ -5386,8 +5386,8 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5386
5386
|
return;
|
|
5387
5387
|
const te = t.field.__vModel__;
|
|
5388
5388
|
if (!te) return;
|
|
5389
|
-
const Xe = (Array.isArray(E.value) ? E.value.filter((
|
|
5390
|
-
(
|
|
5389
|
+
const Xe = (Array.isArray(E.value) ? E.value.filter((je) => !je._isEmpty) : []).filter(
|
|
5390
|
+
(je) => !he.includes(je) && !je._isEmpty
|
|
5391
5391
|
);
|
|
5392
5392
|
q("change", te, Xe), await c.value.clearCheckboxRow();
|
|
5393
5393
|
}, ie = async () => {
|
|
@@ -5396,11 +5396,11 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5396
5396
|
if (!he || he.length === 0 || !t.field.__vModel__) return;
|
|
5397
5397
|
const Te = Array.isArray(E.value) ? [...E.value] : [];
|
|
5398
5398
|
he.forEach((Xe) => {
|
|
5399
|
-
const
|
|
5399
|
+
const je = {
|
|
5400
5400
|
...Xe,
|
|
5401
5401
|
_X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
5402
5402
|
};
|
|
5403
|
-
Te.push(
|
|
5403
|
+
Te.push(je);
|
|
5404
5404
|
}), E.value = Te, await c.value.clearCheckboxRow();
|
|
5405
5405
|
}, ve = () => {
|
|
5406
5406
|
if (!c.value) return;
|
|
@@ -5410,8 +5410,8 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5410
5410
|
if (he._isEmpty && Object.keys(he).some((Te) => Te === "_X_ROW_KEY" || Te === "_isEmpty" ? !1 : he[Te] !== null && he[Te] !== void 0 && he[Te] !== "")) {
|
|
5411
5411
|
const Te = t.field.__vModel__;
|
|
5412
5412
|
if (!Te) return;
|
|
5413
|
-
const Xe = Array.isArray(E.value) ? E.value.filter((st) => !st._isEmpty) : [],
|
|
5414
|
-
delete
|
|
5413
|
+
const Xe = Array.isArray(E.value) ? E.value.filter((st) => !st._isEmpty) : [], je = { ...he };
|
|
5414
|
+
delete je._isEmpty, je._X_ROW_KEY = `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, Xe.push(je), q("change", Te, Xe);
|
|
5415
5415
|
}
|
|
5416
5416
|
}, ge = (he) => {
|
|
5417
5417
|
if (!t.field.__vModel__) return;
|
|
@@ -5436,15 +5436,15 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5436
5436
|
const Te = /* @__PURE__ */ new Date();
|
|
5437
5437
|
if (I.value === "date" || I.value === "datePicker")
|
|
5438
5438
|
if (t.field.type === "datetime") {
|
|
5439
|
-
const Xe = Te.getFullYear(),
|
|
5440
|
-
te = `${Xe}-${
|
|
5439
|
+
const Xe = Te.getFullYear(), je = String(Te.getMonth() + 1).padStart(2, "0"), st = String(Te.getDate()).padStart(2, "0"), gt = String(Te.getHours()).padStart(2, "0"), Ct = String(Te.getMinutes()).padStart(2, "0"), Pt = String(Te.getSeconds()).padStart(2, "0");
|
|
5440
|
+
te = `${Xe}-${je}-${st} ${gt}:${Ct}:${Pt}`;
|
|
5441
5441
|
} else {
|
|
5442
|
-
const Xe = Te.getFullYear(),
|
|
5443
|
-
te = `${Xe}-${
|
|
5442
|
+
const Xe = Te.getFullYear(), je = String(Te.getMonth() + 1).padStart(2, "0"), st = String(Te.getDate()).padStart(2, "0");
|
|
5443
|
+
te = `${Xe}-${je}-${st}`;
|
|
5444
5444
|
}
|
|
5445
5445
|
else if (I.value === "time") {
|
|
5446
|
-
const Xe = String(Te.getHours()).padStart(2, "0"),
|
|
5447
|
-
te = `${Xe}:${
|
|
5446
|
+
const Xe = String(Te.getHours()).padStart(2, "0"), je = String(Te.getMinutes()).padStart(2, "0"), st = String(Te.getSeconds()).padStart(2, "0");
|
|
5447
|
+
te = `${Xe}:${je}:${st}`;
|
|
5448
5448
|
}
|
|
5449
5449
|
he && (t.formModel[he] = te);
|
|
5450
5450
|
}
|
|
@@ -5459,11 +5459,11 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5459
5459
|
const he = t.field.relationField, te = t.field.showField, Te = t.field.aggregation;
|
|
5460
5460
|
if (!he || !te) return "";
|
|
5461
5461
|
const Xe = he + "_data";
|
|
5462
|
-
let
|
|
5463
|
-
if (
|
|
5462
|
+
let je = t.formModel[Xe];
|
|
5463
|
+
if (je || (je = t.formModel[he]), !je)
|
|
5464
5464
|
return "";
|
|
5465
|
-
if (Array.isArray(
|
|
5466
|
-
const st =
|
|
5465
|
+
if (Array.isArray(je)) {
|
|
5466
|
+
const st = je.map((gt) => typeof gt == "object" && gt !== null ? gt[te] : gt).filter((gt) => gt != null);
|
|
5467
5467
|
if (Te) {
|
|
5468
5468
|
const gt = st.map((Ct) => parseFloat(Ct)).filter((Ct) => !isNaN(Ct));
|
|
5469
5469
|
switch (Te) {
|
|
@@ -5483,7 +5483,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5483
5483
|
}
|
|
5484
5484
|
return st.join(", ");
|
|
5485
5485
|
}
|
|
5486
|
-
return typeof
|
|
5486
|
+
return typeof je == "object" && je !== null ? je[te] || "" : je || "";
|
|
5487
5487
|
}), W = (he) => {
|
|
5488
5488
|
switch (he) {
|
|
5489
5489
|
case "datetime":
|
|
@@ -5507,23 +5507,23 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5507
5507
|
if (he == null || he === "" || typeof he == "string" && /^\d{4}-\d{2}/.test(he)) return he;
|
|
5508
5508
|
const Te = typeof he == "number" || he instanceof Date ? new Date(he) : null;
|
|
5509
5509
|
if (!Te || isNaN(Te.getTime())) return he;
|
|
5510
|
-
const Xe = (Da) => String(Da).padStart(2, "0"),
|
|
5510
|
+
const Xe = (Da) => String(Da).padStart(2, "0"), je = Te.getFullYear(), st = Xe(Te.getMonth() + 1), gt = Xe(Te.getDate()), Ct = Xe(Te.getHours()), Pt = Xe(Te.getMinutes()), Aa = Xe(Te.getSeconds());
|
|
5511
5511
|
switch (te) {
|
|
5512
5512
|
case "datetime":
|
|
5513
|
-
return `${
|
|
5513
|
+
return `${je}-${st}-${gt} ${Ct}:${Pt}:${Aa}`;
|
|
5514
5514
|
case "month":
|
|
5515
|
-
return `${
|
|
5515
|
+
return `${je}-${st}`;
|
|
5516
5516
|
case "year":
|
|
5517
|
-
return `${
|
|
5517
|
+
return `${je}`;
|
|
5518
5518
|
default:
|
|
5519
|
-
return `${
|
|
5519
|
+
return `${je}-${st}-${gt}`;
|
|
5520
5520
|
}
|
|
5521
5521
|
}, ee = (he) => {
|
|
5522
5522
|
var Xe;
|
|
5523
5523
|
const te = t.field.__vModel__ || "", Te = (Xe = t.field.__config__) == null ? void 0 : Xe.cdkey;
|
|
5524
5524
|
if (Te === "date" || Te === "datePicker" || Te === "time" || Te === "dateRange" || Te === "rangeTime") {
|
|
5525
|
-
const
|
|
5526
|
-
|
|
5525
|
+
const je = ne(B.value, t.field.type);
|
|
5526
|
+
je !== B.value && (t.formModel[te] = je), q("change", te, je);
|
|
5527
5527
|
} else
|
|
5528
5528
|
q("change", te, he);
|
|
5529
5529
|
}, oe = (he) => {
|
|
@@ -5571,7 +5571,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5571
5571
|
q("change", he, null);
|
|
5572
5572
|
const te = he.replace(/Id$/, "Name");
|
|
5573
5573
|
t.formModel[te] !== void 0 && q("change", te, "");
|
|
5574
|
-
}, bt = Hl("relationFormHandlers", null), ta = Hl("dynamicFieldOptions", se({})),
|
|
5574
|
+
}, bt = Hl("relationFormHandlers", null), ta = Hl("dynamicFieldOptions", se({})), Ye = (he) => {
|
|
5575
5575
|
var Te;
|
|
5576
5576
|
const te = (Te = ta.value) == null ? void 0 : Te[he.__vModel__];
|
|
5577
5577
|
return Array.isArray(te) && te.length > 0 ? te : Array.isArray(he.options) ? he.options : [];
|
|
@@ -5591,25 +5591,25 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5591
5591
|
if (!t.field.__vModel__) return;
|
|
5592
5592
|
const te = {};
|
|
5593
5593
|
(t.field.__config__.children || []).forEach((Xe) => {
|
|
5594
|
-
const
|
|
5595
|
-
if (!
|
|
5594
|
+
const je = Xe.__vModel__;
|
|
5595
|
+
if (!je) return;
|
|
5596
5596
|
switch (Xe.__config__.cdkey) {
|
|
5597
5597
|
case "input":
|
|
5598
5598
|
case "textarea":
|
|
5599
|
-
te[
|
|
5599
|
+
te[je] = "";
|
|
5600
5600
|
break;
|
|
5601
5601
|
case "number":
|
|
5602
|
-
te[
|
|
5602
|
+
te[je] = 0;
|
|
5603
5603
|
break;
|
|
5604
5604
|
case "switch":
|
|
5605
|
-
te[
|
|
5605
|
+
te[je] = !1;
|
|
5606
5606
|
break;
|
|
5607
5607
|
case "checkbox":
|
|
5608
5608
|
case "select":
|
|
5609
|
-
te[
|
|
5609
|
+
te[je] = Xe.multiple ? [] : null;
|
|
5610
5610
|
break;
|
|
5611
5611
|
default:
|
|
5612
|
-
te[
|
|
5612
|
+
te[je] = null;
|
|
5613
5613
|
}
|
|
5614
5614
|
});
|
|
5615
5615
|
const Te = Array.isArray(g.value) ? [...g.value] : [];
|
|
@@ -5630,7 +5630,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5630
5630
|
he.value === "batchRemove" && (g.value = []), q("change", `__btn_${he.value}__`, { btn: he, data: g.value });
|
|
5631
5631
|
};
|
|
5632
5632
|
return (he, te) => {
|
|
5633
|
-
const Te = de("t-input"), Xe = de("t-textarea"),
|
|
5633
|
+
const Te = de("t-input"), Xe = de("t-textarea"), je = de("t-input-number"), st = de("t-select"), gt = de("t-date-picker"), Ct = de("t-date-range-picker"), Pt = de("t-time-picker"), Aa = de("t-time-range-picker"), Da = de("t-switch"), Tr = de("vxe-rate"), Ca = de("t-radio"), fr = de("t-radio-group"), rn = de("t-checkbox"), Fr = de("t-checkbox-group"), Ga = de("t-cascader"), _a = de("t-tree-select"), Ar = de("t-auto-complete"), nn = de("t-upload"), O = de("t-button"), Z = de("t-color-picker"), H = de("t-slider"), K = de("t-progress"), Q = de("t-alert"), ae = de("t-link"), we = de("t-tag-input"), Ie = de("t-option"), _e = de("t-dropdown-item"), be = de("t-dropdown-menu"), Se = de("t-dropdown"), Be = de("vxe-grid"), We = de("render-form-item", !0), tt = de("t-row"), $e = de("t-divider"), Ze = de("t-tab-panel"), ct = de("t-tabs"), Wt = de("t-collapse-panel"), qt = de("t-collapse"), fa = de("t-popconfirm"), Dr = de("t-space"), Hr = de("t-table");
|
|
5634
5634
|
return e.field.__config__.layout === "colFormItem" ? (x(), pe(nd(e.tableMode ? "div" : "t-form-item"), Oa({
|
|
5635
5635
|
key: 0,
|
|
5636
5636
|
class: e.tableMode ? "table-cell-editor" : ""
|
|
@@ -5693,7 +5693,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5693
5693
|
onInput: oe,
|
|
5694
5694
|
onClear: ye,
|
|
5695
5695
|
onChange: ee
|
|
5696
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : I.value === "number" ? (x(), pe(
|
|
5696
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : I.value === "number" ? (x(), pe(je, {
|
|
5697
5697
|
key: 3,
|
|
5698
5698
|
modelValue: B.value,
|
|
5699
5699
|
"onUpdate:modelValue": te[3] || (te[3] = (Ue) => B.value = Ue),
|
|
@@ -5848,7 +5848,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
5848
5848
|
clearable: e.field.clearable !== !1,
|
|
5849
5849
|
filterable: e.field.filterable,
|
|
5850
5850
|
multiple: e.field.multiple,
|
|
5851
|
-
data:
|
|
5851
|
+
data: Ye(e.field),
|
|
5852
5852
|
"tree-props": e.field.props || { keys: { label: "label", value: "value", children: "children" } },
|
|
5853
5853
|
"popup-props": { attach: e.tableMode ? "body" : void 0 },
|
|
5854
5854
|
onChange: ee,
|
|
@@ -6157,7 +6157,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
6157
6157
|
]),
|
|
6158
6158
|
_: 2
|
|
6159
6159
|
}, 1024),
|
|
6160
|
-
V(
|
|
6160
|
+
V(be, null, {
|
|
6161
6161
|
default: R(() => [
|
|
6162
6162
|
(x(!0), F(Pe, null, ze(at.children.filter((ut) => ut.show !== !1), (ut) => (x(), pe(_e, {
|
|
6163
6163
|
key: ut.value || Math.random(),
|
|
@@ -6216,7 +6216,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
6216
6216
|
e.field.__config__.showLabel ? (x(), F("div", t_, [
|
|
6217
6217
|
f("span", a_, le(e.field.__config__.label), 1)
|
|
6218
6218
|
])) : ke("", !0),
|
|
6219
|
-
V(
|
|
6219
|
+
V(tt, {
|
|
6220
6220
|
gutter: 0,
|
|
6221
6221
|
class: "cd-row",
|
|
6222
6222
|
justify: e.field.justify || "start",
|
|
@@ -6276,7 +6276,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
6276
6276
|
label: at.title
|
|
6277
6277
|
}, {
|
|
6278
6278
|
default: R(() => [
|
|
6279
|
-
V(
|
|
6279
|
+
V(tt, {
|
|
6280
6280
|
gutter: 0,
|
|
6281
6281
|
class: "cd-row"
|
|
6282
6282
|
}, {
|
|
@@ -6361,7 +6361,7 @@ const wx = { class: "cd-relation-form" }, bx = { class: "input-wrapper" }, Cx =
|
|
|
6361
6361
|
header: at.title
|
|
6362
6362
|
}, {
|
|
6363
6363
|
default: R(() => [
|
|
6364
|
-
V(
|
|
6364
|
+
V(tt, {
|
|
6365
6365
|
gutter: 0,
|
|
6366
6366
|
class: "cd-row"
|
|
6367
6367
|
}, {
|
|
@@ -8291,10 +8291,10 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8291
8291
|
return c || (c = {});
|
|
8292
8292
|
}
|
|
8293
8293
|
function o(O, Z) {
|
|
8294
|
-
if (O[0] == 80 && O[1] == 75) return
|
|
8294
|
+
if (O[0] == 80 && O[1] == 75) return je(O, Z);
|
|
8295
8295
|
if ((O[0] | 32) == 109 && (O[1] | 32) == 105) return fr(O, Z);
|
|
8296
8296
|
if (O.length < 512) throw new Error("CFB file size " + O.length + " < 512");
|
|
8297
|
-
var H = 3, K = 512, Q = 0, ae = 0, we = 0, Ie = 0, _e = 0,
|
|
8297
|
+
var H = 3, K = 512, Q = 0, ae = 0, we = 0, Ie = 0, _e = 0, be = [], Se = (
|
|
8298
8298
|
/*::(*/
|
|
8299
8299
|
O.slice(0, 512)
|
|
8300
8300
|
);
|
|
@@ -8308,7 +8308,7 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8308
8308
|
K = 4096;
|
|
8309
8309
|
break;
|
|
8310
8310
|
case 0:
|
|
8311
|
-
if (Be[1] == 0) return
|
|
8311
|
+
if (Be[1] == 0) return je(O, Z);
|
|
8312
8312
|
default:
|
|
8313
8313
|
throw new Error("Major Version: Expected 3 or 4 saw " + H);
|
|
8314
8314
|
}
|
|
@@ -8320,15 +8320,15 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8320
8320
|
));
|
|
8321
8321
|
var We = O.slice(0, K);
|
|
8322
8322
|
d(Se, H);
|
|
8323
|
-
var
|
|
8324
|
-
if (H === 3 &&
|
|
8323
|
+
var tt = Se.read_shift(4, "i");
|
|
8324
|
+
if (H === 3 && tt !== 0) throw new Error("# Directory Sectors: Expected 0 saw " + tt);
|
|
8325
8325
|
Se.l += 4, we = Se.read_shift(4, "i"), Se.l += 4, Se.chk("00100000", "Mini Stream Cutoff Size: "), Ie = Se.read_shift(4, "i"), Q = Se.read_shift(4, "i"), _e = Se.read_shift(4, "i"), ae = Se.read_shift(4, "i");
|
|
8326
8326
|
for (var $e = -1, Ze = 0; Ze < 109 && ($e = Se.read_shift(4, "i"), !($e < 0)); ++Ze)
|
|
8327
|
-
|
|
8327
|
+
be[Ze] = $e;
|
|
8328
8328
|
var ct = v(O, K);
|
|
8329
|
-
_(_e, ae, ct, K,
|
|
8330
|
-
var Wt = E(ct, we,
|
|
8331
|
-
Wt[we].name = "!Directory", Q > 0 && Ie !== U && (Wt[Ie].name = "!MiniFAT"), Wt[
|
|
8329
|
+
_(_e, ae, ct, K, be);
|
|
8330
|
+
var Wt = E(ct, we, be, K);
|
|
8331
|
+
Wt[we].name = "!Directory", Q > 0 && Ie !== U && (Wt[Ie].name = "!MiniFAT"), Wt[be[0]].name = "!FAT", Wt.fat_addrs = be, Wt.ssz = K;
|
|
8332
8332
|
var qt = {}, fa = [], Dr = [], Hr = [];
|
|
8333
8333
|
k(we, Wt, ct, fa, Q, qt, Dr, Ie), g(Dr, Hr, fa), fa.shift();
|
|
8334
8334
|
var at = {
|
|
@@ -8362,17 +8362,17 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8362
8362
|
return K[H - 1] = O.slice(H * Z), K;
|
|
8363
8363
|
}
|
|
8364
8364
|
function g(O, Z, H) {
|
|
8365
|
-
for (var K = 0, Q = 0, ae = 0, we = 0, Ie = 0, _e = H.length,
|
|
8366
|
-
|
|
8365
|
+
for (var K = 0, Q = 0, ae = 0, we = 0, Ie = 0, _e = H.length, be = [], Se = []; K < _e; ++K)
|
|
8366
|
+
be[K] = Se[K] = K, Z[K] = H[K];
|
|
8367
8367
|
for (; Ie < Se.length; ++Ie)
|
|
8368
|
-
K = Se[Ie], Q = O[K].L, ae = O[K].R, we = O[K].C,
|
|
8369
|
-
for (K = 1; K < _e; ++K)
|
|
8368
|
+
K = Se[Ie], Q = O[K].L, ae = O[K].R, we = O[K].C, be[K] === K && (Q !== -1 && be[Q] !== Q && (be[K] = be[Q]), ae !== -1 && be[ae] !== ae && (be[K] = be[ae])), we !== -1 && (be[we] = K), Q !== -1 && K != be[K] && (be[Q] = be[K], Se.lastIndexOf(Q) < Ie && Se.push(Q)), ae !== -1 && K != be[K] && (be[ae] = be[K], Se.lastIndexOf(ae) < Ie && Se.push(ae));
|
|
8369
|
+
for (K = 1; K < _e; ++K) be[K] === K && (ae !== -1 && be[ae] !== ae ? be[K] = be[ae] : Q !== -1 && be[Q] !== Q && (be[K] = be[Q]));
|
|
8370
8370
|
for (K = 1; K < _e; ++K)
|
|
8371
8371
|
if (O[K].type !== 0) {
|
|
8372
|
-
if (Ie = K, Ie !=
|
|
8373
|
-
Ie =
|
|
8374
|
-
while (Ie !== 0 &&
|
|
8375
|
-
|
|
8372
|
+
if (Ie = K, Ie != be[Ie]) do
|
|
8373
|
+
Ie = be[Ie], Z[K] = Z[Ie] + "/" + Z[K];
|
|
8374
|
+
while (Ie !== 0 && be[Ie] !== -1 && Ie != be[Ie]);
|
|
8375
|
+
be[K] = -1;
|
|
8376
8376
|
}
|
|
8377
8377
|
for (Z[0] += "/", K = 1; K < _e; ++K)
|
|
8378
8378
|
O[K].type !== 2 && (Z[K] += "/");
|
|
@@ -8397,18 +8397,18 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8397
8397
|
function T(O, Z, H, K, Q) {
|
|
8398
8398
|
var ae = [], we = [];
|
|
8399
8399
|
Q || (Q = []);
|
|
8400
|
-
var Ie = K - 1, _e = 0,
|
|
8400
|
+
var Ie = K - 1, _e = 0, be = 0;
|
|
8401
8401
|
for (_e = Z; _e >= 0; ) {
|
|
8402
8402
|
Q[_e] = !0, ae[ae.length] = _e, we.push(O[_e]);
|
|
8403
8403
|
var Se = H[Math.floor(_e * 4 / K)];
|
|
8404
|
-
if (
|
|
8404
|
+
if (be = _e * 4 & Ie, K < 4 + be) throw new Error("FAT boundary crossed: " + _e + " 4 " + K);
|
|
8405
8405
|
if (!O[Se]) break;
|
|
8406
|
-
_e = sn(O[Se],
|
|
8406
|
+
_e = sn(O[Se], be);
|
|
8407
8407
|
}
|
|
8408
8408
|
return { nodes: ae, data: qo([we]) };
|
|
8409
8409
|
}
|
|
8410
8410
|
function E(O, Z, H, K) {
|
|
8411
|
-
var Q = O.length, ae = [], we = [], Ie = [], _e = [],
|
|
8411
|
+
var Q = O.length, ae = [], we = [], Ie = [], _e = [], be = K - 1, Se = 0, Be = 0, We = 0, tt = 0;
|
|
8412
8412
|
for (Se = 0; Se < Q; ++Se)
|
|
8413
8413
|
if (Ie = [], We = Se + Z, We >= Q && (We -= Q), !we[We]) {
|
|
8414
8414
|
_e = [];
|
|
@@ -8416,22 +8416,22 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8416
8416
|
for (Be = We; Be >= 0; ) {
|
|
8417
8417
|
$e[Be] = !0, we[Be] = !0, Ie[Ie.length] = Be, _e.push(O[Be]);
|
|
8418
8418
|
var Ze = H[Math.floor(Be * 4 / K)];
|
|
8419
|
-
if (
|
|
8420
|
-
if (!O[Ze] || (Be = sn(O[Ze],
|
|
8419
|
+
if (tt = Be * 4 & be, K < 4 + tt) throw new Error("FAT boundary crossed: " + Be + " 4 " + K);
|
|
8420
|
+
if (!O[Ze] || (Be = sn(O[Ze], tt), $e[Be])) break;
|
|
8421
8421
|
}
|
|
8422
8422
|
ae[We] = { nodes: Ie, data: qo([_e]) };
|
|
8423
8423
|
}
|
|
8424
8424
|
return ae;
|
|
8425
8425
|
}
|
|
8426
8426
|
function k(O, Z, H, K, Q, ae, we, Ie) {
|
|
8427
|
-
for (var _e = 0,
|
|
8427
|
+
for (var _e = 0, be = K.length ? 2 : 0, Se = Z[O].data, Be = 0, We = 0, tt; Be < Se.length; Be += 128) {
|
|
8428
8428
|
var $e = (
|
|
8429
8429
|
/*::(*/
|
|
8430
8430
|
Se.slice(Be, Be + 128)
|
|
8431
8431
|
);
|
|
8432
|
-
Ea($e, 64), We = $e.read_shift(2),
|
|
8432
|
+
Ea($e, 64), We = $e.read_shift(2), tt = Fs($e, 0, We - be), K.push(tt);
|
|
8433
8433
|
var Ze = {
|
|
8434
|
-
name:
|
|
8434
|
+
name: tt,
|
|
8435
8435
|
type: $e.read_shift(1),
|
|
8436
8436
|
color: $e.read_shift(1),
|
|
8437
8437
|
L: $e.read_shift(4, "i"),
|
|
@@ -8444,7 +8444,7 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8444
8444
|
}, ct = $e.read_shift(2) + $e.read_shift(2) + $e.read_shift(2) + $e.read_shift(2);
|
|
8445
8445
|
ct !== 0 && (Ze.ct = D($e, $e.l - 8));
|
|
8446
8446
|
var Wt = $e.read_shift(2) + $e.read_shift(2) + $e.read_shift(2) + $e.read_shift(2);
|
|
8447
|
-
Wt !== 0 && (Ze.mt = D($e, $e.l - 8)), Ze.start = $e.read_shift(4, "i"), Ze.size = $e.read_shift(4, "i"), Ze.size < 0 && Ze.start < 0 && (Ze.size = Ze.type = 0, Ze.start = U, Ze.name = ""), Ze.type === 5 ? (_e = Ze.start, Q > 0 && _e !== U && (Z[_e].name = "!StreamData")) : Ze.size >= 4096 ? (Ze.storage = "fat", Z[Ze.start] === void 0 && (Z[Ze.start] = T(H, Ze.start, Z.fat_addrs, Z.ssz)), Z[Ze.start].name = Ze.name, Ze.content = Z[Ze.start].data.slice(0, Ze.size)) : (Ze.storage = "minifat", Ze.size < 0 ? Ze.size = 0 : _e !== U && Ze.start !== U && Z[_e] && (Ze.content = m(Ze, Z[_e].data, (Z[Ie] || {}).data))), Ze.content && Ea(Ze.content, 0), ae[
|
|
8447
|
+
Wt !== 0 && (Ze.mt = D($e, $e.l - 8)), Ze.start = $e.read_shift(4, "i"), Ze.size = $e.read_shift(4, "i"), Ze.size < 0 && Ze.start < 0 && (Ze.size = Ze.type = 0, Ze.start = U, Ze.name = ""), Ze.type === 5 ? (_e = Ze.start, Q > 0 && _e !== U && (Z[_e].name = "!StreamData")) : Ze.size >= 4096 ? (Ze.storage = "fat", Z[Ze.start] === void 0 && (Z[Ze.start] = T(H, Ze.start, Z.fat_addrs, Z.ssz)), Z[Ze.start].name = Ze.name, Ze.content = Z[Ze.start].data.slice(0, Ze.size)) : (Ze.storage = "minifat", Ze.size < 0 ? Ze.size = 0 : _e !== U && Ze.start !== U && Z[_e] && (Ze.content = m(Ze, Z[_e].data, (Z[Ie] || {}).data))), Ze.content && Ea(Ze.content, 0), ae[tt] = Ze, we.push(Ze);
|
|
8448
8448
|
}
|
|
8449
8449
|
}
|
|
8450
8450
|
function D(O, Z) {
|
|
@@ -8500,12 +8500,12 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8500
8500
|
}
|
|
8501
8501
|
}
|
|
8502
8502
|
if (!(!H && !Z)) {
|
|
8503
|
-
var we = new Date(1987, 1, 19), Ie = 0, _e = Object.create ? /* @__PURE__ */ Object.create(null) : {},
|
|
8503
|
+
var we = new Date(1987, 1, 19), Ie = 0, _e = Object.create ? /* @__PURE__ */ Object.create(null) : {}, be = [];
|
|
8504
8504
|
for (Q = 0; Q < O.FullPaths.length; ++Q)
|
|
8505
|
-
_e[O.FullPaths[Q]] = !0, O.FileIndex[Q].type !== 0 &&
|
|
8506
|
-
for (Q = 0; Q <
|
|
8507
|
-
var Se = r(
|
|
8508
|
-
K = _e[Se], K || (
|
|
8505
|
+
_e[O.FullPaths[Q]] = !0, O.FileIndex[Q].type !== 0 && be.push([O.FullPaths[Q], O.FileIndex[Q]]);
|
|
8506
|
+
for (Q = 0; Q < be.length; ++Q) {
|
|
8507
|
+
var Se = r(be[Q][0]);
|
|
8508
|
+
K = _e[Se], K || (be.push([Se, {
|
|
8509
8509
|
name: n(Se).replace("/", ""),
|
|
8510
8510
|
type: 1,
|
|
8511
8511
|
clsid: ve,
|
|
@@ -8514,18 +8514,18 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8514
8514
|
content: null
|
|
8515
8515
|
}]), _e[Se] = !0);
|
|
8516
8516
|
}
|
|
8517
|
-
for (
|
|
8518
|
-
return t(
|
|
8519
|
-
}), O.FullPaths = [], O.FileIndex = [], Q = 0; Q <
|
|
8520
|
-
O.FullPaths[Q] =
|
|
8521
|
-
for (Q = 0; Q <
|
|
8517
|
+
for (be.sort(function(tt, $e) {
|
|
8518
|
+
return t(tt[0], $e[0]);
|
|
8519
|
+
}), O.FullPaths = [], O.FileIndex = [], Q = 0; Q < be.length; ++Q)
|
|
8520
|
+
O.FullPaths[Q] = be[Q][0], O.FileIndex[Q] = be[Q][1];
|
|
8521
|
+
for (Q = 0; Q < be.length; ++Q) {
|
|
8522
8522
|
var Be = O.FileIndex[Q], We = O.FullPaths[Q];
|
|
8523
8523
|
if (Be.name = n(We).replace("/", ""), Be.L = Be.R = Be.C = -(Be.color = 1), Be.size = Be.content ? Be.content.length : 0, Be.start = 0, Be.clsid = Be.clsid || ve, Q === 0)
|
|
8524
|
-
Be.C =
|
|
8524
|
+
Be.C = be.length > 1 ? 1 : -1, Be.size = 0, Be.type = 5;
|
|
8525
8525
|
else if (We.slice(-1) == "/") {
|
|
8526
|
-
for (Ie = Q + 1; Ie <
|
|
8527
|
-
for (Be.C = Ie >=
|
|
8528
|
-
Be.R = Ie >=
|
|
8526
|
+
for (Ie = Q + 1; Ie < be.length && r(O.FullPaths[Ie]) != We; ++Ie) ;
|
|
8527
|
+
for (Be.C = Ie >= be.length ? -1 : Ie, Ie = Q + 1; Ie < be.length && r(O.FullPaths[Ie]) != r(We); ++Ie) ;
|
|
8528
|
+
Be.R = Ie >= be.length ? -1 : Ie, Be.type = 1;
|
|
8529
8529
|
} else
|
|
8530
8530
|
r(O.FullPaths[Q + 1] || "") == r(We) && (Be.R = Q + 1), Be.type = 2;
|
|
8531
8531
|
}
|
|
@@ -8538,17 +8538,17 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8538
8538
|
case "zip":
|
|
8539
8539
|
return gt(O, H);
|
|
8540
8540
|
}
|
|
8541
|
-
var K = function(
|
|
8542
|
-
for (var $e = 0, Ze = 0, ct = 0; ct <
|
|
8543
|
-
var Wt =
|
|
8541
|
+
var K = function(tt) {
|
|
8542
|
+
for (var $e = 0, Ze = 0, ct = 0; ct < tt.FileIndex.length; ++ct) {
|
|
8543
|
+
var Wt = tt.FileIndex[ct];
|
|
8544
8544
|
if (Wt.content) {
|
|
8545
8545
|
var qt = Wt.content.length;
|
|
8546
8546
|
qt > 0 && (qt < 4096 ? $e += qt + 63 >> 6 : Ze += qt + 511 >> 9);
|
|
8547
8547
|
}
|
|
8548
8548
|
}
|
|
8549
|
-
for (var fa =
|
|
8549
|
+
for (var fa = tt.FullPaths.length + 3 >> 2, Dr = $e + 7 >> 3, Hr = $e + 127 >> 7, at = Dr + Ze + fa + Hr, ut = at + 127 >> 7, Ue = ut <= 109 ? 0 : Math.ceil((ut - 109) / 127); at + ut + Ue + 127 >> 7 > ut; ) Ue = ++ut <= 109 ? 0 : Math.ceil((ut - 109) / 127);
|
|
8550
8550
|
var da = [1, Ue, ut, Hr, fa, Ze, $e, 0];
|
|
8551
|
-
return
|
|
8551
|
+
return tt.FileIndex[0].size = $e << 6, da[7] = (tt.FileIndex[0].start = da[0] + da[1] + da[2] + da[3] + da[4] + da[5]) + (da[6] + 7 >> 3), da;
|
|
8552
8552
|
}(O), Q = Ae(K[7] << 9), ae = 0, we = 0;
|
|
8553
8553
|
{
|
|
8554
8554
|
for (ae = 0; ae < 8; ++ae) Q.write_shift(1, ie[ae]);
|
|
@@ -8561,18 +8561,18 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8561
8561
|
for (; ae < 236 + we * 127; ++ae) Q.write_shift(-4, ae < K[2] ? K[1] + ae : -1);
|
|
8562
8562
|
Q.write_shift(-4, we === K[1] - 1 ? U : we + 1);
|
|
8563
8563
|
}
|
|
8564
|
-
var Ie = function(
|
|
8565
|
-
for (we +=
|
|
8566
|
-
|
|
8564
|
+
var Ie = function(tt) {
|
|
8565
|
+
for (we += tt; ae < we - 1; ++ae) Q.write_shift(-4, ae + 1);
|
|
8566
|
+
tt && (++ae, Q.write_shift(-4, U));
|
|
8567
8567
|
};
|
|
8568
8568
|
for (we = ae = 0, we += K[1]; ae < we; ++ae) Q.write_shift(-4, ue.DIFSECT);
|
|
8569
8569
|
for (we += K[2]; ae < we; ++ae) Q.write_shift(-4, ue.FATSECT);
|
|
8570
8570
|
Ie(K[3]), Ie(K[4]);
|
|
8571
|
-
for (var _e = 0,
|
|
8572
|
-
Se = O.FileIndex[_e], Se.content && (
|
|
8571
|
+
for (var _e = 0, be = 0, Se = O.FileIndex[0]; _e < O.FileIndex.length; ++_e)
|
|
8572
|
+
Se = O.FileIndex[_e], Se.content && (be = Se.content.length, !(be < 4096) && (Se.start = we, Ie(be + 511 >> 9)));
|
|
8573
8573
|
for (Ie(K[6] + 7 >> 3); Q.l & 511; ) Q.write_shift(-4, ue.ENDOFCHAIN);
|
|
8574
8574
|
for (we = ae = 0, _e = 0; _e < O.FileIndex.length; ++_e)
|
|
8575
|
-
Se = O.FileIndex[_e], Se.content && (
|
|
8575
|
+
Se = O.FileIndex[_e], Se.content && (be = Se.content.length, !(!be || be >= 4096) && (Se.start = we, Ie(be + 63 >> 6)));
|
|
8576
8576
|
for (; Q.l & 511; ) Q.write_shift(-4, ue.ENDOFCHAIN);
|
|
8577
8577
|
for (ae = 0; ae < K[4] << 2; ++ae) {
|
|
8578
8578
|
var Be = O.FullPaths[ae];
|
|
@@ -8584,7 +8584,7 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8584
8584
|
}
|
|
8585
8585
|
Se = O.FileIndex[ae], ae === 0 && (Se.start = Se.size ? Se.start - 1 : U);
|
|
8586
8586
|
var We = ae === 0 && H.root || Se.name;
|
|
8587
|
-
if (
|
|
8587
|
+
if (be = 2 * (We.length + 1), Q.write_shift(64, We, "utf16le"), Q.write_shift(2, be), Q.write_shift(1, Se.type), Q.write_shift(1, Se.color), Q.write_shift(-4, Se.L), Q.write_shift(-4, Se.R), Q.write_shift(-4, Se.C), Se.clsid) Q.write_shift(16, Se.clsid, "hex");
|
|
8588
8588
|
else for (_e = 0; _e < 4; ++_e) Q.write_shift(4, 0);
|
|
8589
8589
|
Q.write_shift(4, Se.state || 0), Q.write_shift(4, 0), Q.write_shift(4, 0), Q.write_shift(4, 0), Q.write_shift(4, 0), Q.write_shift(4, Se.start), Q.write_shift(4, Se.size), Q.write_shift(4, 0);
|
|
8590
8590
|
}
|
|
@@ -8614,8 +8614,8 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8614
8614
|
var H = O.FullPaths.map(function(_e) {
|
|
8615
8615
|
return _e.toUpperCase();
|
|
8616
8616
|
}), K = H.map(function(_e) {
|
|
8617
|
-
var
|
|
8618
|
-
return
|
|
8617
|
+
var be = _e.split("/");
|
|
8618
|
+
return be[be.length - (_e.slice(-1) == "/" ? 2 : 1)];
|
|
8619
8619
|
}), Q = !1;
|
|
8620
8620
|
Z.charCodeAt(0) === 47 ? (Q = !0, Z = H[0].slice(0, -1) + Z) : Q = Z.indexOf("/") !== -1;
|
|
8621
8621
|
var ae = Z.toUpperCase(), we = Q === !0 ? H.indexOf(ae) : K.indexOf(ae);
|
|
@@ -8726,7 +8726,7 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8726
8726
|
var K = Z & 7, Q = Z >>> 3;
|
|
8727
8727
|
return H = (H & 1) << K, O[Q] |= H, Z + 1;
|
|
8728
8728
|
}
|
|
8729
|
-
function
|
|
8729
|
+
function Ye(O, Z, H) {
|
|
8730
8730
|
var K = Z & 7, Q = Z >>> 3;
|
|
8731
8731
|
return H <<= K, O[Q] |= H & 255, H >>>= 8, O[Q + 1] = H, Z + 8;
|
|
8732
8732
|
}
|
|
@@ -8755,16 +8755,16 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8755
8755
|
return Z;
|
|
8756
8756
|
}
|
|
8757
8757
|
function ht(O, Z, H) {
|
|
8758
|
-
var K = 1, Q = 0, ae = 0, we = 0, Ie = 0, _e = O.length,
|
|
8759
|
-
for (ae = 0; ae < 32; ++ae)
|
|
8758
|
+
var K = 1, Q = 0, ae = 0, we = 0, Ie = 0, _e = O.length, be = oe ? new Uint16Array(32) : Kt(32);
|
|
8759
|
+
for (ae = 0; ae < 32; ++ae) be[ae] = 0;
|
|
8760
8760
|
for (ae = _e; ae < H; ++ae) O[ae] = 0;
|
|
8761
8761
|
_e = O.length;
|
|
8762
8762
|
var Se = oe ? new Uint16Array(_e) : Kt(_e);
|
|
8763
8763
|
for (ae = 0; ae < _e; ++ae)
|
|
8764
|
-
|
|
8765
|
-
for (
|
|
8764
|
+
be[Q = O[ae]]++, K < Q && (K = Q), Se[ae] = 0;
|
|
8765
|
+
for (be[0] = 0, ae = 1; ae <= K; ++ae) be[ae + 16] = Ie = Ie + be[ae - 1] << 1;
|
|
8766
8766
|
for (ae = 0; ae < _e; ++ae)
|
|
8767
|
-
Ie = O[ae], Ie != 0 && (Se[ae] =
|
|
8767
|
+
Ie = O[ae], Ie != 0 && (Se[ae] = be[Ie + 16]++);
|
|
8768
8768
|
var Be = 0;
|
|
8769
8769
|
for (ae = 0; ae < _e; ++ae)
|
|
8770
8770
|
if (Be = O[ae], Be != 0)
|
|
@@ -8795,48 +8795,48 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8795
8795
|
for (H = 0, K = 0; H < Y.length - 1; ++H)
|
|
8796
8796
|
for (; K < Y[H + 1]; ++K) Q[K] = H;
|
|
8797
8797
|
function ae(Ie, _e) {
|
|
8798
|
-
for (var
|
|
8799
|
-
var Se = Math.min(65535, Ie.length -
|
|
8800
|
-
for (_e.write_shift(1, +Be), _e.write_shift(2, Se), _e.write_shift(2, ~Se & 65535); Se-- > 0; ) _e[_e.l++] = Ie[
|
|
8798
|
+
for (var be = 0; be < Ie.length; ) {
|
|
8799
|
+
var Se = Math.min(65535, Ie.length - be), Be = be + Se == Ie.length;
|
|
8800
|
+
for (_e.write_shift(1, +Be), _e.write_shift(2, Se), _e.write_shift(2, ~Se & 65535); Se-- > 0; ) _e[_e.l++] = Ie[be++];
|
|
8801
8801
|
}
|
|
8802
8802
|
return _e.l;
|
|
8803
8803
|
}
|
|
8804
8804
|
function we(Ie, _e) {
|
|
8805
|
-
for (var
|
|
8805
|
+
for (var be = 0, Se = 0, Be = oe ? new Uint16Array(32768) : []; Se < Ie.length; ) {
|
|
8806
8806
|
var We = (
|
|
8807
8807
|
/* data.length - boff; */
|
|
8808
8808
|
Math.min(65535, Ie.length - Se)
|
|
8809
8809
|
);
|
|
8810
8810
|
if (We < 10) {
|
|
8811
|
-
for (
|
|
8812
|
-
|
|
8811
|
+
for (be = bt(_e, be, +(Se + We == Ie.length)), be & 7 && (be += 8 - (be & 7)), _e.l = be / 8 | 0, _e.write_shift(2, We), _e.write_shift(2, ~We & 65535); We-- > 0; ) _e[_e.l++] = Ie[Se++];
|
|
8812
|
+
be = _e.l * 8;
|
|
8813
8813
|
continue;
|
|
8814
8814
|
}
|
|
8815
|
-
|
|
8816
|
-
for (var
|
|
8815
|
+
be = bt(_e, be, +(Se + We == Ie.length) + 2);
|
|
8816
|
+
for (var tt = 0; We-- > 0; ) {
|
|
8817
8817
|
var $e = Ie[Se];
|
|
8818
|
-
|
|
8818
|
+
tt = (tt << 5 ^ $e) & 32767;
|
|
8819
8819
|
var Ze = -1, ct = 0;
|
|
8820
|
-
if ((Ze = Be[
|
|
8820
|
+
if ((Ze = Be[tt]) && (Ze |= Se & -32768, Ze > Se && (Ze -= 32768), Ze < Se))
|
|
8821
8821
|
for (; Ie[Ze + ct] == Ie[Se + ct] && ct < 250; ) ++ct;
|
|
8822
8822
|
if (ct > 2) {
|
|
8823
|
-
$e = Q[ct], $e <= 22 ?
|
|
8823
|
+
$e = Q[ct], $e <= 22 ? be = Ye(_e, be, ye[$e + 1] >> 1) - 1 : (Ye(_e, be, 3), be += 5, Ye(_e, be, ye[$e - 23] >> 5), be += 3);
|
|
8824
8824
|
var Wt = $e < 8 ? 0 : $e - 4 >> 2;
|
|
8825
|
-
Wt > 0 && (ea(_e,
|
|
8825
|
+
Wt > 0 && (ea(_e, be, ct - Y[$e]), be += Wt), $e = Z[Se - Ze], be = Ye(_e, be, ye[$e] >> 3), be -= 3;
|
|
8826
8826
|
var qt = $e < 4 ? 0 : $e - 2 >> 1;
|
|
8827
|
-
qt > 0 && (ea(_e,
|
|
8827
|
+
qt > 0 && (ea(_e, be, Se - Ze - ne[$e]), be += qt);
|
|
8828
8828
|
for (var fa = 0; fa < ct; ++fa)
|
|
8829
|
-
Be[
|
|
8829
|
+
Be[tt] = Se & 32767, tt = (tt << 5 ^ Ie[Se]) & 32767, ++Se;
|
|
8830
8830
|
We -= ct - 1;
|
|
8831
8831
|
} else
|
|
8832
|
-
$e <= 143 ? $e = $e + 48 :
|
|
8832
|
+
$e <= 143 ? $e = $e + 48 : be = ta(_e, be, 1), be = Ye(_e, be, ye[$e]), Be[tt] = Se & 32767, ++Se;
|
|
8833
8833
|
}
|
|
8834
|
-
|
|
8834
|
+
be = Ye(_e, be, 0) - 1;
|
|
8835
8835
|
}
|
|
8836
|
-
return _e.l = (
|
|
8836
|
+
return _e.l = (be + 7) / 8 | 0, _e.l;
|
|
8837
8837
|
}
|
|
8838
|
-
return function(_e,
|
|
8839
|
-
return _e.length < 8 ? ae(_e,
|
|
8838
|
+
return function(_e, be) {
|
|
8839
|
+
return _e.length < 8 ? ae(_e, be) : we(_e, be);
|
|
8840
8840
|
};
|
|
8841
8841
|
}();
|
|
8842
8842
|
function it(O) {
|
|
@@ -8851,22 +8851,22 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8851
8851
|
Z += 5;
|
|
8852
8852
|
var Q = Ee(O, Z) + 4;
|
|
8853
8853
|
Z += 4;
|
|
8854
|
-
for (var ae = 0, we = oe ? new Uint8Array(19) : Kt(19), Ie = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], _e = 1,
|
|
8855
|
-
we[W[We]] = ae = fe(O, Z), _e < ae && (_e = ae),
|
|
8856
|
-
var
|
|
8857
|
-
for (
|
|
8858
|
-
for (We = 0; We < Be; ++We) (
|
|
8854
|
+
for (var ae = 0, we = oe ? new Uint8Array(19) : Kt(19), Ie = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], _e = 1, be = oe ? new Uint8Array(8) : Kt(8), Se = oe ? new Uint8Array(8) : Kt(8), Be = we.length, We = 0; We < Q; ++We)
|
|
8855
|
+
we[W[We]] = ae = fe(O, Z), _e < ae && (_e = ae), be[ae]++, Z += 3;
|
|
8856
|
+
var tt = 0;
|
|
8857
|
+
for (be[0] = 0, We = 1; We <= _e; ++We) Se[We] = tt = tt + be[We - 1] << 1;
|
|
8858
|
+
for (We = 0; We < Be; ++We) (tt = we[We]) != 0 && (Ie[We] = Se[tt]++);
|
|
8859
8859
|
var $e = 0;
|
|
8860
8860
|
for (We = 0; We < Be; ++We)
|
|
8861
8861
|
if ($e = we[We], $e != 0) {
|
|
8862
|
-
|
|
8863
|
-
for (var Ze = (1 << 7 - $e) - 1; Ze >= 0; --Ze) Yt[
|
|
8862
|
+
tt = ye[Ie[We]] >> 8 - $e;
|
|
8863
|
+
for (var Ze = (1 << 7 - $e) - 1; Ze >= 0; --Ze) Yt[tt | Ze << $e] = $e & 7 | We << 3;
|
|
8864
8864
|
}
|
|
8865
8865
|
var ct = [];
|
|
8866
8866
|
for (_e = 1; ct.length < H + K; )
|
|
8867
|
-
switch (
|
|
8867
|
+
switch (tt = Yt[Me(O, Z)], Z += tt & 7, tt >>>= 3) {
|
|
8868
8868
|
case 16:
|
|
8869
|
-
for (ae = 3 + De(O, Z), Z += 2,
|
|
8869
|
+
for (ae = 3 + De(O, Z), Z += 2, tt = ct[ct.length - 1]; ae-- > 0; ) ct.push(tt);
|
|
8870
8870
|
break;
|
|
8871
8871
|
case 17:
|
|
8872
8872
|
for (ae = 3 + fe(O, Z), Z += 3; ae-- > 0; ) ct.push(0);
|
|
@@ -8875,7 +8875,7 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8875
8875
|
for (ae = 11 + Me(O, Z), Z += 7; ae-- > 0; ) ct.push(0);
|
|
8876
8876
|
break;
|
|
8877
8877
|
default:
|
|
8878
|
-
ct.push(
|
|
8878
|
+
ct.push(tt), _e < tt && (_e = tt);
|
|
8879
8879
|
break;
|
|
8880
8880
|
}
|
|
8881
8881
|
var Wt = ct.slice(0, H), qt = ct.slice(H);
|
|
@@ -8891,9 +8891,9 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8891
8891
|
K >> 1 == 1 ? (Ie = 9, _e = 5) : (H = he(O, H), Ie = Fa, _e = Ua);
|
|
8892
8892
|
else {
|
|
8893
8893
|
H & 7 && (H += 8 - (H & 7));
|
|
8894
|
-
var
|
|
8895
|
-
if (H += 32,
|
|
8896
|
-
for (!Z && we < ae +
|
|
8894
|
+
var be = O[H >>> 3] | O[(H >>> 3) + 1] << 8;
|
|
8895
|
+
if (H += 32, be > 0)
|
|
8896
|
+
for (!Z && we < ae + be && (Q = Tt(Q, ae + be), we = Q.length); be-- > 0; )
|
|
8897
8897
|
Q[ae++] = O[H >>> 3], H += 8;
|
|
8898
8898
|
continue;
|
|
8899
8899
|
}
|
|
@@ -8906,10 +8906,10 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8906
8906
|
Be -= 257;
|
|
8907
8907
|
var We = Be < 8 ? 0 : Be - 4 >> 2;
|
|
8908
8908
|
We > 5 && (We = 0);
|
|
8909
|
-
var
|
|
8910
|
-
We > 0 && (
|
|
8909
|
+
var tt = ae + Y[Be];
|
|
8910
|
+
We > 0 && (tt += At(O, H, We), H += We), Se = At(O, H, _e), Be = K >>> 1 == 1 ? ot[Se] : ba[Se], H += Be & 15, Be >>>= 4;
|
|
8911
8911
|
var $e = Be < 4 ? 0 : Be - 2 >> 1, Ze = ne[Be];
|
|
8912
|
-
for ($e > 0 && (Ze += At(O, H, $e), H += $e), !Z && we <
|
|
8912
|
+
for ($e > 0 && (Ze += At(O, H, $e), H += $e), !Z && we < tt && (Q = Tt(Q, tt + 100), we = Q.length); ae < tt; )
|
|
8913
8913
|
Q[ae] = Q[ae - Ze], ++ae;
|
|
8914
8914
|
}
|
|
8915
8915
|
}
|
|
@@ -8925,7 +8925,7 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8925
8925
|
typeof console < "u" && console.error(Z);
|
|
8926
8926
|
else throw new Error(Z);
|
|
8927
8927
|
}
|
|
8928
|
-
function
|
|
8928
|
+
function je(O, Z) {
|
|
8929
8929
|
var H = (
|
|
8930
8930
|
/*::(*/
|
|
8931
8931
|
O
|
|
@@ -8943,16 +8943,16 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8943
8943
|
var _e = H.read_shift(4);
|
|
8944
8944
|
for (H.l = _e, we = 0; we < Ie; ++we) {
|
|
8945
8945
|
H.l += 20;
|
|
8946
|
-
var
|
|
8946
|
+
var be = H.read_shift(4), Se = H.read_shift(4), Be = H.read_shift(2), We = H.read_shift(2), tt = H.read_shift(2);
|
|
8947
8947
|
H.l += 8;
|
|
8948
8948
|
var $e = H.read_shift(4), Ze = s(
|
|
8949
8949
|
/*::(*/
|
|
8950
8950
|
H.slice(H.l + Be, H.l + Be + We)
|
|
8951
8951
|
/*:: :any)*/
|
|
8952
8952
|
);
|
|
8953
|
-
H.l += Be + We +
|
|
8953
|
+
H.l += Be + We + tt;
|
|
8954
8954
|
var ct = H.l;
|
|
8955
|
-
H.l = $e + 4, st(H,
|
|
8955
|
+
H.l = $e + 4, st(H, be, Se, ae, Ze), H.l = ct;
|
|
8956
8956
|
}
|
|
8957
8957
|
return ae;
|
|
8958
8958
|
}
|
|
@@ -8960,7 +8960,7 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8960
8960
|
O.l += 2;
|
|
8961
8961
|
var ae = O.read_shift(2), we = O.read_shift(2), Ie = l(O);
|
|
8962
8962
|
if (ae & 8257) throw new Error("Unsupported ZIP encryption");
|
|
8963
|
-
for (var _e = O.read_shift(4),
|
|
8963
|
+
for (var _e = O.read_shift(4), be = O.read_shift(4), Se = O.read_shift(4), Be = O.read_shift(2), We = O.read_shift(2), tt = "", $e = 0; $e < Be; ++$e) tt += String.fromCharCode(O[O.l++]);
|
|
8964
8964
|
if (We) {
|
|
8965
8965
|
var Ze = s(
|
|
8966
8966
|
/*::(*/
|
|
@@ -8970,7 +8970,7 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8970
8970
|
(Ze[21589] || {}).mt && (Ie = Ze[21589].mt), ((Q || {})[21589] || {}).mt && (Ie = Q[21589].mt);
|
|
8971
8971
|
}
|
|
8972
8972
|
O.l += We;
|
|
8973
|
-
var ct = O.slice(O.l, O.l +
|
|
8973
|
+
var ct = O.slice(O.l, O.l + be);
|
|
8974
8974
|
switch (we) {
|
|
8975
8975
|
case 8:
|
|
8976
8976
|
ct = B(O, Se);
|
|
@@ -8981,14 +8981,14 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
8981
8981
|
throw new Error("Unsupported ZIP Compression method " + we);
|
|
8982
8982
|
}
|
|
8983
8983
|
var Wt = !1;
|
|
8984
|
-
ae & 8 && (_e = O.read_shift(4), _e == 134695760 && (_e = O.read_shift(4), Wt = !0),
|
|
8984
|
+
ae & 8 && (_e = O.read_shift(4), _e == 134695760 && (_e = O.read_shift(4), Wt = !0), be = O.read_shift(4), Se = O.read_shift(4)), be != Z && Xe(Wt, "Bad compressed size: " + Z + " != " + be), Se != H && Xe(Wt, "Bad uncompressed size: " + H + " != " + Se), Ga(K, tt, ct, { unsafe: !0, mt: Ie });
|
|
8985
8985
|
}
|
|
8986
8986
|
function gt(O, Z) {
|
|
8987
|
-
var H = Z || {}, K = [], Q = [], ae = Ae(1), we = H.compression ? 8 : 0, Ie = 0, _e = 0,
|
|
8987
|
+
var H = Z || {}, K = [], Q = [], ae = Ae(1), we = H.compression ? 8 : 0, Ie = 0, _e = 0, be = 0, Se = 0, Be = 0, We = O.FullPaths[0], tt = We, $e = O.FileIndex[0], Ze = [], ct = 0;
|
|
8988
8988
|
for (_e = 1; _e < O.FullPaths.length; ++_e)
|
|
8989
|
-
if (
|
|
8990
|
-
var Wt = Se, qt = Ae(
|
|
8991
|
-
for (
|
|
8989
|
+
if (tt = O.FullPaths[_e].slice(We.length), $e = O.FileIndex[_e], !(!$e.size || !$e.content || tt == "Sh33tJ5")) {
|
|
8990
|
+
var Wt = Se, qt = Ae(tt.length);
|
|
8991
|
+
for (be = 0; be < tt.length; ++be) qt.write_shift(1, tt.charCodeAt(be) & 127);
|
|
8992
8992
|
qt = qt.slice(0, qt.l), Ze[Be] = q_.buf(
|
|
8993
8993
|
/*::((*/
|
|
8994
8994
|
$e.content,
|
|
@@ -9029,8 +9029,8 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
9029
9029
|
`;
|
|
9030
9030
|
}
|
|
9031
9031
|
function Da(O) {
|
|
9032
|
-
var Z = O.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g, function(
|
|
9033
|
-
var Se =
|
|
9032
|
+
var Z = O.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g, function(be) {
|
|
9033
|
+
var Se = be.charCodeAt(0).toString(16).toUpperCase();
|
|
9034
9034
|
return "=" + (Se.length == 1 ? "0" + Se : Se);
|
|
9035
9035
|
});
|
|
9036
9036
|
Z = Z.replace(/ $/mg, "=20").replace(/\t$/mg, "=09"), Z.charAt(0) == `
|
|
@@ -9066,16 +9066,16 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
9066
9066
|
for (var K = "", Q = "", ae = "", we, Ie = 0; Ie < 10; ++Ie) {
|
|
9067
9067
|
var _e = Z[Ie];
|
|
9068
9068
|
if (!_e || _e.match(/^\s*$/)) break;
|
|
9069
|
-
var
|
|
9070
|
-
if (
|
|
9069
|
+
var be = _e.match(/^(.*?):\s*([^\s].*)$/);
|
|
9070
|
+
if (be) switch (be[1].toLowerCase()) {
|
|
9071
9071
|
case "content-location":
|
|
9072
|
-
K =
|
|
9072
|
+
K = be[2].trim();
|
|
9073
9073
|
break;
|
|
9074
9074
|
case "content-type":
|
|
9075
|
-
ae =
|
|
9075
|
+
ae = be[2].trim();
|
|
9076
9076
|
break;
|
|
9077
9077
|
case "content-transfer-encoding":
|
|
9078
|
-
Q =
|
|
9078
|
+
Q = be[2].trim();
|
|
9079
9079
|
break;
|
|
9080
9080
|
}
|
|
9081
9081
|
}
|
|
@@ -9102,15 +9102,15 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
9102
9102
|
;
|
|
9103
9103
|
var we = (K[1] || "").match(/boundary="(.*?)"/);
|
|
9104
9104
|
if (!we) throw new Error("MAD cannot find boundary");
|
|
9105
|
-
var Ie = "--" + (we[1] || ""), _e = [],
|
|
9105
|
+
var Ie = "--" + (we[1] || ""), _e = [], be = [], Se = {
|
|
9106
9106
|
FileIndex: _e,
|
|
9107
|
-
FullPaths:
|
|
9107
|
+
FullPaths: be
|
|
9108
9108
|
};
|
|
9109
9109
|
y(Se);
|
|
9110
9110
|
var Be, We = 0;
|
|
9111
9111
|
for (Q = 0; Q < K.length; ++Q) {
|
|
9112
|
-
var
|
|
9113
|
-
|
|
9112
|
+
var tt = K[Q];
|
|
9113
|
+
tt !== Ie && tt !== Ie + "--" || (We++ && Ca(Se, K.slice(Be, Q), H), Be = Q);
|
|
9114
9114
|
}
|
|
9115
9115
|
return Se;
|
|
9116
9116
|
}
|
|
@@ -9130,7 +9130,7 @@ var q_ = /* @__PURE__ */ function() {
|
|
|
9130
9130
|
}).replace(/[\u0080-\uFFFF]/g, function(ct) {
|
|
9131
9131
|
return "_u" + ct.charCodeAt(0).toString(16) + "_";
|
|
9132
9132
|
});
|
|
9133
|
-
for (var
|
|
9133
|
+
for (var be = Ie.content, Se = It && Buffer.isBuffer(be) ? be.toString("binary") : J(be), Be = 0, We = Math.min(1024, Se.length), tt = 0, $e = 0; $e <= We; ++$e) (tt = Se.charCodeAt($e)) >= 32 && tt < 128 && ++Be;
|
|
9134
9134
|
var Ze = Be >= We * 4 / 5;
|
|
9135
9135
|
Q.push(K), Q.push("Content-Location: " + (H.root || "file:///C:/SheetJS/") + we), Q.push("Content-Transfer-Encoding: " + (Ze ? "quoted-printable" : "base64")), Q.push("Content-Type: " + Pt(Ie, we)), Q.push(""), Q.push(Ze ? Da(Se) : Aa(Se));
|
|
9136
9136
|
}
|
|
@@ -22030,8 +22030,8 @@ function t3(e, a) {
|
|
|
22030
22030
|
if (k = Xi(X.val, X.cell.ixfe, X.tt), k.XF = w[k.ixfe], a.cellFormula) {
|
|
22031
22031
|
var At = X.formula;
|
|
22032
22032
|
if (At && At[0] && At[0][0] && At[0][0][0] == "PtgExp") {
|
|
22033
|
-
var bt = At[0][0][1][0], ta = At[0][0][1][1],
|
|
22034
|
-
T[
|
|
22033
|
+
var bt = At[0][0][1][0], ta = At[0][0][1][1], Ye = xt({ r: bt, c: ta });
|
|
22034
|
+
T[Ye] ? k.f = "" + Na(X.formula, l, X.cell, J, L) : k.F = ((a.dense ? (n[bt] || [])[ta] : n[Ye]) || {}).F;
|
|
22035
22035
|
} else k.f = "" + Na(X.formula, l, X.cell, J, L);
|
|
22036
22036
|
}
|
|
22037
22037
|
I > 0 && (k.z = B[k.ixfe >> 8 & 63]), _r(k, a, t.opts.Date1904), M(X.cell, k, a), s = X;
|
|
@@ -38060,7 +38060,7 @@ ${d(M[e.config.startField])} ~ ${d(M[e.config.endField])}`,
|
|
|
38060
38060
|
conditions: [{ field: "", operator: "eq", value: "" }]
|
|
38061
38061
|
});
|
|
38062
38062
|
}, u = (C) => {
|
|
38063
|
-
n.value.length > 1 ? n.value.splice(C, 1) :
|
|
38063
|
+
n.value.length > 1 ? n.value.splice(C, 1) : Ke.warning("至少需要保留一个筛选卡片");
|
|
38064
38064
|
}, o = (C) => {
|
|
38065
38065
|
C >= 0 && C < n.value.length && n.value[C].conditions.push({
|
|
38066
38066
|
field: "",
|
|
@@ -38070,7 +38070,7 @@ ${d(M[e.config.startField])} ~ ${d(M[e.config.endField])}`,
|
|
|
38070
38070
|
}, h = (C, y) => {
|
|
38071
38071
|
if (C >= 0 && C < n.value.length) {
|
|
38072
38072
|
const N = n.value[C];
|
|
38073
|
-
N.conditions.length > 1 && y >= 0 && y < N.conditions.length ? N.conditions.splice(y, 1) : N.conditions.length <= 1 &&
|
|
38073
|
+
N.conditions.length > 1 && y >= 0 && y < N.conditions.length ? N.conditions.splice(y, 1) : N.conditions.length <= 1 && Ke.warning("每个卡片至少需要一个筛选条件");
|
|
38074
38074
|
}
|
|
38075
38075
|
}, d = (C) => C.map((y) => {
|
|
38076
38076
|
const N = y.conditions.filter((S) => S.field && S.field.trim() !== "").map((S) => {
|
|
@@ -39421,7 +39421,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
39421
39421
|
ue();
|
|
39422
39422
|
}, J = () => {
|
|
39423
39423
|
if (L.value === "read") {
|
|
39424
|
-
|
|
39424
|
+
Ke.warning("您当前为只读权限,无法分享");
|
|
39425
39425
|
return;
|
|
39426
39426
|
}
|
|
39427
39427
|
const De = {
|
|
@@ -39436,9 +39436,9 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
39436
39436
|
console.log("分享参数:", De), n("confirm", De), i.value = !1;
|
|
39437
39437
|
}, re = async () => {
|
|
39438
39438
|
try {
|
|
39439
|
-
await navigator.clipboard.writeText(l.value || ""),
|
|
39439
|
+
await navigator.clipboard.writeText(l.value || ""), Ke.success("链接已复制");
|
|
39440
39440
|
} catch {
|
|
39441
|
-
|
|
39441
|
+
Ke.error("复制失败");
|
|
39442
39442
|
}
|
|
39443
39443
|
}, q = () => {
|
|
39444
39444
|
r.helpUrl && window.open(r.helpUrl, "_blank");
|
|
@@ -39447,34 +39447,34 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
39447
39447
|
}, B = (De) => {
|
|
39448
39448
|
n("load-users", De);
|
|
39449
39449
|
}, z = () => {
|
|
39450
|
-
n("request-permission", "edit"),
|
|
39450
|
+
n("request-permission", "edit"), Ke.info("已发送编辑权限申请");
|
|
39451
39451
|
}, W = () => {
|
|
39452
39452
|
if (L.value !== "manage") {
|
|
39453
|
-
|
|
39453
|
+
Ke.warning("只有管理员才能修改权限设置");
|
|
39454
39454
|
return;
|
|
39455
39455
|
}
|
|
39456
|
-
n("permission-settings-change", w.value),
|
|
39456
|
+
n("permission-settings-change", w.value), Ke.success("权限设置已保存"), _.value = !1;
|
|
39457
39457
|
}, Y = (De) => {
|
|
39458
39458
|
console.log("点击协作者:", De);
|
|
39459
39459
|
}, ne = (De) => {
|
|
39460
39460
|
if (L.value === "read") {
|
|
39461
|
-
|
|
39461
|
+
Ke.warning("只读权限无法添加协作者");
|
|
39462
39462
|
return;
|
|
39463
39463
|
}
|
|
39464
39464
|
console.log("选择人员:", De), n("manage-collaborators", De);
|
|
39465
39465
|
}, ee = (De) => {
|
|
39466
39466
|
if (L.value !== "manage") {
|
|
39467
|
-
|
|
39467
|
+
Ke.warning("只有管理员才能删除协作者");
|
|
39468
39468
|
return;
|
|
39469
39469
|
}
|
|
39470
39470
|
n("remove-collaborator", De);
|
|
39471
39471
|
}, oe = (De, fe) => {
|
|
39472
39472
|
if (L.value === "read") {
|
|
39473
|
-
|
|
39473
|
+
Ke.warning("只读权限无法修改协作者权限");
|
|
39474
39474
|
return;
|
|
39475
39475
|
}
|
|
39476
39476
|
if (L.value === "edit" && fe === "manage") {
|
|
39477
|
-
|
|
39477
|
+
Ke.warning("编辑权限无法将协作者设置为管理员");
|
|
39478
39478
|
return;
|
|
39479
39479
|
}
|
|
39480
39480
|
n("collaborator-permission-change", { id: De, permission: fe });
|
|
@@ -39486,34 +39486,34 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
39486
39486
|
D.value = fe;
|
|
39487
39487
|
}, Ne = async () => {
|
|
39488
39488
|
if (L.value === "read") {
|
|
39489
|
-
|
|
39489
|
+
Ke.warning("只读权限无法设置链接密码");
|
|
39490
39490
|
return;
|
|
39491
39491
|
}
|
|
39492
39492
|
if (!D.value || D.value.length !== 6) {
|
|
39493
|
-
|
|
39493
|
+
Ke.warning("请先生成或输入6位密码");
|
|
39494
39494
|
return;
|
|
39495
39495
|
}
|
|
39496
39496
|
const De = l.value || "", fe = De.includes("?") ? "&" : "?", Ee = `链接:${`${De}${fe}pwd=${D.value}`} 密码:${D.value}`;
|
|
39497
39497
|
try {
|
|
39498
|
-
await navigator.clipboard.writeText(Ee),
|
|
39498
|
+
await navigator.clipboard.writeText(Ee), Ke.success("链接和密码已复制");
|
|
39499
39499
|
} catch {
|
|
39500
|
-
|
|
39500
|
+
Ke.error("复制失败");
|
|
39501
39501
|
}
|
|
39502
39502
|
}, X = () => {
|
|
39503
39503
|
if (L.value === "read") {
|
|
39504
|
-
|
|
39504
|
+
Ke.warning("只读权限无法设置链接密码");
|
|
39505
39505
|
return;
|
|
39506
39506
|
}
|
|
39507
39507
|
if (!D.value || D.value.length !== 6) {
|
|
39508
|
-
|
|
39508
|
+
Ke.warning("请输入6位密码");
|
|
39509
39509
|
return;
|
|
39510
39510
|
}
|
|
39511
|
-
|
|
39511
|
+
Ke.success("密码设置成功"), k.value = !1, console.log("链接密码:", D.value);
|
|
39512
39512
|
};
|
|
39513
39513
|
return lt(k, (De) => {
|
|
39514
39514
|
De && !D.value && ye();
|
|
39515
39515
|
}), (De, fe) => {
|
|
39516
|
-
const Ee = de("t-icon"), Re = de("t-tooltip"), Me = de("t-button"), At = de("t-avatar"), bt = de("t-select"), ta = de("t-checkbox"),
|
|
39516
|
+
const Ee = de("t-icon"), Re = de("t-tooltip"), Me = de("t-button"), At = de("t-avatar"), bt = de("t-select"), ta = de("t-checkbox"), Ye = de("t-input"), ea = de("t-textarea"), Tt = de("t-dialog"), Kt = de("t-switch");
|
|
39517
39517
|
return x(), F(Pe, null, [
|
|
39518
39518
|
V(Tt, {
|
|
39519
39519
|
visible: i.value,
|
|
@@ -39668,7 +39668,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
39668
39668
|
])]),
|
|
39669
39669
|
_: 1
|
|
39670
39670
|
}, 8, ["modelValue"]),
|
|
39671
|
-
v.value ? (x(), pe(
|
|
39671
|
+
v.value ? (x(), pe(Ye, {
|
|
39672
39672
|
key: 0,
|
|
39673
39673
|
modelValue: g.value,
|
|
39674
39674
|
"onUpdate:modelValue": fe[12] || (fe[12] = (ot) => g.value = ot),
|
|
@@ -40084,7 +40084,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40084
40084
|
f("div", R6, [
|
|
40085
40085
|
f("div", N6, [
|
|
40086
40086
|
fe[52] || (fe[52] = f("div", { class: "cd-encrypt-label" }, "链接密码", -1)),
|
|
40087
|
-
V(
|
|
40087
|
+
V(Ye, {
|
|
40088
40088
|
modelValue: D.value,
|
|
40089
40089
|
"onUpdate:modelValue": fe[23] || (fe[23] = (ht) => D.value = ht),
|
|
40090
40090
|
placeholder: "6位数字和字母组合",
|
|
@@ -40169,10 +40169,10 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40169
40169
|
}, W6 = {
|
|
40170
40170
|
key: 0,
|
|
40171
40171
|
class: "header-title"
|
|
40172
|
-
}, H6 = { class: "view-mode-btns" },
|
|
40172
|
+
}, H6 = { style: { "margin-left": "auto", display: "flex", "align-items": "center", gap: "4px" } }, G6 = { class: "view-mode-btns" }, X6 = {
|
|
40173
40173
|
key: 2,
|
|
40174
40174
|
class: "toolbar-tab-group"
|
|
40175
|
-
},
|
|
40175
|
+
}, j6 = { class: "group-dialog-content" }, K6 = { class: "group-merge-switch" }, Y6 = { class: "switch-tip" }, q6 = {
|
|
40176
40176
|
key: 0,
|
|
40177
40177
|
class: "cd-form-left-tree"
|
|
40178
40178
|
}, J6 = { class: "left-tree-toolbar" }, Z6 = { class: "left-tree-title" }, Q6 = { class: "tree-context-menu" }, e5 = { class: "cd-form-right-content" }, t5 = {
|
|
@@ -40249,16 +40249,16 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40249
40249
|
if (!p) return "";
|
|
40250
40250
|
const P = new Date(p);
|
|
40251
40251
|
if (isNaN(P.getTime())) return String(p);
|
|
40252
|
-
const G = (Je) => String(Je).padStart(2, "0"), ce = P.getFullYear(), me = G(P.getMonth() + 1),
|
|
40252
|
+
const G = (Je) => String(Je).padStart(2, "0"), ce = P.getFullYear(), me = G(P.getMonth() + 1), Ce = G(P.getDate()), Ve = G(P.getHours()), et = G(P.getMinutes()), qe = G(P.getSeconds());
|
|
40253
40253
|
switch (b) {
|
|
40254
40254
|
case "datetime":
|
|
40255
|
-
return `${ce}-${me}-${
|
|
40255
|
+
return `${ce}-${me}-${Ce} ${Ve}:${et}:${qe}`;
|
|
40256
40256
|
case "month":
|
|
40257
40257
|
return `${ce}-${me}`;
|
|
40258
40258
|
case "year":
|
|
40259
40259
|
return `${ce}`;
|
|
40260
40260
|
default:
|
|
40261
|
-
return `${ce}-${me}-${
|
|
40261
|
+
return `${ce}-${me}-${Ce}`;
|
|
40262
40262
|
}
|
|
40263
40263
|
}, l = (p, b) => {
|
|
40264
40264
|
try {
|
|
@@ -40271,8 +40271,8 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40271
40271
|
if (me === "date" || me === "datePicker")
|
|
40272
40272
|
return i(P == null ? void 0 : P[G.field], ce.type);
|
|
40273
40273
|
if (me === "time") {
|
|
40274
|
-
const
|
|
40275
|
-
return
|
|
40274
|
+
const Ce = P == null ? void 0 : P[G.field];
|
|
40275
|
+
return Ce ? typeof Ce == "string" && /^\d{2}:\d{2}/.test(Ce) ? Ce.substring(0, 8) : i(Ce, "time") : "";
|
|
40276
40276
|
}
|
|
40277
40277
|
return (P == null ? void 0 : P[G.field]) ?? "";
|
|
40278
40278
|
} catch {
|
|
@@ -40291,7 +40291,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40291
40291
|
const { row: P, column: G } = b, { field: ce, onI18nClick: me } = p.props || {};
|
|
40292
40292
|
if (!ce || !ce.__config__ || !ce.__vModel__)
|
|
40293
40293
|
return [];
|
|
40294
|
-
const
|
|
40294
|
+
const Ce = P[G.field], Ve = br({ [ce.__vModel__]: Ce }), et = Ve.__hasWorkflow__ || !1, qe = P.FDOCUMENTSTATE === "C" || P.fdocumentstate === "C", Je = !(et && qe), nt = {
|
|
40295
40295
|
...ce,
|
|
40296
40296
|
disabled: !Je,
|
|
40297
40297
|
readonly: !Je,
|
|
@@ -40322,29 +40322,29 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40322
40322
|
}
|
|
40323
40323
|
}), Fn.renderer.get("$relationCell") || Fn.renderer.add("$relationCell", {
|
|
40324
40324
|
renderDefault(p, b) {
|
|
40325
|
-
const { row: P, column: G } = b, { field: ce, isMultiple: me } = p.props || {},
|
|
40325
|
+
const { row: P, column: G } = b, { field: ce, isMultiple: me } = p.props || {}, Ce = (ce == null ? void 0 : ce.__vModel__) || G.field, Ve = P[Ce];
|
|
40326
40326
|
if (Ve == null || Ve === "" || Ve === "0")
|
|
40327
40327
|
return [];
|
|
40328
|
-
const
|
|
40329
|
-
let
|
|
40330
|
-
if (
|
|
40331
|
-
const Je = typeof
|
|
40328
|
+
const et = P[Ce + "_data"];
|
|
40329
|
+
let qe = [];
|
|
40330
|
+
if (et) {
|
|
40331
|
+
const Je = typeof et == "string" ? (() => {
|
|
40332
40332
|
try {
|
|
40333
|
-
return JSON.parse(
|
|
40333
|
+
return JSON.parse(et);
|
|
40334
40334
|
} catch {
|
|
40335
40335
|
return null;
|
|
40336
40336
|
}
|
|
40337
|
-
})() :
|
|
40338
|
-
Array.isArray(Je) ?
|
|
40337
|
+
})() : et;
|
|
40338
|
+
Array.isArray(Je) ? qe = Je.map((nt) => nt.fname || nt.FNAME || nt.fullName || nt.name || "") : Je && (qe = [Je.fname || Je.FNAME || Je.fullName || Je.name || ""]);
|
|
40339
40339
|
}
|
|
40340
|
-
if (
|
|
40340
|
+
if (qe.length === 0 || qe.every((Je) => !Je)) {
|
|
40341
40341
|
const Je = String(Ve);
|
|
40342
|
-
|
|
40342
|
+
qe = Je.includes(",") ? Je.split(",").map((nt) => nt.trim()).filter((nt) => nt && nt !== "0") : [Je];
|
|
40343
40343
|
}
|
|
40344
|
-
return
|
|
40344
|
+
return qe = qe.filter((Je) => Je), qe.length === 0 ? [] : me && qe.length > 1 ? qe.map((Je) => El("span", {
|
|
40345
40345
|
class: "cd-relation-tag",
|
|
40346
40346
|
style: "display:inline-block;padding:1px 8px;margin:1px 4px 1px 0;background:#f0f2f5;border-radius:3px;font-size:12px;line-height:20px;"
|
|
40347
|
-
}, Je)) : [El("span", {},
|
|
40347
|
+
}, Je)) : [El("span", {}, qe.join(", "))];
|
|
40348
40348
|
}
|
|
40349
40349
|
});
|
|
40350
40350
|
const s = e, c = br({});
|
|
@@ -40413,7 +40413,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40413
40413
|
topOp: p.topOp || "and",
|
|
40414
40414
|
columns: he.value || []
|
|
40415
40415
|
}), P = await g_({ releaseId: s.modelId, name: p.name, config: b });
|
|
40416
|
-
(P == null ? void 0 : P.code) === 200 ? (await A(),
|
|
40416
|
+
(P == null ? void 0 : P.code) === 200 ? (await A(), Ke.success("方案已保存")) : Ke.error((P == null ? void 0 : P.message) || "保存失败");
|
|
40417
40417
|
}
|
|
40418
40418
|
async function L(p) {
|
|
40419
40419
|
var G;
|
|
@@ -40426,7 +40426,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40426
40426
|
topOp: p.topOp || "and",
|
|
40427
40427
|
columns: he.value || []
|
|
40428
40428
|
}), P = await Fl(p.plan.value, { name: p.name, config: b });
|
|
40429
|
-
(P == null ? void 0 : P.code) === 200 ? (await A(),
|
|
40429
|
+
(P == null ? void 0 : P.code) === 200 ? (await A(), Ke.success("方案已更新")) : Ke.error((P == null ? void 0 : P.message) || "更新失败");
|
|
40430
40430
|
}
|
|
40431
40431
|
async function U(p) {
|
|
40432
40432
|
if (!s.modelId || !(p != null && p.value)) {
|
|
@@ -40434,7 +40434,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40434
40434
|
return;
|
|
40435
40435
|
}
|
|
40436
40436
|
const b = await x_(p.value);
|
|
40437
|
-
(b == null ? void 0 : b.code) === 200 ? (await A(),
|
|
40437
|
+
(b == null ? void 0 : b.code) === 200 ? (await A(), Ke.success("方案已删除")) : Ke.error((b == null ? void 0 : b.message) || "删除失败");
|
|
40438
40438
|
}
|
|
40439
40439
|
async function j(p) {
|
|
40440
40440
|
if (!s.modelId || !(p != null && p.value)) {
|
|
@@ -40444,7 +40444,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40444
40444
|
for (const P of te.value)
|
|
40445
40445
|
P.isDefault === 1 && P.value !== p.value && await Fl(P.value, { isDefault: 0 });
|
|
40446
40446
|
const b = await Fl(p.value, { isDefault: 1 });
|
|
40447
|
-
(b == null ? void 0 : b.code) === 200 && (await A(),
|
|
40447
|
+
(b == null ? void 0 : b.code) === 200 && (await A(), Ke.success("已设为默认方案"));
|
|
40448
40448
|
}
|
|
40449
40449
|
const ie = (p) => {
|
|
40450
40450
|
o("copy-plan", p);
|
|
@@ -40474,8 +40474,8 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40474
40474
|
...p
|
|
40475
40475
|
};
|
|
40476
40476
|
((b = v.value) == null ? void 0 : b.type) === 2 && H.value && (me.treeActiveId = H.value);
|
|
40477
|
-
const
|
|
40478
|
-
(
|
|
40477
|
+
const Ce = await Kc(s.modelId, me);
|
|
40478
|
+
(Ce == null ? void 0 : Ce.code) === 200 && (g.value = ((P = Ce.data) == null ? void 0 : P.list) || [], _.value = ((ce = (G = Ce.data) == null ? void 0 : G.pagination) == null ? void 0 : ce.total) || 0);
|
|
40479
40479
|
} catch (me) {
|
|
40480
40480
|
console.error("[CdForm] reloadData error", me);
|
|
40481
40481
|
} finally {
|
|
@@ -40493,8 +40493,8 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40493
40493
|
for (const me of P)
|
|
40494
40494
|
G.set(String(me.fid), { ...me, value: String(me.fid), label: me.fname, children: [] });
|
|
40495
40495
|
for (const me of G.values()) {
|
|
40496
|
-
const
|
|
40497
|
-
|
|
40496
|
+
const Ce = String(me.parentid ?? "");
|
|
40497
|
+
Ce && G.has(Ce) ? G.get(Ce).children.push(me) : ce.push(me);
|
|
40498
40498
|
}
|
|
40499
40499
|
k.value = ce;
|
|
40500
40500
|
}
|
|
@@ -40519,8 +40519,8 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40519
40519
|
for (const ce of G) {
|
|
40520
40520
|
const me = ce.__config__;
|
|
40521
40521
|
if (!me) continue;
|
|
40522
|
-
const
|
|
40523
|
-
Array.isArray(
|
|
40522
|
+
const Ce = me.appVisibility;
|
|
40523
|
+
Array.isArray(Ce) && Ce.length > 0 && !Ce.includes(b) ? (me._appHidden = !0, me.noShow = !0) : me._appHidden && (me._appHidden = !1, me.noShow = !1), me.children && P(me.children);
|
|
40524
40524
|
}
|
|
40525
40525
|
};
|
|
40526
40526
|
P(p);
|
|
@@ -40589,13 +40589,13 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40589
40589
|
const ce = G.__vModel__;
|
|
40590
40590
|
ce && (b[ce] = Wt(G));
|
|
40591
40591
|
}), b;
|
|
40592
|
-
}, ta = se(((po = s.pageConfig) == null ? void 0 : po.currentPage) || 1),
|
|
40592
|
+
}, ta = se(((po = s.pageConfig) == null ? void 0 : po.currentPage) || 1), Ye = se(((go = s.pageConfig) == null ? void 0 : go.pageSize) || 20), ea = se(!1), Tt = se([]), Kt = se(!0), ht = br({ visible: !1, header: "", body: "" }), pa = (p, b) => {
|
|
40593
40593
|
ht.header = p, ht.body = b, ht.visible = !0;
|
|
40594
40594
|
}, ot = se(!1), ft = se(""), Dt = se("add"), it = se(null);
|
|
40595
40595
|
let zt = br({});
|
|
40596
40596
|
const ba = Fe(() => {
|
|
40597
|
-
var
|
|
40598
|
-
const p = ((
|
|
40597
|
+
var qe, Je, nt;
|
|
40598
|
+
const p = ((qe = D.value) == null ? void 0 : qe.fields) || ((Je = s.formData) == null ? void 0 : Je.fields) || [], b = u.value.treeConfig;
|
|
40599
40599
|
if (!(b != null && b.enabled)) return p;
|
|
40600
40600
|
const P = b.parentField || "parentId";
|
|
40601
40601
|
if (p.some(
|
|
@@ -40604,7 +40604,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40604
40604
|
return kt.__vModel__ === P || ((yt = kt.__vModel__) == null ? void 0 : yt.toUpperCase()) === "FPARENTID" || ((Ot = kt.__config__) == null ? void 0 : Ot.cdkey) === "treeSelect";
|
|
40605
40605
|
}
|
|
40606
40606
|
)) return p;
|
|
40607
|
-
const ce = b.rowField || "fid", me = s.data || [],
|
|
40607
|
+
const ce = b.rowField || "fid", me = s.data || [], Ce = ((nt = p.find(
|
|
40608
40608
|
(kt) => {
|
|
40609
40609
|
var yt, Ot;
|
|
40610
40610
|
return ((yt = kt.__config__) == null ? void 0 : yt.cdkey) === "input" && ((Ot = kt.__config__) == null ? void 0 : Ot.required);
|
|
@@ -40632,7 +40632,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40632
40632
|
if (!me.length) return [];
|
|
40633
40633
|
const kt = /* @__PURE__ */ new Map(), yt = [];
|
|
40634
40634
|
for (const rt of me) {
|
|
40635
|
-
const Lt = rt[
|
|
40635
|
+
const Lt = rt[Ce] || rt.fname || rt.fnumber || rt.fullName || rt.name || String(rt[ce]);
|
|
40636
40636
|
kt.set(String(rt[ce]), {
|
|
40637
40637
|
value: String(rt[ce]),
|
|
40638
40638
|
label: Lt,
|
|
@@ -40652,7 +40652,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40652
40652
|
return Ot(yt), yt;
|
|
40653
40653
|
})()
|
|
40654
40654
|
}, ...p];
|
|
40655
|
-
}), Yt = se(!1), Fa = se(null), Ua = se([]), he = se([]), te = se([]), Te = se(!1), Xe = se(/* @__PURE__ */ new Map()),
|
|
40655
|
+
}), Yt = se(!1), Fa = se(null), Ua = se([]), he = se([]), te = se([]), Te = se(!1), Xe = se(/* @__PURE__ */ new Map()), je = se(!1), st = se("add"), gt = Fe(() => {
|
|
40656
40656
|
var P;
|
|
40657
40657
|
const p = ct(((P = s.formData) == null ? void 0 : P.fields) || []), b = ["orgid", "tenant_id", "creator_user_id", "creator_time", "last_modify_user_id", "last_modify_time", "delete_mark"];
|
|
40658
40658
|
return p.filter((G) => G.__config__ && G.__vModel__ && !G.__config__.noShow && !b.includes(G.__vModel__)).map((G) => ({
|
|
@@ -40785,18 +40785,18 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40785
40785
|
loading: !1,
|
|
40786
40786
|
parentNode: null,
|
|
40787
40787
|
editNode: null
|
|
40788
|
-
}),
|
|
40788
|
+
}), be = async () => {
|
|
40789
40789
|
var b;
|
|
40790
40790
|
const p = _e.inputValue.trim();
|
|
40791
40791
|
if (!p) {
|
|
40792
|
-
|
|
40792
|
+
Ke.warning("请输入节点名称");
|
|
40793
40793
|
return;
|
|
40794
40794
|
}
|
|
40795
40795
|
_e.loading = !0;
|
|
40796
40796
|
try {
|
|
40797
|
-
_e.editNode ? (await h_(s.modelId, _e.editNode.id, { fname: p }),
|
|
40797
|
+
_e.editNode ? (await h_(s.modelId, _e.editNode.id, { fname: p }), Ke.success("编辑成功")) : (await d_(s.modelId, { fname: p, parentid: ((b = _e.parentNode) == null ? void 0 : b.id) || null, sort: 0 }), Ke.success("新增成功")), _e.visible = !1, ge();
|
|
40798
40798
|
} catch {
|
|
40799
|
-
|
|
40799
|
+
Ke.error(_e.editNode ? "编辑失败" : "新增失败");
|
|
40800
40800
|
} finally {
|
|
40801
40801
|
_e.loading = !1;
|
|
40802
40802
|
}
|
|
@@ -40809,18 +40809,18 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40809
40809
|
}, We = (p) => {
|
|
40810
40810
|
var b, P, G, ce;
|
|
40811
40811
|
if (s.modelId) {
|
|
40812
|
-
const me = p.value ?? ((b = p.data) == null ? void 0 : b.id),
|
|
40812
|
+
const me = p.value ?? ((b = p.data) == null ? void 0 : b.id), Ce = p.label ?? ((P = p.data) == null ? void 0 : P.label), Ve = Xl.confirm({ header: "确认删除", body: `确认删除「${Ce}」?`, onConfirm: async () => {
|
|
40813
40813
|
Ve.hide();
|
|
40814
40814
|
try {
|
|
40815
|
-
const
|
|
40816
|
-
(
|
|
40815
|
+
const et = await v_(s.modelId, me);
|
|
40816
|
+
(et == null ? void 0 : et.code) === 200 ? (Ke.success("删除成功"), ge()) : Ke.error((et == null ? void 0 : et.msg) || "删除失败");
|
|
40817
40817
|
} catch {
|
|
40818
|
-
|
|
40818
|
+
Ke.error("删除失败");
|
|
40819
40819
|
}
|
|
40820
40820
|
} });
|
|
40821
40821
|
} else
|
|
40822
40822
|
o("tree-delete", { id: p.value ?? ((G = p.data) == null ? void 0 : G.id), label: p.label ?? ((ce = p.data) == null ? void 0 : ce.label), data: p.data });
|
|
40823
|
-
},
|
|
40823
|
+
}, tt = (p) => {
|
|
40824
40824
|
s.modelId ? ge() : o("tree-drag", p);
|
|
40825
40825
|
}, $e = Fe(() => {
|
|
40826
40826
|
var P, G;
|
|
@@ -40830,13 +40830,13 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40830
40830
|
if (b != null && b.on && b.relationField && O.value && O.value !== "__all__" && (p = p.filter((ce) => String(ce[b.relationField] ?? "") === O.value)), u.value.groupField || ((P = u.value.treeConfig) == null ? void 0 : P.enabled) === !0)
|
|
40831
40831
|
return p;
|
|
40832
40832
|
if ((G = s.pageConfig) != null && G.enabled && !s.enableVirtualScroll) {
|
|
40833
|
-
const ce = (ta.value - 1) *
|
|
40833
|
+
const ce = (ta.value - 1) * Ye.value, me = ce + Ye.value;
|
|
40834
40834
|
p = p.slice(ce, me);
|
|
40835
40835
|
}
|
|
40836
40836
|
return p;
|
|
40837
40837
|
});
|
|
40838
40838
|
lt(() => s.pageConfig, (p) => {
|
|
40839
|
-
p && (ta.value = p.currentPage || 1,
|
|
40839
|
+
p && (ta.value = p.currentPage || 1, Ye.value = p.pageSize || 20);
|
|
40840
40840
|
}, { deep: !0 }), lt(() => u.value.groupField, (p) => {
|
|
40841
40841
|
if (p) {
|
|
40842
40842
|
const b = Array.isArray(p) ? p : [p];
|
|
@@ -40853,8 +40853,8 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40853
40853
|
}, Wt = (p) => {
|
|
40854
40854
|
const b = p.__config__, P = b == null ? void 0 : b.cdkey;
|
|
40855
40855
|
if (p.defaultCurrent && (P === "date" || P === "datePicker" || P === "time")) {
|
|
40856
|
-
const ce = /* @__PURE__ */ new Date(), me = (kt) => String(kt).padStart(2, "0"),
|
|
40857
|
-
return P === "time" ? `${
|
|
40856
|
+
const ce = /* @__PURE__ */ new Date(), me = (kt) => String(kt).padStart(2, "0"), Ce = ce.getFullYear(), Ve = me(ce.getMonth() + 1), et = me(ce.getDate()), qe = me(ce.getHours()), Je = me(ce.getMinutes()), nt = me(ce.getSeconds());
|
|
40857
|
+
return P === "time" ? `${qe}:${Je}:${nt}` : p.type === "datetime" ? `${Ce}-${Ve}-${et} ${qe}:${Je}:${nt}` : `${Ce}-${Ve}-${et}`;
|
|
40858
40858
|
}
|
|
40859
40859
|
const G = b == null ? void 0 : b.defaultValue;
|
|
40860
40860
|
return G != null && G !== "" ? G : null;
|
|
@@ -40881,12 +40881,12 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40881
40881
|
const G = P.__config__, ce = P.__vModel__, me = G.cdkey;
|
|
40882
40882
|
if (!ce || G.noShow || me === "billno" || me === "divider" || me === "vxeSubGrid" || me === "table")
|
|
40883
40883
|
return;
|
|
40884
|
-
let
|
|
40885
|
-
["select", "radio", "checkbox"].includes(me) ?
|
|
40884
|
+
let Ce = "text";
|
|
40885
|
+
["select", "radio", "checkbox"].includes(me) ? Ce = "select" : me === "number" ? Ce = "number" : me === "date" || me === "datetime" ? Ce = "date" : me === "time" ? Ce = "time" : me === "switch" && (Ce = "select"), p.push({
|
|
40886
40886
|
key: G.label,
|
|
40887
40887
|
label: G.label,
|
|
40888
40888
|
value: ce,
|
|
40889
|
-
type:
|
|
40889
|
+
type: Ce
|
|
40890
40890
|
});
|
|
40891
40891
|
}), p;
|
|
40892
40892
|
}), ut = Fe(() => {
|
|
@@ -40894,10 +40894,10 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40894
40894
|
return ct(S.value.fields).forEach((P) => {
|
|
40895
40895
|
const G = P.__config__, ce = P.__vModel__, me = G.cdkey;
|
|
40896
40896
|
if (["select", "radio", "checkbox"].includes(me) && P.options && Array.isArray(P.options)) {
|
|
40897
|
-
const
|
|
40897
|
+
const Ce = P.options.map((Ve) => Ve.label || Ve.fullName || String(Ve.value));
|
|
40898
40898
|
p.push({
|
|
40899
40899
|
columnName: ce,
|
|
40900
|
-
value:
|
|
40900
|
+
value: Ce
|
|
40901
40901
|
});
|
|
40902
40902
|
} else me === "switch" && p.push({
|
|
40903
40903
|
columnName: ce,
|
|
@@ -40914,11 +40914,11 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40914
40914
|
});
|
|
40915
40915
|
}), p;
|
|
40916
40916
|
}), da = (p, b = !1) => {
|
|
40917
|
-
var
|
|
40917
|
+
var et, qe, Je, nt, kt;
|
|
40918
40918
|
const P = p.__config__, G = P.cdkey, ce = p.__vModel__;
|
|
40919
40919
|
if (!ce || P.noShow)
|
|
40920
40920
|
return null;
|
|
40921
|
-
const me = Xe.value.get(ce),
|
|
40921
|
+
const me = Xe.value.get(ce), Ce = {
|
|
40922
40922
|
field: ce,
|
|
40923
40923
|
title: P.label,
|
|
40924
40924
|
minwidth: 150,
|
|
@@ -40927,17 +40927,17 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40927
40927
|
headerAlign: "center",
|
|
40928
40928
|
sortable: !0
|
|
40929
40929
|
};
|
|
40930
|
-
me != null && me.fixed && me.fixed !== "none" ?
|
|
40930
|
+
me != null && me.fixed && me.fixed !== "none" ? Ce.fixed = me.fixed : P.fixed && P.fixed !== "none" && (Ce.fixed = P.fixed);
|
|
40931
40931
|
const Ve = r(G, p);
|
|
40932
|
-
if (Ve && (
|
|
40932
|
+
if (Ve && (Ce.cellRender = {
|
|
40933
40933
|
name: "$renderFormItem",
|
|
40934
40934
|
props: { field: p }
|
|
40935
40935
|
}), G === "relationForm") {
|
|
40936
40936
|
const yt = p.multiple === !0;
|
|
40937
|
-
yt ?
|
|
40937
|
+
yt ? Ce.cellRender = {
|
|
40938
40938
|
name: "$relationCell",
|
|
40939
40939
|
props: { field: p, isMultiple: yt }
|
|
40940
|
-
} :
|
|
40940
|
+
} : Ce.formatter = ({ row: Ot }) => {
|
|
40941
40941
|
const rt = Ot[ce + "_data"];
|
|
40942
40942
|
if (rt) {
|
|
40943
40943
|
const Lt = typeof rt == "string" ? (() => {
|
|
@@ -40955,19 +40955,19 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40955
40955
|
}
|
|
40956
40956
|
if (G === "switch") {
|
|
40957
40957
|
const yt = p["active-value"] ?? 1;
|
|
40958
|
-
|
|
40958
|
+
Ce.formatter = ({ row: Ot }) => {
|
|
40959
40959
|
const rt = Ot[ce];
|
|
40960
40960
|
return rt === yt || rt === !0 ? "启用" : "禁用";
|
|
40961
40961
|
};
|
|
40962
40962
|
}
|
|
40963
40963
|
if ((G === "select" || G === "radio") && !Ve) {
|
|
40964
|
-
const yt = p.options || ((
|
|
40964
|
+
const yt = p.options || ((et = p.__slot__) == null ? void 0 : et.options) || [];
|
|
40965
40965
|
if (yt.length > 0) {
|
|
40966
40966
|
const Ot = {};
|
|
40967
40967
|
yt.forEach((rt) => {
|
|
40968
40968
|
const Lt = String(rt.value ?? rt.id ?? "");
|
|
40969
40969
|
Ot[Lt] = rt.label || rt.fullName || rt.name || Lt;
|
|
40970
|
-
}),
|
|
40970
|
+
}), Ce.formatter = ({ row: rt }) => {
|
|
40971
40971
|
const Lt = rt[ce];
|
|
40972
40972
|
return Lt == null || Lt === "" ? "" : Ot[String(Lt)] ?? String(Lt);
|
|
40973
40973
|
};
|
|
@@ -40975,7 +40975,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40975
40975
|
}
|
|
40976
40976
|
if (G === "date" || G === "datetime") {
|
|
40977
40977
|
const yt = p.type || "date";
|
|
40978
|
-
|
|
40978
|
+
Ce.formatter = ({ row: Ot }) => {
|
|
40979
40979
|
const rt = Ot[ce];
|
|
40980
40980
|
if (!rt) return "";
|
|
40981
40981
|
try {
|
|
@@ -40994,15 +40994,15 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
40994
40994
|
}
|
|
40995
40995
|
if (oe.value && !["upload", "uploadImg", "editor", "colorPicker", "cascader"].includes(G))
|
|
40996
40996
|
if (G === "relationForm")
|
|
40997
|
-
|
|
40997
|
+
Ce.editRender = {
|
|
40998
40998
|
name: "$renderFormItem",
|
|
40999
40999
|
props: {
|
|
41000
41000
|
field: p,
|
|
41001
41001
|
onI18nClick: (Ot) => o("i18n-click", Ot)
|
|
41002
41002
|
}
|
|
41003
41003
|
};
|
|
41004
|
-
else if (G === "input" && ((
|
|
41005
|
-
|
|
41004
|
+
else if (G === "input" && ((qe = p.__config__) != null && qe.i18n))
|
|
41005
|
+
Ce.editRender = {
|
|
41006
41006
|
name: "$renderFormItem",
|
|
41007
41007
|
props: {
|
|
41008
41008
|
field: p,
|
|
@@ -41015,44 +41015,44 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41015
41015
|
cdkey: G,
|
|
41016
41016
|
type: p.type,
|
|
41017
41017
|
label: (Je = p.__config__) == null ? void 0 : Je.label
|
|
41018
|
-
}),
|
|
41018
|
+
}), Ce.editRender = {
|
|
41019
41019
|
name: "$renderFormItem",
|
|
41020
41020
|
props: {
|
|
41021
41021
|
field: p
|
|
41022
41022
|
}
|
|
41023
41023
|
};
|
|
41024
41024
|
else if (G === "numInput" || G === "inputNumber" || G === "amount" || G === "rate" || G === "slider")
|
|
41025
|
-
|
|
41025
|
+
Ce.editRender = { name: "VxeNumberInput" };
|
|
41026
41026
|
else if (G === "select" || G === "radio") {
|
|
41027
41027
|
const Ot = (p.options || ((nt = p.__slot__) == null ? void 0 : nt.options) || []).map((rt) => ({
|
|
41028
41028
|
label: rt.label || rt.fullName || rt.name || rt.value,
|
|
41029
41029
|
value: rt.value ?? rt.id
|
|
41030
41030
|
}));
|
|
41031
|
-
|
|
41031
|
+
Ce.editRender = { name: "VxeSelect", options: Ot };
|
|
41032
41032
|
} else if (G === "treeSelect") {
|
|
41033
41033
|
const Ot = (p.options || []).map((rt) => ({
|
|
41034
41034
|
label: rt.label || rt.fullName || rt.name,
|
|
41035
41035
|
value: rt.value ?? rt.id,
|
|
41036
41036
|
parentValue: rt.parentId ?? rt.parentValue
|
|
41037
41037
|
}));
|
|
41038
|
-
|
|
41038
|
+
Ce.editRender = { name: "VxeTreeSelect", options: Ot, props: { treeConfig: { transform: !0, rowField: "value", parentField: "parentValue" } } };
|
|
41039
41039
|
} else if (G === "switch")
|
|
41040
|
-
|
|
41040
|
+
Ce.editRender = { name: "VxeSwitch" };
|
|
41041
41041
|
else if (G === "checkbox") {
|
|
41042
41042
|
const Ot = (p.options || ((kt = p.__slot__) == null ? void 0 : kt.options) || []).map((rt) => ({
|
|
41043
41043
|
label: rt.label || rt.value,
|
|
41044
41044
|
value: rt.value ?? rt.id
|
|
41045
41045
|
}));
|
|
41046
|
-
|
|
41046
|
+
Ce.editRender = { name: "VxeCheckboxGroup", options: Ot };
|
|
41047
41047
|
} else
|
|
41048
|
-
|
|
41049
|
-
return Ir(
|
|
41048
|
+
Ce.editRender = { name: "VxeInput" };
|
|
41049
|
+
return Ir(Ce, p), Ce;
|
|
41050
41050
|
}, Ir = (p, b) => {
|
|
41051
41051
|
const G = b.__config__.cdkey, ce = b.__vModel__, me = /* @__PURE__ */ new Set();
|
|
41052
|
-
if (_a.value.forEach((
|
|
41053
|
-
const Ve =
|
|
41054
|
-
Ve != null && Ve !== "" && (Array.isArray(Ve) ? Ve.forEach((
|
|
41055
|
-
|
|
41052
|
+
if (_a.value.forEach((Ce) => {
|
|
41053
|
+
const Ve = Ce[ce];
|
|
41054
|
+
Ve != null && Ve !== "" && (Array.isArray(Ve) ? Ve.forEach((et) => {
|
|
41055
|
+
et != null && et !== "" && me.add(et);
|
|
41056
41056
|
}) : me.add(Ve));
|
|
41057
41057
|
}), me.size === 0) {
|
|
41058
41058
|
p.filters = [];
|
|
@@ -41060,25 +41060,25 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41060
41060
|
}
|
|
41061
41061
|
if (G === "relationForm") {
|
|
41062
41062
|
p.filterMultiple = !0;
|
|
41063
|
-
const
|
|
41064
|
-
_a.value.forEach((
|
|
41065
|
-
const
|
|
41066
|
-
|
|
41063
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
41064
|
+
_a.value.forEach((et) => {
|
|
41065
|
+
const qe = et[ce];
|
|
41066
|
+
qe != null && qe !== "" && qe !== "0" && String(qe).split(",").forEach((Je) => {
|
|
41067
41067
|
const nt = Je.trim();
|
|
41068
|
-
nt && nt !== "0" &&
|
|
41068
|
+
nt && nt !== "0" && Ce.add(nt);
|
|
41069
41069
|
});
|
|
41070
41070
|
});
|
|
41071
41071
|
const Ve = {};
|
|
41072
|
-
_a.value.forEach((
|
|
41073
|
-
const
|
|
41074
|
-
if (
|
|
41075
|
-
const Je = typeof
|
|
41072
|
+
_a.value.forEach((et) => {
|
|
41073
|
+
const qe = et[ce + "_data"];
|
|
41074
|
+
if (qe) {
|
|
41075
|
+
const Je = typeof qe == "string" ? (() => {
|
|
41076
41076
|
try {
|
|
41077
|
-
return JSON.parse(
|
|
41077
|
+
return JSON.parse(qe);
|
|
41078
41078
|
} catch {
|
|
41079
41079
|
return null;
|
|
41080
41080
|
}
|
|
41081
|
-
})() :
|
|
41081
|
+
})() : qe;
|
|
41082
41082
|
if (Array.isArray(Je))
|
|
41083
41083
|
Je.forEach((nt) => {
|
|
41084
41084
|
const kt = String(nt.fid ?? nt.id ?? ""), yt = nt.fname || nt.FNAME || nt.fullName || nt.name || "";
|
|
@@ -41089,44 +41089,44 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41089
41089
|
nt && kt && (Ve[nt] = kt);
|
|
41090
41090
|
}
|
|
41091
41091
|
}
|
|
41092
|
-
}), p.filters = Array.from(
|
|
41093
|
-
label: Ve[
|
|
41094
|
-
value:
|
|
41095
|
-
})), p.filterMethod = ({ value:
|
|
41096
|
-
const Je =
|
|
41097
|
-
return Je ? String(Je).split(",").map((kt) => kt.trim()).includes(String(
|
|
41092
|
+
}), p.filters = Array.from(Ce).map((et) => ({
|
|
41093
|
+
label: Ve[et] || et,
|
|
41094
|
+
value: et
|
|
41095
|
+
})), p.filterMethod = ({ value: et, row: qe }) => {
|
|
41096
|
+
const Je = qe[ce];
|
|
41097
|
+
return Je ? String(Je).split(",").map((kt) => kt.trim()).includes(String(et)) : !1;
|
|
41098
41098
|
};
|
|
41099
|
-
} else G === "select" || G === "radio" || G === "checkbox" || G === "cascader" ? (p.filterMultiple = !0, p.filters = [], me.forEach((
|
|
41100
|
-
let Ve = String(
|
|
41099
|
+
} else G === "select" || G === "radio" || G === "checkbox" || G === "cascader" ? (p.filterMultiple = !0, p.filters = [], me.forEach((Ce) => {
|
|
41100
|
+
let Ve = String(Ce);
|
|
41101
41101
|
if (b.options && Array.isArray(b.options)) {
|
|
41102
|
-
const
|
|
41103
|
-
|
|
41102
|
+
const et = b.options.find((qe) => (qe.value || qe.key || qe.id) == Ce);
|
|
41103
|
+
et && (Ve = et.label || et.fullName || String(Ce));
|
|
41104
41104
|
}
|
|
41105
41105
|
p.filters.push({
|
|
41106
41106
|
label: Ve,
|
|
41107
|
-
value:
|
|
41107
|
+
value: Ce
|
|
41108
41108
|
});
|
|
41109
|
-
})) : G === "switch" ? (p.filterMultiple = !1, p.filters = [], me.has(!0) && p.filters.push({ label: "是", value: !0 }), me.has(!1) && p.filters.push({ label: "否", value: !1 })) : G === "input" || G === "textarea" ? (p.filterMultiple = !0, p.filters = Array.from(me).sort().map((
|
|
41110
|
-
label: String(
|
|
41111
|
-
value:
|
|
41112
|
-
}))) : G === "number" ? (p.filterMultiple = !0, p.filters = Array.from(me).sort((
|
|
41113
|
-
label: String(
|
|
41114
|
-
value:
|
|
41115
|
-
}))) : G === "date" || G === "time" ? (p.filterMultiple = !0, p.filters = Array.from(me).sort().map((
|
|
41116
|
-
label: String(
|
|
41117
|
-
value:
|
|
41118
|
-
}))) : (p.filterMultiple = !0, p.filters = Array.from(me).sort().map((
|
|
41119
|
-
label: String(
|
|
41120
|
-
value:
|
|
41109
|
+
})) : G === "switch" ? (p.filterMultiple = !1, p.filters = [], me.has(!0) && p.filters.push({ label: "是", value: !0 }), me.has(!1) && p.filters.push({ label: "否", value: !1 })) : G === "input" || G === "textarea" ? (p.filterMultiple = !0, p.filters = Array.from(me).sort().map((Ce) => ({
|
|
41110
|
+
label: String(Ce),
|
|
41111
|
+
value: Ce
|
|
41112
|
+
}))) : G === "number" ? (p.filterMultiple = !0, p.filters = Array.from(me).sort((Ce, Ve) => Number(Ce) - Number(Ve)).map((Ce) => ({
|
|
41113
|
+
label: String(Ce),
|
|
41114
|
+
value: Ce
|
|
41115
|
+
}))) : G === "date" || G === "time" ? (p.filterMultiple = !0, p.filters = Array.from(me).sort().map((Ce) => ({
|
|
41116
|
+
label: String(Ce),
|
|
41117
|
+
value: Ce
|
|
41118
|
+
}))) : (p.filterMultiple = !0, p.filters = Array.from(me).sort().map((Ce) => ({
|
|
41119
|
+
label: String(Ce),
|
|
41120
|
+
value: Ce
|
|
41121
41121
|
})));
|
|
41122
41122
|
}, Ri = () => {
|
|
41123
|
-
var Ve,
|
|
41123
|
+
var Ve, et;
|
|
41124
41124
|
if (s.tableColumns && s.tableColumns.length > 0)
|
|
41125
|
-
return s.tableColumns.map((
|
|
41126
|
-
...
|
|
41127
|
-
sortable:
|
|
41125
|
+
return s.tableColumns.map((qe, Je) => ({
|
|
41126
|
+
...qe,
|
|
41127
|
+
sortable: qe.sortable !== void 0 ? qe.sortable : !0
|
|
41128
41128
|
}));
|
|
41129
|
-
const p = [], b = (Ve = vt.columns) == null ? void 0 : Ve.find((
|
|
41129
|
+
const p = [], b = (Ve = vt.columns) == null ? void 0 : Ve.find((qe) => qe.field === "group");
|
|
41130
41130
|
if (p.push({
|
|
41131
41131
|
type: "checkbox",
|
|
41132
41132
|
width: 60,
|
|
@@ -41140,8 +41140,8 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41140
41140
|
footer: "checkbox_footer"
|
|
41141
41141
|
}
|
|
41142
41142
|
}), b && p.push(b), (!S.value.fields || S.value.fields.length === 0) && _a.value.length > 0) {
|
|
41143
|
-
const
|
|
41144
|
-
return Object.keys(
|
|
41143
|
+
const qe = _a.value[0];
|
|
41144
|
+
return Object.keys(qe).forEach((Je) => {
|
|
41145
41145
|
const nt = {
|
|
41146
41146
|
field: Je,
|
|
41147
41147
|
title: Je.charAt(0).toUpperCase() + Je.slice(1),
|
|
@@ -41153,7 +41153,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41153
41153
|
}), p;
|
|
41154
41154
|
}
|
|
41155
41155
|
if (S.value.fields && S.value.fields.length > 0) {
|
|
41156
|
-
const
|
|
41156
|
+
const qe = (nt, kt = !1) => {
|
|
41157
41157
|
const yt = nt.__config__;
|
|
41158
41158
|
if (yt.noShow)
|
|
41159
41159
|
return null;
|
|
@@ -41196,7 +41196,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41196
41196
|
return null;
|
|
41197
41197
|
};
|
|
41198
41198
|
S.value.fields.forEach((nt) => {
|
|
41199
|
-
const kt =
|
|
41199
|
+
const kt = qe(nt);
|
|
41200
41200
|
kt && p.push(kt);
|
|
41201
41201
|
}), p.length < 6 && (p[p.length - 1].width = 200), S.value.fields.some(
|
|
41202
41202
|
(nt) => {
|
|
@@ -41212,11 +41212,11 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41212
41212
|
}
|
|
41213
41213
|
});
|
|
41214
41214
|
}
|
|
41215
|
-
if (Ga.value && ((
|
|
41216
|
-
const
|
|
41217
|
-
|
|
41215
|
+
if (Ga.value && ((et = u.value.treeConfig) != null && et.enabled)) {
|
|
41216
|
+
const qe = p.find((Je) => Je.type !== "checkbox" && Je.type !== "expand" && Je.field !== "group");
|
|
41217
|
+
qe && (qe.treeNode = !0);
|
|
41218
41218
|
}
|
|
41219
|
-
p.some((
|
|
41219
|
+
p.some((qe) => qe.field === "fdocstatus") || p.push({
|
|
41220
41220
|
field: "fdocstatus",
|
|
41221
41221
|
title: "状态",
|
|
41222
41222
|
width: 90,
|
|
@@ -41227,19 +41227,19 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41227
41227
|
slots: { default: "fdocstatus_col" }
|
|
41228
41228
|
});
|
|
41229
41229
|
const ce = (u.value.columnBtnsList || u.value.btnsList || []).filter(
|
|
41230
|
-
(
|
|
41230
|
+
(qe) => qe.show && ["copy", "remove", "detail", "design"].includes(qe.value)
|
|
41231
41231
|
), me = [
|
|
41232
41232
|
{ value: "remove", label: "删除", show: !0 },
|
|
41233
41233
|
{ value: "detail", label: "详情", show: !0 }
|
|
41234
|
-
],
|
|
41235
|
-
for (const
|
|
41236
|
-
const Je = ce.find((nt) => nt.value ===
|
|
41237
|
-
Je ? Je.show &&
|
|
41238
|
-
}
|
|
41239
|
-
for (const
|
|
41240
|
-
me.some((Je) => Je.value ===
|
|
41241
|
-
if (
|
|
41242
|
-
const
|
|
41234
|
+
], Ce = [];
|
|
41235
|
+
for (const qe of me) {
|
|
41236
|
+
const Je = ce.find((nt) => nt.value === qe.value);
|
|
41237
|
+
Je ? Je.show && Ce.push(Je) : Ce.push(qe);
|
|
41238
|
+
}
|
|
41239
|
+
for (const qe of ce)
|
|
41240
|
+
me.some((Je) => Je.value === qe.value) || Ce.push(qe);
|
|
41241
|
+
if (Ce.length > 0) {
|
|
41242
|
+
const qe = oe.value ? 1 : 0, Je = (Ce.length + qe) * 58 + 16;
|
|
41243
41243
|
p.push({
|
|
41244
41244
|
field: "_action",
|
|
41245
41245
|
title: "操作",
|
|
@@ -41441,7 +41441,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41441
41441
|
count: (p, b) => p.filter((P) => P[b] !== null && P[b] !== void 0 && P[b] !== "").length.toString(),
|
|
41442
41442
|
// 中位数
|
|
41443
41443
|
median: (p, b, P = 2) => {
|
|
41444
|
-
const G = p.map((
|
|
41444
|
+
const G = p.map((Ce) => Number(Ce[b])).filter((Ce) => !isNaN(Ce)).sort((Ce, Ve) => Ce - Ve);
|
|
41445
41445
|
if (G.length === 0) return "0";
|
|
41446
41446
|
const ce = Math.floor(G.length / 2);
|
|
41447
41447
|
return (G.length % 2 === 0 ? (G[ce - 1] + G[ce]) / 2 : G[ce]).toFixed(P);
|
|
@@ -41450,11 +41450,11 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41450
41450
|
mode: (p, b, P = 2) => {
|
|
41451
41451
|
const G = {};
|
|
41452
41452
|
let ce = 0, me = 0;
|
|
41453
|
-
return p.forEach((
|
|
41454
|
-
const Ve = Number(
|
|
41453
|
+
return p.forEach((Ce) => {
|
|
41454
|
+
const Ve = Number(Ce[b]);
|
|
41455
41455
|
if (!isNaN(Ve)) {
|
|
41456
|
-
const
|
|
41457
|
-
G[
|
|
41456
|
+
const et = Ve.toString();
|
|
41457
|
+
G[et] = (G[et] || 0) + 1, G[et] > ce && (ce = G[et], me = Ve);
|
|
41458
41458
|
}
|
|
41459
41459
|
}), me.toFixed(P);
|
|
41460
41460
|
}
|
|
@@ -41464,13 +41464,13 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41464
41464
|
operations: []
|
|
41465
41465
|
};
|
|
41466
41466
|
return ct(S.value.fields).forEach((G) => {
|
|
41467
|
-
const ce = G.__config__, me = G.__vModel__,
|
|
41468
|
-
if (!me || ce.noShow ||
|
|
41467
|
+
const ce = G.__config__, me = G.__vModel__, Ce = ce.cdkey;
|
|
41468
|
+
if (!me || ce.noShow || Ce === "billno" || Ce === "divider")
|
|
41469
41469
|
return;
|
|
41470
41470
|
const Ve = ce.summary || G.summary;
|
|
41471
|
-
(
|
|
41472
|
-
|
|
41473
|
-
...
|
|
41471
|
+
(Ce === "number" || Ce === "calculate") && (p.push(me), Ve != null && Ve.operations && Array.isArray(Ve.operations) && Ve.operations.forEach((et) => {
|
|
41472
|
+
et.enabled && (b.enabled = !0, b.operations.push({
|
|
41473
|
+
...et,
|
|
41474
41474
|
field: me
|
|
41475
41475
|
}));
|
|
41476
41476
|
}));
|
|
@@ -41488,11 +41488,11 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41488
41488
|
checkbox: ce.label || ce.type,
|
|
41489
41489
|
name: "-"
|
|
41490
41490
|
};
|
|
41491
|
-
b.forEach((
|
|
41491
|
+
b.forEach((Ce) => {
|
|
41492
41492
|
const Ve = uf[ce.type];
|
|
41493
41493
|
if (Ve) {
|
|
41494
|
-
const
|
|
41495
|
-
me[
|
|
41494
|
+
const et = Ve(p, Ce, ce.decimalPlaces);
|
|
41495
|
+
me[Ce] = ce.showUnit && ce.unit ? `${et} ${ce.unit}` : et;
|
|
41496
41496
|
}
|
|
41497
41497
|
}), G.push(me);
|
|
41498
41498
|
}), G;
|
|
@@ -41526,10 +41526,10 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41526
41526
|
break;
|
|
41527
41527
|
case "upload":
|
|
41528
41528
|
case "import-add":
|
|
41529
|
-
st.value = "add",
|
|
41529
|
+
st.value = "add", je.value = !0;
|
|
41530
41530
|
break;
|
|
41531
41531
|
case "import-update":
|
|
41532
|
-
st.value = "update",
|
|
41532
|
+
st.value = "update", je.value = !0;
|
|
41533
41533
|
break;
|
|
41534
41534
|
case "download":
|
|
41535
41535
|
case "export-page":
|
|
@@ -41564,7 +41564,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41564
41564
|
var b;
|
|
41565
41565
|
const p = (b = re.value) == null ? void 0 : b.getCheckboxRecords();
|
|
41566
41566
|
if (!p || p.length === 0) {
|
|
41567
|
-
|
|
41567
|
+
Ke.warning("请选择要复制的数据");
|
|
41568
41568
|
return;
|
|
41569
41569
|
}
|
|
41570
41570
|
Dt.value = "copy", ft.value = "复制", ot.value = !0, Mt(() => {
|
|
@@ -41575,11 +41575,11 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41575
41575
|
var P;
|
|
41576
41576
|
const p = (P = re.value) == null ? void 0 : P.getCheckboxRecords();
|
|
41577
41577
|
if (!p || p.length === 0) {
|
|
41578
|
-
|
|
41578
|
+
Ke.warning("请选择要编辑的数据");
|
|
41579
41579
|
return;
|
|
41580
41580
|
}
|
|
41581
41581
|
if (p.length > 1) {
|
|
41582
|
-
|
|
41582
|
+
Ke.warning("只能选择一条数据进行编辑");
|
|
41583
41583
|
return;
|
|
41584
41584
|
}
|
|
41585
41585
|
const b = p[0];
|
|
@@ -41591,11 +41591,11 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41591
41591
|
var P;
|
|
41592
41592
|
const p = (P = re.value) == null ? void 0 : P.getCheckboxRecords();
|
|
41593
41593
|
if (!p || p.length === 0) {
|
|
41594
|
-
|
|
41594
|
+
Ke.warning("请选择要查看的数据");
|
|
41595
41595
|
return;
|
|
41596
41596
|
}
|
|
41597
41597
|
if (p.length > 1) {
|
|
41598
|
-
|
|
41598
|
+
Ke.warning("只能选择一条数据查看详情");
|
|
41599
41599
|
return;
|
|
41600
41600
|
}
|
|
41601
41601
|
const b = p[0];
|
|
@@ -41604,7 +41604,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41604
41604
|
(G = q.value) == null || G.initFormData({ ...b });
|
|
41605
41605
|
});
|
|
41606
41606
|
}, xf = ({ row: p, column: b }) => {
|
|
41607
|
-
var
|
|
41607
|
+
var Ce;
|
|
41608
41608
|
if (!p || p._isEmpty)
|
|
41609
41609
|
return;
|
|
41610
41610
|
o("row-dblclick", p);
|
|
@@ -41618,7 +41618,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41618
41618
|
});
|
|
41619
41619
|
return;
|
|
41620
41620
|
}
|
|
41621
|
-
const G = ((
|
|
41621
|
+
const G = ((Ce = s.formData) == null ? void 0 : Ce.hasWorkflow) || !1, ce = p.FDOCUMENTSTATE === "C" || p.fdocumentstate === "C", me = !(G && ce);
|
|
41622
41622
|
s.showType !== "dialog" && (oe.value && me ? (re.value && re.value.clearEdit(), Dt.value = "edit", it.value = p, ft.value = "编辑", ot.value = !0, Mt(() => {
|
|
41623
41623
|
q.value && q.value.initFormData({ ...p });
|
|
41624
41624
|
})) : !oe.value && me ? (Dt.value = "edit", it.value = p, ft.value = "编辑", ot.value = !0, Mt(() => {
|
|
@@ -41643,7 +41643,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41643
41643
|
var b;
|
|
41644
41644
|
const p = (b = re.value) == null ? void 0 : b.getCheckboxRecords();
|
|
41645
41645
|
if (!p || p.length === 0) {
|
|
41646
|
-
|
|
41646
|
+
Ke.warning("请选择要删除的数据");
|
|
41647
41647
|
return;
|
|
41648
41648
|
}
|
|
41649
41649
|
if (s.modelId) {
|
|
@@ -41654,9 +41654,9 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41654
41654
|
const ce = String(G.fid || G.id || "");
|
|
41655
41655
|
await Fo({ formid: s.modelId, recordid: ce });
|
|
41656
41656
|
}
|
|
41657
|
-
|
|
41657
|
+
Ke.success("删除成功"), await ue();
|
|
41658
41658
|
} catch {
|
|
41659
|
-
|
|
41659
|
+
Ke.error("删除失败");
|
|
41660
41660
|
}
|
|
41661
41661
|
} });
|
|
41662
41662
|
} else
|
|
@@ -41679,15 +41679,15 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41679
41679
|
}, wf = ({ row: p, column: b }) => {
|
|
41680
41680
|
if (!oe.value || !p) return;
|
|
41681
41681
|
if (p._isEmpty) {
|
|
41682
|
-
if (ct(S.value.fields).some((
|
|
41683
|
-
const Ve =
|
|
41682
|
+
if (ct(S.value.fields).some((Ce) => {
|
|
41683
|
+
const Ve = Ce.__vModel__;
|
|
41684
41684
|
if (!Ve) return !1;
|
|
41685
|
-
const
|
|
41686
|
-
return
|
|
41685
|
+
const et = p[Ve];
|
|
41686
|
+
return et == null || et === "" ? !1 : et !== Wt(Ce);
|
|
41687
41687
|
})) {
|
|
41688
41688
|
delete p._isEmpty, p._rowKey || (p._rowKey = `new_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`);
|
|
41689
|
-
const
|
|
41690
|
-
De(
|
|
41689
|
+
const Ce = p._rowKey;
|
|
41690
|
+
De(Ce, { ...p }), Ne.value = !0, re.value && (re.value.setCheckboxRow(p, !0), Me.value.add(Ce)), Mt(() => xr());
|
|
41691
41691
|
}
|
|
41692
41692
|
return;
|
|
41693
41693
|
}
|
|
@@ -41706,16 +41706,16 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41706
41706
|
if (P === "B" || P === "C") return;
|
|
41707
41707
|
const G = (b == null ? void 0 : b.field) || (b == null ? void 0 : b.property);
|
|
41708
41708
|
if (p._isEmpty) {
|
|
41709
|
-
const me = ct(S.value.fields).some((
|
|
41710
|
-
const Ve =
|
|
41709
|
+
const me = ct(S.value.fields).some((Ce) => {
|
|
41710
|
+
const Ve = Ce.__vModel__;
|
|
41711
41711
|
if (!Ve) return !1;
|
|
41712
|
-
const
|
|
41713
|
-
if (
|
|
41714
|
-
const
|
|
41715
|
-
return
|
|
41712
|
+
const et = p[Ve];
|
|
41713
|
+
if (et == null || et === "") return !1;
|
|
41714
|
+
const qe = Wt(Ce);
|
|
41715
|
+
return et !== qe;
|
|
41716
41716
|
});
|
|
41717
|
-
console.log("[CdForm handleEditClosed] 空行有用户输入:", me), me && (delete p._isEmpty, p._isNew = !0, p._rowKey || (p._rowKey = `new_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`), Yn(p, "Z").then((
|
|
41718
|
-
if (
|
|
41717
|
+
console.log("[CdForm handleEditClosed] 空行有用户输入:", me), me && (delete p._isEmpty, p._isNew = !0, p._rowKey || (p._rowKey = `new_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`), Yn(p, "Z").then((Ce) => {
|
|
41718
|
+
if (Ce) {
|
|
41719
41719
|
const Ve = p._rowKey || String(p.fid);
|
|
41720
41720
|
fe(Ve), X.value.size === 0 && (Ne.value = !1), ue().then(() => Mt(() => xr()));
|
|
41721
41721
|
}
|
|
@@ -41723,18 +41723,18 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41723
41723
|
} else if (G && (p.fid || p._isNew) && !p._isEmpty) {
|
|
41724
41724
|
const ce = p._isNew === !0, me = p._rowKey || String(p.fid);
|
|
41725
41725
|
if (ce)
|
|
41726
|
-
Yn(p, "Z").then((
|
|
41727
|
-
|
|
41726
|
+
Yn(p, "Z").then((Ce) => {
|
|
41727
|
+
Ce && (fe(me), X.value.size === 0 && (Ne.value = !1), ue().then(() => Mt(() => xr())));
|
|
41728
41728
|
});
|
|
41729
41729
|
else {
|
|
41730
|
-
const
|
|
41731
|
-
if (Re.has(
|
|
41732
|
-
Re.delete(
|
|
41730
|
+
const Ce = `${p.fid}_${G}`;
|
|
41731
|
+
if (Re.has(Ce)) {
|
|
41732
|
+
Re.delete(Ce), Ee.value.delete(Ce), xr();
|
|
41733
41733
|
return;
|
|
41734
41734
|
}
|
|
41735
|
-
const Ve = Ee.value.get(
|
|
41736
|
-
Ee.value.delete(
|
|
41737
|
-
if (
|
|
41735
|
+
const Ve = Ee.value.get(Ce), et = p[G];
|
|
41736
|
+
Ee.value.delete(Ce), (Ve === void 0 || Ve !== et) && Yn(p, "Z").then((qe) => {
|
|
41737
|
+
if (qe) {
|
|
41738
41738
|
const Je = p._rowKey || String(p.fid);
|
|
41739
41739
|
fe(Je), X.value.size === 0 && (Ne.value = !1), ue().then(() => Mt(() => xr()));
|
|
41740
41740
|
}
|
|
@@ -41753,13 +41753,13 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41753
41753
|
if (p._isNew === !0 || !p.fid || p.fid <= 0) {
|
|
41754
41754
|
const me = await Tl(s.modelId, P);
|
|
41755
41755
|
if ((me == null ? void 0 : me.code) !== 200)
|
|
41756
|
-
return
|
|
41757
|
-
|
|
41756
|
+
return Ke.error((me == null ? void 0 : me.msg) || "新增失败"), !1;
|
|
41757
|
+
Ke.success(b === "Z" ? "暂存成功" : "保存成功");
|
|
41758
41758
|
} else {
|
|
41759
|
-
const me = String(p._originalId || p.fid || p.id || ""),
|
|
41760
|
-
if ((
|
|
41761
|
-
return
|
|
41762
|
-
|
|
41759
|
+
const me = String(p._originalId || p.fid || p.id || ""), Ce = await To(s.modelId, me, P);
|
|
41760
|
+
if ((Ce == null ? void 0 : Ce.code) !== 200)
|
|
41761
|
+
return Ke.error((Ce == null ? void 0 : Ce.msg) || "编辑失败"), !1;
|
|
41762
|
+
Ke.success(b === "Z" ? "暂存成功" : "保存成功");
|
|
41763
41763
|
}
|
|
41764
41764
|
else
|
|
41765
41765
|
o("inline-save", [P]);
|
|
@@ -41790,10 +41790,10 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41790
41790
|
if (delete ce.fid, delete ce.fbillno, delete ce.fnumber, delete ce.creator_time, delete ce.creator_user_id, delete ce.last_modify_time, delete ce.last_modify_user_id, ce.fdocstatus = "Z", s.modelId) {
|
|
41791
41791
|
const me = await Tl(s.modelId, ce);
|
|
41792
41792
|
if ((me == null ? void 0 : me.code) !== 200) {
|
|
41793
|
-
|
|
41793
|
+
Ke.error((me == null ? void 0 : me.msg) || "复制失败");
|
|
41794
41794
|
return;
|
|
41795
41795
|
}
|
|
41796
|
-
|
|
41796
|
+
Ke.success("复制成功"), await ue();
|
|
41797
41797
|
}
|
|
41798
41798
|
break;
|
|
41799
41799
|
}
|
|
@@ -41804,10 +41804,10 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41804
41804
|
if (s.modelId) {
|
|
41805
41805
|
const me = await Fo({ formid: s.modelId, recordid: ce });
|
|
41806
41806
|
if ((me == null ? void 0 : me.code) !== 200) {
|
|
41807
|
-
|
|
41807
|
+
Ke.error((me == null ? void 0 : me.msg) || "删除失败");
|
|
41808
41808
|
return;
|
|
41809
41809
|
}
|
|
41810
|
-
|
|
41810
|
+
Ke.success("删除成功"), await ue();
|
|
41811
41811
|
} else
|
|
41812
41812
|
o("delete", [b]);
|
|
41813
41813
|
break;
|
|
@@ -41815,7 +41815,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41815
41815
|
case "export_selected": {
|
|
41816
41816
|
const ce = ((G = re.value) == null ? void 0 : G.getCheckboxRecords()) || [];
|
|
41817
41817
|
if (ce.length === 0) {
|
|
41818
|
-
|
|
41818
|
+
Ke.warning("请先勾选要导出的行");
|
|
41819
41819
|
return;
|
|
41820
41820
|
}
|
|
41821
41821
|
lo(ce);
|
|
@@ -41840,10 +41840,10 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41840
41840
|
if (!b) return;
|
|
41841
41841
|
const P = await m_(s.modelId, [b]);
|
|
41842
41842
|
if ((P == null ? void 0 : P.code) !== 200) {
|
|
41843
|
-
|
|
41843
|
+
Ke.error((P == null ? void 0 : P.msg) || "反审核失败");
|
|
41844
41844
|
return;
|
|
41845
41845
|
}
|
|
41846
|
-
|
|
41846
|
+
Ke.success("反审核成功"), await ue();
|
|
41847
41847
|
}, Ef = async (p) => {
|
|
41848
41848
|
const b = p._rowKey || String(p.fid);
|
|
41849
41849
|
await Yn(p) && (fe(b), X.value.size === 0 && (Ne.value = !1), await ue());
|
|
@@ -41853,7 +41853,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41853
41853
|
}), oo = Fe(() => so.value.length), co = async () => {
|
|
41854
41854
|
const p = so.value;
|
|
41855
41855
|
if (p.length === 0) {
|
|
41856
|
-
|
|
41856
|
+
Ke.warning("请先勾选需要保存的草稿行");
|
|
41857
41857
|
return;
|
|
41858
41858
|
}
|
|
41859
41859
|
try {
|
|
@@ -41863,9 +41863,9 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41863
41863
|
if ((G == null ? void 0 : G.code) !== 200) {
|
|
41864
41864
|
const ce = (G == null ? void 0 : G.failures) || [];
|
|
41865
41865
|
if (ce.length > 0) {
|
|
41866
|
-
const me = ce.map((
|
|
41867
|
-
const Ve = p[
|
|
41868
|
-
return `${(Ve == null ? void 0 : Ve.fbillno) || (Ve == null ? void 0 : Ve.fname) || (Ve == null ? void 0 : Ve.fnumber) || `第${
|
|
41866
|
+
const me = ce.map((Ce) => {
|
|
41867
|
+
const Ve = p[Ce.index];
|
|
41868
|
+
return `${(Ve == null ? void 0 : Ve.fbillno) || (Ve == null ? void 0 : Ve.fname) || (Ve == null ? void 0 : Ve.fnumber) || `第${Ce.index + 1}行`}:${Ce.msg}`;
|
|
41869
41869
|
});
|
|
41870
41870
|
pa("部分行保存失败", me.join(`
|
|
41871
41871
|
`));
|
|
@@ -41880,19 +41880,19 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41880
41880
|
});
|
|
41881
41881
|
o("inline-save", P);
|
|
41882
41882
|
}
|
|
41883
|
-
re.value && re.value.clearCheckboxRow(),
|
|
41883
|
+
re.value && re.value.clearCheckboxRow(), Ke.success("保存成功"), await ue();
|
|
41884
41884
|
} catch {
|
|
41885
|
-
|
|
41885
|
+
Ke.error("保存失败");
|
|
41886
41886
|
}
|
|
41887
41887
|
}, Mi = async (p = "A") => {
|
|
41888
|
-
var ce, me,
|
|
41888
|
+
var ce, me, Ce, Ve, et, qe, Je;
|
|
41889
41889
|
if (p !== "Z" && !await ((ce = q.value) == null ? void 0 : ce.validate())) {
|
|
41890
|
-
|
|
41890
|
+
Ke.error("请完善表单信息");
|
|
41891
41891
|
return;
|
|
41892
41892
|
}
|
|
41893
41893
|
const b = (me = q.value) == null ? void 0 : me.getFormData(), P = p === "A" && Ni.value !== 1 ? "C" : p;
|
|
41894
41894
|
b.fdocstatus = P;
|
|
41895
|
-
const G = (
|
|
41895
|
+
const G = (Ce = D.value) == null ? void 0 : Ce.funcs;
|
|
41896
41896
|
if (p !== "Z" && (G != null && G.beforeSubmit))
|
|
41897
41897
|
try {
|
|
41898
41898
|
await new Function("context", `
|
|
@@ -41910,7 +41910,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41910
41910
|
onlineUtils: {}
|
|
41911
41911
|
});
|
|
41912
41912
|
} catch (nt) {
|
|
41913
|
-
console.error("执行 beforeSubmit 出错:", nt),
|
|
41913
|
+
console.error("执行 beforeSubmit 出错:", nt), Ke.error("提交前验证失败");
|
|
41914
41914
|
return;
|
|
41915
41915
|
}
|
|
41916
41916
|
if (s.modelId)
|
|
@@ -41918,22 +41918,22 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41918
41918
|
if (Dt.value === "add" || Dt.value === "copy") {
|
|
41919
41919
|
const nt = await Tl(s.modelId, b);
|
|
41920
41920
|
if ((nt == null ? void 0 : nt.code) !== 200) {
|
|
41921
|
-
|
|
41921
|
+
Ke.error((nt == null ? void 0 : nt.msg) || "新增失败");
|
|
41922
41922
|
return;
|
|
41923
41923
|
}
|
|
41924
|
-
|
|
41924
|
+
Ke.success(p === "Z" ? "暂存成功" : "保存成功");
|
|
41925
41925
|
} else if (Dt.value === "edit") {
|
|
41926
|
-
((Ve = it.value) == null ? void 0 : Ve.fid) !== void 0 && (b.fid = it.value.fid), ((
|
|
41927
|
-
const nt = String(((
|
|
41926
|
+
((Ve = it.value) == null ? void 0 : Ve.fid) !== void 0 && (b.fid = it.value.fid), ((et = it.value) == null ? void 0 : et.id) !== void 0 && (b.id = it.value.id);
|
|
41927
|
+
const nt = String(((qe = it.value) == null ? void 0 : qe.fid) || ((Je = it.value) == null ? void 0 : Je.id) || ""), kt = await To(s.modelId, nt, b);
|
|
41928
41928
|
if ((kt == null ? void 0 : kt.code) !== 200) {
|
|
41929
|
-
|
|
41929
|
+
Ke.error((kt == null ? void 0 : kt.msg) || "编辑失败");
|
|
41930
41930
|
return;
|
|
41931
41931
|
}
|
|
41932
|
-
|
|
41932
|
+
Ke.success(p === "Z" ? "暂存成功" : "保存成功");
|
|
41933
41933
|
}
|
|
41934
41934
|
ot.value = !1, await ue();
|
|
41935
41935
|
} catch {
|
|
41936
|
-
|
|
41936
|
+
Ke.error("保存失败");
|
|
41937
41937
|
}
|
|
41938
41938
|
else
|
|
41939
41939
|
Dt.value === "add" ? o("add", b) : Dt.value === "edit" && (it.value && (it.value.fid !== void 0 && (b.fid = it.value.fid), it.value.id !== void 0 && (b.id = it.value.id)), o("edit", b)), ot.value = !1, o("refresh");
|
|
@@ -41959,9 +41959,9 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
41959
41959
|
}, Ff = (p) => {
|
|
41960
41960
|
o("select-org-data", p);
|
|
41961
41961
|
}, Af = (p) => {
|
|
41962
|
-
s.modelId ? (T.value = p.current || p.currentPage || 1, E.value = p.pageSize ||
|
|
41962
|
+
s.modelId ? (T.value = p.current || p.currentPage || 1, E.value = p.pageSize || Ye.value, ue()) : o("page-change", {
|
|
41963
41963
|
currentPage: p.current,
|
|
41964
|
-
pageSize:
|
|
41964
|
+
pageSize: Ye.value
|
|
41965
41965
|
});
|
|
41966
41966
|
}, Df = (p) => {
|
|
41967
41967
|
ta.value = 1, s.modelId ? (T.value = 1, E.value = p, ue()) : o("page-change", { currentPage: 1, pageSize: p });
|
|
@@ -42024,7 +42024,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42024
42024
|
{ value: "detail", label: "详情", show: !0 }
|
|
42025
42025
|
], G = [];
|
|
42026
42026
|
for (const ce of P) {
|
|
42027
|
-
const me = b.find((
|
|
42027
|
+
const me = b.find((Ce) => Ce.value === ce.value);
|
|
42028
42028
|
me ? me.show && G.push(me) : G.push(ce);
|
|
42029
42029
|
}
|
|
42030
42030
|
for (const ce of b)
|
|
@@ -42061,11 +42061,11 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42061
42061
|
var b;
|
|
42062
42062
|
const p = (b = re.value) == null ? void 0 : b.getCheckboxRecords();
|
|
42063
42063
|
if (!p || p.length === 0) {
|
|
42064
|
-
|
|
42064
|
+
Ke.warning("请选择要查询的记录");
|
|
42065
42065
|
return;
|
|
42066
42066
|
}
|
|
42067
42067
|
if (p.length > 1) {
|
|
42068
|
-
|
|
42068
|
+
Ke.warning("关联查询只支持单条记录");
|
|
42069
42069
|
return;
|
|
42070
42070
|
}
|
|
42071
42071
|
o("link-query", { row: p[0] });
|
|
@@ -42073,19 +42073,19 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42073
42073
|
var P, G;
|
|
42074
42074
|
const p = (P = re.value) == null ? void 0 : P.getCheckboxRecords();
|
|
42075
42075
|
if (!p || p.length === 0) {
|
|
42076
|
-
|
|
42076
|
+
Ke.warning("请选择要转单的数据");
|
|
42077
42077
|
return;
|
|
42078
42078
|
}
|
|
42079
42079
|
const b = ((G = s.businessFlow) == null ? void 0 : G.downstream) || [];
|
|
42080
42080
|
if (b.length === 0) {
|
|
42081
|
-
|
|
42081
|
+
Ke.warning("未配置下游单据");
|
|
42082
42082
|
return;
|
|
42083
42083
|
}
|
|
42084
42084
|
b.length === 1 ? o("push-down", { downstream: b[0], selectedRows: p }) : Yt.value = !0;
|
|
42085
42085
|
}, Gf = () => {
|
|
42086
42086
|
var b;
|
|
42087
42087
|
if (!Fa.value) {
|
|
42088
|
-
|
|
42088
|
+
Ke.warning("请选择转单目标");
|
|
42089
42089
|
return;
|
|
42090
42090
|
}
|
|
42091
42091
|
const p = (b = re.value) == null ? void 0 : b.getCheckboxRecords();
|
|
@@ -42158,7 +42158,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42158
42158
|
const P = String(p.id);
|
|
42159
42159
|
qn.value.has(b) || qn.value.set(b, /* @__PURE__ */ new Set());
|
|
42160
42160
|
const G = qn.value.get(b);
|
|
42161
|
-
G.has(P) ? (G.delete(P), !Array.from(qn.value.entries()).some(([
|
|
42161
|
+
G.has(P) ? (G.delete(P), !Array.from(qn.value.entries()).some(([Ce, Ve]) => Ce !== b && Ve.has(P)) && re.value && re.value.setRowExpand(p, !1)) : (G.add(P), re.value && re.value.setRowExpand(p, !0));
|
|
42162
42162
|
}, mo = (p, b) => {
|
|
42163
42163
|
var G;
|
|
42164
42164
|
const P = String(p.id);
|
|
@@ -42172,14 +42172,14 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42172
42172
|
const me = G.field || G.__vModel__;
|
|
42173
42173
|
if (!me)
|
|
42174
42174
|
return;
|
|
42175
|
-
const
|
|
42175
|
+
const Ce = {
|
|
42176
42176
|
field: me,
|
|
42177
42177
|
title: G.title || ce.label || me,
|
|
42178
42178
|
width: G.width || G.minWidth || ce.tableWidth || 150,
|
|
42179
42179
|
align: G.align || ce.tableAlign || "left",
|
|
42180
42180
|
sortable: !1
|
|
42181
42181
|
};
|
|
42182
|
-
b.push(
|
|
42182
|
+
b.push(Ce);
|
|
42183
42183
|
}), b;
|
|
42184
42184
|
}, ed = br({
|
|
42185
42185
|
border: !0,
|
|
@@ -42225,7 +42225,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42225
42225
|
reloadData: ue
|
|
42226
42226
|
}), (p, b) => {
|
|
42227
42227
|
var xo, _o, ko, yo, wo, bo;
|
|
42228
|
-
const P = de("t-button"), G = de("t-tooltip"), ce = de("t-radio-button"), me = de("t-radio-group"),
|
|
42228
|
+
const P = de("t-button"), G = de("t-tooltip"), ce = de("t-radio-button"), me = de("t-radio-group"), Ce = de("t-badge"), Ve = de("t-dropdown-item"), et = de("t-dropdown-menu"), qe = de("t-dropdown"), Je = de("t-tab-panel"), nt = de("t-tabs"), kt = de("t-select"), yt = de("t-switch"), Ot = de("t-dialog"), rt = de("t-radio"), Lt = de("t-tree"), dr = de("t-popup"), Gr = de("t-tag"), Jn = de("vxe-grid"), Pi = de("t-space"), Cl = de("t-pagination"), Sl = de("t-drawer"), td = de("t-input"), ad = de("t-form-item"), rd = de("t-form");
|
|
42229
42229
|
return x(), F("div", $6, [
|
|
42230
42230
|
f("div", V6, [
|
|
42231
42231
|
f("div", U6, [
|
|
@@ -42273,12 +42273,10 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42273
42273
|
onColumnChange: Lf,
|
|
42274
42274
|
onColorFilterChange: Bf,
|
|
42275
42275
|
onColorFilterClear: $f,
|
|
42276
|
-
onRefresh: b[
|
|
42276
|
+
onRefresh: b[7] || (b[7] = (Oe) => o("refresh"))
|
|
42277
42277
|
}, {
|
|
42278
|
-
|
|
42279
|
-
e.showHeader ? (x(), F("span", W6, le(J.value), 1)) : ke("", !0)
|
|
42280
|
-
]),
|
|
42281
|
-
"plan-row-right": R(() => [
|
|
42278
|
+
head: R(() => [
|
|
42279
|
+
e.showHeader ? (x(), F("span", W6, le(J.value), 1)) : ke("", !0),
|
|
42282
42280
|
V(me, {
|
|
42283
42281
|
value: oe.value ? "inline" : "drawer",
|
|
42284
42282
|
variant: "default-filled",
|
|
@@ -42310,91 +42308,238 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42310
42308
|
_: 1
|
|
42311
42309
|
}, 8, ["value"]),
|
|
42312
42310
|
f("div", H6, [
|
|
42313
|
-
|
|
42314
|
-
|
|
42315
|
-
|
|
42316
|
-
|
|
42317
|
-
|
|
42318
|
-
|
|
42319
|
-
|
|
42320
|
-
|
|
42321
|
-
|
|
42322
|
-
|
|
42323
|
-
|
|
42324
|
-
|
|
42325
|
-
|
|
42326
|
-
|
|
42327
|
-
|
|
42328
|
-
|
|
42329
|
-
|
|
42330
|
-
|
|
42331
|
-
|
|
42332
|
-
|
|
42333
|
-
|
|
42334
|
-
|
|
42335
|
-
|
|
42336
|
-
|
|
42337
|
-
|
|
42338
|
-
|
|
42339
|
-
|
|
42340
|
-
|
|
42341
|
-
|
|
42342
|
-
|
|
42343
|
-
|
|
42344
|
-
|
|
42345
|
-
|
|
42311
|
+
f("div", G6, [
|
|
42312
|
+
V(G, { content: "表格" }, {
|
|
42313
|
+
default: R(() => [
|
|
42314
|
+
V(P, {
|
|
42315
|
+
variant: ee.value === "table" ? "base" : "text",
|
|
42316
|
+
size: "small",
|
|
42317
|
+
shape: "square",
|
|
42318
|
+
onClick: b[2] || (b[2] = (Oe) => ee.value = "table")
|
|
42319
|
+
}, {
|
|
42320
|
+
icon: R(() => [...b[46] || (b[46] = [
|
|
42321
|
+
f("i", { class: "ri-table-2" }, null, -1)
|
|
42322
|
+
])]),
|
|
42323
|
+
_: 1
|
|
42324
|
+
}, 8, ["variant"])
|
|
42325
|
+
]),
|
|
42326
|
+
_: 1
|
|
42327
|
+
}),
|
|
42328
|
+
V(G, { content: "看板" }, {
|
|
42329
|
+
default: R(() => [
|
|
42330
|
+
V(P, {
|
|
42331
|
+
variant: ee.value === "kanban" ? "base" : "text",
|
|
42332
|
+
size: "small",
|
|
42333
|
+
shape: "square",
|
|
42334
|
+
onClick: b[3] || (b[3] = (Oe) => ee.value = "kanban")
|
|
42335
|
+
}, {
|
|
42336
|
+
icon: R(() => [...b[47] || (b[47] = [
|
|
42337
|
+
f("i", { class: "ri-layout-column-line" }, null, -1)
|
|
42338
|
+
])]),
|
|
42339
|
+
_: 1
|
|
42340
|
+
}, 8, ["variant"])
|
|
42341
|
+
]),
|
|
42342
|
+
_: 1
|
|
42343
|
+
}),
|
|
42344
|
+
V(G, { content: "甘特" }, {
|
|
42345
|
+
default: R(() => [
|
|
42346
|
+
V(P, {
|
|
42347
|
+
variant: ee.value === "gantt" ? "base" : "text",
|
|
42348
|
+
size: "small",
|
|
42349
|
+
shape: "square",
|
|
42350
|
+
onClick: b[4] || (b[4] = (Oe) => ee.value = "gantt")
|
|
42351
|
+
}, {
|
|
42352
|
+
icon: R(() => [...b[48] || (b[48] = [
|
|
42353
|
+
f("i", { class: "ri-bar-chart-horizontal-line" }, null, -1)
|
|
42354
|
+
])]),
|
|
42355
|
+
_: 1
|
|
42356
|
+
}, 8, ["variant"])
|
|
42357
|
+
]),
|
|
42358
|
+
_: 1
|
|
42359
|
+
}),
|
|
42360
|
+
V(G, { content: "日历" }, {
|
|
42361
|
+
default: R(() => [
|
|
42362
|
+
V(P, {
|
|
42363
|
+
variant: ee.value === "calendar" ? "base" : "text",
|
|
42364
|
+
size: "small",
|
|
42365
|
+
shape: "square",
|
|
42366
|
+
onClick: b[5] || (b[5] = (Oe) => ee.value = "calendar")
|
|
42367
|
+
}, {
|
|
42368
|
+
icon: R(() => [...b[49] || (b[49] = [
|
|
42369
|
+
f("i", { class: "ri-calendar-line" }, null, -1)
|
|
42370
|
+
])]),
|
|
42371
|
+
_: 1
|
|
42372
|
+
}, 8, ["variant"])
|
|
42373
|
+
]),
|
|
42374
|
+
_: 1
|
|
42375
|
+
})
|
|
42376
|
+
])
|
|
42377
|
+
])
|
|
42378
|
+
]),
|
|
42379
|
+
"toolbar-right": R(() => [
|
|
42380
|
+
oe.value && oo.value > 0 ? (x(), pe(Ce, {
|
|
42381
|
+
key: 0,
|
|
42382
|
+
count: oo.value,
|
|
42383
|
+
size: "small"
|
|
42384
|
+
}, {
|
|
42385
|
+
default: R(() => [
|
|
42386
|
+
V(P, {
|
|
42387
|
+
variant: "outline",
|
|
42388
|
+
size: "small",
|
|
42389
|
+
theme: "primary",
|
|
42390
|
+
onClick: co
|
|
42391
|
+
}, {
|
|
42392
|
+
icon: R(() => [...b[50] || (b[50] = [
|
|
42393
|
+
f("i", { class: "ri-save-line" }, null, -1)
|
|
42394
|
+
])]),
|
|
42395
|
+
default: R(() => [
|
|
42396
|
+
b[51] || (b[51] = xe(" 保存 ", -1))
|
|
42397
|
+
]),
|
|
42398
|
+
_: 1
|
|
42399
|
+
})
|
|
42400
|
+
]),
|
|
42401
|
+
_: 1
|
|
42402
|
+
}, 8, ["count"])) : ke("", !0),
|
|
42403
|
+
(x(!0), F(Pe, null, ze(u.value.btnsList || [], (Oe) => (x(), F(Pe, {
|
|
42404
|
+
key: Oe.label
|
|
42405
|
+
}, [
|
|
42406
|
+
Oe.children && Oe.children.length > 0 ? (x(), pe(qe, {
|
|
42407
|
+
key: 0,
|
|
42408
|
+
onClick: _l,
|
|
42409
|
+
"overlay-class-name": "filter-dropdown"
|
|
42410
|
+
}, {
|
|
42346
42411
|
default: R(() => [
|
|
42347
42412
|
V(P, {
|
|
42348
|
-
variant:
|
|
42413
|
+
variant: "outline",
|
|
42349
42414
|
size: "small",
|
|
42350
|
-
|
|
42351
|
-
|
|
42415
|
+
theme: "primary"
|
|
42416
|
+
}, On({
|
|
42417
|
+
suffix: R(() => [
|
|
42418
|
+
b[52] || (b[52] = f("i", { class: "ri-arrow-down-s-line" }, null, -1))
|
|
42419
|
+
]),
|
|
42420
|
+
default: R(() => [
|
|
42421
|
+
xe(" " + le(Oe.label) + " ", 1)
|
|
42422
|
+
]),
|
|
42423
|
+
_: 2
|
|
42424
|
+
}, [
|
|
42425
|
+
Oe.icon ? {
|
|
42426
|
+
name: "icon",
|
|
42427
|
+
fn: R(() => [
|
|
42428
|
+
f("i", {
|
|
42429
|
+
class: Qe(Oe.icon)
|
|
42430
|
+
}, null, 2)
|
|
42431
|
+
]),
|
|
42432
|
+
key: "0"
|
|
42433
|
+
} : void 0
|
|
42434
|
+
]), 1024),
|
|
42435
|
+
V(et, {
|
|
42436
|
+
onClick: b[6] || (b[6] = (wt) => _l({ value: wt.value }))
|
|
42352
42437
|
}, {
|
|
42353
|
-
|
|
42354
|
-
|
|
42355
|
-
|
|
42356
|
-
|
|
42357
|
-
|
|
42438
|
+
default: R(() => [
|
|
42439
|
+
(x(!0), F(Pe, null, ze(Oe.children.filter((wt) => wt.show !== !1), (wt) => (x(), pe(Ve, {
|
|
42440
|
+
key: wt.value || Math.random(),
|
|
42441
|
+
value: wt.value,
|
|
42442
|
+
disabled: wt.disabled,
|
|
42443
|
+
divider: wt.divider
|
|
42444
|
+
}, {
|
|
42445
|
+
default: R(() => [
|
|
42446
|
+
xe(le(wt.label), 1)
|
|
42447
|
+
]),
|
|
42448
|
+
_: 2
|
|
42449
|
+
}, 1032, ["value", "disabled", "divider"]))), 128))
|
|
42450
|
+
]),
|
|
42451
|
+
_: 2
|
|
42452
|
+
}, 1024)
|
|
42358
42453
|
]),
|
|
42359
|
-
_:
|
|
42360
|
-
}),
|
|
42361
|
-
|
|
42454
|
+
_: 2
|
|
42455
|
+
}, 1024)) : Oe.show && !Ze(Oe.value) ? (x(), pe(P, {
|
|
42456
|
+
key: 1,
|
|
42457
|
+
variant: "outline",
|
|
42458
|
+
size: "small",
|
|
42459
|
+
theme: "primary",
|
|
42460
|
+
onClick: (wt) => _l({ value: Oe.value })
|
|
42461
|
+
}, On({
|
|
42362
42462
|
default: R(() => [
|
|
42363
|
-
|
|
42364
|
-
variant: ee.value === "calendar" ? "base" : "text",
|
|
42365
|
-
size: "small",
|
|
42366
|
-
shape: "square",
|
|
42367
|
-
onClick: b[5] || (b[5] = (Oe) => ee.value = "calendar")
|
|
42368
|
-
}, {
|
|
42369
|
-
icon: R(() => [...b[49] || (b[49] = [
|
|
42370
|
-
f("i", { class: "ri-calendar-line" }, null, -1)
|
|
42371
|
-
])]),
|
|
42372
|
-
_: 1
|
|
42373
|
-
}, 8, ["variant"])
|
|
42463
|
+
xe(" " + le(Oe.label), 1)
|
|
42374
42464
|
]),
|
|
42375
|
-
_:
|
|
42376
|
-
}
|
|
42377
|
-
|
|
42465
|
+
_: 2
|
|
42466
|
+
}, [
|
|
42467
|
+
Oe.icon ? {
|
|
42468
|
+
name: "icon",
|
|
42469
|
+
fn: R(() => []),
|
|
42470
|
+
key: "0"
|
|
42471
|
+
} : void 0
|
|
42472
|
+
]), 1032, ["onClick"])) : ke("", !0)
|
|
42473
|
+
], 64))), 128)),
|
|
42474
|
+
(x(!0), F(Pe, null, ze(u.value.customBtnsList || [], (Oe) => Ja((x(), pe(P, {
|
|
42475
|
+
variant: "outline",
|
|
42476
|
+
size: "small",
|
|
42477
|
+
key: Oe.value,
|
|
42478
|
+
onClick: (wt) => vf(Oe)
|
|
42479
|
+
}, On({
|
|
42480
|
+
default: R(() => [
|
|
42481
|
+
xe(" " + le(Oe.label), 1)
|
|
42482
|
+
]),
|
|
42483
|
+
_: 2
|
|
42484
|
+
}, [
|
|
42485
|
+
Oe.icon ? {
|
|
42486
|
+
name: "icon",
|
|
42487
|
+
fn: R(() => []),
|
|
42488
|
+
key: "0"
|
|
42489
|
+
} : void 0
|
|
42490
|
+
]), 1032, ["onClick"])), [
|
|
42491
|
+
[Vn, Oe.show]
|
|
42492
|
+
])), 128)),
|
|
42493
|
+
er(p.$slots, "toolbar-right", {}, void 0, !0),
|
|
42494
|
+
Uf.value ? (x(), pe(P, {
|
|
42495
|
+
key: 1,
|
|
42496
|
+
variant: "outline",
|
|
42497
|
+
size: "small",
|
|
42498
|
+
theme: "primary",
|
|
42499
|
+
onClick: ho
|
|
42500
|
+
}, {
|
|
42501
|
+
icon: R(() => [...b[53] || (b[53] = [
|
|
42502
|
+
f("i", { class: "ri-arrow-down-line" }, null, -1)
|
|
42503
|
+
])]),
|
|
42504
|
+
default: R(() => [
|
|
42505
|
+
b[54] || (b[54] = xe(" 转单 ", -1))
|
|
42506
|
+
]),
|
|
42507
|
+
_: 1
|
|
42508
|
+
})) : ke("", !0),
|
|
42509
|
+
zf.value ? (x(), pe(P, {
|
|
42510
|
+
key: 2,
|
|
42511
|
+
variant: "outline",
|
|
42512
|
+
size: "small",
|
|
42513
|
+
onClick: Hf
|
|
42514
|
+
}, {
|
|
42515
|
+
icon: R(() => [...b[55] || (b[55] = [
|
|
42516
|
+
f("i", { class: "ri-git-branch-line" }, null, -1)
|
|
42517
|
+
])]),
|
|
42518
|
+
default: R(() => [
|
|
42519
|
+
b[56] || (b[56] = xe(" 关联查询 ", -1))
|
|
42520
|
+
]),
|
|
42521
|
+
_: 1
|
|
42522
|
+
})) : ke("", !0)
|
|
42378
42523
|
]),
|
|
42379
|
-
_:
|
|
42524
|
+
_: 3
|
|
42380
42525
|
}, 8, ["field-options", "select-options", "plan-filter-options", "visible-columns"])
|
|
42381
42526
|
])) : ke("", !0),
|
|
42382
|
-
Ar.value.length > 0 ? (x(), F("div",
|
|
42383
|
-
V(
|
|
42527
|
+
Ar.value.length > 0 ? (x(), F("div", X6, [
|
|
42528
|
+
V(nt, {
|
|
42384
42529
|
modelValue: O.value,
|
|
42385
|
-
"onUpdate:modelValue": b[
|
|
42530
|
+
"onUpdate:modelValue": b[8] || (b[8] = (Oe) => O.value = Oe),
|
|
42386
42531
|
size: "small",
|
|
42387
42532
|
onChange: Z
|
|
42388
42533
|
}, {
|
|
42389
42534
|
default: R(() => {
|
|
42390
42535
|
var Oe;
|
|
42391
42536
|
return [
|
|
42392
|
-
(Oe = u.value.tabConfig) != null && Oe.hasAllTab ? (x(), pe(
|
|
42537
|
+
(Oe = u.value.tabConfig) != null && Oe.hasAllTab ? (x(), pe(Je, {
|
|
42393
42538
|
key: 0,
|
|
42394
42539
|
value: "__all__",
|
|
42395
42540
|
label: "全部"
|
|
42396
42541
|
})) : ke("", !0),
|
|
42397
|
-
(x(!0), F(Pe, null, ze(Ar.value, (wt) => (x(), pe(
|
|
42542
|
+
(x(!0), F(Pe, null, ze(Ar.value, (wt) => (x(), pe(Je, {
|
|
42398
42543
|
key: wt.value,
|
|
42399
42544
|
value: wt.value,
|
|
42400
42545
|
label: wt.label
|
|
@@ -42404,151 +42549,6 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42404
42549
|
_: 1
|
|
42405
42550
|
}, 8, ["modelValue"])
|
|
42406
42551
|
])) : ke("", !0)
|
|
42407
|
-
]),
|
|
42408
|
-
f("div", X6, [
|
|
42409
|
-
oe.value && oo.value > 0 ? (x(), pe(tt, {
|
|
42410
|
-
key: 0,
|
|
42411
|
-
count: oo.value,
|
|
42412
|
-
size: "small"
|
|
42413
|
-
}, {
|
|
42414
|
-
default: R(() => [
|
|
42415
|
-
V(P, {
|
|
42416
|
-
variant: "outline",
|
|
42417
|
-
size: "small",
|
|
42418
|
-
theme: "primary",
|
|
42419
|
-
onClick: co
|
|
42420
|
-
}, {
|
|
42421
|
-
icon: R(() => [...b[50] || (b[50] = [
|
|
42422
|
-
f("i", { class: "ri-save-line" }, null, -1)
|
|
42423
|
-
])]),
|
|
42424
|
-
default: R(() => [
|
|
42425
|
-
b[51] || (b[51] = xe(" 保存 ", -1))
|
|
42426
|
-
]),
|
|
42427
|
-
_: 1
|
|
42428
|
-
})
|
|
42429
|
-
]),
|
|
42430
|
-
_: 1
|
|
42431
|
-
}, 8, ["count"])) : ke("", !0),
|
|
42432
|
-
(x(!0), F(Pe, null, ze(u.value.btnsList || [], (Oe) => (x(), F(Pe, {
|
|
42433
|
-
key: Oe.label
|
|
42434
|
-
}, [
|
|
42435
|
-
Oe.children && Oe.children.length > 0 ? (x(), pe(nt, {
|
|
42436
|
-
key: 0,
|
|
42437
|
-
onClick: _l,
|
|
42438
|
-
"overlay-class-name": "filter-dropdown"
|
|
42439
|
-
}, {
|
|
42440
|
-
default: R(() => [
|
|
42441
|
-
V(P, {
|
|
42442
|
-
variant: "outline",
|
|
42443
|
-
size: "small",
|
|
42444
|
-
theme: "primary"
|
|
42445
|
-
}, On({
|
|
42446
|
-
suffix: R(() => [
|
|
42447
|
-
b[52] || (b[52] = f("i", { class: "ri-arrow-down-s-line" }, null, -1))
|
|
42448
|
-
]),
|
|
42449
|
-
default: R(() => [
|
|
42450
|
-
xe(" " + le(Oe.label) + " ", 1)
|
|
42451
|
-
]),
|
|
42452
|
-
_: 2
|
|
42453
|
-
}, [
|
|
42454
|
-
Oe.icon ? {
|
|
42455
|
-
name: "icon",
|
|
42456
|
-
fn: R(() => [
|
|
42457
|
-
f("i", {
|
|
42458
|
-
class: Qe(Oe.icon)
|
|
42459
|
-
}, null, 2)
|
|
42460
|
-
]),
|
|
42461
|
-
key: "0"
|
|
42462
|
-
} : void 0
|
|
42463
|
-
]), 1024),
|
|
42464
|
-
V(Je, {
|
|
42465
|
-
onClick: b[8] || (b[8] = (wt) => _l({ value: wt.value }))
|
|
42466
|
-
}, {
|
|
42467
|
-
default: R(() => [
|
|
42468
|
-
(x(!0), F(Pe, null, ze(Oe.children.filter((wt) => wt.show !== !1), (wt) => (x(), pe(je, {
|
|
42469
|
-
key: wt.value || Math.random(),
|
|
42470
|
-
value: wt.value,
|
|
42471
|
-
disabled: wt.disabled,
|
|
42472
|
-
divider: wt.divider
|
|
42473
|
-
}, {
|
|
42474
|
-
default: R(() => [
|
|
42475
|
-
xe(le(wt.label), 1)
|
|
42476
|
-
]),
|
|
42477
|
-
_: 2
|
|
42478
|
-
}, 1032, ["value", "disabled", "divider"]))), 128))
|
|
42479
|
-
]),
|
|
42480
|
-
_: 2
|
|
42481
|
-
}, 1024)
|
|
42482
|
-
]),
|
|
42483
|
-
_: 2
|
|
42484
|
-
}, 1024)) : Oe.show && !Ze(Oe.value) ? (x(), pe(P, {
|
|
42485
|
-
key: 1,
|
|
42486
|
-
variant: "outline",
|
|
42487
|
-
size: "small",
|
|
42488
|
-
theme: "primary",
|
|
42489
|
-
onClick: (wt) => _l({ value: Oe.value })
|
|
42490
|
-
}, On({
|
|
42491
|
-
default: R(() => [
|
|
42492
|
-
xe(" " + le(Oe.label), 1)
|
|
42493
|
-
]),
|
|
42494
|
-
_: 2
|
|
42495
|
-
}, [
|
|
42496
|
-
Oe.icon ? {
|
|
42497
|
-
name: "icon",
|
|
42498
|
-
fn: R(() => []),
|
|
42499
|
-
key: "0"
|
|
42500
|
-
} : void 0
|
|
42501
|
-
]), 1032, ["onClick"])) : ke("", !0)
|
|
42502
|
-
], 64))), 128)),
|
|
42503
|
-
(x(!0), F(Pe, null, ze(u.value.customBtnsList || [], (Oe) => Ja((x(), pe(P, {
|
|
42504
|
-
variant: "outline",
|
|
42505
|
-
size: "small",
|
|
42506
|
-
key: Oe.value,
|
|
42507
|
-
onClick: (wt) => vf(Oe)
|
|
42508
|
-
}, On({
|
|
42509
|
-
default: R(() => [
|
|
42510
|
-
xe(" " + le(Oe.label), 1)
|
|
42511
|
-
]),
|
|
42512
|
-
_: 2
|
|
42513
|
-
}, [
|
|
42514
|
-
Oe.icon ? {
|
|
42515
|
-
name: "icon",
|
|
42516
|
-
fn: R(() => []),
|
|
42517
|
-
key: "0"
|
|
42518
|
-
} : void 0
|
|
42519
|
-
]), 1032, ["onClick"])), [
|
|
42520
|
-
[Vn, Oe.show]
|
|
42521
|
-
])), 128)),
|
|
42522
|
-
er(p.$slots, "toolbar-right", {}, void 0, !0),
|
|
42523
|
-
Uf.value ? (x(), pe(P, {
|
|
42524
|
-
key: 1,
|
|
42525
|
-
variant: "outline",
|
|
42526
|
-
size: "small",
|
|
42527
|
-
theme: "primary",
|
|
42528
|
-
onClick: ho
|
|
42529
|
-
}, {
|
|
42530
|
-
icon: R(() => [...b[53] || (b[53] = [
|
|
42531
|
-
f("i", { class: "ri-arrow-down-line" }, null, -1)
|
|
42532
|
-
])]),
|
|
42533
|
-
default: R(() => [
|
|
42534
|
-
b[54] || (b[54] = xe(" 转单 ", -1))
|
|
42535
|
-
]),
|
|
42536
|
-
_: 1
|
|
42537
|
-
})) : ke("", !0),
|
|
42538
|
-
zf.value ? (x(), pe(P, {
|
|
42539
|
-
key: 2,
|
|
42540
|
-
variant: "outline",
|
|
42541
|
-
size: "small",
|
|
42542
|
-
onClick: Hf
|
|
42543
|
-
}, {
|
|
42544
|
-
icon: R(() => [...b[55] || (b[55] = [
|
|
42545
|
-
f("i", { class: "ri-git-branch-line" }, null, -1)
|
|
42546
|
-
])]),
|
|
42547
|
-
default: R(() => [
|
|
42548
|
-
b[56] || (b[56] = xe(" 关联查询 ", -1))
|
|
42549
|
-
]),
|
|
42550
|
-
_: 1
|
|
42551
|
-
})) : ke("", !0)
|
|
42552
42552
|
])
|
|
42553
42553
|
]),
|
|
42554
42554
|
V(Ot, {
|
|
@@ -42618,8 +42618,8 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42618
42618
|
_: 1
|
|
42619
42619
|
}, 8, ["visible"]),
|
|
42620
42620
|
V(lf, {
|
|
42621
|
-
visible:
|
|
42622
|
-
"onUpdate:visible": b[14] || (b[14] = (Oe) =>
|
|
42621
|
+
visible: je.value,
|
|
42622
|
+
"onUpdate:visible": b[14] || (b[14] = (Oe) => je.value = Oe),
|
|
42623
42623
|
mode: st.value,
|
|
42624
42624
|
fields: gt.value,
|
|
42625
42625
|
"required-fields": Ct.value,
|
|
@@ -42673,10 +42673,10 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42673
42673
|
activable: "",
|
|
42674
42674
|
draggable: "",
|
|
42675
42675
|
onActive: K,
|
|
42676
|
-
onDragEnd:
|
|
42676
|
+
onDragEnd: tt
|
|
42677
42677
|
}, {
|
|
42678
42678
|
operations: R(({ node: Oe }) => [
|
|
42679
|
-
V(
|
|
42679
|
+
V(qe, {
|
|
42680
42680
|
trigger: "click",
|
|
42681
42681
|
placement: "bottom-right",
|
|
42682
42682
|
onClick: (wt) => Ie(wt, Oe)
|
|
@@ -42687,21 +42687,21 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42687
42687
|
onClick: b[17] || (b[17] = pt(() => {
|
|
42688
42688
|
}, ["stop"]))
|
|
42689
42689
|
}),
|
|
42690
|
-
V(
|
|
42690
|
+
V(et, null, {
|
|
42691
42691
|
default: R(() => [
|
|
42692
|
-
V(
|
|
42692
|
+
V(Ve, { value: "add-child" }, {
|
|
42693
42693
|
default: R(() => [...b[59] || (b[59] = [
|
|
42694
42694
|
xe("新增子节点", -1)
|
|
42695
42695
|
])]),
|
|
42696
42696
|
_: 1
|
|
42697
42697
|
}),
|
|
42698
|
-
V(
|
|
42698
|
+
V(Ve, { value: "edit" }, {
|
|
42699
42699
|
default: R(() => [...b[60] || (b[60] = [
|
|
42700
42700
|
xe("编辑", -1)
|
|
42701
42701
|
])]),
|
|
42702
42702
|
_: 1
|
|
42703
42703
|
}),
|
|
42704
|
-
V(
|
|
42704
|
+
V(Ve, {
|
|
42705
42705
|
value: "delete",
|
|
42706
42706
|
theme: "error"
|
|
42707
42707
|
}, {
|
|
@@ -42932,8 +42932,8 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
42932
42932
|
V(Cl, {
|
|
42933
42933
|
modelValue: ta.value,
|
|
42934
42934
|
"onUpdate:modelValue": b[27] || (b[27] = (Oe) => ta.value = Oe),
|
|
42935
|
-
pageSize:
|
|
42936
|
-
"onUpdate:pageSize": b[28] || (b[28] = (Oe) =>
|
|
42935
|
+
pageSize: Ye.value,
|
|
42936
|
+
"onUpdate:pageSize": b[28] || (b[28] = (Oe) => Ye.value = Oe),
|
|
42937
42937
|
total: s.pageConfig.total || 0,
|
|
42938
42938
|
"page-size-options": [20, 50, 100, 200, 500, 1e3, 5e3],
|
|
42939
42939
|
"show-jumper": "",
|
|
@@ -43040,7 +43040,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
43040
43040
|
"confirm-btn": { content: "确定", loading: _e.loading },
|
|
43041
43041
|
"cancel-btn": "取消",
|
|
43042
43042
|
width: "400px",
|
|
43043
|
-
onConfirm:
|
|
43043
|
+
onConfirm: be,
|
|
43044
43044
|
onClose: b[40] || (b[40] = (Oe) => _e.visible = !1)
|
|
43045
43045
|
}, {
|
|
43046
43046
|
default: R(() => [
|
|
@@ -43052,7 +43052,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
43052
43052
|
modelValue: _e.inputValue,
|
|
43053
43053
|
"onUpdate:modelValue": b[38] || (b[38] = (Oe) => _e.inputValue = Oe),
|
|
43054
43054
|
placeholder: "请输入节点名称",
|
|
43055
|
-
onKeyup: jr(
|
|
43055
|
+
onKeyup: jr(be, ["enter"])
|
|
43056
43056
|
}, null, 8, ["modelValue"])
|
|
43057
43057
|
]),
|
|
43058
43058
|
_: 1
|
|
@@ -43081,7 +43081,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
43081
43081
|
]);
|
|
43082
43082
|
};
|
|
43083
43083
|
}
|
|
43084
|
-
}), cf = /* @__PURE__ */ Ut(s5, [["__scopeId", "data-v-
|
|
43084
|
+
}), cf = /* @__PURE__ */ Ut(s5, [["__scopeId", "data-v-a8ac26e3"]]), o5 = { class: "field-manage-header" }, c5 = { class: "field-manage-content" }, u5 = { class: "field-manage-toolbar" }, f5 = /* @__PURE__ */ Nt({
|
|
43085
43085
|
__name: "FieldManageDialog",
|
|
43086
43086
|
props: {
|
|
43087
43087
|
modelValue: { type: Boolean },
|
|
@@ -43200,7 +43200,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
43200
43200
|
span: 12,
|
|
43201
43201
|
options: []
|
|
43202
43202
|
};
|
|
43203
|
-
i.value.push(C),
|
|
43203
|
+
i.value.push(C), Ke.success("字段已添加");
|
|
43204
43204
|
}, h = (w) => {
|
|
43205
43205
|
const C = {
|
|
43206
43206
|
__config__: {
|
|
@@ -43323,7 +43323,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
43323
43323
|
uploadImg: "Upload",
|
|
43324
43324
|
uploadFile: "Upload"
|
|
43325
43325
|
})[w] || "Input", v = (w) => {
|
|
43326
|
-
i.value.splice(w, 1),
|
|
43326
|
+
i.value.splice(w, 1), Ke.success("字段已删除");
|
|
43327
43327
|
}, g = (w) => {
|
|
43328
43328
|
if (w > 0) {
|
|
43329
43329
|
const C = i.value[w];
|
|
@@ -43347,7 +43347,7 @@ const UA = { class: "cd-share-header" }, zA = { class: "cd-share-title" }, WA =
|
|
|
43347
43347
|
__vModel__: C.fieldName,
|
|
43348
43348
|
placeholder: C.placeholder || `请输入${C.label}`
|
|
43349
43349
|
} : h(C));
|
|
43350
|
-
r("save", w), n.value = !1,
|
|
43350
|
+
r("save", w), n.value = !1, Ke.success("字段配置已保存");
|
|
43351
43351
|
}, E = () => {
|
|
43352
43352
|
n.value = !1;
|
|
43353
43353
|
}, k = () => {
|
|
@@ -43568,10 +43568,10 @@ function _5(e) {
|
|
|
43568
43568
|
};
|
|
43569
43569
|
},
|
|
43570
43570
|
msg: {
|
|
43571
|
-
info: (w) =>
|
|
43572
|
-
success: (w) =>
|
|
43573
|
-
warning: (w) =>
|
|
43574
|
-
error: (w) =>
|
|
43571
|
+
info: (w) => Ke.info(w),
|
|
43572
|
+
success: (w) => Ke.success(w),
|
|
43573
|
+
warning: (w) => Ke.warning(w),
|
|
43574
|
+
error: (w) => Ke.error(w),
|
|
43575
43575
|
confirm: (w, C) => new Promise((y) => {
|
|
43576
43576
|
const N = Xl.confirm({
|
|
43577
43577
|
header: (C == null ? void 0 : C.title) || "确认",
|