xyvcard-goods 0.0.33 → 0.0.35
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/BatchSetting-B1LcBFPD.mjs +333 -0
- package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
- package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
- package/dist/{GoodsBaseForm-6rzBkBTh.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
- package/dist/GoodsLogisticsForm-BqlwdGQ1.mjs +4 -0
- package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs +433 -0
- package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
- package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
- package/dist/{GoodsSpecForm-BqaN71rS.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs +347 -0
- package/dist/SingleSku-rWv9vVhv.mjs +351 -0
- package/dist/constant-sVd2JbJt.mjs +115 -0
- package/dist/edit-B1cmsJpy.mjs +70 -0
- package/dist/{edit-DBTNknBy.mjs → edit-Br1Y569l.mjs} +8 -7
- package/dist/{edit-CZwlbL9o.mjs → edit-CET8Fr-t.mjs} +18 -18
- package/dist/{edit-1Lv_dvlq.mjs → edit-CagYTFKr.mjs} +1 -1
- package/dist/{edit-D2zcGl_U.mjs → edit-iJGrWlSv.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +32 -32
- package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
- package/dist/{index-BhUD_X30.mjs → index copy-kNLE7fPg.mjs } +6 -5
- package/dist/index-C61SQFSx.mjs +264 -0
- package/dist/index-CeWPdEJD.mjs +713 -0
- package/dist/{index-BpXZNA11.mjs → index-Cg6GUdSP.mjs} +3 -3
- package/dist/index-CyxnVWnL.mjs +182 -0
- package/dist/{index-DGYGNHfx.mjs → index-D9s8hsVw.mjs} +3 -3
- package/dist/{index-BXa-atkT.mjs → index-DbnKa_BJ.mjs} +1 -1
- package/dist/{index-DXIGHcIv.mjs → index-DoxTu4kg.mjs} +5 -4
- package/dist/{index-Cl4wz2yF.mjs → index-kw0UYOIu.mjs} +3 -3
- package/dist/{index-CRfiEzkA.mjs → index-xQgC-8Gd.mjs} +1237 -1141
- package/dist/index.mjs +1 -1
- package/dist/info-CTElDVo6.mjs +376 -0
- package/dist/{info-DfbU-CWk.mjs → info-DpGJgdac.mjs} +37 -36
- package/dist/{skuForm-DoIpxDvq.mjs → skuForm-C7w9YIDe.mjs} +40 -39
- package/dist/skuForm-CPlnCToi.mjs +279 -0
- package/dist/skuTable-C-LcASbX.mjs +594 -0
- package/dist/spec-DkiGCkuM.mjs +44 -0
- package/dist/style.css +1 -1
- package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/api/dict.d.ts +36 -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 +21 -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 +72 -0
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +271 -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/api/types.d.ts +4 -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 +173 -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 +7 -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/BatchSetting.vue.d.ts +35 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -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/GoodsProfitForm.vue.d.ts +34 -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/components/SingleSku.vue.d.ts +23 -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 copy.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 +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +53 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -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 +6 -5
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +0 -374
- package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
- package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
- package/dist/edit copy-tfwJCdiV.mjs +0 -526
- package/dist/edit-Db2EJ9dq.mjs +0 -526
- package/dist/index-BHmGYIuc.mjs +0 -24
- package/dist/index-Df-F10aZ.mjs +0 -264
- package/dist/index-vHQhUQSO.mjs +0 -95
- package/dist/info-DDi6GKQH.mjs +0 -365
- package/dist/skuForm-DWIoveRP.mjs +0 -475
- package/dist/skuTable-BVBtWrf9.mjs +0 -639
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { defineComponent as C, mergeModels as L, useModel as M, reactive as N, ref as O, resolveComponent as c, createBlock as _, openBlock as g, withCtx as o, createVNode as s, createCommentVNode as V, createElementVNode as m, toDisplayString as f, unref as $ } from "vue";
|
|
2
|
+
import { useI18n as I } from "vue-i18n";
|
|
3
|
+
import { C as v } from "./constant-sVd2JbJt.mjs";
|
|
4
|
+
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
const G = { class: "required_red" }, Y = { class: "required_red" }, j = { class: "required_red" }, z = { class: "required_red" }, F = { class: "required_red" }, H = /* @__PURE__ */ C({
|
|
6
|
+
__name: "SingleSku",
|
|
7
|
+
props: /* @__PURE__ */ L({
|
|
8
|
+
goodsSpuModel: { default: () => ({}) }
|
|
9
|
+
}, {
|
|
10
|
+
modelValue: {},
|
|
11
|
+
modelModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(S, { expose: E }) {
|
|
15
|
+
var h, A, q;
|
|
16
|
+
const { t: n } = I(), k = S, r = M(S, "modelValue");
|
|
17
|
+
if (r.value)
|
|
18
|
+
if ((A = (h = k.goodsSpuModel.skuList) == null ? void 0 : h.results) != null && A.length) {
|
|
19
|
+
const e = (q = k.goodsSpuModel.skuList) == null ? void 0 : q.results[0];
|
|
20
|
+
r.value.skuSpecValues = [
|
|
21
|
+
{
|
|
22
|
+
...e,
|
|
23
|
+
salePrice: e.salePrice ?? null,
|
|
24
|
+
costPrice: e.costPrice ?? null,
|
|
25
|
+
marketPrice: e.marketPrice ?? null,
|
|
26
|
+
pointsDeduct: e.pointsDeduct ?? null,
|
|
27
|
+
earnestAmount: Number(e.earnestAmount) ?? null,
|
|
28
|
+
depositAmount: Number(e.depositAmount) ?? null,
|
|
29
|
+
stock: e.stock ?? null,
|
|
30
|
+
status: e.status ?? !0
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
} else
|
|
34
|
+
r.value.skuSpecValues = [
|
|
35
|
+
{
|
|
36
|
+
salePrice: null,
|
|
37
|
+
costPrice: null,
|
|
38
|
+
marketPrice: null,
|
|
39
|
+
pointsDeduct: null,
|
|
40
|
+
earnestAmount: null,
|
|
41
|
+
depositAmount: null,
|
|
42
|
+
stock: null,
|
|
43
|
+
status: !0
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
const a = N({
|
|
47
|
+
salePrice: [
|
|
48
|
+
{
|
|
49
|
+
required: !0,
|
|
50
|
+
message: n("goodsSpu.salePriceRequired"),
|
|
51
|
+
trigger: "blur"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
costPrice: [
|
|
55
|
+
{
|
|
56
|
+
required: !0,
|
|
57
|
+
message: n("goodsSpu.costPriceRequired"),
|
|
58
|
+
trigger: "blur"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
marketPrice: [
|
|
62
|
+
{
|
|
63
|
+
required: !0,
|
|
64
|
+
message: n("goodsSpu.marketPriceRequired"),
|
|
65
|
+
trigger: "blur"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
pointsDeduct: [
|
|
69
|
+
{
|
|
70
|
+
required: !0,
|
|
71
|
+
message: n("goodsSpu.pointsDeductRequired"),
|
|
72
|
+
trigger: "blur"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
earnestAmount: [
|
|
76
|
+
{
|
|
77
|
+
required: !0,
|
|
78
|
+
message: n("goodsSpu.earnestAmountRequired"),
|
|
79
|
+
trigger: "blur"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
depositAmount: [
|
|
83
|
+
{
|
|
84
|
+
required: !0,
|
|
85
|
+
message: n("goodsSpu.depositAmountRequired"),
|
|
86
|
+
trigger: "blur"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
stock: [
|
|
90
|
+
{ required: !0, message: n("goodsSpu.stockRequired"), trigger: "blur" }
|
|
91
|
+
]
|
|
92
|
+
}), P = O();
|
|
93
|
+
return E({
|
|
94
|
+
formRef: () => P.value
|
|
95
|
+
}), (e, J) => {
|
|
96
|
+
const i = c("el-input-number"), d = c("el-form-item"), p = c("el-table-column"), w = c("el-switch"), y = c("el-table"), T = c("el-form");
|
|
97
|
+
return g(), _(T, {
|
|
98
|
+
ref_key: "formRef",
|
|
99
|
+
ref: P,
|
|
100
|
+
model: r.value,
|
|
101
|
+
rules: a,
|
|
102
|
+
class: "w-full"
|
|
103
|
+
}, {
|
|
104
|
+
default: o(() => {
|
|
105
|
+
var b;
|
|
106
|
+
return [
|
|
107
|
+
s(y, {
|
|
108
|
+
data: (b = r.value) == null ? void 0 : b.skuSpecValues,
|
|
109
|
+
border: "",
|
|
110
|
+
class: "w-full"
|
|
111
|
+
}, {
|
|
112
|
+
default: o(() => {
|
|
113
|
+
var R, U, D;
|
|
114
|
+
return [
|
|
115
|
+
s(p, {
|
|
116
|
+
prop: "salePrice",
|
|
117
|
+
"min-width": "150"
|
|
118
|
+
}, {
|
|
119
|
+
header: o(() => [
|
|
120
|
+
m("span", G, f(e.$t("goodsSpu.salePrice")), 1)
|
|
121
|
+
]),
|
|
122
|
+
default: o(({ row: l, $index: t }) => [
|
|
123
|
+
s(d, {
|
|
124
|
+
prop: "skuSpecValues." + t + ".salePrice",
|
|
125
|
+
rules: a.salePrice
|
|
126
|
+
}, {
|
|
127
|
+
default: o(() => [
|
|
128
|
+
s(i, {
|
|
129
|
+
modelValue: l.salePrice,
|
|
130
|
+
"onUpdate:modelValue": (u) => l.salePrice = u,
|
|
131
|
+
precision: 2,
|
|
132
|
+
step: 0.01,
|
|
133
|
+
min: 0.01,
|
|
134
|
+
placeholder: e.$t("goodsSpu.salePriceRequired"),
|
|
135
|
+
class: "w-full",
|
|
136
|
+
controls: !1
|
|
137
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
138
|
+
]),
|
|
139
|
+
_: 2
|
|
140
|
+
}, 1032, ["prop", "rules"])
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
}),
|
|
144
|
+
s(p, {
|
|
145
|
+
label: e.$t("goodsSpu.costPrice"),
|
|
146
|
+
prop: "costPrice",
|
|
147
|
+
"min-width": "150"
|
|
148
|
+
}, {
|
|
149
|
+
default: o(({ row: l, $index: t }) => [
|
|
150
|
+
s(d, {
|
|
151
|
+
prop: "skuSpecValues." + t + ".costPrice",
|
|
152
|
+
rules: a.costPrice
|
|
153
|
+
}, {
|
|
154
|
+
default: o(() => [
|
|
155
|
+
s(i, {
|
|
156
|
+
modelValue: l.costPrice,
|
|
157
|
+
"onUpdate:modelValue": (u) => l.costPrice = u,
|
|
158
|
+
precision: 2,
|
|
159
|
+
step: 0.1,
|
|
160
|
+
min: 0.01,
|
|
161
|
+
max: l.salePrice,
|
|
162
|
+
placeholder: e.$t("goodsSpu.costPriceRequired"),
|
|
163
|
+
class: "w-full",
|
|
164
|
+
controls: !1
|
|
165
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "max", "placeholder"])
|
|
166
|
+
]),
|
|
167
|
+
_: 2
|
|
168
|
+
}, 1032, ["prop", "rules"])
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 8, ["label"]),
|
|
172
|
+
s(p, {
|
|
173
|
+
label: e.$t("goodsSpu.marketPrice"),
|
|
174
|
+
prop: "marketPrice",
|
|
175
|
+
"min-width": "150"
|
|
176
|
+
}, {
|
|
177
|
+
default: o(({ row: l, $index: t }) => [
|
|
178
|
+
s(d, {
|
|
179
|
+
prop: "skuSpecValues." + t + ".marketPrice",
|
|
180
|
+
rules: a.marketPrice
|
|
181
|
+
}, {
|
|
182
|
+
default: o(() => [
|
|
183
|
+
s(i, {
|
|
184
|
+
modelValue: l.marketPrice,
|
|
185
|
+
"onUpdate:modelValue": (u) => l.marketPrice = u,
|
|
186
|
+
precision: 2,
|
|
187
|
+
step: 0.01,
|
|
188
|
+
min: l.salePrice || 0.01,
|
|
189
|
+
placeholder: e.$t("goodsSpu.marketPriceRequired"),
|
|
190
|
+
class: "w-full",
|
|
191
|
+
controls: !1
|
|
192
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "placeholder"])
|
|
193
|
+
]),
|
|
194
|
+
_: 2
|
|
195
|
+
}, 1032, ["prop", "rules"])
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["label"]),
|
|
199
|
+
((R = r.value) == null ? void 0 : R.isPointsDeduct) === !0 ? (g(), _(p, {
|
|
200
|
+
key: 0,
|
|
201
|
+
prop: "pointsDeduct",
|
|
202
|
+
width: "180"
|
|
203
|
+
}, {
|
|
204
|
+
header: o(() => [
|
|
205
|
+
m("span", Y, f(e.$t("goodsSpu.pointsDeduct")), 1)
|
|
206
|
+
]),
|
|
207
|
+
default: o(({ row: l, $index: t }) => [
|
|
208
|
+
s(d, {
|
|
209
|
+
prop: "skuSpecValues." + t + ".pointsDeduct",
|
|
210
|
+
rules: a.pointsDeduct
|
|
211
|
+
}, {
|
|
212
|
+
default: o(() => [
|
|
213
|
+
s(i, {
|
|
214
|
+
modelValue: l.pointsDeduct,
|
|
215
|
+
"onUpdate:modelValue": (u) => l.pointsDeduct = u,
|
|
216
|
+
step: 1,
|
|
217
|
+
min: 0,
|
|
218
|
+
precision: 0,
|
|
219
|
+
placeholder: e.$t("goodsSpu.pointsDeductRequired"),
|
|
220
|
+
class: "w-full",
|
|
221
|
+
controls: !1
|
|
222
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
223
|
+
]),
|
|
224
|
+
_: 2
|
|
225
|
+
}, 1032, ["prop", "rules"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})) : V("", !0),
|
|
229
|
+
((U = r.value) == null ? void 0 : U.presaleType) === $(v).GOODS_PRESALE_TYPE_VALUES.DEPOSIT ? (g(), _(p, {
|
|
230
|
+
key: 1,
|
|
231
|
+
prop: "earnestAmount",
|
|
232
|
+
width: "150"
|
|
233
|
+
}, {
|
|
234
|
+
header: o(() => [
|
|
235
|
+
m("span", j, f(e.$t("goodsSpu.earnestAmount")), 1)
|
|
236
|
+
]),
|
|
237
|
+
default: o(({ row: l, $index: t }) => [
|
|
238
|
+
s(d, {
|
|
239
|
+
prop: "skuSpecValues." + t + ".earnestAmount",
|
|
240
|
+
rules: a.earnestAmount
|
|
241
|
+
}, {
|
|
242
|
+
default: o(() => [
|
|
243
|
+
s(i, {
|
|
244
|
+
modelValue: l.earnestAmount,
|
|
245
|
+
"onUpdate:modelValue": (u) => l.earnestAmount = u,
|
|
246
|
+
precision: 2,
|
|
247
|
+
step: 0.01,
|
|
248
|
+
min: 0.01,
|
|
249
|
+
placeholder: e.$t("goodsSpu.earnestAmountRequired"),
|
|
250
|
+
class: "w-full",
|
|
251
|
+
controls: !1
|
|
252
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
253
|
+
]),
|
|
254
|
+
_: 2
|
|
255
|
+
}, 1032, ["prop", "rules"])
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
})) : V("", !0),
|
|
259
|
+
((D = r.value) == null ? void 0 : D.presaleType) === $(v).GOODS_PRESALE_TYPE_VALUES.DEPOSIT_RETURN ? (g(), _(p, {
|
|
260
|
+
key: 2,
|
|
261
|
+
prop: "depositAmount",
|
|
262
|
+
width: "150"
|
|
263
|
+
}, {
|
|
264
|
+
header: o(() => [
|
|
265
|
+
m("span", z, f(e.$t("goodsSpu.depositAmount")), 1)
|
|
266
|
+
]),
|
|
267
|
+
default: o(({ row: l, $index: t }) => [
|
|
268
|
+
s(d, {
|
|
269
|
+
prop: "skuSpecValues." + t + ".depositAmount",
|
|
270
|
+
rules: a.depositAmount
|
|
271
|
+
}, {
|
|
272
|
+
default: o(() => [
|
|
273
|
+
s(i, {
|
|
274
|
+
modelValue: l.depositAmount,
|
|
275
|
+
"onUpdate:modelValue": (u) => l.depositAmount = u,
|
|
276
|
+
precision: 2,
|
|
277
|
+
step: 0.01,
|
|
278
|
+
min: 0.01,
|
|
279
|
+
placeholder: e.$t("goodsSpu.depositAmountRequired"),
|
|
280
|
+
class: "w-full",
|
|
281
|
+
controls: !1
|
|
282
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
283
|
+
]),
|
|
284
|
+
_: 2
|
|
285
|
+
}, 1032, ["prop", "rules"])
|
|
286
|
+
]),
|
|
287
|
+
_: 1
|
|
288
|
+
})) : V("", !0),
|
|
289
|
+
s(p, {
|
|
290
|
+
prop: "stock",
|
|
291
|
+
width: "120"
|
|
292
|
+
}, {
|
|
293
|
+
header: o(() => [
|
|
294
|
+
m("span", F, f(e.$t("goodsSpu.stock")), 1)
|
|
295
|
+
]),
|
|
296
|
+
default: o(({ row: l, $index: t }) => [
|
|
297
|
+
s(d, {
|
|
298
|
+
prop: "skuSpecValues." + t + ".stock",
|
|
299
|
+
rules: a.stock
|
|
300
|
+
}, {
|
|
301
|
+
default: o(() => [
|
|
302
|
+
s(i, {
|
|
303
|
+
modelValue: l.stock,
|
|
304
|
+
"onUpdate:modelValue": (u) => l.stock = u,
|
|
305
|
+
step: 1,
|
|
306
|
+
min: 0,
|
|
307
|
+
precision: 0,
|
|
308
|
+
placeholder: e.$t("goodsSpu.stockRequired"),
|
|
309
|
+
class: "w-full",
|
|
310
|
+
controls: !1
|
|
311
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
312
|
+
]),
|
|
313
|
+
_: 2
|
|
314
|
+
}, 1032, ["prop", "rules"])
|
|
315
|
+
]),
|
|
316
|
+
_: 1
|
|
317
|
+
}),
|
|
318
|
+
s(p, {
|
|
319
|
+
label: e.$t("goodsSpu.status"),
|
|
320
|
+
prop: "status",
|
|
321
|
+
width: "100"
|
|
322
|
+
}, {
|
|
323
|
+
default: o(({ row: l, $index: t }) => [
|
|
324
|
+
s(d, {
|
|
325
|
+
prop: "skuSpecValues." + t + ".status"
|
|
326
|
+
}, {
|
|
327
|
+
default: o(() => [
|
|
328
|
+
s(w, {
|
|
329
|
+
modelValue: l.status,
|
|
330
|
+
"onUpdate:modelValue": (u) => l.status = u
|
|
331
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
332
|
+
]),
|
|
333
|
+
_: 2
|
|
334
|
+
}, 1032, ["prop"])
|
|
335
|
+
]),
|
|
336
|
+
_: 1
|
|
337
|
+
}, 8, ["label"])
|
|
338
|
+
];
|
|
339
|
+
}),
|
|
340
|
+
_: 1
|
|
341
|
+
}, 8, ["data"])
|
|
342
|
+
];
|
|
343
|
+
}),
|
|
344
|
+
_: 1
|
|
345
|
+
}, 8, ["model", "rules"]);
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
}), Z = /* @__PURE__ */ B(H, [["__scopeId", "data-v-4a04d661"]]);
|
|
349
|
+
export {
|
|
350
|
+
Z as default
|
|
351
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
var e = Object.defineProperty;
|
|
2
|
+
var O = (T, S, P) => S in T ? e(T, S, { enumerable: !0, configurable: !0, writable: !0, value: P }) : T[S] = P;
|
|
3
|
+
var E = (T, S, P) => O(T, typeof S != "symbol" ? S + "" : S, P);
|
|
4
|
+
import { ref as A, reactive as L } from "vue";
|
|
5
|
+
class _ {
|
|
6
|
+
}
|
|
7
|
+
// 模块
|
|
8
|
+
E(_, "MODULE_GOODS", "goods"), // 启用禁用
|
|
9
|
+
E(_, "SHELF_VALUES", A([
|
|
10
|
+
{ key: !0, value: "上架" },
|
|
11
|
+
{ key: !1, value: "下架" }
|
|
12
|
+
])), // 运费类型
|
|
13
|
+
E(_, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 运费类型.
|
|
14
|
+
E(_, "FREIGHT_TYPE_VALUES", {
|
|
15
|
+
FREIGHT_FREE: "FREIGHT_FREE",
|
|
16
|
+
// 包邮
|
|
17
|
+
FREIGHT_FIXED: "FREIGHT_FIXED",
|
|
18
|
+
// 固定邮费
|
|
19
|
+
FREIGHT_TEMPLATE: "FREIGHT_TEMPLATE"
|
|
20
|
+
// 运费模板
|
|
21
|
+
}), // 保障服务
|
|
22
|
+
E(_, "DICT_GOODS_ENSURE", "goods_ensure"), // 商品查询枚举
|
|
23
|
+
E(_, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), E(_, "GOODS_SPU_VALUES", A([
|
|
24
|
+
{ key: "goods_all", value: "全部商品" },
|
|
25
|
+
{ key: "goods_sale", value: "已上架" },
|
|
26
|
+
{ key: "goods_shelf", value: "待上架" },
|
|
27
|
+
{ key: "goods_audit", value: "审核中" },
|
|
28
|
+
{ key: "goods_notpass", value: "审核驳回" }
|
|
29
|
+
])), // 审核状态
|
|
30
|
+
E(_, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
|
|
31
|
+
E(_, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), E(_, "APPROVAL_PASS", "APPROVAL_PASS"), E(_, "APPROVALING", "APPROVALING"), // 启用禁用
|
|
32
|
+
E(_, "ENABLE_VALUES", A([
|
|
33
|
+
{ key: "true", value: "启用" },
|
|
34
|
+
{ key: "false", value: "禁用" }
|
|
35
|
+
])), // 商品类型
|
|
36
|
+
E(_, "GOODS_TYPE", {
|
|
37
|
+
NORMAL: "normal",
|
|
38
|
+
GROUP: "group"
|
|
39
|
+
}), // 商品品类
|
|
40
|
+
E(_, "GOODS_SUP_CLASS", "xyvcard.goods.protobuf.SupClass"), // 商品品类.
|
|
41
|
+
E(_, "GOODS_SUP_CLASS_VALUES", {
|
|
42
|
+
GOODS_TYPE_REAL: "GOODS_TYPE_REAL",
|
|
43
|
+
// 实物类商品
|
|
44
|
+
GOODS_TYPE_VIRTUAL: "GOODS_TYPE_VIRTUAL",
|
|
45
|
+
// 虚拟类商品
|
|
46
|
+
GOODS_TYPE_LIFE: "GOODS_TYPE_LIFE"
|
|
47
|
+
// 生活服务类
|
|
48
|
+
}), // 是或否
|
|
49
|
+
E(_, "YES_OR_NO", A([
|
|
50
|
+
{ key: !0, value: "是" },
|
|
51
|
+
{ key: !1, value: "否" }
|
|
52
|
+
])), // tab栏
|
|
53
|
+
E(_, "TAB_ENUM", L([
|
|
54
|
+
{ key: "GoodsBaseForm", value: "商品基本信息" },
|
|
55
|
+
{ key: "GoodsSpecForm", value: "规格与定价" },
|
|
56
|
+
{ key: "GoodsLogisticsForm", value: "物流设置" },
|
|
57
|
+
{ key: "GoodsProfitForm", value: "渠道分销" }
|
|
58
|
+
])), // 预售类型
|
|
59
|
+
E(_, "GOODS_PRESALE_TYPE", "xyvcard.goods.protobuf.PresaleType"), // 预售类型.
|
|
60
|
+
E(_, "GOODS_PRESALE_TYPE_VALUES", {
|
|
61
|
+
NONE: "NONE",
|
|
62
|
+
// 无预售
|
|
63
|
+
DEPOSIT: "DEPOSIT",
|
|
64
|
+
// 定金预售(不退)
|
|
65
|
+
DEPOSIT_RETURN: "DEPOSIT_RETURN"
|
|
66
|
+
// 订金预售(可退)
|
|
67
|
+
}), // 尾款支付期限
|
|
68
|
+
E(_, "BALANCE_PAYMENT_TYPE", "xyvcard.goods.protobuf.BalancePaymentType"), // 尾款支付期限.
|
|
69
|
+
E(_, "BALANCE_PAYMENT_TYPE_VALUES", {
|
|
70
|
+
DYNAMIC_DATE: "DYNAMIC_DATE",
|
|
71
|
+
// 动态时间
|
|
72
|
+
FIXED_DATE: "FIXED_DATE"
|
|
73
|
+
// 固定时间
|
|
74
|
+
}), // 规格类型
|
|
75
|
+
E(_, "SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), E(_, "SPEC_TYPE_VALUES", {
|
|
76
|
+
UNIFIED_SPEC: "UNIFIED_SPEC",
|
|
77
|
+
// 统一规格
|
|
78
|
+
MULTI_SPEC: "MULTI_SPEC"
|
|
79
|
+
// 多规格
|
|
80
|
+
}), // 发货模式
|
|
81
|
+
E(_, "DELIVERY_TYPE", "xyvcard.goods.protobuf.DeliveryType"), // 发货模式.
|
|
82
|
+
E(_, "DELIVERY_TYPE_VALUES", {
|
|
83
|
+
SPOT_ONLY: "SPOT_ONLY",
|
|
84
|
+
// 现货发售
|
|
85
|
+
PRESALE: "PRESALE"
|
|
86
|
+
// 预售模式
|
|
87
|
+
}), // 发货模式(现货发售:24小时内、48小时内、72小时内).
|
|
88
|
+
E(_, "DELIVERY_SPOT_TYPE", "xyvcard.goods.protobuf.DeliverySpotType"), // 发货模式(现货发售:24小时内、48小时内、72小时内).
|
|
89
|
+
E(_, "DELIVERY_SPOT_TYPE_VALUES", {
|
|
90
|
+
SPOT_24: "SPOT_24",
|
|
91
|
+
// 24小时内
|
|
92
|
+
SPOT_48: "SPOT_48",
|
|
93
|
+
// 48小时内
|
|
94
|
+
SPOT_72: "SPOT_72"
|
|
95
|
+
// 72小时内
|
|
96
|
+
}), // 核销有效期限.
|
|
97
|
+
E(_, "VALIDITY_TYPE", "xyvcard.goods.protobuf.ValidityType"), // 核销有效期限.
|
|
98
|
+
E(_, "VALIDITY_TYPE_VALUES", {
|
|
99
|
+
DYNAMIC_TIME: "DYNAMIC_TIME",
|
|
100
|
+
// 动态时间
|
|
101
|
+
FIXED_TIME: "FIXED_TIME",
|
|
102
|
+
// 固定时间
|
|
103
|
+
UNLIMITED_TIME: "UNLIMITED_TIME"
|
|
104
|
+
// 无限期
|
|
105
|
+
}), // 可用门店.
|
|
106
|
+
E(_, "USE_BRANCH", "xyvcard.goods.protobuf.UseBranch"), // 可用门店.
|
|
107
|
+
E(_, "USE_BRANCH_VALUES", {
|
|
108
|
+
USE_BRANCH_ALL: "USE_BRANCH_ALL",
|
|
109
|
+
// 全部门店
|
|
110
|
+
USE_BRANCH_PART: "USE_BRANCH_PART"
|
|
111
|
+
// 部分门店
|
|
112
|
+
});
|
|
113
|
+
export {
|
|
114
|
+
_ as C
|
|
115
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineComponent as g, reactive as C, ref as h, computed as A, resolveComponent as d, createElementBlock as c, openBlock as l, createVNode as I, unref as n, isRef as T, withCtx as U, createBlock as p, Fragment as E, renderList as M, resolveDynamicComponent as N } from "vue";
|
|
2
|
+
import { useRoute as x, useRouter as F } from "vue-router";
|
|
3
|
+
import { C as a } from "./constant-sVd2JbJt.mjs";
|
|
4
|
+
import { a as S } from "./index-xQgC-8Gd.mjs";
|
|
5
|
+
import { _ as V } from "./GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs";
|
|
6
|
+
import { _ as G } from "./GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs";
|
|
7
|
+
import { _ as R } from "./GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs";
|
|
8
|
+
import { _ as $ } from "./GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs";
|
|
9
|
+
import { routerUtil as j } from "jmash-core";
|
|
10
|
+
const q = { class: "app-container" }, W = /* @__PURE__ */ g({
|
|
11
|
+
__name: "edit",
|
|
12
|
+
setup(w) {
|
|
13
|
+
const s = C({}), m = x(), _ = F();
|
|
14
|
+
function u() {
|
|
15
|
+
m.query.spuId && S.findById({ spuId: m.query.spuId }).then(({ data: o }) => {
|
|
16
|
+
Object.assign(s, o);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
u();
|
|
20
|
+
const e = h(a.TAB_ENUM[0].key), f = {
|
|
21
|
+
GoodsBaseForm: V,
|
|
22
|
+
GoodsSpecForm: G,
|
|
23
|
+
GoodsLogisticsForm: R,
|
|
24
|
+
GoodsProfitForm: $
|
|
25
|
+
}, b = A(
|
|
26
|
+
() => f[e.value]
|
|
27
|
+
);
|
|
28
|
+
function v(o, t) {
|
|
29
|
+
e.value = o.props.name;
|
|
30
|
+
}
|
|
31
|
+
function k(o) {
|
|
32
|
+
Object.assign(s, o);
|
|
33
|
+
const t = a.TAB_ENUM.findIndex(
|
|
34
|
+
(i) => i.key === e.value
|
|
35
|
+
);
|
|
36
|
+
t === a.TAB_ENUM.length - 1 && j.closeTagView(m.fullPath, _, !1), e.value = a.TAB_ENUM[t + 1].key;
|
|
37
|
+
}
|
|
38
|
+
return (o, t) => {
|
|
39
|
+
const i = d("el-tab-pane"), y = d("el-tabs");
|
|
40
|
+
return l(), c("div", q, [
|
|
41
|
+
I(y, {
|
|
42
|
+
type: "border-card",
|
|
43
|
+
modelValue: n(e),
|
|
44
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => T(e) ? e.value = r : null),
|
|
45
|
+
class: "demo-tabs",
|
|
46
|
+
onTabClick: v
|
|
47
|
+
}, {
|
|
48
|
+
default: U(() => [
|
|
49
|
+
(l(!0), c(E, null, M(n(a).TAB_ENUM, (r, B) => (l(), p(i, {
|
|
50
|
+
key: B,
|
|
51
|
+
label: r.value,
|
|
52
|
+
name: r.key,
|
|
53
|
+
disabled: !n(s).spuId
|
|
54
|
+
}, null, 8, ["label", "name", "disabled"]))), 128)),
|
|
55
|
+
(l(), p(N(n(b)), {
|
|
56
|
+
key: n(s).spuId,
|
|
57
|
+
"goods-spu-model": n(s),
|
|
58
|
+
onSubmit: k,
|
|
59
|
+
onRefresh: u
|
|
60
|
+
}, null, 40, ["goods-spu-model"]))
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 8, ["modelValue"])
|
|
64
|
+
]);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
export {
|
|
69
|
+
W as default
|
|
70
|
+
};
|
|
@@ -4,10 +4,11 @@ import { ElMessage as U } from "element-plus";
|
|
|
4
4
|
import { useRouter as Y, useRoute as J } from "vue-router";
|
|
5
5
|
import { routerUtil as w } from "jmash-core";
|
|
6
6
|
import { useI18n as K } from "vue-i18n";
|
|
7
|
-
import { D as m
|
|
8
|
-
import { a as b } from "./index-
|
|
9
|
-
import
|
|
10
|
-
|
|
7
|
+
import { D as m } from "./index-C61SQFSx.mjs";
|
|
8
|
+
import { a as b } from "./index-xQgC-8Gd.mjs";
|
|
9
|
+
import Q from "./skuForm-C7w9YIDe.mjs";
|
|
10
|
+
import { C as W } from "./constant-sVd2JbJt.mjs";
|
|
11
|
+
const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" }, me = /* @__PURE__ */ z({
|
|
11
12
|
__name: "edit",
|
|
12
13
|
setup(le) {
|
|
13
14
|
const { t: i } = K(), y = Y(), g = J(), V = P();
|
|
@@ -19,7 +20,7 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
19
20
|
freightType: m.freightTypeEnum.values[0].key,
|
|
20
21
|
freightAmount: 0,
|
|
21
22
|
shelf: m.shelfDict.values[0].key,
|
|
22
|
-
goodsType:
|
|
23
|
+
goodsType: W.GOODS_TYPE.GROUP
|
|
23
24
|
});
|
|
24
25
|
const C = (t, l, n) => {
|
|
25
26
|
var d;
|
|
@@ -392,7 +393,7 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
392
393
|
l[14] || (l[14] = f("div", { class: "title-content" }, "套装商品", -1)),
|
|
393
394
|
e(_, null, {
|
|
394
395
|
default: s(() => [
|
|
395
|
-
!r(g).query.spuId || S.value ? (h(), k(
|
|
396
|
+
!r(g).query.spuId || S.value ? (h(), k(Q, {
|
|
396
397
|
key: 0,
|
|
397
398
|
form: r(o),
|
|
398
399
|
onGetGoodsSku: T
|
|
@@ -430,5 +431,5 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
430
431
|
}
|
|
431
432
|
});
|
|
432
433
|
export {
|
|
433
|
-
|
|
434
|
+
me as default
|
|
434
435
|
};
|