xyvcard-goods 0.0.32 → 0.0.34
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/README.md +51 -51
- package/dist/GoodsBaseForm-BSvXc_XA.mjs +4 -0
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +381 -0
- package/dist/GoodsLogisticsForm-1Bbd4Z52.mjs +4 -0
- package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs +434 -0
- package/dist/GoodsSpecForm-Ddo1IZLZ.mjs +4 -0
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs +338 -0
- package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Bf2jhRs5.mjs} +1 -1
- package/dist/edit copy 2-Yzf_M31V.mjs +59 -0
- package/dist/edit copy-CCnzlrgL.mjs +526 -0
- package/dist/{edit-DvO1wYIL.mjs → edit-BgtwinSN.mjs} +1 -1
- package/dist/{edit-BlQj1xVR.mjs → edit-Dke5sWct.mjs} +4 -4
- package/dist/{edit-CuGiM5xu.mjs → edit-e5-aXV6K.mjs} +15 -15
- package/dist/{edit-Bh5jT6eo.mjs → edit-lfXK_dUp.mjs} +4 -4
- package/dist/{edit-CyhVo22f.mjs → edit-pUKONjxH.mjs} +7 -7
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs → edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs} +33 -33
- package/dist/el-message-BB2-39XJ.mjs +1221 -0
- package/dist/{index-BrBipAPq.mjs → index-BSzOTWcG.mjs} +1 -1
- package/dist/{index-CVM7nBhM.mjs → index-BpKiAhvt.mjs} +3 -3
- package/dist/{index-Dk9-_0Ir.mjs → index-ChQ-ZxD1.mjs} +2 -2
- package/dist/{index-Dz9NSJh1.mjs → index-CkJncbVf.mjs} +3 -3
- package/dist/{index-DzUSeIbT.mjs → index-CkMWas2b.mjs} +3 -3
- package/dist/index-Da2R0n8O.mjs +374 -0
- package/dist/{index-BlZupHNB.mjs → index-DhS4AuWf.mjs} +1593 -1554
- package/dist/{index-8JQB4NmH.mjs → index-DyLLV1NK.mjs} +281 -250
- package/dist/index-vHQhUQSO.mjs +95 -0
- package/dist/index.mjs +1 -1
- package/dist/{info-CLt9Ea38.mjs → info-DOKoSi7a.mjs} +34 -34
- package/dist/{info-NFU_3fNY.mjs → info-De_pBN6A.mjs} +19 -19
- package/dist/{skuForm-Dr6dKGa4.mjs → skuForm-DVGkw6rD.mjs} +71 -86
- package/dist/{skuForm-8WZm2j5V.mjs → skuForm-YXHrhyPI.mjs} +111 -110
- package/dist/{skuTable-BwIc5hr5.mjs → skuTable-DOIQ9kiV.mjs} +71 -71
- package/dist/style.css +1 -1
- package/dts/api/goods-base/index.d.ts +11 -0
- package/dts/api/goods-base/types.d.ts +33 -0
- package/dts/api/goods-logistics/index.d.ts +8 -0
- package/dts/api/goods-logistics/types.d.ts +16 -0
- package/dts/api/goods-spec/index.d.ts +8 -0
- package/dts/api/goods-spec/types.d.ts +15 -0
- package/dts/api/goods-spu/index.d.ts +3 -0
- package/dts/api/goods-stock/index.d.ts +8 -0
- package/dts/api/goods-stock/types.d.ts +32 -0
- package/dts/api/index.d.ts +3 -0
- package/dts/constant.d.ts +26 -0
- package/dts/lang/goods/zh-cn.d.ts +12 -0
- package/dts/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/api/dict.d.ts +35 -0
- package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
- package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
- package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
- package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +18 -0
- package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +69 -0
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +245 -0
- package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
- package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
- package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
- package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
- package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
- package/dts/xyvcard-goods/src/constant.d.ts +107 -0
- package/dts/xyvcard-goods/src/index.d.ts +12 -0
- package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +141 -0
- package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/main.d.ts +7 -0
- package/dts/xyvcard-goods/src/permission.d.ts +1 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +6 -0
- package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
- package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
- package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
- package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
- package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
- package/package.json +63 -63
- package/dist/index-B7_M6fAN.mjs +0 -228
- package/dts/views/goods/goods-combination/goodsList.vue.d.ts +0 -14
- package/dts/views/goods/goods-spu/goodsList.vue.d.ts +0 -23
- /package/dts/{views/goods/goods-combination → xyvcard-goods/src/views/goods/goods-spu}/skuTable.vue.d.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { C as
|
|
3
|
-
import
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as se, ref as S, computed as ue, watch as E, resolveComponent as i, createElementBlock as _, openBlock as m, Fragment as k, createCommentVNode as L, unref as O, createVNode as o, withCtx as a, renderList as P, createElementVNode as b, toDisplayString as Y, createTextVNode as y, createBlock as w } from "vue";
|
|
2
|
+
import { C as $, D as ne, S as H, a as re } from "./index-Da2R0n8O.mjs";
|
|
3
|
+
import de from "./skuTable-DOIQ9kiV.mjs";
|
|
4
|
+
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
const ce = { key: 0 }, ie = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "w-full"
|
|
8
|
-
},
|
|
8
|
+
}, me = { class: "goods-title" }, fe = ["onClick"], ve = { class: "goods-content" }, Ve = { class: "goods-tag" }, _e = /* @__PURE__ */ se({
|
|
9
9
|
__name: "skuForm",
|
|
10
10
|
props: {
|
|
11
11
|
// 规格类型
|
|
@@ -20,9 +20,9 @@ const pe = { key: 0 }, ce = {
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
emits: ["getGoodsSku", "getFormData"],
|
|
23
|
-
setup(
|
|
24
|
-
var F, q, T;
|
|
25
|
-
const
|
|
23
|
+
setup(J, { emit: K }) {
|
|
24
|
+
var F, q, T, R;
|
|
25
|
+
const n = S({
|
|
26
26
|
picUrl: "",
|
|
27
27
|
salePrice: 0,
|
|
28
28
|
salePriceV2: 0,
|
|
@@ -33,37 +33,37 @@ const pe = { key: 0 }, ce = {
|
|
|
33
33
|
volume: 0,
|
|
34
34
|
stock: 0,
|
|
35
35
|
skuCode: ""
|
|
36
|
-
}), u = S([]), C = S(),
|
|
36
|
+
}), u = S([]), C = S(), g = S([]), h = S([]), I = S([]), v = J, D = K, U = ue(() => u.value.filter(
|
|
37
37
|
(e) => e.name && e.specValueList != null && e.specValueList.length
|
|
38
38
|
));
|
|
39
|
-
|
|
39
|
+
E(
|
|
40
40
|
v.form,
|
|
41
41
|
(e) => e,
|
|
42
42
|
{
|
|
43
43
|
deep: !0,
|
|
44
44
|
immediate: !0
|
|
45
45
|
}
|
|
46
|
-
),
|
|
47
|
-
|
|
46
|
+
), E(
|
|
47
|
+
n,
|
|
48
48
|
(e) => {
|
|
49
|
-
|
|
49
|
+
D("getGoodsSku", e);
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
deep: !0,
|
|
53
53
|
immediate: !0
|
|
54
54
|
}
|
|
55
|
-
),
|
|
55
|
+
), E(
|
|
56
56
|
U,
|
|
57
57
|
(e) => e,
|
|
58
58
|
{
|
|
59
59
|
deep: !0,
|
|
60
60
|
immediate: !0
|
|
61
61
|
}
|
|
62
|
-
), v.form.spuId && (v.form.specType ===
|
|
62
|
+
), v.form.spuId && (v.form.specType === $.SPEC_TYPE_VALUES.UNIFIED_SPEC ? (F = v.form.skuList) != null && F.results[0] && (n.value = (q = v.form.skuList) == null ? void 0 : q.results[0]) : (I.value = (T = v.form.skuList) == null ? void 0 : T.results, (R = v.form.skuList) == null || R.results.forEach((e) => {
|
|
63
63
|
var l;
|
|
64
64
|
(l = e.specValues) == null || l.map((t) => {
|
|
65
|
-
|
|
66
|
-
const d =
|
|
65
|
+
ne.specInfoDict.useValues().then((r) => {
|
|
66
|
+
const d = r.find((f) => t.specId === f.key);
|
|
67
67
|
if (d) {
|
|
68
68
|
let f = {
|
|
69
69
|
id: t.specId,
|
|
@@ -75,18 +75,18 @@ const pe = { key: 0 }, ce = {
|
|
|
75
75
|
const p = /* @__PURE__ */ new Map();
|
|
76
76
|
u.value = u.value.filter(
|
|
77
77
|
(f) => !p.has(f.id) && p.set(f.id, f)
|
|
78
|
-
),
|
|
78
|
+
), Q(t.specValueId);
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
81
|
})));
|
|
82
|
-
function
|
|
82
|
+
function Q(e) {
|
|
83
83
|
u.value.forEach((l) => {
|
|
84
|
-
|
|
85
|
-
t.forEach((
|
|
86
|
-
if (
|
|
84
|
+
g.value = new H({ specId: l.id }), g.value.useValues().then((t) => {
|
|
85
|
+
t.forEach((r) => {
|
|
86
|
+
if (r.key === e) {
|
|
87
87
|
let p = {
|
|
88
88
|
id: e,
|
|
89
|
-
name:
|
|
89
|
+
name: r.value
|
|
90
90
|
};
|
|
91
91
|
l.specValueList.push(p);
|
|
92
92
|
}
|
|
@@ -98,14 +98,14 @@ const pe = { key: 0 }, ce = {
|
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function W(e) {
|
|
102
102
|
u.value.splice(e, 1);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function X(e, l) {
|
|
105
105
|
u.value[e].specValueList.splice(l, 1);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
h.value = new
|
|
107
|
+
function Z() {
|
|
108
|
+
h.value = new re({ shopId: v.form.shopId }), h.value.useValues().then((e) => {
|
|
109
109
|
e.forEach((l) => {
|
|
110
110
|
Array.isArray(u.value) && u.value.length > 0 && u.value.forEach((t) => {
|
|
111
111
|
l.key === t.id && (l.disabled = !0);
|
|
@@ -113,54 +113,54 @@ const pe = { key: 0 }, ce = {
|
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
let l = h.value.values.filter((
|
|
116
|
+
function z(e) {
|
|
117
|
+
let l = h.value.values.filter((r) => r.key === e), t = {
|
|
118
118
|
id: l[0].key,
|
|
119
119
|
name: l[0].value,
|
|
120
120
|
specValueList: []
|
|
121
121
|
};
|
|
122
122
|
u.value.push(t), C.value = "";
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
124
|
+
function x(e) {
|
|
125
|
+
g.value = new H({
|
|
126
126
|
specId: u.value[e].id
|
|
127
|
-
}),
|
|
127
|
+
}), g.value.useValues().then((l) => {
|
|
128
128
|
l.map((t) => {
|
|
129
|
-
Array.isArray(u.value[e].specValueList) && u.value[e].specValueList.length > 0 && u.value[e].specValueList.forEach((
|
|
130
|
-
t.key ===
|
|
129
|
+
Array.isArray(u.value[e].specValueList) && u.value[e].specValueList.length > 0 && u.value[e].specValueList.forEach((r) => {
|
|
130
|
+
t.key === r.id && (t.disabled = !0);
|
|
131
131
|
});
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ee(e, l) {
|
|
136
136
|
var d, p;
|
|
137
|
-
let t =
|
|
137
|
+
let t = g.value.values.filter((f) => f.key === e), r = {
|
|
138
138
|
id: t[0].key,
|
|
139
139
|
name: t[0].value
|
|
140
140
|
};
|
|
141
|
-
(p = (d = u.value[l]) == null ? void 0 : d.specValueList) == null || p.push(
|
|
141
|
+
(p = (d = u.value[l]) == null ? void 0 : d.specValueList) == null || p.push(r), u.value[l].specValueId = "";
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function le(e) {
|
|
144
|
+
D("getFormData", e);
|
|
145
145
|
}
|
|
146
146
|
return (e, l) => {
|
|
147
|
-
const t = i("el-input-number"),
|
|
148
|
-
return m(),
|
|
149
|
-
v.specType ==
|
|
147
|
+
const t = i("el-input-number"), r = i("el-form-item"), d = i("el-col"), p = i("el-row"), f = i("Delete"), oe = i("el-icon"), ae = i("el-tag"), A = i("el-button"), N = i("el-option"), j = i("el-select"), B = i("el-popover"), G = i("el-tab-pane"), M = i("el-tabs");
|
|
148
|
+
return m(), _(k, null, [
|
|
149
|
+
v.specType == O($).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (m(), _("div", ce, [
|
|
150
150
|
o(p, null, {
|
|
151
151
|
default: a(() => [
|
|
152
152
|
o(d, { span: 6 }, {
|
|
153
153
|
default: a(() => [
|
|
154
|
-
o(
|
|
154
|
+
o(r, {
|
|
155
155
|
label: e.$t("goodsSpu.salePrice"),
|
|
156
156
|
prop: "salePrice"
|
|
157
157
|
}, {
|
|
158
158
|
default: a(() => [
|
|
159
159
|
o(t, {
|
|
160
|
-
modelValue:
|
|
161
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) =>
|
|
160
|
+
modelValue: n.value.salePrice,
|
|
161
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => n.value.salePrice = s),
|
|
162
162
|
precision: 2,
|
|
163
|
-
step: 0,
|
|
163
|
+
step: 0.01,
|
|
164
164
|
min: 0.01,
|
|
165
165
|
placeholder: e.$t("goodsSpu.salePriceRequired"),
|
|
166
166
|
class: "w-full",
|
|
@@ -174,16 +174,16 @@ const pe = { key: 0 }, ce = {
|
|
|
174
174
|
}),
|
|
175
175
|
o(d, { span: 6 }, {
|
|
176
176
|
default: a(() => [
|
|
177
|
-
o(
|
|
177
|
+
o(r, {
|
|
178
178
|
label: e.$t("goodsSpu.salePriceV2"),
|
|
179
179
|
prop: "salePriceV2"
|
|
180
180
|
}, {
|
|
181
181
|
default: a(() => [
|
|
182
182
|
o(t, {
|
|
183
|
-
modelValue:
|
|
184
|
-
"onUpdate:modelValue": l[1] || (l[1] = (s) =>
|
|
183
|
+
modelValue: n.value.salePriceV2,
|
|
184
|
+
"onUpdate:modelValue": l[1] || (l[1] = (s) => n.value.salePriceV2 = s),
|
|
185
185
|
precision: 2,
|
|
186
|
-
step: 0,
|
|
186
|
+
step: 0.01,
|
|
187
187
|
min: 0.01,
|
|
188
188
|
placeholder: e.$t("goodsSpu.salePriceV2Required"),
|
|
189
189
|
class: "w-full",
|
|
@@ -197,16 +197,16 @@ const pe = { key: 0 }, ce = {
|
|
|
197
197
|
}),
|
|
198
198
|
o(d, { span: 6 }, {
|
|
199
199
|
default: a(() => [
|
|
200
|
-
o(
|
|
200
|
+
o(r, {
|
|
201
201
|
label: e.$t("goodsSpu.salePriceV3"),
|
|
202
202
|
prop: "salePriceV3"
|
|
203
203
|
}, {
|
|
204
204
|
default: a(() => [
|
|
205
205
|
o(t, {
|
|
206
|
-
modelValue:
|
|
207
|
-
"onUpdate:modelValue": l[2] || (l[2] = (s) =>
|
|
206
|
+
modelValue: n.value.salePriceV3,
|
|
207
|
+
"onUpdate:modelValue": l[2] || (l[2] = (s) => n.value.salePriceV3 = s),
|
|
208
208
|
precision: 2,
|
|
209
|
-
step: 0,
|
|
209
|
+
step: 0.01,
|
|
210
210
|
min: 0.01,
|
|
211
211
|
placeholder: e.$t("goodsSpu.salePriceV3Required"),
|
|
212
212
|
class: "w-full",
|
|
@@ -220,21 +220,21 @@ const pe = { key: 0 }, ce = {
|
|
|
220
220
|
}),
|
|
221
221
|
o(d, { span: 6 }, {
|
|
222
222
|
default: a(() => [
|
|
223
|
-
o(
|
|
223
|
+
o(r, {
|
|
224
224
|
label: e.$t("goodsSpu.marketPrice"),
|
|
225
225
|
prop: "marketPrice"
|
|
226
226
|
}, {
|
|
227
227
|
default: a(() => [
|
|
228
228
|
o(t, {
|
|
229
|
-
modelValue:
|
|
230
|
-
"onUpdate:modelValue": l[3] || (l[3] = (s) =>
|
|
229
|
+
modelValue: n.value.marketPrice,
|
|
230
|
+
"onUpdate:modelValue": l[3] || (l[3] = (s) => n.value.marketPrice = s),
|
|
231
231
|
precision: 2,
|
|
232
|
-
step: 0,
|
|
233
|
-
min: 0.01,
|
|
232
|
+
step: 0.01,
|
|
233
|
+
min: n.value.costPrice || 0.01,
|
|
234
234
|
placeholder: e.$t("goodsSpu.marketPriceRequired"),
|
|
235
235
|
class: "w-full",
|
|
236
236
|
controls: !1
|
|
237
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
237
|
+
}, null, 8, ["modelValue", "min", "placeholder"])
|
|
238
238
|
]),
|
|
239
239
|
_: 1
|
|
240
240
|
}, 8, ["label"])
|
|
@@ -243,21 +243,22 @@ const pe = { key: 0 }, ce = {
|
|
|
243
243
|
}),
|
|
244
244
|
o(d, { span: 6 }, {
|
|
245
245
|
default: a(() => [
|
|
246
|
-
o(
|
|
246
|
+
o(r, {
|
|
247
247
|
label: e.$t("goodsSpu.costPrice"),
|
|
248
248
|
prop: "costPrice"
|
|
249
249
|
}, {
|
|
250
250
|
default: a(() => [
|
|
251
251
|
o(t, {
|
|
252
|
-
modelValue:
|
|
253
|
-
"onUpdate:modelValue": l[4] || (l[4] = (s) =>
|
|
252
|
+
modelValue: n.value.costPrice,
|
|
253
|
+
"onUpdate:modelValue": l[4] || (l[4] = (s) => n.value.costPrice = s),
|
|
254
254
|
precision: 2,
|
|
255
|
-
step: 0,
|
|
255
|
+
step: 0.1,
|
|
256
256
|
min: 0.01,
|
|
257
|
+
max: n.value.marketPrice,
|
|
257
258
|
placeholder: e.$t("goodsSpu.costPriceRequired"),
|
|
258
259
|
class: "w-full",
|
|
259
260
|
controls: !1
|
|
260
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
261
|
+
}, null, 8, ["modelValue", "max", "placeholder"])
|
|
261
262
|
]),
|
|
262
263
|
_: 1
|
|
263
264
|
}, 8, ["label"])
|
|
@@ -266,14 +267,14 @@ const pe = { key: 0 }, ce = {
|
|
|
266
267
|
}),
|
|
267
268
|
o(d, { span: 6 }, {
|
|
268
269
|
default: a(() => [
|
|
269
|
-
o(
|
|
270
|
+
o(r, {
|
|
270
271
|
label: e.$t("goodsSpu.stock"),
|
|
271
272
|
prop: "stock"
|
|
272
273
|
}, {
|
|
273
274
|
default: a(() => [
|
|
274
275
|
o(t, {
|
|
275
|
-
modelValue:
|
|
276
|
-
"onUpdate:modelValue": l[5] || (l[5] = (s) =>
|
|
276
|
+
modelValue: n.value.stock,
|
|
277
|
+
"onUpdate:modelValue": l[5] || (l[5] = (s) => n.value.stock = s),
|
|
277
278
|
placeholder: e.$t("goodsSpu.stockRequired"),
|
|
278
279
|
class: "w-full",
|
|
279
280
|
controls: !1,
|
|
@@ -288,14 +289,14 @@ const pe = { key: 0 }, ce = {
|
|
|
288
289
|
}),
|
|
289
290
|
o(d, { span: 6 }, {
|
|
290
291
|
default: a(() => [
|
|
291
|
-
o(
|
|
292
|
+
o(r, {
|
|
292
293
|
label: e.$t("goodsSpu.weight"),
|
|
293
294
|
prop: "weight"
|
|
294
295
|
}, {
|
|
295
296
|
default: a(() => [
|
|
296
297
|
o(t, {
|
|
297
|
-
modelValue:
|
|
298
|
-
"onUpdate:modelValue": l[6] || (l[6] = (s) =>
|
|
298
|
+
modelValue: n.value.weight,
|
|
299
|
+
"onUpdate:modelValue": l[6] || (l[6] = (s) => n.value.weight = s),
|
|
299
300
|
placeholder: e.$t("goodsSpu.weightRequired"),
|
|
300
301
|
class: "w-full",
|
|
301
302
|
controls: !1,
|
|
@@ -309,14 +310,14 @@ const pe = { key: 0 }, ce = {
|
|
|
309
310
|
}),
|
|
310
311
|
o(d, { span: 6 }, {
|
|
311
312
|
default: a(() => [
|
|
312
|
-
o(
|
|
313
|
+
o(r, {
|
|
313
314
|
label: e.$t("goodsSpu.volume"),
|
|
314
315
|
prop: "volume"
|
|
315
316
|
}, {
|
|
316
317
|
default: a(() => [
|
|
317
318
|
o(t, {
|
|
318
|
-
modelValue:
|
|
319
|
-
"onUpdate:modelValue": l[7] || (l[7] = (s) =>
|
|
319
|
+
modelValue: n.value.volume,
|
|
320
|
+
"onUpdate:modelValue": l[7] || (l[7] = (s) => n.value.volume = s),
|
|
320
321
|
controls: !1,
|
|
321
322
|
placeholder: e.$t("goodsSpu.volumeRequired"),
|
|
322
323
|
class: "w-full",
|
|
@@ -331,54 +332,54 @@ const pe = { key: 0 }, ce = {
|
|
|
331
332
|
]),
|
|
332
333
|
_: 1
|
|
333
334
|
})
|
|
334
|
-
])) :
|
|
335
|
-
v.specType ==
|
|
336
|
-
o(
|
|
335
|
+
])) : L("", !0),
|
|
336
|
+
v.specType == O($).SPEC_TYPE_VALUES.MULTI_SPEC ? (m(), _("div", ie, [
|
|
337
|
+
o(M, { type: "border-card" }, {
|
|
337
338
|
default: a(() => [
|
|
338
|
-
o(
|
|
339
|
+
o(G, { label: "商品规格" }, {
|
|
339
340
|
default: a(() => [
|
|
340
|
-
(m(!0),
|
|
341
|
+
(m(!0), _(k, null, P(u.value, (s, V) => (m(), _("div", {
|
|
341
342
|
class: "goods-spec",
|
|
342
343
|
key: V
|
|
343
344
|
}, [
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
b("div", me, [
|
|
346
|
+
b("span", null, Y(s.name), 1),
|
|
347
|
+
b("span", {
|
|
347
348
|
class: "goods-delete",
|
|
348
|
-
onClick: (c) =>
|
|
349
|
+
onClick: (c) => W(V)
|
|
349
350
|
}, [
|
|
350
|
-
o(
|
|
351
|
+
o(oe, null, {
|
|
351
352
|
default: a(() => [
|
|
352
353
|
o(f)
|
|
353
354
|
]),
|
|
354
355
|
_: 1
|
|
355
356
|
}),
|
|
356
357
|
l[9] || (l[9] = y("移除 ", -1))
|
|
357
|
-
], 8,
|
|
358
|
+
], 8, fe)
|
|
358
359
|
]),
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
(m(!0),
|
|
360
|
+
b("div", ve, [
|
|
361
|
+
b("div", Ve, [
|
|
362
|
+
(m(!0), _(k, null, P(u.value[V].specValueList, (c, te) => (m(), w(ae, {
|
|
362
363
|
key: c,
|
|
363
364
|
closable: "",
|
|
364
365
|
type: "info",
|
|
365
366
|
class: "right-dis",
|
|
366
|
-
onClose: (ge) =>
|
|
367
|
+
onClose: (ge) => X(V, te)
|
|
367
368
|
}, {
|
|
368
369
|
default: a(() => [
|
|
369
|
-
y(
|
|
370
|
+
y(Y(c.name), 1)
|
|
370
371
|
]),
|
|
371
372
|
_: 2
|
|
372
373
|
}, 1032, ["onClose"]))), 128))
|
|
373
374
|
]),
|
|
374
|
-
o(
|
|
375
|
+
o(B, {
|
|
375
376
|
placement: "bottom",
|
|
376
377
|
width: 200,
|
|
377
378
|
trigger: "click",
|
|
378
|
-
onShow: (c) =>
|
|
379
|
+
onShow: (c) => x(V)
|
|
379
380
|
}, {
|
|
380
381
|
reference: a(() => [
|
|
381
|
-
o(
|
|
382
|
+
o(A, { class: "m-2" }, {
|
|
382
383
|
default: a(() => l[10] || (l[10] = [
|
|
383
384
|
y("添加规格值", -1)
|
|
384
385
|
])),
|
|
@@ -391,10 +392,10 @@ const pe = { key: 0 }, ce = {
|
|
|
391
392
|
modelValue: u.value[V].specValueId,
|
|
392
393
|
"onUpdate:modelValue": (c) => u.value[V].specValueId = c,
|
|
393
394
|
placeholder: e.$t("goodsSpu.specValueRequired"),
|
|
394
|
-
onChange: (c) =>
|
|
395
|
+
onChange: (c) => ee(c, V)
|
|
395
396
|
}, {
|
|
396
397
|
default: a(() => [
|
|
397
|
-
(m(!0),
|
|
398
|
+
(m(!0), _(k, null, P(g.value.values, (c) => (m(), w(N, {
|
|
398
399
|
key: c.key,
|
|
399
400
|
label: c.value,
|
|
400
401
|
value: c.key,
|
|
@@ -408,14 +409,14 @@ const pe = { key: 0 }, ce = {
|
|
|
408
409
|
}, 1032, ["onShow"])
|
|
409
410
|
])
|
|
410
411
|
]))), 128)),
|
|
411
|
-
o(
|
|
412
|
+
o(B, {
|
|
412
413
|
placement: "bottom",
|
|
413
414
|
width: 200,
|
|
414
415
|
trigger: "click",
|
|
415
|
-
onShow:
|
|
416
|
+
onShow: Z
|
|
416
417
|
}, {
|
|
417
418
|
reference: a(() => [
|
|
418
|
-
o(
|
|
419
|
+
o(A, { class: "m-2" }, {
|
|
419
420
|
default: a(() => l[11] || (l[11] = [
|
|
420
421
|
y("添加规格", -1)
|
|
421
422
|
])),
|
|
@@ -428,10 +429,10 @@ const pe = { key: 0 }, ce = {
|
|
|
428
429
|
modelValue: C.value,
|
|
429
430
|
"onUpdate:modelValue": l[8] || (l[8] = (s) => C.value = s),
|
|
430
431
|
placeholder: e.$t("goodsSpu.specRequired"),
|
|
431
|
-
onChange:
|
|
432
|
+
onChange: z
|
|
432
433
|
}, {
|
|
433
434
|
default: a(() => [
|
|
434
|
-
(m(!0),
|
|
435
|
+
(m(!0), _(k, null, P(h.value.values, (s) => (m(), w(N, {
|
|
435
436
|
key: s.key,
|
|
436
437
|
label: s.value,
|
|
437
438
|
value: s.key,
|
|
@@ -449,27 +450,27 @@ const pe = { key: 0 }, ce = {
|
|
|
449
450
|
]),
|
|
450
451
|
_: 1
|
|
451
452
|
}),
|
|
452
|
-
o(
|
|
453
|
+
o(M, { type: "border-card" }, {
|
|
453
454
|
default: a(() => [
|
|
454
|
-
o(
|
|
455
|
+
o(G, { label: "规格售价与库存" }, {
|
|
455
456
|
default: a(() => [
|
|
456
|
-
u.value.length > 0 ? (m(), w(
|
|
457
|
+
u.value.length > 0 ? (m(), w(de, {
|
|
457
458
|
key: 0,
|
|
458
459
|
specData: U.value,
|
|
459
|
-
goodsSku:
|
|
460
|
-
onGetFormData:
|
|
461
|
-
}, null, 8, ["specData", "goodsSku"])) :
|
|
460
|
+
goodsSku: I.value,
|
|
461
|
+
onGetFormData: le
|
|
462
|
+
}, null, 8, ["specData", "goodsSku"])) : L("", !0)
|
|
462
463
|
]),
|
|
463
464
|
_: 1
|
|
464
465
|
})
|
|
465
466
|
]),
|
|
466
467
|
_: 1
|
|
467
468
|
})
|
|
468
|
-
])) :
|
|
469
|
+
])) : L("", !0)
|
|
469
470
|
], 64);
|
|
470
471
|
};
|
|
471
472
|
}
|
|
472
|
-
}),
|
|
473
|
+
}), Pe = /* @__PURE__ */ pe(_e, [["__scopeId", "data-v-b3afed7b"]]);
|
|
473
474
|
export {
|
|
474
|
-
|
|
475
|
+
Pe as default
|
|
475
476
|
};
|