@snabcentr/vue-ui-lib 6.0.1 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +2 -2
- package/dist/sc-vue-ui-lib.css +1 -1
- package/dist/sc-vue-ui-lib.js +160 -132
- package/dist/sc-vue-ui-lib.js.map +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs +1 -1
- package/dist/sc-vue-ui-lib.umd.cjs.map +1 -1
- package/dist/src/components/orders/blocks/order-items-list.vue.d.ts +27 -4
- package/dist/src/components/orders/simple/order-product-info.vue.d.ts +11 -0
- package/package.json +1 -1
package/dist/sc-vue-ui-lib.js
CHANGED
|
@@ -24494,6 +24494,10 @@ var nD = it({
|
|
|
24494
24494
|
inactive: {
|
|
24495
24495
|
type: Boolean,
|
|
24496
24496
|
default: !1
|
|
24497
|
+
},
|
|
24498
|
+
showActions: {
|
|
24499
|
+
type: Boolean,
|
|
24500
|
+
default: void 0
|
|
24497
24501
|
}
|
|
24498
24502
|
},
|
|
24499
24503
|
setup(e) {
|
|
@@ -24516,7 +24520,7 @@ var nD = it({
|
|
|
24516
24520
|
"allow-edit",
|
|
24517
24521
|
"update-quantity-on-input",
|
|
24518
24522
|
"class"
|
|
24519
|
-
]), e.allowEdit ? z(t.$slots, "actions", {}, void 0, void 0, 0) : A("", !0)]),
|
|
24523
|
+
]), e.showActions ?? e.allowEdit ? z(t.$slots, "actions", {}, void 0, void 0, 0) : A("", !0)]),
|
|
24520
24524
|
M("div", { class: lt(["grid grid-flow-col grid-rows-2 gap-1 text-base", n.value]) }, [
|
|
24521
24525
|
r[0] ||= M("span", null, "Цена за ед.", -1),
|
|
24522
24526
|
P(na, {
|
|
@@ -24528,7 +24532,8 @@ var nD = it({
|
|
|
24528
24532
|
product: e.product,
|
|
24529
24533
|
"cost-field-name": "cost"
|
|
24530
24534
|
}, null, 8, ["product"])
|
|
24531
|
-
], 2)
|
|
24535
|
+
], 2),
|
|
24536
|
+
z(t.$slots, "extra")
|
|
24532
24537
|
])]));
|
|
24533
24538
|
}
|
|
24534
24539
|
}), TD = { class: "flex items-center gap-1.5" }, ED = {
|
|
@@ -24625,9 +24630,12 @@ var MD = it({
|
|
|
24625
24630
|
key: 0,
|
|
24626
24631
|
class: "text-sm text-sc-grey"
|
|
24627
24632
|
}, RD = {
|
|
24633
|
+
key: 0,
|
|
24634
|
+
class: "flex items-baseline gap-3"
|
|
24635
|
+
}, zD = {
|
|
24628
24636
|
key: 0,
|
|
24629
24637
|
class: "text-sm text-sc-dark-grey"
|
|
24630
|
-
},
|
|
24638
|
+
}, BD = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
|
|
24631
24639
|
__name: "order-items-list",
|
|
24632
24640
|
props: /*@__PURE__*/ ot({
|
|
24633
24641
|
products: {},
|
|
@@ -24652,6 +24660,10 @@ var MD = it({
|
|
|
24652
24660
|
type: Function,
|
|
24653
24661
|
default: void 0
|
|
24654
24662
|
},
|
|
24663
|
+
isItemRemovable: {
|
|
24664
|
+
type: Function,
|
|
24665
|
+
default: void 0
|
|
24666
|
+
},
|
|
24655
24667
|
updateQuantityOnInput: {
|
|
24656
24668
|
type: Boolean,
|
|
24657
24669
|
default: !0
|
|
@@ -24662,23 +24674,28 @@ var MD = it({
|
|
|
24662
24674
|
}),
|
|
24663
24675
|
emits: ["update:selectedRowKeys"],
|
|
24664
24676
|
setup(e) {
|
|
24665
|
-
let t = e, n = Et(e, "selectedRowKeys"), r = (e) => Re(e, "ord"), i = O(() => r(t.products)), a = (e) => t.isItemInactive ? t.isItemInactive(e) : !!e.isRemoved || !!e.replacementId, o = (e) => t.isItemSelectable ? t.isItemSelectable(e) : !a(e), s = (e, t) => {
|
|
24677
|
+
let t = e, n = Et(e, "selectedRowKeys"), r = (e) => Re(e, "ord"), i = O(() => r(t.products)), a = (e) => t.isItemInactive ? t.isItemInactive(e) : !!e.isRemoved || !!e.replacementId, o = (e) => t.isItemSelectable ? t.isItemSelectable(e) : !a(e), s = (e) => t.isItemRemovable ? t.isItemRemovable(e) : !a(e), c = (e, t) => {
|
|
24666
24678
|
t ? n.value.includes(e) || (n.value = [...n.value, e]) : n.value = n.value.filter((t) => t !== e);
|
|
24667
|
-
},
|
|
24679
|
+
}, l = (e) => t.selectable ? { class: n.value.includes(e.id) ? void 0 : "opacity-60" } : {}, u = (e, t) => {
|
|
24668
24680
|
let n = i.value, r = e.logicGroupId;
|
|
24669
24681
|
if (!r) return 1;
|
|
24670
24682
|
let a = n.at(t - 1);
|
|
24671
24683
|
if (t && a && a.logicGroupId === r) return 0;
|
|
24672
24684
|
let o = n.slice(t), s = o.findIndex((e) => e.logicGroupId !== r);
|
|
24673
24685
|
return s === -1 ? o.length : s;
|
|
24674
|
-
},
|
|
24686
|
+
}, d = (e) => s(e) ? I(nn, {
|
|
24675
24687
|
quaternary: !0,
|
|
24676
24688
|
size: "small",
|
|
24677
24689
|
type: "error",
|
|
24678
24690
|
onClick: () => {
|
|
24679
24691
|
t.eventEmitter?.emit("order-item:delete", { item: e });
|
|
24680
24692
|
}
|
|
24681
|
-
}, () => I(MD))
|
|
24693
|
+
}, () => I(MD)) : null, f = (e, n) => (t.extraColumns ?? []).flatMap((t) => {
|
|
24694
|
+
let r = t.render?.(e, n);
|
|
24695
|
+
if (Te(r) || r === "" || r === !1) return [];
|
|
24696
|
+
let i = we(t.title) ? t.title(t) : t.title;
|
|
24697
|
+
return [I("div", { class: "flex flex-col items-start gap-1 text-sm" }, [I("span", { class: "text-sc-dark-grey" }, [i]), r])];
|
|
24698
|
+
}), p = R(br.getDeviceTypeByResolution()), m = R(window.innerWidth), h = O(() => !Te(t.maxHeight) || !Te(t.groups)), g = () => {
|
|
24682
24699
|
let e = [
|
|
24683
24700
|
{
|
|
24684
24701
|
title: "№ п.п.",
|
|
@@ -24691,13 +24708,14 @@ var MD = it({
|
|
|
24691
24708
|
title: "Артикул",
|
|
24692
24709
|
key: "codeNumber",
|
|
24693
24710
|
resizable: !0,
|
|
24694
|
-
width:
|
|
24711
|
+
width: m.value >= 1536 ? 156 : 120,
|
|
24695
24712
|
render: (e) => I("span", { class: `text-base${a(e) ? " line-through opacity-50" : ""}` }, [e.product.code])
|
|
24696
24713
|
},
|
|
24697
24714
|
{
|
|
24698
24715
|
title: "Наименование",
|
|
24699
24716
|
key: "name",
|
|
24700
24717
|
resizable: !0,
|
|
24718
|
+
minWidth: Te(t.groups) ? void 0 : 240,
|
|
24701
24719
|
render: (e) => I(bD, {
|
|
24702
24720
|
item: e,
|
|
24703
24721
|
inactive: a(e)
|
|
@@ -24708,7 +24726,7 @@ var MD = it({
|
|
|
24708
24726
|
key: "quantity",
|
|
24709
24727
|
resizable: !0,
|
|
24710
24728
|
width: 180,
|
|
24711
|
-
rowSpan:
|
|
24729
|
+
rowSpan: u,
|
|
24712
24730
|
render: (e) => I(qE, {
|
|
24713
24731
|
class: a(e) ? "line-through opacity-50" : "",
|
|
24714
24732
|
item: e,
|
|
@@ -24721,7 +24739,7 @@ var MD = it({
|
|
|
24721
24739
|
title: "Цена за ед.",
|
|
24722
24740
|
key: "costOneRub",
|
|
24723
24741
|
resizable: !0,
|
|
24724
|
-
width:
|
|
24742
|
+
width: h.value ? 170 : 120,
|
|
24725
24743
|
render: (e) => I("div", { class: a(e) ? "line-through opacity-50" : "" }, [I(na, {
|
|
24726
24744
|
product: e,
|
|
24727
24745
|
costFieldName: "costOne",
|
|
@@ -24732,7 +24750,7 @@ var MD = it({
|
|
|
24732
24750
|
title: "Сумма",
|
|
24733
24751
|
key: "cost",
|
|
24734
24752
|
resizable: !0,
|
|
24735
|
-
width:
|
|
24753
|
+
width: h.value ? 140 : 120,
|
|
24736
24754
|
render: (e) => I("div", { class: a(e) ? "line-through opacity-50" : "" }, [I(na, {
|
|
24737
24755
|
product: e,
|
|
24738
24756
|
costFieldName: "cost",
|
|
@@ -24744,8 +24762,8 @@ var MD = it({
|
|
|
24744
24762
|
title: "",
|
|
24745
24763
|
key: "delete",
|
|
24746
24764
|
width: 44,
|
|
24747
|
-
rowSpan:
|
|
24748
|
-
render: (e) =>
|
|
24765
|
+
rowSpan: u,
|
|
24766
|
+
render: (e) => d(e)
|
|
24749
24767
|
}] : []
|
|
24750
24768
|
], r = t.selectable ? [{
|
|
24751
24769
|
key: "checkbox",
|
|
@@ -24755,7 +24773,7 @@ var MD = it({
|
|
|
24755
24773
|
cellProps: (e) => ({
|
|
24756
24774
|
class: o(e) ? "cursor-pointer" : void 0,
|
|
24757
24775
|
onClick: () => {
|
|
24758
|
-
o(e) &&
|
|
24776
|
+
o(e) && c(e.id, !n.value.includes(e.id));
|
|
24759
24777
|
}
|
|
24760
24778
|
}),
|
|
24761
24779
|
render: (e) => I(rn, {
|
|
@@ -24763,58 +24781,68 @@ var MD = it({
|
|
|
24763
24781
|
disabled: !o(e)
|
|
24764
24782
|
})
|
|
24765
24783
|
}] : [];
|
|
24766
|
-
switch (
|
|
24784
|
+
switch (p.value) {
|
|
24767
24785
|
case yr.phone:
|
|
24768
24786
|
case yr.tablet: return [...r, {
|
|
24769
24787
|
title: "",
|
|
24770
24788
|
key: "items",
|
|
24771
24789
|
resizable: !0,
|
|
24772
24790
|
render: (e, n) => {
|
|
24773
|
-
let r =
|
|
24791
|
+
let r = u(e, n) > 0, i = t.allowEdit && !a(e) && r;
|
|
24774
24792
|
return I(wD, {
|
|
24775
24793
|
product: e,
|
|
24776
24794
|
index: n,
|
|
24777
24795
|
eventEmitter: t.eventEmitter,
|
|
24778
24796
|
allowEdit: i,
|
|
24779
24797
|
updateQuantityOnInput: t.updateQuantityOnInput,
|
|
24780
|
-
inactive: a(e)
|
|
24781
|
-
|
|
24798
|
+
inactive: a(e),
|
|
24799
|
+
showActions: t.allowEdit && r
|
|
24800
|
+
}, {
|
|
24801
|
+
actions: () => d(e),
|
|
24802
|
+
extra: () => f(e, n)
|
|
24803
|
+
});
|
|
24782
24804
|
}
|
|
24783
24805
|
}];
|
|
24784
24806
|
case yr.laptop: return [...r, ...e];
|
|
24785
24807
|
default: return [...r, ...e];
|
|
24786
24808
|
}
|
|
24787
|
-
},
|
|
24788
|
-
|
|
24809
|
+
}, _ = O(() => g()), v = (e) => {
|
|
24810
|
+
let t = e.width ?? e.minWidth;
|
|
24811
|
+
return Te(t) ? 0 : Number.parseFloat(String(t)) || 0;
|
|
24812
|
+
}, y = O(() => p.value === yr.phone || p.value === yr.tablet ? void 0 : He(_.value, v)), b = () => {
|
|
24813
|
+
p.value = br.getDeviceTypeByResolution(), m.value = window.innerWidth;
|
|
24789
24814
|
};
|
|
24790
24815
|
return ht(() => {
|
|
24791
|
-
|
|
24816
|
+
b(), window.addEventListener("resize", b);
|
|
24792
24817
|
}), _t(() => {
|
|
24793
|
-
window.removeEventListener("resize",
|
|
24818
|
+
window.removeEventListener("resize", b);
|
|
24794
24819
|
}), (t, n) => {
|
|
24795
24820
|
let a = on;
|
|
24796
|
-
return L(), j(D, null, [e.title ? (L(), j("h3", ND, B(e.title), 1)) : A("", !0), e.groups ? (L(!0), j(D, { key: 1 }, bt(e.groups, (
|
|
24797
|
-
key:
|
|
24821
|
+
return L(), j(D, null, [e.title ? (L(), j("h3", ND, B(e.title), 1)) : A("", !0), e.groups ? (L(!0), j(D, { key: 1 }, bt(e.groups, (n) => (L(), j("div", {
|
|
24822
|
+
key: n.name,
|
|
24798
24823
|
class: "mb-6 last:mb-0"
|
|
24799
|
-
}, [M("div", PD, [M("div", FD, [M("span", ID, B(
|
|
24800
|
-
columns:
|
|
24801
|
-
data: r(
|
|
24824
|
+
}, [M("div", PD, [M("div", FD, [M("span", ID, B(n.name), 1), n.description ? (L(), j("span", LD, B(n.description), 1)) : A("", !0)]), n.summary || t.$slots["group-actions"] ? (L(), j("div", RD, [n.summary ? (L(), j("span", zD, B(n.summary), 1)) : A("", !0), z(t.$slots, "group-actions", { group: n }, void 0, !0)])) : A("", !0)]), P(a, {
|
|
24825
|
+
columns: _.value,
|
|
24826
|
+
data: r(n.items),
|
|
24802
24827
|
"row-key": (e) => e.id,
|
|
24803
|
-
"row-props":
|
|
24828
|
+
"row-props": l,
|
|
24804
24829
|
"bottom-bordered": !1,
|
|
24805
24830
|
bordered: !1,
|
|
24806
|
-
"max-height": e.maxHeight
|
|
24831
|
+
"max-height": e.maxHeight,
|
|
24832
|
+
"scroll-x": y.value,
|
|
24833
|
+
"table-layout": "fixed"
|
|
24807
24834
|
}, null, 8, [
|
|
24808
24835
|
"columns",
|
|
24809
24836
|
"data",
|
|
24810
24837
|
"row-key",
|
|
24811
|
-
"max-height"
|
|
24838
|
+
"max-height",
|
|
24839
|
+
"scroll-x"
|
|
24812
24840
|
])]))), 128)) : (L(), k(a, {
|
|
24813
24841
|
key: 2,
|
|
24814
|
-
columns:
|
|
24842
|
+
columns: _.value,
|
|
24815
24843
|
data: i.value,
|
|
24816
24844
|
"row-key": (e) => e.id,
|
|
24817
|
-
"row-props":
|
|
24845
|
+
"row-props": l,
|
|
24818
24846
|
"bottom-bordered": !1,
|
|
24819
24847
|
bordered: !1,
|
|
24820
24848
|
"max-height": e.maxHeight
|
|
@@ -24826,13 +24854,13 @@ var MD = it({
|
|
|
24826
24854
|
]))], 64);
|
|
24827
24855
|
};
|
|
24828
24856
|
}
|
|
24829
|
-
}), [["__scopeId", "data-v-
|
|
24857
|
+
}), [["__scopeId", "data-v-9168f88d"]]), VD = {
|
|
24830
24858
|
key: 0,
|
|
24831
24859
|
class: "text-sc-dark-grey my-2 text-center"
|
|
24832
|
-
},
|
|
24860
|
+
}, HD = {
|
|
24833
24861
|
key: 1,
|
|
24834
24862
|
class: "text-sc-dark-grey my-2"
|
|
24835
|
-
},
|
|
24863
|
+
}, UD = /* @__PURE__ */ F({
|
|
24836
24864
|
__name: "order-status-history",
|
|
24837
24865
|
props: { order: {} },
|
|
24838
24866
|
setup(e) {
|
|
@@ -24852,10 +24880,10 @@ var MD = it({
|
|
|
24852
24880
|
a();
|
|
24853
24881
|
}), (e, t) => {
|
|
24854
24882
|
let a = On, o = Pn, s = Nn;
|
|
24855
|
-
return L(), j("div", null, [t[1] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "История статусов", -1), n.value ? (L(), j("div",
|
|
24883
|
+
return L(), j("div", null, [t[1] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "История статусов", -1), n.value ? (L(), j("div", VD, [P(a, {
|
|
24856
24884
|
size: "small",
|
|
24857
24885
|
class: "mb-1 align-middle"
|
|
24858
|
-
}), t[0] ||= M("span", { class: "ml-2" }, "Загрузка истории ...", -1)])) : r.value.length === 0 ? (L(), j("div",
|
|
24886
|
+
}), t[0] ||= M("span", { class: "ml-2" }, "Загрузка истории ...", -1)])) : r.value.length === 0 ? (L(), j("div", HD, " История статусов отсутствует. ")) : (L(), k(s, { key: 2 }, {
|
|
24859
24887
|
default: U(() => [(L(!0), j(D, null, bt(r.value, (e, t) => (L(), k(o, {
|
|
24860
24888
|
key: t,
|
|
24861
24889
|
color: V(lr)(e.status.slug).color,
|
|
@@ -24883,7 +24911,7 @@ var MD = it({
|
|
|
24883
24911
|
}))]);
|
|
24884
24912
|
};
|
|
24885
24913
|
}
|
|
24886
|
-
}),
|
|
24914
|
+
}), WD = { class: "text-base" }, GD = /* @__PURE__ */ F({
|
|
24887
24915
|
__name: "user-short-info",
|
|
24888
24916
|
props: {
|
|
24889
24917
|
user: {},
|
|
@@ -24897,19 +24925,19 @@ var MD = it({
|
|
|
24897
24925
|
}
|
|
24898
24926
|
},
|
|
24899
24927
|
setup(e) {
|
|
24900
|
-
return (t, n) => (L(), j("div", { class: lt({ "flex flex-col": e.showUserType && e.extraInfoOnSecondLine }) }, [M("span",
|
|
24928
|
+
return (t, n) => (L(), j("div", { class: lt({ "flex flex-col": e.showUserType && e.extraInfoOnSecondLine }) }, [M("span", WD, B(e.user.name), 1), e.showUserType ? (L(), j("span", {
|
|
24901
24929
|
key: 0,
|
|
24902
24930
|
class: lt([{ "ml-1": !e.extraInfoOnSecondLine }, "text-sc-grey"])
|
|
24903
24931
|
}, " [" + B(e.user.type) + "] ", 3)) : A("", !0)], 2));
|
|
24904
24932
|
}
|
|
24905
|
-
}),
|
|
24933
|
+
}), KD = { class: "ml-4 grid grid-cols-3 gap-1.5 text-base" }, qD = { class: "col-span-2" }, JD = { class: "col-span-2" }, YD = /* @__PURE__ */ F({
|
|
24906
24934
|
__name: "order-details",
|
|
24907
24935
|
props: { order: {} },
|
|
24908
24936
|
emits: ["click:client-name"],
|
|
24909
24937
|
setup(e, { emit: t }) {
|
|
24910
24938
|
let n = t;
|
|
24911
|
-
return (t, r) => (L(), j("div", null, [r[11] ||= M("h3", null, "Детали заказа", -1), M("div",
|
|
24912
|
-
e.order.creator.id === e.order.client.id ? A("", !0) : (L(), j(D, { key: 0 }, [r[1] ||= M("span", null, "Создал", -1), P(
|
|
24939
|
+
return (t, r) => (L(), j("div", null, [r[11] ||= M("h3", null, "Детали заказа", -1), M("div", KD, [
|
|
24940
|
+
e.order.creator.id === e.order.client.id ? A("", !0) : (L(), j(D, { key: 0 }, [r[1] ||= M("span", null, "Создал", -1), P(GD, {
|
|
24913
24941
|
user: e.order.creator,
|
|
24914
24942
|
class: "col-span-2"
|
|
24915
24943
|
}, null, 8, ["user"])], 64)),
|
|
@@ -24927,7 +24955,7 @@ var MD = it({
|
|
|
24927
24955
|
class: "fancybox col-span-2",
|
|
24928
24956
|
href: "{{ order.image }}"
|
|
24929
24957
|
}, " Посмотреть ", -1)], 64)) : A("", !0),
|
|
24930
|
-
e.order.barcode ? (L(), j(D, { key: 3 }, [r[5] ||= M("span", null, "Штрих-код", -1), M("span",
|
|
24958
|
+
e.order.barcode ? (L(), j(D, { key: 3 }, [r[5] ||= M("span", null, "Штрих-код", -1), M("span", qD, B(e.order.barcode), 1)], 64)) : A("", !0),
|
|
24931
24959
|
e.order.payment ? (L(), j(D, { key: 4 }, [r[6] ||= M("span", null, "Оплата", -1), P(hD, {
|
|
24932
24960
|
payment: e.order.payment,
|
|
24933
24961
|
class: "col-span-2"
|
|
@@ -24936,20 +24964,20 @@ var MD = it({
|
|
|
24936
24964
|
delivery: e.order.delivery,
|
|
24937
24965
|
class: "col-span-2"
|
|
24938
24966
|
}, null, 8, ["delivery"])], 64)) : A("", !0),
|
|
24939
|
-
e.order.comment ? (L(), j(D, { key: 6 }, [r[8] ||= M("span", null, "Комментарий", -1), M("span",
|
|
24940
|
-
e.order.attachedUser ? (L(), j(D, { key: 7 }, [r[9] ||= M("span", null, "Закреплен за", -1), P(
|
|
24967
|
+
e.order.comment ? (L(), j(D, { key: 6 }, [r[8] ||= M("span", null, "Комментарий", -1), M("span", JD, B(e.order.comment), 1)], 64)) : A("", !0),
|
|
24968
|
+
e.order.attachedUser ? (L(), j(D, { key: 7 }, [r[9] ||= M("span", null, "Закреплен за", -1), P(GD, {
|
|
24941
24969
|
user: e.order.attachedUser,
|
|
24942
24970
|
class: "col-span-2"
|
|
24943
24971
|
}, null, 8, ["user"])], 64)) : A("", !0)
|
|
24944
24972
|
])]));
|
|
24945
24973
|
}
|
|
24946
|
-
}),
|
|
24974
|
+
}), XD = {
|
|
24947
24975
|
viewBox: "0 0 512 512",
|
|
24948
24976
|
width: "1.2em",
|
|
24949
24977
|
height: "1.2em"
|
|
24950
24978
|
};
|
|
24951
|
-
function
|
|
24952
|
-
return L(), j("svg",
|
|
24979
|
+
function ZD(e, t) {
|
|
24980
|
+
return L(), j("svg", XD, [...t[0] ||= [M("rect", {
|
|
24953
24981
|
width: "336",
|
|
24954
24982
|
height: "336",
|
|
24955
24983
|
x: "128",
|
|
@@ -24969,10 +24997,10 @@ function XD(e, t) {
|
|
|
24969
24997
|
d: "m383.5 128l.5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"
|
|
24970
24998
|
}, null, -1)]]);
|
|
24971
24999
|
}
|
|
24972
|
-
var
|
|
25000
|
+
var QD = it({
|
|
24973
25001
|
name: "ion-copy-outline",
|
|
24974
|
-
render:
|
|
24975
|
-
}),
|
|
25002
|
+
render: ZD
|
|
25003
|
+
}), $D = { class: "flex flex-col items-stretch gap-1.5 text-base" }, eO = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
|
|
24976
25004
|
__name: "order-external-links",
|
|
24977
25005
|
props: {
|
|
24978
25006
|
showErpLink: {
|
|
@@ -24987,8 +25015,8 @@ var ZD = it({
|
|
|
24987
25015
|
return e.showErpLink && !!e.order.erpOrderUrl || t || !!e.order.payment?.onlinePaymentLink;
|
|
24988
25016
|
});
|
|
24989
25017
|
return (n, r) => {
|
|
24990
|
-
let i = nn, a =
|
|
24991
|
-
return t.value ? (L(), j(D, { key: 0 }, [r[2] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "Внешние ссылки", -1), M("div",
|
|
25018
|
+
let i = nn, a = QD;
|
|
25019
|
+
return t.value ? (L(), j(D, { key: 0 }, [r[2] ||= M("h3", { class: "!mb-3 !mt-0 text-base font-semibold" }, "Внешние ссылки", -1), M("div", $D, [
|
|
24992
25020
|
e.showErpLink && e.order.erpOrderUrl ? (L(), k(i, {
|
|
24993
25021
|
key: 0,
|
|
24994
25022
|
tag: "a",
|
|
@@ -25022,10 +25050,10 @@ var ZD = it({
|
|
|
25022
25050
|
])], 64)) : A("", !0);
|
|
25023
25051
|
};
|
|
25024
25052
|
}
|
|
25025
|
-
}), [["__scopeId", "data-v-53afb2ef"]]),
|
|
25053
|
+
}), [["__scopeId", "data-v-53afb2ef"]]), tO = { key: 0 }, nO = { class: "text-sc-dark-grey my-2 text-center" }, rO = {
|
|
25026
25054
|
key: 1,
|
|
25027
25055
|
class: "text-sc-dark-grey my-2 text-center"
|
|
25028
|
-
},
|
|
25056
|
+
}, iO = { key: 2 }, aO = { class: "text-sc-dark-grey mt-4 text-right font-bold" }, oO = { class: "text-sc-primary" }, sO = { class: "mb-4 max-w-xs empty:hidden" }, cO = /* @__PURE__ */ F({
|
|
25029
25057
|
__name: "order-info",
|
|
25030
25058
|
props: {
|
|
25031
25059
|
order: {},
|
|
@@ -25052,11 +25080,11 @@ var ZD = it({
|
|
|
25052
25080
|
o();
|
|
25053
25081
|
}), (t, n) => {
|
|
25054
25082
|
let o = On;
|
|
25055
|
-
return i.value ? (L(), j("div",
|
|
25083
|
+
return i.value ? (L(), j("div", tO, [M("div", nO, [P(o, {
|
|
25056
25084
|
size: "small",
|
|
25057
25085
|
class: "mb-2.5 align-middle"
|
|
25058
|
-
}), n[1] ||= M("div", null, [M("span", null, "Загрузка данных ...")], -1)])])) : !a.value || a.value.products.length === 0 ? (L(), j("div",
|
|
25059
|
-
P(
|
|
25086
|
+
}), n[1] ||= M("div", null, [M("span", null, "Загрузка данных ...")], -1)])])) : !a.value || a.value.products.length === 0 ? (L(), j("div", rO, " --- Не удалось загрузить данные о заказе --- ")) : (L(), j("div", iO, [
|
|
25087
|
+
P(BD, {
|
|
25060
25088
|
products: s.value,
|
|
25061
25089
|
"event-emitter": e.eventEmitter,
|
|
25062
25090
|
"allow-edit": e.allowEdit
|
|
@@ -25065,20 +25093,20 @@ var ZD = it({
|
|
|
25065
25093
|
"event-emitter",
|
|
25066
25094
|
"allow-edit"
|
|
25067
25095
|
]),
|
|
25068
|
-
M("div",
|
|
25069
|
-
P(
|
|
25096
|
+
M("div", aO, [n[2] ||= N(" ИТОГО: ", -1), M("span", oO, B(c.value) + " ₽", 1)]),
|
|
25097
|
+
P(YD, {
|
|
25070
25098
|
order: a.value,
|
|
25071
25099
|
"onClick:clientName": n[0] ||= (e) => r("click:client-name", a.value.client, e)
|
|
25072
25100
|
}, null, 8, ["order"]),
|
|
25073
|
-
M("div",
|
|
25101
|
+
M("div", sO, [P(eO, {
|
|
25074
25102
|
order: a.value,
|
|
25075
25103
|
"show-erp-link": ""
|
|
25076
25104
|
}, null, 8, ["order"])]),
|
|
25077
|
-
P(
|
|
25105
|
+
P(UD, { order: a.value }, null, 8, ["order"])
|
|
25078
25106
|
]));
|
|
25079
25107
|
};
|
|
25080
25108
|
}
|
|
25081
|
-
}),
|
|
25109
|
+
}), lO = /* @__PURE__ */ F({
|
|
25082
25110
|
__name: "order-actions",
|
|
25083
25111
|
props: {
|
|
25084
25112
|
orderContextButtonsConfig: {
|
|
@@ -25116,7 +25144,7 @@ var ZD = it({
|
|
|
25116
25144
|
}, 8, ["options", "size"])) : A("", !0);
|
|
25117
25145
|
};
|
|
25118
25146
|
}
|
|
25119
|
-
}),
|
|
25147
|
+
}), uO = /*#__PURE__*/ Fi(/* @__PURE__ */ F({
|
|
25120
25148
|
__name: "orders-list",
|
|
25121
25149
|
props: /*@__PURE__*/ ot({
|
|
25122
25150
|
fields: {},
|
|
@@ -25211,7 +25239,7 @@ var ZD = it({
|
|
|
25211
25239
|
}, s = {
|
|
25212
25240
|
type: "expand",
|
|
25213
25241
|
expandable: fe(!0),
|
|
25214
|
-
renderExpand: (e) => I(
|
|
25242
|
+
renderExpand: (e) => I(cO, {
|
|
25215
25243
|
order: e,
|
|
25216
25244
|
class: "pl-10 pt-3 pb-10",
|
|
25217
25245
|
"onClick:client-name": () => {
|
|
@@ -25332,7 +25360,7 @@ var ZD = it({
|
|
|
25332
25360
|
title: "",
|
|
25333
25361
|
className: "align-top",
|
|
25334
25362
|
width: 50,
|
|
25335
|
-
render: (e) => I(
|
|
25363
|
+
render: (e) => I(lO, {
|
|
25336
25364
|
order: e,
|
|
25337
25365
|
orderContextButtonsConfig: r.orderContextButtonsConfig,
|
|
25338
25366
|
onOrderContextSelect: r.onOrderContextSelect
|
|
@@ -25513,12 +25541,12 @@ var ZD = it({
|
|
|
25513
25541
|
]);
|
|
25514
25542
|
};
|
|
25515
25543
|
}
|
|
25516
|
-
}), [["__scopeId", "data-v-ee3efccb"]]),
|
|
25544
|
+
}), [["__scopeId", "data-v-ee3efccb"]]), dO = O(() => ce().deliveryTypeReference ?? []), fO = O(() => ce().managersList ?? []), pO = O(() => ce().opfReference ?? []), mO = O(() => ce().partnerGroupsReference ?? []), hO = O(() => ce().priceCoefficientsReference ?? []), gO = O(() => ce().productFilesTypesReference ?? []), _O = O(() => ce().resourceTypesReference), vO = O(() => ce().salesDirectionsReference ?? []), yO = O(() => ce().warehousesReference ?? []), bO = O(() => ce().paymentTypeReference ?? []), xO = O(() => ce().orderStatusReference ?? []), SO = O(() => ce().orderStatusDetailReference ?? []), CO = O(() => ce().operatorReference ?? []), wO = O(() => zr.convertReferencesToSelectOptionsList(ce().channelPrimaryInterestsReference ?? [], !0, !1, !0)), TO = O(() => zr.convertReferencesToSelectOptionsList(ce().sourcePrimaryInterestsReference ?? [], !0, !1, !0)), EO = (e) => d.getInstance(T).searchCity(e), DO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e?.isNewRec() ? "-" : `${e.name}, ${e?.region?.name}, ${e?.region?.country?.name}`, (e) => e?.isNewRec()), OO = async (e) => Me(await d.getInstance(T).searchRegion(e), (e) => new E(e)), kO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e.isNewRec() ? "-" : Ae(de([e.name, e.country.name]), ", "), (e) => e.isNewRec()), AO = (e) => d.getInstance(r).searchClient(e), jO = (e) => zr.convertReferencesToSelectOptionsList(e, !0, !1, !1, (e) => e.isNewRec() ? "-" : [
|
|
25517
25545
|
e.name,
|
|
25518
25546
|
e.salesDirection.name ? `(${e.salesDirection.name})` : void 0,
|
|
25519
25547
|
e.city.name ? `г. ${e.city.name}${e.city.region.name ? `, ${e.city.region.name}` : ""}` : void 0,
|
|
25520
25548
|
e.isActive ? void 0 : "[ Деактивирован ]"
|
|
25521
|
-
].filter(Boolean).join(" "), (e) => e?.isNewRec()),
|
|
25549
|
+
].filter(Boolean).join(" "), (e) => e?.isNewRec()), MO = { class: "flex flex-col gap-4" }, NO = { class: "flex flex-wrap gap-2" }, PO = { class: "flex flex-col gap-1.5" }, FO = { class: "inline-flex items-center gap-2" }, IO = { class: "flex flex-col gap-1.5" }, LO = { class: "inline-flex items-center gap-2" }, RO = /* @__PURE__ */ F({
|
|
25522
25550
|
__name: "order-highlight-settings",
|
|
25523
25551
|
props: {
|
|
25524
25552
|
settings: {},
|
|
@@ -25526,7 +25554,7 @@ var ZD = it({
|
|
|
25526
25554
|
},
|
|
25527
25555
|
emits: ["update:settings"],
|
|
25528
25556
|
setup(e, { emit: t }) {
|
|
25529
|
-
let n = e, r = t, i = O(() => n.statuses ??
|
|
25557
|
+
let n = e, r = t, i = O(() => n.statuses ?? xO.value), a = (e) => !!e && n.settings.statuses.includes(e), o = (e, t) => {
|
|
25530
25558
|
if (!e) return;
|
|
25531
25559
|
let i = n.settings.statuses.filter((t) => t !== e);
|
|
25532
25560
|
r("update:settings", {
|
|
@@ -25547,8 +25575,8 @@ var ZD = it({
|
|
|
25547
25575
|
};
|
|
25548
25576
|
return (t, n) => {
|
|
25549
25577
|
let r = nn, l = rn;
|
|
25550
|
-
return L(), j("div",
|
|
25551
|
-
M("div",
|
|
25578
|
+
return L(), j("div", MO, [
|
|
25579
|
+
M("div", NO, [P(r, {
|
|
25552
25580
|
size: "small",
|
|
25553
25581
|
onClick: n[0] ||= (e) => c(!0)
|
|
25554
25582
|
}, {
|
|
@@ -25561,26 +25589,26 @@ var ZD = it({
|
|
|
25561
25589
|
default: U(() => [...n[3] ||= [N(" Снять всё ", -1)]]),
|
|
25562
25590
|
_: 1
|
|
25563
25591
|
})]),
|
|
25564
|
-
M("div",
|
|
25592
|
+
M("div", PO, [n[4] ||= M("div", { class: "text-sm font-semibold" }, "Статусы", -1), (L(!0), j(D, null, bt(i.value, (e) => (L(), k(l, {
|
|
25565
25593
|
key: e.id,
|
|
25566
25594
|
checked: a(e.slug),
|
|
25567
25595
|
"onUpdate:checked": (t) => o(e.slug, t)
|
|
25568
25596
|
}, {
|
|
25569
|
-
default: U(() => [M("span",
|
|
25597
|
+
default: U(() => [M("span", FO, [P(kD, { colors: V(lr)(e.slug) }, null, 8, ["colors"]), N(" " + B(e.name), 1)])]),
|
|
25570
25598
|
_: 2
|
|
25571
25599
|
}, 1032, ["checked", "onUpdate:checked"]))), 128))]),
|
|
25572
|
-
M("div",
|
|
25600
|
+
M("div", IO, [n[5] ||= M("div", { class: "text-sm font-semibold" }, "Маркеры", -1), (L(!0), j(D, null, bt(V(mr), (t) => (L(), k(l, {
|
|
25573
25601
|
key: t,
|
|
25574
25602
|
checked: e.settings.markers.includes(t),
|
|
25575
25603
|
"onUpdate:checked": (e) => s(t, e)
|
|
25576
25604
|
}, {
|
|
25577
|
-
default: U(() => [M("span",
|
|
25605
|
+
default: U(() => [M("span", LO, [P(kD, { colors: V(hr)(t) }, null, 8, ["colors"]), N(" " + B(V(gr)(t)), 1)])]),
|
|
25578
25606
|
_: 2
|
|
25579
25607
|
}, 1032, ["checked", "onUpdate:checked"]))), 128))])
|
|
25580
25608
|
]);
|
|
25581
25609
|
};
|
|
25582
25610
|
}
|
|
25583
|
-
}),
|
|
25611
|
+
}), zO = ["href"], BO = { class: "text-sc-dark-grey" }, VO = /* @__PURE__ */ F({
|
|
25584
25612
|
__name: "short-text-order-info",
|
|
25585
25613
|
props: {
|
|
25586
25614
|
order: {},
|
|
@@ -25597,20 +25625,20 @@ var ZD = it({
|
|
|
25597
25625
|
M("a", {
|
|
25598
25626
|
href: e.orderLink ?? "#",
|
|
25599
25627
|
onClick: n[0] ||= (e) => a(e)
|
|
25600
|
-
}, B(e.order.id), 9,
|
|
25628
|
+
}, B(e.order.id), 9, zO),
|
|
25601
25629
|
N(" от " + B(i.value), 1)
|
|
25602
25630
|
]),
|
|
25603
25631
|
n[2] ||= N(", ", -1),
|
|
25604
|
-
M("span",
|
|
25632
|
+
M("span", BO, "автор: " + B(e.order.creator.name) + " [" + B(e.order.creator.type) + "]", 1)
|
|
25605
25633
|
], 64));
|
|
25606
25634
|
}
|
|
25607
|
-
}),
|
|
25635
|
+
}), HO = { class: "sc-page flex flex-col bg-inherit" }, UO = { class: "my-2 flex flex-row items-end" }, WO = { class: "sc-title grow" }, GO = {
|
|
25608
25636
|
key: 0,
|
|
25609
25637
|
class: "sc-title-buttons flex-1 grow-0"
|
|
25610
|
-
},
|
|
25638
|
+
}, KO = { class: "flex flex-col justify-end gap-1 sm:mt-0 sm:flex-row" }, qO = {
|
|
25611
25639
|
key: 0,
|
|
25612
25640
|
class: "sc-title-extra mt-2 sm:mt-4"
|
|
25613
|
-
},
|
|
25641
|
+
}, JO = /* @__PURE__ */ F({
|
|
25614
25642
|
__name: "page",
|
|
25615
25643
|
props: {
|
|
25616
25644
|
title: { default: void 0 },
|
|
@@ -25625,20 +25653,20 @@ var ZD = it({
|
|
|
25625
25653
|
let t = e, n = O(() => t.stickyHeaderOnMobile ? "sticky z-10 bg-inherit" : "lg:sticky z-10 bg-inherit");
|
|
25626
25654
|
return (t, r) => {
|
|
25627
25655
|
let i = mn;
|
|
25628
|
-
return L(), j("div",
|
|
25656
|
+
return L(), j("div", HO, [M("div", {
|
|
25629
25657
|
class: lt(e.stickyHeader ? n.value : void 0),
|
|
25630
25658
|
style: ut(e.stickyHeader ? { top: `${e.stickyTopOffset ?? 0}px` } : void 0)
|
|
25631
25659
|
}, [
|
|
25632
|
-
M("div",
|
|
25660
|
+
M("div", UO, [M("div", WO, [z(t.$slots, "title", {}, () => [P(i, { class: "m-0 leading-none lg:mb-3 lg:leading-normal" }, {
|
|
25633
25661
|
default: U(() => [N(B(e.title ?? ""), 1)]),
|
|
25634
25662
|
_: 1
|
|
25635
|
-
})])]), t.$slots["title-buttons"] ? (L(), j("div",
|
|
25636
|
-
t.$slots["title-extra"] ? (L(), j("div",
|
|
25663
|
+
})])]), t.$slots["title-buttons"] ? (L(), j("div", GO, [M("div", KO, [z(t.$slots, "title-buttons")])])) : A("", !0)]),
|
|
25664
|
+
t.$slots["title-extra"] ? (L(), j("div", qO, [z(t.$slots, "title-extra")])) : A("", !0),
|
|
25637
25665
|
z(t.$slots, "sticky-extra")
|
|
25638
25666
|
], 6), z(t.$slots, "default")]);
|
|
25639
25667
|
};
|
|
25640
25668
|
}
|
|
25641
|
-
}),
|
|
25669
|
+
}), YO = { class: "overflow-hidden transition-all duration-300" }, XO = { class: "text-lg font-medium leading-none" }, ZO = /* @__PURE__ */ F({
|
|
25642
25670
|
__name: "sliding-content-with-drawer",
|
|
25643
25671
|
props: {
|
|
25644
25672
|
drawerWidth: {
|
|
@@ -25672,7 +25700,7 @@ var ZD = it({
|
|
|
25672
25700
|
window.removeEventListener("resize", s);
|
|
25673
25701
|
}), s(), window.addEventListener("resize", s), (t, n) => {
|
|
25674
25702
|
let r = ln, o = cn;
|
|
25675
|
-
return L(), j(D, null, [M("div",
|
|
25703
|
+
return L(), j(D, null, [M("div", YO, [M("div", {
|
|
25676
25704
|
style: ut(`margin-left: ${i.value}px;`),
|
|
25677
25705
|
class: "w-full"
|
|
25678
25706
|
}, [z(t.$slots, "default")], 4)]), P(o, {
|
|
@@ -25683,7 +25711,7 @@ var ZD = it({
|
|
|
25683
25711
|
placement: "left"
|
|
25684
25712
|
}, {
|
|
25685
25713
|
default: U(() => [P(r, { closable: "" }, {
|
|
25686
|
-
header: U(() => [z(t.$slots, "drawer-header", {}, () => [M("div",
|
|
25714
|
+
header: U(() => [z(t.$slots, "drawer-header", {}, () => [M("div", XO, B(e.title), 1)])]),
|
|
25687
25715
|
default: U(() => [z(t.$slots, "drawer-content")]),
|
|
25688
25716
|
footer: U(() => [z(t.$slots, "drawer-footer")]),
|
|
25689
25717
|
_: 3
|
|
@@ -25692,13 +25720,13 @@ var ZD = it({
|
|
|
25692
25720
|
}, 8, ["show", "width"])], 64);
|
|
25693
25721
|
};
|
|
25694
25722
|
}
|
|
25695
|
-
}),
|
|
25723
|
+
}), QO = {
|
|
25696
25724
|
ref: "panel-component-ref",
|
|
25697
25725
|
class: "sc-page-panel flex flex-row gap-2.5 bg-inherit sm:gap-8"
|
|
25698
|
-
},
|
|
25726
|
+
}, $O = { key: 0 }, ek = { class: "sc-page-preview-panel grow" }, tk = {
|
|
25699
25727
|
key: 1,
|
|
25700
25728
|
class: "sc-page-preview-panel-extra flex-none"
|
|
25701
|
-
},
|
|
25729
|
+
}, nk = /* @__PURE__ */ F({
|
|
25702
25730
|
__name: "page-with-sliding-panel",
|
|
25703
25731
|
props: {
|
|
25704
25732
|
title: {},
|
|
@@ -25737,13 +25765,13 @@ var ZD = it({
|
|
|
25737
25765
|
closePanel: i
|
|
25738
25766
|
}), (t, r) => {
|
|
25739
25767
|
let i = nn;
|
|
25740
|
-
return L(), k(
|
|
25768
|
+
return L(), k(JO, {
|
|
25741
25769
|
title: e.title,
|
|
25742
25770
|
"sticky-header": e.stickyHeader,
|
|
25743
25771
|
"sticky-top-offset": e.stickyTopOffset,
|
|
25744
25772
|
"sticky-header-on-mobile": e.stickyHeaderOnMobile
|
|
25745
25773
|
}, $e({
|
|
25746
|
-
default: U(() => [P(
|
|
25774
|
+
default: U(() => [P(ZO, {
|
|
25747
25775
|
"show-drawer": n.value,
|
|
25748
25776
|
"onUpdate:showDrawer": r[1] ||= (e) => n.value = e,
|
|
25749
25777
|
title: e.panelTitle
|
|
@@ -25779,8 +25807,8 @@ var ZD = it({
|
|
|
25779
25807
|
} : void 0,
|
|
25780
25808
|
t.$slots["preview-panel"] || t.$slots["preview-panel-extra"] || e.isShowPanelButtonVisible ? {
|
|
25781
25809
|
name: "sticky-extra",
|
|
25782
|
-
fn: U(() => [M("div",
|
|
25783
|
-
e.isShowPanelButtonVisible ? (L(), j("div",
|
|
25810
|
+
fn: U(() => [M("div", QO, [
|
|
25811
|
+
e.isShowPanelButtonVisible ? (L(), j("div", $O, [z(t.$slots, "show-panel-button", { onClickHandler: () => {
|
|
25784
25812
|
n.value = !0;
|
|
25785
25813
|
} }, () => [P(i, {
|
|
25786
25814
|
class: "flex-none sm:px-10 sm:py-4",
|
|
@@ -25789,8 +25817,8 @@ var ZD = it({
|
|
|
25789
25817
|
default: U(() => [N(B(e.showPanelButtonText), 1)]),
|
|
25790
25818
|
_: 1
|
|
25791
25819
|
})])])) : A("", !0),
|
|
25792
|
-
M("div",
|
|
25793
|
-
t.$slots["preview-panel-extra"] ? (L(), j("div",
|
|
25820
|
+
M("div", ek, [z(t.$slots, "preview-panel")]),
|
|
25821
|
+
t.$slots["preview-panel-extra"] ? (L(), j("div", tk, [z(t.$slots, "preview-panel-extra")])) : A("", !0)
|
|
25794
25822
|
], 512)]),
|
|
25795
25823
|
key: "3"
|
|
25796
25824
|
} : void 0
|
|
@@ -25802,7 +25830,7 @@ var ZD = it({
|
|
|
25802
25830
|
]);
|
|
25803
25831
|
};
|
|
25804
25832
|
}
|
|
25805
|
-
}),
|
|
25833
|
+
}), rk = /* @__PURE__ */ F({
|
|
25806
25834
|
__name: "curator-select",
|
|
25807
25835
|
props: {
|
|
25808
25836
|
value: { default: null },
|
|
@@ -25886,7 +25914,7 @@ var ZD = it({
|
|
|
25886
25914
|
"options"
|
|
25887
25915
|
]));
|
|
25888
25916
|
}
|
|
25889
|
-
}),
|
|
25917
|
+
}), ik = /* @__PURE__ */ F({
|
|
25890
25918
|
__name: "manager-operator-select",
|
|
25891
25919
|
props: {
|
|
25892
25920
|
value: { default: null },
|
|
@@ -26007,7 +26035,7 @@ var ZD = it({
|
|
|
26007
26035
|
"options"
|
|
26008
26036
|
]));
|
|
26009
26037
|
}
|
|
26010
|
-
}),
|
|
26038
|
+
}), ak = /* @__PURE__ */ F({
|
|
26011
26039
|
__name: "manager-select",
|
|
26012
26040
|
props: {
|
|
26013
26041
|
value: { default: null },
|
|
@@ -26099,11 +26127,11 @@ var ZD = it({
|
|
|
26099
26127
|
"options"
|
|
26100
26128
|
]));
|
|
26101
26129
|
}
|
|
26102
|
-
}),
|
|
26130
|
+
}), ok = { class: "m-0.5 flex flex-col p-0.5" }, sk = { "data-testid": "address-line" }, ck = { key: 0 }, lk = { key: 1 }, uk = { key: 2 }, dk = { key: 3 }, fk = { "data-testid": "address-line" }, pk = { key: 0 }, mk = { key: 1 }, hk = { key: 2 }, gk = { key: 3 }, _k = {
|
|
26103
26131
|
key: 0,
|
|
26104
26132
|
"data-testid": "address-quality-label",
|
|
26105
26133
|
class: "text-sc-warning text-xs"
|
|
26106
|
-
},
|
|
26134
|
+
}, vk = /* @__PURE__ */ F({
|
|
26107
26135
|
__name: "address-suggestion-label",
|
|
26108
26136
|
props: {
|
|
26109
26137
|
addr: {},
|
|
@@ -26111,28 +26139,28 @@ var ZD = it({
|
|
|
26111
26139
|
},
|
|
26112
26140
|
setup(e) {
|
|
26113
26141
|
let t = e, n = O(() => Tr.getLabel(t.addr.quality));
|
|
26114
|
-
return (t, r) => (L(), j("div",
|
|
26115
|
-
M("span",
|
|
26116
|
-
e.addr.postIndex ? (L(), j("span",
|
|
26117
|
-
e.addr.city ? (L(), j("span",
|
|
26118
|
-
e.addr.locality ? (L(), j("span",
|
|
26119
|
-
e.addr.region ? (L(), j("span",
|
|
26142
|
+
return (t, r) => (L(), j("div", ok, [
|
|
26143
|
+
M("span", sk, [
|
|
26144
|
+
e.addr.postIndex ? (L(), j("span", ck, B(e.addr.postIndex) + ", ", 1)) : A("", !0),
|
|
26145
|
+
e.addr.city ? (L(), j("span", lk, B(e.addr.city) + ", ", 1)) : A("", !0),
|
|
26146
|
+
e.addr.locality ? (L(), j("span", uk, B(e.addr.locality) + ", ", 1)) : A("", !0),
|
|
26147
|
+
e.addr.region ? (L(), j("span", dk, B(e.addr.region) + ", ", 1)) : A("", !0)
|
|
26120
26148
|
]),
|
|
26121
|
-
M("span",
|
|
26122
|
-
e.addr.street ? (L(), j("span",
|
|
26123
|
-
e.addr.building ? (L(), j("span",
|
|
26124
|
-
e.addr.buildingPart ? (L(), j("span",
|
|
26125
|
-
e.addr.apartments ? (L(), j("span",
|
|
26149
|
+
M("span", fk, [
|
|
26150
|
+
e.addr.street ? (L(), j("span", pk, B(e.addr.street) + ", ", 1)) : A("", !0),
|
|
26151
|
+
e.addr.building ? (L(), j("span", mk, B(e.addr.building) + ", ", 1)) : A("", !0),
|
|
26152
|
+
e.addr.buildingPart ? (L(), j("span", hk, B(e.addr.buildingPart) + ", ", 1)) : A("", !0),
|
|
26153
|
+
e.addr.apartments ? (L(), j("span", gk, B(e.addr.apartments) + ", ", 1)) : A("", !0)
|
|
26126
26154
|
]),
|
|
26127
|
-
n.value ? (L(), j("span",
|
|
26155
|
+
n.value ? (L(), j("span", _k, B(n.value), 1)) : A("", !0)
|
|
26128
26156
|
]));
|
|
26129
26157
|
}
|
|
26130
|
-
}),
|
|
26158
|
+
}), yk = {
|
|
26131
26159
|
clearable: !1,
|
|
26132
26160
|
value: "",
|
|
26133
26161
|
field: void 0,
|
|
26134
26162
|
disabled: !1
|
|
26135
|
-
},
|
|
26163
|
+
}, bk = /* @__PURE__ */ F({
|
|
26136
26164
|
__name: "address-suggestion",
|
|
26137
26165
|
props: /*@__PURE__*/ at({
|
|
26138
26166
|
disabled: { type: Boolean },
|
|
@@ -26144,7 +26172,7 @@ var ZD = it({
|
|
|
26144
26172
|
wrapContent: { type: Boolean },
|
|
26145
26173
|
searchDataHandler: { type: Function }
|
|
26146
26174
|
}, {
|
|
26147
|
-
...
|
|
26175
|
+
...yk,
|
|
26148
26176
|
minTermLength: () => se().getConfig()?.minLength?.searchTerm ?? 3,
|
|
26149
26177
|
searchDataHandler: void 0,
|
|
26150
26178
|
wrapContent: !0
|
|
@@ -26166,7 +26194,7 @@ var ZD = it({
|
|
|
26166
26194
|
}));
|
|
26167
26195
|
}, p = (e, t) => {
|
|
26168
26196
|
let n = s.value.find((t) => t.id === e.value) || {};
|
|
26169
|
-
return I(
|
|
26197
|
+
return I(vk, {
|
|
26170
26198
|
addr: n,
|
|
26171
26199
|
selected: t
|
|
26172
26200
|
}, { default: fe("-") });
|
|
@@ -26206,16 +26234,16 @@ var ZD = it({
|
|
|
26206
26234
|
]);
|
|
26207
26235
|
};
|
|
26208
26236
|
}
|
|
26209
|
-
}),
|
|
26237
|
+
}), xk = { class: "m-0.5 flex flex-col p-0.5" }, Sk = { class: "font-medium" }, Ck = { class: "flex flex-row gap-1 text-xs font-light text-blue-800" }, wk = { key: 0 }, Tk = { key: 1 }, Ek = /* @__PURE__ */ F({
|
|
26210
26238
|
__name: "bank-suggestion-label",
|
|
26211
26239
|
props: {
|
|
26212
26240
|
bank: {},
|
|
26213
26241
|
selected: { type: Boolean }
|
|
26214
26242
|
},
|
|
26215
26243
|
setup(e) {
|
|
26216
|
-
return (t, n) => (L(), j("div",
|
|
26244
|
+
return (t, n) => (L(), j("div", xk, [M("span", Sk, B(e.bank.name), 1), M("span", Ck, [e.bank.bic ? (L(), j("span", wk, " БИК: " + B(e.bank.bic), 1)) : A("", !0), e.bank.inn ? (L(), j("span", Tk, " ИНН: " + B(e.bank.inn), 1)) : A("", !0)])]));
|
|
26217
26245
|
}
|
|
26218
|
-
}),
|
|
26246
|
+
}), Dk = /* @__PURE__ */ F({
|
|
26219
26247
|
__name: "bank-suggestion",
|
|
26220
26248
|
props: /*@__PURE__*/ at({
|
|
26221
26249
|
disabled: { type: Boolean },
|
|
@@ -26226,7 +26254,7 @@ var ZD = it({
|
|
|
26226
26254
|
consistentMenuWidth: { type: Boolean },
|
|
26227
26255
|
wrapContent: { type: Boolean }
|
|
26228
26256
|
}, {
|
|
26229
|
-
...
|
|
26257
|
+
...yk,
|
|
26230
26258
|
minTermLength: () => se().getConfig()?.minLength?.searchTerm ?? 3,
|
|
26231
26259
|
wrapContent: !0
|
|
26232
26260
|
}),
|
|
@@ -26252,7 +26280,7 @@ var ZD = it({
|
|
|
26252
26280
|
}
|
|
26253
26281
|
}, p = (e, t) => {
|
|
26254
26282
|
let n = s.value.find((t) => t.id === e.value) || {};
|
|
26255
|
-
return I(
|
|
26283
|
+
return I(Ek, {
|
|
26256
26284
|
bank: n,
|
|
26257
26285
|
selected: t
|
|
26258
26286
|
}, { default: fe("-") });
|
|
@@ -26292,18 +26320,18 @@ var ZD = it({
|
|
|
26292
26320
|
]);
|
|
26293
26321
|
};
|
|
26294
26322
|
}
|
|
26295
|
-
}),
|
|
26323
|
+
}), Ok = { class: "font-medium" }, kk = {
|
|
26296
26324
|
key: 0,
|
|
26297
26325
|
"data-testid": "org-details",
|
|
26298
26326
|
class: "text-xs font-light"
|
|
26299
|
-
},
|
|
26327
|
+
}, Ak = {
|
|
26300
26328
|
key: 0,
|
|
26301
26329
|
"data-testid": "org-inn",
|
|
26302
26330
|
class: "mr-2 whitespace-nowrap text-blue-800"
|
|
26303
|
-
},
|
|
26331
|
+
}, jk = {
|
|
26304
26332
|
key: 1,
|
|
26305
26333
|
class: "text-sc-dark-grey"
|
|
26306
|
-
},
|
|
26334
|
+
}, Mk = /* @__PURE__ */ F({
|
|
26307
26335
|
__name: "org-suggestion-label",
|
|
26308
26336
|
props: {
|
|
26309
26337
|
org: {},
|
|
@@ -26311,9 +26339,9 @@ var ZD = it({
|
|
|
26311
26339
|
},
|
|
26312
26340
|
setup(e) {
|
|
26313
26341
|
let t = e, n = O(() => t.org.rawData?.state?.liquidationDate ?? !1), r = O(() => t.org.rawData?.address?.value ?? "");
|
|
26314
|
-
return (t, i) => (L(), j("div", { class: lt(`m-0.5 flex flex-col p-0.5 ${n.value ? "line-through" : ""}`) }, [M("span",
|
|
26342
|
+
return (t, i) => (L(), j("div", { class: lt(`m-0.5 flex flex-col p-0.5 ${n.value ? "line-through" : ""}`) }, [M("span", Ok, B(e.org.name), 1), e.org.inn || r.value ? (L(), j("div", kk, [e.org.inn ? (L(), j("span", Ak, B(e.org.inn), 1)) : A("", !0), r.value ? (L(), j("span", jk, B(r.value), 1)) : A("", !0)])) : A("", !0)], 2));
|
|
26315
26343
|
}
|
|
26316
|
-
}),
|
|
26344
|
+
}), Nk = /* @__PURE__ */ F({
|
|
26317
26345
|
__name: "org-suggestion",
|
|
26318
26346
|
props: /*@__PURE__*/ at({
|
|
26319
26347
|
disabled: { type: Boolean },
|
|
@@ -26325,7 +26353,7 @@ var ZD = it({
|
|
|
26325
26353
|
wrapContent: { type: Boolean },
|
|
26326
26354
|
allowSelectTerminated: { type: Boolean }
|
|
26327
26355
|
}, {
|
|
26328
|
-
...
|
|
26356
|
+
...yk,
|
|
26329
26357
|
minTermLength: () => se().getConfig()?.minLength?.searchTerm ?? 3,
|
|
26330
26358
|
wrapContent: !0
|
|
26331
26359
|
}),
|
|
@@ -26348,7 +26376,7 @@ var ZD = it({
|
|
|
26348
26376
|
}
|
|
26349
26377
|
}, m = (e, t) => {
|
|
26350
26378
|
let n = s.value.find((t) => t.id === e.value) || {};
|
|
26351
|
-
return I(
|
|
26379
|
+
return I(Mk, {
|
|
26352
26380
|
org: n,
|
|
26353
26381
|
selected: t
|
|
26354
26382
|
}, { default: fe("-") });
|
|
@@ -26390,4 +26418,4 @@ var ZD = it({
|
|
|
26390
26418
|
}
|
|
26391
26419
|
});
|
|
26392
26420
|
//#endregion
|
|
26393
|
-
export { mr as ALL_ORDER_MARKERS, Tr as AddressQualityLabelHelper, Kn as CATEGORY_REQUIRED_HINT, Br as CommonValidators, Xd as ConfiguratorSettingsKozyrek, bh as ConfiguratorSettingsMosquito, Or as ContentHelper, kr as CurrencyHelper, sr as DEFAULT_ORDER_STATUS_COLORS, Vr as DateValidators, jr as EntityNameHelper, Ar as FileHelper, Fd as KozyrekLine, Yd as KozyrekTailTemplate, Jd as KozyrekTemplate, Gr as M2PriceHelper, Wn as MODE_DISABLED_HINT, Lr as NumberHelper, W as NumericValidators, fr as ORDER_MARKER_COLORS, pr as ORDER_MARKER_NAMES, cr as ORDER_STATUS_COLORS, or as OrderMarkerEnum, vr as OrdersTableFields, Gn as PRODUCT_REQUIRED_HINT, Pd as Point, fm as ScAddProductToCartDialog,
|
|
26421
|
+
export { mr as ALL_ORDER_MARKERS, Tr as AddressQualityLabelHelper, Kn as CATEGORY_REQUIRED_HINT, Br as CommonValidators, Xd as ConfiguratorSettingsKozyrek, bh as ConfiguratorSettingsMosquito, Or as ContentHelper, kr as CurrencyHelper, sr as DEFAULT_ORDER_STATUS_COLORS, Vr as DateValidators, jr as EntityNameHelper, Ar as FileHelper, Fd as KozyrekLine, Yd as KozyrekTailTemplate, Jd as KozyrekTemplate, Gr as M2PriceHelper, Wn as MODE_DISABLED_HINT, Lr as NumberHelper, W as NumericValidators, fr as ORDER_MARKER_COLORS, pr as ORDER_MARKER_NAMES, cr as ORDER_STATUS_COLORS, or as OrderMarkerEnum, vr as OrdersTableFields, Gn as PRODUCT_REQUIRED_HINT, Pd as Point, fm as ScAddProductToCartDialog, bk as ScAddressSuggestion, vk as ScAddressSuggestionLabel, Dk as ScBankSuggestion, Ek as ScBankSuggestionLabel, Va as ScBaseDialog, Kr as ScButtonWithConfirmAction, sm as ScCategoryCollapse, Jr as ScChipGroup, bm as ScClientNameWithShortInfo, om as ScCollapse, Ii as ScCollapseItem, N_ as ScCommentEditor, nv as ScCompactCardList, ko as ScConfiguratorsProductInfo, Sm as ScContragentWithShortInfo, _D as ScCreatorUserTypeTag, rk as ScCuratorSelect, u_ as ScDateRange, f_ as ScDateTimeLabel, H_ as ScDebouncedInput, U_ as ScDebouncedInputNumber, p_ as ScDebt, v_ as ScDialogHeader, Hp as ScDynamicConfigurator, Dm as ScEmail, $_ as ScExternalLink, Oa as ScImageGallery, A_ as ScInlineEditableItem, k_ as ScInlineView, $d as ScKozyrekConfigurator, Bo as ScKozyrekConfiguratorParamsForm, qd as ScKozyrekConfiguratorPreview, Ud as ScKozyrekConfiguratorTemplates, q_ as ScKpiGrid, Ta as ScLightGallery, ik as ScManagerOperatorSelect, ak as ScManagerSelect, Lf as ScMetalForDoorsConfigurator, Ff as ScMetalForDoorsConfiguratorForm, bf as ScMosquitoConfigurator, uf as ScMosquitoConfiguratorForm, vf as ScMosquitoConfiguratorMeasurementInstructions, nf as ScMosquitoConfiguratorPreview, kD as ScOrderColorSwatch, mD as ScOrderCommonInfo, lD as ScOrderDeliveryLabel, YD as ScOrderDetails, eO as ScOrderExternalLinks, RO as ScOrderHighlightSettings, cO as ScOrderInfo, qE as ScOrderItemParams, BD as ScOrderItemsList, hD as ScOrderPayment, wD as ScOrderProductInfo, UD as ScOrderStatusHistory, OD as ScOrderStatusTag, uO as ScOrdersList, Nk as ScOrgSuggestion, Mk as ScOrgSuggestionLabel, JO as ScPage, nk as ScPageWithSlidingPanel, yh as ScPersonContactsBlock, eh as ScPhone, W_ as ScPhoneInput, Ra as ScProductInfoContent, Wa as ScProductInfoDialog, qa as ScProductInfoPopover, go as ScProductName, bE as ScProductsList, cm as ScReferenceSelect, ap as ScSandwichConfigurator, np as ScSandwichConfiguratorForm, Ip as ScSandwichM2Configurator, Np as ScSandwichM2ConfiguratorForm, mE as ScSearchableProductSelect, pE as ScSearchableReferenceSelect, lm as ScSetClientPriceFormItem, VO as ScShortTextOrderInfo, L_ as ScSingleFileUploadSelector, ZO as ScSlidingContentWithDrawer, Nf as ScStripConfigurator, Ef as ScStripConfiguratorForm, xf as ScStripConfiguratorLineItem, Af as ScStripConfiguratorPreview, GD as ScUserShortInfo, V_ as ScWarningIcon, zr as SelectOptionHelper, qn as UiNotificationProvider, Hr as Validators, yr as WindowResolutionEnum, br as WindowResolutionProvider, wO as channelPrimaryInterestOptionsList, Bi as componentSizeInjectionKey, Xn as copyToClipboard, dO as deliveryTypeReferenceList, hr as getOrderMarkerColors, gr as getOrderMarkerName, _r as getOrderMarkers, lr as getOrderStatusColors, dr as getOrderStatusCssVariables, ur as getOrderStatusTagColor, Ur as getProductInfoFiles, Nr as handleFloatInput, Mr as handleIntegerInput, Wr as hasProductInfo, xh as isCanSandwichM2Show, Wp as isCanSandwichShow, Up as isConfiguratorType, fO as managersReferenceList, Vi as naiveUiTheme, CO as operatorReferenceList, pO as opfReferenceList, SO as orderStatusDetailReferenceList, xO as orderStatusReferenceList, Rr as paginationItemsPrefix, Pr as parse, mO as partnerGroupReferenceList, bO as paymentTypeReferenceList, hO as priceCoefficientsReferenceList, gO as productFilesTypesReferenceList, Id as renderConfig, Fr as resetInputValidation, _O as resourceReferencesList, vO as salesDirectionsReferenceList, EO as searchCityReferenceDataHandler, DO as searchCityReferenceLabelRenderer, AO as searchClientReferenceDataHandler, jO as searchClientReferenceLabelRenderer, OO as searchRegionReferenceDataHandler, kO as searchRegionReferenceLabelRenderer, Ir as selectAllTextOnFocus, Dr as showAppVersion, TO as sourcePrimaryInterestOptionsList, Sr as useCompactLayout, wr as useHoverSupport, $n as vCopy, ar as vFocusNext, yO as warehousesReferenceList };
|