xyvcard-goods 0.0.26 → 0.0.28
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-Xn_nZjI6.mjs → edit-CYekSxUa.mjs} +3 -3
- package/dist/{edit-C5HGHhkb.mjs → edit-C_XCVJwM.mjs} +1 -1
- package/dist/{edit-DrbsKmwh.mjs → edit-CquWa3hI.mjs} +85 -82
- package/dist/{edit-Cb0aaC0q.mjs → edit-CuZnQH9w.mjs} +1 -1
- package/dist/{edit-eAHVEi0b.mjs → edit-D1FAN3TA.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DBG-5gI4.mjs → edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs} +2 -2
- package/dist/{goodsList-CDQZGSh2.mjs → goodsList-DZlaY5k0.mjs} +1 -1
- package/dist/{goodsList-CKCG7ntZ.mjs → goodsList-wpPEPZqs.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-B6P3fso6.mjs → goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs} +2 -2
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-DiRkiNJk.mjs → goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs} +2 -2
- package/dist/{index-utNcRJx7.mjs → index-B27GuULR.mjs} +4 -4
- package/dist/{index-Bz206T2E.mjs → index-B3vvD7JH.mjs} +3 -3
- package/dist/{index-CMkWXcWe.mjs → index-COXyxAor.mjs} +2 -2
- package/dist/{index-CSeu2TZT.mjs → index-DFxg3rmo.mjs} +2 -2
- package/dist/{index-B8IdlGiz.mjs → index-Dd1dJx7i.mjs} +3 -3
- package/dist/{index-CDhEKnzj.mjs → index-Dy5JznUz.mjs} +2 -2
- package/dist/{index-DSbkvzGV.mjs → index-nCeCw43N.mjs} +3 -3
- package/dist/{index-D70qzGQF.mjs → index-wH3Sgvus.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{info-CX3zF0ZW.mjs → info-0Pf9u0GJ.mjs} +3 -3
- package/dist/info-NBnTd9fK.mjs +349 -0
- package/dist/{skuForm-DUR7U2Kn.mjs → skuForm-BsvKk2kD.mjs} +78 -77
- package/dist/{skuForm-B_8WQCr3.mjs → skuForm-CU0a2ltJ.mjs} +2 -2
- package/dist/{skuTable-D4LGL7B5.mjs → skuTable-DgDGWX-n.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +4 -0
- package/package.json +1 -1
- package/dist/info-Dlte8Sn0.mjs +0 -325
|
@@ -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-COXyxAor.mjs";
|
|
8
|
+
import { a as _ } from "./index-B27GuULR.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-CU0a2ltJ.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 p } from "./index-
|
|
4
|
+
import { b as p } from "./index-B27GuULR.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",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { _ as z } from "./ImageUpload-Dk6GY6PA.mjs";
|
|
2
|
-
import { defineComponent as O, ref as R, reactive as I, resolveComponent as p, openBlock as h, createElementBlock as
|
|
3
|
-
import { ElMessage as
|
|
2
|
+
import { defineComponent as O, ref as R, reactive as I, resolveComponent as p, openBlock as h, createElementBlock as P, createElementVNode as f, createVNode as e, unref as t, withCtx as r, Fragment as x, renderList as M, createBlock as v, createTextVNode as U, toDisplayString as j, createCommentVNode as H } from "vue";
|
|
3
|
+
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-
|
|
10
|
-
const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" },
|
|
7
|
+
import { D as m, C as Q } from "./index-COXyxAor.mjs";
|
|
8
|
+
import { a as b } from "./index-B27GuULR.mjs";
|
|
9
|
+
import W from "./skuForm-BsvKk2kD.mjs";
|
|
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) {
|
|
13
13
|
const { t: n } = K(), y = Y(), g = J(), V = R();
|
|
@@ -29,7 +29,7 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
29
29
|
return i(new Error(n("goodsSpu.imageListsErrors")));
|
|
30
30
|
i();
|
|
31
31
|
} else return i(new Error(n("goodsSpu.picUrlsRequired")));
|
|
32
|
-
},
|
|
32
|
+
}, N = I({
|
|
33
33
|
spuName: [
|
|
34
34
|
{
|
|
35
35
|
required: !0,
|
|
@@ -93,8 +93,10 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
93
93
|
}
|
|
94
94
|
]
|
|
95
95
|
}), S = R(!1);
|
|
96
|
-
function
|
|
96
|
+
function T(s) {
|
|
97
97
|
o.groupInfos = s;
|
|
98
|
+
const l = s.reduce((i, a) => i + (a.saleNum || 0) * (a.salePrice || 0), 0);
|
|
99
|
+
o.minPrice = l;
|
|
98
100
|
}
|
|
99
101
|
g.query.spuId && b.findById({ spuId: g.query.spuId }).then(({ data: s }) => {
|
|
100
102
|
Object.assign(o, s), S.value = !0;
|
|
@@ -103,12 +105,12 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
103
105
|
var s;
|
|
104
106
|
await ((s = V.value) == null ? void 0 : s.validate((l) => {
|
|
105
107
|
l && (g.query.spuId ? b.updateList(o).then((i) => {
|
|
106
|
-
i.status === 200 && (
|
|
108
|
+
i.status === 200 && (w({
|
|
107
109
|
message: n("common.submitSuccess"),
|
|
108
110
|
type: "success"
|
|
109
111
|
}), k.closeTagView(g.fullPath, y, !1));
|
|
110
112
|
}) : b.createList(o).then((i) => {
|
|
111
|
-
i.status === 200 && (
|
|
113
|
+
i.status === 200 && (w({
|
|
112
114
|
message: n("common.submitSuccess"),
|
|
113
115
|
type: "success"
|
|
114
116
|
}), k.closeTagView(g.fullPath, y, !1));
|
|
@@ -119,30 +121,30 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
119
121
|
s === "FREIGHT_FREE" && (o.freightAmount = 0);
|
|
120
122
|
}
|
|
121
123
|
return (s, l) => {
|
|
122
|
-
const i = p("el-input"), a = p("el-form-item"), d = p("el-col"), A = p("el-tree-select"),
|
|
123
|
-
return h(),
|
|
124
|
+
const i = p("el-input"), a = p("el-form-item"), d = p("el-col"), A = p("el-tree-select"), c = p("el-input-number"), q = p("jmash-enum-radio"), D = z, F = p("el-checkbox"), L = p("el-checkbox-group"), _ = p("el-row"), B = p("el-button"), G = p("el-form");
|
|
125
|
+
return h(), P("div", X, [
|
|
124
126
|
f("div", Z, [
|
|
125
127
|
e(G, {
|
|
126
128
|
ref_key: "goodsSpuFormRef",
|
|
127
129
|
ref: V,
|
|
128
130
|
model: t(o),
|
|
129
131
|
"label-width": "120px",
|
|
130
|
-
rules:
|
|
132
|
+
rules: N
|
|
131
133
|
}, {
|
|
132
|
-
default:
|
|
134
|
+
default: r(() => [
|
|
133
135
|
l[13] || (l[13] = f("div", { class: "title-content" }, "基本信息", -1)),
|
|
134
136
|
e(_, null, {
|
|
135
|
-
default:
|
|
137
|
+
default: r(() => [
|
|
136
138
|
e(d, { span: 12 }, {
|
|
137
|
-
default:
|
|
139
|
+
default: r(() => [
|
|
138
140
|
e(a, {
|
|
139
141
|
label: s.$t("goodsSpu.spuName"),
|
|
140
142
|
prop: "spuName"
|
|
141
143
|
}, {
|
|
142
|
-
default:
|
|
144
|
+
default: r(() => [
|
|
143
145
|
e(i, {
|
|
144
146
|
modelValue: t(o).spuName,
|
|
145
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
147
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t(o).spuName = u),
|
|
146
148
|
placeholder: s.$t("goodsSpu.spuNameRequired"),
|
|
147
149
|
maxlength: "60",
|
|
148
150
|
"show-word-limit": "",
|
|
@@ -155,15 +157,15 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
155
157
|
_: 1
|
|
156
158
|
}),
|
|
157
159
|
e(d, { span: 12 }, {
|
|
158
|
-
default:
|
|
160
|
+
default: r(() => [
|
|
159
161
|
e(a, {
|
|
160
162
|
label: s.$t("goodsSpu.spuCode"),
|
|
161
163
|
prop: "spuCode"
|
|
162
164
|
}, {
|
|
163
|
-
default:
|
|
165
|
+
default: r(() => [
|
|
164
166
|
e(i, {
|
|
165
167
|
modelValue: t(o).spuCode,
|
|
166
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
168
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => t(o).spuCode = u),
|
|
167
169
|
placeholder: s.$t("goodsSpu.spuCodeRequired"),
|
|
168
170
|
maxlength: "15",
|
|
169
171
|
"show-word-limit": "",
|
|
@@ -176,15 +178,15 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
176
178
|
_: 1
|
|
177
179
|
}),
|
|
178
180
|
e(d, { span: 12 }, {
|
|
179
|
-
default:
|
|
181
|
+
default: r(() => [
|
|
180
182
|
e(a, {
|
|
181
183
|
label: s.$t("goodsSpu.categoryId"),
|
|
182
184
|
prop: "categoryIds"
|
|
183
185
|
}, {
|
|
184
|
-
default:
|
|
186
|
+
default: r(() => [
|
|
185
187
|
e(A, {
|
|
186
188
|
modelValue: t(o).categoryIds,
|
|
187
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
189
|
+
"onUpdate:modelValue": l[2] || (l[2] = (u) => t(o).categoryIds = u),
|
|
188
190
|
data: t(m).goodsCategoryListBizLayDict.values,
|
|
189
191
|
multiple: "",
|
|
190
192
|
"render-after-expand": !1,
|
|
@@ -199,15 +201,37 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
199
201
|
_: 1
|
|
200
202
|
}),
|
|
201
203
|
e(d, { span: 12 }, {
|
|
202
|
-
default:
|
|
204
|
+
default: r(() => [
|
|
205
|
+
e(a, {
|
|
206
|
+
label: s.$t("goodsSpu.saleNum"),
|
|
207
|
+
prop: "saleNum"
|
|
208
|
+
}, {
|
|
209
|
+
default: r(() => [
|
|
210
|
+
e(c, {
|
|
211
|
+
modelValue: t(o).saleNum,
|
|
212
|
+
"onUpdate:modelValue": l[3] || (l[3] = (u) => t(o).saleNum = u),
|
|
213
|
+
placeholder: s.$t("goodsSpu.saleNumRequired"),
|
|
214
|
+
class: "w-full",
|
|
215
|
+
min: 0,
|
|
216
|
+
controls: !1,
|
|
217
|
+
precision: 0
|
|
218
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}, 8, ["label"])
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}),
|
|
225
|
+
e(d, { span: 12 }, {
|
|
226
|
+
default: r(() => [
|
|
203
227
|
e(a, {
|
|
204
228
|
label: s.$t("goodsSpu.freightType"),
|
|
205
229
|
prop: "freightType"
|
|
206
230
|
}, {
|
|
207
|
-
default:
|
|
231
|
+
default: r(() => [
|
|
208
232
|
e(q, {
|
|
209
233
|
modelValue: t(o).freightType,
|
|
210
|
-
"onUpdate:modelValue": l[
|
|
234
|
+
"onUpdate:modelValue": l[4] || (l[4] = (u) => t(o).freightType = u),
|
|
211
235
|
data: t(m).freightTypeEnum.values,
|
|
212
236
|
onChange: E
|
|
213
237
|
}, null, 8, ["modelValue", "data"])
|
|
@@ -218,15 +242,15 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
218
242
|
_: 1
|
|
219
243
|
}),
|
|
220
244
|
e(d, { span: 12 }, {
|
|
221
|
-
default:
|
|
245
|
+
default: r(() => [
|
|
222
246
|
e(a, {
|
|
223
247
|
label: s.$t("goodsSpu.freightAmount"),
|
|
224
248
|
prop: "freightAmount"
|
|
225
249
|
}, {
|
|
226
|
-
default:
|
|
250
|
+
default: r(() => [
|
|
227
251
|
e(c, {
|
|
228
252
|
modelValue: t(o).freightAmount,
|
|
229
|
-
"onUpdate:modelValue": l[
|
|
253
|
+
"onUpdate:modelValue": l[5] || (l[5] = (u) => t(o).freightAmount = u),
|
|
230
254
|
readonly: t(o).freightType === "FREIGHT_FREE",
|
|
231
255
|
precision: 2,
|
|
232
256
|
step: 0.1,
|
|
@@ -242,21 +266,22 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
242
266
|
_: 1
|
|
243
267
|
}),
|
|
244
268
|
e(d, { span: 12 }, {
|
|
245
|
-
default:
|
|
269
|
+
default: r(() => [
|
|
246
270
|
e(a, {
|
|
247
271
|
label: s.$t("goodsSpu.minPrice"),
|
|
248
272
|
prop: "minPrice"
|
|
249
273
|
}, {
|
|
250
|
-
default:
|
|
274
|
+
default: r(() => [
|
|
251
275
|
e(c, {
|
|
252
276
|
modelValue: t(o).minPrice,
|
|
253
|
-
"onUpdate:modelValue": l[
|
|
277
|
+
"onUpdate:modelValue": l[6] || (l[6] = (u) => t(o).minPrice = u),
|
|
254
278
|
precision: 2,
|
|
255
279
|
step: 0.1,
|
|
256
280
|
controls: !1,
|
|
257
281
|
min: 0,
|
|
258
282
|
placeholder: s.$t("goodsSpu.minPriceRequired"),
|
|
259
|
-
class: "w-full"
|
|
283
|
+
class: "w-full",
|
|
284
|
+
disabled: ""
|
|
260
285
|
}, null, 8, ["modelValue", "placeholder"])
|
|
261
286
|
]),
|
|
262
287
|
_: 1
|
|
@@ -265,15 +290,15 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
265
290
|
_: 1
|
|
266
291
|
}),
|
|
267
292
|
e(d, { span: 12 }, {
|
|
268
|
-
default:
|
|
293
|
+
default: r(() => [
|
|
269
294
|
e(a, {
|
|
270
295
|
label: s.$t("goodsSpu.maxPrice"),
|
|
271
296
|
prop: "maxPrice"
|
|
272
297
|
}, {
|
|
273
|
-
default:
|
|
298
|
+
default: r(() => [
|
|
274
299
|
e(c, {
|
|
275
300
|
modelValue: t(o).maxPrice,
|
|
276
|
-
"onUpdate:modelValue": l[
|
|
301
|
+
"onUpdate:modelValue": l[7] || (l[7] = (u) => t(o).maxPrice = u),
|
|
277
302
|
precision: 2,
|
|
278
303
|
step: 0.1,
|
|
279
304
|
controls: !1,
|
|
@@ -288,16 +313,16 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
288
313
|
_: 1
|
|
289
314
|
}),
|
|
290
315
|
e(d, { span: 24 }, {
|
|
291
|
-
default:
|
|
316
|
+
default: r(() => [
|
|
292
317
|
e(a, {
|
|
293
318
|
label: s.$t("goodsSpu.picUrls"),
|
|
294
319
|
prop: "picUrls"
|
|
295
320
|
}, {
|
|
296
|
-
default:
|
|
321
|
+
default: r(() => [
|
|
297
322
|
f("div", ee, [
|
|
298
323
|
e(D, {
|
|
299
324
|
modelValue: t(o).picUrls,
|
|
300
|
-
"onUpdate:modelValue": l[
|
|
325
|
+
"onUpdate:modelValue": l[8] || (l[8] = (u) => t(o).picUrls = u),
|
|
301
326
|
limit: 6,
|
|
302
327
|
"list-type": "picture-card"
|
|
303
328
|
}, null, 8, ["modelValue"]),
|
|
@@ -310,15 +335,15 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
310
335
|
_: 1
|
|
311
336
|
}),
|
|
312
337
|
e(d, { span: 12 }, {
|
|
313
|
-
default:
|
|
338
|
+
default: r(() => [
|
|
314
339
|
e(a, {
|
|
315
340
|
label: s.$t("goodsSpu.shelf"),
|
|
316
341
|
prop: "shelf"
|
|
317
342
|
}, {
|
|
318
|
-
default:
|
|
343
|
+
default: r(() => [
|
|
319
344
|
e(q, {
|
|
320
345
|
modelValue: t(o).shelf,
|
|
321
|
-
"onUpdate:modelValue": l[
|
|
346
|
+
"onUpdate:modelValue": l[9] || (l[9] = (u) => t(o).shelf = u),
|
|
322
347
|
data: t(m).shelfDict.values
|
|
323
348
|
}, null, 8, ["modelValue", "data"])
|
|
324
349
|
]),
|
|
@@ -328,46 +353,24 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
328
353
|
_: 1
|
|
329
354
|
}),
|
|
330
355
|
e(d, { span: 12 }, {
|
|
331
|
-
default:
|
|
332
|
-
e(a, {
|
|
333
|
-
label: s.$t("goodsSpu.saleNum"),
|
|
334
|
-
prop: "saleNum"
|
|
335
|
-
}, {
|
|
336
|
-
default: u(() => [
|
|
337
|
-
e(c, {
|
|
338
|
-
modelValue: t(o).saleNum,
|
|
339
|
-
"onUpdate:modelValue": l[9] || (l[9] = (r) => t(o).saleNum = r),
|
|
340
|
-
placeholder: s.$t("goodsSpu.saleNumRequired"),
|
|
341
|
-
class: "w-full",
|
|
342
|
-
min: 0,
|
|
343
|
-
controls: !1,
|
|
344
|
-
precision: 0
|
|
345
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
346
|
-
]),
|
|
347
|
-
_: 1
|
|
348
|
-
}, 8, ["label"])
|
|
349
|
-
]),
|
|
350
|
-
_: 1
|
|
351
|
-
}),
|
|
352
|
-
e(d, { span: 24 }, {
|
|
353
|
-
default: u(() => [
|
|
356
|
+
default: r(() => [
|
|
354
357
|
e(a, {
|
|
355
358
|
label: s.$t("goodsSpu.labelIds"),
|
|
356
359
|
prop: "labelIds"
|
|
357
360
|
}, {
|
|
358
|
-
default:
|
|
361
|
+
default: r(() => [
|
|
359
362
|
e(L, {
|
|
360
363
|
modelValue: t(o).labelIds,
|
|
361
|
-
"onUpdate:modelValue": l[10] || (l[10] = (
|
|
364
|
+
"onUpdate:modelValue": l[10] || (l[10] = (u) => t(o).labelIds = u),
|
|
362
365
|
class: "w-full"
|
|
363
366
|
}, {
|
|
364
|
-
default:
|
|
365
|
-
(h(!0),
|
|
366
|
-
key:
|
|
367
|
-
label:
|
|
367
|
+
default: r(() => [
|
|
368
|
+
(h(!0), P(x, null, M(t(m).labelListBizDict.values, (u) => (h(), v(F, {
|
|
369
|
+
key: u.key,
|
|
370
|
+
label: u.key
|
|
368
371
|
}, {
|
|
369
|
-
default:
|
|
370
|
-
|
|
372
|
+
default: r(() => [
|
|
373
|
+
U(j(u.value), 1)
|
|
371
374
|
]),
|
|
372
375
|
_: 2
|
|
373
376
|
}, 1032, ["label"]))), 128))
|
|
@@ -385,25 +388,25 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
385
388
|
}),
|
|
386
389
|
l[14] || (l[14] = f("div", { class: "title-content" }, "套装商品", -1)),
|
|
387
390
|
e(_, null, {
|
|
388
|
-
default:
|
|
389
|
-
!t(g).query.spuId || S.value ? (h(),
|
|
391
|
+
default: r(() => [
|
|
392
|
+
!t(g).query.spuId || S.value ? (h(), v(W, {
|
|
390
393
|
key: 0,
|
|
391
394
|
form: t(o),
|
|
392
|
-
onGetGoodsSku:
|
|
395
|
+
onGetGoodsSku: T
|
|
393
396
|
}, null, 8, ["form"])) : H("", !0)
|
|
394
397
|
]),
|
|
395
398
|
_: 1
|
|
396
399
|
}),
|
|
397
400
|
e(_, null, {
|
|
398
|
-
default:
|
|
401
|
+
default: r(() => [
|
|
399
402
|
e(a, null, {
|
|
400
|
-
default:
|
|
403
|
+
default: r(() => [
|
|
401
404
|
e(B, {
|
|
402
405
|
type: "primary",
|
|
403
406
|
onClick: $
|
|
404
407
|
}, {
|
|
405
|
-
default:
|
|
406
|
-
|
|
408
|
+
default: r(() => l[12] || (l[12] = [
|
|
409
|
+
U("保存")
|
|
407
410
|
])),
|
|
408
411
|
_: 1,
|
|
409
412
|
__: [12]
|
|
@@ -424,5 +427,5 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
424
427
|
}
|
|
425
428
|
});
|
|
426
429
|
export {
|
|
427
|
-
|
|
430
|
+
pe as default
|
|
428
431
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as E, mergeModels as B, ref as V, 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 U, toDisplayString as w, 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 f } from "./index-
|
|
4
|
+
import { g as f } from "./index-wH3Sgvus.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",
|
|
@@ -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-B27GuULR.mjs";
|
|
5
|
+
import { D as O } from "./index-COXyxAor.mjs";
|
|
6
6
|
const _n = /^[\uD800-\uDBFF]$/, Pn = /^[\uDC00-\uDFFF]$/, Dn = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
7
7
|
var F;
|
|
8
8
|
(function(n) {
|
|
@@ -3,8 +3,8 @@ import { ElMessage as V } from "element-plus";
|
|
|
3
3
|
import { useRouter as ye } from "vue-router";
|
|
4
4
|
import { useTableHooks as he, fileApi as H } from "jmash-core";
|
|
5
5
|
import { useI18n as we } from "vue-i18n";
|
|
6
|
-
import { a as B } from "./index-
|
|
7
|
-
import { D as g, C as ve } from "./index-
|
|
6
|
+
import { a as B } from "./index-B27GuULR.mjs";
|
|
7
|
+
import { D as g, C as ve } from "./index-COXyxAor.mjs";
|
|
8
8
|
const Se = { class: "app-container" }, Ce = { class: "search-container" }, ke = ["onClick"], Ve = ["onClick"], Ie = ["onClick"], ze = /* @__PURE__ */ ge({
|
|
9
9
|
__name: "goodsList",
|
|
10
10
|
props: {
|
|
@@ -3,8 +3,8 @@ import { ElMessage as y } from "element-plus";
|
|
|
3
3
|
import { useRouter as we } from "vue-router";
|
|
4
4
|
import { useTableHooks as Ce, fileApi as W } from "jmash-core";
|
|
5
5
|
import { useI18n as ke } from "vue-i18n";
|
|
6
|
-
import { a as T } from "./index-
|
|
7
|
-
import { D as S, C as h } from "./index-
|
|
6
|
+
import { a as T } from "./index-B27GuULR.mjs";
|
|
7
|
+
import { D as S, C as h } from "./index-COXyxAor.mjs";
|
|
8
8
|
const Ve = { class: "app-container" }, Pe = { class: "search-container" }, Ie = ["onClick"], $e = ["onClick"], Re = ["onClick"], Oe = /* @__PURE__ */ be({
|
|
9
9
|
__name: "goodsList",
|
|
10
10
|
props: {
|
|
@@ -24,7 +24,7 @@ const ri = {}, ni = {
|
|
|
24
24
|
weight: "重量kg",
|
|
25
25
|
volume: "体积m³",
|
|
26
26
|
saleNum: "虚拟销量",
|
|
27
|
-
saleNums: "
|
|
27
|
+
saleNums: "数量",
|
|
28
28
|
specType: "规格类型",
|
|
29
29
|
approvalStatus: "审核状态",
|
|
30
30
|
batchShelf: "批量上架",
|
|
@@ -38,7 +38,7 @@ const ri = {}, ni = {
|
|
|
38
38
|
spuNameRequireds: "请选择商品名称",
|
|
39
39
|
freightAmountRequired: "请输入运费金额",
|
|
40
40
|
saleNumRequired: "请输入虚拟销量",
|
|
41
|
-
saleNumRequireds: "
|
|
41
|
+
saleNumRequireds: "请输入数量",
|
|
42
42
|
sellPointRequired: "请输入商品卖点",
|
|
43
43
|
categoryIdRequired: "请选择商品分类",
|
|
44
44
|
spuCodeRequired: "请输入商品编码",
|
|
@@ -108,7 +108,7 @@ function ai(e) {
|
|
|
108
108
|
let r = e.global.getLocaleMessage("en");
|
|
109
109
|
r = ln(r, ri), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", r);
|
|
110
110
|
}
|
|
111
|
-
const ii = () => import("./edit-
|
|
111
|
+
const ii = () => import("./edit-CYekSxUa.mjs"), si = () => import("./info-0Pf9u0GJ.mjs"), oi = () => import("./edit-CquWa3hI.mjs"), li = () => import("./info-NBnTd9fK.mjs"), ui = [
|
|
112
112
|
{
|
|
113
113
|
path: "/rawgoods",
|
|
114
114
|
component: Ja,
|
|
@@ -4422,7 +4422,7 @@ class Ld {
|
|
|
4422
4422
|
});
|
|
4423
4423
|
}
|
|
4424
4424
|
}
|
|
4425
|
-
const Vd = new Ld(), $d = /* @__PURE__ */ Object.assign({ "./views/goods/goods-brand-info/edit.vue": () => import("./edit-
|
|
4425
|
+
const Vd = new Ld(), $d = /* @__PURE__ */ Object.assign({ "./views/goods/goods-brand-info/edit.vue": () => import("./edit-D1FAN3TA.mjs"), "./views/goods/goods-brand-info/index.vue": () => import("./index-B3vvD7JH.mjs"), "./views/goods/goods-category/edit.vue": () => import("./edit-CuZnQH9w.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-nCeCw43N.mjs"), "./views/goods/goods-combination/edit.vue": () => import("./edit-CquWa3hI.mjs"), "./views/goods/goods-combination/goodsList.vue": () => import("./goodsList-wpPEPZqs.mjs"), "./views/goods/goods-combination/index.vue": () => import("./index-Dy5JznUz.mjs"), "./views/goods/goods-combination/info.vue": () => import("./info-NBnTd9fK.mjs"), "./views/goods/goods-combination/skuForm.vue": () => import("./skuForm-BsvKk2kD.mjs"), "./views/goods/goods-label-info/edit.vue": () => import("./edit-C_XCVJwM.mjs"), "./views/goods/goods-label-info/index.vue": () => import("./index-Dd1dJx7i.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-CYekSxUa.mjs"), "./views/goods/goods-spu/goodsList.vue": () => import("./goodsList-DZlaY5k0.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-DFxg3rmo.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-0Pf9u0GJ.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-CU0a2ltJ.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-DgDGWX-n.mjs") }), Bd = {
|
|
4426
4426
|
install(e) {
|
|
4427
4427
|
Xa($d, 7), ai(ti), ei(ui), e.use(du);
|
|
4428
4428
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as x, ref as B, reactive as N, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as u, createElementBlock as V, createElementVNode as I, createVNode as t, withCtx as l, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as k, createBlock as w, isRef as R, createCommentVNode as T } from "vue";
|
|
2
2
|
import { useTableHooks as le, fileApi as D } from "jmash-core";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
|
-
import { g as ne } from "./index-
|
|
5
|
-
import re from "./edit-
|
|
6
|
-
import { D as de } from "./index-
|
|
4
|
+
import { g as ne } from "./index-wH3Sgvus.mjs";
|
|
5
|
+
import re from "./edit-D1FAN3TA.mjs";
|
|
6
|
+
import { D as de } from "./index-COXyxAor.mjs";
|
|
7
7
|
const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ye = /* @__PURE__ */ x({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(pe) {
|
|
@@ -5,8 +5,8 @@ import { BizDict as o, BizLayDict as L, EnumDict as n } from "jmash-core";
|
|
|
5
5
|
import { EntryDict as v } from "jmash-dict";
|
|
6
6
|
import { ref as h, reactive as _ } from "vue";
|
|
7
7
|
import { specValueApi as y, infoApi as P, specInfoApi as A } from "xyvcard-shop";
|
|
8
|
-
import { g as O, b as f, a as g } from "./index-
|
|
9
|
-
import { g as m } from "./index-
|
|
8
|
+
import { g as O, b as f, a as g } from "./index-B27GuULR.mjs";
|
|
9
|
+
import { g as m } from "./index-wH3Sgvus.mjs";
|
|
10
10
|
class a {
|
|
11
11
|
}
|
|
12
12
|
// 模块
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as b, ref as S, onMounted as A, resolveComponent as p, openBlock as t, createElementBlock as c, createVNode as V, withCtx as m, Fragment as C, renderList as P, unref as h, createBlock as i, createCommentVNode as y } from "vue";
|
|
2
2
|
import { useRoute as L } from "vue-router";
|
|
3
|
-
import { D as _, C as l } from "./index-
|
|
4
|
-
import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { D as _, C as l } from "./index-COXyxAor.mjs";
|
|
4
|
+
import { _ as k } from "./goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs";
|
|
5
5
|
const N = { class: "app-container" }, x = /* @__PURE__ */ b({
|
|
6
6
|
__name: "index",
|
|
7
7
|
setup(g) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as Y, ref as L, reactive as R, onActivated as Z, resolveComponent as s, resolveDirective as x, openBlock as u, createElementBlock as V, createElementVNode as $, createVNode as l, withCtx as t, withKeys as ee, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as k, createBlock as C, isRef as D, createCommentVNode as S } from "vue";
|
|
2
2
|
import { useTableHooks as oe } from "jmash-core";
|
|
3
3
|
import { useI18n as le } from "vue-i18n";
|
|
4
|
-
import { b as te } from "./index-
|
|
5
|
-
import ae from "./edit-
|
|
6
|
-
import { D as ne } from "./index-
|
|
4
|
+
import { b as te } from "./index-B27GuULR.mjs";
|
|
5
|
+
import ae from "./edit-C_XCVJwM.mjs";
|
|
6
|
+
import { D as ne } from "./index-COXyxAor.mjs";
|
|
7
7
|
const se = { class: "app-container" }, de = { class: "search-container" }, ie = ["onClick"], re = ["onClick"], ve = /* @__PURE__ */ Y({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ue) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as v, ref as b, onMounted as h, resolveComponent as u, openBlock as t, createElementBlock as c, createVNode as y, withCtx as m, Fragment as k, renderList as C, unref as V, createBlock as p, createCommentVNode as g } from "vue";
|
|
2
2
|
import { useRoute as B } from "vue-router";
|
|
3
|
-
import { D as i } from "./index-
|
|
4
|
-
import { _ as L } from "./goodsList.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { D as i } from "./index-COXyxAor.mjs";
|
|
4
|
+
import { _ as L } from "./goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs";
|
|
5
5
|
const N = { class: "app-container" }, E = /* @__PURE__ */ v({
|
|
6
6
|
__name: "index",
|
|
7
7
|
setup(T) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as x, ref as V, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as u, createElementBlock as $, createElementVNode as U, createVNode as t, withCtx as l, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, createBlock as w, isRef as T, createCommentVNode as D } from "vue";
|
|
2
2
|
import { useI18n as le } from "vue-i18n";
|
|
3
3
|
import { useTableHooks as ae, fileApi as j } from "jmash-core";
|
|
4
|
-
import { D as ne } from "./index-
|
|
5
|
-
import { g as re } from "./index-
|
|
6
|
-
import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as ne } from "./index-COXyxAor.mjs";
|
|
5
|
+
import { g as re } from "./index-B27GuULR.mjs";
|
|
6
|
+
import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs";
|
|
7
7
|
const ie = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], be = /* @__PURE__ */ x({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(pe) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as M, ref as y, computed as q, watch as j, resolveComponent as b, openBlock as r, createElementBlock as k, createVNode as i, withCtx as e, createTextVNode as n, toDisplayString as s, createElementVNode as a, Fragment as L, renderList as I, createBlock as S, unref as _, createCommentVNode as B } from "vue";
|
|
2
2
|
import { fileApi as w, routerUtil as F } from "jmash-core";
|
|
3
3
|
import { useRouter as H, useRoute as O } from "vue-router";
|
|
4
|
-
import { D as d, C as N, S as R } from "./index-
|
|
5
|
-
import Y from "./skuTable-
|
|
6
|
-
import { a as G } from "./index-
|
|
4
|
+
import { D as d, C as N, S as R } from "./index-COXyxAor.mjs";
|
|
5
|
+
import Y from "./skuTable-DgDGWX-n.mjs";
|
|
6
|
+
import { a as G } from "./index-B27GuULR.mjs";
|
|
7
7
|
import { g as J } from "./index-BHmGYIuc.mjs";
|
|
8
8
|
const K = { class: "app-container" }, Q = { class: "cell-item" }, W = { class: "cell-item" }, X = { 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: "cell-item" }, ie = { class: "title-content" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = { class: "cell-item" }, _e = { class: "cell-item" }, fe = { class: "cell-item" }, ge = ["innerHTML"], Ie = /* @__PURE__ */ M({
|
|
9
9
|
__name: "info",
|