@unizhen/ui 0.1.146 → 0.1.148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/bom/index.vue.d.ts +2 -2
- package/lib/ui.js +434 -428
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as O, resolveDynamicComponent as k, toDisplayString as A, useId as ee, vShow as
|
|
2
|
-
import { NButton as
|
|
1
|
+
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as O, resolveDynamicComponent as k, toDisplayString as A, useId as ee, vShow as te, watch as j, watchEffect as M, withCtx as N, withDirectives as P, withKeys as ne, withModifiers as F } from "vue";
|
|
2
|
+
import { NButton as I, NButtonGroup as L, NCascader as re, NCheckbox as R, NCheckboxGroup as ie, NColorPicker as z, NConfigProvider as ae, NDataTable as oe, NDatePicker as se, NDivider as ce, NDrawer as le, NDrawerContent as ue, NDropdown as de, NEllipsis as fe, NFlex as B, NForm as pe, NFormItem as me, NGrid as he, NGridItem as ge, NIcon as V, NImage as _e, NImageGroup as ve, NInput as ye, NInputGroup as be, NInputGroupLabel as xe, NInputNumber as Se, NModal as Ce, NPagination as we, NPopconfirm as Te, NPopover as Ee, NRadio as De, NRadioGroup as Oe, NSelect as ke, NSkeleton as Ae, NSpace as je, NSpin as Me, NSwitch as Ne, NTabPane as Pe, NTabs as Fe, NTimePicker as Ie, NTooltip as Le, NUpload as Re, NUploadDragger as ze, createDiscreteApi as Be, darkTheme as H, dateZhCN as Ve, useNotification as He, zhCN as Ue } from "naive-ui";
|
|
3
3
|
import { createI18n as We, useI18n as U } from "vue-i18n";
|
|
4
4
|
import Ge from "axios";
|
|
5
5
|
import { createRouter as Ke, createWebHistory as qe, useRoute as Je, useRouter as Ye } from "vue-router";
|
|
@@ -569,7 +569,7 @@ var qt = d({
|
|
|
569
569
|
});
|
|
570
570
|
} else n.value = e;
|
|
571
571
|
};
|
|
572
|
-
return r(e.icon),
|
|
572
|
+
return r(e.icon), j(() => e.icon, (e) => {
|
|
573
573
|
r(e);
|
|
574
574
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
575
575
|
}
|
|
@@ -950,7 +950,7 @@ var Hn = "/apiserver/", Un = () => {
|
|
|
950
950
|
}
|
|
951
951
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
952
952
|
}
|
|
953
|
-
return e.icon && (o.icon = () => f(V, {}, { default: () => f(qt, { icon: e.icon }, { default: () => null }) })), f(
|
|
953
|
+
return e.icon && (o.icon = () => f(V, {}, { default: () => f(qt, { icon: e.icon }, { default: () => null }) })), f(I, a, o);
|
|
954
954
|
}, cr = (e, t, n, r, i) => {
|
|
955
955
|
let a = { placement: "left" };
|
|
956
956
|
if (typeof t.onClick == "string") {
|
|
@@ -1095,7 +1095,7 @@ var Hn = "/apiserver/", Un = () => {
|
|
|
1095
1095
|
}, yr = d({
|
|
1096
1096
|
name: "UzBack",
|
|
1097
1097
|
components: {
|
|
1098
|
-
NButton:
|
|
1098
|
+
NButton: I,
|
|
1099
1099
|
NIcon: V
|
|
1100
1100
|
},
|
|
1101
1101
|
props: {
|
|
@@ -1130,11 +1130,11 @@ function br(e, t, n, i, a, s) {
|
|
|
1130
1130
|
quaternary: "",
|
|
1131
1131
|
onClick: e.back
|
|
1132
1132
|
}, {
|
|
1133
|
-
icon:
|
|
1134
|
-
default:
|
|
1133
|
+
icon: N(() => [l(u, null, {
|
|
1134
|
+
default: N(() => [l(c, { icon: "ArrowLeft" })]),
|
|
1135
1135
|
_: 1
|
|
1136
1136
|
})]),
|
|
1137
|
-
default:
|
|
1137
|
+
default: N(() => [o("span", null, A(e.text || e.t("Common.back")), 1)]),
|
|
1138
1138
|
_: 1
|
|
1139
1139
|
}, 8, ["onClick"]);
|
|
1140
1140
|
}
|
|
@@ -1149,9 +1149,9 @@ var xr = /*#__PURE__*/ Q(yr, [["render", br]]), Sr = d({
|
|
|
1149
1149
|
NTimePicker: Ie,
|
|
1150
1150
|
NSwitch: Ne,
|
|
1151
1151
|
NColorPicker: z,
|
|
1152
|
-
NCheckbox:
|
|
1152
|
+
NCheckbox: R,
|
|
1153
1153
|
NCheckboxGroup: ie,
|
|
1154
|
-
NCascader:
|
|
1154
|
+
NCascader: re,
|
|
1155
1155
|
NTooltip: Le,
|
|
1156
1156
|
NDropdown: de
|
|
1157
1157
|
},
|
|
@@ -1341,11 +1341,11 @@ function wr(t, n, i, u, d, f) {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
}, s({ _: 2 }, [t.item.params.prefix ? {
|
|
1343
1343
|
name: "prefix",
|
|
1344
|
-
fn:
|
|
1344
|
+
fn: N(() => [c(A(t.item.params.prefix), 1)]),
|
|
1345
1345
|
key: "0"
|
|
1346
1346
|
} : void 0, t.item.params.suffix ? {
|
|
1347
1347
|
name: "suffix",
|
|
1348
|
-
fn:
|
|
1348
|
+
fn: N(() => [c(A(t.item.params.suffix), 1)]),
|
|
1349
1349
|
key: "1"
|
|
1350
1350
|
} : void 0]), 1032, [
|
|
1351
1351
|
"value",
|
|
@@ -1377,7 +1377,7 @@ function wr(t, n, i, u, d, f) {
|
|
|
1377
1377
|
t.showDropdown = !1;
|
|
1378
1378
|
}
|
|
1379
1379
|
}, {
|
|
1380
|
-
default:
|
|
1380
|
+
default: N(() => [l(p, {
|
|
1381
1381
|
value: t.formValue[t.item.key],
|
|
1382
1382
|
"show-password-on": "click",
|
|
1383
1383
|
type: t.item.params.type,
|
|
@@ -1395,11 +1395,11 @@ function wr(t, n, i, u, d, f) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
}, s({ _: 2 }, [t.item.params.prefix ? {
|
|
1397
1397
|
name: "prefix",
|
|
1398
|
-
fn:
|
|
1398
|
+
fn: N(() => [c(A(t.item.params.prefix), 1)]),
|
|
1399
1399
|
key: "0"
|
|
1400
1400
|
} : void 0, t.item.params.suffix ? {
|
|
1401
1401
|
name: "suffix",
|
|
1402
|
-
fn:
|
|
1402
|
+
fn: N(() => [c(A(t.item.params.suffix), 1)]),
|
|
1403
1403
|
key: "1"
|
|
1404
1404
|
} : void 0]), 1032, [
|
|
1405
1405
|
"value",
|
|
@@ -1437,11 +1437,11 @@ function wr(t, n, i, u, d, f) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}, s({ _: 2 }, [t.item.params.prefix ? {
|
|
1439
1439
|
name: "prefix",
|
|
1440
|
-
fn:
|
|
1440
|
+
fn: N(() => [c(A(t.item.params.prefix), 1)]),
|
|
1441
1441
|
key: "0"
|
|
1442
1442
|
} : void 0, t.item.params.suffix ? {
|
|
1443
1443
|
name: "suffix",
|
|
1444
|
-
fn:
|
|
1444
|
+
fn: N(() => [c(A(t.item.params.suffix), 1)]),
|
|
1445
1445
|
key: "1"
|
|
1446
1446
|
} : void 0]), 1032, [
|
|
1447
1447
|
"value",
|
|
@@ -1625,7 +1625,7 @@ function wr(t, n, i, u, d, f) {
|
|
|
1625
1625
|
value: t.formValue[t.item.key],
|
|
1626
1626
|
disabled: t.checkDisabled()
|
|
1627
1627
|
}, {
|
|
1628
|
-
default:
|
|
1628
|
+
default: N(() => [o("div", Cr, [(x(!0), a(e, null, T(t.item.params.options, (e) => (x(), r(S, {
|
|
1629
1629
|
key: e.value,
|
|
1630
1630
|
label: e.label,
|
|
1631
1631
|
value: e.value
|
|
@@ -1676,11 +1676,11 @@ function wr(t, n, i, u, d, f) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
}, s({ _: 2 }, [t.item.params.checked ? {
|
|
1678
1678
|
name: "checked",
|
|
1679
|
-
fn:
|
|
1679
|
+
fn: N(() => [c(A(t.item.params.checked), 1)]),
|
|
1680
1680
|
key: "0"
|
|
1681
1681
|
} : void 0, t.item.params.unchecked ? {
|
|
1682
1682
|
name: "unchecked",
|
|
1683
|
-
fn:
|
|
1683
|
+
fn: N(() => [c(A(t.item.params.unchecked), 1)]),
|
|
1684
1684
|
key: "1"
|
|
1685
1685
|
} : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), r(k, {
|
|
1686
1686
|
key: 13,
|
|
@@ -1700,7 +1700,7 @@ var Tr = /*#__PURE__*/ Q(Sr, [["render", wr]]), Er = d({
|
|
|
1700
1700
|
NForm: pe,
|
|
1701
1701
|
NFormItem: me,
|
|
1702
1702
|
NDivider: ce,
|
|
1703
|
-
NButton:
|
|
1703
|
+
NButton: I,
|
|
1704
1704
|
NIcon: V,
|
|
1705
1705
|
UzFormItem: Tr
|
|
1706
1706
|
},
|
|
@@ -1876,7 +1876,7 @@ var Tr = /*#__PURE__*/ Q(Sr, [["render", wr]]), Er = d({
|
|
|
1876
1876
|
manual: () => {
|
|
1877
1877
|
c.value = e.value, v(e.items);
|
|
1878
1878
|
}
|
|
1879
|
-
}),
|
|
1879
|
+
}), j(() => e.value, (t, n) => {
|
|
1880
1880
|
JSON.stringify(t) !== JSON.stringify(n) && (c.value = t, l.value.length === 0 && v(e.items));
|
|
1881
1881
|
}, {
|
|
1882
1882
|
deep: !0,
|
|
@@ -1925,7 +1925,7 @@ function Or(t, n, s, u, d, f) {
|
|
|
1925
1925
|
labelAlign: t.labelAlign,
|
|
1926
1926
|
labelPlacement: t.labelPlacement
|
|
1927
1927
|
}, {
|
|
1928
|
-
default:
|
|
1928
|
+
default: N(() => [P((x(), a("div", { class: g(t.isMobile ? "" : "uz-form-grid") }, [(x(!0), a(e, null, T(t.formItems, (n, s) => (x(), a(e, { key: n.key }, [t.itemShow(n) ? (x(), r(C, {
|
|
1929
1929
|
key: 0,
|
|
1930
1930
|
path: n.key,
|
|
1931
1931
|
rule: n.input === "subTable" ? void 0 : n.form.rule?.required ? n.form.rule : void 0,
|
|
@@ -1933,14 +1933,14 @@ function Or(t, n, s, u, d, f) {
|
|
|
1933
1933
|
"show-label": n.input !== "divider" && n.input !== "subTable" && n.input !== "bom",
|
|
1934
1934
|
"show-feedback": t.showFeedback && n.input !== "divider"
|
|
1935
1935
|
}, {
|
|
1936
|
-
label:
|
|
1936
|
+
label: N(() => [
|
|
1937
1937
|
o("div", null, A(typeof n.label == "function" ? n.label() : n.label), 1),
|
|
1938
1938
|
t.status !== 2 && n.source && n.form.createButton ? (x(), a("a", {
|
|
1939
1939
|
key: 0,
|
|
1940
1940
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add",
|
|
1941
1941
|
onClick: (e) => t.sourceAdd(n, s)
|
|
1942
1942
|
}, [l(m, null, {
|
|
1943
|
-
default:
|
|
1943
|
+
default: N(() => [l(p, { icon: "Add" })]),
|
|
1944
1944
|
_: 1
|
|
1945
1945
|
}), c(" " + A(t.t("Common.add")), 1)], 8, Dr)) : i("", !0),
|
|
1946
1946
|
n.form.showDays ? (x(), a("span", {
|
|
@@ -1948,7 +1948,7 @@ function Or(t, n, s, u, d, f) {
|
|
|
1948
1948
|
class: g(["uz-form-item-add", t.diffDay(t.formValue[n.key], !0)])
|
|
1949
1949
|
}, A(t.diffDay(t.formValue[n.key])), 3)) : i("", !0)
|
|
1950
1950
|
]),
|
|
1951
|
-
default:
|
|
1951
|
+
default: N(() => [n.input === "subTable" && !n.params.quest ? (x(), r(h, {
|
|
1952
1952
|
key: 0,
|
|
1953
1953
|
ref_for: !0,
|
|
1954
1954
|
ref: "childRef",
|
|
@@ -1980,7 +1980,7 @@ function Or(t, n, s, u, d, f) {
|
|
|
1980
1980
|
key: 3,
|
|
1981
1981
|
"title-placement": n.params.placement
|
|
1982
1982
|
}, {
|
|
1983
|
-
default:
|
|
1983
|
+
default: N(() => [c(A(typeof n.label == "function" ? n.label() : n.label), 1)]),
|
|
1984
1984
|
_: 2
|
|
1985
1985
|
}, 1032, ["title-placement"])) : (x(), r(S, {
|
|
1986
1986
|
key: 4,
|
|
@@ -2017,7 +2017,7 @@ var kr = /*#__PURE__*/ Q(Er, [["render", Or]]), Ar = d({
|
|
|
2017
2017
|
components: {
|
|
2018
2018
|
NForm: pe,
|
|
2019
2019
|
NFormItem: me,
|
|
2020
|
-
NButton:
|
|
2020
|
+
NButton: I,
|
|
2021
2021
|
NIcon: V,
|
|
2022
2022
|
NDivider: ce,
|
|
2023
2023
|
UzFormItem: Tr,
|
|
@@ -2101,9 +2101,9 @@ var kr = /*#__PURE__*/ Q(Er, [["render", Or]]), Ar = d({
|
|
|
2101
2101
|
};
|
|
2102
2102
|
return y(() => {
|
|
2103
2103
|
o.value = e.value, f();
|
|
2104
|
-
}), t({ changeItem: u }),
|
|
2104
|
+
}), t({ changeItem: u }), j(() => e.items, () => {
|
|
2105
2105
|
f();
|
|
2106
|
-
}, { deep: !0 }),
|
|
2106
|
+
}, { deep: !0 }), j(() => e.value, (e) => {
|
|
2107
2107
|
o.value = e;
|
|
2108
2108
|
}, { deep: !0 }), {
|
|
2109
2109
|
t: r,
|
|
@@ -2138,7 +2138,7 @@ function Nr(t, n, s, u, d, f) {
|
|
|
2138
2138
|
labelPlacement: t.labelPlacement,
|
|
2139
2139
|
onClick: t.onCancel
|
|
2140
2140
|
}, {
|
|
2141
|
-
default:
|
|
2141
|
+
default: N(() => [l(S, {
|
|
2142
2142
|
modelValue: t.formItems,
|
|
2143
2143
|
"onUpdate:modelValue": n[0] ||= (e) => t.formItems = e,
|
|
2144
2144
|
animation: 200,
|
|
@@ -2152,33 +2152,33 @@ function Nr(t, n, s, u, d, f) {
|
|
|
2152
2152
|
onAdd: t.onDragChange,
|
|
2153
2153
|
onEnd: t.onDragChange
|
|
2154
2154
|
}, {
|
|
2155
|
-
default:
|
|
2155
|
+
default: N(() => [(x(!0), a(e, null, T(t.formItems, (n, s) => (x(), r(b, {
|
|
2156
2156
|
path: n.key,
|
|
2157
2157
|
rule: n.form.rule?.required ? n.form.rule : void 0,
|
|
2158
2158
|
class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === s && t.formItemIndex[1] === -1 ? "select" : n.input === "group" ? "group" : ""]),
|
|
2159
|
-
onClick:
|
|
2159
|
+
onClick: F((e) => t.onModeClick(n, s), ["stop"]),
|
|
2160
2160
|
key: n.key,
|
|
2161
2161
|
style: _(`grid-column: span ${n.form.span || 6} / span ${n.form.span || 6};`),
|
|
2162
2162
|
"show-label": n.input !== "divider" && n.input !== "subTable" && n.input !== "bom",
|
|
2163
2163
|
"show-feedback": t.showFeedback && n.input !== "divider"
|
|
2164
2164
|
}, {
|
|
2165
|
-
label:
|
|
2165
|
+
label: N(() => [
|
|
2166
2166
|
o("div", null, A(typeof n.label == "function" ? n.label() : n.label), 1),
|
|
2167
2167
|
n.source && n.form.createButton ? (x(), a("a", jr, [l(m, null, {
|
|
2168
|
-
default:
|
|
2168
|
+
default: N(() => [l(p, { icon: "Add" })]),
|
|
2169
2169
|
_: 1
|
|
2170
2170
|
}), c(" " + A(t.t("Common.add")), 1)])) : i("", !0),
|
|
2171
2171
|
n.form.showDays ? (x(), a("span", Mr, " showDays ")) : i("", !0)
|
|
2172
2172
|
]),
|
|
2173
|
-
default:
|
|
2173
|
+
default: N(() => [t.formItemIndex[0] === s && t.formItemIndex[1] === -1 ? (x(), r(h, {
|
|
2174
2174
|
key: 0,
|
|
2175
2175
|
size: "small",
|
|
2176
2176
|
type: "error",
|
|
2177
2177
|
class: "uz-form-delete",
|
|
2178
|
-
onClick:
|
|
2178
|
+
onClick: F(t.onDelete, ["stop"])
|
|
2179
2179
|
}, {
|
|
2180
|
-
icon:
|
|
2181
|
-
default:
|
|
2180
|
+
icon: N(() => [l(m, { color: "#FFF" }, {
|
|
2181
|
+
default: N(() => [l(p, { icon: "Trash" })]),
|
|
2182
2182
|
_: 1
|
|
2183
2183
|
})]),
|
|
2184
2184
|
_: 1
|
|
@@ -2204,26 +2204,26 @@ function Nr(t, n, s, u, d, f) {
|
|
|
2204
2204
|
onAdd: t.onDragChange,
|
|
2205
2205
|
onEnd: t.onDragChange
|
|
2206
2206
|
}, {
|
|
2207
|
-
default:
|
|
2207
|
+
default: N(() => [(x(!0), a(e, null, T(n.params.children, (e, n) => (x(), r(b, {
|
|
2208
2208
|
label: e.input === "divider" ? "" : typeof e.label == "function" ? e.label() : e.label,
|
|
2209
2209
|
path: e.key,
|
|
2210
2210
|
rule: e.form.rule?.required ? e.form.rule : void 0,
|
|
2211
2211
|
class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === s && t.formItemIndex[1] === n ? "select" : ""]),
|
|
2212
|
-
onClick:
|
|
2212
|
+
onClick: F((r) => t.onModeClick(e, s, n), ["stop"]),
|
|
2213
2213
|
key: n,
|
|
2214
2214
|
style: _(`grid-column: span ${e.form.span || 6} / span ${e.form.span || 6};`),
|
|
2215
2215
|
"show-label": e.input !== "divider" && e.input !== "subTable" && e.input !== "bom",
|
|
2216
2216
|
"show-feedback": t.showFeedback && e.input !== "divider"
|
|
2217
2217
|
}, {
|
|
2218
|
-
default:
|
|
2218
|
+
default: N(() => [t.formItemIndex[0] === s && t.formItemIndex[1] === n ? (x(), r(h, {
|
|
2219
2219
|
key: 0,
|
|
2220
2220
|
size: "small",
|
|
2221
2221
|
type: "error",
|
|
2222
2222
|
class: "uz-form-delete",
|
|
2223
|
-
onClick:
|
|
2223
|
+
onClick: F(t.onDelete, ["stop"])
|
|
2224
2224
|
}, {
|
|
2225
|
-
icon:
|
|
2226
|
-
default:
|
|
2225
|
+
icon: N(() => [l(m, { color: "#FFF" }, {
|
|
2226
|
+
default: N(() => [l(p, { icon: "Trash" })]),
|
|
2227
2227
|
_: 1
|
|
2228
2228
|
})]),
|
|
2229
2229
|
_: 1
|
|
@@ -2261,7 +2261,7 @@ function Nr(t, n, s, u, d, f) {
|
|
|
2261
2261
|
key: 4,
|
|
2262
2262
|
"title-placement": n.params.placement
|
|
2263
2263
|
}, {
|
|
2264
|
-
default:
|
|
2264
|
+
default: N(() => [c(A(typeof n.label == "function" ? n.label() : n.label), 1)]),
|
|
2265
2265
|
_: 2
|
|
2266
2266
|
}, 1032, ["title-placement"])) : (x(), r(y, {
|
|
2267
2267
|
key: 5,
|
|
@@ -2303,7 +2303,7 @@ var Pr = /*#__PURE__*/ Q(Ar, [["render", Nr]]), Fr = d({
|
|
|
2303
2303
|
name: "UzFormItemUpload",
|
|
2304
2304
|
components: {
|
|
2305
2305
|
NUpload: Re,
|
|
2306
|
-
NButton:
|
|
2306
|
+
NButton: I,
|
|
2307
2307
|
NIcon: V,
|
|
2308
2308
|
NImage: _e,
|
|
2309
2309
|
NPopover: Ee,
|
|
@@ -2395,7 +2395,7 @@ var Pr = /*#__PURE__*/ Q(Ar, [["render", Nr]]), Fr = d({
|
|
|
2395
2395
|
};
|
|
2396
2396
|
return y(() => {
|
|
2397
2397
|
u();
|
|
2398
|
-
}),
|
|
2398
|
+
}), j(() => e.value, () => {
|
|
2399
2399
|
u();
|
|
2400
2400
|
}), {
|
|
2401
2401
|
t: n,
|
|
@@ -2416,7 +2416,7 @@ function zr(t, n, s, u, d, f) {
|
|
|
2416
2416
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
2417
2417
|
show: t.show
|
|
2418
2418
|
}, {
|
|
2419
|
-
default:
|
|
2419
|
+
default: N(() => [t.status === 2 ? i("", !0) : (x(), r(g, {
|
|
2420
2420
|
key: 0,
|
|
2421
2421
|
accept: t.item.params.accept,
|
|
2422
2422
|
max: t.item.params.max,
|
|
@@ -2427,9 +2427,9 @@ function zr(t, n, s, u, d, f) {
|
|
|
2427
2427
|
class: "!uz-w-20",
|
|
2428
2428
|
"directory-dnd": ""
|
|
2429
2429
|
}, {
|
|
2430
|
-
default:
|
|
2431
|
-
default:
|
|
2432
|
-
default:
|
|
2430
|
+
default: N(() => [l(h, { class: "uz-flex uz-items-center uz-justify-center uz-h-20" }, {
|
|
2431
|
+
default: N(() => [l(m, { size: "28" }, {
|
|
2432
|
+
default: N(() => [l(p, { icon: "CloudUpload" })]),
|
|
2433
2433
|
_: 1
|
|
2434
2434
|
})]),
|
|
2435
2435
|
_: 1
|
|
@@ -2447,11 +2447,11 @@ function zr(t, n, s, u, d, f) {
|
|
|
2447
2447
|
width: "80",
|
|
2448
2448
|
src: e.url
|
|
2449
2449
|
}, {
|
|
2450
|
-
error:
|
|
2450
|
+
error: N(() => [l(m, {
|
|
2451
2451
|
size: "60",
|
|
2452
2452
|
color: "lightGrey"
|
|
2453
2453
|
}, {
|
|
2454
|
-
default:
|
|
2454
|
+
default: N(() => [l(p, { icon: "Gallery" })]),
|
|
2455
2455
|
_: 1
|
|
2456
2456
|
})]),
|
|
2457
2457
|
_: 1
|
|
@@ -2462,23 +2462,23 @@ function zr(t, n, s, u, d, f) {
|
|
|
2462
2462
|
class: "uz-cursor-pointer",
|
|
2463
2463
|
onClick: (n) => t.openFile(e.url)
|
|
2464
2464
|
}, {
|
|
2465
|
-
default:
|
|
2465
|
+
default: N(() => [l(p, { icon: "Document" })]),
|
|
2466
2466
|
_: 1
|
|
2467
2467
|
}, 8, ["onClick"])), o("div", Ir, [o("div", {
|
|
2468
2468
|
class: "uz-form-upload-title uz-truncate",
|
|
2469
2469
|
title: e.name
|
|
2470
2470
|
}, A(e.name), 9, Lr), t.status === 2 ? i("", !0) : (x(), a("div", Rr, [l(y, { onPositiveClick: (e) => t.doDelete(n) }, {
|
|
2471
|
-
trigger:
|
|
2471
|
+
trigger: N(() => [l(v, {
|
|
2472
2472
|
size: "small",
|
|
2473
2473
|
tertiary: ""
|
|
2474
2474
|
}, {
|
|
2475
|
-
icon:
|
|
2476
|
-
default:
|
|
2475
|
+
icon: N(() => [l(m, { size: "14" }, {
|
|
2476
|
+
default: N(() => [l(p, { icon: "Trash" })]),
|
|
2477
2477
|
_: 1
|
|
2478
2478
|
})]),
|
|
2479
2479
|
_: 1
|
|
2480
2480
|
})]),
|
|
2481
|
-
default:
|
|
2481
|
+
default: N(() => [c(" " + A(t.t("Table.confirmDelete")), 1)]),
|
|
2482
2482
|
_: 1
|
|
2483
2483
|
}, 8, ["onPositiveClick"]), l(v, {
|
|
2484
2484
|
tag: "a",
|
|
@@ -2487,8 +2487,8 @@ function zr(t, n, s, u, d, f) {
|
|
|
2487
2487
|
size: "small",
|
|
2488
2488
|
tertiary: ""
|
|
2489
2489
|
}, {
|
|
2490
|
-
icon:
|
|
2491
|
-
default:
|
|
2490
|
+
icon: N(() => [l(m, { size: "14" }, {
|
|
2491
|
+
default: N(() => [l(p, { icon: "CloudDownload" })]),
|
|
2492
2492
|
_: 1
|
|
2493
2493
|
})]),
|
|
2494
2494
|
_: 1
|
|
@@ -2511,7 +2511,7 @@ var Br = /*#__PURE__*/ Q(Fr, [["render", zr], ["__scopeId", "data-v-3f4cdb7e"]])
|
|
|
2511
2511
|
} },
|
|
2512
2512
|
setup(e) {
|
|
2513
2513
|
let t = w([]);
|
|
2514
|
-
return
|
|
2514
|
+
return M(() => {
|
|
2515
2515
|
try {
|
|
2516
2516
|
e.value ? t.value = tt.parse(e.value) : t.value = [];
|
|
2517
2517
|
} catch {
|
|
@@ -2544,16 +2544,16 @@ var Br = /*#__PURE__*/ Q(Fr, [["render", zr], ["__scopeId", "data-v-3f4cdb7e"]])
|
|
|
2544
2544
|
function Ur(t, n, i, s, u, d) {
|
|
2545
2545
|
let f = D("UzIcon"), p = D("NIcon"), m = D("NImage"), h = D("NPopover"), g = D("NImageGroup");
|
|
2546
2546
|
return x(), r(g, null, {
|
|
2547
|
-
default:
|
|
2547
|
+
default: N(() => [o("div", Hr, [(x(!0), a(e, null, T(t.imgs, (n) => (x(), a(e, null, [t.isAssetTypeAnImage(n) ? (x(), r(m, {
|
|
2548
2548
|
key: 0,
|
|
2549
2549
|
width: "40",
|
|
2550
2550
|
src: n
|
|
2551
2551
|
}, {
|
|
2552
|
-
error:
|
|
2552
|
+
error: N(() => [l(p, {
|
|
2553
2553
|
size: "40",
|
|
2554
2554
|
color: "lightGrey"
|
|
2555
2555
|
}, {
|
|
2556
|
-
default:
|
|
2556
|
+
default: N(() => [l(f, { icon: "Gallery" })]),
|
|
2557
2557
|
_: 1
|
|
2558
2558
|
})]),
|
|
2559
2559
|
_: 1
|
|
@@ -2561,16 +2561,16 @@ function Ur(t, n, i, s, u, d) {
|
|
|
2561
2561
|
key: 1,
|
|
2562
2562
|
trigger: "hover"
|
|
2563
2563
|
}, {
|
|
2564
|
-
trigger:
|
|
2564
|
+
trigger: N(() => [l(p, {
|
|
2565
2565
|
size: "40",
|
|
2566
2566
|
color: "lightGrey",
|
|
2567
2567
|
onClick: (e) => t.openFile(n),
|
|
2568
2568
|
class: "uz-cursor-pointer"
|
|
2569
2569
|
}, {
|
|
2570
|
-
default:
|
|
2570
|
+
default: N(() => [l(f, { icon: "Document" })]),
|
|
2571
2571
|
_: 1
|
|
2572
2572
|
}, 8, ["onClick"])]),
|
|
2573
|
-
default:
|
|
2573
|
+
default: N(() => [c(A(t.getFileName(n)), 1)]),
|
|
2574
2574
|
_: 2
|
|
2575
2575
|
}, 1024))], 64))), 256))])]),
|
|
2576
2576
|
_: 1
|
|
@@ -2608,7 +2608,7 @@ var Wr = /*#__PURE__*/ Q(Vr, [["render", Ur]]), Gr = d({
|
|
|
2608
2608
|
}, u = () => {
|
|
2609
2609
|
t("update:value", `${a.value}:${o.value}:${s.value}`);
|
|
2610
2610
|
};
|
|
2611
|
-
return n({ clearAll: c }),
|
|
2611
|
+
return n({ clearAll: c }), j(() => e.value, (e) => {
|
|
2612
2612
|
if (e && e.indexOf(":") > -1) {
|
|
2613
2613
|
let t = e.split(":");
|
|
2614
2614
|
a.value = t[0], o.value = t[1], s.value = t[2];
|
|
@@ -2643,7 +2643,7 @@ function qr(e, t, n, r, i, o) {
|
|
|
2643
2643
|
class: g(e.class),
|
|
2644
2644
|
"on-update:value": e.changeH
|
|
2645
2645
|
}, {
|
|
2646
|
-
arrow:
|
|
2646
|
+
arrow: N(() => [c(A(e.t("Common.hour")), 1)]),
|
|
2647
2647
|
_: 1
|
|
2648
2648
|
}, 8, [
|
|
2649
2649
|
"value",
|
|
@@ -2660,7 +2660,7 @@ function qr(e, t, n, r, i, o) {
|
|
|
2660
2660
|
class: g(e.class),
|
|
2661
2661
|
"on-update:value": e.changeM
|
|
2662
2662
|
}, {
|
|
2663
|
-
arrow:
|
|
2663
|
+
arrow: N(() => [c(A(e.t("Common.minute")), 1)]),
|
|
2664
2664
|
_: 1
|
|
2665
2665
|
}, 8, [
|
|
2666
2666
|
"value",
|
|
@@ -2677,7 +2677,7 @@ function qr(e, t, n, r, i, o) {
|
|
|
2677
2677
|
class: g(e.class),
|
|
2678
2678
|
"on-update:value": e.changeS
|
|
2679
2679
|
}, {
|
|
2680
|
-
arrow:
|
|
2680
|
+
arrow: N(() => [c(A(e.t("Common.second")), 1)]),
|
|
2681
2681
|
_: 1
|
|
2682
2682
|
}, 8, [
|
|
2683
2683
|
"value",
|
|
@@ -2753,7 +2753,7 @@ var Xr = (e, t) => e.map((e, n) => {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}));
|
|
2755
2755
|
};
|
|
2756
|
-
return y(s),
|
|
2756
|
+
return y(s), j(e, s), v(() => a.value?.destroy()), {
|
|
2757
2757
|
dragColumn: {
|
|
2758
2758
|
title: "",
|
|
2759
2759
|
key: "drag",
|
|
@@ -2843,29 +2843,30 @@ var fi = () => new Promise((e) => {
|
|
|
2843
2843
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
2844
2844
|
}, 500);
|
|
2845
2845
|
}
|
|
2846
|
-
}), pi = async (e, t
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2846
|
+
}), pi = async (e, t) => {
|
|
2847
|
+
let n = e.key, r = e.table.render, i = {
|
|
2848
|
+
isModules: !1,
|
|
2849
|
+
render: null
|
|
2850
|
+
};
|
|
2851
|
+
if (r && typeof r == "string") {
|
|
2852
|
+
let e = r.match(li);
|
|
2853
|
+
if (e && r.indexOf("return") === -1) {
|
|
2854
|
+
let r = e[0].split(":");
|
|
2855
|
+
if (r[0] === "date" && (i.render = (t) => jt(t[n], e[0].replace("date:", "") || "YYYY-MM-DD")), r[0] === "city" && (i.render = (e) => e[`${n}Str`]), r[0] === "modules" && t && Object.keys(t).length > 0) {
|
|
2856
|
+
let n = e[0].replace("modules:", ""), r = Object.keys(t).find((e) => e.includes(n));
|
|
2857
|
+
if (r) {
|
|
2858
|
+
let e = t[r], n = m(u(e));
|
|
2859
|
+
i.isModules = !0, i.render = (e) => f(n, { rowData: e }, {});
|
|
2860
|
+
} else i.render = f("div", "Module not found");
|
|
2860
2861
|
}
|
|
2861
2862
|
} else try {
|
|
2862
|
-
let e = Function("rowData", "rowIndex", "h",
|
|
2863
|
-
|
|
2863
|
+
let e = Function("rowData", "rowIndex", "h", r);
|
|
2864
|
+
i.render = (t, n) => e(t, n, f);
|
|
2864
2865
|
} catch (e) {
|
|
2865
2866
|
K(e);
|
|
2866
2867
|
}
|
|
2867
2868
|
}
|
|
2868
|
-
return
|
|
2869
|
+
return r && typeof r == "function" && (i.render = (e, t) => r(e, t, f)), i;
|
|
2869
2870
|
}, mi = (e, t, n) => {
|
|
2870
2871
|
let r = t.map((t) => {
|
|
2871
2872
|
let r = [], i = t.id;
|
|
@@ -3296,6 +3297,11 @@ async function Ei(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
3296
3297
|
return f(Wr, { value: e[s.key] }, { default: () => null });
|
|
3297
3298
|
});
|
|
3298
3299
|
let p = {
|
|
3300
|
+
isModules: !1,
|
|
3301
|
+
render: null
|
|
3302
|
+
};
|
|
3303
|
+
s.table.render ? p = await pi(s, i) : s.table.render = void 0;
|
|
3304
|
+
let m = {
|
|
3299
3305
|
input: s.input,
|
|
3300
3306
|
title: s.label,
|
|
3301
3307
|
key: s.key,
|
|
@@ -3304,24 +3310,24 @@ async function Ei(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
3304
3310
|
ellipsisComponent: "performant-ellipsis",
|
|
3305
3311
|
...s.table,
|
|
3306
3312
|
width: Number(s.table.width || 140),
|
|
3313
|
+
render: p.render,
|
|
3307
3314
|
ellipsis: s.table.ellipsis ? {
|
|
3308
3315
|
tooltip: !0,
|
|
3309
3316
|
"line-clamp": s.table.clamp ?? 0
|
|
3310
3317
|
} : !1,
|
|
3311
|
-
render: s.table.render ? await pi(s.key, s.table.render, i) : void 0,
|
|
3312
3318
|
show: Y.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
3313
3319
|
pin: !!s.table.fixed,
|
|
3314
3320
|
fixTemp: s.table.fixed
|
|
3315
3321
|
};
|
|
3316
|
-
if (p.resizable && (
|
|
3317
|
-
if (!
|
|
3322
|
+
if (p.isModules && (m.isModules = !0), m.resizable && (m.minWidth = 80), t) {
|
|
3323
|
+
if (!m.form.edit.show) m = null;
|
|
3318
3324
|
else {
|
|
3319
|
-
if (
|
|
3325
|
+
if (m.ellipsis = !1, m.resizable = !0, Y.isMobile && (m.show = s.table.mobile), s.table.show && (n === 0 && (m.show = s.form.create.show), n === 1 && (m.show = s.form.edit.show), n === 2 && (m.show = s.form.show)), o && (s.form.rule.validator = () => !0), o === !1 && s.form.rule?.required && typeof s.form.rule.validator == "string") {
|
|
3320
3326
|
delete s.form.rule.message;
|
|
3321
3327
|
let e = s.form.rule.validator, t = Function("rule", "value", "index", "formValues", e);
|
|
3322
3328
|
s.form.rule.validator === "" ? s.form.rule.validator = (e, t) => r()[e.index].delete || t ? !0 : Error(s.form.rule.message) : s.form.rule.validator = (e, n) => r()[e.index].delete ? !0 : t(e, n, e.index, () => r());
|
|
3323
3329
|
}
|
|
3324
|
-
|
|
3330
|
+
m.render = function(e, t) {
|
|
3325
3331
|
return f(me, {
|
|
3326
3332
|
showLabel: !1,
|
|
3327
3333
|
showFeedback: !1,
|
|
@@ -3339,7 +3345,7 @@ async function Ei(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
3339
3345
|
};
|
|
3340
3346
|
}
|
|
3341
3347
|
}
|
|
3342
|
-
if (
|
|
3348
|
+
if (m && s.input !== "divider" && s.input !== "subTable" && (o && (m.show = s.form.expand.show), d.push(m)), s.input !== "divider" && s.input !== "switch" && s.input !== "subTable" && s.input !== "upload" && s.search.show) {
|
|
3343
3349
|
if (s.search.title && (s.label = s.search.title), s.search.source) {
|
|
3344
3350
|
if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
|
|
3345
3351
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
@@ -3452,7 +3458,7 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3452
3458
|
},
|
|
3453
3459
|
height: {
|
|
3454
3460
|
type: [Number, String],
|
|
3455
|
-
default:
|
|
3461
|
+
default: "300px"
|
|
3456
3462
|
},
|
|
3457
3463
|
status: {
|
|
3458
3464
|
type: Number,
|
|
@@ -3465,52 +3471,52 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3465
3471
|
},
|
|
3466
3472
|
emits: ["update:value"],
|
|
3467
3473
|
setup(e, { emit: t, expose: r }) {
|
|
3468
|
-
let i = p("mainFormValue"), { t:
|
|
3474
|
+
let i = p("mainFormValue"), a = p("modules"), { t: o } = U(), s = w(null), c = w([]), l = () => {
|
|
3469
3475
|
let e = i?.value?.()?.ticket_counts;
|
|
3470
3476
|
return e == null || e === "" ? 1 : e;
|
|
3471
|
-
},
|
|
3477
|
+
}, u = (e, t, n) => n ? `${n}-${t + 1}` : String(e.operation_no || e.product_no || e.code || t + 1), d = (e, t = 1, n, r) => (e ?? []).map((e, t) => ({
|
|
3472
3478
|
row: e,
|
|
3473
3479
|
index: t
|
|
3474
3480
|
})).sort((e, t) => (typeof e.row.sort_index == "number" && Number.isFinite(e.row.sort_index) ? e.row.sort_index : Number.isFinite(e.row.sort) ? e.row.sort : e.index) - (typeof t.row.sort_index == "number" && Number.isFinite(t.row.sort_index) ? t.row.sort_index : Number.isFinite(t.row.sort) ? t.row.sort : t.index)).map(({ row: e }, i) => {
|
|
3475
|
-
let a =
|
|
3481
|
+
let a = u(e, i, n), o = e.children, s = ti(e), c = t === 1 ? l() : ni(e.quantity, e.lossRate, r);
|
|
3476
3482
|
return {
|
|
3477
3483
|
...e,
|
|
3478
3484
|
required_quantity: s,
|
|
3479
|
-
counts:
|
|
3485
|
+
counts: c,
|
|
3480
3486
|
key: ii(e),
|
|
3481
3487
|
level: t,
|
|
3482
3488
|
code: a,
|
|
3483
3489
|
sort: i,
|
|
3484
3490
|
sort_index: i,
|
|
3485
|
-
...Array.isArray(o) ? { children:
|
|
3491
|
+
...Array.isArray(o) ? { children: d(o, t + 1, a, c) } : {}
|
|
3486
3492
|
};
|
|
3487
|
-
}),
|
|
3493
|
+
}), m = w(d(e.value)), h = w([]), g = !1, _ = 1, b = ii, x = (e, t = 1, n) => {
|
|
3488
3494
|
e.forEach((e, r) => {
|
|
3489
|
-
let i = e.code, a =
|
|
3490
|
-
e.level !== t && (e.level = t), i !== a && (e.code = a), Array.isArray(e.children) &&
|
|
3495
|
+
let i = e.code, a = u(e, r, n);
|
|
3496
|
+
e.level !== t && (e.level = t), i !== a && (e.code = a), Array.isArray(e.children) && x(e.children, t + 1, a);
|
|
3491
3497
|
});
|
|
3492
|
-
},
|
|
3498
|
+
}, S = (e) => {
|
|
3493
3499
|
let t = [];
|
|
3494
3500
|
return e.forEach((e) => {
|
|
3495
3501
|
let n = e.children;
|
|
3496
|
-
Array.isArray(n) && n.length && (t.push(
|
|
3502
|
+
Array.isArray(n) && n.length && (t.push(b(e)), t.push(...S(n)));
|
|
3497
3503
|
}), t;
|
|
3498
|
-
},
|
|
3499
|
-
|
|
3500
|
-
},
|
|
3501
|
-
let e =
|
|
3502
|
-
if (!
|
|
3503
|
-
if (!
|
|
3504
|
-
|
|
3504
|
+
}, C = (e) => {
|
|
3505
|
+
h.value = e, g = !0;
|
|
3506
|
+
}, T = () => {
|
|
3507
|
+
let e = S(m.value);
|
|
3508
|
+
if (!g) {
|
|
3509
|
+
if (!m.value.length) return;
|
|
3510
|
+
h.value = e, g = !0;
|
|
3505
3511
|
return;
|
|
3506
3512
|
}
|
|
3507
|
-
let t = new Set(e), n =
|
|
3508
|
-
(n.length !==
|
|
3509
|
-
}, { run:
|
|
3510
|
-
|
|
3511
|
-
}, 200),
|
|
3512
|
-
let r =
|
|
3513
|
-
r || (r = /* @__PURE__ */ new Map(),
|
|
3513
|
+
let t = new Set(e), n = h.value.filter((e) => t.has(e));
|
|
3514
|
+
(n.length !== h.value.length || n.some((e, t) => e !== h.value[t])) && (h.value = n);
|
|
3515
|
+
}, { run: E, flush: D, cancel: O } = Yr(() => {
|
|
3516
|
+
x(m.value), T();
|
|
3517
|
+
}, 200), k = /* @__PURE__ */ new WeakMap(), A = (e, n) => {
|
|
3518
|
+
let r = k.get(e);
|
|
3519
|
+
r || (r = /* @__PURE__ */ new Map(), k.set(e, r));
|
|
3514
3520
|
let i = r.get(n.key);
|
|
3515
3521
|
if (i) return i;
|
|
3516
3522
|
let a = new Proxy(e, {
|
|
@@ -3519,30 +3525,30 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3519
3525
|
},
|
|
3520
3526
|
set(e, r, i) {
|
|
3521
3527
|
let a = Reflect.get(e, r) !== i, o = Reflect.set(e, r, i);
|
|
3522
|
-
if (a && (r === "quantity" || r === "lossRate") && Reflect.set(e, "required_quantity", ti(e)), a && (r === "quantity" || r === "lossRate" || r === "counts") &&
|
|
3528
|
+
if (a && (r === "quantity" || r === "lossRate") && Reflect.set(e, "required_quantity", ti(e)), a && (r === "quantity" || r === "lossRate" || r === "counts") && m.value.forEach((e) => ri(Array.isArray(e.children) ? e.children : [], e.counts)), a && r === n.key && Di(n)) {
|
|
3523
3529
|
let t = ci(n.params?.options, i);
|
|
3524
|
-
t !== void 0 && (Reflect.set(e, "operation_no", t), Number(e.level) === 1 && Reflect.set(e, "code", t)), (t !== void 0 || r === "product_no") && (
|
|
3530
|
+
t !== void 0 && (Reflect.set(e, "operation_no", t), Number(e.level) === 1 && Reflect.set(e, "code", t)), (t !== void 0 || r === "product_no") && (E(), t !== void 0 && D());
|
|
3525
3531
|
}
|
|
3526
|
-
return a && o && t("update:value",
|
|
3532
|
+
return a && o && t("update:value", m.value), o;
|
|
3527
3533
|
}
|
|
3528
3534
|
});
|
|
3529
3535
|
return r.set(n.key, a), a;
|
|
3530
|
-
},
|
|
3536
|
+
}, ee = () => {
|
|
3531
3537
|
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set(), n = (r) => {
|
|
3532
3538
|
r.forEach((r) => {
|
|
3533
|
-
e.add(
|
|
3539
|
+
e.add(b(r)), t.add(r.code);
|
|
3534
3540
|
let i = r.children;
|
|
3535
3541
|
Array.isArray(i) && n(i);
|
|
3536
3542
|
});
|
|
3537
3543
|
};
|
|
3538
|
-
n(
|
|
3544
|
+
n(m.value);
|
|
3539
3545
|
let r;
|
|
3540
3546
|
do
|
|
3541
3547
|
r = ai();
|
|
3542
3548
|
while (e.has(r));
|
|
3543
3549
|
let i;
|
|
3544
3550
|
do
|
|
3545
|
-
i = `NEW-${String(
|
|
3551
|
+
i = `NEW-${String(_).padStart(4, "0")}`, _ += 1;
|
|
3546
3552
|
while (t.has(i));
|
|
3547
3553
|
return {
|
|
3548
3554
|
key: r,
|
|
@@ -3560,19 +3566,19 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3560
3566
|
lossRate: 0,
|
|
3561
3567
|
remark: ""
|
|
3562
3568
|
};
|
|
3563
|
-
},
|
|
3564
|
-
|
|
3565
|
-
let
|
|
3566
|
-
|
|
3567
|
-
}, { dragColumn: N, getSortableRowProps: P, tableRef:
|
|
3568
|
-
let t =
|
|
3569
|
-
if (
|
|
3569
|
+
}, te = (e) => d(e?.length ? e : [ee()]);
|
|
3570
|
+
m.value.length || (m.value = te(e.value));
|
|
3571
|
+
let M = (e) => {
|
|
3572
|
+
m.value = d(e), T(), t("update:value", m.value);
|
|
3573
|
+
}, { dragColumn: N, getSortableRowProps: P, tableRef: ne, tableVersion: F } = $r(m, M), L = (e) => {
|
|
3574
|
+
let t = b(e), n = !1, r = (e) => e.map((e) => {
|
|
3575
|
+
if (b(e) === t) {
|
|
3570
3576
|
n = !0;
|
|
3571
3577
|
let t = e.children, r = Array.isArray(t) ? t : [];
|
|
3572
3578
|
return {
|
|
3573
3579
|
...e,
|
|
3574
3580
|
children: [...r, {
|
|
3575
|
-
...
|
|
3581
|
+
...ee(),
|
|
3576
3582
|
sort: r.length,
|
|
3577
3583
|
sort_index: r.length
|
|
3578
3584
|
}]
|
|
@@ -3584,44 +3590,44 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3584
3590
|
children: r(i)
|
|
3585
3591
|
} : e;
|
|
3586
3592
|
});
|
|
3587
|
-
|
|
3593
|
+
M(r(m.value)), n && !h.value.includes(t) && C([...h.value, t]);
|
|
3594
|
+
}, re = (e) => {
|
|
3595
|
+
M(oi(m.value, b(e), ee()));
|
|
3588
3596
|
}, R = (e) => {
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
let t = _(e), n = (e) => e.reduce((e, r) => {
|
|
3592
|
-
if (_(r) === t) return e;
|
|
3597
|
+
let t = b(e), n = (e) => e.reduce((e, r) => {
|
|
3598
|
+
if (b(r) === t) return e;
|
|
3593
3599
|
let i = r.children;
|
|
3594
3600
|
return e.push(Array.isArray(i) ? {
|
|
3595
3601
|
...r,
|
|
3596
3602
|
children: n(i)
|
|
3597
3603
|
} : r), e;
|
|
3598
3604
|
}, []);
|
|
3599
|
-
|
|
3600
|
-
},
|
|
3605
|
+
M(n(m.value));
|
|
3606
|
+
}, ie = {
|
|
3601
3607
|
title: () => f(de, {
|
|
3602
3608
|
trigger: "click",
|
|
3603
3609
|
options: [{
|
|
3604
|
-
label:
|
|
3610
|
+
label: o("Common.expand"),
|
|
3605
3611
|
key: "expand-all"
|
|
3606
3612
|
}, {
|
|
3607
|
-
label:
|
|
3613
|
+
label: o("Common.contract"),
|
|
3608
3614
|
key: "collapse-all"
|
|
3609
3615
|
}],
|
|
3610
3616
|
onSelect: (e) => {
|
|
3611
|
-
|
|
3617
|
+
C(e === "expand-all" ? S(m.value) : []);
|
|
3612
3618
|
}
|
|
3613
|
-
}, { default: () => f(
|
|
3619
|
+
}, { default: () => f(I, {
|
|
3614
3620
|
text: !0,
|
|
3615
3621
|
size: "small",
|
|
3616
|
-
"aria-label":
|
|
3617
|
-
}, { default: () =>
|
|
3622
|
+
"aria-label": o("BOM.expandOrCollapseAll")
|
|
3623
|
+
}, { default: () => o("BOM.level") }) }),
|
|
3618
3624
|
key: "level",
|
|
3619
3625
|
width: 70,
|
|
3620
3626
|
fixed: "left",
|
|
3621
3627
|
tree: !0,
|
|
3622
3628
|
ellipsis: { tooltip: !0 }
|
|
3623
|
-
},
|
|
3624
|
-
title:
|
|
3629
|
+
}, z = {
|
|
3630
|
+
title: o("Common.action"),
|
|
3625
3631
|
key: "actions",
|
|
3626
3632
|
width: 240,
|
|
3627
3633
|
fixed: "right",
|
|
@@ -3633,21 +3639,21 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3633
3639
|
type: "normal",
|
|
3634
3640
|
key: "add-child",
|
|
3635
3641
|
color: "primary",
|
|
3636
|
-
buttonText:
|
|
3637
|
-
onClick: (e) =>
|
|
3642
|
+
buttonText: o("BOM.addChild"),
|
|
3643
|
+
onClick: (e) => L(e)
|
|
3638
3644
|
}, ...Number(e.level) === 1 ? [] : [{
|
|
3639
3645
|
type: "normal",
|
|
3640
3646
|
key: "add-sibling",
|
|
3641
3647
|
color: "primary",
|
|
3642
|
-
buttonText:
|
|
3643
|
-
onClick: (e) =>
|
|
3648
|
+
buttonText: o("BOM.addSibling"),
|
|
3649
|
+
onClick: (e) => re(e)
|
|
3644
3650
|
}, {
|
|
3645
3651
|
type: "normal",
|
|
3646
3652
|
key: "delete",
|
|
3647
3653
|
color: "error",
|
|
3648
|
-
buttonText:
|
|
3649
|
-
confirmText:
|
|
3650
|
-
onClick: (e) =>
|
|
3654
|
+
buttonText: o("Common.delete"),
|
|
3655
|
+
confirmText: o("BOM.deleteConfirm"),
|
|
3656
|
+
onClick: (e) => R(e)
|
|
3651
3657
|
}]],
|
|
3652
3658
|
rowData: e,
|
|
3653
3659
|
hProps: {
|
|
@@ -3655,12 +3661,12 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3655
3661
|
secondary: !0
|
|
3656
3662
|
}
|
|
3657
3663
|
})
|
|
3658
|
-
},
|
|
3664
|
+
}, ae = n(() => Number(e.status) === 2 ? c.value.filter((e) => e.key !== "actions") : c.value), oe = n(() => ae.value.reduce((e, t) => {
|
|
3659
3665
|
let n = "width" in t ? Number(t.width) : 120;
|
|
3660
3666
|
return e + (Number.isFinite(n) ? n : 120);
|
|
3661
|
-
}, 0)),
|
|
3662
|
-
|
|
3663
|
-
},
|
|
3667
|
+
}, 0)), se = (e) => {
|
|
3668
|
+
C(e);
|
|
3669
|
+
}, ce = (e) => {
|
|
3664
3670
|
let t = Math.trunc(Number(e.level));
|
|
3665
3671
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
3666
3672
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
@@ -3668,31 +3674,31 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3668
3674
|
color: Oi[n - 1],
|
|
3669
3675
|
strength: `${Math.min(10 + r * 5, 40)}%`
|
|
3670
3676
|
};
|
|
3671
|
-
},
|
|
3672
|
-
let t =
|
|
3677
|
+
}, le = (e) => {
|
|
3678
|
+
let t = ce(e);
|
|
3673
3679
|
return {
|
|
3674
3680
|
...P(e),
|
|
3675
3681
|
...t ? { style: `--uz-bom-level-color: ${t.color}; --uz-bom-level-strength: ${t.strength}` } : {}
|
|
3676
3682
|
};
|
|
3677
|
-
},
|
|
3683
|
+
}, ue = (t) => {
|
|
3678
3684
|
if (!t.form.display) switch (e.status) {
|
|
3679
3685
|
case 0: return t.form.create && t.form.create.show;
|
|
3680
3686
|
case 1: return t.form.edit && t.form.edit.show;
|
|
3681
3687
|
case 2: return t.form.show;
|
|
3682
3688
|
}
|
|
3683
3689
|
};
|
|
3684
|
-
return
|
|
3685
|
-
let e =
|
|
3686
|
-
|
|
3690
|
+
return j(() => i?.value?.()?.ticket_counts, () => {
|
|
3691
|
+
let e = l();
|
|
3692
|
+
m.value.forEach((t) => {
|
|
3687
3693
|
t.counts = e, ri(Array.isArray(t.children) ? t.children : [], e);
|
|
3688
|
-
}), t("update:value",
|
|
3689
|
-
}, { immediate: !0 }),
|
|
3690
|
-
e !==
|
|
3691
|
-
}),
|
|
3692
|
-
e.value?.length || t("update:value",
|
|
3694
|
+
}), t("update:value", m.value);
|
|
3695
|
+
}, { immediate: !0 }), j(() => e.value, (e) => {
|
|
3696
|
+
e !== m.value && (O(), m.value = te(e), t("update:value", m.value));
|
|
3697
|
+
}), j(m, () => T(), { immediate: !0 }), y(async () => {
|
|
3698
|
+
e.value?.length || t("update:value", m.value);
|
|
3693
3699
|
let n = await Jn("bom_col");
|
|
3694
3700
|
n = tt.parse(n.viewJson), n = bi(n.table);
|
|
3695
|
-
let { tableColumns: r } = await Ei(n), i = r.filter((e) =>
|
|
3701
|
+
let { tableColumns: r } = await Ei(n, !1, e.status, () => {}, a), i = r.filter((e) => ue(e)).map((t) => t.isModules ? t : {
|
|
3696
3702
|
title: t.title,
|
|
3697
3703
|
key: t.key,
|
|
3698
3704
|
width: t.width ?? 120,
|
|
@@ -3707,29 +3713,29 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3707
3713
|
} : void 0
|
|
3708
3714
|
}, { default: () => f(Tr, {
|
|
3709
3715
|
item: t,
|
|
3710
|
-
formValue:
|
|
3716
|
+
formValue: A(n, t),
|
|
3711
3717
|
status: e.status,
|
|
3712
3718
|
itemIndex: r
|
|
3713
3719
|
}) })
|
|
3714
|
-
})
|
|
3715
|
-
|
|
3720
|
+
});
|
|
3721
|
+
c.value = [
|
|
3716
3722
|
N,
|
|
3717
|
-
|
|
3723
|
+
ie,
|
|
3718
3724
|
...i,
|
|
3719
|
-
|
|
3725
|
+
z
|
|
3720
3726
|
];
|
|
3721
|
-
}), r({ validate: async () => (await
|
|
3722
|
-
t:
|
|
3723
|
-
formRef:
|
|
3724
|
-
innerData:
|
|
3725
|
-
tableRef:
|
|
3726
|
-
tableVersion:
|
|
3727
|
-
displayedTableCols:
|
|
3728
|
-
displayedScrollX:
|
|
3729
|
-
innerExpandedRowKeys:
|
|
3730
|
-
getRowKey:
|
|
3731
|
-
getRowProps:
|
|
3732
|
-
handleExpandedRowKeysChange:
|
|
3727
|
+
}), r({ validate: async () => (await s.value?.validate(), m.value) }), v(O), {
|
|
3728
|
+
t: o,
|
|
3729
|
+
formRef: s,
|
|
3730
|
+
innerData: m,
|
|
3731
|
+
tableRef: ne,
|
|
3732
|
+
tableVersion: F,
|
|
3733
|
+
displayedTableCols: ae,
|
|
3734
|
+
displayedScrollX: oe,
|
|
3735
|
+
innerExpandedRowKeys: h,
|
|
3736
|
+
getRowKey: b,
|
|
3737
|
+
getRowProps: le,
|
|
3738
|
+
handleExpandedRowKeysChange: se
|
|
3733
3739
|
};
|
|
3734
3740
|
}
|
|
3735
3741
|
}), Ai = { class: "uz-bom uz-flex-1 uz-w-full" }, ji = { class: "uz-flex uz-flex-col uz-justify-between" }, Mi = { class: "uz-com-title" }, Ni = {
|
|
@@ -3742,7 +3748,7 @@ function Pi(t, n, s, u, d, f) {
|
|
|
3742
3748
|
ref: "formRef",
|
|
3743
3749
|
model: { child: t.innerData }
|
|
3744
3750
|
}, {
|
|
3745
|
-
default:
|
|
3751
|
+
default: N(() => [(x(), r(p, {
|
|
3746
3752
|
ref: "tableRef",
|
|
3747
3753
|
key: t.tableVersion,
|
|
3748
3754
|
columns: t.displayedTableCols,
|
|
@@ -3761,7 +3767,7 @@ function Pi(t, n, s, u, d, f) {
|
|
|
3761
3767
|
"scrollbar-props": { trigger: "none" },
|
|
3762
3768
|
remote: ""
|
|
3763
3769
|
}, {
|
|
3764
|
-
empty:
|
|
3770
|
+
empty: N(() => [E(t.$slots, "empty", {}, () => [c(A(t.t("BOM.empty")), 1)])]),
|
|
3765
3771
|
_: 3
|
|
3766
3772
|
}, 8, [
|
|
3767
3773
|
"columns",
|
|
@@ -3848,7 +3854,7 @@ var Fi = /*#__PURE__*/ Q(ki, [["render", Pi]]), Ii = 46, Li = 8, Ri = 2 * Math.P
|
|
|
3848
3854
|
let t = Number(e.circle);
|
|
3849
3855
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
3850
3856
|
}), s = w(o.value), c;
|
|
3851
|
-
|
|
3857
|
+
j(o, (e) => {
|
|
3852
3858
|
if (c !== void 0 && cancelAnimationFrame(c), typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches || typeof requestAnimationFrame > "u") {
|
|
3853
3859
|
s.value = e;
|
|
3854
3860
|
return;
|
|
@@ -4085,7 +4091,7 @@ function va(e, t, n, r, s, c) {
|
|
|
4085
4091
|
var ya = /*#__PURE__*/ Q(ea, [["render", va]]), ba = d({
|
|
4086
4092
|
name: "UzCamera",
|
|
4087
4093
|
components: {
|
|
4088
|
-
NButton:
|
|
4094
|
+
NButton: I,
|
|
4089
4095
|
NModal: Ce
|
|
4090
4096
|
},
|
|
4091
4097
|
props: {
|
|
@@ -4164,7 +4170,7 @@ var ya = /*#__PURE__*/ Q(ea, [["render", va]]), ba = d({
|
|
|
4164
4170
|
e.mode === "video" && g();
|
|
4165
4171
|
}), v(() => {
|
|
4166
4172
|
f();
|
|
4167
|
-
}),
|
|
4173
|
+
}), j([() => e.width, () => e.width], () => {
|
|
4168
4174
|
e.mode === "video" && (f(), g());
|
|
4169
4175
|
}), {
|
|
4170
4176
|
t: n,
|
|
@@ -4188,7 +4194,7 @@ function Ta(t, n, s, l, u, d) {
|
|
|
4188
4194
|
loading: t.loading,
|
|
4189
4195
|
onClick: t.doScan
|
|
4190
4196
|
}, {
|
|
4191
|
-
default:
|
|
4197
|
+
default: N(() => [c(A(t.t("Common.scan")), 1)]),
|
|
4192
4198
|
_: 1
|
|
4193
4199
|
}, 8, ["loading", "onClick"])) : i("", !0),
|
|
4194
4200
|
t.mode === "button" ? (x(), r(p, {
|
|
@@ -4201,7 +4207,7 @@ function Ta(t, n, s, l, u, d) {
|
|
|
4201
4207
|
"mask-closable": !1,
|
|
4202
4208
|
"on-after-leave": t.closeAll
|
|
4203
4209
|
}, {
|
|
4204
|
-
default:
|
|
4210
|
+
default: N(() => [o("div", {
|
|
4205
4211
|
class: "uz-scan-canvas-main",
|
|
4206
4212
|
style: _({
|
|
4207
4213
|
width: `${t.width}px`,
|
|
@@ -4237,8 +4243,8 @@ var Ea = /*#__PURE__*/ Q(ba, [["render", Ta]]), Da = /* @__PURE__ */ new WeakMap
|
|
|
4237
4243
|
name: "UzSearchBar",
|
|
4238
4244
|
components: {
|
|
4239
4245
|
NIcon: V,
|
|
4240
|
-
NButton:
|
|
4241
|
-
NButtonGroup:
|
|
4246
|
+
NButton: I,
|
|
4247
|
+
NButtonGroup: L,
|
|
4242
4248
|
NGrid: he,
|
|
4243
4249
|
NGridItem: ge,
|
|
4244
4250
|
NInputGroup: be,
|
|
@@ -4369,7 +4375,7 @@ var Ea = /*#__PURE__*/ Q(ba, [["render", Ta]]), Da = /* @__PURE__ */ new WeakMap
|
|
|
4369
4375
|
}
|
|
4370
4376
|
v(!0);
|
|
4371
4377
|
};
|
|
4372
|
-
return
|
|
4378
|
+
return j(() => e.data, (e) => {
|
|
4373
4379
|
C(e);
|
|
4374
4380
|
}), {
|
|
4375
4381
|
t: n,
|
|
@@ -4415,46 +4421,46 @@ function Fa(n, s, u, d, f, p) {
|
|
|
4415
4421
|
let m = D("NButton"), h = D("NButtonGroup"), _ = D("NGridItem"), v = D("NInputGroupLabel"), y = D("NPopover"), b = D("UzFormItem"), S = D("NInputGroup"), C = D("NGrid"), w = D("UzIcon"), k = D("NIcon"), ee = O("media");
|
|
4416
4422
|
return x(), a("div", {
|
|
4417
4423
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
4418
|
-
onKeyup: s[1] ||=
|
|
4424
|
+
onKeyup: s[1] ||= ne((e) => n.doSearch(!1), ["enter"])
|
|
4419
4425
|
}, [o("div", ka, [n.enableHeader ? (x(), a("div", Aa, [
|
|
4420
4426
|
E(n.$slots, "header"),
|
|
4421
4427
|
n.tabList && n.tabList.length > 0 ? (x(), a("div", ja, [l(h, null, {
|
|
4422
|
-
default:
|
|
4428
|
+
default: N(() => [(x(!0), a(e, null, T(n.tabList, (e) => (x(), r(m, {
|
|
4423
4429
|
key: e.value,
|
|
4424
4430
|
type: n.tabButtonType(e),
|
|
4425
4431
|
quaternary: "",
|
|
4426
4432
|
onClick: (t) => n.tabItemChange(e.value)
|
|
4427
4433
|
}, {
|
|
4428
|
-
default:
|
|
4434
|
+
default: N(() => [c(A(e.label), 1)]),
|
|
4429
4435
|
_: 2
|
|
4430
4436
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
4431
4437
|
_: 1
|
|
4432
4438
|
})])) : i("", !0),
|
|
4433
|
-
|
|
4439
|
+
P((x(), a("div", Ma, [l(C, {
|
|
4434
4440
|
"x-gap": "8",
|
|
4435
4441
|
"y-gap": "8",
|
|
4436
4442
|
cols: n.cols,
|
|
4437
4443
|
"collapsed-rows": 1,
|
|
4438
4444
|
collapsed: !0
|
|
4439
4445
|
}, {
|
|
4440
|
-
default:
|
|
4446
|
+
default: N(() => [n.offset > -1 ? (x(), r(_, {
|
|
4441
4447
|
key: 0,
|
|
4442
4448
|
offset: n.offset
|
|
4443
4449
|
}, null, 8, ["offset"])) : i("", !0), n.collapsed ? (x(!0), a(e, { key: 1 }, T(n.itemData, (e, t) => (x(), r(_, {
|
|
4444
4450
|
key: `${t}_${Date.now()}`,
|
|
4445
4451
|
span: e.search.show ? e.search.span === 1 ? n.gridSpan : e.search.span || n.gridSpan : 0
|
|
4446
4452
|
}, {
|
|
4447
|
-
default:
|
|
4448
|
-
default:
|
|
4453
|
+
default: N(() => [l(S, null, {
|
|
4454
|
+
default: N(() => [l(y, {
|
|
4449
4455
|
trigger: "hover",
|
|
4450
4456
|
placement: "top-start",
|
|
4451
4457
|
overlap: ""
|
|
4452
4458
|
}, {
|
|
4453
|
-
trigger:
|
|
4454
|
-
default:
|
|
4459
|
+
trigger: N(() => [l(v, { class: "uz-group-label" }, {
|
|
4460
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4455
4461
|
_: 2
|
|
4456
4462
|
}, 1024)]),
|
|
4457
|
-
default:
|
|
4463
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4458
4464
|
_: 2
|
|
4459
4465
|
}, 1024), l(b, {
|
|
4460
4466
|
item: e,
|
|
@@ -4473,8 +4479,8 @@ function Fa(n, s, u, d, f, p) {
|
|
|
4473
4479
|
secondary: "",
|
|
4474
4480
|
onClick: n.showMore
|
|
4475
4481
|
}, {
|
|
4476
|
-
icon:
|
|
4477
|
-
default:
|
|
4482
|
+
icon: N(() => [l(k, { class: g(["uz-search-more", n.collapsed ? void 0 : "uz-search-rotate"]) }, {
|
|
4483
|
+
default: N(() => [l(w, { icon: "ArrowDown" })]),
|
|
4478
4484
|
_: 1
|
|
4479
4485
|
}, 8, ["class"])]),
|
|
4480
4486
|
_: 1
|
|
@@ -4486,57 +4492,57 @@ function Fa(n, s, u, d, f, p) {
|
|
|
4486
4492
|
"show-arrow": !1,
|
|
4487
4493
|
style: { padding: "0" }
|
|
4488
4494
|
}, {
|
|
4489
|
-
trigger:
|
|
4495
|
+
trigger: N(() => [l(m, {
|
|
4490
4496
|
loading: n.loading,
|
|
4491
4497
|
secondary: "",
|
|
4492
4498
|
onClick: s[0] ||= (e) => n.doSearch(!1)
|
|
4493
4499
|
}, {
|
|
4494
|
-
icon:
|
|
4500
|
+
icon: N(() => [l(k, {
|
|
4495
4501
|
size: "18",
|
|
4496
4502
|
color: "#0086ff"
|
|
4497
4503
|
}, {
|
|
4498
|
-
default:
|
|
4504
|
+
default: N(() => [l(w, { icon: "Search" })]),
|
|
4499
4505
|
_: 1
|
|
4500
4506
|
})]),
|
|
4501
|
-
default:
|
|
4507
|
+
default: N(() => [c(" " + A(n.t("Common.search")), 1)]),
|
|
4502
4508
|
_: 1
|
|
4503
4509
|
}, 8, ["loading"])]),
|
|
4504
|
-
default:
|
|
4510
|
+
default: N(() => [l(m, {
|
|
4505
4511
|
loading: n.loading,
|
|
4506
4512
|
secondary: "",
|
|
4507
4513
|
onClick: n.clearAll
|
|
4508
4514
|
}, {
|
|
4509
|
-
icon:
|
|
4510
|
-
default:
|
|
4515
|
+
icon: N(() => [l(k, null, {
|
|
4516
|
+
default: N(() => [l(w, { icon: "Refresh" })]),
|
|
4511
4517
|
_: 1
|
|
4512
4518
|
})]),
|
|
4513
|
-
default:
|
|
4519
|
+
default: N(() => [c(" " + A(n.t("Common.reset")), 1)]),
|
|
4514
4520
|
_: 1
|
|
4515
4521
|
}, 8, ["loading", "onClick"])]),
|
|
4516
4522
|
_: 1
|
|
4517
4523
|
})) : i("", !0),
|
|
4518
4524
|
E(n.$slots, "action")
|
|
4519
4525
|
])) : i("", !0)]), l(t, { name: "uz-search-fields" }, {
|
|
4520
|
-
default:
|
|
4526
|
+
default: N(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div", Pa, [l(C, {
|
|
4521
4527
|
"x-gap": "8",
|
|
4522
4528
|
"y-gap": "8",
|
|
4523
4529
|
cols: 4
|
|
4524
4530
|
}, {
|
|
4525
|
-
default:
|
|
4531
|
+
default: N(() => [(x(!0), a(e, null, T(n.itemData, (e, t) => (x(), r(_, {
|
|
4526
4532
|
key: t,
|
|
4527
4533
|
span: e.search.show ? n.gridSpan / 2 : 0
|
|
4528
4534
|
}, {
|
|
4529
|
-
default:
|
|
4530
|
-
default:
|
|
4535
|
+
default: N(() => [l(S, null, {
|
|
4536
|
+
default: N(() => [l(y, {
|
|
4531
4537
|
trigger: "hover",
|
|
4532
4538
|
placement: "top-start",
|
|
4533
4539
|
overlap: ""
|
|
4534
4540
|
}, {
|
|
4535
|
-
trigger:
|
|
4536
|
-
default:
|
|
4541
|
+
trigger: N(() => [l(v, { class: "uz-group-label" }, {
|
|
4542
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4537
4543
|
_: 2
|
|
4538
4544
|
}, 1024)]),
|
|
4539
|
-
default:
|
|
4545
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4540
4546
|
_: 2
|
|
4541
4547
|
}, 1024), l(b, {
|
|
4542
4548
|
item: e,
|
|
@@ -4556,7 +4562,7 @@ var Ia = /*#__PURE__*/ Q(Oa, [["render", Fa]]), La = d({
|
|
|
4556
4562
|
name: "UzSearchMobileBar",
|
|
4557
4563
|
components: {
|
|
4558
4564
|
NIcon: V,
|
|
4559
|
-
NButton:
|
|
4565
|
+
NButton: I,
|
|
4560
4566
|
NDrawer: le,
|
|
4561
4567
|
NDrawerContent: ue,
|
|
4562
4568
|
NGrid: he,
|
|
@@ -4631,7 +4637,7 @@ var Ia = /*#__PURE__*/ Q(Oa, [["render", Fa]]), La = d({
|
|
|
4631
4637
|
}
|
|
4632
4638
|
l(!0);
|
|
4633
4639
|
};
|
|
4634
|
-
return
|
|
4640
|
+
return j(() => e.data, (e) => {
|
|
4635
4641
|
f(e);
|
|
4636
4642
|
}), {
|
|
4637
4643
|
t: n,
|
|
@@ -4650,11 +4656,11 @@ function Va(t, n, s, u, d, f) {
|
|
|
4650
4656
|
secondary: "",
|
|
4651
4657
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
4652
4658
|
}, {
|
|
4653
|
-
icon:
|
|
4654
|
-
default:
|
|
4659
|
+
icon: N(() => [l(m, { size: "18" }, {
|
|
4660
|
+
default: N(() => [l(p, { icon: "Search" })]),
|
|
4655
4661
|
_: 1
|
|
4656
4662
|
})]),
|
|
4657
|
-
default:
|
|
4663
|
+
default: N(() => [c(" " + A(t.t("Common.search")), 1)]),
|
|
4658
4664
|
_: 1
|
|
4659
4665
|
})) : i("", !0), E(t.$slots, "action")])]), l(C, {
|
|
4660
4666
|
show: t.drawer,
|
|
@@ -4666,21 +4672,21 @@ function Va(t, n, s, u, d, f) {
|
|
|
4666
4672
|
"auto-focus": !1,
|
|
4667
4673
|
"close-on-esc": !1
|
|
4668
4674
|
}, {
|
|
4669
|
-
default:
|
|
4675
|
+
default: N(() => [l(S, {
|
|
4670
4676
|
title: t.t("Common.search"),
|
|
4671
4677
|
closable: ""
|
|
4672
4678
|
}, {
|
|
4673
|
-
footer:
|
|
4679
|
+
footer: N(() => [o("div", Ba, [l(h, {
|
|
4674
4680
|
secondary: "",
|
|
4675
4681
|
loading: t.loading,
|
|
4676
4682
|
onClick: t.clearAll,
|
|
4677
4683
|
class: "uz-flex-1"
|
|
4678
4684
|
}, {
|
|
4679
|
-
icon:
|
|
4680
|
-
default:
|
|
4685
|
+
icon: N(() => [l(m, null, {
|
|
4686
|
+
default: N(() => [l(p, { icon: "Refresh" })]),
|
|
4681
4687
|
_: 1
|
|
4682
4688
|
})]),
|
|
4683
|
-
default:
|
|
4689
|
+
default: N(() => [c(" " + A(t.t("Common.reset")), 1)]),
|
|
4684
4690
|
_: 1
|
|
4685
4691
|
}, 8, ["loading", "onClick"]), t.itemData && Object.keys(t.itemData).length > 0 ? (x(), r(h, {
|
|
4686
4692
|
key: 0,
|
|
@@ -4689,25 +4695,25 @@ function Va(t, n, s, u, d, f) {
|
|
|
4689
4695
|
class: "uz-flex-1",
|
|
4690
4696
|
onClick: n[1] ||= (e) => t.doSearch(!1)
|
|
4691
4697
|
}, {
|
|
4692
|
-
icon:
|
|
4693
|
-
default:
|
|
4698
|
+
icon: N(() => [l(m, { size: "18" }, {
|
|
4699
|
+
default: N(() => [l(p, { icon: "Search" })]),
|
|
4694
4700
|
_: 1
|
|
4695
4701
|
})]),
|
|
4696
|
-
default:
|
|
4702
|
+
default: N(() => [c(" " + A(t.t("Common.search")), 1)]),
|
|
4697
4703
|
_: 1
|
|
4698
4704
|
}, 8, ["loading"])) : i("", !0)])]),
|
|
4699
|
-
default:
|
|
4705
|
+
default: N(() => [l(b, {
|
|
4700
4706
|
"x-gap": "8",
|
|
4701
4707
|
"y-gap": "8",
|
|
4702
4708
|
cols: "1"
|
|
4703
4709
|
}, {
|
|
4704
|
-
default:
|
|
4710
|
+
default: N(() => [(x(!0), a(e, null, T(t.itemData, (e, n) => (x(), r(y, {
|
|
4705
4711
|
key: `${n}_${Date.now()}`,
|
|
4706
4712
|
span: +!!e.search.show
|
|
4707
4713
|
}, {
|
|
4708
|
-
default:
|
|
4709
|
-
default:
|
|
4710
|
-
default:
|
|
4714
|
+
default: N(() => [l(v, null, {
|
|
4715
|
+
default: N(() => [l(g, { class: "uz-group-label" }, {
|
|
4716
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4711
4717
|
_: 2
|
|
4712
4718
|
}, 1024), l(_, {
|
|
4713
4719
|
item: e,
|
|
@@ -4728,7 +4734,7 @@ function Va(t, n, s, u, d, f) {
|
|
|
4728
4734
|
var Ha = /*#__PURE__*/ Q(La, [["render", Va]]), Ua = d({
|
|
4729
4735
|
name: "UzSpin",
|
|
4730
4736
|
components: {
|
|
4731
|
-
NButton:
|
|
4737
|
+
NButton: I,
|
|
4732
4738
|
NSpin: Me,
|
|
4733
4739
|
NEllipsis: fe
|
|
4734
4740
|
},
|
|
@@ -4760,7 +4766,7 @@ var Ha = /*#__PURE__*/ Q(La, [["render", Va]]), Ua = d({
|
|
|
4760
4766
|
};
|
|
4761
4767
|
return b(() => {
|
|
4762
4768
|
clearInterval(r.value);
|
|
4763
|
-
}),
|
|
4769
|
+
}), j(() => e.status, (e) => {
|
|
4764
4770
|
e === 1 && s();
|
|
4765
4771
|
}), {
|
|
4766
4772
|
t: n,
|
|
@@ -4775,28 +4781,28 @@ var Ha = /*#__PURE__*/ Q(La, [["render", Va]]), Ua = d({
|
|
|
4775
4781
|
function Wa(e, t, n, i, a, s) {
|
|
4776
4782
|
let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
|
|
4777
4783
|
return x(), r(f, { show: e.value }, {
|
|
4778
|
-
description:
|
|
4784
|
+
description: N(() => [
|
|
4779
4785
|
l(u, {
|
|
4780
4786
|
"expand-trigger": "click",
|
|
4781
4787
|
"line-clamp": "3",
|
|
4782
4788
|
tooltip: !1
|
|
4783
4789
|
}, {
|
|
4784
|
-
default:
|
|
4790
|
+
default: N(() => [c(A(e.status === 0 ? e.t("Spin.processing") : e.message), 1)]),
|
|
4785
4791
|
_: 1
|
|
4786
4792
|
}),
|
|
4787
4793
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
4788
|
-
|
|
4794
|
+
P(l(d, {
|
|
4789
4795
|
type: "warning",
|
|
4790
4796
|
block: "",
|
|
4791
4797
|
secondary: "",
|
|
4792
4798
|
onMouseover: e.stopCountdown,
|
|
4793
4799
|
onClick: e.handleClose
|
|
4794
4800
|
}, {
|
|
4795
|
-
default:
|
|
4801
|
+
default: N(() => [c(A(e.t("Spin.closeCountdown", { seconds: e.counts })), 1)]),
|
|
4796
4802
|
_: 1
|
|
4797
|
-
}, 8, ["onMouseover", "onClick"]), [[
|
|
4803
|
+
}, 8, ["onMouseover", "onClick"]), [[te, e.status === 1]])
|
|
4798
4804
|
]),
|
|
4799
|
-
default:
|
|
4805
|
+
default: N(() => [E(e.$slots, "default")]),
|
|
4800
4806
|
_: 3
|
|
4801
4807
|
}, 8, ["show"]);
|
|
4802
4808
|
}
|
|
@@ -4933,9 +4939,9 @@ var eo = d({
|
|
|
4933
4939
|
components: {
|
|
4934
4940
|
NDataTable: oe,
|
|
4935
4941
|
NPopover: Ee,
|
|
4936
|
-
NButton:
|
|
4942
|
+
NButton: I,
|
|
4937
4943
|
NIcon: V,
|
|
4938
|
-
NCheckbox:
|
|
4944
|
+
NCheckbox: R,
|
|
4939
4945
|
NSpin: Me,
|
|
4940
4946
|
VueDraggable: et,
|
|
4941
4947
|
UzSpin: Ga,
|
|
@@ -5075,13 +5081,13 @@ var eo = d({
|
|
|
5075
5081
|
pageMax: 1,
|
|
5076
5082
|
pageSize: e.pageSize || 30
|
|
5077
5083
|
}
|
|
5078
|
-
}), A = w([]), ee = w(void 0),
|
|
5084
|
+
}), A = w([]), ee = w(void 0), te = w(void 0), M = w([]), N = w([]), P = w([]), ne = w([]), F = w({
|
|
5079
5085
|
fetch: null,
|
|
5080
5086
|
fetchFn: "",
|
|
5081
5087
|
when_drawer_open: "",
|
|
5082
5088
|
when_before_save: "",
|
|
5083
5089
|
when_after_save: ""
|
|
5084
|
-
}),
|
|
5090
|
+
}), L = w(wi()), re = w(""), R = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, n) => {
|
|
5085
5091
|
t("update:rowKeys", {
|
|
5086
5092
|
keys: e,
|
|
5087
5093
|
rows: W(n)
|
|
@@ -5100,7 +5106,7 @@ var eo = d({
|
|
|
5100
5106
|
}, le = (e) => {
|
|
5101
5107
|
O.value = e;
|
|
5102
5108
|
}, ue = n(() => {
|
|
5103
|
-
let t = e.summary ||
|
|
5109
|
+
let t = e.summary || L.value.summary;
|
|
5104
5110
|
if (t && typeof t == "string") {
|
|
5105
5111
|
let e = Function("pageData", "h", t);
|
|
5106
5112
|
return (t) => e(t, f);
|
|
@@ -5112,8 +5118,8 @@ var eo = d({
|
|
|
5112
5118
|
...t,
|
|
5113
5119
|
tableId: n
|
|
5114
5120
|
});
|
|
5115
|
-
else if (
|
|
5116
|
-
let e =
|
|
5121
|
+
else if (F.value.fetchFn) {
|
|
5122
|
+
let e = F.value.fetchFn;
|
|
5117
5123
|
r = Function("POST", "queryData", e)(Z, { ...t });
|
|
5118
5124
|
} else r = Xn({
|
|
5119
5125
|
...t,
|
|
@@ -5126,8 +5132,8 @@ var eo = d({
|
|
|
5126
5132
|
id: t.id,
|
|
5127
5133
|
tableId: n
|
|
5128
5134
|
});
|
|
5129
|
-
else if (
|
|
5130
|
-
let e =
|
|
5135
|
+
else if (F.value.fetchFn) {
|
|
5136
|
+
let e = F.value.fetchFn;
|
|
5131
5137
|
r = Function("POST", "queryData", e)(Z, { id: t.id });
|
|
5132
5138
|
} else r = Xn({
|
|
5133
5139
|
id: t.id,
|
|
@@ -5138,14 +5144,14 @@ var eo = d({
|
|
|
5138
5144
|
let r = e.id || o.params.id;
|
|
5139
5145
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
5140
5146
|
let i = W(k.value);
|
|
5141
|
-
n && delete i.orderby,
|
|
5147
|
+
n && delete i.orderby, F.value.fetch ? tr([F.value.fetch], "", i).then((e) => {
|
|
5142
5148
|
let n = At(e);
|
|
5143
|
-
k.value.query = n.query, E.value = n.records, _.value = !1, v.value = !0, t("on-update:value", i), t("update:loading", !1),
|
|
5149
|
+
k.value.query = n.query, E.value = n.records, _.value = !1, v.value = !0, t("on-update:value", i), t("update:loading", !1), L.value.cache && r && q(`tables_${r}`, k.value);
|
|
5144
5150
|
}).catch(() => {
|
|
5145
5151
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5146
5152
|
}) : de(i).then((e) => {
|
|
5147
5153
|
let n = At(e);
|
|
5148
|
-
k.value.query = n.query, E.value = n.records, _.value = !1, v.value = !0, t("on-update:value", i), t("update:loading", !1),
|
|
5154
|
+
k.value.query = n.query, E.value = n.records, _.value = !1, v.value = !0, t("on-update:value", i), t("update:loading", !1), L.value.cache && r && q(`tables_${r}`, k.value);
|
|
5149
5155
|
}).catch(() => {
|
|
5150
5156
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5151
5157
|
});
|
|
@@ -5166,7 +5172,7 @@ var eo = d({
|
|
|
5166
5172
|
form: e,
|
|
5167
5173
|
data: {}
|
|
5168
5174
|
};
|
|
5169
|
-
},
|
|
5175
|
+
}, L.value, F.value, 0, Me);
|
|
5170
5176
|
}, _e = (e) => {
|
|
5171
5177
|
e.show = !e.show, je();
|
|
5172
5178
|
}, ve = (e) => {
|
|
@@ -5189,8 +5195,8 @@ var eo = d({
|
|
|
5189
5195
|
ellipsis: !0,
|
|
5190
5196
|
width: 180,
|
|
5191
5197
|
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => jt(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5192
|
-
}], be = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !
|
|
5193
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Ti(
|
|
5198
|
+
}], be = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !M.value || M.value && M.value[0] === "*" ? !1 : !M.value?.includes(t), xe = async (e) => {
|
|
5199
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Ti(N.value, e, () => m.value?.getFormValues());
|
|
5194
5200
|
return x.value = t, {
|
|
5195
5201
|
form: t,
|
|
5196
5202
|
fillingDefaultValue: n,
|
|
@@ -5212,7 +5218,7 @@ var eo = d({
|
|
|
5212
5218
|
} catch (e) {
|
|
5213
5219
|
K(e);
|
|
5214
5220
|
}
|
|
5215
|
-
let o =
|
|
5221
|
+
let o = F.value.when_drawer_open;
|
|
5216
5222
|
if (o && typeof o == "string") try {
|
|
5217
5223
|
a = await Function("data", "POST", o)(a, Z).catch((e) => {
|
|
5218
5224
|
K(e);
|
|
@@ -5264,12 +5270,12 @@ var eo = d({
|
|
|
5264
5270
|
else if (n.type !== "group" && n.action === "detailInside") {
|
|
5265
5271
|
let t = W(n.onClick);
|
|
5266
5272
|
n.onClick = (n) => {
|
|
5267
|
-
m.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t),
|
|
5273
|
+
m.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t), L.value, F.value, 2, Me);
|
|
5268
5274
|
};
|
|
5269
5275
|
} else if (n.type !== "group" && n.action === "editInside") {
|
|
5270
5276
|
let t = W(n.onClick);
|
|
5271
5277
|
n.onClick = (n) => {
|
|
5272
|
-
m.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t),
|
|
5278
|
+
m.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t), L.value, F.value, 1, Me);
|
|
5273
5279
|
};
|
|
5274
5280
|
} else if (n.type !== "group" && n.action === "deleteInside") {
|
|
5275
5281
|
let t = W(n.onClick);
|
|
@@ -5351,9 +5357,9 @@ var eo = d({
|
|
|
5351
5357
|
};
|
|
5352
5358
|
}
|
|
5353
5359
|
}, Te = async () => {
|
|
5354
|
-
|
|
5355
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Ei(
|
|
5356
|
-
!l.value &&
|
|
5360
|
+
R.value = !1, gi();
|
|
5361
|
+
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Ei(N.value, e.child, 0, () => ({}), ae);
|
|
5362
|
+
!l.value && L.value.index && n.unshift({
|
|
5357
5363
|
title: "#",
|
|
5358
5364
|
key: "index",
|
|
5359
5365
|
align: "center",
|
|
@@ -5368,18 +5374,18 @@ var eo = d({
|
|
|
5368
5374
|
return (e - 1) * n + (t + 1);
|
|
5369
5375
|
} });
|
|
5370
5376
|
}
|
|
5371
|
-
}), !l.value && (e.selection ||
|
|
5377
|
+
}), !l.value && (e.selection || L.value.selection !== 0) && n.unshift({
|
|
5372
5378
|
type: "selection",
|
|
5373
5379
|
fixed: "left",
|
|
5374
5380
|
width: 60,
|
|
5375
5381
|
hide: !0,
|
|
5376
5382
|
show: !0,
|
|
5377
|
-
multiple: e.selection === 2 ||
|
|
5383
|
+
multiple: e.selection === 2 || L.value.selection === 2,
|
|
5378
5384
|
options: ["all", "none"]
|
|
5379
5385
|
});
|
|
5380
5386
|
let c = e.id || o.params.id;
|
|
5381
|
-
if (!l.value &&
|
|
5382
|
-
let e = W(
|
|
5387
|
+
if (!l.value && L.value.commonTime && n.push(...ye()), e.enableAction === !0 && P.value && P.value.length > 0) {
|
|
5388
|
+
let e = W(P.value);
|
|
5383
5389
|
for (let t of e) t.type === "group" ? t.children.forEach((e) => {
|
|
5384
5390
|
we(e, i);
|
|
5385
5391
|
}) : we(t, i);
|
|
@@ -5392,7 +5398,7 @@ var eo = d({
|
|
|
5392
5398
|
checked: !0,
|
|
5393
5399
|
show: !0,
|
|
5394
5400
|
hide: !0,
|
|
5395
|
-
width: Number(typeof
|
|
5401
|
+
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
5396
5402
|
render(t) {
|
|
5397
5403
|
return ur({
|
|
5398
5404
|
buttons: e,
|
|
@@ -5427,12 +5433,12 @@ var eo = d({
|
|
|
5427
5433
|
return !1;
|
|
5428
5434
|
}
|
|
5429
5435
|
} : () => !0,
|
|
5430
|
-
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(
|
|
5436
|
+
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(I, { onClick: ze }, { default: () => s("Common.expand") }), f(I, { onClick: Be }, { default: () => s("Common.contract") })]),
|
|
5431
5437
|
renderExpand: (e) => f(Ja, {
|
|
5432
5438
|
data: a,
|
|
5433
5439
|
value: e
|
|
5434
5440
|
})
|
|
5435
|
-
}),
|
|
5441
|
+
}), L.value.asynchronous ? t("update:asynchronous", L.value.asynchronous) : t("update:asynchronous", null);
|
|
5436
5442
|
let d = 0;
|
|
5437
5443
|
u.forEach((e) => {
|
|
5438
5444
|
e.show && (d += Number(e.width || 140));
|
|
@@ -5440,7 +5446,7 @@ var eo = d({
|
|
|
5440
5446
|
}, Ee = (e) => typeof e == "number" ? `${e}px` : e, De = () => {
|
|
5441
5447
|
if (e.height) {
|
|
5442
5448
|
let t = Ee(e.height);
|
|
5443
|
-
ee.value = t,
|
|
5449
|
+
ee.value = t, te.value = t;
|
|
5444
5450
|
}
|
|
5445
5451
|
}, Oe = (t) => {
|
|
5446
5452
|
let n = e.id || o.params.id;
|
|
@@ -5484,15 +5490,15 @@ var eo = d({
|
|
|
5484
5490
|
tableId: a,
|
|
5485
5491
|
...t
|
|
5486
5492
|
}), i.then((e) => {
|
|
5487
|
-
if (
|
|
5488
|
-
let r =
|
|
5493
|
+
if (F.value.when_after_save) try {
|
|
5494
|
+
let r = F.value.when_after_save;
|
|
5489
5495
|
Function("data", "POST", "res", r)(t, Z, e).then(() => {
|
|
5490
5496
|
B(), n();
|
|
5491
5497
|
}).catch(() => {
|
|
5492
|
-
|
|
5498
|
+
re.value = s("Notice.network"), R.value = !0;
|
|
5493
5499
|
});
|
|
5494
5500
|
} catch {
|
|
5495
|
-
|
|
5501
|
+
re.value = s("Notice.network"), R.value = !0;
|
|
5496
5502
|
return;
|
|
5497
5503
|
}
|
|
5498
5504
|
else B(), n();
|
|
@@ -5500,20 +5506,20 @@ var eo = d({
|
|
|
5500
5506
|
r(e);
|
|
5501
5507
|
});
|
|
5502
5508
|
}, Ne = () => {
|
|
5503
|
-
b.value = "",
|
|
5509
|
+
b.value = "", N.value = [], P.value = [], ne.value = [], F.value = {
|
|
5504
5510
|
fetch: null,
|
|
5505
5511
|
fetchFn: "",
|
|
5506
5512
|
when_drawer_open: "",
|
|
5507
5513
|
when_before_save: "",
|
|
5508
5514
|
when_after_save: ""
|
|
5509
|
-
},
|
|
5515
|
+
}, L.value = wi();
|
|
5510
5516
|
}, Pe = (t) => {
|
|
5511
5517
|
let n = tt.parse(t.viewJson);
|
|
5512
|
-
b.value = t.tableTitle,
|
|
5518
|
+
b.value = t.tableTitle, N.value = bi(n.table), P.value = vr(e.actions || n.action);
|
|
5513
5519
|
let r = vr(n.suffix || []);
|
|
5514
|
-
|
|
5520
|
+
ne.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), F.value = Si(n.trigger);
|
|
5515
5521
|
let i = wi(e.options ?? n.option);
|
|
5516
|
-
t.tableTitle && i.title && Mt(t.tableTitle),
|
|
5522
|
+
t.tableTitle && i.title && Mt(t.tableTitle), L.value = i;
|
|
5517
5523
|
}, Fe = async () => {
|
|
5518
5524
|
v.value = !1, Ne();
|
|
5519
5525
|
let t = e.id || o.params.id;
|
|
@@ -5525,15 +5531,15 @@ var eo = d({
|
|
|
5525
5531
|
pageSize: e.pageSize || 30
|
|
5526
5532
|
}
|
|
5527
5533
|
}, E.value = [], e.ruleFetch) try {
|
|
5528
|
-
|
|
5534
|
+
M.value = await e.ruleFetch(t);
|
|
5529
5535
|
} catch {
|
|
5530
|
-
|
|
5536
|
+
re.value = s("Notice.network"), R.value = !0;
|
|
5531
5537
|
return;
|
|
5532
5538
|
}
|
|
5533
|
-
De(), e.columns ? (
|
|
5539
|
+
De(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], ne.value = e.suffixes || [], L.value = wi(e.options), await Te()) : await vi(t).then(async (e) => {
|
|
5534
5540
|
Pe(e), await Te();
|
|
5535
5541
|
}).catch((e) => {
|
|
5536
|
-
|
|
5542
|
+
re.value = e?.message || s("Notice.network"), R.value = !0;
|
|
5537
5543
|
});
|
|
5538
5544
|
}, Ie = (e) => {
|
|
5539
5545
|
if (e.type !== "group" && e.optionsType) {
|
|
@@ -5592,19 +5598,19 @@ var eo = d({
|
|
|
5592
5598
|
right: 0
|
|
5593
5599
|
});
|
|
5594
5600
|
});
|
|
5595
|
-
}),
|
|
5601
|
+
}), j(() => e.height, () => {
|
|
5596
5602
|
De();
|
|
5597
|
-
}),
|
|
5603
|
+
}), j([() => o.params.id, () => e.id], async () => {
|
|
5598
5604
|
kt(), await Fe();
|
|
5599
|
-
}),
|
|
5605
|
+
}), j(() => e.defaultCheckedRowKeys, (e) => {
|
|
5600
5606
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
5601
5607
|
ie.value = t, z.value = n;
|
|
5602
5608
|
}, { deep: !0 }), {
|
|
5603
5609
|
loading: _,
|
|
5604
5610
|
minH: ee,
|
|
5605
|
-
maxH:
|
|
5611
|
+
maxH: te,
|
|
5606
5612
|
drawerRef: m,
|
|
5607
|
-
tableOption:
|
|
5613
|
+
tableOption: L,
|
|
5608
5614
|
tableCols: T,
|
|
5609
5615
|
tableData: E,
|
|
5610
5616
|
tableQueries: k,
|
|
@@ -5613,10 +5619,10 @@ var eo = d({
|
|
|
5613
5619
|
isSlotHeader: g,
|
|
5614
5620
|
title: b,
|
|
5615
5621
|
dynamicLoading: v,
|
|
5616
|
-
spinMsg:
|
|
5622
|
+
spinMsg: re,
|
|
5617
5623
|
tableScrollX: D,
|
|
5618
|
-
suffixes:
|
|
5619
|
-
spinError:
|
|
5624
|
+
suffixes: ne,
|
|
5625
|
+
spinError: R,
|
|
5620
5626
|
isMobile: l,
|
|
5621
5627
|
mRef: u,
|
|
5622
5628
|
checkRowKeys: ie,
|
|
@@ -5654,17 +5660,17 @@ var eo = d({
|
|
|
5654
5660
|
class: "uz-transform-fade-in"
|
|
5655
5661
|
}, io = { class: "uz-com-title" }, ao = ["data-index"];
|
|
5656
5662
|
function oo(t, n, u, d, f, p) {
|
|
5657
|
-
let m = D("SkeletonLoading"), h = D("NButton"), v = D("UzIcon"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("NCheckbox"), O = D("VueDraggable"), k = D("NPopover"), ee = D("UzTableFile"),
|
|
5663
|
+
let m = D("SkeletonLoading"), h = D("NButton"), v = D("UzIcon"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("NCheckbox"), O = D("VueDraggable"), k = D("NPopover"), ee = D("UzTableFile"), j = D("UzSearchBar"), M = D("NDataTable"), ne = D("NSpin"), F = D("UzTableDrawer");
|
|
5658
5664
|
return x(), a("div", {
|
|
5659
5665
|
class: "uz-table",
|
|
5660
5666
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
5661
5667
|
}, [
|
|
5662
|
-
|
|
5663
|
-
|
|
5668
|
+
P(l(m, null, null, 512), [[te, !t.dynamicLoading]]),
|
|
5669
|
+
P(l(ne, {
|
|
5664
5670
|
show: t.spinError,
|
|
5665
5671
|
class: "uz-table-n-spin"
|
|
5666
5672
|
}, {
|
|
5667
|
-
description:
|
|
5673
|
+
description: N(() => [
|
|
5668
5674
|
o("div", null, A(t.spinMsg), 1),
|
|
5669
5675
|
n[1] ||= o("div", { class: "uz-br" }, null, -1),
|
|
5670
5676
|
l(h, {
|
|
@@ -5672,11 +5678,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5672
5678
|
onClick: t.rebuild,
|
|
5673
5679
|
block: ""
|
|
5674
5680
|
}, {
|
|
5675
|
-
default:
|
|
5681
|
+
default: N(() => [c(A(t.$t("Common.retry")), 1)]),
|
|
5676
5682
|
_: 1
|
|
5677
5683
|
}, 8, ["onClick"])
|
|
5678
5684
|
]),
|
|
5679
|
-
default:
|
|
5685
|
+
default: N(() => [t.isMobile ? (x(), a("div", {
|
|
5680
5686
|
key: 0,
|
|
5681
5687
|
class: g([t.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
|
|
5682
5688
|
}, [l(S, {
|
|
@@ -5686,18 +5692,18 @@ function oo(t, n, u, d, f, p) {
|
|
|
5686
5692
|
loading: t.loading,
|
|
5687
5693
|
"onOnUpdate:value": t.submit
|
|
5688
5694
|
}, s({
|
|
5689
|
-
action:
|
|
5695
|
+
action: N(() => [
|
|
5690
5696
|
t.addFetch && t.tableOption.addButton ? (x(), r(h, {
|
|
5691
5697
|
key: 0,
|
|
5692
5698
|
secondary: "",
|
|
5693
5699
|
disabled: t.checkRole("add"),
|
|
5694
5700
|
onClick: t.handleAdd
|
|
5695
5701
|
}, {
|
|
5696
|
-
icon:
|
|
5697
|
-
default:
|
|
5702
|
+
icon: N(() => [l(y, null, {
|
|
5703
|
+
default: N(() => [l(v, { icon: "Add" })]),
|
|
5698
5704
|
_: 1
|
|
5699
5705
|
})]),
|
|
5700
|
-
default:
|
|
5706
|
+
default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
|
|
5701
5707
|
_: 1
|
|
5702
5708
|
}, 8, ["disabled", "onClick"])) : i("", !0),
|
|
5703
5709
|
t.suffixes && t.suffixes.length > 0 ? (x(), r(b, {
|
|
@@ -5714,11 +5720,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5714
5720
|
_: 2
|
|
5715
5721
|
}, [t.isSlotHeader ? {
|
|
5716
5722
|
name: "header",
|
|
5717
|
-
fn:
|
|
5723
|
+
fn: N(() => [E(t.$slots, "header")]),
|
|
5718
5724
|
key: "0"
|
|
5719
5725
|
} : {
|
|
5720
5726
|
name: "header",
|
|
5721
|
-
fn:
|
|
5727
|
+
fn: N(() => [o("div", to, A(t.title), 1)]),
|
|
5722
5728
|
key: "1"
|
|
5723
5729
|
}]), 1032, [
|
|
5724
5730
|
"data",
|
|
@@ -5744,7 +5750,7 @@ function oo(t, n, u, d, f, p) {
|
|
|
5744
5750
|
"minH",
|
|
5745
5751
|
"maxH",
|
|
5746
5752
|
"onUpdate:rowKeys"
|
|
5747
|
-
])], 512)], 2)) : (x(), a("div", ro, [l(
|
|
5753
|
+
])], 512)], 2)) : (x(), a("div", ro, [l(j, {
|
|
5748
5754
|
data: t.searchData,
|
|
5749
5755
|
id: t.id || t.route.params.id,
|
|
5750
5756
|
cache: t.tableOption.cache,
|
|
@@ -5753,22 +5759,22 @@ function oo(t, n, u, d, f, p) {
|
|
|
5753
5759
|
enableHeader: t.enableHeader,
|
|
5754
5760
|
"onOnUpdate:value": t.submit
|
|
5755
5761
|
}, s({
|
|
5756
|
-
action:
|
|
5762
|
+
action: N(() => [
|
|
5757
5763
|
t.tableOption.filterButton && t.filterColumns.length > 0 ? (x(), r(k, {
|
|
5758
5764
|
key: 0,
|
|
5759
5765
|
placement: "bottom-end",
|
|
5760
5766
|
trigger: "click",
|
|
5761
5767
|
"show-arrow": !1
|
|
5762
5768
|
}, {
|
|
5763
|
-
trigger:
|
|
5764
|
-
icon:
|
|
5765
|
-
default:
|
|
5769
|
+
trigger: N(() => [l(h, { secondary: "" }, {
|
|
5770
|
+
icon: N(() => [l(y, null, {
|
|
5771
|
+
default: N(() => [l(v, { icon: "Filter" })]),
|
|
5766
5772
|
_: 1
|
|
5767
5773
|
})]),
|
|
5768
|
-
default:
|
|
5774
|
+
default: N(() => [c(" " + A(t.$t("Common.columns")), 1)]),
|
|
5769
5775
|
_: 1
|
|
5770
5776
|
})]),
|
|
5771
|
-
default:
|
|
5777
|
+
default: N(() => [l(O, {
|
|
5772
5778
|
modelValue: t.filterColumns,
|
|
5773
5779
|
"onUpdate:modelValue": n[0] ||= (e) => t.filterColumns = e,
|
|
5774
5780
|
animation: 200,
|
|
@@ -5779,7 +5785,7 @@ function oo(t, n, u, d, f, p) {
|
|
|
5779
5785
|
handle: ".uz-drag-handle",
|
|
5780
5786
|
onEnd: t.handleColumnChange
|
|
5781
5787
|
}, {
|
|
5782
|
-
default:
|
|
5788
|
+
default: N(() => [(x(!0), a(e, null, T(t.filterColumns, (e, n) => P((x(), a("div", {
|
|
5783
5789
|
key: e.key,
|
|
5784
5790
|
class: "uz-table-sort",
|
|
5785
5791
|
"data-index": n
|
|
@@ -5788,24 +5794,24 @@ function oo(t, n, u, d, f, p) {
|
|
|
5788
5794
|
"on-update:checked": () => t.showChange(e),
|
|
5789
5795
|
size: "large"
|
|
5790
5796
|
}, {
|
|
5791
|
-
default:
|
|
5797
|
+
default: N(() => [c(A(typeof e.title == "string" ? e.title : e.title && e.title()), 1)]),
|
|
5792
5798
|
_: 2
|
|
5793
5799
|
}, 1032, ["checked", "on-update:checked"]), l(h, {
|
|
5794
5800
|
quaternary: "",
|
|
5795
5801
|
class: "uz-drag-handle"
|
|
5796
5802
|
}, {
|
|
5797
|
-
icon:
|
|
5798
|
-
default:
|
|
5803
|
+
icon: N(() => [l(y, { size: "18" }, {
|
|
5804
|
+
default: N(() => [l(v, { icon: "List" })]),
|
|
5799
5805
|
_: 1
|
|
5800
5806
|
})]),
|
|
5801
5807
|
_: 1
|
|
5802
|
-
})], 8, ao)), [[
|
|
5808
|
+
})], 8, ao)), [[te, !e.hide]])), 128)), l(h, {
|
|
5803
5809
|
block: "",
|
|
5804
5810
|
tertiary: "",
|
|
5805
5811
|
loading: t.loading,
|
|
5806
5812
|
onClick: t.resetFilter
|
|
5807
5813
|
}, {
|
|
5808
|
-
default:
|
|
5814
|
+
default: N(() => [c(A(t.$t("Common.reset")), 1)]),
|
|
5809
5815
|
_: 1
|
|
5810
5816
|
}, 8, ["loading", "onClick"])]),
|
|
5811
5817
|
_: 1
|
|
@@ -5837,11 +5843,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5837
5843
|
disabled: t.checkRole("add"),
|
|
5838
5844
|
onClick: t.handleAdd
|
|
5839
5845
|
}, {
|
|
5840
|
-
icon:
|
|
5841
|
-
default:
|
|
5846
|
+
icon: N(() => [l(y, null, {
|
|
5847
|
+
default: N(() => [l(v, { icon: "Add" })]),
|
|
5842
5848
|
_: 1
|
|
5843
5849
|
})]),
|
|
5844
|
-
default:
|
|
5850
|
+
default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
|
|
5845
5851
|
_: 1
|
|
5846
5852
|
}, 8, ["disabled", "onClick"])) : i("", !0),
|
|
5847
5853
|
E(t.$slots, "action")
|
|
@@ -5849,11 +5855,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5849
5855
|
_: 2
|
|
5850
5856
|
}, [t.isSlotHeader ? {
|
|
5851
5857
|
name: "header",
|
|
5852
|
-
fn:
|
|
5858
|
+
fn: N(() => [E(t.$slots, "header")]),
|
|
5853
5859
|
key: "0"
|
|
5854
5860
|
} : {
|
|
5855
5861
|
name: "header",
|
|
5856
|
-
fn:
|
|
5862
|
+
fn: N(() => [o("div", io, A(t.title), 1)]),
|
|
5857
5863
|
key: "1"
|
|
5858
5864
|
}]), 1032, [
|
|
5859
5865
|
"data",
|
|
@@ -5863,7 +5869,7 @@ function oo(t, n, u, d, f, p) {
|
|
|
5863
5869
|
"cols",
|
|
5864
5870
|
"enableHeader",
|
|
5865
5871
|
"onOnUpdate:value"
|
|
5866
|
-
]), l(
|
|
5872
|
+
]), l(M, {
|
|
5867
5873
|
ref: "tableRef",
|
|
5868
5874
|
columns: t.tableCols,
|
|
5869
5875
|
data: t.tableData,
|
|
@@ -5910,8 +5916,8 @@ function oo(t, n, u, d, f, p) {
|
|
|
5910
5916
|
"onUpdate:expandedRowKeys"
|
|
5911
5917
|
])]))]),
|
|
5912
5918
|
_: 3
|
|
5913
|
-
}, 8, ["show"]), [[
|
|
5914
|
-
l(
|
|
5919
|
+
}, 8, ["show"]), [[te, t.dynamicLoading]]),
|
|
5920
|
+
l(F, { ref: "drawerRef" }, null, 512)
|
|
5915
5921
|
], 4);
|
|
5916
5922
|
}
|
|
5917
5923
|
var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
@@ -5919,7 +5925,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
5919
5925
|
components: {
|
|
5920
5926
|
UzIcon: qt,
|
|
5921
5927
|
NSpin: Me,
|
|
5922
|
-
NButton:
|
|
5928
|
+
NButton: I,
|
|
5923
5929
|
NIcon: V,
|
|
5924
5930
|
NDataTable: oe,
|
|
5925
5931
|
NForm: pe,
|
|
@@ -5967,10 +5973,10 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
5967
5973
|
K(e);
|
|
5968
5974
|
}
|
|
5969
5975
|
b.value.child = r, g.value = !1, h(() => {
|
|
5970
|
-
|
|
5976
|
+
P();
|
|
5971
5977
|
});
|
|
5972
5978
|
} else h(() => {
|
|
5973
|
-
|
|
5979
|
+
P();
|
|
5974
5980
|
});
|
|
5975
5981
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5976
5982
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
@@ -6042,9 +6048,9 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6042
6048
|
return [];
|
|
6043
6049
|
}, ee = async () => {
|
|
6044
6050
|
x.value = "", b.value.child.push(W(S.value)), h(() => {
|
|
6045
|
-
|
|
6051
|
+
P();
|
|
6046
6052
|
});
|
|
6047
|
-
},
|
|
6053
|
+
}, te = async () => {
|
|
6048
6054
|
x.value = "";
|
|
6049
6055
|
try {
|
|
6050
6056
|
let t = e.item.params.options;
|
|
@@ -6057,7 +6063,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6057
6063
|
callback: async (e) => {
|
|
6058
6064
|
let t = await n(e, o, Z);
|
|
6059
6065
|
b.value.child = [...b.value.child, ...t], h(() => {
|
|
6060
|
-
|
|
6066
|
+
P();
|
|
6061
6067
|
});
|
|
6062
6068
|
}
|
|
6063
6069
|
});
|
|
@@ -6067,21 +6073,21 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6067
6073
|
children: () => b.value.child,
|
|
6068
6074
|
callback: async (e) => {
|
|
6069
6075
|
b.value.child = [...b.value.child, ...e], h(() => {
|
|
6070
|
-
|
|
6076
|
+
P();
|
|
6071
6077
|
});
|
|
6072
6078
|
}
|
|
6073
6079
|
});
|
|
6074
6080
|
} catch (e) {
|
|
6075
6081
|
K(e);
|
|
6076
6082
|
}
|
|
6077
|
-
},
|
|
6083
|
+
}, M = () => {
|
|
6078
6084
|
m.value?.restoreValidation();
|
|
6079
|
-
},
|
|
6085
|
+
}, N = () => (x.value = "", new Promise((t, n) => {
|
|
6080
6086
|
let r = b.value.child.filter((e) => !e.delete).length;
|
|
6081
6087
|
e.item.form.rule.required && r === 0 ? (x.value = e.item.form.rule.message, n()) : m.value?.validate((r) => {
|
|
6082
6088
|
r ? (x.value = e.item.form.rule.message, n()) : t();
|
|
6083
6089
|
});
|
|
6084
|
-
})),
|
|
6090
|
+
})), P = () => {
|
|
6085
6091
|
if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
|
|
6086
6092
|
let e = u.value.$el.querySelector(".n-data-table-tbody");
|
|
6087
6093
|
e && (d.value = nt.create(e, {
|
|
@@ -6094,7 +6100,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6094
6100
|
sort_index: t
|
|
6095
6101
|
})), b.value.child = n, h(() => {
|
|
6096
6102
|
_.value = !0, setTimeout(() => {
|
|
6097
|
-
|
|
6103
|
+
P();
|
|
6098
6104
|
}, 0);
|
|
6099
6105
|
});
|
|
6100
6106
|
}
|
|
@@ -6104,21 +6110,21 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6104
6110
|
return v(() => {
|
|
6105
6111
|
d.value?.destroy(), d.value = null;
|
|
6106
6112
|
}), r({
|
|
6107
|
-
validate:
|
|
6108
|
-
restoreValidation:
|
|
6109
|
-
}),
|
|
6113
|
+
validate: N,
|
|
6114
|
+
restoreValidation: M
|
|
6115
|
+
}), j(() => e.item.params.columns, (e, t) => {
|
|
6110
6116
|
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
6111
6117
|
}, {
|
|
6112
6118
|
deep: !0,
|
|
6113
6119
|
immediate: !0
|
|
6114
|
-
}),
|
|
6120
|
+
}), j(() => e.value, (e) => {
|
|
6115
6121
|
JSON.stringify(e) !== JSON.stringify(b.value.child) && D(e);
|
|
6116
6122
|
}, {
|
|
6117
6123
|
deep: !0,
|
|
6118
6124
|
immediate: !0
|
|
6119
|
-
}),
|
|
6125
|
+
}), j(() => b.value.child, (n) => {
|
|
6120
6126
|
e.status !== 2 && t("update:value", n);
|
|
6121
|
-
}, { deep: !0 }),
|
|
6127
|
+
}, { deep: !0 }), j(() => c.value, async () => {
|
|
6122
6128
|
await k(void 0, !0);
|
|
6123
6129
|
}), {
|
|
6124
6130
|
t: l,
|
|
@@ -6133,7 +6139,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6133
6139
|
tableShow: _,
|
|
6134
6140
|
suffixes: C,
|
|
6135
6141
|
onAdd: ee,
|
|
6136
|
-
onAddFormData:
|
|
6142
|
+
onAddFormData: te,
|
|
6137
6143
|
rowClassName: O,
|
|
6138
6144
|
doSuffixClick: (e) => {
|
|
6139
6145
|
i({
|
|
@@ -6161,12 +6167,12 @@ function go(t, n, u, d, f, p) {
|
|
|
6161
6167
|
secondary: "",
|
|
6162
6168
|
onClick: (n) => t.doSuffixClick(e)
|
|
6163
6169
|
}, s({
|
|
6164
|
-
default:
|
|
6170
|
+
default: N(() => [c(" " + A(e.buttonText), 1)]),
|
|
6165
6171
|
_: 2
|
|
6166
6172
|
}, [e.icon ? {
|
|
6167
6173
|
name: "icon",
|
|
6168
|
-
fn:
|
|
6169
|
-
default:
|
|
6174
|
+
fn: N(() => [l(h, null, {
|
|
6175
|
+
default: N(() => [l(m, { icon: e.icon }, null, 8, ["icon"])]),
|
|
6170
6176
|
_: 2
|
|
6171
6177
|
}, 1024)]),
|
|
6172
6178
|
key: "0"
|
|
@@ -6177,11 +6183,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6177
6183
|
secondary: "",
|
|
6178
6184
|
onClick: t.onAddFormData
|
|
6179
6185
|
}, {
|
|
6180
|
-
icon:
|
|
6181
|
-
default:
|
|
6186
|
+
icon: N(() => [l(h, null, {
|
|
6187
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6182
6188
|
_: 1
|
|
6183
6189
|
})]),
|
|
6184
|
-
default:
|
|
6190
|
+
default: N(() => [c(" " + A(t.t("Table.addFromData")), 1)]),
|
|
6185
6191
|
_: 1
|
|
6186
6192
|
}, 8, ["onClick"])) : i("", !0),
|
|
6187
6193
|
t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
|
|
@@ -6190,11 +6196,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6190
6196
|
secondary: "",
|
|
6191
6197
|
onClick: t.onAdd
|
|
6192
6198
|
}, {
|
|
6193
|
-
icon:
|
|
6194
|
-
default:
|
|
6199
|
+
icon: N(() => [l(h, null, {
|
|
6200
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6195
6201
|
_: 1
|
|
6196
6202
|
})]),
|
|
6197
|
-
default:
|
|
6203
|
+
default: N(() => [c(" " + A(t.t("Common.add")), 1)]),
|
|
6198
6204
|
_: 1
|
|
6199
6205
|
}, 8, ["onClick"])) : i("", !0)
|
|
6200
6206
|
])]),
|
|
@@ -6205,7 +6211,7 @@ function go(t, n, u, d, f, p) {
|
|
|
6205
6211
|
model: t.tableData,
|
|
6206
6212
|
class: "uz-flex uz-flex-col uz-gap-2"
|
|
6207
6213
|
}, {
|
|
6208
|
-
default:
|
|
6214
|
+
default: N(() => [t.tableShow ? (x(), r(v, {
|
|
6209
6215
|
key: 0,
|
|
6210
6216
|
ref: "tableRef",
|
|
6211
6217
|
columns: t.columns,
|
|
@@ -6233,11 +6239,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6233
6239
|
secondary: "",
|
|
6234
6240
|
onClick: t.onAddFormData
|
|
6235
6241
|
}, {
|
|
6236
|
-
icon:
|
|
6237
|
-
default:
|
|
6242
|
+
icon: N(() => [l(h, null, {
|
|
6243
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6238
6244
|
_: 1
|
|
6239
6245
|
})]),
|
|
6240
|
-
default:
|
|
6246
|
+
default: N(() => [c(" " + A(t.t("Table.addFromData")), 1)]),
|
|
6241
6247
|
_: 1
|
|
6242
6248
|
}, 8, ["onClick"])) : i("", !0), t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
|
|
6243
6249
|
key: 1,
|
|
@@ -6245,11 +6251,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6245
6251
|
secondary: "",
|
|
6246
6252
|
onClick: t.onAdd
|
|
6247
6253
|
}, {
|
|
6248
|
-
icon:
|
|
6249
|
-
default:
|
|
6254
|
+
icon: N(() => [l(h, null, {
|
|
6255
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6250
6256
|
_: 1
|
|
6251
6257
|
})]),
|
|
6252
|
-
default:
|
|
6258
|
+
default: N(() => [c(" " + A(t.t("Common.add")), 1)]),
|
|
6253
6259
|
_: 1
|
|
6254
6260
|
}, 8, ["onClick"])) : i("", !0)])]),
|
|
6255
6261
|
_: 1
|
|
@@ -6321,7 +6327,7 @@ var _o = /*#__PURE__*/ Q(co, [["render", go]]), vo = d({
|
|
|
6321
6327
|
};
|
|
6322
6328
|
return y(() => {
|
|
6323
6329
|
l();
|
|
6324
|
-
}),
|
|
6330
|
+
}), M(async () => {
|
|
6325
6331
|
try {
|
|
6326
6332
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
6327
6333
|
let t = await Xn({
|
|
@@ -6387,7 +6393,7 @@ function So(e, t, n, r, i, s) {
|
|
|
6387
6393
|
var Co = /*#__PURE__*/ Q(vo, [["render", So]]), wo = d({
|
|
6388
6394
|
name: "UzTableDrawer",
|
|
6389
6395
|
components: {
|
|
6390
|
-
NButton:
|
|
6396
|
+
NButton: I,
|
|
6391
6397
|
NDrawerContent: ue,
|
|
6392
6398
|
NDrawer: le,
|
|
6393
6399
|
NSkeleton: Ae,
|
|
@@ -6571,19 +6577,19 @@ function ko(t, n, u, d, f, p) {
|
|
|
6571
6577
|
"auto-focus": !1,
|
|
6572
6578
|
"mask-closable": !1
|
|
6573
6579
|
}, {
|
|
6574
|
-
default:
|
|
6580
|
+
default: N(() => [l(b, {
|
|
6575
6581
|
title: t.formStatus === 1 ? t.t("Common.edit") : t.formStatus === 2 ? t.t("Common.detail") : t.t("Common.add"),
|
|
6576
6582
|
closable: ""
|
|
6577
6583
|
}, s({
|
|
6578
|
-
default:
|
|
6579
|
-
description:
|
|
6580
|
-
default:
|
|
6584
|
+
default: N(() => [l(_, { show: t.spinError }, {
|
|
6585
|
+
description: N(() => [c(A(t.t("Notice.error")), 1)]),
|
|
6586
|
+
default: N(() => [l(g, {
|
|
6581
6587
|
value: t.spinShow,
|
|
6582
6588
|
"onUpdate:value": n[0] ||= (e) => t.spinShow = e,
|
|
6583
6589
|
message: t.spinMsg,
|
|
6584
6590
|
status: t.spinStatus
|
|
6585
6591
|
}, {
|
|
6586
|
-
default:
|
|
6592
|
+
default: N(() => [o("div", To, [t.skeletonShow ? (x(), a("div", Eo, [
|
|
6587
6593
|
l(m, {
|
|
6588
6594
|
size: "large",
|
|
6589
6595
|
style: { height: "156px" }
|
|
@@ -6646,14 +6652,14 @@ function ko(t, n, u, d, f, p) {
|
|
|
6646
6652
|
_: 2
|
|
6647
6653
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6648
6654
|
name: "footer",
|
|
6649
|
-
fn:
|
|
6655
|
+
fn: N(() => [o("div", Do, [t.isMobile ? i("", !0) : (x(), r(v, {
|
|
6650
6656
|
key: 0,
|
|
6651
6657
|
loading: t.spinShow,
|
|
6652
6658
|
type: "success",
|
|
6653
6659
|
class: "uz-drawer-button",
|
|
6654
6660
|
onClick: n[1] ||= (e) => t.ocrShow = !t.ocrShow
|
|
6655
6661
|
}, {
|
|
6656
|
-
default:
|
|
6662
|
+
default: N(() => [c(A(t.t("OCR.ocr")), 1)]),
|
|
6657
6663
|
_: 1
|
|
6658
6664
|
}, 8, ["loading"])), o("div", Oo, [
|
|
6659
6665
|
l(v, {
|
|
@@ -6662,24 +6668,24 @@ function ko(t, n, u, d, f, p) {
|
|
|
6662
6668
|
secondary: "",
|
|
6663
6669
|
onClick: t.drawerCheck
|
|
6664
6670
|
}, {
|
|
6665
|
-
default:
|
|
6671
|
+
default: N(() => [c(A(t.t("Common.cancel")), 1)]),
|
|
6666
6672
|
_: 1
|
|
6667
6673
|
}, 8, ["loading", "onClick"]),
|
|
6668
6674
|
t.formStatus === 0 ? (x(), r(y, {
|
|
6669
6675
|
key: 0,
|
|
6670
6676
|
trigger: "hover"
|
|
6671
6677
|
}, {
|
|
6672
|
-
trigger:
|
|
6678
|
+
trigger: N(() => [l(v, {
|
|
6673
6679
|
type: "success",
|
|
6674
6680
|
loading: t.spinShow,
|
|
6675
6681
|
class: "uz-drawer-button",
|
|
6676
6682
|
secondary: "",
|
|
6677
6683
|
onClick: t.doCacheToStore
|
|
6678
6684
|
}, {
|
|
6679
|
-
default:
|
|
6685
|
+
default: N(() => [c(A(t.t("Common.cache")), 1)]),
|
|
6680
6686
|
_: 1
|
|
6681
6687
|
}, 8, ["loading", "onClick"])]),
|
|
6682
|
-
default:
|
|
6688
|
+
default: N(() => [o("span", null, A(t.t("Table.cacheTip")), 1)]),
|
|
6683
6689
|
_: 1
|
|
6684
6690
|
})) : i("", !0),
|
|
6685
6691
|
l(v, {
|
|
@@ -6688,7 +6694,7 @@ function ko(t, n, u, d, f, p) {
|
|
|
6688
6694
|
type: "primary",
|
|
6689
6695
|
onClick: t.drawerSubmit
|
|
6690
6696
|
}, {
|
|
6691
|
-
default:
|
|
6697
|
+
default: N(() => [c(A(t.t("Common.apply")), 1)]),
|
|
6692
6698
|
_: 1
|
|
6693
6699
|
}, 8, ["loading", "onClick"])
|
|
6694
6700
|
])])]),
|
|
@@ -6719,7 +6725,7 @@ function ko(t, n, u, d, f, p) {
|
|
|
6719
6725
|
bottom: "0"
|
|
6720
6726
|
}
|
|
6721
6727
|
}, {
|
|
6722
|
-
default:
|
|
6728
|
+
default: N(() => [l(C)]),
|
|
6723
6729
|
_: 1
|
|
6724
6730
|
}, 8, ["show", "title"])], 64);
|
|
6725
6731
|
}
|
|
@@ -6764,7 +6770,7 @@ function Po(t, n, s, c, l, u) {
|
|
|
6764
6770
|
var Fo = d({
|
|
6765
6771
|
name: "UzTableMobile",
|
|
6766
6772
|
components: {
|
|
6767
|
-
NCheckbox:
|
|
6773
|
+
NCheckbox: R,
|
|
6768
6774
|
NRadio: De,
|
|
6769
6775
|
NPagination: we,
|
|
6770
6776
|
NCheckboxGroup: ie,
|
|
@@ -6838,12 +6844,12 @@ function zo(t, n, o, s, c, u) {
|
|
|
6838
6844
|
maxHeight: t.maxH
|
|
6839
6845
|
})
|
|
6840
6846
|
}, {
|
|
6841
|
-
default:
|
|
6847
|
+
default: N(() => [(x(!0), a(e, null, T(t.tableData, (e, n) => (x(), r(f, {
|
|
6842
6848
|
key: e.id,
|
|
6843
6849
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
6844
6850
|
value: e.id
|
|
6845
6851
|
}, {
|
|
6846
|
-
default:
|
|
6852
|
+
default: N(() => [l(d, {
|
|
6847
6853
|
tableData: e,
|
|
6848
6854
|
tableIndex: n,
|
|
6849
6855
|
tableColumns: t.tableColumns
|
|
@@ -6880,12 +6886,12 @@ function zo(t, n, o, s, c, u) {
|
|
|
6880
6886
|
maxHeight: t.maxH
|
|
6881
6887
|
})
|
|
6882
6888
|
}, {
|
|
6883
|
-
default:
|
|
6889
|
+
default: N(() => [(x(!0), a(e, null, T(t.tableData, (e, n) => (x(), r(h, {
|
|
6884
6890
|
key: e.id,
|
|
6885
6891
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
6886
6892
|
value: e.id
|
|
6887
6893
|
}, {
|
|
6888
|
-
default:
|
|
6894
|
+
default: N(() => [l(d, {
|
|
6889
6895
|
tableData: e,
|
|
6890
6896
|
tableIndex: n,
|
|
6891
6897
|
tableColumns: t.tableColumns
|
|
@@ -6948,7 +6954,7 @@ var Bo = /*#__PURE__*/ Q(Fo, [["render", zo], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6948
6954
|
components: {
|
|
6949
6955
|
UzIcon: qt,
|
|
6950
6956
|
NDropdown: de,
|
|
6951
|
-
NButton:
|
|
6957
|
+
NButton: I,
|
|
6952
6958
|
NModal: Ce,
|
|
6953
6959
|
NUpload: Re,
|
|
6954
6960
|
NSpace: je,
|
|
@@ -7002,7 +7008,7 @@ var Bo = /*#__PURE__*/ Q(Fo, [["render", zo], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7002
7008
|
key: "action",
|
|
7003
7009
|
align: "center",
|
|
7004
7010
|
render(e) {
|
|
7005
|
-
return f(
|
|
7011
|
+
return f(I, {
|
|
7006
7012
|
tertiary: !0,
|
|
7007
7013
|
onClick: () => {
|
|
7008
7014
|
window.open(e.cosUrl);
|
|
@@ -7093,12 +7099,12 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7093
7099
|
options: t.dropOption,
|
|
7094
7100
|
onSelect: t.dropSelect
|
|
7095
7101
|
}, {
|
|
7096
|
-
default:
|
|
7097
|
-
icon:
|
|
7098
|
-
default:
|
|
7102
|
+
default: N(() => [l(m, { secondary: "" }, {
|
|
7103
|
+
icon: N(() => [l(p, null, {
|
|
7104
|
+
default: N(() => [l(f, { icon: "ClipboardText" })]),
|
|
7099
7105
|
_: 1
|
|
7100
7106
|
})]),
|
|
7101
|
-
default:
|
|
7107
|
+
default: N(() => [c(" " + A(t.t("Common.file")), 1)]),
|
|
7102
7108
|
_: 1
|
|
7103
7109
|
})]),
|
|
7104
7110
|
_: 1
|
|
@@ -7113,15 +7119,15 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7113
7119
|
"auto-focus": !1,
|
|
7114
7120
|
"on-after-leave": t.modalLeave
|
|
7115
7121
|
}, {
|
|
7116
|
-
"header-extra":
|
|
7122
|
+
"header-extra": N(() => [l(m, {
|
|
7117
7123
|
type: "success",
|
|
7118
7124
|
onClick: t.downloadTemplate,
|
|
7119
7125
|
secondary: ""
|
|
7120
7126
|
}, {
|
|
7121
|
-
default:
|
|
7127
|
+
default: N(() => [c(A(t.t("File.downloadTemplate")), 1)]),
|
|
7122
7128
|
_: 1
|
|
7123
7129
|
}, 8, ["onClick"])]),
|
|
7124
|
-
default:
|
|
7130
|
+
default: N(() => [o("div", Ho, [
|
|
7125
7131
|
t.rawFile ? (x(), a("div", Go, [
|
|
7126
7132
|
n[2] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
7127
7133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7133,13 +7139,13 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7133
7139
|
o("div", null, A(t.rawFileName.join(",")), 1),
|
|
7134
7140
|
o("div", Ko, A(t.t("File.importWaitTip")), 1),
|
|
7135
7141
|
l(_, { justify: "space-between" }, {
|
|
7136
|
-
default:
|
|
7142
|
+
default: N(() => [l(m, {
|
|
7137
7143
|
size: "small",
|
|
7138
7144
|
secondary: "",
|
|
7139
7145
|
type: "default",
|
|
7140
7146
|
onClick: t.clearFile
|
|
7141
7147
|
}, {
|
|
7142
|
-
default:
|
|
7148
|
+
default: N(() => [c(A(t.t("Common.selectAgain")), 1)]),
|
|
7143
7149
|
_: 1
|
|
7144
7150
|
}, 8, ["onClick"]), l(m, {
|
|
7145
7151
|
size: "small",
|
|
@@ -7147,7 +7153,7 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7147
7153
|
loading: t.loading,
|
|
7148
7154
|
onClick: t.manualImport
|
|
7149
7155
|
}, {
|
|
7150
|
-
default:
|
|
7156
|
+
default: N(() => [c(A(t.t("File.startImport")), 1)]),
|
|
7151
7157
|
_: 1
|
|
7152
7158
|
}, 8, ["loading", "onClick"])]),
|
|
7153
7159
|
_: 1
|
|
@@ -7161,7 +7167,7 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7161
7167
|
multiple: "",
|
|
7162
7168
|
class: "uz-w-full"
|
|
7163
7169
|
}, {
|
|
7164
|
-
default:
|
|
7170
|
+
default: N(() => [o("div", Uo, [n[1] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
7165
7171
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7166
7172
|
viewBox: "0 0 24 24",
|
|
7167
7173
|
width: "40",
|
|
@@ -7175,7 +7181,7 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7175
7181
|
loading: t.loading,
|
|
7176
7182
|
secondary: ""
|
|
7177
7183
|
}, {
|
|
7178
|
-
default:
|
|
7184
|
+
default: N(() => [c(A(t.t("Common.refresh")), 1)]),
|
|
7179
7185
|
_: 1
|
|
7180
7186
|
}, 8, ["onClick", "loading"])]),
|
|
7181
7187
|
l(v, {
|
|
@@ -7256,7 +7262,7 @@ var rs = d({
|
|
|
7256
7262
|
components: {
|
|
7257
7263
|
NTabs: Fe,
|
|
7258
7264
|
NTabPane: Pe,
|
|
7259
|
-
NButton:
|
|
7265
|
+
NButton: I,
|
|
7260
7266
|
NIcon: V,
|
|
7261
7267
|
NPopconfirm: Te,
|
|
7262
7268
|
NFlex: B
|
|
@@ -7273,9 +7279,9 @@ var rs = d({
|
|
|
7273
7279
|
let { t: n } = U(), r = w(!!t.prefix), i = Je();
|
|
7274
7280
|
return y(() => {
|
|
7275
7281
|
Zo(e.option), $.active !== i.path && $o(i.path, i.fullPath);
|
|
7276
|
-
}),
|
|
7282
|
+
}), j(() => i, (e) => {
|
|
7277
7283
|
$.active === i.path && $o(e.path, e.fullPath);
|
|
7278
|
-
}, { deep: !0 }),
|
|
7284
|
+
}, { deep: !0 }), j(() => e.option, (e) => {
|
|
7279
7285
|
Zo(e);
|
|
7280
7286
|
}, { deep: !0 }), {
|
|
7281
7287
|
t: n,
|
|
@@ -7306,27 +7312,27 @@ function is(t, n, i, o, u, d) {
|
|
|
7306
7312
|
"on-update:value": t.handleChange,
|
|
7307
7313
|
class: "uz-thumbnail"
|
|
7308
7314
|
}, s({
|
|
7309
|
-
suffix:
|
|
7310
|
-
default:
|
|
7311
|
-
trigger:
|
|
7312
|
-
default:
|
|
7313
|
-
default:
|
|
7315
|
+
suffix: N(() => [l(_, null, {
|
|
7316
|
+
default: N(() => [l(g, { onPositiveClick: t.handleClear }, {
|
|
7317
|
+
trigger: N(() => [l(h, { class: "uz-button-glass" }, {
|
|
7318
|
+
default: N(() => [l(m, { color: "#e65444" }, {
|
|
7319
|
+
default: N(() => [l(p, { icon: "Trash" })]),
|
|
7314
7320
|
_: 1
|
|
7315
7321
|
})]),
|
|
7316
7322
|
_: 1
|
|
7317
7323
|
})]),
|
|
7318
|
-
default:
|
|
7324
|
+
default: N(() => [c(" " + A(t.t("Thumbnail.clearConfirm")), 1)]),
|
|
7319
7325
|
_: 1
|
|
7320
7326
|
}, 8, ["onPositiveClick"]), E(t.$slots, "suffix")]),
|
|
7321
7327
|
_: 3
|
|
7322
7328
|
})]),
|
|
7323
|
-
default:
|
|
7329
|
+
default: N(() => [(x(!0), a(e, null, T(t.thumbnailStore.thumbnail, (e) => (x(), r(f, {
|
|
7324
7330
|
key: e.key,
|
|
7325
7331
|
name: e.key,
|
|
7326
7332
|
tab: e.label,
|
|
7327
7333
|
closable: e.closable
|
|
7328
7334
|
}, {
|
|
7329
|
-
default:
|
|
7335
|
+
default: N(() => [c(A(e.label), 1)]),
|
|
7330
7336
|
_: 2
|
|
7331
7337
|
}, 1032, [
|
|
7332
7338
|
"name",
|
|
@@ -7336,7 +7342,7 @@ function is(t, n, i, o, u, d) {
|
|
|
7336
7342
|
_: 2
|
|
7337
7343
|
}, [t.isSlotPrefix ? {
|
|
7338
7344
|
name: "prefix",
|
|
7339
|
-
fn:
|
|
7345
|
+
fn: N(() => [E(t.$slots, "prefix")]),
|
|
7340
7346
|
key: "0"
|
|
7341
7347
|
} : void 0]), 1032, [
|
|
7342
7348
|
"value",
|
|
@@ -7409,7 +7415,7 @@ function ys(e, t, n, i, a, o) {
|
|
|
7409
7415
|
"inline-theme-disabled": "",
|
|
7410
7416
|
abstract: ""
|
|
7411
7417
|
}, {
|
|
7412
|
-
default:
|
|
7418
|
+
default: N(() => [E(e.$slots, "default")]),
|
|
7413
7419
|
_: 3
|
|
7414
7420
|
}, 8, [
|
|
7415
7421
|
"theme",
|
|
@@ -7495,7 +7501,7 @@ function Ss(e, t) {
|
|
|
7495
7501
|
var Cs = d({
|
|
7496
7502
|
name: "UzOcr",
|
|
7497
7503
|
components: {
|
|
7498
|
-
NButton:
|
|
7504
|
+
NButton: I,
|
|
7499
7505
|
NUpload: Re,
|
|
7500
7506
|
NSelect: ke,
|
|
7501
7507
|
NSwitch: Ne,
|
|
@@ -7543,7 +7549,7 @@ var Cs = d({
|
|
|
7543
7549
|
console.error("实时预处理失败", e);
|
|
7544
7550
|
}
|
|
7545
7551
|
};
|
|
7546
|
-
|
|
7552
|
+
j([
|
|
7547
7553
|
f,
|
|
7548
7554
|
o,
|
|
7549
7555
|
s,
|
|
@@ -7652,11 +7658,11 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7652
7658
|
type: "segment",
|
|
7653
7659
|
size: "small"
|
|
7654
7660
|
}, {
|
|
7655
|
-
default:
|
|
7661
|
+
default: N(() => [l(p, {
|
|
7656
7662
|
name: "processed",
|
|
7657
7663
|
tab: e.t("OCR.previewProcessed")
|
|
7658
7664
|
}, {
|
|
7659
|
-
default:
|
|
7665
|
+
default: N(() => [o("div", As, [o("img", {
|
|
7660
7666
|
src: e.processedImage,
|
|
7661
7667
|
alt: "Processed Preview",
|
|
7662
7668
|
class: "uz-ocr-preview-img"
|
|
@@ -7666,7 +7672,7 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7666
7672
|
name: "raw",
|
|
7667
7673
|
tab: e.t("OCR.previewRaw")
|
|
7668
7674
|
}, {
|
|
7669
|
-
default:
|
|
7675
|
+
default: N(() => [o("div", Ns, [o("img", {
|
|
7670
7676
|
src: e.rawImage,
|
|
7671
7677
|
alt: "Raw Preview",
|
|
7672
7678
|
class: "uz-ocr-preview-img"
|
|
@@ -7678,13 +7684,13 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7678
7684
|
justify: "space-between",
|
|
7679
7685
|
class: "uz-ocr-preview-actions"
|
|
7680
7686
|
}, {
|
|
7681
|
-
default:
|
|
7687
|
+
default: N(() => [l(h, {
|
|
7682
7688
|
size: "small",
|
|
7683
7689
|
secondary: "",
|
|
7684
7690
|
type: "warning",
|
|
7685
7691
|
onClick: e.clearImage
|
|
7686
7692
|
}, {
|
|
7687
|
-
default:
|
|
7693
|
+
default: N(() => [c(A(e.t("OCR.selectAgain")), 1)]),
|
|
7688
7694
|
_: 1
|
|
7689
7695
|
}, 8, ["onClick"]), l(h, {
|
|
7690
7696
|
size: "small",
|
|
@@ -7692,7 +7698,7 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7692
7698
|
loading: e.ocrLoading,
|
|
7693
7699
|
onClick: e.handleManualOcr
|
|
7694
7700
|
}, {
|
|
7695
|
-
default:
|
|
7701
|
+
default: N(() => [c(A(e.t("OCR.reRecognize")), 1)]),
|
|
7696
7702
|
_: 1
|
|
7697
7703
|
}, 8, ["loading", "onClick"])]),
|
|
7698
7704
|
_: 1
|
|
@@ -7704,7 +7710,7 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7704
7710
|
"directory-dnd": "",
|
|
7705
7711
|
class: "uz-w-full"
|
|
7706
7712
|
}, {
|
|
7707
|
-
default:
|
|
7713
|
+
default: N(() => [o("div", Es, [
|
|
7708
7714
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7709
7715
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7710
7716
|
viewBox: "0 0 24 24",
|
|
@@ -7885,7 +7891,7 @@ function oc(e, t, n) {
|
|
|
7885
7891
|
}
|
|
7886
7892
|
//#endregion
|
|
7887
7893
|
//#region package.json
|
|
7888
|
-
var sc = "0.1.
|
|
7894
|
+
var sc = "0.1.148", cc;
|
|
7889
7895
|
async function lc() {
|
|
7890
7896
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7891
7897
|
method: "HEAD",
|