xyvcard-goods 0.0.28 → 0.0.29
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/{edit-D1FAN3TA.mjs → edit-1TXe_HC2.mjs} +23 -30
- package/dist/{edit-CuZnQH9w.mjs → edit-BDHYnZTL.mjs} +1 -1
- package/dist/{edit-CquWa3hI.mjs → edit-Br1EAlBd.mjs} +3 -3
- package/dist/{edit-CYekSxUa.mjs → edit-BzOoP1MM.mjs} +3 -3
- package/dist/{edit-C_XCVJwM.mjs → edit-C0U9Ge6U.mjs} +8 -8
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs → edit.vue_vue_type_script_setup_true_lang-BmH1D2Ce.mjs} +3 -3
- package/dist/index-BreCG7fL.mjs +562 -0
- package/dist/{index-wH3Sgvus.mjs → index-ClnNQkIp.mjs} +1 -1
- package/dist/{index-B3vvD7JH.mjs → index-D3Q39K5l.mjs} +61 -63
- package/dist/{index-Dd1dJx7i.mjs → index-DYo45BS3.mjs} +32 -37
- package/dist/index-DwDXNfWH.mjs +644 -0
- package/dist/{index-B27GuULR.mjs → index-GWE4OrXj.mjs} +9 -9
- package/dist/{index-nCeCw43N.mjs → index-RBIPJ3PM.mjs} +87 -92
- package/dist/{index-COXyxAor.mjs → index-rRbEKDlL.mjs} +53 -46
- package/dist/index.mjs +1 -1
- package/dist/{info-NBnTd9fK.mjs → info-DjDT9TId.mjs} +2 -2
- package/dist/{info-0Pf9u0GJ.mjs → info-Dji-jSuw.mjs} +3 -3
- package/dist/{skuForm-BsvKk2kD.mjs → skuForm-9X82lvcF.mjs} +2 -2
- package/dist/{skuForm-CU0a2ltJ.mjs → skuForm-BzxL1_v6.mjs} +2 -2
- package/dist/{skuTable-DgDGWX-n.mjs → skuTable-RIQUU_Bl.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/index.d.ts +1 -0
- package/dts/constant.d.ts +10 -0
- package/package.json +4 -4
- package/dist/goodsList-DZlaY5k0.mjs +0 -4
- package/dist/goodsList-wpPEPZqs.mjs +0 -4
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs +0 -565
- package/dist/goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs +0 -714
- package/dist/index-DFxg3rmo.mjs +0 -55
- package/dist/index-Dy5JznUz.mjs +0 -53
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as E, mergeModels as
|
|
1
|
+
import { defineComponent as E, mergeModels as V, ref as B, reactive as N, useModel as F, resolveComponent as r, openBlock as K, createBlock as O, withCtx as l, createElementVNode as x, createVNode as o, createTextVNode as w, toDisplayString as U, unref as d } from "vue";
|
|
2
2
|
import { ElMessage as k } from "element-plus";
|
|
3
3
|
import { useI18n as A } from "vue-i18n";
|
|
4
|
-
import { g as
|
|
4
|
+
import { g as p } from "./index-ClnNQkIp.mjs";
|
|
5
5
|
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
7
7
|
__name: "edit",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ V({
|
|
9
9
|
entityKey: {
|
|
10
10
|
type: Object,
|
|
11
11
|
default: () => {
|
|
@@ -15,45 +15,38 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
15
15
|
modelValue: { type: Boolean },
|
|
16
16
|
modelModifiers: {}
|
|
17
17
|
}),
|
|
18
|
-
emits: /* @__PURE__ */
|
|
19
|
-
setup(
|
|
20
|
-
const g =
|
|
18
|
+
emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
|
|
19
|
+
setup(f, { emit: $ }) {
|
|
20
|
+
const g = B(), { t: i } = A();
|
|
21
21
|
let t = N({
|
|
22
22
|
requestId: Math.random() * 10 + "",
|
|
23
23
|
updateMask: "brandName,logoUrl,description"
|
|
24
24
|
});
|
|
25
|
-
const
|
|
25
|
+
const C = N({
|
|
26
26
|
brandName: [
|
|
27
27
|
{
|
|
28
28
|
required: !0,
|
|
29
29
|
message: i("goodsBrandInfo.brandNameRequired"),
|
|
30
30
|
trigger: "change"
|
|
31
31
|
}
|
|
32
|
-
],
|
|
33
|
-
logoUrl: [
|
|
34
|
-
{
|
|
35
|
-
required: !0,
|
|
36
|
-
message: i("goodsBrandInfo.logoUrlRequired"),
|
|
37
|
-
trigger: "change"
|
|
38
|
-
}
|
|
39
32
|
]
|
|
40
|
-
}), a = F(
|
|
41
|
-
function
|
|
33
|
+
}), a = F(f, "modelValue"), _ = f;
|
|
34
|
+
function M(e) {
|
|
42
35
|
t.logoUrl = e;
|
|
43
36
|
}
|
|
44
|
-
const b =
|
|
45
|
-
y.value &&
|
|
37
|
+
const b = $, j = Object.keys(_.entityKey), y = B(j.length >= 1);
|
|
38
|
+
y.value && p.findById(_.entityKey).then(({ data: e }) => {
|
|
46
39
|
Object.assign(t, e);
|
|
47
40
|
});
|
|
48
|
-
const
|
|
41
|
+
const q = async () => {
|
|
49
42
|
var e;
|
|
50
43
|
await ((e = g.value) == null ? void 0 : e.validate((n) => {
|
|
51
|
-
n && (y.value ?
|
|
44
|
+
n && (y.value ? p.update(t).then((s) => {
|
|
52
45
|
s.status === 200 && (k({
|
|
53
46
|
message: i("common.submitSuccess"),
|
|
54
47
|
type: "success"
|
|
55
48
|
}), a.value && (a.value = !1), b("refresh", s.status === 200));
|
|
56
|
-
}) :
|
|
49
|
+
}) : p.create(t).then((s) => {
|
|
57
50
|
s.status === 200 && (k({
|
|
58
51
|
message: i("common.submitSuccess"),
|
|
59
52
|
type: "success"
|
|
@@ -65,7 +58,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
65
58
|
a.value && (a.value = !1);
|
|
66
59
|
}
|
|
67
60
|
return (e, n) => {
|
|
68
|
-
const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"),
|
|
61
|
+
const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"), R = r("el-row"), S = r("el-form"), I = r("el-button"), D = r("el-dialog");
|
|
69
62
|
return K(), O(D, {
|
|
70
63
|
modelValue: a.value,
|
|
71
64
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => a.value = m),
|
|
@@ -75,16 +68,16 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
75
68
|
x("div", z, [
|
|
76
69
|
o(I, { onClick: h }, {
|
|
77
70
|
default: l(() => [
|
|
78
|
-
U(
|
|
71
|
+
w(U(e.$t("common.cancel")), 1)
|
|
79
72
|
]),
|
|
80
73
|
_: 1
|
|
81
74
|
}),
|
|
82
75
|
o(I, {
|
|
83
76
|
type: "primary",
|
|
84
|
-
onClick:
|
|
77
|
+
onClick: q
|
|
85
78
|
}, {
|
|
86
79
|
default: l(() => [
|
|
87
|
-
U(
|
|
80
|
+
w(U(e.$t("common.confirm")), 1)
|
|
88
81
|
]),
|
|
89
82
|
_: 1
|
|
90
83
|
})
|
|
@@ -95,11 +88,11 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
95
88
|
ref_key: "goodsBrandInfoFormRef",
|
|
96
89
|
ref: g,
|
|
97
90
|
model: d(t),
|
|
98
|
-
"label-width": "
|
|
99
|
-
rules:
|
|
91
|
+
"label-width": "90px",
|
|
92
|
+
rules: C
|
|
100
93
|
}, {
|
|
101
94
|
default: l(() => [
|
|
102
|
-
o(
|
|
95
|
+
o(R, null, {
|
|
103
96
|
default: l(() => [
|
|
104
97
|
o(c, { span: 24 }, {
|
|
105
98
|
default: l(() => [
|
|
@@ -110,7 +103,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
110
103
|
default: l(() => [
|
|
111
104
|
o(s, {
|
|
112
105
|
"picture-url": d(t).logoUrl,
|
|
113
|
-
onImageSrc:
|
|
106
|
+
onImageSrc: M,
|
|
114
107
|
width: 80,
|
|
115
108
|
type: "trans"
|
|
116
109
|
}, null, 8, ["picture-url"])
|
|
@@ -173,7 +166,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
173
166
|
}, 8, ["modelValue"]);
|
|
174
167
|
};
|
|
175
168
|
}
|
|
176
|
-
}), W = /* @__PURE__ */ T(G, [["__scopeId", "data-v-
|
|
169
|
+
}), W = /* @__PURE__ */ T(G, [["__scopeId", "data-v-4d967c8a"]]);
|
|
177
170
|
export {
|
|
178
171
|
W as default
|
|
179
172
|
};
|
|
@@ -4,9 +4,9 @@ import { ElMessage as w } from "element-plus";
|
|
|
4
4
|
import { useRouter as Y, useRoute as J } from "vue-router";
|
|
5
5
|
import { routerUtil as k } from "jmash-core";
|
|
6
6
|
import { useI18n as K } from "vue-i18n";
|
|
7
|
-
import { D as m, C as Q } from "./index-
|
|
8
|
-
import { a as b } from "./index-
|
|
9
|
-
import W from "./skuForm-
|
|
7
|
+
import { D as m, C as Q } from "./index-rRbEKDlL.mjs";
|
|
8
|
+
import { a as b } from "./index-GWE4OrXj.mjs";
|
|
9
|
+
import W from "./skuForm-9X82lvcF.mjs";
|
|
10
10
|
const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" }, pe = /* @__PURE__ */ O({
|
|
11
11
|
__name: "edit",
|
|
12
12
|
setup(le) {
|
|
@@ -4,11 +4,11 @@ import { ElMessage as $ } from "element-plus";
|
|
|
4
4
|
import { useRouter as Y, useRoute as Z } from "vue-router";
|
|
5
5
|
import { routerUtil as E } from "jmash-core";
|
|
6
6
|
import { useI18n as x } from "vue-i18n";
|
|
7
|
-
import { D as i, C as ee } from "./index-
|
|
8
|
-
import { a as _ } from "./index-
|
|
7
|
+
import { D as i, C as ee } from "./index-rRbEKDlL.mjs";
|
|
8
|
+
import { a as _ } from "./index-GWE4OrXj.mjs";
|
|
9
9
|
import { g as le } from "./index-BHmGYIuc.mjs";
|
|
10
10
|
import { WangEditor as oe } from "xyvcard-cms";
|
|
11
|
-
import te from "./skuForm-
|
|
11
|
+
import te from "./skuForm-BzxL1_v6.mjs";
|
|
12
12
|
const se = { class: "app-container" }, ae = { class: "search-container" }, ue = { class: "image-card" }, he = /* @__PURE__ */ K({
|
|
13
13
|
__name: "edit",
|
|
14
14
|
setup(de) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as j, mergeModels as v, ref as I, reactive as C, useModel as E, resolveComponent as m, openBlock as F, createBlock as K, withCtx as o, createElementVNode as O, createVNode as l, createTextVNode as L, toDisplayString as N, unref as r } from "vue";
|
|
2
2
|
import { ElMessage as w } from "element-plus";
|
|
3
3
|
import { useI18n as S } from "vue-i18n";
|
|
4
|
-
import { b as
|
|
4
|
+
import { b as c } from "./index-GWE4OrXj.mjs";
|
|
5
5
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
|
|
7
7
|
__name: "edit",
|
|
@@ -16,7 +16,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
|
|
|
16
16
|
modelModifiers: {}
|
|
17
17
|
}),
|
|
18
18
|
emits: /* @__PURE__ */ v(["refresh"], ["update:modelValue"]),
|
|
19
|
-
setup(
|
|
19
|
+
setup(p, { emit: k }) {
|
|
20
20
|
const { t: u } = S(), b = I();
|
|
21
21
|
let a = C({
|
|
22
22
|
requestId: Math.random() * 10 + "",
|
|
@@ -37,19 +37,19 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
|
|
|
37
37
|
trigger: "change"
|
|
38
38
|
}
|
|
39
39
|
]
|
|
40
|
-
}), s = E(
|
|
41
|
-
y.value &&
|
|
40
|
+
}), s = E(p, "modelValue"), g = p, _ = k, $ = Object.keys(g.entityKey), y = I($.length >= 1);
|
|
41
|
+
y.value && c.findById(g.entityKey).then(({ data: e }) => {
|
|
42
42
|
Object.assign(a, e);
|
|
43
43
|
});
|
|
44
44
|
const R = async () => {
|
|
45
45
|
var e;
|
|
46
46
|
await ((e = b.value) == null ? void 0 : e.validate((t) => {
|
|
47
|
-
t && (y.value ?
|
|
47
|
+
t && (y.value ? c.update(a).then((n) => {
|
|
48
48
|
n.status === 200 && (w({
|
|
49
49
|
message: u("common.submitSuccess"),
|
|
50
50
|
type: "success"
|
|
51
51
|
}), s.value && (s.value = !1), _("refresh", n.status === 200));
|
|
52
|
-
}) :
|
|
52
|
+
}) : c.create(a).then((n) => {
|
|
53
53
|
n.status === 200 && (w({
|
|
54
54
|
message: u("common.submitSuccess"),
|
|
55
55
|
type: "success"
|
|
@@ -91,7 +91,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
|
|
|
91
91
|
ref_key: "goodsLabelInfoFormRef",
|
|
92
92
|
ref: b,
|
|
93
93
|
model: r(a),
|
|
94
|
-
"label-width": "
|
|
94
|
+
"label-width": "90px",
|
|
95
95
|
rules: q
|
|
96
96
|
}, {
|
|
97
97
|
default: o(() => [
|
|
@@ -170,7 +170,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
|
|
|
170
170
|
}, 8, ["modelValue"]);
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
-
}), P = /* @__PURE__ */ D(A, [["__scopeId", "data-v-
|
|
173
|
+
}), P = /* @__PURE__ */ D(A, [["__scopeId", "data-v-4ec2418d"]]);
|
|
174
174
|
export {
|
|
175
175
|
P as default
|
|
176
176
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as wn, mergeModels as E, ref as $, reactive as R, useModel as qn, onMounted as pn, resolveComponent as p, openBlock as an, createBlock as kn, withCtx as j, createElementVNode as Cn, createVNode as t, createTextVNode as A, toDisplayString as U, unref as x } from "vue";
|
|
2
2
|
import { ElMessage as L } from "element-plus";
|
|
3
3
|
import { useI18n as Sn } from "vue-i18n";
|
|
4
|
-
import { g as B } from "./index-
|
|
5
|
-
import { D as O } from "./index-
|
|
4
|
+
import { g as B } from "./index-GWE4OrXj.mjs";
|
|
5
|
+
import { D as O } from "./index-rRbEKDlL.mjs";
|
|
6
6
|
const _n = /^[\uD800-\uDBFF]$/, Pn = /^[\uDC00-\uDFFF]$/, Dn = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
7
7
|
var F;
|
|
8
8
|
(function(n) {
|
|
@@ -24041,7 +24041,7 @@ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24041
24041
|
ref_key: "goodsCategoryFormRef",
|
|
24042
24042
|
ref: u,
|
|
24043
24043
|
model: x(h),
|
|
24044
|
-
"label-width": "
|
|
24044
|
+
"label-width": "90px",
|
|
24045
24045
|
rules: s
|
|
24046
24046
|
}, {
|
|
24047
24047
|
default: j(() => [
|