@unizhen/ui 0.1.145 → 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/components/form/timesPicker.vue.d.ts +9 -0
- package/lib/ui.css +1 -1
- package/lib/ui.js +414 -404
- 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
|
|
@@ -2588,6 +2588,10 @@ var Wr = /*#__PURE__*/ Q(Vr, [["render", Ur]]), Gr = d({
|
|
|
2588
2588
|
disabled: {
|
|
2589
2589
|
type: Boolean,
|
|
2590
2590
|
default: !1
|
|
2591
|
+
},
|
|
2592
|
+
class: {
|
|
2593
|
+
type: String,
|
|
2594
|
+
default: ""
|
|
2591
2595
|
}
|
|
2592
2596
|
},
|
|
2593
2597
|
emits: ["update:value"],
|
|
@@ -2604,7 +2608,7 @@ var Wr = /*#__PURE__*/ Q(Vr, [["render", Ur]]), Gr = d({
|
|
|
2604
2608
|
}, u = () => {
|
|
2605
2609
|
t("update:value", `${a.value}:${o.value}:${s.value}`);
|
|
2606
2610
|
};
|
|
2607
|
-
return n({ clearAll: c }),
|
|
2611
|
+
return n({ clearAll: c }), j(() => e.value, (e) => {
|
|
2608
2612
|
if (e && e.indexOf(":") > -1) {
|
|
2609
2613
|
let t = e.split(":");
|
|
2610
2614
|
a.value = t[0], o.value = t[1], s.value = t[2];
|
|
@@ -2636,14 +2640,16 @@ function qr(e, t, n, r, i, o) {
|
|
|
2636
2640
|
options: e.times,
|
|
2637
2641
|
"consistent-menu-width": !1,
|
|
2638
2642
|
disabled: e.disabled,
|
|
2643
|
+
class: g(e.class),
|
|
2639
2644
|
"on-update:value": e.changeH
|
|
2640
2645
|
}, {
|
|
2641
|
-
arrow:
|
|
2646
|
+
arrow: N(() => [c(A(e.t("Common.hour")), 1)]),
|
|
2642
2647
|
_: 1
|
|
2643
2648
|
}, 8, [
|
|
2644
2649
|
"value",
|
|
2645
2650
|
"options",
|
|
2646
2651
|
"disabled",
|
|
2652
|
+
"class",
|
|
2647
2653
|
"on-update:value"
|
|
2648
2654
|
]),
|
|
2649
2655
|
l(s, {
|
|
@@ -2651,14 +2657,16 @@ function qr(e, t, n, r, i, o) {
|
|
|
2651
2657
|
options: e.times,
|
|
2652
2658
|
"consistent-menu-width": !1,
|
|
2653
2659
|
disabled: e.disabled,
|
|
2660
|
+
class: g(e.class),
|
|
2654
2661
|
"on-update:value": e.changeM
|
|
2655
2662
|
}, {
|
|
2656
|
-
arrow:
|
|
2663
|
+
arrow: N(() => [c(A(e.t("Common.minute")), 1)]),
|
|
2657
2664
|
_: 1
|
|
2658
2665
|
}, 8, [
|
|
2659
2666
|
"value",
|
|
2660
2667
|
"options",
|
|
2661
2668
|
"disabled",
|
|
2669
|
+
"class",
|
|
2662
2670
|
"on-update:value"
|
|
2663
2671
|
]),
|
|
2664
2672
|
l(s, {
|
|
@@ -2666,19 +2674,21 @@ function qr(e, t, n, r, i, o) {
|
|
|
2666
2674
|
options: e.times,
|
|
2667
2675
|
"consistent-menu-width": !1,
|
|
2668
2676
|
disabled: e.disabled,
|
|
2677
|
+
class: g(e.class),
|
|
2669
2678
|
"on-update:value": e.changeS
|
|
2670
2679
|
}, {
|
|
2671
|
-
arrow:
|
|
2680
|
+
arrow: N(() => [c(A(e.t("Common.second")), 1)]),
|
|
2672
2681
|
_: 1
|
|
2673
2682
|
}, 8, [
|
|
2674
2683
|
"value",
|
|
2675
2684
|
"options",
|
|
2676
2685
|
"disabled",
|
|
2686
|
+
"class",
|
|
2677
2687
|
"on-update:value"
|
|
2678
2688
|
])
|
|
2679
2689
|
]);
|
|
2680
2690
|
}
|
|
2681
|
-
var Jr = /*#__PURE__*/ Q(Gr, [["render", qr], ["__scopeId", "data-v-
|
|
2691
|
+
var Jr = /*#__PURE__*/ Q(Gr, [["render", qr], ["__scopeId", "data-v-e5a34b50"]]);
|
|
2682
2692
|
//#endregion
|
|
2683
2693
|
//#region components/hooks/useDebounceFn.ts
|
|
2684
2694
|
function Yr(e, t = 1e3) {
|
|
@@ -2743,7 +2753,7 @@ var Xr = (e, t) => e.map((e, n) => {
|
|
|
2743
2753
|
}
|
|
2744
2754
|
}));
|
|
2745
2755
|
};
|
|
2746
|
-
return y(s),
|
|
2756
|
+
return y(s), j(e, s), v(() => a.value?.destroy()), {
|
|
2747
2757
|
dragColumn: {
|
|
2748
2758
|
title: "",
|
|
2749
2759
|
key: "drag",
|
|
@@ -3455,52 +3465,52 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3455
3465
|
},
|
|
3456
3466
|
emits: ["update:value"],
|
|
3457
3467
|
setup(e, { emit: t, expose: r }) {
|
|
3458
|
-
let i = p("mainFormValue"), { t:
|
|
3468
|
+
let i = p("mainFormValue"), a = p("modules"), { t: o } = U(), s = w(null), c = w([]), l = () => {
|
|
3459
3469
|
let e = i?.value?.()?.ticket_counts;
|
|
3460
3470
|
return e == null || e === "" ? 1 : e;
|
|
3461
|
-
},
|
|
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) => ({
|
|
3462
3472
|
row: e,
|
|
3463
3473
|
index: t
|
|
3464
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) => {
|
|
3465
|
-
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);
|
|
3466
3476
|
return {
|
|
3467
3477
|
...e,
|
|
3468
3478
|
required_quantity: s,
|
|
3469
|
-
counts:
|
|
3479
|
+
counts: c,
|
|
3470
3480
|
key: ii(e),
|
|
3471
3481
|
level: t,
|
|
3472
3482
|
code: a,
|
|
3473
3483
|
sort: i,
|
|
3474
3484
|
sort_index: i,
|
|
3475
|
-
...Array.isArray(o) ? { children:
|
|
3485
|
+
...Array.isArray(o) ? { children: d(o, t + 1, a, c) } : {}
|
|
3476
3486
|
};
|
|
3477
|
-
}),
|
|
3487
|
+
}), m = w(d(e.value)), h = w([]), g = !1, _ = 1, b = ii, x = (e, t = 1, n) => {
|
|
3478
3488
|
e.forEach((e, r) => {
|
|
3479
|
-
let i = e.code, a =
|
|
3480
|
-
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);
|
|
3481
3491
|
});
|
|
3482
|
-
},
|
|
3492
|
+
}, S = (e) => {
|
|
3483
3493
|
let t = [];
|
|
3484
3494
|
return e.forEach((e) => {
|
|
3485
3495
|
let n = e.children;
|
|
3486
|
-
Array.isArray(n) && n.length && (t.push(
|
|
3496
|
+
Array.isArray(n) && n.length && (t.push(b(e)), t.push(...S(n)));
|
|
3487
3497
|
}), t;
|
|
3488
|
-
},
|
|
3489
|
-
|
|
3490
|
-
},
|
|
3491
|
-
let e =
|
|
3492
|
-
if (!
|
|
3493
|
-
if (!
|
|
3494
|
-
|
|
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;
|
|
3495
3505
|
return;
|
|
3496
3506
|
}
|
|
3497
|
-
let t = new Set(e), n =
|
|
3498
|
-
(n.length !==
|
|
3499
|
-
}, { run:
|
|
3500
|
-
|
|
3501
|
-
}, 200),
|
|
3502
|
-
let r =
|
|
3503
|
-
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));
|
|
3504
3514
|
let i = r.get(n.key);
|
|
3505
3515
|
if (i) return i;
|
|
3506
3516
|
let a = new Proxy(e, {
|
|
@@ -3509,30 +3519,30 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3509
3519
|
},
|
|
3510
3520
|
set(e, r, i) {
|
|
3511
3521
|
let a = Reflect.get(e, r) !== i, o = Reflect.set(e, r, i);
|
|
3512
|
-
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)) {
|
|
3513
3523
|
let t = ci(n.params?.options, i);
|
|
3514
|
-
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());
|
|
3515
3525
|
}
|
|
3516
|
-
return a && o && t("update:value",
|
|
3526
|
+
return a && o && t("update:value", m.value), o;
|
|
3517
3527
|
}
|
|
3518
3528
|
});
|
|
3519
3529
|
return r.set(n.key, a), a;
|
|
3520
|
-
},
|
|
3530
|
+
}, ee = () => {
|
|
3521
3531
|
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Set(), n = (r) => {
|
|
3522
3532
|
r.forEach((r) => {
|
|
3523
|
-
e.add(
|
|
3533
|
+
e.add(b(r)), t.add(r.code);
|
|
3524
3534
|
let i = r.children;
|
|
3525
3535
|
Array.isArray(i) && n(i);
|
|
3526
3536
|
});
|
|
3527
3537
|
};
|
|
3528
|
-
n(
|
|
3538
|
+
n(m.value);
|
|
3529
3539
|
let r;
|
|
3530
3540
|
do
|
|
3531
3541
|
r = ai();
|
|
3532
3542
|
while (e.has(r));
|
|
3533
3543
|
let i;
|
|
3534
3544
|
do
|
|
3535
|
-
i = `NEW-${String(
|
|
3545
|
+
i = `NEW-${String(_).padStart(4, "0")}`, _ += 1;
|
|
3536
3546
|
while (t.has(i));
|
|
3537
3547
|
return {
|
|
3538
3548
|
key: r,
|
|
@@ -3550,19 +3560,19 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3550
3560
|
lossRate: 0,
|
|
3551
3561
|
remark: ""
|
|
3552
3562
|
};
|
|
3553
|
-
},
|
|
3554
|
-
|
|
3555
|
-
let
|
|
3556
|
-
|
|
3557
|
-
}, { dragColumn: N, getSortableRowProps: P, tableRef:
|
|
3558
|
-
let t =
|
|
3559
|
-
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) {
|
|
3560
3570
|
n = !0;
|
|
3561
3571
|
let t = e.children, r = Array.isArray(t) ? t : [];
|
|
3562
3572
|
return {
|
|
3563
3573
|
...e,
|
|
3564
3574
|
children: [...r, {
|
|
3565
|
-
...
|
|
3575
|
+
...ee(),
|
|
3566
3576
|
sort: r.length,
|
|
3567
3577
|
sort_index: r.length
|
|
3568
3578
|
}]
|
|
@@ -3574,44 +3584,44 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3574
3584
|
children: r(i)
|
|
3575
3585
|
} : e;
|
|
3576
3586
|
});
|
|
3577
|
-
|
|
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()));
|
|
3578
3590
|
}, R = (e) => {
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
let t = _(e), n = (e) => e.reduce((e, r) => {
|
|
3582
|
-
if (_(r) === t) return e;
|
|
3591
|
+
let t = b(e), n = (e) => e.reduce((e, r) => {
|
|
3592
|
+
if (b(r) === t) return e;
|
|
3583
3593
|
let i = r.children;
|
|
3584
3594
|
return e.push(Array.isArray(i) ? {
|
|
3585
3595
|
...r,
|
|
3586
3596
|
children: n(i)
|
|
3587
3597
|
} : r), e;
|
|
3588
3598
|
}, []);
|
|
3589
|
-
|
|
3590
|
-
},
|
|
3599
|
+
M(n(m.value));
|
|
3600
|
+
}, ie = {
|
|
3591
3601
|
title: () => f(de, {
|
|
3592
3602
|
trigger: "click",
|
|
3593
3603
|
options: [{
|
|
3594
|
-
label:
|
|
3604
|
+
label: o("Common.expand"),
|
|
3595
3605
|
key: "expand-all"
|
|
3596
3606
|
}, {
|
|
3597
|
-
label:
|
|
3607
|
+
label: o("Common.contract"),
|
|
3598
3608
|
key: "collapse-all"
|
|
3599
3609
|
}],
|
|
3600
3610
|
onSelect: (e) => {
|
|
3601
|
-
|
|
3611
|
+
C(e === "expand-all" ? S(m.value) : []);
|
|
3602
3612
|
}
|
|
3603
|
-
}, { default: () => f(
|
|
3613
|
+
}, { default: () => f(I, {
|
|
3604
3614
|
text: !0,
|
|
3605
3615
|
size: "small",
|
|
3606
|
-
"aria-label":
|
|
3607
|
-
}, { default: () =>
|
|
3616
|
+
"aria-label": o("BOM.expandOrCollapseAll")
|
|
3617
|
+
}, { default: () => o("BOM.level") }) }),
|
|
3608
3618
|
key: "level",
|
|
3609
3619
|
width: 70,
|
|
3610
3620
|
fixed: "left",
|
|
3611
3621
|
tree: !0,
|
|
3612
3622
|
ellipsis: { tooltip: !0 }
|
|
3613
|
-
},
|
|
3614
|
-
title:
|
|
3623
|
+
}, z = {
|
|
3624
|
+
title: o("Common.action"),
|
|
3615
3625
|
key: "actions",
|
|
3616
3626
|
width: 240,
|
|
3617
3627
|
fixed: "right",
|
|
@@ -3623,21 +3633,21 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3623
3633
|
type: "normal",
|
|
3624
3634
|
key: "add-child",
|
|
3625
3635
|
color: "primary",
|
|
3626
|
-
buttonText:
|
|
3627
|
-
onClick: (e) =>
|
|
3636
|
+
buttonText: o("BOM.addChild"),
|
|
3637
|
+
onClick: (e) => L(e)
|
|
3628
3638
|
}, ...Number(e.level) === 1 ? [] : [{
|
|
3629
3639
|
type: "normal",
|
|
3630
3640
|
key: "add-sibling",
|
|
3631
3641
|
color: "primary",
|
|
3632
|
-
buttonText:
|
|
3633
|
-
onClick: (e) =>
|
|
3642
|
+
buttonText: o("BOM.addSibling"),
|
|
3643
|
+
onClick: (e) => re(e)
|
|
3634
3644
|
}, {
|
|
3635
3645
|
type: "normal",
|
|
3636
3646
|
key: "delete",
|
|
3637
3647
|
color: "error",
|
|
3638
|
-
buttonText:
|
|
3639
|
-
confirmText:
|
|
3640
|
-
onClick: (e) =>
|
|
3648
|
+
buttonText: o("Common.delete"),
|
|
3649
|
+
confirmText: o("BOM.deleteConfirm"),
|
|
3650
|
+
onClick: (e) => R(e)
|
|
3641
3651
|
}]],
|
|
3642
3652
|
rowData: e,
|
|
3643
3653
|
hProps: {
|
|
@@ -3645,12 +3655,12 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3645
3655
|
secondary: !0
|
|
3646
3656
|
}
|
|
3647
3657
|
})
|
|
3648
|
-
},
|
|
3658
|
+
}, ae = n(() => Number(e.status) === 2 ? c.value.filter((e) => e.key !== "actions") : c.value), oe = n(() => ae.value.reduce((e, t) => {
|
|
3649
3659
|
let n = "width" in t ? Number(t.width) : 120;
|
|
3650
3660
|
return e + (Number.isFinite(n) ? n : 120);
|
|
3651
|
-
}, 0)),
|
|
3652
|
-
|
|
3653
|
-
},
|
|
3661
|
+
}, 0)), se = (e) => {
|
|
3662
|
+
C(e);
|
|
3663
|
+
}, ce = (e) => {
|
|
3654
3664
|
let t = Math.trunc(Number(e.level));
|
|
3655
3665
|
if (!Number.isFinite(t) || t < 1) return null;
|
|
3656
3666
|
let n = (t - 1) % 4 + 1, r = Math.floor((t - 1) / 4);
|
|
@@ -3658,31 +3668,31 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3658
3668
|
color: Oi[n - 1],
|
|
3659
3669
|
strength: `${Math.min(10 + r * 5, 40)}%`
|
|
3660
3670
|
};
|
|
3661
|
-
},
|
|
3662
|
-
let t =
|
|
3671
|
+
}, le = (e) => {
|
|
3672
|
+
let t = ce(e);
|
|
3663
3673
|
return {
|
|
3664
3674
|
...P(e),
|
|
3665
3675
|
...t ? { style: `--uz-bom-level-color: ${t.color}; --uz-bom-level-strength: ${t.strength}` } : {}
|
|
3666
3676
|
};
|
|
3667
|
-
},
|
|
3677
|
+
}, ue = (t) => {
|
|
3668
3678
|
if (!t.form.display) switch (e.status) {
|
|
3669
3679
|
case 0: return t.form.create && t.form.create.show;
|
|
3670
3680
|
case 1: return t.form.edit && t.form.edit.show;
|
|
3671
3681
|
case 2: return t.form.show;
|
|
3672
3682
|
}
|
|
3673
3683
|
};
|
|
3674
|
-
return
|
|
3675
|
-
let e =
|
|
3676
|
-
|
|
3684
|
+
return j(() => i?.value?.()?.ticket_counts, () => {
|
|
3685
|
+
let e = l();
|
|
3686
|
+
m.value.forEach((t) => {
|
|
3677
3687
|
t.counts = e, ri(Array.isArray(t.children) ? t.children : [], e);
|
|
3678
|
-
}), t("update:value",
|
|
3679
|
-
}, { immediate: !0 }),
|
|
3680
|
-
e !==
|
|
3681
|
-
}),
|
|
3682
|
-
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);
|
|
3683
3693
|
let n = await Jn("bom_col");
|
|
3684
3694
|
n = tt.parse(n.viewJson), n = bi(n.table);
|
|
3685
|
-
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) => ({
|
|
3686
3696
|
title: t.title,
|
|
3687
3697
|
key: t.key,
|
|
3688
3698
|
width: t.width ?? 120,
|
|
@@ -3697,29 +3707,29 @@ var Di = (e) => e.key === "product_no" || e.key === "product_name" || typeof e.t
|
|
|
3697
3707
|
} : void 0
|
|
3698
3708
|
}, { default: () => f(Tr, {
|
|
3699
3709
|
item: t,
|
|
3700
|
-
formValue:
|
|
3710
|
+
formValue: A(n, t),
|
|
3701
3711
|
status: e.status,
|
|
3702
3712
|
itemIndex: r
|
|
3703
3713
|
}) })
|
|
3704
3714
|
}));
|
|
3705
|
-
|
|
3715
|
+
c.value = [
|
|
3706
3716
|
N,
|
|
3707
|
-
|
|
3717
|
+
ie,
|
|
3708
3718
|
...i,
|
|
3709
|
-
|
|
3719
|
+
z
|
|
3710
3720
|
];
|
|
3711
|
-
}), r({ validate: async () => (await
|
|
3712
|
-
t:
|
|
3713
|
-
formRef:
|
|
3714
|
-
innerData:
|
|
3715
|
-
tableRef:
|
|
3716
|
-
tableVersion:
|
|
3717
|
-
displayedTableCols:
|
|
3718
|
-
displayedScrollX:
|
|
3719
|
-
innerExpandedRowKeys:
|
|
3720
|
-
getRowKey:
|
|
3721
|
-
getRowProps:
|
|
3722
|
-
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
|
|
3723
3733
|
};
|
|
3724
3734
|
}
|
|
3725
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 = {
|
|
@@ -3732,7 +3742,7 @@ function Pi(t, n, s, u, d, f) {
|
|
|
3732
3742
|
ref: "formRef",
|
|
3733
3743
|
model: { child: t.innerData }
|
|
3734
3744
|
}, {
|
|
3735
|
-
default:
|
|
3745
|
+
default: N(() => [(x(), r(p, {
|
|
3736
3746
|
ref: "tableRef",
|
|
3737
3747
|
key: t.tableVersion,
|
|
3738
3748
|
columns: t.displayedTableCols,
|
|
@@ -3751,7 +3761,7 @@ function Pi(t, n, s, u, d, f) {
|
|
|
3751
3761
|
"scrollbar-props": { trigger: "none" },
|
|
3752
3762
|
remote: ""
|
|
3753
3763
|
}, {
|
|
3754
|
-
empty:
|
|
3764
|
+
empty: N(() => [E(t.$slots, "empty", {}, () => [c(A(t.t("BOM.empty")), 1)])]),
|
|
3755
3765
|
_: 3
|
|
3756
3766
|
}, 8, [
|
|
3757
3767
|
"columns",
|
|
@@ -3838,7 +3848,7 @@ var Fi = /*#__PURE__*/ Q(ki, [["render", Pi]]), Ii = 46, Li = 8, Ri = 2 * Math.P
|
|
|
3838
3848
|
let t = Number(e.circle);
|
|
3839
3849
|
return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 0;
|
|
3840
3850
|
}), s = w(o.value), c;
|
|
3841
|
-
|
|
3851
|
+
j(o, (e) => {
|
|
3842
3852
|
if (c !== void 0 && cancelAnimationFrame(c), typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches || typeof requestAnimationFrame > "u") {
|
|
3843
3853
|
s.value = e;
|
|
3844
3854
|
return;
|
|
@@ -4075,7 +4085,7 @@ function va(e, t, n, r, s, c) {
|
|
|
4075
4085
|
var ya = /*#__PURE__*/ Q(ea, [["render", va]]), ba = d({
|
|
4076
4086
|
name: "UzCamera",
|
|
4077
4087
|
components: {
|
|
4078
|
-
NButton:
|
|
4088
|
+
NButton: I,
|
|
4079
4089
|
NModal: Ce
|
|
4080
4090
|
},
|
|
4081
4091
|
props: {
|
|
@@ -4154,7 +4164,7 @@ var ya = /*#__PURE__*/ Q(ea, [["render", va]]), ba = d({
|
|
|
4154
4164
|
e.mode === "video" && g();
|
|
4155
4165
|
}), v(() => {
|
|
4156
4166
|
f();
|
|
4157
|
-
}),
|
|
4167
|
+
}), j([() => e.width, () => e.width], () => {
|
|
4158
4168
|
e.mode === "video" && (f(), g());
|
|
4159
4169
|
}), {
|
|
4160
4170
|
t: n,
|
|
@@ -4178,7 +4188,7 @@ function Ta(t, n, s, l, u, d) {
|
|
|
4178
4188
|
loading: t.loading,
|
|
4179
4189
|
onClick: t.doScan
|
|
4180
4190
|
}, {
|
|
4181
|
-
default:
|
|
4191
|
+
default: N(() => [c(A(t.t("Common.scan")), 1)]),
|
|
4182
4192
|
_: 1
|
|
4183
4193
|
}, 8, ["loading", "onClick"])) : i("", !0),
|
|
4184
4194
|
t.mode === "button" ? (x(), r(p, {
|
|
@@ -4191,7 +4201,7 @@ function Ta(t, n, s, l, u, d) {
|
|
|
4191
4201
|
"mask-closable": !1,
|
|
4192
4202
|
"on-after-leave": t.closeAll
|
|
4193
4203
|
}, {
|
|
4194
|
-
default:
|
|
4204
|
+
default: N(() => [o("div", {
|
|
4195
4205
|
class: "uz-scan-canvas-main",
|
|
4196
4206
|
style: _({
|
|
4197
4207
|
width: `${t.width}px`,
|
|
@@ -4227,8 +4237,8 @@ var Ea = /*#__PURE__*/ Q(ba, [["render", Ta]]), Da = /* @__PURE__ */ new WeakMap
|
|
|
4227
4237
|
name: "UzSearchBar",
|
|
4228
4238
|
components: {
|
|
4229
4239
|
NIcon: V,
|
|
4230
|
-
NButton:
|
|
4231
|
-
NButtonGroup:
|
|
4240
|
+
NButton: I,
|
|
4241
|
+
NButtonGroup: L,
|
|
4232
4242
|
NGrid: he,
|
|
4233
4243
|
NGridItem: ge,
|
|
4234
4244
|
NInputGroup: be,
|
|
@@ -4359,7 +4369,7 @@ var Ea = /*#__PURE__*/ Q(ba, [["render", Ta]]), Da = /* @__PURE__ */ new WeakMap
|
|
|
4359
4369
|
}
|
|
4360
4370
|
v(!0);
|
|
4361
4371
|
};
|
|
4362
|
-
return
|
|
4372
|
+
return j(() => e.data, (e) => {
|
|
4363
4373
|
C(e);
|
|
4364
4374
|
}), {
|
|
4365
4375
|
t: n,
|
|
@@ -4405,46 +4415,46 @@ function Fa(n, s, u, d, f, p) {
|
|
|
4405
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");
|
|
4406
4416
|
return x(), a("div", {
|
|
4407
4417
|
class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
|
|
4408
|
-
onKeyup: s[1] ||=
|
|
4418
|
+
onKeyup: s[1] ||= ne((e) => n.doSearch(!1), ["enter"])
|
|
4409
4419
|
}, [o("div", ka, [n.enableHeader ? (x(), a("div", Aa, [
|
|
4410
4420
|
E(n.$slots, "header"),
|
|
4411
4421
|
n.tabList && n.tabList.length > 0 ? (x(), a("div", ja, [l(h, null, {
|
|
4412
|
-
default:
|
|
4422
|
+
default: N(() => [(x(!0), a(e, null, T(n.tabList, (e) => (x(), r(m, {
|
|
4413
4423
|
key: e.value,
|
|
4414
4424
|
type: n.tabButtonType(e),
|
|
4415
4425
|
quaternary: "",
|
|
4416
4426
|
onClick: (t) => n.tabItemChange(e.value)
|
|
4417
4427
|
}, {
|
|
4418
|
-
default:
|
|
4428
|
+
default: N(() => [c(A(e.label), 1)]),
|
|
4419
4429
|
_: 2
|
|
4420
4430
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
4421
4431
|
_: 1
|
|
4422
4432
|
})])) : i("", !0),
|
|
4423
|
-
|
|
4433
|
+
P((x(), a("div", Ma, [l(C, {
|
|
4424
4434
|
"x-gap": "8",
|
|
4425
4435
|
"y-gap": "8",
|
|
4426
4436
|
cols: n.cols,
|
|
4427
4437
|
"collapsed-rows": 1,
|
|
4428
4438
|
collapsed: !0
|
|
4429
4439
|
}, {
|
|
4430
|
-
default:
|
|
4440
|
+
default: N(() => [n.offset > -1 ? (x(), r(_, {
|
|
4431
4441
|
key: 0,
|
|
4432
4442
|
offset: n.offset
|
|
4433
4443
|
}, null, 8, ["offset"])) : i("", !0), n.collapsed ? (x(!0), a(e, { key: 1 }, T(n.itemData, (e, t) => (x(), r(_, {
|
|
4434
4444
|
key: `${t}_${Date.now()}`,
|
|
4435
4445
|
span: e.search.show ? e.search.span === 1 ? n.gridSpan : e.search.span || n.gridSpan : 0
|
|
4436
4446
|
}, {
|
|
4437
|
-
default:
|
|
4438
|
-
default:
|
|
4447
|
+
default: N(() => [l(S, null, {
|
|
4448
|
+
default: N(() => [l(y, {
|
|
4439
4449
|
trigger: "hover",
|
|
4440
4450
|
placement: "top-start",
|
|
4441
4451
|
overlap: ""
|
|
4442
4452
|
}, {
|
|
4443
|
-
trigger:
|
|
4444
|
-
default:
|
|
4453
|
+
trigger: N(() => [l(v, { class: "uz-group-label" }, {
|
|
4454
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4445
4455
|
_: 2
|
|
4446
4456
|
}, 1024)]),
|
|
4447
|
-
default:
|
|
4457
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4448
4458
|
_: 2
|
|
4449
4459
|
}, 1024), l(b, {
|
|
4450
4460
|
item: e,
|
|
@@ -4463,8 +4473,8 @@ function Fa(n, s, u, d, f, p) {
|
|
|
4463
4473
|
secondary: "",
|
|
4464
4474
|
onClick: n.showMore
|
|
4465
4475
|
}, {
|
|
4466
|
-
icon:
|
|
4467
|
-
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" })]),
|
|
4468
4478
|
_: 1
|
|
4469
4479
|
}, 8, ["class"])]),
|
|
4470
4480
|
_: 1
|
|
@@ -4476,57 +4486,57 @@ function Fa(n, s, u, d, f, p) {
|
|
|
4476
4486
|
"show-arrow": !1,
|
|
4477
4487
|
style: { padding: "0" }
|
|
4478
4488
|
}, {
|
|
4479
|
-
trigger:
|
|
4489
|
+
trigger: N(() => [l(m, {
|
|
4480
4490
|
loading: n.loading,
|
|
4481
4491
|
secondary: "",
|
|
4482
4492
|
onClick: s[0] ||= (e) => n.doSearch(!1)
|
|
4483
4493
|
}, {
|
|
4484
|
-
icon:
|
|
4494
|
+
icon: N(() => [l(k, {
|
|
4485
4495
|
size: "18",
|
|
4486
4496
|
color: "#0086ff"
|
|
4487
4497
|
}, {
|
|
4488
|
-
default:
|
|
4498
|
+
default: N(() => [l(w, { icon: "Search" })]),
|
|
4489
4499
|
_: 1
|
|
4490
4500
|
})]),
|
|
4491
|
-
default:
|
|
4501
|
+
default: N(() => [c(" " + A(n.t("Common.search")), 1)]),
|
|
4492
4502
|
_: 1
|
|
4493
4503
|
}, 8, ["loading"])]),
|
|
4494
|
-
default:
|
|
4504
|
+
default: N(() => [l(m, {
|
|
4495
4505
|
loading: n.loading,
|
|
4496
4506
|
secondary: "",
|
|
4497
4507
|
onClick: n.clearAll
|
|
4498
4508
|
}, {
|
|
4499
|
-
icon:
|
|
4500
|
-
default:
|
|
4509
|
+
icon: N(() => [l(k, null, {
|
|
4510
|
+
default: N(() => [l(w, { icon: "Refresh" })]),
|
|
4501
4511
|
_: 1
|
|
4502
4512
|
})]),
|
|
4503
|
-
default:
|
|
4513
|
+
default: N(() => [c(" " + A(n.t("Common.reset")), 1)]),
|
|
4504
4514
|
_: 1
|
|
4505
4515
|
}, 8, ["loading", "onClick"])]),
|
|
4506
4516
|
_: 1
|
|
4507
4517
|
})) : i("", !0),
|
|
4508
4518
|
E(n.$slots, "action")
|
|
4509
4519
|
])) : i("", !0)]), l(t, { name: "uz-search-fields" }, {
|
|
4510
|
-
default:
|
|
4520
|
+
default: N(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (x(), a("div", Pa, [l(C, {
|
|
4511
4521
|
"x-gap": "8",
|
|
4512
4522
|
"y-gap": "8",
|
|
4513
4523
|
cols: 4
|
|
4514
4524
|
}, {
|
|
4515
|
-
default:
|
|
4525
|
+
default: N(() => [(x(!0), a(e, null, T(n.itemData, (e, t) => (x(), r(_, {
|
|
4516
4526
|
key: t,
|
|
4517
4527
|
span: e.search.show ? n.gridSpan / 2 : 0
|
|
4518
4528
|
}, {
|
|
4519
|
-
default:
|
|
4520
|
-
default:
|
|
4529
|
+
default: N(() => [l(S, null, {
|
|
4530
|
+
default: N(() => [l(y, {
|
|
4521
4531
|
trigger: "hover",
|
|
4522
4532
|
placement: "top-start",
|
|
4523
4533
|
overlap: ""
|
|
4524
4534
|
}, {
|
|
4525
|
-
trigger:
|
|
4526
|
-
default:
|
|
4535
|
+
trigger: N(() => [l(v, { class: "uz-group-label" }, {
|
|
4536
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4527
4537
|
_: 2
|
|
4528
4538
|
}, 1024)]),
|
|
4529
|
-
default:
|
|
4539
|
+
default: N(() => [c(A(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4530
4540
|
_: 2
|
|
4531
4541
|
}, 1024), l(b, {
|
|
4532
4542
|
item: e,
|
|
@@ -4546,7 +4556,7 @@ var Ia = /*#__PURE__*/ Q(Oa, [["render", Fa]]), La = d({
|
|
|
4546
4556
|
name: "UzSearchMobileBar",
|
|
4547
4557
|
components: {
|
|
4548
4558
|
NIcon: V,
|
|
4549
|
-
NButton:
|
|
4559
|
+
NButton: I,
|
|
4550
4560
|
NDrawer: le,
|
|
4551
4561
|
NDrawerContent: ue,
|
|
4552
4562
|
NGrid: he,
|
|
@@ -4621,7 +4631,7 @@ var Ia = /*#__PURE__*/ Q(Oa, [["render", Fa]]), La = d({
|
|
|
4621
4631
|
}
|
|
4622
4632
|
l(!0);
|
|
4623
4633
|
};
|
|
4624
|
-
return
|
|
4634
|
+
return j(() => e.data, (e) => {
|
|
4625
4635
|
f(e);
|
|
4626
4636
|
}), {
|
|
4627
4637
|
t: n,
|
|
@@ -4640,11 +4650,11 @@ function Va(t, n, s, u, d, f) {
|
|
|
4640
4650
|
secondary: "",
|
|
4641
4651
|
onClick: n[0] ||= (e) => t.drawer = !0
|
|
4642
4652
|
}, {
|
|
4643
|
-
icon:
|
|
4644
|
-
default:
|
|
4653
|
+
icon: N(() => [l(m, { size: "18" }, {
|
|
4654
|
+
default: N(() => [l(p, { icon: "Search" })]),
|
|
4645
4655
|
_: 1
|
|
4646
4656
|
})]),
|
|
4647
|
-
default:
|
|
4657
|
+
default: N(() => [c(" " + A(t.t("Common.search")), 1)]),
|
|
4648
4658
|
_: 1
|
|
4649
4659
|
})) : i("", !0), E(t.$slots, "action")])]), l(C, {
|
|
4650
4660
|
show: t.drawer,
|
|
@@ -4656,21 +4666,21 @@ function Va(t, n, s, u, d, f) {
|
|
|
4656
4666
|
"auto-focus": !1,
|
|
4657
4667
|
"close-on-esc": !1
|
|
4658
4668
|
}, {
|
|
4659
|
-
default:
|
|
4669
|
+
default: N(() => [l(S, {
|
|
4660
4670
|
title: t.t("Common.search"),
|
|
4661
4671
|
closable: ""
|
|
4662
4672
|
}, {
|
|
4663
|
-
footer:
|
|
4673
|
+
footer: N(() => [o("div", Ba, [l(h, {
|
|
4664
4674
|
secondary: "",
|
|
4665
4675
|
loading: t.loading,
|
|
4666
4676
|
onClick: t.clearAll,
|
|
4667
4677
|
class: "uz-flex-1"
|
|
4668
4678
|
}, {
|
|
4669
|
-
icon:
|
|
4670
|
-
default:
|
|
4679
|
+
icon: N(() => [l(m, null, {
|
|
4680
|
+
default: N(() => [l(p, { icon: "Refresh" })]),
|
|
4671
4681
|
_: 1
|
|
4672
4682
|
})]),
|
|
4673
|
-
default:
|
|
4683
|
+
default: N(() => [c(" " + A(t.t("Common.reset")), 1)]),
|
|
4674
4684
|
_: 1
|
|
4675
4685
|
}, 8, ["loading", "onClick"]), t.itemData && Object.keys(t.itemData).length > 0 ? (x(), r(h, {
|
|
4676
4686
|
key: 0,
|
|
@@ -4679,25 +4689,25 @@ function Va(t, n, s, u, d, f) {
|
|
|
4679
4689
|
class: "uz-flex-1",
|
|
4680
4690
|
onClick: n[1] ||= (e) => t.doSearch(!1)
|
|
4681
4691
|
}, {
|
|
4682
|
-
icon:
|
|
4683
|
-
default:
|
|
4692
|
+
icon: N(() => [l(m, { size: "18" }, {
|
|
4693
|
+
default: N(() => [l(p, { icon: "Search" })]),
|
|
4684
4694
|
_: 1
|
|
4685
4695
|
})]),
|
|
4686
|
-
default:
|
|
4696
|
+
default: N(() => [c(" " + A(t.t("Common.search")), 1)]),
|
|
4687
4697
|
_: 1
|
|
4688
4698
|
}, 8, ["loading"])) : i("", !0)])]),
|
|
4689
|
-
default:
|
|
4699
|
+
default: N(() => [l(b, {
|
|
4690
4700
|
"x-gap": "8",
|
|
4691
4701
|
"y-gap": "8",
|
|
4692
4702
|
cols: "1"
|
|
4693
4703
|
}, {
|
|
4694
|
-
default:
|
|
4704
|
+
default: N(() => [(x(!0), a(e, null, T(t.itemData, (e, n) => (x(), r(y, {
|
|
4695
4705
|
key: `${n}_${Date.now()}`,
|
|
4696
4706
|
span: +!!e.search.show
|
|
4697
4707
|
}, {
|
|
4698
|
-
default:
|
|
4699
|
-
default:
|
|
4700
|
-
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)]),
|
|
4701
4711
|
_: 2
|
|
4702
4712
|
}, 1024), l(_, {
|
|
4703
4713
|
item: e,
|
|
@@ -4718,7 +4728,7 @@ function Va(t, n, s, u, d, f) {
|
|
|
4718
4728
|
var Ha = /*#__PURE__*/ Q(La, [["render", Va]]), Ua = d({
|
|
4719
4729
|
name: "UzSpin",
|
|
4720
4730
|
components: {
|
|
4721
|
-
NButton:
|
|
4731
|
+
NButton: I,
|
|
4722
4732
|
NSpin: Me,
|
|
4723
4733
|
NEllipsis: fe
|
|
4724
4734
|
},
|
|
@@ -4750,7 +4760,7 @@ var Ha = /*#__PURE__*/ Q(La, [["render", Va]]), Ua = d({
|
|
|
4750
4760
|
};
|
|
4751
4761
|
return b(() => {
|
|
4752
4762
|
clearInterval(r.value);
|
|
4753
|
-
}),
|
|
4763
|
+
}), j(() => e.status, (e) => {
|
|
4754
4764
|
e === 1 && s();
|
|
4755
4765
|
}), {
|
|
4756
4766
|
t: n,
|
|
@@ -4765,28 +4775,28 @@ var Ha = /*#__PURE__*/ Q(La, [["render", Va]]), Ua = d({
|
|
|
4765
4775
|
function Wa(e, t, n, i, a, s) {
|
|
4766
4776
|
let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
|
|
4767
4777
|
return x(), r(f, { show: e.value }, {
|
|
4768
|
-
description:
|
|
4778
|
+
description: N(() => [
|
|
4769
4779
|
l(u, {
|
|
4770
4780
|
"expand-trigger": "click",
|
|
4771
4781
|
"line-clamp": "3",
|
|
4772
4782
|
tooltip: !1
|
|
4773
4783
|
}, {
|
|
4774
|
-
default:
|
|
4784
|
+
default: N(() => [c(A(e.status === 0 ? e.t("Spin.processing") : e.message), 1)]),
|
|
4775
4785
|
_: 1
|
|
4776
4786
|
}),
|
|
4777
4787
|
t[0] ||= o("div", { class: "uz-br" }, null, -1),
|
|
4778
|
-
|
|
4788
|
+
P(l(d, {
|
|
4779
4789
|
type: "warning",
|
|
4780
4790
|
block: "",
|
|
4781
4791
|
secondary: "",
|
|
4782
4792
|
onMouseover: e.stopCountdown,
|
|
4783
4793
|
onClick: e.handleClose
|
|
4784
4794
|
}, {
|
|
4785
|
-
default:
|
|
4795
|
+
default: N(() => [c(A(e.t("Spin.closeCountdown", { seconds: e.counts })), 1)]),
|
|
4786
4796
|
_: 1
|
|
4787
|
-
}, 8, ["onMouseover", "onClick"]), [[
|
|
4797
|
+
}, 8, ["onMouseover", "onClick"]), [[te, e.status === 1]])
|
|
4788
4798
|
]),
|
|
4789
|
-
default:
|
|
4799
|
+
default: N(() => [E(e.$slots, "default")]),
|
|
4790
4800
|
_: 3
|
|
4791
4801
|
}, 8, ["show"]);
|
|
4792
4802
|
}
|
|
@@ -4923,9 +4933,9 @@ var eo = d({
|
|
|
4923
4933
|
components: {
|
|
4924
4934
|
NDataTable: oe,
|
|
4925
4935
|
NPopover: Ee,
|
|
4926
|
-
NButton:
|
|
4936
|
+
NButton: I,
|
|
4927
4937
|
NIcon: V,
|
|
4928
|
-
NCheckbox:
|
|
4938
|
+
NCheckbox: R,
|
|
4929
4939
|
NSpin: Me,
|
|
4930
4940
|
VueDraggable: et,
|
|
4931
4941
|
UzSpin: Ga,
|
|
@@ -5065,13 +5075,13 @@ var eo = d({
|
|
|
5065
5075
|
pageMax: 1,
|
|
5066
5076
|
pageSize: e.pageSize || 30
|
|
5067
5077
|
}
|
|
5068
|
-
}), 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({
|
|
5069
5079
|
fetch: null,
|
|
5070
5080
|
fetchFn: "",
|
|
5071
5081
|
when_drawer_open: "",
|
|
5072
5082
|
when_before_save: "",
|
|
5073
5083
|
when_after_save: ""
|
|
5074
|
-
}),
|
|
5084
|
+
}), L = w(wi()), re = w(""), R = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, n) => {
|
|
5075
5085
|
t("update:rowKeys", {
|
|
5076
5086
|
keys: e,
|
|
5077
5087
|
rows: W(n)
|
|
@@ -5090,7 +5100,7 @@ var eo = d({
|
|
|
5090
5100
|
}, le = (e) => {
|
|
5091
5101
|
O.value = e;
|
|
5092
5102
|
}, ue = n(() => {
|
|
5093
|
-
let t = e.summary ||
|
|
5103
|
+
let t = e.summary || L.value.summary;
|
|
5094
5104
|
if (t && typeof t == "string") {
|
|
5095
5105
|
let e = Function("pageData", "h", t);
|
|
5096
5106
|
return (t) => e(t, f);
|
|
@@ -5102,8 +5112,8 @@ var eo = d({
|
|
|
5102
5112
|
...t,
|
|
5103
5113
|
tableId: n
|
|
5104
5114
|
});
|
|
5105
|
-
else if (
|
|
5106
|
-
let e =
|
|
5115
|
+
else if (F.value.fetchFn) {
|
|
5116
|
+
let e = F.value.fetchFn;
|
|
5107
5117
|
r = Function("POST", "queryData", e)(Z, { ...t });
|
|
5108
5118
|
} else r = Xn({
|
|
5109
5119
|
...t,
|
|
@@ -5116,8 +5126,8 @@ var eo = d({
|
|
|
5116
5126
|
id: t.id,
|
|
5117
5127
|
tableId: n
|
|
5118
5128
|
});
|
|
5119
|
-
else if (
|
|
5120
|
-
let e =
|
|
5129
|
+
else if (F.value.fetchFn) {
|
|
5130
|
+
let e = F.value.fetchFn;
|
|
5121
5131
|
r = Function("POST", "queryData", e)(Z, { id: t.id });
|
|
5122
5132
|
} else r = Xn({
|
|
5123
5133
|
id: t.id,
|
|
@@ -5128,14 +5138,14 @@ var eo = d({
|
|
|
5128
5138
|
let r = e.id || o.params.id;
|
|
5129
5139
|
e.enableLoading && (_.value = !0, t("update:loading", !0));
|
|
5130
5140
|
let i = W(k.value);
|
|
5131
|
-
n && delete i.orderby,
|
|
5141
|
+
n && delete i.orderby, F.value.fetch ? tr([F.value.fetch], "", i).then((e) => {
|
|
5132
5142
|
let n = At(e);
|
|
5133
|
-
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);
|
|
5134
5144
|
}).catch(() => {
|
|
5135
5145
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5136
5146
|
}) : de(i).then((e) => {
|
|
5137
5147
|
let n = At(e);
|
|
5138
|
-
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);
|
|
5139
5149
|
}).catch(() => {
|
|
5140
5150
|
_.value = !1, v.value = !0, t("update:loading", !1);
|
|
5141
5151
|
});
|
|
@@ -5156,7 +5166,7 @@ var eo = d({
|
|
|
5156
5166
|
form: e,
|
|
5157
5167
|
data: {}
|
|
5158
5168
|
};
|
|
5159
|
-
},
|
|
5169
|
+
}, L.value, F.value, 0, Me);
|
|
5160
5170
|
}, _e = (e) => {
|
|
5161
5171
|
e.show = !e.show, je();
|
|
5162
5172
|
}, ve = (e) => {
|
|
@@ -5179,8 +5189,8 @@ var eo = d({
|
|
|
5179
5189
|
ellipsis: !0,
|
|
5180
5190
|
width: 180,
|
|
5181
5191
|
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => jt(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5182
|
-
}], be = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !
|
|
5183
|
-
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());
|
|
5184
5194
|
return x.value = t, {
|
|
5185
5195
|
form: t,
|
|
5186
5196
|
fillingDefaultValue: n,
|
|
@@ -5202,7 +5212,7 @@ var eo = d({
|
|
|
5202
5212
|
} catch (e) {
|
|
5203
5213
|
K(e);
|
|
5204
5214
|
}
|
|
5205
|
-
let o =
|
|
5215
|
+
let o = F.value.when_drawer_open;
|
|
5206
5216
|
if (o && typeof o == "string") try {
|
|
5207
5217
|
a = await Function("data", "POST", o)(a, Z).catch((e) => {
|
|
5208
5218
|
K(e);
|
|
@@ -5254,12 +5264,12 @@ var eo = d({
|
|
|
5254
5264
|
else if (n.type !== "group" && n.action === "detailInside") {
|
|
5255
5265
|
let t = W(n.onClick);
|
|
5256
5266
|
n.onClick = (n) => {
|
|
5257
|
-
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);
|
|
5258
5268
|
};
|
|
5259
5269
|
} else if (n.type !== "group" && n.action === "editInside") {
|
|
5260
5270
|
let t = W(n.onClick);
|
|
5261
5271
|
n.onClick = (n) => {
|
|
5262
|
-
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);
|
|
5263
5273
|
};
|
|
5264
5274
|
} else if (n.type !== "group" && n.action === "deleteInside") {
|
|
5265
5275
|
let t = W(n.onClick);
|
|
@@ -5341,9 +5351,9 @@ var eo = d({
|
|
|
5341
5351
|
};
|
|
5342
5352
|
}
|
|
5343
5353
|
}, Te = async () => {
|
|
5344
|
-
|
|
5345
|
-
let { tableColumns: n, search: r, subTableIds: i, subTableExpand: a } = await Ei(
|
|
5346
|
-
!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({
|
|
5347
5357
|
title: "#",
|
|
5348
5358
|
key: "index",
|
|
5349
5359
|
align: "center",
|
|
@@ -5358,18 +5368,18 @@ var eo = d({
|
|
|
5358
5368
|
return (e - 1) * n + (t + 1);
|
|
5359
5369
|
} });
|
|
5360
5370
|
}
|
|
5361
|
-
}), !l.value && (e.selection ||
|
|
5371
|
+
}), !l.value && (e.selection || L.value.selection !== 0) && n.unshift({
|
|
5362
5372
|
type: "selection",
|
|
5363
5373
|
fixed: "left",
|
|
5364
5374
|
width: 60,
|
|
5365
5375
|
hide: !0,
|
|
5366
5376
|
show: !0,
|
|
5367
|
-
multiple: e.selection === 2 ||
|
|
5377
|
+
multiple: e.selection === 2 || L.value.selection === 2,
|
|
5368
5378
|
options: ["all", "none"]
|
|
5369
5379
|
});
|
|
5370
5380
|
let c = e.id || o.params.id;
|
|
5371
|
-
if (!l.value &&
|
|
5372
|
-
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);
|
|
5373
5383
|
for (let t of e) t.type === "group" ? t.children.forEach((e) => {
|
|
5374
5384
|
we(e, i);
|
|
5375
5385
|
}) : we(t, i);
|
|
@@ -5382,7 +5392,7 @@ var eo = d({
|
|
|
5382
5392
|
checked: !0,
|
|
5383
5393
|
show: !0,
|
|
5384
5394
|
hide: !0,
|
|
5385
|
-
width: Number(typeof
|
|
5395
|
+
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
5386
5396
|
render(t) {
|
|
5387
5397
|
return ur({
|
|
5388
5398
|
buttons: e,
|
|
@@ -5417,12 +5427,12 @@ var eo = d({
|
|
|
5417
5427
|
return !1;
|
|
5418
5428
|
}
|
|
5419
5429
|
} : () => !0,
|
|
5420
|
-
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") })]),
|
|
5421
5431
|
renderExpand: (e) => f(Ja, {
|
|
5422
5432
|
data: a,
|
|
5423
5433
|
value: e
|
|
5424
5434
|
})
|
|
5425
|
-
}),
|
|
5435
|
+
}), L.value.asynchronous ? t("update:asynchronous", L.value.asynchronous) : t("update:asynchronous", null);
|
|
5426
5436
|
let d = 0;
|
|
5427
5437
|
u.forEach((e) => {
|
|
5428
5438
|
e.show && (d += Number(e.width || 140));
|
|
@@ -5430,7 +5440,7 @@ var eo = d({
|
|
|
5430
5440
|
}, Ee = (e) => typeof e == "number" ? `${e}px` : e, De = () => {
|
|
5431
5441
|
if (e.height) {
|
|
5432
5442
|
let t = Ee(e.height);
|
|
5433
|
-
ee.value = t,
|
|
5443
|
+
ee.value = t, te.value = t;
|
|
5434
5444
|
}
|
|
5435
5445
|
}, Oe = (t) => {
|
|
5436
5446
|
let n = e.id || o.params.id;
|
|
@@ -5474,15 +5484,15 @@ var eo = d({
|
|
|
5474
5484
|
tableId: a,
|
|
5475
5485
|
...t
|
|
5476
5486
|
}), i.then((e) => {
|
|
5477
|
-
if (
|
|
5478
|
-
let r =
|
|
5487
|
+
if (F.value.when_after_save) try {
|
|
5488
|
+
let r = F.value.when_after_save;
|
|
5479
5489
|
Function("data", "POST", "res", r)(t, Z, e).then(() => {
|
|
5480
5490
|
B(), n();
|
|
5481
5491
|
}).catch(() => {
|
|
5482
|
-
|
|
5492
|
+
re.value = s("Notice.network"), R.value = !0;
|
|
5483
5493
|
});
|
|
5484
5494
|
} catch {
|
|
5485
|
-
|
|
5495
|
+
re.value = s("Notice.network"), R.value = !0;
|
|
5486
5496
|
return;
|
|
5487
5497
|
}
|
|
5488
5498
|
else B(), n();
|
|
@@ -5490,20 +5500,20 @@ var eo = d({
|
|
|
5490
5500
|
r(e);
|
|
5491
5501
|
});
|
|
5492
5502
|
}, Ne = () => {
|
|
5493
|
-
b.value = "",
|
|
5503
|
+
b.value = "", N.value = [], P.value = [], ne.value = [], F.value = {
|
|
5494
5504
|
fetch: null,
|
|
5495
5505
|
fetchFn: "",
|
|
5496
5506
|
when_drawer_open: "",
|
|
5497
5507
|
when_before_save: "",
|
|
5498
5508
|
when_after_save: ""
|
|
5499
|
-
},
|
|
5509
|
+
}, L.value = wi();
|
|
5500
5510
|
}, Pe = (t) => {
|
|
5501
5511
|
let n = tt.parse(t.viewJson);
|
|
5502
|
-
b.value = t.tableTitle,
|
|
5512
|
+
b.value = t.tableTitle, N.value = bi(n.table), P.value = vr(e.actions || n.action);
|
|
5503
5513
|
let r = vr(n.suffix || []);
|
|
5504
|
-
|
|
5514
|
+
ne.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), F.value = Si(n.trigger);
|
|
5505
5515
|
let i = wi(e.options ?? n.option);
|
|
5506
|
-
t.tableTitle && i.title && Mt(t.tableTitle),
|
|
5516
|
+
t.tableTitle && i.title && Mt(t.tableTitle), L.value = i;
|
|
5507
5517
|
}, Fe = async () => {
|
|
5508
5518
|
v.value = !1, Ne();
|
|
5509
5519
|
let t = e.id || o.params.id;
|
|
@@ -5515,15 +5525,15 @@ var eo = d({
|
|
|
5515
5525
|
pageSize: e.pageSize || 30
|
|
5516
5526
|
}
|
|
5517
5527
|
}, E.value = [], e.ruleFetch) try {
|
|
5518
|
-
|
|
5528
|
+
M.value = await e.ruleFetch(t);
|
|
5519
5529
|
} catch {
|
|
5520
|
-
|
|
5530
|
+
re.value = s("Notice.network"), R.value = !0;
|
|
5521
5531
|
return;
|
|
5522
5532
|
}
|
|
5523
|
-
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) => {
|
|
5524
5534
|
Pe(e), await Te();
|
|
5525
5535
|
}).catch((e) => {
|
|
5526
|
-
|
|
5536
|
+
re.value = e?.message || s("Notice.network"), R.value = !0;
|
|
5527
5537
|
});
|
|
5528
5538
|
}, Ie = (e) => {
|
|
5529
5539
|
if (e.type !== "group" && e.optionsType) {
|
|
@@ -5582,19 +5592,19 @@ var eo = d({
|
|
|
5582
5592
|
right: 0
|
|
5583
5593
|
});
|
|
5584
5594
|
});
|
|
5585
|
-
}),
|
|
5595
|
+
}), j(() => e.height, () => {
|
|
5586
5596
|
De();
|
|
5587
|
-
}),
|
|
5597
|
+
}), j([() => o.params.id, () => e.id], async () => {
|
|
5588
5598
|
kt(), await Fe();
|
|
5589
|
-
}),
|
|
5599
|
+
}), j(() => e.defaultCheckedRowKeys, (e) => {
|
|
5590
5600
|
let t = e || [], n = z.value.filter((e) => t.includes(e.id));
|
|
5591
5601
|
ie.value = t, z.value = n;
|
|
5592
5602
|
}, { deep: !0 }), {
|
|
5593
5603
|
loading: _,
|
|
5594
5604
|
minH: ee,
|
|
5595
|
-
maxH:
|
|
5605
|
+
maxH: te,
|
|
5596
5606
|
drawerRef: m,
|
|
5597
|
-
tableOption:
|
|
5607
|
+
tableOption: L,
|
|
5598
5608
|
tableCols: T,
|
|
5599
5609
|
tableData: E,
|
|
5600
5610
|
tableQueries: k,
|
|
@@ -5603,10 +5613,10 @@ var eo = d({
|
|
|
5603
5613
|
isSlotHeader: g,
|
|
5604
5614
|
title: b,
|
|
5605
5615
|
dynamicLoading: v,
|
|
5606
|
-
spinMsg:
|
|
5616
|
+
spinMsg: re,
|
|
5607
5617
|
tableScrollX: D,
|
|
5608
|
-
suffixes:
|
|
5609
|
-
spinError:
|
|
5618
|
+
suffixes: ne,
|
|
5619
|
+
spinError: R,
|
|
5610
5620
|
isMobile: l,
|
|
5611
5621
|
mRef: u,
|
|
5612
5622
|
checkRowKeys: ie,
|
|
@@ -5644,17 +5654,17 @@ var eo = d({
|
|
|
5644
5654
|
class: "uz-transform-fade-in"
|
|
5645
5655
|
}, io = { class: "uz-com-title" }, ao = ["data-index"];
|
|
5646
5656
|
function oo(t, n, u, d, f, p) {
|
|
5647
|
-
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");
|
|
5648
5658
|
return x(), a("div", {
|
|
5649
5659
|
class: "uz-table",
|
|
5650
5660
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
5651
5661
|
}, [
|
|
5652
|
-
|
|
5653
|
-
|
|
5662
|
+
P(l(m, null, null, 512), [[te, !t.dynamicLoading]]),
|
|
5663
|
+
P(l(ne, {
|
|
5654
5664
|
show: t.spinError,
|
|
5655
5665
|
class: "uz-table-n-spin"
|
|
5656
5666
|
}, {
|
|
5657
|
-
description:
|
|
5667
|
+
description: N(() => [
|
|
5658
5668
|
o("div", null, A(t.spinMsg), 1),
|
|
5659
5669
|
n[1] ||= o("div", { class: "uz-br" }, null, -1),
|
|
5660
5670
|
l(h, {
|
|
@@ -5662,11 +5672,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5662
5672
|
onClick: t.rebuild,
|
|
5663
5673
|
block: ""
|
|
5664
5674
|
}, {
|
|
5665
|
-
default:
|
|
5675
|
+
default: N(() => [c(A(t.$t("Common.retry")), 1)]),
|
|
5666
5676
|
_: 1
|
|
5667
5677
|
}, 8, ["onClick"])
|
|
5668
5678
|
]),
|
|
5669
|
-
default:
|
|
5679
|
+
default: N(() => [t.isMobile ? (x(), a("div", {
|
|
5670
5680
|
key: 0,
|
|
5671
5681
|
class: g([t.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
|
|
5672
5682
|
}, [l(S, {
|
|
@@ -5676,18 +5686,18 @@ function oo(t, n, u, d, f, p) {
|
|
|
5676
5686
|
loading: t.loading,
|
|
5677
5687
|
"onOnUpdate:value": t.submit
|
|
5678
5688
|
}, s({
|
|
5679
|
-
action:
|
|
5689
|
+
action: N(() => [
|
|
5680
5690
|
t.addFetch && t.tableOption.addButton ? (x(), r(h, {
|
|
5681
5691
|
key: 0,
|
|
5682
5692
|
secondary: "",
|
|
5683
5693
|
disabled: t.checkRole("add"),
|
|
5684
5694
|
onClick: t.handleAdd
|
|
5685
5695
|
}, {
|
|
5686
|
-
icon:
|
|
5687
|
-
default:
|
|
5696
|
+
icon: N(() => [l(y, null, {
|
|
5697
|
+
default: N(() => [l(v, { icon: "Add" })]),
|
|
5688
5698
|
_: 1
|
|
5689
5699
|
})]),
|
|
5690
|
-
default:
|
|
5700
|
+
default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
|
|
5691
5701
|
_: 1
|
|
5692
5702
|
}, 8, ["disabled", "onClick"])) : i("", !0),
|
|
5693
5703
|
t.suffixes && t.suffixes.length > 0 ? (x(), r(b, {
|
|
@@ -5704,11 +5714,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5704
5714
|
_: 2
|
|
5705
5715
|
}, [t.isSlotHeader ? {
|
|
5706
5716
|
name: "header",
|
|
5707
|
-
fn:
|
|
5717
|
+
fn: N(() => [E(t.$slots, "header")]),
|
|
5708
5718
|
key: "0"
|
|
5709
5719
|
} : {
|
|
5710
5720
|
name: "header",
|
|
5711
|
-
fn:
|
|
5721
|
+
fn: N(() => [o("div", to, A(t.title), 1)]),
|
|
5712
5722
|
key: "1"
|
|
5713
5723
|
}]), 1032, [
|
|
5714
5724
|
"data",
|
|
@@ -5734,7 +5744,7 @@ function oo(t, n, u, d, f, p) {
|
|
|
5734
5744
|
"minH",
|
|
5735
5745
|
"maxH",
|
|
5736
5746
|
"onUpdate:rowKeys"
|
|
5737
|
-
])], 512)], 2)) : (x(), a("div", ro, [l(
|
|
5747
|
+
])], 512)], 2)) : (x(), a("div", ro, [l(j, {
|
|
5738
5748
|
data: t.searchData,
|
|
5739
5749
|
id: t.id || t.route.params.id,
|
|
5740
5750
|
cache: t.tableOption.cache,
|
|
@@ -5743,22 +5753,22 @@ function oo(t, n, u, d, f, p) {
|
|
|
5743
5753
|
enableHeader: t.enableHeader,
|
|
5744
5754
|
"onOnUpdate:value": t.submit
|
|
5745
5755
|
}, s({
|
|
5746
|
-
action:
|
|
5756
|
+
action: N(() => [
|
|
5747
5757
|
t.tableOption.filterButton && t.filterColumns.length > 0 ? (x(), r(k, {
|
|
5748
5758
|
key: 0,
|
|
5749
5759
|
placement: "bottom-end",
|
|
5750
5760
|
trigger: "click",
|
|
5751
5761
|
"show-arrow": !1
|
|
5752
5762
|
}, {
|
|
5753
|
-
trigger:
|
|
5754
|
-
icon:
|
|
5755
|
-
default:
|
|
5763
|
+
trigger: N(() => [l(h, { secondary: "" }, {
|
|
5764
|
+
icon: N(() => [l(y, null, {
|
|
5765
|
+
default: N(() => [l(v, { icon: "Filter" })]),
|
|
5756
5766
|
_: 1
|
|
5757
5767
|
})]),
|
|
5758
|
-
default:
|
|
5768
|
+
default: N(() => [c(" " + A(t.$t("Common.columns")), 1)]),
|
|
5759
5769
|
_: 1
|
|
5760
5770
|
})]),
|
|
5761
|
-
default:
|
|
5771
|
+
default: N(() => [l(O, {
|
|
5762
5772
|
modelValue: t.filterColumns,
|
|
5763
5773
|
"onUpdate:modelValue": n[0] ||= (e) => t.filterColumns = e,
|
|
5764
5774
|
animation: 200,
|
|
@@ -5769,7 +5779,7 @@ function oo(t, n, u, d, f, p) {
|
|
|
5769
5779
|
handle: ".uz-drag-handle",
|
|
5770
5780
|
onEnd: t.handleColumnChange
|
|
5771
5781
|
}, {
|
|
5772
|
-
default:
|
|
5782
|
+
default: N(() => [(x(!0), a(e, null, T(t.filterColumns, (e, n) => P((x(), a("div", {
|
|
5773
5783
|
key: e.key,
|
|
5774
5784
|
class: "uz-table-sort",
|
|
5775
5785
|
"data-index": n
|
|
@@ -5778,24 +5788,24 @@ function oo(t, n, u, d, f, p) {
|
|
|
5778
5788
|
"on-update:checked": () => t.showChange(e),
|
|
5779
5789
|
size: "large"
|
|
5780
5790
|
}, {
|
|
5781
|
-
default:
|
|
5791
|
+
default: N(() => [c(A(typeof e.title == "string" ? e.title : e.title && e.title()), 1)]),
|
|
5782
5792
|
_: 2
|
|
5783
5793
|
}, 1032, ["checked", "on-update:checked"]), l(h, {
|
|
5784
5794
|
quaternary: "",
|
|
5785
5795
|
class: "uz-drag-handle"
|
|
5786
5796
|
}, {
|
|
5787
|
-
icon:
|
|
5788
|
-
default:
|
|
5797
|
+
icon: N(() => [l(y, { size: "18" }, {
|
|
5798
|
+
default: N(() => [l(v, { icon: "List" })]),
|
|
5789
5799
|
_: 1
|
|
5790
5800
|
})]),
|
|
5791
5801
|
_: 1
|
|
5792
|
-
})], 8, ao)), [[
|
|
5802
|
+
})], 8, ao)), [[te, !e.hide]])), 128)), l(h, {
|
|
5793
5803
|
block: "",
|
|
5794
5804
|
tertiary: "",
|
|
5795
5805
|
loading: t.loading,
|
|
5796
5806
|
onClick: t.resetFilter
|
|
5797
5807
|
}, {
|
|
5798
|
-
default:
|
|
5808
|
+
default: N(() => [c(A(t.$t("Common.reset")), 1)]),
|
|
5799
5809
|
_: 1
|
|
5800
5810
|
}, 8, ["loading", "onClick"])]),
|
|
5801
5811
|
_: 1
|
|
@@ -5827,11 +5837,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5827
5837
|
disabled: t.checkRole("add"),
|
|
5828
5838
|
onClick: t.handleAdd
|
|
5829
5839
|
}, {
|
|
5830
|
-
icon:
|
|
5831
|
-
default:
|
|
5840
|
+
icon: N(() => [l(y, null, {
|
|
5841
|
+
default: N(() => [l(v, { icon: "Add" })]),
|
|
5832
5842
|
_: 1
|
|
5833
5843
|
})]),
|
|
5834
|
-
default:
|
|
5844
|
+
default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
|
|
5835
5845
|
_: 1
|
|
5836
5846
|
}, 8, ["disabled", "onClick"])) : i("", !0),
|
|
5837
5847
|
E(t.$slots, "action")
|
|
@@ -5839,11 +5849,11 @@ function oo(t, n, u, d, f, p) {
|
|
|
5839
5849
|
_: 2
|
|
5840
5850
|
}, [t.isSlotHeader ? {
|
|
5841
5851
|
name: "header",
|
|
5842
|
-
fn:
|
|
5852
|
+
fn: N(() => [E(t.$slots, "header")]),
|
|
5843
5853
|
key: "0"
|
|
5844
5854
|
} : {
|
|
5845
5855
|
name: "header",
|
|
5846
|
-
fn:
|
|
5856
|
+
fn: N(() => [o("div", io, A(t.title), 1)]),
|
|
5847
5857
|
key: "1"
|
|
5848
5858
|
}]), 1032, [
|
|
5849
5859
|
"data",
|
|
@@ -5853,7 +5863,7 @@ function oo(t, n, u, d, f, p) {
|
|
|
5853
5863
|
"cols",
|
|
5854
5864
|
"enableHeader",
|
|
5855
5865
|
"onOnUpdate:value"
|
|
5856
|
-
]), l(
|
|
5866
|
+
]), l(M, {
|
|
5857
5867
|
ref: "tableRef",
|
|
5858
5868
|
columns: t.tableCols,
|
|
5859
5869
|
data: t.tableData,
|
|
@@ -5900,8 +5910,8 @@ function oo(t, n, u, d, f, p) {
|
|
|
5900
5910
|
"onUpdate:expandedRowKeys"
|
|
5901
5911
|
])]))]),
|
|
5902
5912
|
_: 3
|
|
5903
|
-
}, 8, ["show"]), [[
|
|
5904
|
-
l(
|
|
5913
|
+
}, 8, ["show"]), [[te, t.dynamicLoading]]),
|
|
5914
|
+
l(F, { ref: "drawerRef" }, null, 512)
|
|
5905
5915
|
], 4);
|
|
5906
5916
|
}
|
|
5907
5917
|
var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
@@ -5909,7 +5919,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
5909
5919
|
components: {
|
|
5910
5920
|
UzIcon: qt,
|
|
5911
5921
|
NSpin: Me,
|
|
5912
|
-
NButton:
|
|
5922
|
+
NButton: I,
|
|
5913
5923
|
NIcon: V,
|
|
5914
5924
|
NDataTable: oe,
|
|
5915
5925
|
NForm: pe,
|
|
@@ -5957,10 +5967,10 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
5957
5967
|
K(e);
|
|
5958
5968
|
}
|
|
5959
5969
|
b.value.child = r, g.value = !1, h(() => {
|
|
5960
|
-
|
|
5970
|
+
P();
|
|
5961
5971
|
});
|
|
5962
5972
|
} else h(() => {
|
|
5963
|
-
|
|
5973
|
+
P();
|
|
5964
5974
|
});
|
|
5965
5975
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
5966
5976
|
e.item._suffix && (C.value = e.item._suffix.filter((e) => e.sub)), await E(e.value, t);
|
|
@@ -6032,9 +6042,9 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6032
6042
|
return [];
|
|
6033
6043
|
}, ee = async () => {
|
|
6034
6044
|
x.value = "", b.value.child.push(W(S.value)), h(() => {
|
|
6035
|
-
|
|
6045
|
+
P();
|
|
6036
6046
|
});
|
|
6037
|
-
},
|
|
6047
|
+
}, te = async () => {
|
|
6038
6048
|
x.value = "";
|
|
6039
6049
|
try {
|
|
6040
6050
|
let t = e.item.params.options;
|
|
@@ -6047,7 +6057,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6047
6057
|
callback: async (e) => {
|
|
6048
6058
|
let t = await n(e, o, Z);
|
|
6049
6059
|
b.value.child = [...b.value.child, ...t], h(() => {
|
|
6050
|
-
|
|
6060
|
+
P();
|
|
6051
6061
|
});
|
|
6052
6062
|
}
|
|
6053
6063
|
});
|
|
@@ -6057,21 +6067,21 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6057
6067
|
children: () => b.value.child,
|
|
6058
6068
|
callback: async (e) => {
|
|
6059
6069
|
b.value.child = [...b.value.child, ...e], h(() => {
|
|
6060
|
-
|
|
6070
|
+
P();
|
|
6061
6071
|
});
|
|
6062
6072
|
}
|
|
6063
6073
|
});
|
|
6064
6074
|
} catch (e) {
|
|
6065
6075
|
K(e);
|
|
6066
6076
|
}
|
|
6067
|
-
},
|
|
6077
|
+
}, M = () => {
|
|
6068
6078
|
m.value?.restoreValidation();
|
|
6069
|
-
},
|
|
6079
|
+
}, N = () => (x.value = "", new Promise((t, n) => {
|
|
6070
6080
|
let r = b.value.child.filter((e) => !e.delete).length;
|
|
6071
6081
|
e.item.form.rule.required && r === 0 ? (x.value = e.item.form.rule.message, n()) : m.value?.validate((r) => {
|
|
6072
6082
|
r ? (x.value = e.item.form.rule.message, n()) : t();
|
|
6073
6083
|
});
|
|
6074
|
-
})),
|
|
6084
|
+
})), P = () => {
|
|
6075
6085
|
if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
|
|
6076
6086
|
let e = u.value.$el.querySelector(".n-data-table-tbody");
|
|
6077
6087
|
e && (d.value = nt.create(e, {
|
|
@@ -6084,7 +6094,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6084
6094
|
sort_index: t
|
|
6085
6095
|
})), b.value.child = n, h(() => {
|
|
6086
6096
|
_.value = !0, setTimeout(() => {
|
|
6087
|
-
|
|
6097
|
+
P();
|
|
6088
6098
|
}, 0);
|
|
6089
6099
|
});
|
|
6090
6100
|
}
|
|
@@ -6094,21 +6104,21 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6094
6104
|
return v(() => {
|
|
6095
6105
|
d.value?.destroy(), d.value = null;
|
|
6096
6106
|
}), r({
|
|
6097
|
-
validate:
|
|
6098
|
-
restoreValidation:
|
|
6099
|
-
}),
|
|
6107
|
+
validate: N,
|
|
6108
|
+
restoreValidation: M
|
|
6109
|
+
}), j(() => e.item.params.columns, (e, t) => {
|
|
6100
6110
|
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
6101
6111
|
}, {
|
|
6102
6112
|
deep: !0,
|
|
6103
6113
|
immediate: !0
|
|
6104
|
-
}),
|
|
6114
|
+
}), j(() => e.value, (e) => {
|
|
6105
6115
|
JSON.stringify(e) !== JSON.stringify(b.value.child) && D(e);
|
|
6106
6116
|
}, {
|
|
6107
6117
|
deep: !0,
|
|
6108
6118
|
immediate: !0
|
|
6109
|
-
}),
|
|
6119
|
+
}), j(() => b.value.child, (n) => {
|
|
6110
6120
|
e.status !== 2 && t("update:value", n);
|
|
6111
|
-
}, { deep: !0 }),
|
|
6121
|
+
}, { deep: !0 }), j(() => c.value, async () => {
|
|
6112
6122
|
await k(void 0, !0);
|
|
6113
6123
|
}), {
|
|
6114
6124
|
t: l,
|
|
@@ -6123,7 +6133,7 @@ var so = /*#__PURE__*/ Q(eo, [["render", oo]]), co = d({
|
|
|
6123
6133
|
tableShow: _,
|
|
6124
6134
|
suffixes: C,
|
|
6125
6135
|
onAdd: ee,
|
|
6126
|
-
onAddFormData:
|
|
6136
|
+
onAddFormData: te,
|
|
6127
6137
|
rowClassName: O,
|
|
6128
6138
|
doSuffixClick: (e) => {
|
|
6129
6139
|
i({
|
|
@@ -6151,12 +6161,12 @@ function go(t, n, u, d, f, p) {
|
|
|
6151
6161
|
secondary: "",
|
|
6152
6162
|
onClick: (n) => t.doSuffixClick(e)
|
|
6153
6163
|
}, s({
|
|
6154
|
-
default:
|
|
6164
|
+
default: N(() => [c(" " + A(e.buttonText), 1)]),
|
|
6155
6165
|
_: 2
|
|
6156
6166
|
}, [e.icon ? {
|
|
6157
6167
|
name: "icon",
|
|
6158
|
-
fn:
|
|
6159
|
-
default:
|
|
6168
|
+
fn: N(() => [l(h, null, {
|
|
6169
|
+
default: N(() => [l(m, { icon: e.icon }, null, 8, ["icon"])]),
|
|
6160
6170
|
_: 2
|
|
6161
6171
|
}, 1024)]),
|
|
6162
6172
|
key: "0"
|
|
@@ -6167,11 +6177,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6167
6177
|
secondary: "",
|
|
6168
6178
|
onClick: t.onAddFormData
|
|
6169
6179
|
}, {
|
|
6170
|
-
icon:
|
|
6171
|
-
default:
|
|
6180
|
+
icon: N(() => [l(h, null, {
|
|
6181
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6172
6182
|
_: 1
|
|
6173
6183
|
})]),
|
|
6174
|
-
default:
|
|
6184
|
+
default: N(() => [c(" " + A(t.t("Table.addFromData")), 1)]),
|
|
6175
6185
|
_: 1
|
|
6176
6186
|
}, 8, ["onClick"])) : i("", !0),
|
|
6177
6187
|
t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), r(_, {
|
|
@@ -6180,11 +6190,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6180
6190
|
secondary: "",
|
|
6181
6191
|
onClick: t.onAdd
|
|
6182
6192
|
}, {
|
|
6183
|
-
icon:
|
|
6184
|
-
default:
|
|
6193
|
+
icon: N(() => [l(h, null, {
|
|
6194
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6185
6195
|
_: 1
|
|
6186
6196
|
})]),
|
|
6187
|
-
default:
|
|
6197
|
+
default: N(() => [c(" " + A(t.t("Common.add")), 1)]),
|
|
6188
6198
|
_: 1
|
|
6189
6199
|
}, 8, ["onClick"])) : i("", !0)
|
|
6190
6200
|
])]),
|
|
@@ -6195,7 +6205,7 @@ function go(t, n, u, d, f, p) {
|
|
|
6195
6205
|
model: t.tableData,
|
|
6196
6206
|
class: "uz-flex uz-flex-col uz-gap-2"
|
|
6197
6207
|
}, {
|
|
6198
|
-
default:
|
|
6208
|
+
default: N(() => [t.tableShow ? (x(), r(v, {
|
|
6199
6209
|
key: 0,
|
|
6200
6210
|
ref: "tableRef",
|
|
6201
6211
|
columns: t.columns,
|
|
@@ -6223,11 +6233,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6223
6233
|
secondary: "",
|
|
6224
6234
|
onClick: t.onAddFormData
|
|
6225
6235
|
}, {
|
|
6226
|
-
icon:
|
|
6227
|
-
default:
|
|
6236
|
+
icon: N(() => [l(h, null, {
|
|
6237
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6228
6238
|
_: 1
|
|
6229
6239
|
})]),
|
|
6230
|
-
default:
|
|
6240
|
+
default: N(() => [c(" " + A(t.t("Table.addFromData")), 1)]),
|
|
6231
6241
|
_: 1
|
|
6232
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(_, {
|
|
6233
6243
|
key: 1,
|
|
@@ -6235,11 +6245,11 @@ function go(t, n, u, d, f, p) {
|
|
|
6235
6245
|
secondary: "",
|
|
6236
6246
|
onClick: t.onAdd
|
|
6237
6247
|
}, {
|
|
6238
|
-
icon:
|
|
6239
|
-
default:
|
|
6248
|
+
icon: N(() => [l(h, null, {
|
|
6249
|
+
default: N(() => [l(m, { icon: "Add" })]),
|
|
6240
6250
|
_: 1
|
|
6241
6251
|
})]),
|
|
6242
|
-
default:
|
|
6252
|
+
default: N(() => [c(" " + A(t.t("Common.add")), 1)]),
|
|
6243
6253
|
_: 1
|
|
6244
6254
|
}, 8, ["onClick"])) : i("", !0)])]),
|
|
6245
6255
|
_: 1
|
|
@@ -6311,7 +6321,7 @@ var _o = /*#__PURE__*/ Q(co, [["render", go]]), vo = d({
|
|
|
6311
6321
|
};
|
|
6312
6322
|
return y(() => {
|
|
6313
6323
|
l();
|
|
6314
|
-
}),
|
|
6324
|
+
}), M(async () => {
|
|
6315
6325
|
try {
|
|
6316
6326
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
6317
6327
|
let t = await Xn({
|
|
@@ -6377,7 +6387,7 @@ function So(e, t, n, r, i, s) {
|
|
|
6377
6387
|
var Co = /*#__PURE__*/ Q(vo, [["render", So]]), wo = d({
|
|
6378
6388
|
name: "UzTableDrawer",
|
|
6379
6389
|
components: {
|
|
6380
|
-
NButton:
|
|
6390
|
+
NButton: I,
|
|
6381
6391
|
NDrawerContent: ue,
|
|
6382
6392
|
NDrawer: le,
|
|
6383
6393
|
NSkeleton: Ae,
|
|
@@ -6561,19 +6571,19 @@ function ko(t, n, u, d, f, p) {
|
|
|
6561
6571
|
"auto-focus": !1,
|
|
6562
6572
|
"mask-closable": !1
|
|
6563
6573
|
}, {
|
|
6564
|
-
default:
|
|
6574
|
+
default: N(() => [l(b, {
|
|
6565
6575
|
title: t.formStatus === 1 ? t.t("Common.edit") : t.formStatus === 2 ? t.t("Common.detail") : t.t("Common.add"),
|
|
6566
6576
|
closable: ""
|
|
6567
6577
|
}, s({
|
|
6568
|
-
default:
|
|
6569
|
-
description:
|
|
6570
|
-
default:
|
|
6578
|
+
default: N(() => [l(_, { show: t.spinError }, {
|
|
6579
|
+
description: N(() => [c(A(t.t("Notice.error")), 1)]),
|
|
6580
|
+
default: N(() => [l(g, {
|
|
6571
6581
|
value: t.spinShow,
|
|
6572
6582
|
"onUpdate:value": n[0] ||= (e) => t.spinShow = e,
|
|
6573
6583
|
message: t.spinMsg,
|
|
6574
6584
|
status: t.spinStatus
|
|
6575
6585
|
}, {
|
|
6576
|
-
default:
|
|
6586
|
+
default: N(() => [o("div", To, [t.skeletonShow ? (x(), a("div", Eo, [
|
|
6577
6587
|
l(m, {
|
|
6578
6588
|
size: "large",
|
|
6579
6589
|
style: { height: "156px" }
|
|
@@ -6636,14 +6646,14 @@ function ko(t, n, u, d, f, p) {
|
|
|
6636
6646
|
_: 2
|
|
6637
6647
|
}, [t.formStatus === 2 ? void 0 : {
|
|
6638
6648
|
name: "footer",
|
|
6639
|
-
fn:
|
|
6649
|
+
fn: N(() => [o("div", Do, [t.isMobile ? i("", !0) : (x(), r(v, {
|
|
6640
6650
|
key: 0,
|
|
6641
6651
|
loading: t.spinShow,
|
|
6642
6652
|
type: "success",
|
|
6643
6653
|
class: "uz-drawer-button",
|
|
6644
6654
|
onClick: n[1] ||= (e) => t.ocrShow = !t.ocrShow
|
|
6645
6655
|
}, {
|
|
6646
|
-
default:
|
|
6656
|
+
default: N(() => [c(A(t.t("OCR.ocr")), 1)]),
|
|
6647
6657
|
_: 1
|
|
6648
6658
|
}, 8, ["loading"])), o("div", Oo, [
|
|
6649
6659
|
l(v, {
|
|
@@ -6652,24 +6662,24 @@ function ko(t, n, u, d, f, p) {
|
|
|
6652
6662
|
secondary: "",
|
|
6653
6663
|
onClick: t.drawerCheck
|
|
6654
6664
|
}, {
|
|
6655
|
-
default:
|
|
6665
|
+
default: N(() => [c(A(t.t("Common.cancel")), 1)]),
|
|
6656
6666
|
_: 1
|
|
6657
6667
|
}, 8, ["loading", "onClick"]),
|
|
6658
6668
|
t.formStatus === 0 ? (x(), r(y, {
|
|
6659
6669
|
key: 0,
|
|
6660
6670
|
trigger: "hover"
|
|
6661
6671
|
}, {
|
|
6662
|
-
trigger:
|
|
6672
|
+
trigger: N(() => [l(v, {
|
|
6663
6673
|
type: "success",
|
|
6664
6674
|
loading: t.spinShow,
|
|
6665
6675
|
class: "uz-drawer-button",
|
|
6666
6676
|
secondary: "",
|
|
6667
6677
|
onClick: t.doCacheToStore
|
|
6668
6678
|
}, {
|
|
6669
|
-
default:
|
|
6679
|
+
default: N(() => [c(A(t.t("Common.cache")), 1)]),
|
|
6670
6680
|
_: 1
|
|
6671
6681
|
}, 8, ["loading", "onClick"])]),
|
|
6672
|
-
default:
|
|
6682
|
+
default: N(() => [o("span", null, A(t.t("Table.cacheTip")), 1)]),
|
|
6673
6683
|
_: 1
|
|
6674
6684
|
})) : i("", !0),
|
|
6675
6685
|
l(v, {
|
|
@@ -6678,7 +6688,7 @@ function ko(t, n, u, d, f, p) {
|
|
|
6678
6688
|
type: "primary",
|
|
6679
6689
|
onClick: t.drawerSubmit
|
|
6680
6690
|
}, {
|
|
6681
|
-
default:
|
|
6691
|
+
default: N(() => [c(A(t.t("Common.apply")), 1)]),
|
|
6682
6692
|
_: 1
|
|
6683
6693
|
}, 8, ["loading", "onClick"])
|
|
6684
6694
|
])])]),
|
|
@@ -6709,7 +6719,7 @@ function ko(t, n, u, d, f, p) {
|
|
|
6709
6719
|
bottom: "0"
|
|
6710
6720
|
}
|
|
6711
6721
|
}, {
|
|
6712
|
-
default:
|
|
6722
|
+
default: N(() => [l(C)]),
|
|
6713
6723
|
_: 1
|
|
6714
6724
|
}, 8, ["show", "title"])], 64);
|
|
6715
6725
|
}
|
|
@@ -6754,7 +6764,7 @@ function Po(t, n, s, c, l, u) {
|
|
|
6754
6764
|
var Fo = d({
|
|
6755
6765
|
name: "UzTableMobile",
|
|
6756
6766
|
components: {
|
|
6757
|
-
NCheckbox:
|
|
6767
|
+
NCheckbox: R,
|
|
6758
6768
|
NRadio: De,
|
|
6759
6769
|
NPagination: we,
|
|
6760
6770
|
NCheckboxGroup: ie,
|
|
@@ -6828,12 +6838,12 @@ function zo(t, n, o, s, c, u) {
|
|
|
6828
6838
|
maxHeight: t.maxH
|
|
6829
6839
|
})
|
|
6830
6840
|
}, {
|
|
6831
|
-
default:
|
|
6841
|
+
default: N(() => [(x(!0), a(e, null, T(t.tableData, (e, n) => (x(), r(f, {
|
|
6832
6842
|
key: e.id,
|
|
6833
6843
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
6834
6844
|
value: e.id
|
|
6835
6845
|
}, {
|
|
6836
|
-
default:
|
|
6846
|
+
default: N(() => [l(d, {
|
|
6837
6847
|
tableData: e,
|
|
6838
6848
|
tableIndex: n,
|
|
6839
6849
|
tableColumns: t.tableColumns
|
|
@@ -6870,12 +6880,12 @@ function zo(t, n, o, s, c, u) {
|
|
|
6870
6880
|
maxHeight: t.maxH
|
|
6871
6881
|
})
|
|
6872
6882
|
}, {
|
|
6873
|
-
default:
|
|
6883
|
+
default: N(() => [(x(!0), a(e, null, T(t.tableData, (e, n) => (x(), r(h, {
|
|
6874
6884
|
key: e.id,
|
|
6875
6885
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
6876
6886
|
value: e.id
|
|
6877
6887
|
}, {
|
|
6878
|
-
default:
|
|
6888
|
+
default: N(() => [l(d, {
|
|
6879
6889
|
tableData: e,
|
|
6880
6890
|
tableIndex: n,
|
|
6881
6891
|
tableColumns: t.tableColumns
|
|
@@ -6938,7 +6948,7 @@ var Bo = /*#__PURE__*/ Q(Fo, [["render", zo], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6938
6948
|
components: {
|
|
6939
6949
|
UzIcon: qt,
|
|
6940
6950
|
NDropdown: de,
|
|
6941
|
-
NButton:
|
|
6951
|
+
NButton: I,
|
|
6942
6952
|
NModal: Ce,
|
|
6943
6953
|
NUpload: Re,
|
|
6944
6954
|
NSpace: je,
|
|
@@ -6992,7 +7002,7 @@ var Bo = /*#__PURE__*/ Q(Fo, [["render", zo], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
6992
7002
|
key: "action",
|
|
6993
7003
|
align: "center",
|
|
6994
7004
|
render(e) {
|
|
6995
|
-
return f(
|
|
7005
|
+
return f(I, {
|
|
6996
7006
|
tertiary: !0,
|
|
6997
7007
|
onClick: () => {
|
|
6998
7008
|
window.open(e.cosUrl);
|
|
@@ -7083,12 +7093,12 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7083
7093
|
options: t.dropOption,
|
|
7084
7094
|
onSelect: t.dropSelect
|
|
7085
7095
|
}, {
|
|
7086
|
-
default:
|
|
7087
|
-
icon:
|
|
7088
|
-
default:
|
|
7096
|
+
default: N(() => [l(m, { secondary: "" }, {
|
|
7097
|
+
icon: N(() => [l(p, null, {
|
|
7098
|
+
default: N(() => [l(f, { icon: "ClipboardText" })]),
|
|
7089
7099
|
_: 1
|
|
7090
7100
|
})]),
|
|
7091
|
-
default:
|
|
7101
|
+
default: N(() => [c(" " + A(t.t("Common.file")), 1)]),
|
|
7092
7102
|
_: 1
|
|
7093
7103
|
})]),
|
|
7094
7104
|
_: 1
|
|
@@ -7103,15 +7113,15 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7103
7113
|
"auto-focus": !1,
|
|
7104
7114
|
"on-after-leave": t.modalLeave
|
|
7105
7115
|
}, {
|
|
7106
|
-
"header-extra":
|
|
7116
|
+
"header-extra": N(() => [l(m, {
|
|
7107
7117
|
type: "success",
|
|
7108
7118
|
onClick: t.downloadTemplate,
|
|
7109
7119
|
secondary: ""
|
|
7110
7120
|
}, {
|
|
7111
|
-
default:
|
|
7121
|
+
default: N(() => [c(A(t.t("File.downloadTemplate")), 1)]),
|
|
7112
7122
|
_: 1
|
|
7113
7123
|
}, 8, ["onClick"])]),
|
|
7114
|
-
default:
|
|
7124
|
+
default: N(() => [o("div", Ho, [
|
|
7115
7125
|
t.rawFile ? (x(), a("div", Go, [
|
|
7116
7126
|
n[2] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
7117
7127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7123,13 +7133,13 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7123
7133
|
o("div", null, A(t.rawFileName.join(",")), 1),
|
|
7124
7134
|
o("div", Ko, A(t.t("File.importWaitTip")), 1),
|
|
7125
7135
|
l(_, { justify: "space-between" }, {
|
|
7126
|
-
default:
|
|
7136
|
+
default: N(() => [l(m, {
|
|
7127
7137
|
size: "small",
|
|
7128
7138
|
secondary: "",
|
|
7129
7139
|
type: "default",
|
|
7130
7140
|
onClick: t.clearFile
|
|
7131
7141
|
}, {
|
|
7132
|
-
default:
|
|
7142
|
+
default: N(() => [c(A(t.t("Common.selectAgain")), 1)]),
|
|
7133
7143
|
_: 1
|
|
7134
7144
|
}, 8, ["onClick"]), l(m, {
|
|
7135
7145
|
size: "small",
|
|
@@ -7137,7 +7147,7 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7137
7147
|
loading: t.loading,
|
|
7138
7148
|
onClick: t.manualImport
|
|
7139
7149
|
}, {
|
|
7140
|
-
default:
|
|
7150
|
+
default: N(() => [c(A(t.t("File.startImport")), 1)]),
|
|
7141
7151
|
_: 1
|
|
7142
7152
|
}, 8, ["loading", "onClick"])]),
|
|
7143
7153
|
_: 1
|
|
@@ -7151,7 +7161,7 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7151
7161
|
multiple: "",
|
|
7152
7162
|
class: "uz-w-full"
|
|
7153
7163
|
}, {
|
|
7154
|
-
default:
|
|
7164
|
+
default: N(() => [o("div", Uo, [n[1] ||= o("div", { class: "uz-file-port-icon" }, [o("svg", {
|
|
7155
7165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7156
7166
|
viewBox: "0 0 24 24",
|
|
7157
7167
|
width: "40",
|
|
@@ -7165,7 +7175,7 @@ function Yo(t, n, i, s, u, d) {
|
|
|
7165
7175
|
loading: t.loading,
|
|
7166
7176
|
secondary: ""
|
|
7167
7177
|
}, {
|
|
7168
|
-
default:
|
|
7178
|
+
default: N(() => [c(A(t.t("Common.refresh")), 1)]),
|
|
7169
7179
|
_: 1
|
|
7170
7180
|
}, 8, ["onClick", "loading"])]),
|
|
7171
7181
|
l(v, {
|
|
@@ -7246,7 +7256,7 @@ var rs = d({
|
|
|
7246
7256
|
components: {
|
|
7247
7257
|
NTabs: Fe,
|
|
7248
7258
|
NTabPane: Pe,
|
|
7249
|
-
NButton:
|
|
7259
|
+
NButton: I,
|
|
7250
7260
|
NIcon: V,
|
|
7251
7261
|
NPopconfirm: Te,
|
|
7252
7262
|
NFlex: B
|
|
@@ -7263,9 +7273,9 @@ var rs = d({
|
|
|
7263
7273
|
let { t: n } = U(), r = w(!!t.prefix), i = Je();
|
|
7264
7274
|
return y(() => {
|
|
7265
7275
|
Zo(e.option), $.active !== i.path && $o(i.path, i.fullPath);
|
|
7266
|
-
}),
|
|
7276
|
+
}), j(() => i, (e) => {
|
|
7267
7277
|
$.active === i.path && $o(e.path, e.fullPath);
|
|
7268
|
-
}, { deep: !0 }),
|
|
7278
|
+
}, { deep: !0 }), j(() => e.option, (e) => {
|
|
7269
7279
|
Zo(e);
|
|
7270
7280
|
}, { deep: !0 }), {
|
|
7271
7281
|
t: n,
|
|
@@ -7296,27 +7306,27 @@ function is(t, n, i, o, u, d) {
|
|
|
7296
7306
|
"on-update:value": t.handleChange,
|
|
7297
7307
|
class: "uz-thumbnail"
|
|
7298
7308
|
}, s({
|
|
7299
|
-
suffix:
|
|
7300
|
-
default:
|
|
7301
|
-
trigger:
|
|
7302
|
-
default:
|
|
7303
|
-
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" })]),
|
|
7304
7314
|
_: 1
|
|
7305
7315
|
})]),
|
|
7306
7316
|
_: 1
|
|
7307
7317
|
})]),
|
|
7308
|
-
default:
|
|
7318
|
+
default: N(() => [c(" " + A(t.t("Thumbnail.clearConfirm")), 1)]),
|
|
7309
7319
|
_: 1
|
|
7310
7320
|
}, 8, ["onPositiveClick"]), E(t.$slots, "suffix")]),
|
|
7311
7321
|
_: 3
|
|
7312
7322
|
})]),
|
|
7313
|
-
default:
|
|
7323
|
+
default: N(() => [(x(!0), a(e, null, T(t.thumbnailStore.thumbnail, (e) => (x(), r(f, {
|
|
7314
7324
|
key: e.key,
|
|
7315
7325
|
name: e.key,
|
|
7316
7326
|
tab: e.label,
|
|
7317
7327
|
closable: e.closable
|
|
7318
7328
|
}, {
|
|
7319
|
-
default:
|
|
7329
|
+
default: N(() => [c(A(e.label), 1)]),
|
|
7320
7330
|
_: 2
|
|
7321
7331
|
}, 1032, [
|
|
7322
7332
|
"name",
|
|
@@ -7326,7 +7336,7 @@ function is(t, n, i, o, u, d) {
|
|
|
7326
7336
|
_: 2
|
|
7327
7337
|
}, [t.isSlotPrefix ? {
|
|
7328
7338
|
name: "prefix",
|
|
7329
|
-
fn:
|
|
7339
|
+
fn: N(() => [E(t.$slots, "prefix")]),
|
|
7330
7340
|
key: "0"
|
|
7331
7341
|
} : void 0]), 1032, [
|
|
7332
7342
|
"value",
|
|
@@ -7399,7 +7409,7 @@ function ys(e, t, n, i, a, o) {
|
|
|
7399
7409
|
"inline-theme-disabled": "",
|
|
7400
7410
|
abstract: ""
|
|
7401
7411
|
}, {
|
|
7402
|
-
default:
|
|
7412
|
+
default: N(() => [E(e.$slots, "default")]),
|
|
7403
7413
|
_: 3
|
|
7404
7414
|
}, 8, [
|
|
7405
7415
|
"theme",
|
|
@@ -7485,7 +7495,7 @@ function Ss(e, t) {
|
|
|
7485
7495
|
var Cs = d({
|
|
7486
7496
|
name: "UzOcr",
|
|
7487
7497
|
components: {
|
|
7488
|
-
NButton:
|
|
7498
|
+
NButton: I,
|
|
7489
7499
|
NUpload: Re,
|
|
7490
7500
|
NSelect: ke,
|
|
7491
7501
|
NSwitch: Ne,
|
|
@@ -7533,7 +7543,7 @@ var Cs = d({
|
|
|
7533
7543
|
console.error("实时预处理失败", e);
|
|
7534
7544
|
}
|
|
7535
7545
|
};
|
|
7536
|
-
|
|
7546
|
+
j([
|
|
7537
7547
|
f,
|
|
7538
7548
|
o,
|
|
7539
7549
|
s,
|
|
@@ -7642,11 +7652,11 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7642
7652
|
type: "segment",
|
|
7643
7653
|
size: "small"
|
|
7644
7654
|
}, {
|
|
7645
|
-
default:
|
|
7655
|
+
default: N(() => [l(p, {
|
|
7646
7656
|
name: "processed",
|
|
7647
7657
|
tab: e.t("OCR.previewProcessed")
|
|
7648
7658
|
}, {
|
|
7649
|
-
default:
|
|
7659
|
+
default: N(() => [o("div", As, [o("img", {
|
|
7650
7660
|
src: e.processedImage,
|
|
7651
7661
|
alt: "Processed Preview",
|
|
7652
7662
|
class: "uz-ocr-preview-img"
|
|
@@ -7656,7 +7666,7 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7656
7666
|
name: "raw",
|
|
7657
7667
|
tab: e.t("OCR.previewRaw")
|
|
7658
7668
|
}, {
|
|
7659
|
-
default:
|
|
7669
|
+
default: N(() => [o("div", Ns, [o("img", {
|
|
7660
7670
|
src: e.rawImage,
|
|
7661
7671
|
alt: "Raw Preview",
|
|
7662
7672
|
class: "uz-ocr-preview-img"
|
|
@@ -7668,13 +7678,13 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7668
7678
|
justify: "space-between",
|
|
7669
7679
|
class: "uz-ocr-preview-actions"
|
|
7670
7680
|
}, {
|
|
7671
|
-
default:
|
|
7681
|
+
default: N(() => [l(h, {
|
|
7672
7682
|
size: "small",
|
|
7673
7683
|
secondary: "",
|
|
7674
7684
|
type: "warning",
|
|
7675
7685
|
onClick: e.clearImage
|
|
7676
7686
|
}, {
|
|
7677
|
-
default:
|
|
7687
|
+
default: N(() => [c(A(e.t("OCR.selectAgain")), 1)]),
|
|
7678
7688
|
_: 1
|
|
7679
7689
|
}, 8, ["onClick"]), l(h, {
|
|
7680
7690
|
size: "small",
|
|
@@ -7682,7 +7692,7 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7682
7692
|
loading: e.ocrLoading,
|
|
7683
7693
|
onClick: e.handleManualOcr
|
|
7684
7694
|
}, {
|
|
7685
|
-
default:
|
|
7695
|
+
default: N(() => [c(A(e.t("OCR.reRecognize")), 1)]),
|
|
7686
7696
|
_: 1
|
|
7687
7697
|
}, 8, ["loading", "onClick"])]),
|
|
7688
7698
|
_: 1
|
|
@@ -7694,7 +7704,7 @@ function Ys(e, t, n, s, u, d) {
|
|
|
7694
7704
|
"directory-dnd": "",
|
|
7695
7705
|
class: "uz-w-full"
|
|
7696
7706
|
}, {
|
|
7697
|
-
default:
|
|
7707
|
+
default: N(() => [o("div", Es, [
|
|
7698
7708
|
t[4] ||= o("div", { class: "uz-ocr-upload-icon" }, [o("svg", {
|
|
7699
7709
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7700
7710
|
viewBox: "0 0 24 24",
|
|
@@ -7875,7 +7885,7 @@ function oc(e, t, n) {
|
|
|
7875
7885
|
}
|
|
7876
7886
|
//#endregion
|
|
7877
7887
|
//#region package.json
|
|
7878
|
-
var sc = "0.1.
|
|
7888
|
+
var sc = "0.1.147", cc;
|
|
7879
7889
|
async function lc() {
|
|
7880
7890
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
7881
7891
|
method: "HEAD",
|