@unizhen/ui 0.1.146 → 0.1.147
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/ui.js +403 -403
- 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",
|
|
@@ -3465,52 +3465,52 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3465
3465
|
},
|
|
3466
3466
|
emits: ["update:value"],
|
|
3467
3467
|
setup(e, { emit: t, expose: r }) {
|
|
3468
|
-
let i = p("mainFormValue"), { t:
|
|
3468
|
+
let i = p("mainFormValue"), a = p("modules"), { t: o } = U(), s = w(null), c = w([]), l = () => {
|
|
3469
3469
|
let e = i?.value?.()?.ticket_counts;
|
|
3470
3470
|
return e == null || e === "" ? 1 : e;
|
|
3471
|
-
},
|
|
3471
|
+
}, 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
3472
|
row: e,
|
|
3473
3473
|
index: t
|
|
3474
3474
|
})).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 =
|
|
3475
|
+
let a = u(e, i, n), o = e.children, s = ti(e), c = t === 1 ? l() : ni(e.quantity, e.lossRate, r);
|
|
3476
3476
|
return {
|
|
3477
3477
|
...e,
|
|
3478
3478
|
required_quantity: s,
|
|
3479
|
-
counts:
|
|
3479
|
+
counts: c,
|
|
3480
3480
|
key: ii(e),
|
|
3481
3481
|
level: t,
|
|
3482
3482
|
code: a,
|
|
3483
3483
|
sort: i,
|
|
3484
3484
|
sort_index: i,
|
|
3485
|
-
...Array.isArray(o) ? { children:
|
|
3485
|
+
...Array.isArray(o) ? { children: d(o, t + 1, a, c) } : {}
|
|
3486
3486
|
};
|
|
3487
|
-
}),
|
|
3487
|
+
}), m = w(d(e.value)), h = w([]), g = !1, _ = 1, b = ii, x = (e, t = 1, n) => {
|
|
3488
3488
|
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) &&
|
|
3489
|
+
let i = e.code, a = u(e, r, n);
|
|
3490
|
+
e.level !== t && (e.level = t), i !== a && (e.code = a), Array.isArray(e.children) && x(e.children, t + 1, a);
|
|
3491
3491
|
});
|
|
3492
|
-
},
|
|
3492
|
+
}, S = (e) => {
|
|
3493
3493
|
let t = [];
|
|
3494
3494
|
return e.forEach((e) => {
|
|
3495
3495
|
let n = e.children;
|
|
3496
|
-
Array.isArray(n) && n.length && (t.push(
|
|
3496
|
+
Array.isArray(n) && n.length && (t.push(b(e)), t.push(...S(n)));
|
|
3497
3497
|
}), t;
|
|
3498
|
-
},
|
|
3499
|
-
|
|
3500
|
-
},
|
|
3501
|
-
let e =
|
|
3502
|
-
if (!
|
|
3503
|
-
if (!
|
|
3504
|
-
|
|
3498
|
+
}, C = (e) => {
|
|
3499
|
+
h.value = e, g = !0;
|
|
3500
|
+
}, T = () => {
|
|
3501
|
+
let e = S(m.value);
|
|
3502
|
+
if (!g) {
|
|
3503
|
+
if (!m.value.length) return;
|
|
3504
|
+
h.value = e, g = !0;
|
|
3505
3505
|
return;
|
|
3506
3506
|
}
|
|
3507
|
-
let t = new Set(e), n =
|
|
3508
|
-
(n.length !==
|
|
3509
|
-
}, { run:
|
|
3510
|
-
|
|
3511
|
-
}, 200),
|
|
3512
|
-
let r =
|
|
3513
|
-
r || (r = /* @__PURE__ */ new Map(),
|
|
3507
|
+
let t = new Set(e), n = h.value.filter((e) => t.has(e));
|
|
3508
|
+
(n.length !== h.value.length || n.some((e, t) => e !== h.value[t])) && (h.value = n);
|
|
3509
|
+
}, { run: E, flush: D, cancel: O } = Yr(() => {
|
|
3510
|
+
x(m.value), T();
|
|
3511
|
+
}, 200), k = /* @__PURE__ */ new WeakMap(), A = (e, n) => {
|
|
3512
|
+
let r = k.get(e);
|
|
3513
|
+
r || (r = /* @__PURE__ */ new Map(), k.set(e, r));
|
|
3514
3514
|
let i = r.get(n.key);
|
|
3515
3515
|
if (i) return i;
|
|
3516
3516
|
let a = new Proxy(e, {
|
|
@@ -3519,30 +3519,30 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3519
3519
|
},
|
|
3520
3520
|
set(e, r, i) {
|
|
3521
3521
|
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") &&
|
|
3522
|
+
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
3523
|
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") && (
|
|
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") && (E(), t !== void 0 && D());
|
|
3525
3525
|
}
|
|
3526
|
-
return a && o && t("update:value",
|
|
3526
|
+
return a && o && t("update:value", m.value), o;
|
|
3527
3527
|
}
|
|
3528
3528
|
});
|
|
3529
3529
|
return r.set(n.key, a), a;
|
|
3530
|
-
},
|
|
3530
|
+
}, ee = () => {
|
|
3531
3531
|
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set(), n = (r) => {
|
|
3532
3532
|
r.forEach((r) => {
|
|
3533
|
-
e.add(
|
|
3533
|
+
e.add(b(r)), t.add(r.code);
|
|
3534
3534
|
let i = r.children;
|
|
3535
3535
|
Array.isArray(i) && n(i);
|
|
3536
3536
|
});
|
|
3537
3537
|
};
|
|
3538
|
-
n(
|
|
3538
|
+
n(m.value);
|
|
3539
3539
|
let r;
|
|
3540
3540
|
do
|
|
3541
3541
|
r = ai();
|
|
3542
3542
|
while (e.has(r));
|
|
3543
3543
|
let i;
|
|
3544
3544
|
do
|
|
3545
|
-
i = `NEW-${String(
|
|
3545
|
+
i = `NEW-${String(_).padStart(4, "0")}`, _ += 1;
|
|
3546
3546
|
while (t.has(i));
|
|
3547
3547
|
return {
|
|
3548
3548
|
key: r,
|
|
@@ -3560,19 +3560,19 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3560
3560
|
lossRate: 0,
|
|
3561
3561
|
remark: ""
|
|
3562
3562
|
};
|
|
3563
|
-
},
|
|
3564
|
-
|
|
3565
|
-
let
|
|
3566
|
-
|
|
3567
|
-
}, { dragColumn: N, getSortableRowProps: P, tableRef:
|
|
3568
|
-
let t =
|
|
3569
|
-
if (
|
|
3563
|
+
}, te = (e) => d(e?.length ? e : [ee()]);
|
|
3564
|
+
m.value.length || (m.value = te(e.value));
|
|
3565
|
+
let M = (e) => {
|
|
3566
|
+
m.value = d(e), T(), t("update:value", m.value);
|
|
3567
|
+
}, { dragColumn: N, getSortableRowProps: P, tableRef: ne, tableVersion: F } = $r(m, M), L = (e) => {
|
|
3568
|
+
let t = b(e), n = !1, r = (e) => e.map((e) => {
|
|
3569
|
+
if (b(e) === t) {
|
|
3570
3570
|
n = !0;
|
|
3571
3571
|
let t = e.children, r = Array.isArray(t) ? t : [];
|
|
3572
3572
|
return {
|
|
3573
3573
|
...e,
|
|
3574
3574
|
children: [...r, {
|
|
3575
|
-
...
|
|
3575
|
+
...ee(),
|
|
3576
3576
|
sort: r.length,
|
|
3577
3577
|
sort_index: r.length
|
|
3578
3578
|
}]
|
|
@@ -3584,44 +3584,44 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3584
3584
|
children: r(i)
|
|
3585
3585
|
} : e;
|
|
3586
3586
|
});
|
|
3587
|
-
|
|
3587
|
+
M(r(m.value)), n && !h.value.includes(t) && C([...h.value, t]);
|
|
3588
|
+
}, re = (e) => {
|
|
3589
|
+
M(oi(m.value, b(e), ee()));
|
|
3588
3590
|
}, R = (e) => {
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
let t = _(e), n = (e) => e.reduce((e, r) => {
|
|
3592
|
-
if (_(r) === t) return e;
|
|
3591
|
+
let t = b(e), n = (e) => e.reduce((e, r) => {
|
|
3592
|
+
if (b(r) === t) return e;
|
|
3593
3593
|
let i = r.children;
|
|
3594
3594
|
return e.push(Array.isArray(i) ? {
|
|
3595
3595
|
...r,
|
|
3596
3596
|
children: n(i)
|
|
3597
3597
|
} : r), e;
|
|
3598
3598
|
}, []);
|
|
3599
|
-
|
|
3600
|
-
},
|
|
3599
|
+
M(n(m.value));
|
|
3600
|
+
}, ie = {
|
|
3601
3601
|
title: () => f(de, {
|
|
3602
3602
|
trigger: "click",
|
|
3603
3603
|
options: [{
|
|
3604
|
-
label:
|
|
3604
|
+
label: o("Common.expand"),
|
|
3605
3605
|
key: "expand-all"
|
|
3606
3606
|
}, {
|
|
3607
|
-
label:
|
|
3607
|
+
label: o("Common.contract"),
|
|
3608
3608
|
key: "collapse-all"
|
|
3609
3609
|
}],
|
|
3610
3610
|
onSelect: (e) => {
|
|
3611
|
-
|
|
3611
|
+
C(e === "expand-all" ? S(m.value) : []);
|
|
3612
3612
|
}
|
|
3613
|
-
}, { default: () => f(
|
|
3613
|
+
}, { default: () => f(I, {
|
|
3614
3614
|
text: !0,
|
|
3615
3615
|
size: "small",
|
|
3616
|
-
"aria-label":
|
|
3617
|
-
}, { default: () =>
|
|
3616
|
+
"aria-label": o("BOM.expandOrCollapseAll")
|
|
3617
|
+
}, { default: () => o("BOM.level") }) }),
|
|
3618
3618
|
key: "level",
|
|
3619
3619
|
width: 70,
|
|
3620
3620
|
fixed: "left",
|
|
3621
3621
|
tree: !0,
|
|
3622
3622
|
ellipsis: { tooltip: !0 }
|
|
3623
|
-
},
|
|
3624
|
-
title:
|
|
3623
|
+
}, z = {
|
|
3624
|
+
title: o("Common.action"),
|
|
3625
3625
|
key: "actions",
|
|
3626
3626
|
width: 240,
|
|
3627
3627
|
fixed: "right",
|
|
@@ -3633,21 +3633,21 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3633
3633
|
type: "normal",
|
|
3634
3634
|
key: "add-child",
|
|
3635
3635
|
color: "primary",
|
|
3636
|
-
buttonText:
|
|
3637
|
-
onClick: (e) =>
|
|
3636
|
+
buttonText: o("BOM.addChild"),
|
|
3637
|
+
onClick: (e) => L(e)
|
|
3638
3638
|
}, ...Number(e.level) === 1 ? [] : [{
|
|
3639
3639
|
type: "normal",
|
|
3640
3640
|
key: "add-sibling",
|
|
3641
3641
|
color: "primary",
|
|
3642
|
-
buttonText:
|
|
3643
|
-
onClick: (e) =>
|
|
3642
|
+
buttonText: o("BOM.addSibling"),
|
|
3643
|
+
onClick: (e) => re(e)
|
|
3644
3644
|
}, {
|
|
3645
3645
|
type: "normal",
|
|
3646
3646
|
key: "delete",
|
|
3647
3647
|
color: "error",
|
|
3648
|
-
buttonText:
|
|
3649
|
-
confirmText:
|
|
3650
|
-
onClick: (e) =>
|
|
3648
|
+
buttonText: o("Common.delete"),
|
|
3649
|
+
confirmText: o("BOM.deleteConfirm"),
|
|
3650
|
+
onClick: (e) => R(e)
|
|
3651
3651
|
}]],
|
|
3652
3652
|
rowData: e,
|
|
3653
3653
|
hProps: {
|
|
@@ -3655,12 +3655,12 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3655
3655
|
secondary: !0
|
|
3656
3656
|
}
|
|
3657
3657
|
})
|
|
3658
|
-
},
|
|
3658
|
+
}, ae = n(() => Number(e.status) === 2 ? c.value.filter((e) => e.key !== "actions") : c.value), oe = n(() => ae.value.reduce((e, t) => {
|
|
3659
3659
|
let n = "width" in t ? Number(t.width) : 120;
|
|
3660
3660
|
return e + (Number.isFinite(n) ? n : 120);
|
|
3661
|
-
}, 0)),
|
|
3662
|
-
|
|
3663
|
-
},
|
|
3661
|
+
}, 0)), se = (e) => {
|
|
3662
|
+
C(e);
|
|
3663
|
+
}, ce = (e) => {
|
|
3664
3664
|
let t = Math.trunc(Number(e.level));
|
|
3665
3665
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
3666
3666
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
@@ -3668,31 +3668,31 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3668
3668
|
color: Oi[n - 1],
|
|
3669
3669
|
strength: `${Math.min(10 + r * 5, 40)}%`
|
|
3670
3670
|
};
|
|
3671
|
-
},
|
|
3672
|
-
let t =
|
|
3671
|
+
}, le = (e) => {
|
|
3672
|
+
let t = ce(e);
|
|
3673
3673
|
return {
|
|
3674
3674
|
...P(e),
|
|
3675
3675
|
...t ? { style: `--uz-bom-level-color: ${t.color}; --uz-bom-level-strength: ${t.strength}` } : {}
|
|
3676
3676
|
};
|
|
3677
|
-
},
|
|
3677
|
+
}, ue = (t) => {
|
|
3678
3678
|
if (!t.form.display) switch (e.status) {
|
|
3679
3679
|
case 0: return t.form.create && t.form.create.show;
|
|
3680
3680
|
case 1: return t.form.edit && t.form.edit.show;
|
|
3681
3681
|
case 2: return t.form.show;
|
|
3682
3682
|
}
|
|
3683
3683
|
};
|
|
3684
|
-
return
|
|
3685
|
-
let e =
|
|
3686
|
-
|
|
3684
|
+
return j(() => i?.value?.()?.ticket_counts, () => {
|
|
3685
|
+
let e = l();
|
|
3686
|
+
m.value.forEach((t) => {
|
|
3687
3687
|
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",
|
|
3688
|
+
}), t("update:value", m.value);
|
|
3689
|
+
}, { immediate: !0 }), j(() => e.value, (e) => {
|
|
3690
|
+
e !== m.value && (O(), m.value = te(e), t("update:value", m.value));
|
|
3691
|
+
}), j(m, () => T(), { immediate: !0 }), y(async () => {
|
|
3692
|
+
e.value?.length || t("update:value", m.value);
|
|
3693
3693
|
let n = await Jn("bom_col");
|
|
3694
3694
|
n = tt.parse(n.viewJson), n = bi(n.table);
|
|
3695
|
-
let { tableColumns: r } = await Ei(n), i = r.filter((e) =>
|
|
3695
|
+
let { tableColumns: r } = await Ei(n, !1, 0, () => {}, a), i = r.filter((e) => ue(e)).map((t) => ({
|
|
3696
3696
|
title: t.title,
|
|
3697
3697
|
key: t.key,
|
|
3698
3698
|
width: t.width ?? 120,
|
|
@@ -3707,29 +3707,29 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3707
3707
|
} : void 0
|
|
3708
3708
|
}, { default: () => f(Tr, {
|
|
3709
3709
|
item: t,
|
|
3710
|
-
formValue:
|
|
3710
|
+
formValue: A(n, t),
|
|
3711
3711
|
status: e.status,
|
|
3712
3712
|
itemIndex: r
|
|
3713
3713
|
}) })
|
|
3714
3714
|
}));
|
|
3715
|
-
|
|
3715
|
+
c.value = [
|
|
3716
3716
|
N,
|
|
3717
|
-
|
|
3717
|
+
ie,
|
|
3718
3718
|
...i,
|
|
3719
|
-
|
|
3719
|
+
z
|
|
3720
3720
|
];
|
|
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:
|
|
3721
|
+
}), r({ validate: async () => (await s.value?.validate(), m.value) }), v(O), {
|
|
3722
|
+
t: o,
|
|
3723
|
+
formRef: s,
|
|
3724
|
+
innerData: m,
|
|
3725
|
+
tableRef: ne,
|
|
3726
|
+
tableVersion: F,
|
|
3727
|
+
displayedTableCols: ae,
|
|
3728
|
+
displayedScrollX: oe,
|
|
3729
|
+
innerExpandedRowKeys: h,
|
|
3730
|
+
getRowKey: b,
|
|
3731
|
+
getRowProps: le,
|
|
3732
|
+
handleExpandedRowKeysChange: se
|
|
3733
3733
|
};
|
|
3734
3734
|
}
|
|
3735
3735
|
}), 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 +3742,7 @@ function Pi(t, n, s, u, d, f) {
|
|
|
3742
3742
|
ref: "formRef",
|
|
3743
3743
|
model: { child: t.innerData }
|
|
3744
3744
|
}, {
|
|
3745
|
-
default:
|
|
3745
|
+
default: N(() => [(x(), r(p, {
|
|
3746
3746
|
ref: "tableRef",
|
|
3747
3747
|
key: t.tableVersion,
|
|
3748
3748
|
columns: t.displayedTableCols,
|
|
@@ -3761,7 +3761,7 @@ function Pi(t, n, s, u, d, f) {
|
|
|
3761
3761
|
"scrollbar-props": { trigger: "none" },
|
|
3762
3762
|
remote: ""
|
|
3763
3763
|
}, {
|
|
3764
|
-
empty:
|
|
3764
|
+
empty: N(() => [E(t.$slots, "empty", {}, () => [c(A(t.t("BOM.empty")), 1)])]),
|
|
3765
3765
|
_: 3
|
|
3766
3766
|
}, 8, [
|
|
3767
3767
|
"columns",
|
|
@@ -3848,7 +3848,7 @@ var Fi = /*#__PURE__*/ Q(ki, [["render", Pi]]), Ii = 46, Li = 8, Ri = 2 * Math.P
|
|
|
3848
3848
|
let t = Number(e.circle);
|
|
3849
3849
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
3850
3850
|
}), s = w(o.value), c;
|
|
3851
|
-
|
|
3851
|
+
j(o, (e) => {
|
|
3852
3852
|
if (c !== void 0 && cancelAnimationFrame(c), typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches || typeof requestAnimationFrame > "u") {
|
|
3853
3853
|
s.value = e;
|
|
3854
3854
|
return;
|
|
@@ -4085,7 +4085,7 @@ function va(e, t, n, r, s, c) {
|
|
|
4085
4085
|
var ya = /*#__PURE__*/ Q(ea, [["render", va]]), ba = d({
|
|
4086
4086
|
name: "UzCamera",
|
|
4087
4087
|
components: {
|
|
4088
|
-
NButton:
|
|
4088
|
+
NButton: I,
|
|
4089
4089
|
NModal: Ce
|
|
4090
4090
|
},
|
|
4091
4091
|
props: {
|
|
@@ -4164,7 +4164,7 @@ var ya = /*#__PURE__*/ Q(ea, [["render", va]]), ba = d({
|
|
|
4164
4164
|
e.mode === "video" && g();
|
|
4165
4165
|
}), v(() => {
|
|
4166
4166
|
f();
|
|
4167
|
-
}),
|
|
4167
|
+
}), j([() => e.width, () => e.width], () => {
|
|
4168
4168
|
e.mode === "video" && (f(), g());
|
|
4169
4169
|
}), {
|
|
4170
4170
|
t: n,
|
|
@@ -4188,7 +4188,7 @@ function Ta(t, n, s, l, u, d) {
|
|
|
4188
4188
|
loading: t.loading,
|
|
4189
4189
|
onClick: t.doScan
|
|
4190
4190
|
}, {
|
|
4191
|
-
default:
|
|
4191
|
+
default: N(() => [c(A(t.t("Common.scan")), 1)]),
|
|
4192
4192
|
_: 1
|
|
4193
4193
|
}, 8, ["loading", "onClick"])) : i("", !0),
|
|
4194
4194
|
t.mode === "button" ? (x(), r(p, {
|
|
@@ -4201,7 +4201,7 @@ function Ta(t, n, s, l, u, d) {
|
|
|
4201
4201
|
"mask-closable": !1,
|
|
4202
4202
|
"on-after-leave": t.closeAll
|
|
4203
4203
|
}, {
|
|
4204
|
-
default:
|
|
4204
|
+
default: N(() => [o("div", {
|
|
4205
4205
|
class: "uz-scan-canvas-main",
|
|
4206
4206
|
style: _({
|
|
4207
4207
|
width: `${t.width}px`,
|
|
@@ -4237,8 +4237,8 @@ var Ea = /*#__PURE__*/ Q(ba, [["render", Ta]]), Da = /* @__PURE__ */ new WeakMap
|
|
|
4237
4237
|
name: "UzSearchBar",
|
|
4238
4238
|
components: {
|
|
4239
4239
|
NIcon: V,
|
|
4240
|
-
NButton:
|
|
4241
|
-
NButtonGroup:
|
|
4240
|
+
NButton: I,
|
|
4241
|
+
NButtonGroup: L,
|
|
4242
4242
|
NGrid: he,
|
|
4243
4243
|
NGridItem: ge,
|
|
4244
4244
|
NInputGroup: be,
|
|
@@ -4369,7 +4369,7 @@ var Ea = /*#__PURE__*/ Q(ba, [["render", Ta]]), Da = /* @__PURE__ */ new WeakMap
|
|
|
4369
4369
|
}
|
|
4370
4370
|
v(!0);
|
|
4371
4371
|
};
|
|
4372
|
-
return
|
|
4372
|
+
return j(() => e.data, (e) => {
|
|
4373
4373
|
C(e);
|
|
4374
4374
|
}), {
|
|
4375
4375
|
t: n,
|
|
@@ -4415,46 +4415,46 @@ function Fa(n, s, u, d, f, p) {
|
|
|
4415
4415
|
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
4416
|
return x(), a("div", {
|
|
4417
4417
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
4418
|
-
onKeyup: s[1] ||=
|
|
4418
|
+
onKeyup: s[1] ||= ne((e) => n.doSearch(!1), ["enter"])
|
|
4419
4419
|
}, [o("div", ka, [n.enableHeader ? (x(), a("div", Aa, [
|
|
4420
4420
|
E(n.$slots, "header"),
|
|
4421
4421
|
n.tabList && n.tabList.length > 0 ? (x(), a("div", ja, [l(h, null, {
|
|
4422
|
-
default:
|
|
4422
|
+
default: N(() => [(x(!0), a(e, null, T(n.tabList, (e) => (x(), r(m, {
|
|
4423
4423
|
key: e.value,
|
|
4424
4424
|
type: n.tabButtonType(e),
|
|
4425
4425
|
quaternary: "",
|
|
4426
4426
|
onClick: (t) => n.tabItemChange(e.value)
|
|
4427
4427
|
}, {
|
|
4428
|
-
default:
|
|
4428
|
+
default: N(() => [c(A(e.label), 1)]),
|
|
4429
4429
|
_: 2
|
|
4430
4430
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
4431
4431
|
_: 1
|
|
4432
4432
|
})])) : i("", !0),
|
|
4433
|
-
|
|
4433
|
+
P((x(), a("div", Ma, [l(C, {
|
|
4434
4434
|
"x-gap": "8",
|
|
4435
4435
|
"y-gap": "8",
|
|
4436
4436
|
cols: n.cols,
|
|
4437
4437
|
"collapsed-rows": 1,
|
|
4438
4438
|
collapsed: !0
|
|
4439
4439
|
}, {
|
|
4440
|
-
default:
|
|
4440
|
+
default: N(() => [n.offset > -1 ? (x(), r(_, {
|
|
4441
4441
|
key: 0,
|
|
4442
4442
|
offset: n.offset
|
|
4443
4443
|
}, null, 8, ["offset"])) : i("", !0), n.collapsed ? (x(!0), a(e, { key: 1 }, T(n.itemData, (e, t) => (x(), r(_, {
|
|
4444
4444
|
key: `${t}_${Date.now()}`,
|
|
4445
4445
|
span: e.search.show ? e.search.span === 1 ? n.gridSpan : e.search.span || n.gridSpan : 0
|
|
4446
4446
|
}, {
|
|
4447
|
-
default:
|
|
4448
|
-
default:
|
|
4447
|
+
default: N(() => [l(S, null, {
|
|
4448
|
+
default: N(() => [l(y, {
|
|
4449
4449
|
trigger: "hover",
|
|
4450
4450
|
placement: "top-start",
|
|
4451
4451
|
overlap: ""
|
|
4452
4452
|
}, {
|
|
4453
|
-
trigger:
|
|
4454
|
-
default:
|
|
4453
|
+
trigger: N(() => [l(v, { class: "uz-group-label" }, {
|
|
4454
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4455
4455
|
_: 2
|
|
4456
4456
|
}, 1024)]),
|
|
4457
|
-
default:
|
|
4457
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4458
4458
|
_: 2
|
|
4459
4459
|
}, 1024), l(b, {
|
|
4460
4460
|
item: e,
|
|
@@ -4473,8 +4473,8 @@ function Fa(n, s, u, d, f, p) {
|
|
|
4473
4473
|
secondary: "",
|
|
4474
4474
|
onClick: n.showMore
|
|
4475
4475
|
}, {
|
|
4476
|
-
icon:
|
|
4477
|
-
default:
|
|
4476
|
+
icon: N(() => [l(k, { class: g(["uz-search-more", n.collapsed ? void 0 : "uz-search-rotate"]) }, {
|
|
4477
|
+
default: N(() => [l(w, { icon: "ArrowDown" })]),
|
|
4478
4478
|
_: 1
|
|
4479
4479
|
}, 8, ["class"])]),
|
|
4480
4480
|
_: 1
|
|
@@ -4486,57 +4486,57 @@ function Fa(n, s, u, d, f, p) {
|
|
|
4486
4486
|
"show-arrow": !1,
|
|
4487
4487
|
style: { padding: "0" }
|
|
4488
4488
|
}, {
|
|
4489
|
-
trigger:
|
|
4489
|
+
trigger: N(() => [l(m, {
|
|
4490
4490
|
loading: n.loading,
|
|
4491
4491
|
secondary: "",
|
|
4492
4492
|
onClick: s[0] ||= (e) => n.doSearch(!1)
|
|
4493
4493
|
}, {
|
|
4494
|
-
icon:
|
|
4494
|
+
icon: N(() => [l(k, {
|
|
4495
4495
|
size: "18",
|
|
4496
4496
|
color: "#0086ff"
|
|
4497
4497
|
}, {
|
|
4498
|
-
default:
|
|
4498
|
+
default: N(() => [l(w, { icon: "Search" })]),
|
|
4499
4499
|
_: 1
|
|
4500
4500
|
})]),
|
|
4501
|
-
default:
|
|
4501
|
+
default: N(() => [c(" " + A(n.t("Common.search")), 1)]),
|
|
4502
4502
|
_: 1
|
|
4503
4503
|
}, 8, ["loading"])]),
|
|
4504
|
-
default:
|
|
4504
|
+
default: N(() => [l(m, {
|
|
4505
4505
|
loading: n.loading,
|
|
4506
4506
|
secondary: "",
|
|
4507
4507
|
onClick: n.clearAll
|
|
4508
4508
|
}, {
|
|
4509
|
-
icon:
|
|
4510
|
-
default:
|
|
4509
|
+
icon: N(() => [l(k, null, {
|
|
4510
|
+
default: N(() => [l(w, { icon: "Refresh" })]),
|
|
4511
4511
|
_: 1
|
|
4512
4512
|
})]),
|
|
4513
|
-
default:
|
|
4513
|
+
default: N(() => [c(" " + A(n.t("Common.reset")), 1)]),
|
|
4514
4514
|
_: 1
|
|
4515
4515
|
}, 8, ["loading", "onClick"])]),
|
|
4516
4516
|
_: 1
|
|
4517
4517
|
})) : i("", !0),
|
|
4518
4518
|
E(n.$slots, "action")
|
|
4519
4519
|
])) : i("", !0)]), l(t, { name: "uz-search-fields" }, {
|
|
4520
|
-
default:
|
|
4520
|
+
default: N(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div", Pa, [l(C, {
|
|
4521
4521
|
"x-gap": "8",
|
|
4522
4522
|
"y-gap": "8",
|
|
4523
4523
|
cols: 4
|
|
4524
4524
|
}, {
|
|
4525
|
-
default:
|
|
4525
|
+
default: N(() => [(x(!0), a(e, null, T(n.itemData, (e, t) => (x(), r(_, {
|
|
4526
4526
|
key: t,
|
|
4527
4527
|
span: e.search.show ? n.gridSpan / 2 : 0
|
|
4528
4528
|
}, {
|
|
4529
|
-
default:
|
|
4530
|
-
default:
|
|
4529
|
+
default: N(() => [l(S, null, {
|
|
4530
|
+
default: N(() => [l(y, {
|
|
4531
4531
|
trigger: "hover",
|
|
4532
4532
|
placement: "top-start",
|
|
4533
4533
|
overlap: ""
|
|
4534
4534
|
}, {
|
|
4535
|
-
trigger:
|
|
4536
|
-
default:
|
|
4535
|
+
trigger: N(() => [l(v, { class: "uz-group-label" }, {
|
|
4536
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4537
4537
|
_: 2
|
|
4538
4538
|
}, 1024)]),
|
|
4539
|
-
default:
|
|
4539
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4540
4540
|
_: 2
|
|
4541
4541
|
}, 1024), l(b, {
|
|
4542
4542
|
item: e,
|
|
@@ -4556,7 +4556,7 @@ var Ia = /*#__PURE__*/ Q(Oa, [["render", Fa]]), La = d({
|
|
|
4556
4556
|
name: "UzSearchMobileBar",
|
|
4557
4557
|
components: {
|
|
4558
4558
|
NIcon: V,
|
|
4559
|
-
NButton:
|
|
4559
|
+
NButton: I,
|
|
4560
4560
|
NDrawer: le,
|
|
4561
4561
|
NDrawerContent: ue,
|
|
4562
4562
|
NGrid: he,
|
|
@@ -4631,7 +4631,7 @@ var Ia = /*#__PURE__*/ Q(Oa, [["render", Fa]]), La = d({
|
|
|
4631
4631
|
}
|
|
4632
4632
|
l(!0);
|
|
4633
4633
|
};
|
|
4634
|
-
return
|
|
4634
|
+
return j(() => e.data, (e) => {
|
|
4635
4635
|
f(e);
|
|
4636
4636
|
}), {
|
|
4637
4637
|
t: n,
|
|
@@ -4650,11 +4650,11 @@ function Va(t, n, s, u, d, f) {
|
|
|
4650
4650
|
secondary: "",
|
|
4651
4651
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
4652
4652
|
}, {
|
|
4653
|
-
icon:
|
|
4654
|
-
default:
|
|
4653
|
+
icon: N(() => [l(m, { size: "18" }, {
|
|
4654
|
+
default: N(() => [l(p, { icon: "Search" })]),
|
|
4655
4655
|
_: 1
|
|
4656
4656
|
})]),
|
|
4657
|
-
default:
|
|
4657
|
+
default: N(() => [c(" " + A(t.t("Common.search")), 1)]),
|
|
4658
4658
|
_: 1
|
|
4659
4659
|
})) : i("", !0), E(t.$slots, "action")])]), l(C, {
|
|
4660
4660
|
show: t.drawer,
|
|
@@ -4666,21 +4666,21 @@ function Va(t, n, s, u, d, f) {
|
|
|
4666
4666
|
"auto-focus": !1,
|
|
4667
4667
|
"close-on-esc": !1
|
|
4668
4668
|
}, {
|
|
4669
|
-
default:
|
|
4669
|
+
default: N(() => [l(S, {
|
|
4670
4670
|
title: t.t("Common.search"),
|
|
4671
4671
|
closable: ""
|
|
4672
4672
|
}, {
|
|
4673
|
-
footer:
|
|
4673
|
+
footer: N(() => [o("div", Ba, [l(h, {
|
|
4674
4674
|
secondary: "",
|
|
4675
4675
|
loading: t.loading,
|
|
4676
4676
|
onClick: t.clearAll,
|
|
4677
4677
|
class: "uz-flex-1"
|
|
4678
4678
|
}, {
|
|
4679
|
-
icon:
|
|
4680
|
-
default:
|
|
4679
|
+
icon: N(() => [l(m, null, {
|
|
4680
|
+
default: N(() => [l(p, { icon: "Refresh" })]),
|
|
4681
4681
|
_: 1
|
|
4682
4682
|
})]),
|
|
4683
|
-
default:
|
|
4683
|
+
default: N(() => [c(" " + A(t.t("Common.reset")), 1)]),
|
|
4684
4684
|
_: 1
|
|
4685
4685
|
}, 8, ["loading", "onClick"]), t.itemData && Object.keys(t.itemData).length > 0 ? (x(), r(h, {
|
|
4686
4686
|
key: 0,
|
|
@@ -4689,25 +4689,25 @@ function Va(t, n, s, u, d, f) {
|
|
|
4689
4689
|
class: "uz-flex-1",
|
|
4690
4690
|
onClick: n[1] ||= (e) => t.doSearch(!1)
|
|
4691
4691
|
}, {
|
|
4692
|
-
icon:
|
|
4693
|
-
default:
|
|
4692
|
+
icon: N(() => [l(m, { size: "18" }, {
|
|
4693
|
+
default: N(() => [l(p, { icon: "Search" })]),
|
|
4694
4694
|
_: 1
|
|
4695
4695
|
})]),
|
|
4696
|
-
default:
|
|
4696
|
+
default: N(() => [c(" " + A(t.t("Common.search")), 1)]),
|
|
4697
4697
|
_: 1
|
|
4698
4698
|
}, 8, ["loading"])) : i("", !0)])]),
|
|
4699
|
-
default:
|
|
4699
|
+
default: N(() => [l(b, {
|
|
4700
4700
|
"x-gap": "8",
|
|
4701
4701
|
"y-gap": "8",
|
|
4702
4702
|
cols: "1"
|
|
4703
4703
|
}, {
|
|
4704
|
-
default:
|
|
4704
|
+
default: N(() => [(x(!0), a(e, null, T(t.itemData, (e, n) => (x(), r(y, {
|
|
4705
4705
|
key: `${n}_${Date.now()}`,
|
|
4706
4706
|
span: +!!e.search.show
|
|
4707
4707
|
}, {
|
|
4708
|
-
default:
|
|
4709
|
-
default:
|
|
4710
|
-
default:
|
|
4708
|
+
default: N(() => [l(v, null, {
|
|
4709
|
+
default: N(() => [l(g, { class: "uz-group-label" }, {
|
|
4710
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4711
4711
|
_: 2
|
|
4712
4712
|
}, 1024), l(_, {
|
|
4713
4713
|
item: e,
|
|
@@ -4728,7 +4728,7 @@ function Va(t, n, s, u, d, f) {
|
|
|
4728
4728
|
var Ha = /*#__PURE__*/ Q(La, [["render", Va]]), Ua = d({
|
|
4729
4729
|
name: "UzSpin",
|
|
4730
4730
|
components: {
|
|
4731
|
-
NButton:
|
|
4731
|
+
NButton: I,
|
|
4732
4732
|
NSpin: Me,
|
|
4733
4733
|
NEllipsis: fe
|
|
4734
4734
|
},
|
|
@@ -4760,7 +4760,7 @@ var Ha = /*#__PURE__*/ Q(La, [["render", Va]]), Ua = d({
|
|
|
4760
4760
|
};
|
|
4761
4761
|
return b(() => {
|
|
4762
4762
|
clearInterval(r.value);
|
|
4763
|
-
}),
|
|
4763
|
+
}), j(() => e.status, (e) => {
|
|
4764
4764
|
e === 1 && s();
|
|
4765
4765
|
}), {
|
|
4766
4766
|
t: n,
|
|
@@ -4775,28 +4775,28 @@ var Ha = /*#__PURE__*/ Q(La, [["render", Va]]), Ua = d({
|
|
|
4775
4775
|
function Wa(e, t, n, i, a, s) {
|
|
4776
4776
|
let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
|
|
4777
4777
|
return x(), r(f, { show: e.value }, {
|
|
4778
|
-
description:
|
|
4778
|
+
description: N(() => [
|
|
4779
4779
|
l(u, {
|
|
4780
4780
|
"expand-trigger": "click",
|
|
4781
4781
|
"line-clamp": "3",
|
|
4782
4782
|
tooltip: !1
|
|
4783
4783
|
}, {
|
|
4784
|
-
default:
|
|
4784
|
+
default: N(() => [c(A(e.status === 0 ? e.t("Spin.processing") : e.message), 1)]),
|
|
4785
4785
|
_: 1
|
|
4786
4786
|
}),
|
|
4787
4787
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
4788
|
-
|
|
4788
|
+
P(l(d, {
|
|
4789
4789
|
type: "warning",
|
|
4790
4790
|
block: "",
|
|
4791
4791
|
secondary: "",
|
|
4792
4792
|
onMouseover: e.stopCountdown,
|
|
4793
4793
|
onClick: e.handleClose
|
|
4794
4794
|
}, {
|
|
4795
|
-
default:
|
|
4795
|
+
default: N(() => [c(A(e.t("Spin.closeCountdown", { seconds: e.counts })), 1)]),
|
|
4796
4796
|
_: 1
|
|
4797
|
-
}, 8, ["onMouseover", "onClick"]), [[
|
|
4797
|
+
}, 8, ["onMouseover", "onClick"]), [[te, e.status === 1]])
|
|
4798
4798
|
]),
|
|
4799
|
-
default:
|
|
4799
|
+
default: N(() => [E(e.$slots, "default")]),
|
|
4800
4800
|
_: 3
|
|
4801
4801
|
}, 8, ["show"]);
|
|
4802
4802
|
}
|
|
@@ -4933,9 +4933,9 @@ var eo = d({
|
|
|
4933
4933
|
components: {
|
|
4934
4934
|
NDataTable: oe,
|
|
4935
4935
|
NPopover: Ee,
|
|
4936
|
-
NButton:
|
|
4936
|
+
NButton: I,
|
|
4937
4937
|
NIcon: V,
|
|
4938
|
-
NCheckbox:
|
|
4938
|
+
NCheckbox: R,
|
|
4939
4939
|
NSpin: Me,
|
|
4940
4940
|
VueDraggable: et,
|
|
4941
4941
|
UzSpin: Ga,
|
|
@@ -5075,13 +5075,13 @@ var eo = d({
|
|
|
5075
5075
|
pageMax: 1,
|
|
5076
5076
|
pageSize: e.pageSize || 30
|
|
5077
5077
|
}
|
|
5078
|
-
}), A = w([]), ee = w(void 0),
|
|
5078
|
+
}), A = w([]), ee = w(void 0), te = w(void 0), M = w([]), N = w([]), P = w([]), ne = w([]), F = w({
|
|
5079
5079
|
fetch: null,
|
|
5080
5080
|
fetchFn: "",
|
|
5081
5081
|
when_drawer_open: "",
|
|
5082
5082
|
when_before_save: "",
|
|
5083
5083
|
when_after_save: ""
|
|
5084
|
-
}),
|
|
5084
|
+
}), L = w(wi()), re = w(""), R = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, n) => {
|
|
5085
5085
|
t("update:rowKeys", {
|
|
5086
5086
|
keys: e,
|
|
5087
5087
|
rows: W(n)
|
|
@@ -5100,7 +5100,7 @@ var eo = d({
|
|
|
5100
5100
|
}, le = (e) => {
|
|
5101
5101
|
O.value = e;
|
|
5102
5102
|
}, ue = n(() => {
|
|
5103
|
-
let t = e.summary ||
|
|
5103
|
+
let t = e.summary || L.value.summary;
|
|
5104
5104
|
if (t && typeof t == "string") {
|
|
5105
5105
|
let e = Function("pageData", "h", t);
|
|
5106
5106
|
return (t) => e(t, f);
|
|
@@ -5112,8 +5112,8 @@ var eo = d({
|
|
|
5112
5112
|
...t,
|
|
5113
5113
|
tableId: n
|
|
5114
5114
|
});
|
|
5115
|
-
else if (
|
|
5116
|
-
let e =
|
|
5115
|
+
else if (F.value.fetchFn) {
|
|
5116
|
+
let e = F.value.fetchFn;
|
|
5117
5117
|
r = Function("POST", "queryData", e)(Z, { ...t });
|
|
5118
5118
|
} else r = Xn({
|
|
5119
5119
|
...t,
|
|
@@ -5126,8 +5126,8 @@ var eo = d({
|
|
|
5126
5126
|
id: t.id,
|
|
5127
5127
|
tableId: n
|
|
5128
5128
|
});
|
|
5129
|
-
else if (
|
|
5130
|
-
let e =
|
|
5129
|
+
else if (F.value.fetchFn) {
|
|
5130
|
+
let e = F.value.fetchFn;
|
|
5131
5131
|
r = Function("POST", "queryData", e)(Z, { id: t.id });
|
|
5132
5132
|
} else r = Xn({
|
|
5133
5133
|
id: t.id,
|
|
@@ -5138,14 +5138,14 @@ var eo = d({
|
|
|
5138
5138
|
let r = e.id || o.params.id;
|
|
5139
5139
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
5140
5140
|
let i = W(k.value);
|
|
5141
|
-
n && delete i.orderby,
|
|
5141
|
+
n && delete i.orderby, F.value.fetch ? tr([F.value.fetch], "", i).then((e) => {
|
|
5142
5142
|
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),
|
|
5143
|
+
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
5144
|
}).catch(() => {
|
|
5145
5145
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5146
5146
|
}) : de(i).then((e) => {
|
|
5147
5147
|
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),
|
|
5148
|
+
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
5149
|
}).catch(() => {
|
|
5150
5150
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5151
5151
|
});
|
|
@@ -5166,7 +5166,7 @@ var eo = d({
|
|
|
5166
5166
|
form: e,
|
|
5167
5167
|
data: {}
|
|
5168
5168
|
};
|
|
5169
|
-
},
|
|
5169
|
+
}, L.value, F.value, 0, Me);
|
|
5170
5170
|
}, _e = (e) => {
|
|
5171
5171
|
e.show = !e.show, je();
|
|
5172
5172
|
}, ve = (e) => {
|
|
@@ -5189,8 +5189,8 @@ var eo = d({
|
|
|
5189
5189
|
ellipsis: !0,
|
|
5190
5190
|
width: 180,
|
|
5191
5191
|
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(
|
|
5192
|
+
}], 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) => {
|
|
5193
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Ti(N.value, e, () => m.value?.getFormValues());
|
|
5194
5194
|
return x.value = t, {
|
|
5195
5195
|
form: t,
|
|
5196
5196
|
fillingDefaultValue: n,
|
|
@@ -5212,7 +5212,7 @@ var eo = d({
|
|
|
5212
5212
|
} catch (e) {
|
|
5213
5213
|
K(e);
|
|
5214
5214
|
}
|
|
5215
|
-
let o =
|
|
5215
|
+
let o = F.value.when_drawer_open;
|
|
5216
5216
|
if (o && typeof o == "string") try {
|
|
5217
5217
|
a = await Function("data", "POST", o)(a, Z).catch((e) => {
|
|
5218
5218
|
K(e);
|
|
@@ -5264,12 +5264,12 @@ var eo = d({
|
|
|
5264
5264
|
else if (n.type !== "group" && n.action === "detailInside") {
|
|
5265
5265
|
let t = W(n.onClick);
|
|
5266
5266
|
n.onClick = (n) => {
|
|
5267
|
-
m.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t),
|
|
5267
|
+
m.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t), L.value, F.value, 2, Me);
|
|
5268
5268
|
};
|
|
5269
5269
|
} else if (n.type !== "group" && n.action === "editInside") {
|
|
5270
5270
|
let t = W(n.onClick);
|
|
5271
5271
|
n.onClick = (n) => {
|
|
5272
|
-
m.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t),
|
|
5272
|
+
m.value?.addAndEdit(e.id || o.params.id, () => Ce(n, t), L.value, F.value, 1, Me);
|
|
5273
5273
|
};
|
|
5274
5274
|
} else if (n.type !== "group" && n.action === "deleteInside") {
|
|
5275
5275
|
let t = W(n.onClick);
|
|
@@ -5351,9 +5351,9 @@ var eo = d({
|
|
|
5351
5351
|
};
|
|
5352
5352
|
}
|
|
5353
5353
|
}, Te = async () => {
|
|
5354
|
-
|
|
5355
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Ei(
|
|
5356
|
-
!l.value &&
|
|
5354
|
+
R.value = !1, gi();
|
|
5355
|
+
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Ei(N.value, e.child, 0, () => ({}), ae);
|
|
5356
|
+
!l.value && L.value.index && n.unshift({
|
|
5357
5357
|
title: "#",
|
|
5358
5358
|
key: "index",
|
|
5359
5359
|
align: "center",
|
|
@@ -5368,18 +5368,18 @@ var eo = d({
|
|
|
5368
5368
|
return (e - 1) * n + (t + 1);
|
|
5369
5369
|
} });
|
|
5370
5370
|
}
|
|
5371
|
-
}), !l.value && (e.selection ||
|
|
5371
|
+
}), !l.value && (e.selection || L.value.selection !== 0) && n.unshift({
|
|
5372
5372
|
type: "selection",
|
|
5373
5373
|
fixed: "left",
|
|
5374
5374
|
width: 60,
|
|
5375
5375
|
hide: !0,
|
|
5376
5376
|
show: !0,
|
|
5377
|
-
multiple: e.selection === 2 ||
|
|
5377
|
+
multiple: e.selection === 2 || L.value.selection === 2,
|
|
5378
5378
|
options: ["all", "none"]
|
|
5379
5379
|
});
|
|
5380
5380
|
let c = e.id || o.params.id;
|
|
5381
|
-
if (!l.value &&
|
|
5382
|
-
let e = W(
|
|
5381
|
+
if (!l.value && L.value.commonTime && n.push(...ye()), e.enableAction === !0 && P.value && P.value.length > 0) {
|
|
5382
|
+
let e = W(P.value);
|
|
5383
5383
|
for (let t of e) t.type === "group" ? t.children.forEach((e) => {
|
|
5384
5384
|
we(e, i);
|
|
5385
5385
|
}) : we(t, i);
|
|
@@ -5392,7 +5392,7 @@ var eo = d({
|
|
|
5392
5392
|
checked: !0,
|
|
5393
5393
|
show: !0,
|
|
5394
5394
|
hide: !0,
|
|
5395
|
-
width: Number(typeof
|
|
5395
|
+
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
5396
5396
|
render(t) {
|
|
5397
5397
|
return ur({
|
|
5398
5398
|
buttons: e,
|
|
@@ -5427,12 +5427,12 @@ var eo = d({
|
|
|
5427
5427
|
return !1;
|
|
5428
5428
|
}
|
|
5429
5429
|
} : () => !0,
|
|
5430
|
-
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(
|
|
5430
|
+
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(I, { onClick: ze }, { default: () => s("Common.expand") }), f(I, { onClick: Be }, { default: () => s("Common.contract") })]),
|
|
5431
5431
|
renderExpand: (e) => f(Ja, {
|
|
5432
5432
|
data: a,
|
|
5433
5433
|
value: e
|
|
5434
5434
|
})
|
|
5435
|
-
}),
|
|
5435
|
+
}), L.value.asynchronous ? t("update:asynchronous", L.value.asynchronous) : t("update:asynchronous", null);
|
|
5436
5436
|
let d = 0;
|
|
5437
5437
|
u.forEach((e) => {
|
|
5438
5438
|
e.show && (d += Number(e.width || 140));
|
|
@@ -5440,7 +5440,7 @@ var eo = d({
|
|
|
5440
5440
|
}, Ee = (e) => typeof e == "number" ? `${e}px` : e, De = () => {
|
|
5441
5441
|
if (e.height) {
|
|
5442
5442
|
let t = Ee(e.height);
|
|
5443
|
-
ee.value = t,
|
|
5443
|
+
ee.value = t, te.value = t;
|
|
5444
5444
|
}
|
|
5445
5445
|
}, Oe = (t) => {
|
|
5446
5446
|
let n = e.id || o.params.id;
|
|
@@ -5484,15 +5484,15 @@ var eo = d({
|
|
|
5484
5484
|
tableId: a,
|
|
5485
5485
|
...t
|
|
5486
5486
|
}), i.then((e) => {
|
|
5487
|
-
if (
|
|
5488
|
-
let r =
|
|
5487
|
+
if (F.value.when_after_save) try {
|
|
5488
|
+
let r = F.value.when_after_save;
|
|
5489
5489
|
Function("data", "POST", "res", r)(t, Z, e).then(() => {
|
|
5490
5490
|
B(), n();
|
|
5491
5491
|
}).catch(() => {
|
|
5492
|
-
|
|
5492
|
+
re.value = s("Notice.network"), R.value = !0;
|
|
5493
5493
|
});
|
|
5494
5494
|
} catch {
|
|
5495
|
-
|
|
5495
|
+
re.value = s("Notice.network"), R.value = !0;
|
|
5496
5496
|
return;
|
|
5497
5497
|
}
|
|
5498
5498
|
else B(), n();
|
|
@@ -5500,20 +5500,20 @@ var eo = d({
|
|
|
5500
5500
|
r(e);
|
|
5501
5501
|
});
|
|
5502
5502
|
}, Ne = () => {
|
|
5503
|
-
b.value = "",
|
|
5503
|
+
b.value = "", N.value = [], P.value = [], ne.value = [], F.value = {
|
|
5504
5504
|
fetch: null,
|
|
5505
5505
|
fetchFn: "",
|
|
5506
5506
|
when_drawer_open: "",
|
|
5507
5507
|
when_before_save: "",
|
|
5508
5508
|
when_after_save: ""
|
|
5509
|
-
},
|
|
5509
|
+
}, L.value = wi();
|
|
5510
5510
|
}, Pe = (t) => {
|
|
5511
5511
|
let n = tt.parse(t.viewJson);
|
|
5512
|
-
b.value = t.tableTitle,
|
|
5512
|
+
b.value = t.tableTitle, N.value = bi(n.table), P.value = vr(e.actions || n.action);
|
|
5513
5513
|
let r = vr(n.suffix || []);
|
|
5514
|
-
|
|
5514
|
+
ne.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), F.value = Si(n.trigger);
|
|
5515
5515
|
let i = wi(e.options ?? n.option);
|
|
5516
|
-
t.tableTitle && i.title && Mt(t.tableTitle),
|
|
5516
|
+
t.tableTitle && i.title && Mt(t.tableTitle), L.value = i;
|
|
5517
5517
|
}, Fe = async () => {
|
|
5518
5518
|
v.value = !1, Ne();
|
|
5519
5519
|
let t = e.id || o.params.id;
|
|
@@ -5525,15 +5525,15 @@ var eo = d({
|
|
|
5525
5525
|
pageSize: e.pageSize || 30
|
|
5526
5526
|
}
|
|
5527
5527
|
}, E.value = [], e.ruleFetch) try {
|
|
5528
|
-
|
|
5528
|
+
M.value = await e.ruleFetch(t);
|
|
5529
5529
|
} catch {
|
|
5530
|
-
|
|
5530
|
+
re.value = s("Notice.network"), R.value = !0;
|
|
5531
5531
|
return;
|
|
5532
5532
|
}
|
|
5533
|
-
De(), e.columns ? (
|
|
5533
|
+
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
5534
|
Pe(e), await Te();
|
|
5535
5535
|
}).catch((e) => {
|
|
5536
|
-
|
|
5536
|
+
re.value = e?.message || s("Notice.network"), R.value = !0;
|
|
5537
5537
|
});
|
|
5538
5538
|
}, Ie = (e) => {
|
|
5539
5539
|
if (e.type !== "group" && e.optionsType) {
|
|
@@ -5592,19 +5592,19 @@ var eo = d({
|
|
|
5592
5592
|
right: 0
|
|
5593
5593
|
});
|
|
5594
5594
|
});
|
|
5595
|
-
}),
|
|
5595
|
+
}), j(() => e.height, () => {
|
|
5596
5596
|
De();
|
|
5597
|
-
}),
|
|
5597
|
+
}), j([() => o.params.id, () => e.id], async () => {
|
|
5598
5598
|
kt(), await Fe();
|
|
5599
|
-
}),
|
|
5599
|
+
}), j(() => e.defaultCheckedRowKeys, (e) => {
|
|
5600
5600
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
5601
5601
|
ie.value = t, z.value = n;
|
|
5602
5602
|
}, { deep: !0 }), {
|
|
5603
5603
|
loading: _,
|
|
5604
5604
|
minH: ee,
|
|
5605
|
-
maxH:
|
|
5605
|
+
maxH: te,
|
|
5606
5606
|
drawerRef: m,
|
|
5607
|
-
tableOption:
|
|
5607
|
+
tableOption: L,
|
|
5608
5608
|
tableCols: T,
|
|
5609
5609
|
tableData: E,
|
|
5610
5610
|
tableQueries: k,
|
|
@@ -5613,10 +5613,10 @@ var eo = d({
|
|
|
5613
5613
|
isSlotHeader: g,
|
|
5614
5614
|
title: b,
|
|
5615
5615
|
dynamicLoading: v,
|
|
5616
|
-
spinMsg:
|
|
5616
|
+
spinMsg: re,
|
|
5617
5617
|
tableScrollX: D,
|
|
5618
|
-
suffixes:
|
|
5619
|
-
spinError:
|
|
5618
|
+
suffixes: ne,
|
|
5619
|
+
spinError: R,
|
|
5620
5620
|
isMobile: l,
|
|
5621
5621
|
mRef: u,
|
|
5622
5622
|
checkRowKeys: ie,
|
|
@@ -5654,17 +5654,17 @@ var eo = d({
|
|
|
5654
5654
|
class: "uz-transform-fade-in"
|
|
5655
5655
|
}, io = { class: "uz-com-title" }, ao = ["data-index"];
|
|
5656
5656
|
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"),
|
|
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"), j = D("UzSearchBar"), M = D("NDataTable"), ne = D("NSpin"), F = D("UzTableDrawer");
|
|
5658
5658
|
return x(), a("div", {
|
|
5659
5659
|
class: "uz-table",
|
|
5660
5660
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
5661
5661
|
}, [
|
|
5662
|
-
|
|
5663
|
-
|
|
5662
|
+
P(l(m, null, null, 512), [[te, !t.dynamicLoading]]),
|
|
5663
|
+
P(l(ne, {
|
|
5664
5664
|
show: t.spinError,
|
|
5665
5665
|
class: "uz-table-n-spin"
|
|
5666
5666
|
}, {
|
|
5667
|
-
description:
|
|
5667
|
+
description: N(() => [
|
|
5668
5668
|
o("div", null, A(t.spinMsg), 1),
|
|
5669
5669
|
n[1] ||= o("div", { class: "uz-br" }, null, -1),
|
|
5670
5670
|
l(h, {
|
|
@@ -5672,11 +5672,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5672
5672
|
onClick: t.rebuild,
|
|
5673
5673
|
block: ""
|
|
5674
5674
|
}, {
|
|
5675
|
-
default:
|
|
5675
|
+
default: N(() => [c(A(t.$t("Common.retry")), 1)]),
|
|
5676
5676
|
_: 1
|
|
5677
5677
|
}, 8, ["onClick"])
|
|
5678
5678
|
]),
|
|
5679
|
-
default:
|
|
5679
|
+
default: N(() => [t.isMobile ? (x(), a("div", {
|
|
5680
5680
|
key: 0,
|
|
5681
5681
|
class: g([t.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
|
|
5682
5682
|
}, [l(S, {
|
|
@@ -5686,18 +5686,18 @@ function oo(t, n, u, d, f, p) {
|
|
|
5686
5686
|
loading: t.loading,
|
|
5687
5687
|
"onOnUpdate:value": t.submit
|
|
5688
5688
|
}, s({
|
|
5689
|
-
action:
|
|
5689
|
+
action: N(() => [
|
|
5690
5690
|
t.addFetch && t.tableOption.addButton ? (x(), r(h, {
|
|
5691
5691
|
key: 0,
|
|
5692
5692
|
secondary: "",
|
|
5693
5693
|
disabled: t.checkRole("add"),
|
|
5694
5694
|
onClick: t.handleAdd
|
|
5695
5695
|
}, {
|
|
5696
|
-
icon:
|
|
5697
|
-
default:
|
|
5696
|
+
icon: N(() => [l(y, null, {
|
|
5697
|
+
default: N(() => [l(v, { icon: "Add" })]),
|
|
5698
5698
|
_: 1
|
|
5699
5699
|
})]),
|
|
5700
|
-
default:
|
|
5700
|
+
default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
|
|
5701
5701
|
_: 1
|
|
5702
5702
|
}, 8, ["disabled", "onClick"])) : i("", !0),
|
|
5703
5703
|
t.suffixes && t.suffixes.length > 0 ? (x(), r(b, {
|
|
@@ -5714,11 +5714,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5714
5714
|
_: 2
|
|
5715
5715
|
}, [t.isSlotHeader ? {
|
|
5716
5716
|
name: "header",
|
|
5717
|
-
fn:
|
|
5717
|
+
fn: N(() => [E(t.$slots, "header")]),
|
|
5718
5718
|
key: "0"
|
|
5719
5719
|
} : {
|
|
5720
5720
|
name: "header",
|
|
5721
|
-
fn:
|
|
5721
|
+
fn: N(() => [o("div", to, A(t.title), 1)]),
|
|
5722
5722
|
key: "1"
|
|
5723
5723
|
}]), 1032, [
|
|
5724
5724
|
"data",
|
|
@@ -5744,7 +5744,7 @@ function oo(t, n, u, d, f, p) {
|
|
|
5744
5744
|
"minH",
|
|
5745
5745
|
"maxH",
|
|
5746
5746
|
"onUpdate:rowKeys"
|
|
5747
|
-
])], 512)], 2)) : (x(), a("div", ro, [l(
|
|
5747
|
+
])], 512)], 2)) : (x(), a("div", ro, [l(j, {
|
|
5748
5748
|
data: t.searchData,
|
|
5749
5749
|
id: t.id || t.route.params.id,
|
|
5750
5750
|
cache: t.tableOption.cache,
|
|
@@ -5753,22 +5753,22 @@ function oo(t, n, u, d, f, p) {
|
|
|
5753
5753
|
enableHeader: t.enableHeader,
|
|
5754
5754
|
"onOnUpdate:value": t.submit
|
|
5755
5755
|
}, s({
|
|
5756
|
-
action:
|
|
5756
|
+
action: N(() => [
|
|
5757
5757
|
t.tableOption.filterButton && t.filterColumns.length > 0 ? (x(), r(k, {
|
|
5758
5758
|
key: 0,
|
|
5759
5759
|
placement: "bottom-end",
|
|
5760
5760
|
trigger: "click",
|
|
5761
5761
|
"show-arrow": !1
|
|
5762
5762
|
}, {
|
|
5763
|
-
trigger:
|
|
5764
|
-
icon:
|
|
5765
|
-
default:
|
|
5763
|
+
trigger: N(() => [l(h, { secondary: "" }, {
|
|
5764
|
+
icon: N(() => [l(y, null, {
|
|
5765
|
+
default: N(() => [l(v, { icon: "Filter" })]),
|
|
5766
5766
|
_: 1
|
|
5767
5767
|
})]),
|
|
5768
|
-
default:
|
|
5768
|
+
default: N(() => [c(" " + A(t.$t("Common.columns")), 1)]),
|
|
5769
5769
|
_: 1
|
|
5770
5770
|
})]),
|
|
5771
|
-
default:
|
|
5771
|
+
default: N(() => [l(O, {
|
|
5772
5772
|
modelValue: t.filterColumns,
|
|
5773
5773
|
"onUpdate:modelValue": n[0] ||= (e) => t.filterColumns = e,
|
|
5774
5774
|
animation: 200,
|
|
@@ -5779,7 +5779,7 @@ function oo(t, n, u, d, f, p) {
|
|
|
5779
5779
|
handle: ".uz-drag-handle",
|
|
5780
5780
|
onEnd: t.handleColumnChange
|
|
5781
5781
|
}, {
|
|
5782
|
-
default:
|
|
5782
|
+
default: N(() => [(x(!0), a(e, null, T(t.filterColumns, (e, n) => P((x(), a("div", {
|
|
5783
5783
|
key: e.key,
|
|
5784
5784
|
class: "uz-table-sort",
|
|
5785
5785
|
"data-index": n
|
|
@@ -5788,24 +5788,24 @@ function oo(t, n, u, d, f, p) {
|
|
|
5788
5788
|
"on-update:checked": () => t.showChange(e),
|
|
5789
5789
|
size: "large"
|
|
5790
5790
|
}, {
|
|
5791
|
-
default:
|
|
5791
|
+
default: N(() => [c(A(typeof e.title == "string" ? e.title : e.title && e.title()), 1)]),
|
|
5792
5792
|
_: 2
|
|
5793
5793
|
}, 1032, ["checked", "on-update:checked"]), l(h, {
|
|
5794
5794
|
quaternary: "",
|
|
5795
5795
|
class: "uz-drag-handle"
|
|
5796
5796
|
}, {
|
|
5797
|
-
icon:
|
|
5798
|
-
default:
|
|
5797
|
+
icon: N(() => [l(y, { size: "18" }, {
|
|
5798
|
+
default: N(() => [l(v, { icon: "List" })]),
|
|
5799
5799
|
_: 1
|
|
5800
5800
|
})]),
|
|
5801
5801
|
_: 1
|
|
5802
|
-
})], 8, ao)), [[
|
|
5802
|
+
})], 8, ao)), [[te, !e.hide]])), 128)), l(h, {
|
|
5803
5803
|
block: "",
|
|
5804
5804
|
tertiary: "",
|
|
5805
5805
|
loading: t.loading,
|
|
5806
5806
|
onClick: t.resetFilter
|
|
5807
5807
|
}, {
|
|
5808
|
-
default:
|
|
5808
|
+
default: N(() => [c(A(t.$t("Common.reset")), 1)]),
|
|
5809
5809
|
_: 1
|
|
5810
5810
|
}, 8, ["loading", "onClick"])]),
|
|
5811
5811
|
_: 1
|
|
@@ -5837,11 +5837,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5837
5837
|
disabled: t.checkRole("add"),
|
|
5838
5838
|
onClick: t.handleAdd
|
|
5839
5839
|
}, {
|
|
5840
|
-
icon:
|
|
5841
|
-
default:
|
|
5840
|
+
icon: N(() => [l(y, null, {
|
|
5841
|
+
default: N(() => [l(v, { icon: "Add" })]),
|
|
5842
5842
|
_: 1
|
|
5843
5843
|
})]),
|
|
5844
|
-
default:
|
|
5844
|
+
default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
|
|
5845
5845
|
_: 1
|
|
5846
5846
|
}, 8, ["disabled", "onClick"])) : i("", !0),
|
|
5847
5847
|
E(t.$slots, "action")
|
|
@@ -5849,11 +5849,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5849
5849
|
_: 2
|
|
5850
5850
|
}, [t.isSlotHeader ? {
|
|
5851
5851
|
name: "header",
|
|
5852
|
-
fn:
|
|
5852
|
+
fn: N(() => [E(t.$slots, "header")]),
|
|
5853
5853
|
key: "0"
|
|
5854
5854
|
} : {
|
|
5855
5855
|
name: "header",
|
|
5856
|
-
fn:
|
|
5856
|
+
fn: N(() => [o("div", io, A(t.title), 1)]),
|
|
5857
5857
|
key: "1"
|
|
5858
5858
|
}]), 1032, [
|
|
5859
5859
|
"data",
|
|
@@ -5863,7 +5863,7 @@ function oo(t, n, u, d, f, p) {
|
|
|
5863
5863
|
"cols",
|
|
5864
5864
|
"enableHeader",
|
|
5865
5865
|
"onOnUpdate:value"
|
|
5866
|
-
]), l(
|
|
5866
|
+
]), l(M, {
|
|
5867
5867
|
ref: "tableRef",
|
|
5868
5868
|
columns: t.tableCols,
|
|
5869
5869
|
data: t.tableData,
|
|
@@ -5910,8 +5910,8 @@ function oo(t, n, u, d, f, p) {
|
|
|
5910
5910
|
"onUpdate:expandedRowKeys"
|
|
5911
5911
|
])]))]),
|
|
5912
5912
|
_: 3
|
|
5913
|
-
}, 8, ["show"]), [[
|
|
5914
|
-
l(
|
|
5913
|
+
}, 8, ["show"]), [[te, t.dynamicLoading]]),
|
|
5914
|
+
l(F, { ref: "drawerRef" }, null, 512)
|
|
5915
5915
|
], 4);
|
|
5916
5916
|
}
|
|
5917
5917
|
var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
@@ -5919,7 +5919,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
5919
5919
|
components: {
|
|
5920
5920
|
UzIcon: qt,
|
|
5921
5921
|
NSpin: Me,
|
|
5922
|
-
NButton:
|
|
5922
|
+
NButton: I,
|
|
5923
5923
|
NIcon: V,
|
|
5924
5924
|
NDataTable: oe,
|
|
5925
5925
|
NForm: pe,
|
|
@@ -5967,10 +5967,10 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
5967
5967
|
K(e);
|
|
5968
5968
|
}
|
|
5969
5969
|
b.value.child = r, g.value = !1, h(() => {
|
|
5970
|
-
|
|
5970
|
+
P();
|
|
5971
5971
|
});
|
|
5972
5972
|
} else h(() => {
|
|
5973
|
-
|
|
5973
|
+
P();
|
|
5974
5974
|
});
|
|
5975
5975
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5976
5976
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
@@ -6042,9 +6042,9 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6042
6042
|
return [];
|
|
6043
6043
|
}, ee = async () => {
|
|
6044
6044
|
x.value = "", b.value.child.push(W(S.value)), h(() => {
|
|
6045
|
-
|
|
6045
|
+
P();
|
|
6046
6046
|
});
|
|
6047
|
-
},
|
|
6047
|
+
}, te = async () => {
|
|
6048
6048
|
x.value = "";
|
|
6049
6049
|
try {
|
|
6050
6050
|
let t = e.item.params.options;
|
|
@@ -6057,7 +6057,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6057
6057
|
callback: async (e) => {
|
|
6058
6058
|
let t = await n(e, o, Z);
|
|
6059
6059
|
b.value.child = [...b.value.child, ...t], h(() => {
|
|
6060
|
-
|
|
6060
|
+
P();
|
|
6061
6061
|
});
|
|
6062
6062
|
}
|
|
6063
6063
|
});
|
|
@@ -6067,21 +6067,21 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6067
6067
|
children: () => b.value.child,
|
|
6068
6068
|
callback: async (e) => {
|
|
6069
6069
|
b.value.child = [...b.value.child, ...e], h(() => {
|
|
6070
|
-
|
|
6070
|
+
P();
|
|
6071
6071
|
});
|
|
6072
6072
|
}
|
|
6073
6073
|
});
|
|
6074
6074
|
} catch (e) {
|
|
6075
6075
|
K(e);
|
|
6076
6076
|
}
|
|
6077
|
-
},
|
|
6077
|
+
}, M = () => {
|
|
6078
6078
|
m.value?.restoreValidation();
|
|
6079
|
-
},
|
|
6079
|
+
}, N = () => (x.value = "", new Promise((t, n) => {
|
|
6080
6080
|
let r = b.value.child.filter((e) => !e.delete).length;
|
|
6081
6081
|
e.item.form.rule.required && r === 0 ? (x.value = e.item.form.rule.message, n()) : m.value?.validate((r) => {
|
|
6082
6082
|
r ? (x.value = e.item.form.rule.message, n()) : t();
|
|
6083
6083
|
});
|
|
6084
|
-
})),
|
|
6084
|
+
})), P = () => {
|
|
6085
6085
|
if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
|
|
6086
6086
|
let e = u.value.$el.querySelector(".n-data-table-tbody");
|
|
6087
6087
|
e && (d.value = nt.create(e, {
|
|
@@ -6094,7 +6094,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6094
6094
|
sort_index: t
|
|
6095
6095
|
})), b.value.child = n, h(() => {
|
|
6096
6096
|
_.value = !0, setTimeout(() => {
|
|
6097
|
-
|
|
6097
|
+
P();
|
|
6098
6098
|
}, 0);
|
|
6099
6099
|
});
|
|
6100
6100
|
}
|
|
@@ -6104,21 +6104,21 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6104
6104
|
return v(() => {
|
|
6105
6105
|
d.value?.destroy(), d.value = null;
|
|
6106
6106
|
}), r({
|
|
6107
|
-
validate:
|
|
6108
|
-
restoreValidation:
|
|
6109
|
-
}),
|
|
6107
|
+
validate: N,
|
|
6108
|
+
restoreValidation: M
|
|
6109
|
+
}), j(() => e.item.params.columns, (e, t) => {
|
|
6110
6110
|
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
6111
6111
|
}, {
|
|
6112
6112
|
deep: !0,
|
|
6113
6113
|
immediate: !0
|
|
6114
|
-
}),
|
|
6114
|
+
}), j(() => e.value, (e) => {
|
|
6115
6115
|
JSON.stringify(e) !== JSON.stringify(b.value.child) && D(e);
|
|
6116
6116
|
}, {
|
|
6117
6117
|
deep: !0,
|
|
6118
6118
|
immediate: !0
|
|
6119
|
-
}),
|
|
6119
|
+
}), j(() => b.value.child, (n) => {
|
|
6120
6120
|
e.status !== 2 && t("update:value", n);
|
|
6121
|
-
}, { deep: !0 }),
|
|
6121
|
+
}, { deep: !0 }), j(() => c.value, async () => {
|
|
6122
6122
|
await k(void 0, !0);
|
|
6123
6123
|
}), {
|
|
6124
6124
|
t: l,
|
|
@@ -6133,7 +6133,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6133
6133
|
tableShow: _,
|
|
6134
6134
|
suffixes: C,
|
|
6135
6135
|
onAdd: ee,
|
|
6136
|
-
onAddFormData:
|
|
6136
|
+
onAddFormData: te,
|
|
6137
6137
|
rowClassName: O,
|
|
6138
6138
|
doSuffixClick: (e) => {
|
|
6139
6139
|
i({
|
|
@@ -6161,12 +6161,12 @@ function go(t, n, u, d, f, p) {
|
|
|
6161
6161
|
secondary: "",
|
|
6162
6162
|
onClick: (n) => t.doSuffixClick(e)
|
|
6163
6163
|
}, s({
|
|
6164
|
-
default:
|
|
6164
|
+
default: N(() => [c(" " + A(e.buttonText), 1)]),
|
|
6165
6165
|
_: 2
|
|
6166
6166
|
}, [e.icon ? {
|
|
6167
6167
|
name: "icon",
|
|
6168
|
-
fn:
|
|
6169
|
-
default:
|
|
6168
|
+
fn: N(() => [l(h, null, {
|
|
6169
|
+
default: N(() => [l(m, { icon: e.icon }, null, 8, ["icon"])]),
|
|
6170
6170
|
_: 2
|
|
6171
6171
|
}, 1024)]),
|
|
6172
6172
|
key: "0"
|
|
@@ -6177,11 +6177,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6177
6177
|
secondary: "",
|
|
6178
6178
|
onClick: t.onAddFormData
|
|
6179
6179
|
}, {
|
|
6180
|
-
icon:
|
|
6181
|
-
default:
|
|
6180
|
+
icon: N(() => [l(h, null, {
|
|
6181
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6182
6182
|
_: 1
|
|
6183
6183
|
})]),
|
|
6184
|
-
default:
|
|
6184
|
+
default: N(() => [c(" " + A(t.t("Table.addFromData")), 1)]),
|
|
6185
6185
|
_: 1
|
|
6186
6186
|
}, 8, ["onClick"])) : i("", !0),
|
|
6187
6187
|
t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
|
|
@@ -6190,11 +6190,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6190
6190
|
secondary: "",
|
|
6191
6191
|
onClick: t.onAdd
|
|
6192
6192
|
}, {
|
|
6193
|
-
icon:
|
|
6194
|
-
default:
|
|
6193
|
+
icon: N(() => [l(h, null, {
|
|
6194
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6195
6195
|
_: 1
|
|
6196
6196
|
})]),
|
|
6197
|
-
default:
|
|
6197
|
+
default: N(() => [c(" " + A(t.t("Common.add")), 1)]),
|
|
6198
6198
|
_: 1
|
|
6199
6199
|
}, 8, ["onClick"])) : i("", !0)
|
|
6200
6200
|
])]),
|
|
@@ -6205,7 +6205,7 @@ function go(t, n, u, d, f, p) {
|
|
|
6205
6205
|
model: t.tableData,
|
|
6206
6206
|
class: "uz-flex uz-flex-col uz-gap-2"
|
|
6207
6207
|
}, {
|
|
6208
|
-
default:
|
|
6208
|
+
default: N(() => [t.tableShow ? (x(), r(v, {
|
|
6209
6209
|
key: 0,
|
|
6210
6210
|
ref: "tableRef",
|
|
6211
6211
|
columns: t.columns,
|
|
@@ -6233,11 +6233,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6233
6233
|
secondary: "",
|
|
6234
6234
|
onClick: t.onAddFormData
|
|
6235
6235
|
}, {
|
|
6236
|
-
icon:
|
|
6237
|
-
default:
|
|
6236
|
+
icon: N(() => [l(h, null, {
|
|
6237
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6238
6238
|
_: 1
|
|
6239
6239
|
})]),
|
|
6240
|
-
default:
|
|
6240
|
+
default: N(() => [c(" " + A(t.t("Table.addFromData")), 1)]),
|
|
6241
6241
|
_: 1
|
|
6242
6242
|
}, 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
6243
|
key: 1,
|
|
@@ -6245,11 +6245,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6245
6245
|
secondary: "",
|
|
6246
6246
|
onClick: t.onAdd
|
|
6247
6247
|
}, {
|
|
6248
|
-
icon:
|
|
6249
|
-
default:
|
|
6248
|
+
icon: N(() => [l(h, null, {
|
|
6249
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6250
6250
|
_: 1
|
|
6251
6251
|
})]),
|
|
6252
|
-
default:
|
|
6252
|
+
default: N(() => [c(" " + A(t.t("Common.add")), 1)]),
|
|
6253
6253
|
_: 1
|
|
6254
6254
|
}, 8, ["onClick"])) : i("", !0)])]),
|
|
6255
6255
|
_: 1
|
|
@@ -6321,7 +6321,7 @@ var _o = /*#__PURE__*/ Q(co, [["render", go]]), vo = d({
|
|
|
6321
6321
|
};
|
|
6322
6322
|
return y(() => {
|
|
6323
6323
|
l();
|
|
6324
|
-
}),
|
|
6324
|
+
}), M(async () => {
|
|
6325
6325
|
try {
|
|
6326
6326
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
6327
6327
|
let t = await Xn({
|
|
@@ -6387,7 +6387,7 @@ function So(e, t, n, r, i, s) {
|
|
|
6387
6387
|
var Co = /*#__PURE__*/ Q(vo, [["render", So]]), wo = d({
|
|
6388
6388
|
name: "UzTableDrawer",
|
|
6389
6389
|
components: {
|
|
6390
|
-
NButton:
|
|
6390
|
+
NButton: I,
|
|
6391
6391
|
NDrawerContent: ue,
|
|
6392
6392
|
NDrawer: le,
|
|
6393
6393
|
NSkeleton: Ae,
|
|
@@ -6571,19 +6571,19 @@ function ko(t, n, u, d, f, p) {
|
|
|
6571
6571
|
"auto-focus": !1,
|
|
6572
6572
|
"mask-closable": !1
|
|
6573
6573
|
}, {
|
|
6574
|
-
default:
|
|
6574
|
+
default: N(() => [l(b, {
|
|
6575
6575
|
title: t.formStatus === 1 ? t.t("Common.edit") : t.formStatus === 2 ? t.t("Common.detail") : t.t("Common.add"),
|
|
6576
6576
|
closable: ""
|
|
6577
6577
|
}, s({
|
|
6578
|
-
default:
|
|
6579
|
-
description:
|
|
6580
|
-
default:
|
|
6578
|
+
default: N(() => [l(_, { show: t.spinError }, {
|
|
6579
|
+
description: N(() => [c(A(t.t("Notice.error")), 1)]),
|
|
6580
|
+
default: N(() => [l(g, {
|
|
6581
6581
|
value: t.spinShow,
|
|
6582
6582
|
"onUpdate:value": n[0] ||= (e) => t.spinShow = e,
|
|
6583
6583
|
message: t.spinMsg,
|
|
6584
6584
|
status: t.spinStatus
|
|
6585
6585
|
}, {
|
|
6586
|
-
default:
|
|
6586
|
+
default: N(() => [o("div", To, [t.skeletonShow ? (x(), a("div", Eo, [
|
|
6587
6587
|
l(m, {
|
|
6588
6588
|
size: "large",
|
|
6589
6589
|
style: { height: "156px" }
|
|
@@ -6646,14 +6646,14 @@ function ko(t, n, u, d, f, p) {
|
|
|
6646
6646
|
_: 2
|
|
6647
6647
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6648
6648
|
name: "footer",
|
|
6649
|
-
fn:
|
|
6649
|
+
fn: N(() => [o("div", Do, [t.isMobile ? i("", !0) : (x(), r(v, {
|
|
6650
6650
|
key: 0,
|
|
6651
6651
|
loading: t.spinShow,
|
|
6652
6652
|
type: "success",
|
|
6653
6653
|
class: "uz-drawer-button",
|
|
6654
6654
|
onClick: n[1] ||= (e) => t.ocrShow = !t.ocrShow
|
|
6655
6655
|
}, {
|
|
6656
|
-
default:
|
|
6656
|
+
default: N(() => [c(A(t.t("OCR.ocr")), 1)]),
|
|
6657
6657
|
_: 1
|
|
6658
6658
|
}, 8, ["loading"])), o("div", Oo, [
|
|
6659
6659
|
l(v, {
|
|
@@ -6662,24 +6662,24 @@ function ko(t, n, u, d, f, p) {
|
|
|
6662
6662
|
secondary: "",
|
|
6663
6663
|
onClick: t.drawerCheck
|
|
6664
6664
|
}, {
|
|
6665
|
-
default:
|
|
6665
|
+
default: N(() => [c(A(t.t("Common.cancel")), 1)]),
|
|
6666
6666
|
_: 1
|
|
6667
6667
|
}, 8, ["loading", "onClick"]),
|
|
6668
6668
|
t.formStatus === 0 ? (x(), r(y, {
|
|
6669
6669
|
key: 0,
|
|
6670
6670
|
trigger: "hover"
|
|
6671
6671
|
}, {
|
|
6672
|
-
trigger:
|
|
6672
|
+
trigger: N(() => [l(v, {
|
|
6673
6673
|
type: "success",
|
|
6674
6674
|
loading: t.spinShow,
|
|
6675
6675
|
class: "uz-drawer-button",
|
|
6676
6676
|
secondary: "",
|
|
6677
6677
|
onClick: t.doCacheToStore
|
|
6678
6678
|
}, {
|
|
6679
|
-
default:
|
|
6679
|
+
default: N(() => [c(A(t.t("Common.cache")), 1)]),
|
|
6680
6680
|
_: 1
|
|
6681
6681
|
}, 8, ["loading", "onClick"])]),
|
|
6682
|
-
default:
|
|
6682
|
+
default: N(() => [o("span", null, A(t.t("Table.cacheTip")), 1)]),
|
|
6683
6683
|
_: 1
|
|
6684
6684
|
})) : i("", !0),
|
|
6685
6685
|
l(v, {
|
|
@@ -6688,7 +6688,7 @@ function ko(t, n, u, d, f, p) {
|
|
|
6688
6688
|
type: "primary",
|
|
6689
6689
|
onClick: t.drawerSubmit
|
|
6690
6690
|
}, {
|
|
6691
|
-
default:
|
|
6691
|
+
default: N(() => [c(A(t.t("Common.apply")), 1)]),
|
|
6692
6692
|
_: 1
|
|
6693
6693
|
}, 8, ["loading", "onClick"])
|
|
6694
6694
|
])])]),
|
|
@@ -6719,7 +6719,7 @@ function ko(t, n, u, d, f, p) {
|
|
|
6719
6719
|
bottom: "0"
|
|
6720
6720
|
}
|
|
6721
6721
|
}, {
|
|
6722
|
-
default:
|
|
6722
|
+
default: N(() => [l(C)]),
|
|
6723
6723
|
_: 1
|
|
6724
6724
|
}, 8, ["show", "title"])], 64);
|
|
6725
6725
|
}
|
|
@@ -6764,7 +6764,7 @@ function Po(t, n, s, c, l, u) {
|
|
|
6764
6764
|
var Fo = d({
|
|
6765
6765
|
name: "UzTableMobile",
|
|
6766
6766
|
components: {
|
|
6767
|
-
NCheckbox:
|
|
6767
|
+
NCheckbox: R,
|
|
6768
6768
|
NRadio: De,
|
|
6769
6769
|
NPagination: we,
|
|
6770
6770
|
NCheckboxGroup: ie,
|
|
@@ -6838,12 +6838,12 @@ function zo(t, n, o, s, c, u) {
|
|
|
6838
6838
|
maxHeight: t.maxH
|
|
6839
6839
|
})
|
|
6840
6840
|
}, {
|
|
6841
|
-
default:
|
|
6841
|
+
default: N(() => [(x(!0), a(e, null, T(t.tableData, (e, n) => (x(), r(f, {
|
|
6842
6842
|
key: e.id,
|
|
6843
6843
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
6844
6844
|
value: e.id
|
|
6845
6845
|
}, {
|
|
6846
|
-
default:
|
|
6846
|
+
default: N(() => [l(d, {
|
|
6847
6847
|
tableData: e,
|
|
6848
6848
|
tableIndex: n,
|
|
6849
6849
|
tableColumns: t.tableColumns
|
|
@@ -6880,12 +6880,12 @@ function zo(t, n, o, s, c, u) {
|
|
|
6880
6880
|
maxHeight: t.maxH
|
|
6881
6881
|
})
|
|
6882
6882
|
}, {
|
|
6883
|
-
default:
|
|
6883
|
+
default: N(() => [(x(!0), a(e, null, T(t.tableData, (e, n) => (x(), r(h, {
|
|
6884
6884
|
key: e.id,
|
|
6885
6885
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
6886
6886
|
value: e.id
|
|
6887
6887
|
}, {
|
|
6888
|
-
default:
|
|
6888
|
+
default: N(() => [l(d, {
|
|
6889
6889
|
tableData: e,
|
|
6890
6890
|
tableIndex: n,
|
|
6891
6891
|
tableColumns: t.tableColumns
|
|
@@ -6948,7 +6948,7 @@ var Bo = /*#__PURE__*/ Q(Fo, [["render", zo], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6948
6948
|
components: {
|
|
6949
6949
|
UzIcon: qt,
|
|
6950
6950
|
NDropdown: de,
|
|
6951
|
-
NButton:
|
|
6951
|
+
NButton: I,
|
|
6952
6952
|
NModal: Ce,
|
|
6953
6953
|
NUpload: Re,
|
|
6954
6954
|
NSpace: je,
|
|
@@ -7002,7 +7002,7 @@ var Bo = /*#__PURE__*/ Q(Fo, [["render", zo], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7002
7002
|
key: "action",
|
|
7003
7003
|
align: "center",
|
|
7004
7004
|
render(e) {
|
|
7005
|
-
return f(
|
|
7005
|
+
return f(I, {
|
|
7006
7006
|
tertiary: !0,
|
|
7007
7007
|
onClick: () => {
|
|
7008
7008
|
window.open(e.cosUrl);
|
|
@@ -7093,12 +7093,12 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7093
7093
|
options: t.dropOption,
|
|
7094
7094
|
onSelect: t.dropSelect
|
|
7095
7095
|
}, {
|
|
7096
|
-
default:
|
|
7097
|
-
icon:
|
|
7098
|
-
default:
|
|
7096
|
+
default: N(() => [l(m, { secondary: "" }, {
|
|
7097
|
+
icon: N(() => [l(p, null, {
|
|
7098
|
+
default: N(() => [l(f, { icon: "ClipboardText" })]),
|
|
7099
7099
|
_: 1
|
|
7100
7100
|
})]),
|
|
7101
|
-
default:
|
|
7101
|
+
default: N(() => [c(" " + A(t.t("Common.file")), 1)]),
|
|
7102
7102
|
_: 1
|
|
7103
7103
|
})]),
|
|
7104
7104
|
_: 1
|
|
@@ -7113,15 +7113,15 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7113
7113
|
"auto-focus": !1,
|
|
7114
7114
|
"on-after-leave": t.modalLeave
|
|
7115
7115
|
}, {
|
|
7116
|
-
"header-extra":
|
|
7116
|
+
"header-extra": N(() => [l(m, {
|
|
7117
7117
|
type: "success",
|
|
7118
7118
|
onClick: t.downloadTemplate,
|
|
7119
7119
|
secondary: ""
|
|
7120
7120
|
}, {
|
|
7121
|
-
default:
|
|
7121
|
+
default: N(() => [c(A(t.t("File.downloadTemplate")), 1)]),
|
|
7122
7122
|
_: 1
|
|
7123
7123
|
}, 8, ["onClick"])]),
|
|
7124
|
-
default:
|
|
7124
|
+
default: N(() => [o("div", Ho, [
|
|
7125
7125
|
t.rawFile ? (x(), a("div", Go, [
|
|
7126
7126
|
n[2] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
7127
7127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7133,13 +7133,13 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7133
7133
|
o("div", null, A(t.rawFileName.join(",")), 1),
|
|
7134
7134
|
o("div", Ko, A(t.t("File.importWaitTip")), 1),
|
|
7135
7135
|
l(_, { justify: "space-between" }, {
|
|
7136
|
-
default:
|
|
7136
|
+
default: N(() => [l(m, {
|
|
7137
7137
|
size: "small",
|
|
7138
7138
|
secondary: "",
|
|
7139
7139
|
type: "default",
|
|
7140
7140
|
onClick: t.clearFile
|
|
7141
7141
|
}, {
|
|
7142
|
-
default:
|
|
7142
|
+
default: N(() => [c(A(t.t("Common.selectAgain")), 1)]),
|
|
7143
7143
|
_: 1
|
|
7144
7144
|
}, 8, ["onClick"]), l(m, {
|
|
7145
7145
|
size: "small",
|
|
@@ -7147,7 +7147,7 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7147
7147
|
loading: t.loading,
|
|
7148
7148
|
onClick: t.manualImport
|
|
7149
7149
|
}, {
|
|
7150
|
-
default:
|
|
7150
|
+
default: N(() => [c(A(t.t("File.startImport")), 1)]),
|
|
7151
7151
|
_: 1
|
|
7152
7152
|
}, 8, ["loading", "onClick"])]),
|
|
7153
7153
|
_: 1
|
|
@@ -7161,7 +7161,7 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7161
7161
|
multiple: "",
|
|
7162
7162
|
class: "uz-w-full"
|
|
7163
7163
|
}, {
|
|
7164
|
-
default:
|
|
7164
|
+
default: N(() => [o("div", Uo, [n[1] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
7165
7165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7166
7166
|
viewBox: "0 0 24 24",
|
|
7167
7167
|
width: "40",
|
|
@@ -7175,7 +7175,7 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7175
7175
|
loading: t.loading,
|
|
7176
7176
|
secondary: ""
|
|
7177
7177
|
}, {
|
|
7178
|
-
default:
|
|
7178
|
+
default: N(() => [c(A(t.t("Common.refresh")), 1)]),
|
|
7179
7179
|
_: 1
|
|
7180
7180
|
}, 8, ["onClick", "loading"])]),
|
|
7181
7181
|
l(v, {
|
|
@@ -7256,7 +7256,7 @@ var rs = d({
|
|
|
7256
7256
|
components: {
|
|
7257
7257
|
NTabs: Fe,
|
|
7258
7258
|
NTabPane: Pe,
|
|
7259
|
-
NButton:
|
|
7259
|
+
NButton: I,
|
|
7260
7260
|
NIcon: V,
|
|
7261
7261
|
NPopconfirm: Te,
|
|
7262
7262
|
NFlex: B
|
|
@@ -7273,9 +7273,9 @@ var rs = d({
|
|
|
7273
7273
|
let { t: n } = U(), r = w(!!t.prefix), i = Je();
|
|
7274
7274
|
return y(() => {
|
|
7275
7275
|
Zo(e.option), $.active !== i.path && $o(i.path, i.fullPath);
|
|
7276
|
-
}),
|
|
7276
|
+
}), j(() => i, (e) => {
|
|
7277
7277
|
$.active === i.path && $o(e.path, e.fullPath);
|
|
7278
|
-
}, { deep: !0 }),
|
|
7278
|
+
}, { deep: !0 }), j(() => e.option, (e) => {
|
|
7279
7279
|
Zo(e);
|
|
7280
7280
|
}, { deep: !0 }), {
|
|
7281
7281
|
t: n,
|
|
@@ -7306,27 +7306,27 @@ function is(t, n, i, o, u, d) {
|
|
|
7306
7306
|
"on-update:value": t.handleChange,
|
|
7307
7307
|
class: "uz-thumbnail"
|
|
7308
7308
|
}, s({
|
|
7309
|
-
suffix:
|
|
7310
|
-
default:
|
|
7311
|
-
trigger:
|
|
7312
|
-
default:
|
|
7313
|
-
default:
|
|
7309
|
+
suffix: N(() => [l(_, null, {
|
|
7310
|
+
default: N(() => [l(g, { onPositiveClick: t.handleClear }, {
|
|
7311
|
+
trigger: N(() => [l(h, { class: "uz-button-glass" }, {
|
|
7312
|
+
default: N(() => [l(m, { color: "#e65444" }, {
|
|
7313
|
+
default: N(() => [l(p, { icon: "Trash" })]),
|
|
7314
7314
|
_: 1
|
|
7315
7315
|
})]),
|
|
7316
7316
|
_: 1
|
|
7317
7317
|
})]),
|
|
7318
|
-
default:
|
|
7318
|
+
default: N(() => [c(" " + A(t.t("Thumbnail.clearConfirm")), 1)]),
|
|
7319
7319
|
_: 1
|
|
7320
7320
|
}, 8, ["onPositiveClick"]), E(t.$slots, "suffix")]),
|
|
7321
7321
|
_: 3
|
|
7322
7322
|
})]),
|
|
7323
|
-
default:
|
|
7323
|
+
default: N(() => [(x(!0), a(e, null, T(t.thumbnailStore.thumbnail, (e) => (x(), r(f, {
|
|
7324
7324
|
key: e.key,
|
|
7325
7325
|
name: e.key,
|
|
7326
7326
|
tab: e.label,
|
|
7327
7327
|
closable: e.closable
|
|
7328
7328
|
}, {
|
|
7329
|
-
default:
|
|
7329
|
+
default: N(() => [c(A(e.label), 1)]),
|
|
7330
7330
|
_: 2
|
|
7331
7331
|
}, 1032, [
|
|
7332
7332
|
"name",
|
|
@@ -7336,7 +7336,7 @@ function is(t, n, i, o, u, d) {
|
|
|
7336
7336
|
_: 2
|
|
7337
7337
|
}, [t.isSlotPrefix ? {
|
|
7338
7338
|
name: "prefix",
|
|
7339
|
-
fn:
|
|
7339
|
+
fn: N(() => [E(t.$slots, "prefix")]),
|
|
7340
7340
|
key: "0"
|
|
7341
7341
|
} : void 0]), 1032, [
|
|
7342
7342
|
"value",
|
|
@@ -7409,7 +7409,7 @@ function ys(e, t, n, i, a, o) {
|
|
|
7409
7409
|
"inline-theme-disabled": "",
|
|
7410
7410
|
abstract: ""
|
|
7411
7411
|
}, {
|
|
7412
|
-
default:
|
|
7412
|
+
default: N(() => [E(e.$slots, "default")]),
|
|
7413
7413
|
_: 3
|
|
7414
7414
|
}, 8, [
|
|
7415
7415
|
"theme",
|
|
@@ -7495,7 +7495,7 @@ function Ss(e, t) {
|
|
|
7495
7495
|
var Cs = d({
|
|
7496
7496
|
name: "UzOcr",
|
|
7497
7497
|
components: {
|
|
7498
|
-
NButton:
|
|
7498
|
+
NButton: I,
|
|
7499
7499
|
NUpload: Re,
|
|
7500
7500
|
NSelect: ke,
|
|
7501
7501
|
NSwitch: Ne,
|
|
@@ -7543,7 +7543,7 @@ var Cs = d({
|
|
|
7543
7543
|
console.error("实时预处理失败", e);
|
|
7544
7544
|
}
|
|
7545
7545
|
};
|
|
7546
|
-
|
|
7546
|
+
j([
|
|
7547
7547
|
f,
|
|
7548
7548
|
o,
|
|
7549
7549
|
s,
|
|
@@ -7652,11 +7652,11 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7652
7652
|
type: "segment",
|
|
7653
7653
|
size: "small"
|
|
7654
7654
|
}, {
|
|
7655
|
-
default:
|
|
7655
|
+
default: N(() => [l(p, {
|
|
7656
7656
|
name: "processed",
|
|
7657
7657
|
tab: e.t("OCR.previewProcessed")
|
|
7658
7658
|
}, {
|
|
7659
|
-
default:
|
|
7659
|
+
default: N(() => [o("div", As, [o("img", {
|
|
7660
7660
|
src: e.processedImage,
|
|
7661
7661
|
alt: "Processed Preview",
|
|
7662
7662
|
class: "uz-ocr-preview-img"
|
|
@@ -7666,7 +7666,7 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7666
7666
|
name: "raw",
|
|
7667
7667
|
tab: e.t("OCR.previewRaw")
|
|
7668
7668
|
}, {
|
|
7669
|
-
default:
|
|
7669
|
+
default: N(() => [o("div", Ns, [o("img", {
|
|
7670
7670
|
src: e.rawImage,
|
|
7671
7671
|
alt: "Raw Preview",
|
|
7672
7672
|
class: "uz-ocr-preview-img"
|
|
@@ -7678,13 +7678,13 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7678
7678
|
justify: "space-between",
|
|
7679
7679
|
class: "uz-ocr-preview-actions"
|
|
7680
7680
|
}, {
|
|
7681
|
-
default:
|
|
7681
|
+
default: N(() => [l(h, {
|
|
7682
7682
|
size: "small",
|
|
7683
7683
|
secondary: "",
|
|
7684
7684
|
type: "warning",
|
|
7685
7685
|
onClick: e.clearImage
|
|
7686
7686
|
}, {
|
|
7687
|
-
default:
|
|
7687
|
+
default: N(() => [c(A(e.t("OCR.selectAgain")), 1)]),
|
|
7688
7688
|
_: 1
|
|
7689
7689
|
}, 8, ["onClick"]), l(h, {
|
|
7690
7690
|
size: "small",
|
|
@@ -7692,7 +7692,7 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7692
7692
|
loading: e.ocrLoading,
|
|
7693
7693
|
onClick: e.handleManualOcr
|
|
7694
7694
|
}, {
|
|
7695
|
-
default:
|
|
7695
|
+
default: N(() => [c(A(e.t("OCR.reRecognize")), 1)]),
|
|
7696
7696
|
_: 1
|
|
7697
7697
|
}, 8, ["loading", "onClick"])]),
|
|
7698
7698
|
_: 1
|
|
@@ -7704,7 +7704,7 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7704
7704
|
"directory-dnd": "",
|
|
7705
7705
|
class: "uz-w-full"
|
|
7706
7706
|
}, {
|
|
7707
|
-
default:
|
|
7707
|
+
default: N(() => [o("div", Es, [
|
|
7708
7708
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7709
7709
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7710
7710
|
viewBox: "0 0 24 24",
|
|
@@ -7885,7 +7885,7 @@ function oc(e, t, n) {
|
|
|
7885
7885
|
}
|
|
7886
7886
|
//#endregion
|
|
7887
7887
|
//#region package.json
|
|
7888
|
-
var sc = "0.1.
|
|
7888
|
+
var sc = "0.1.147", cc;
|
|
7889
7889
|
async function lc() {
|
|
7890
7890
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7891
7891
|
method: "HEAD",
|