xyvcard-goods 0.0.2 → 0.0.4
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/{approveFailIndex-BS-H7i3Y.mjs → approveFailIndex-F3GtuNeX.mjs} +1 -1
- package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-CebPGseh.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs} +2 -2
- package/dist/{auditIndex-DHQPvPdG.mjs → auditIndex-BXUxPTBo.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-B-ghb-zu.mjs → auditIndex.vue_vue_type_script_setup_true_lang-2LQeWrbt.mjs} +2 -2
- package/dist/edit-B_KK1orD.mjs +2976 -0
- package/dist/index-D5_GsXR7.mjs +142 -0
- package/dist/{index-CIN1Wvug.mjs → index-PA3Mh5x6.mjs} +6 -6
- package/dist/index.mjs +1055 -928
- package/dist/{info-MqipS9Ok.mjs → info-8-HEtfzY.mjs} +3 -3
- package/dist/{saleIndex-D2vlM6ww.mjs → saleIndex-vZV2Dq0y.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-B1iRvFF9.mjs → saleIndex.vue_vue_type_script_setup_true_lang-BpHE0pi0.mjs} +2 -2
- package/dist/{shelfIndex-CEgDzOX1.mjs → shelfIndex-Ciis-I11.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-DS__493K.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-GCWPCxCX.mjs} +2 -2
- package/dist/{skuForm-BMRF5whq.mjs → skuForm-DaxgHBOV.mjs} +40 -37
- package/dist/{skuTable-Ddo1obnO.mjs → skuTable-C4mHW-e9.mjs} +130 -121
- package/dist/style.css +1 -1
- package/dts/index.d.ts +2 -0
- package/dts/main.d.ts +2 -0
- package/package.json +4 -2
- package/dist/edit-DOqDV4qb.mjs +0 -13978
- package/dist/index-CZD7OAWo.mjs +0 -213
- package/dist/index-fu3gxdt_.mjs +0 -130
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as q, ref as b, computed as j, watch as F, resolveComponent as S, openBlock as g, createElementBlock as V, createVNode as i, withCtx as e, createTextVNode as n, toDisplayString as l, createElementVNode as a, unref as r, Fragment as w, renderList as C, createBlock as y, createCommentVNode as P } from "vue";
|
|
2
2
|
import { fileApi as B, routerUtil as H } from "jmash-core";
|
|
3
3
|
import { useRouter as O, useRoute as R } from "vue-router";
|
|
4
|
-
import { D as p, C as N, S as z } from "./index-
|
|
5
|
-
import { s as G } from "./skuTable-
|
|
6
|
-
import {
|
|
4
|
+
import { D as p, C as N, S as z } from "./index-D5_GsXR7.mjs";
|
|
5
|
+
import { s as G } from "./skuTable-C4mHW-e9.mjs";
|
|
6
|
+
import { goodsSpuApi as J } from "./index.mjs";
|
|
7
7
|
import { g as K } from "./index-BHmGYIuc.mjs";
|
|
8
8
|
const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Y = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "cell-item" }, ae = { class: "title-content" }, ie = { class: "cell-item" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = ["innerHTML"], ye = /* @__PURE__ */ q({
|
|
9
9
|
__name: "info",
|
|
@@ -2,8 +2,8 @@ import { defineComponent as X, getCurrentInstance as x, ref as D, resolveCompone
|
|
|
2
2
|
import { useRouter as le } from "vue-router";
|
|
3
3
|
import { useTableHooks as te, fileApi as z } from "jmash-core";
|
|
4
4
|
import { useI18n as ae } from "vue-i18n";
|
|
5
|
-
import {
|
|
6
|
-
import { C as se, D as g } from "./index-
|
|
5
|
+
import { goodsSpuApi as j } from "./index.mjs";
|
|
6
|
+
import { C as se, D as g } from "./index-D5_GsXR7.mjs";
|
|
7
7
|
import { Z as E } from "./el-message-D15RmjW3.mjs";
|
|
8
8
|
const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], re = ["onClick"], we = /* @__PURE__ */ X({
|
|
9
9
|
__name: "saleIndex",
|
|
@@ -2,8 +2,8 @@ import { defineComponent as x, getCurrentInstance as ee, ref as D, resolveCompon
|
|
|
2
2
|
import { useRouter as te } from "vue-router";
|
|
3
3
|
import { useTableHooks as ae, fileApi as z } from "jmash-core";
|
|
4
4
|
import { useI18n as se } from "vue-i18n";
|
|
5
|
-
import {
|
|
6
|
-
import { D as g } from "./index-
|
|
5
|
+
import { goodsSpuApi as j } from "./index.mjs";
|
|
6
|
+
import { D as g } from "./index-D5_GsXR7.mjs";
|
|
7
7
|
import { Z as E } from "./el-message-D15RmjW3.mjs";
|
|
8
8
|
const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], de = ["onClick"], re = ["onClick"], ye = /* @__PURE__ */ x({
|
|
9
9
|
__name: "shelfIndex",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineComponent as te, ref as k, computed as se, watch as C, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as h, unref as M, createVNode as o, withCtx as a, createCommentVNode as D, renderList as y, createElementVNode as S, toDisplayString as O, createTextVNode as w, createBlock as P } from "vue";
|
|
2
2
|
import "jmash-core";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import "xyvcard-shop";
|
|
4
|
+
import { C as L, D as ue, S as H, a as ne } from "./index-D5_GsXR7.mjs";
|
|
5
|
+
import { s as re, _ as pe } from "./skuTable-C4mHW-e9.mjs";
|
|
5
6
|
const de = { key: 0 }, ce = {
|
|
6
7
|
key: 1,
|
|
7
8
|
class: "w-full"
|
|
@@ -21,8 +22,8 @@ const de = { key: 0 }, ce = {
|
|
|
21
22
|
},
|
|
22
23
|
emits: ["getGoodsSku", "getFormData"],
|
|
23
24
|
setup(J, { emit: K }) {
|
|
24
|
-
var F,
|
|
25
|
-
const
|
|
25
|
+
var F, q, T;
|
|
26
|
+
const p = k({
|
|
26
27
|
picUrl: "",
|
|
27
28
|
salePrice: 0,
|
|
28
29
|
marketPrice: 0,
|
|
@@ -42,7 +43,7 @@ const de = { key: 0 }, ce = {
|
|
|
42
43
|
immediate: !0
|
|
43
44
|
}
|
|
44
45
|
), C(
|
|
45
|
-
|
|
46
|
+
p,
|
|
46
47
|
(e) => {
|
|
47
48
|
E("getGoodsSku", e);
|
|
48
49
|
},
|
|
@@ -57,15 +58,15 @@ const de = { key: 0 }, ce = {
|
|
|
57
58
|
deep: !0,
|
|
58
59
|
immediate: !0
|
|
59
60
|
}
|
|
60
|
-
), v.form.spuId && (v.form.specType === L.specType.UNIFIED_SPEC ?
|
|
61
|
+
), v.form.spuId && (v.form.specType === L.specType.UNIFIED_SPEC ? p.value = (F = v.form.skuList) == null ? void 0 : F.results[0] : ($.value = (q = v.form.skuList) == null ? void 0 : q.results, (T = v.form.skuList) == null || T.results.forEach((e) => {
|
|
61
62
|
var l;
|
|
62
63
|
(l = e.specValues) == null || l.map((s) => {
|
|
63
64
|
ue.specInfoDict.useValues().then((n) => {
|
|
64
|
-
const
|
|
65
|
-
if (console.log(
|
|
65
|
+
const r = n.find((f) => s.specId === f.key);
|
|
66
|
+
if (console.log(r), r) {
|
|
66
67
|
let f = {
|
|
67
68
|
id: s.specId,
|
|
68
|
-
name:
|
|
69
|
+
name: r.value,
|
|
69
70
|
specValueList: []
|
|
70
71
|
};
|
|
71
72
|
t.value.push(f);
|
|
@@ -88,9 +89,9 @@ const de = { key: 0 }, ce = {
|
|
|
88
89
|
};
|
|
89
90
|
l.specValueList.push(d);
|
|
90
91
|
}
|
|
91
|
-
const
|
|
92
|
+
const r = /* @__PURE__ */ new Map();
|
|
92
93
|
l.specValueList = l.specValueList.filter(
|
|
93
|
-
(d) => !
|
|
94
|
+
(d) => !r.has(d.id) && r.set(d.id, d)
|
|
94
95
|
), console.log(t.value);
|
|
95
96
|
});
|
|
96
97
|
});
|
|
@@ -131,32 +132,33 @@ const de = { key: 0 }, ce = {
|
|
|
131
132
|
});
|
|
132
133
|
}
|
|
133
134
|
function x(e, l) {
|
|
134
|
-
var
|
|
135
|
+
var r, d;
|
|
135
136
|
let s = V.value.values.filter((f) => f.key === e), n = {
|
|
136
137
|
id: s[0].key,
|
|
137
138
|
name: s[0].value
|
|
138
139
|
};
|
|
139
|
-
(d = (
|
|
140
|
+
(d = (r = t.value[l]) == null ? void 0 : r.specValueList) == null || d.push(n), t.value[l].specValueId = "";
|
|
140
141
|
}
|
|
141
142
|
function ee(e) {
|
|
142
143
|
E("getFormData", e);
|
|
143
144
|
}
|
|
144
145
|
return (e, l) => {
|
|
145
|
-
const s = i("el-input-number"), n = i("el-form-item"),
|
|
146
|
+
const s = i("el-input-number"), n = i("el-form-item"), r = i("el-col"), d = i("el-row"), f = i("Delete"), le = i("el-icon"), oe = i("el-tag"), R = i("el-button"), N = i("el-option"), j = i("el-select"), A = i("el-popover"), B = i("el-tab-pane"), G = i("el-tabs");
|
|
146
147
|
return m(), _(h, null, [
|
|
147
148
|
v.specType == M(L).specType.UNIFIED_SPEC ? (m(), _("div", de, [
|
|
148
149
|
o(d, null, {
|
|
149
150
|
default: a(() => [
|
|
150
|
-
o(
|
|
151
|
+
o(r, { span: 8 }, {
|
|
151
152
|
default: a(() => [
|
|
152
153
|
o(n, {
|
|
153
154
|
label: e.$t("goodsSpu.salePrice"),
|
|
154
|
-
prop: "salePrice"
|
|
155
|
+
prop: "salePrice",
|
|
156
|
+
required: ""
|
|
155
157
|
}, {
|
|
156
158
|
default: a(() => [
|
|
157
159
|
o(s, {
|
|
158
|
-
modelValue:
|
|
159
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) =>
|
|
160
|
+
modelValue: p.value.salePrice,
|
|
161
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => p.value.salePrice = u),
|
|
160
162
|
precision: 2,
|
|
161
163
|
step: 0,
|
|
162
164
|
placeholder: e.$t("goodsSpu.salePriceRequired"),
|
|
@@ -169,7 +171,7 @@ const de = { key: 0 }, ce = {
|
|
|
169
171
|
]),
|
|
170
172
|
_: 1
|
|
171
173
|
}),
|
|
172
|
-
o(
|
|
174
|
+
o(r, { span: 8 }, {
|
|
173
175
|
default: a(() => [
|
|
174
176
|
o(n, {
|
|
175
177
|
label: e.$t("goodsSpu.marketPrice"),
|
|
@@ -177,8 +179,8 @@ const de = { key: 0 }, ce = {
|
|
|
177
179
|
}, {
|
|
178
180
|
default: a(() => [
|
|
179
181
|
o(s, {
|
|
180
|
-
modelValue:
|
|
181
|
-
"onUpdate:modelValue": l[1] || (l[1] = (u) =>
|
|
182
|
+
modelValue: p.value.marketPrice,
|
|
183
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => p.value.marketPrice = u),
|
|
182
184
|
precision: 2,
|
|
183
185
|
step: 0,
|
|
184
186
|
placeholder: e.$t("goodsSpu.marketPriceRequired"),
|
|
@@ -191,7 +193,7 @@ const de = { key: 0 }, ce = {
|
|
|
191
193
|
]),
|
|
192
194
|
_: 1
|
|
193
195
|
}),
|
|
194
|
-
o(
|
|
196
|
+
o(r, { span: 8 }, {
|
|
195
197
|
default: a(() => [
|
|
196
198
|
o(n, {
|
|
197
199
|
label: e.$t("goodsSpu.costPrice"),
|
|
@@ -199,8 +201,8 @@ const de = { key: 0 }, ce = {
|
|
|
199
201
|
}, {
|
|
200
202
|
default: a(() => [
|
|
201
203
|
o(s, {
|
|
202
|
-
modelValue:
|
|
203
|
-
"onUpdate:modelValue": l[2] || (l[2] = (u) =>
|
|
204
|
+
modelValue: p.value.costPrice,
|
|
205
|
+
"onUpdate:modelValue": l[2] || (l[2] = (u) => p.value.costPrice = u),
|
|
204
206
|
precision: 2,
|
|
205
207
|
step: 0,
|
|
206
208
|
placeholder: e.$t("goodsSpu.costPriceRequired"),
|
|
@@ -213,16 +215,17 @@ const de = { key: 0 }, ce = {
|
|
|
213
215
|
]),
|
|
214
216
|
_: 1
|
|
215
217
|
}),
|
|
216
|
-
o(
|
|
218
|
+
o(r, { span: 8 }, {
|
|
217
219
|
default: a(() => [
|
|
218
220
|
o(n, {
|
|
219
221
|
label: e.$t("goodsSpu.stock"),
|
|
220
|
-
prop: "stock"
|
|
222
|
+
prop: "stock",
|
|
223
|
+
required: ""
|
|
221
224
|
}, {
|
|
222
225
|
default: a(() => [
|
|
223
226
|
o(s, {
|
|
224
|
-
modelValue:
|
|
225
|
-
"onUpdate:modelValue": l[3] || (l[3] = (u) =>
|
|
227
|
+
modelValue: p.value.stock,
|
|
228
|
+
"onUpdate:modelValue": l[3] || (l[3] = (u) => p.value.stock = u),
|
|
226
229
|
placeholder: e.$t("goodsSpu.stockRequired"),
|
|
227
230
|
class: "w-full",
|
|
228
231
|
controls: !1,
|
|
@@ -234,7 +237,7 @@ const de = { key: 0 }, ce = {
|
|
|
234
237
|
]),
|
|
235
238
|
_: 1
|
|
236
239
|
}),
|
|
237
|
-
o(
|
|
240
|
+
o(r, { span: 8 }, {
|
|
238
241
|
default: a(() => [
|
|
239
242
|
o(n, {
|
|
240
243
|
label: e.$t("goodsSpu.weight"),
|
|
@@ -242,8 +245,8 @@ const de = { key: 0 }, ce = {
|
|
|
242
245
|
}, {
|
|
243
246
|
default: a(() => [
|
|
244
247
|
o(s, {
|
|
245
|
-
modelValue:
|
|
246
|
-
"onUpdate:modelValue": l[4] || (l[4] = (u) =>
|
|
248
|
+
modelValue: p.value.weight,
|
|
249
|
+
"onUpdate:modelValue": l[4] || (l[4] = (u) => p.value.weight = u),
|
|
247
250
|
placeholder: e.$t("goodsSpu.weightRequired"),
|
|
248
251
|
class: "w-full",
|
|
249
252
|
controls: !1
|
|
@@ -254,7 +257,7 @@ const de = { key: 0 }, ce = {
|
|
|
254
257
|
]),
|
|
255
258
|
_: 1
|
|
256
259
|
}),
|
|
257
|
-
o(
|
|
260
|
+
o(r, { span: 8 }, {
|
|
258
261
|
default: a(() => [
|
|
259
262
|
o(n, {
|
|
260
263
|
label: e.$t("goodsSpu.volume"),
|
|
@@ -262,8 +265,8 @@ const de = { key: 0 }, ce = {
|
|
|
262
265
|
}, {
|
|
263
266
|
default: a(() => [
|
|
264
267
|
o(s, {
|
|
265
|
-
modelValue:
|
|
266
|
-
"onUpdate:modelValue": l[5] || (l[5] = (u) =>
|
|
268
|
+
modelValue: p.value.volume,
|
|
269
|
+
"onUpdate:modelValue": l[5] || (l[5] = (u) => p.value.volume = u),
|
|
267
270
|
controls: !1,
|
|
268
271
|
placeholder: e.$t("goodsSpu.volumeRequired"),
|
|
269
272
|
class: "w-full"
|
|
@@ -397,7 +400,7 @@ const de = { key: 0 }, ce = {
|
|
|
397
400
|
default: a(() => [
|
|
398
401
|
o(B, { label: "规格售价与库存" }, {
|
|
399
402
|
default: a(() => [
|
|
400
|
-
t.value.length > 0 ? (m(), P(
|
|
403
|
+
t.value.length > 0 ? (m(), P(re, {
|
|
401
404
|
key: 0,
|
|
402
405
|
specData: U.value,
|
|
403
406
|
goodsSku: $.value,
|
|
@@ -413,7 +416,7 @@ const de = { key: 0 }, ce = {
|
|
|
413
416
|
], 64);
|
|
414
417
|
};
|
|
415
418
|
}
|
|
416
|
-
}),
|
|
419
|
+
}), ye = /* @__PURE__ */ pe(ge, [["__scopeId", "data-v-0c86a42d"]]);
|
|
417
420
|
export {
|
|
418
|
-
|
|
421
|
+
ye as default
|
|
419
422
|
};
|