xyvcard-goods 0.0.11 → 0.0.12
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-Bk7YJzrm.mjs → edit-h0S6bHag.mjs} +3 -3
- package/dist/{index-C9LeLF51.mjs → index-BMlIwb1h.mjs} +162 -154
- package/dist/index.mjs +2 -2
- package/dist/{info-lw-aEq4N.mjs → info-lDMLR1ZW.mjs} +1 -1
- package/dist/{skuForm-DuMlHj7f.mjs → skuForm-ChaaXJgn.mjs} +1 -1
- package/dist/{skuTable-BlK2s902.mjs → skuTable-BBiyXctZ.mjs} +61 -58
- package/dist/style.css +1 -1
- package/dts/components/EnumRadio/index.vue.d.ts +3 -4
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +18 -10
- package/package.json +14 -14
|
@@ -2,13 +2,13 @@ import { defineComponent as j, ref as g, watchEffect as O, computed as W, resolv
|
|
|
2
2
|
import { ElMessageBox as Y, ElMessage as F } from "element-plus";
|
|
3
3
|
import { fileApi as k, routerUtil as P } from "jmash-core";
|
|
4
4
|
import { useI18n as L } from "vue-i18n";
|
|
5
|
-
import { _ as x } from "./skuTable-
|
|
5
|
+
import { _ as x } from "./skuTable-BBiyXctZ.mjs";
|
|
6
6
|
import { useRouter as ee, useRoute as le } from "vue-router";
|
|
7
7
|
import { D as m, C as oe } from "./index-CKeHa-Cx.mjs";
|
|
8
8
|
import { goodsSpuApi as D } from "./index.mjs";
|
|
9
9
|
import { g as te } from "./index-BHmGYIuc.mjs";
|
|
10
10
|
import { WangEditor as se } from "xyvcard-cms";
|
|
11
|
-
import ae from "./skuForm-
|
|
11
|
+
import ae from "./skuForm-ChaaXJgn.mjs";
|
|
12
12
|
const ue = ["src"], re = /* @__PURE__ */ j({
|
|
13
13
|
__name: "ImageUpload",
|
|
14
14
|
props: {
|
|
@@ -93,7 +93,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
93
93
|
], 64);
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
}), de = /* @__PURE__ */ x(re, [["__scopeId", "data-v-
|
|
96
|
+
}), de = /* @__PURE__ */ x(re, [["__scopeId", "data-v-0d62e82a"]]), ne = { class: "app-container" }, pe = { class: "search-container" }, ie = { class: "image-card" }, ve = /* @__PURE__ */ j({
|
|
97
97
|
__name: "edit",
|
|
98
98
|
setup(b) {
|
|
99
99
|
var R;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as be, getCurrentInstance as we, ref as A, onMounted as ve, watch as Se, resolveComponent as n, resolveDirective as ye, openBlock as r, createElementBlock as w, createVNode as t, withCtx as o, Fragment as z, renderList as Ce, unref as s, createBlock as _, createElementVNode as h, withKeys as G, createTextVNode as p, toDisplayString as u, withDirectives as y, isRef as W, createCommentVNode as $ } from "vue";
|
|
2
2
|
import { ElMessage as I } from "element-plus";
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { useTableHooks as
|
|
5
|
-
import { useI18n as
|
|
3
|
+
import { useRoute as ke, useRouter as Ve } from "vue-router";
|
|
4
|
+
import { useTableHooks as $e, fileApi as X } from "jmash-core";
|
|
5
|
+
import { useI18n as Ie } from "vue-i18n";
|
|
6
6
|
import { goodsSpuApi as L } from "./index.mjs";
|
|
7
|
-
import { D as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
7
|
+
import { D as v, C as j } from "./index-CKeHa-Cx.mjs";
|
|
8
|
+
import { _ as Te } from "./saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs";
|
|
9
|
+
import { _ as Ne } from "./shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs";
|
|
10
|
+
import { _ as Pe } from "./auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs";
|
|
11
|
+
import { _ as Re } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs";
|
|
12
|
+
const Ue = { class: "app-container" }, De = { key: 0 }, Ae = { class: "search-container" }, ze = ["onClick"], Le = ["onClick"], je = ["onClick"], We = /* @__PURE__ */ be({
|
|
13
13
|
__name: "index",
|
|
14
|
-
setup(
|
|
15
|
-
const { t: c } =
|
|
14
|
+
setup(Ee) {
|
|
15
|
+
const { t: c } = Ie(), E = ke(), R = Ve(), { proxy: Z } = we(), m = A({
|
|
16
16
|
curPage: 1,
|
|
17
17
|
pageSize: 10
|
|
18
18
|
}), {
|
|
19
19
|
tableHooks: d,
|
|
20
20
|
multipleTableRef: U,
|
|
21
|
-
queryFormRef:
|
|
22
|
-
listLoading:
|
|
23
|
-
tableData:
|
|
21
|
+
queryFormRef: q,
|
|
22
|
+
listLoading: x,
|
|
23
|
+
tableData: ee,
|
|
24
24
|
total: N
|
|
25
|
-
} =
|
|
26
|
-
|
|
25
|
+
} = $e(c, L, m), oe = () => {
|
|
26
|
+
q.value[0].resetFields();
|
|
27
27
|
};
|
|
28
28
|
let T = A([
|
|
29
29
|
{
|
|
@@ -123,30 +123,30 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
123
123
|
isColumn: !0
|
|
124
124
|
}
|
|
125
125
|
]);
|
|
126
|
-
|
|
127
|
-
const
|
|
128
|
-
function
|
|
126
|
+
v.shopInfoBizDict.useValues(), v.goodsCategoryDict.useValues();
|
|
127
|
+
const f = A(0);
|
|
128
|
+
function te() {
|
|
129
129
|
R.push({ path: "/rawgoods/goods-spu/edit" });
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function le(l) {
|
|
132
132
|
R.push({
|
|
133
133
|
path: "/rawgoods/goods-spu/edit",
|
|
134
134
|
query: { spuId: l.spuId }
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function ae(l) {
|
|
138
138
|
R.push({
|
|
139
139
|
path: "/rawgoods/goods-spu/info",
|
|
140
140
|
query: { spuId: l.spuId }
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function se(l) {
|
|
144
144
|
d.selectionRows.value = l;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function ne(l) {
|
|
147
147
|
d.handleSort(l.prop, l.order);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ue(l) {
|
|
150
150
|
if (d.selectionRows.value.length === 0) {
|
|
151
151
|
I({
|
|
152
152
|
message: c("goodsSpu.chooseShelf"),
|
|
@@ -154,19 +154,19 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
154
154
|
});
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
const a = d.selectionRows.value.map((
|
|
158
|
-
L.enable({ spuId: a }, JSON.parse(l)).then((
|
|
159
|
-
var
|
|
160
|
-
|
|
161
|
-
message: c("goodsSpu.successShelf") +
|
|
157
|
+
const a = d.selectionRows.value.map((i) => i.spuId);
|
|
158
|
+
L.enable({ spuId: a }, JSON.parse(l)).then((i) => {
|
|
159
|
+
var g;
|
|
160
|
+
i.status === 200 && (l === "true" ? I({
|
|
161
|
+
message: c("goodsSpu.successShelf") + i.data + c("common.stripData"),
|
|
162
162
|
type: "success"
|
|
163
163
|
}) : I({
|
|
164
|
-
message: c("goodsSpu.successOffShelf") +
|
|
164
|
+
message: c("goodsSpu.successOffShelf") + i.data + c("common.stripData"),
|
|
165
165
|
type: "success"
|
|
166
|
-
}), d.getList(), (
|
|
166
|
+
}), d.getList(), (g = U.value) == null || g.clearSelection());
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function de(l) {
|
|
170
170
|
if (d.selectionRows.value.length === 0) {
|
|
171
171
|
I({
|
|
172
172
|
message: c("goodsSpu.chooseShelf"),
|
|
@@ -174,61 +174,69 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
174
174
|
});
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
|
-
const a = d.selectionRows.value.map((
|
|
178
|
-
L.audit({ spuId: a }, l).then((
|
|
179
|
-
var
|
|
180
|
-
|
|
181
|
-
message: c("goodsSpu.successApproval") +
|
|
177
|
+
const a = d.selectionRows.value.map((i) => i.spuId);
|
|
178
|
+
L.audit({ spuId: a }, l).then((i) => {
|
|
179
|
+
var g;
|
|
180
|
+
i.status === 200 && (l === j.APPROVAL_PASS ? I({
|
|
181
|
+
message: c("goodsSpu.successApproval") + i.data + c("common.stripData"),
|
|
182
182
|
type: "success"
|
|
183
183
|
}) : I({
|
|
184
|
-
message: c("goodsSpu.successFilled") +
|
|
184
|
+
message: c("goodsSpu.successFilled") + i.data + c("common.stripData"),
|
|
185
185
|
type: "success"
|
|
186
|
-
}), d.getList(), (
|
|
186
|
+
}), d.getList(), (g = U.value) == null || g.clearSelection());
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
189
|
+
function re(l) {
|
|
190
|
+
f.value = Number(l.index), Number(l.index) === 0 && d.handleQuery();
|
|
191
191
|
}
|
|
192
|
-
return
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
return ve(() => {
|
|
193
|
+
const l = E.query.activeTab;
|
|
194
|
+
l && (f.value = Number(l));
|
|
195
|
+
}), Se(
|
|
196
|
+
() => E.query.activeTab,
|
|
197
|
+
(l) => {
|
|
198
|
+
l && (f.value = Number(l));
|
|
199
|
+
}
|
|
200
|
+
), d.getList(), (l, a) => {
|
|
201
|
+
const i = n("jmash-select"), g = n("el-form-item"), C = n("el-col"), O = n("el-input"), k = n("el-button"), B = n("el-row"), pe = n("el-form"), F = n("arrow-down"), V = n("el-icon"), Q = n("Unlock"), P = n("el-dropdown-item"), H = n("Lock"), M = n("el-dropdown-menu"), Y = n("el-dropdown"), ie = n("jmash-column-select"), me = n("el-image"), K = n("el-switch"), ce = n("jmash-table"), fe = n("jmash-pagination"), ge = n("el-card"), _e = n("el-tab-pane"), he = n("el-tabs"), S = ye("hasPerm");
|
|
202
|
+
return r(), w("div", Ue, [
|
|
203
|
+
t(he, {
|
|
204
|
+
modelValue: f.value,
|
|
205
|
+
"onUpdate:modelValue": a[12] || (a[12] = (D) => f.value = D),
|
|
198
206
|
type: "border-card",
|
|
199
|
-
onTabClick:
|
|
207
|
+
onTabClick: re
|
|
200
208
|
}, {
|
|
201
209
|
default: o(() => [
|
|
202
|
-
(
|
|
203
|
-
key:
|
|
210
|
+
(r(!0), w(z, null, Ce(s(v).goodsSpuListSortEnum.values, (D, J) => (r(), _(_e, {
|
|
211
|
+
key: J,
|
|
204
212
|
label: D.value,
|
|
205
|
-
name:
|
|
213
|
+
name: J
|
|
206
214
|
}, {
|
|
207
215
|
default: o(() => [
|
|
208
|
-
|
|
209
|
-
|
|
216
|
+
f.value === 0 ? (r(), w("div", De, [
|
|
217
|
+
h("div", Ae, [
|
|
210
218
|
t(pe, {
|
|
211
219
|
ref_for: !0,
|
|
212
220
|
ref_key: "queryFormRef",
|
|
213
|
-
ref:
|
|
214
|
-
model:
|
|
221
|
+
ref: q,
|
|
222
|
+
model: m.value,
|
|
215
223
|
inline: !0
|
|
216
224
|
}, {
|
|
217
225
|
default: o(() => [
|
|
218
|
-
t(
|
|
226
|
+
t(B, null, {
|
|
219
227
|
default: o(() => [
|
|
220
228
|
t(C, { span: 6 }, {
|
|
221
229
|
default: o(() => [
|
|
222
|
-
t(
|
|
230
|
+
t(g, {
|
|
223
231
|
label: l.$t("goodsSpu.shopId"),
|
|
224
232
|
prop: "shopId"
|
|
225
233
|
}, {
|
|
226
234
|
default: o(() => [
|
|
227
|
-
t(
|
|
228
|
-
modelValue:
|
|
229
|
-
"onUpdate:modelValue": a[0] || (a[0] = (e) =>
|
|
235
|
+
t(i, {
|
|
236
|
+
modelValue: m.value.shopId,
|
|
237
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => m.value.shopId = e),
|
|
230
238
|
placeholder: l.$t("goodsSpu.shopIdRequired"),
|
|
231
|
-
data: s(
|
|
239
|
+
data: s(v).shopInfoBizDict.values,
|
|
232
240
|
filterable: ""
|
|
233
241
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
234
242
|
]),
|
|
@@ -239,17 +247,17 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
239
247
|
}),
|
|
240
248
|
t(C, { span: 6 }, {
|
|
241
249
|
default: o(() => [
|
|
242
|
-
t(
|
|
250
|
+
t(g, {
|
|
243
251
|
label: l.$t("goodsSpu.spuCode"),
|
|
244
252
|
prop: "spuCode"
|
|
245
253
|
}, {
|
|
246
254
|
default: o(() => [
|
|
247
255
|
t(O, {
|
|
248
|
-
modelValue:
|
|
249
|
-
"onUpdate:modelValue": a[1] || (a[1] = (e) =>
|
|
256
|
+
modelValue: m.value.spuCode,
|
|
257
|
+
"onUpdate:modelValue": a[1] || (a[1] = (e) => m.value.spuCode = e),
|
|
250
258
|
placeholder: l.$t("goodsSpu.spuCode"),
|
|
251
259
|
class: "!w-[203px]",
|
|
252
|
-
onKeyup: a[2] || (a[2] =
|
|
260
|
+
onKeyup: a[2] || (a[2] = G((e) => s(d).handleQuery(), ["enter"]))
|
|
253
261
|
}, null, 8, ["modelValue", "placeholder"])
|
|
254
262
|
]),
|
|
255
263
|
_: 1
|
|
@@ -259,17 +267,17 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
259
267
|
}),
|
|
260
268
|
t(C, { span: 6 }, {
|
|
261
269
|
default: o(() => [
|
|
262
|
-
t(
|
|
270
|
+
t(g, {
|
|
263
271
|
label: l.$t("goodsSpu.spuName"),
|
|
264
272
|
prop: "likeSpuName"
|
|
265
273
|
}, {
|
|
266
274
|
default: o(() => [
|
|
267
275
|
t(O, {
|
|
268
|
-
modelValue:
|
|
269
|
-
"onUpdate:modelValue": a[3] || (a[3] = (e) =>
|
|
276
|
+
modelValue: m.value.likeSpuName,
|
|
277
|
+
"onUpdate:modelValue": a[3] || (a[3] = (e) => m.value.likeSpuName = e),
|
|
270
278
|
placeholder: l.$t("goodsSpu.spuName"),
|
|
271
279
|
class: "!w-[203px]",
|
|
272
|
-
onKeyup: a[4] || (a[4] =
|
|
280
|
+
onKeyup: a[4] || (a[4] = G((e) => s(d).handleQuery(), ["enter"]))
|
|
273
281
|
}, null, 8, ["modelValue", "placeholder"])
|
|
274
282
|
]),
|
|
275
283
|
_: 1
|
|
@@ -279,20 +287,20 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
279
287
|
}),
|
|
280
288
|
t(C, { span: 6 }, {
|
|
281
289
|
default: o(() => [
|
|
282
|
-
t(
|
|
290
|
+
t(g, { class: "search-btn" }, {
|
|
283
291
|
default: o(() => [
|
|
284
292
|
t(k, {
|
|
285
293
|
type: "primary",
|
|
286
294
|
onClick: a[5] || (a[5] = (e) => s(d).handleQuery())
|
|
287
295
|
}, {
|
|
288
296
|
default: o(() => [
|
|
289
|
-
|
|
297
|
+
p(u(l.$t("common.search")), 1)
|
|
290
298
|
]),
|
|
291
299
|
_: 1
|
|
292
300
|
}),
|
|
293
|
-
t(k, { onClick:
|
|
301
|
+
t(k, { onClick: oe }, {
|
|
294
302
|
default: o(() => [
|
|
295
|
-
|
|
303
|
+
p(u(l.$t("common.reset")), 1)
|
|
296
304
|
]),
|
|
297
305
|
_: 1
|
|
298
306
|
})
|
|
@@ -309,53 +317,53 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
309
317
|
_: 1
|
|
310
318
|
}, 8, ["model"])
|
|
311
319
|
]),
|
|
312
|
-
t(
|
|
320
|
+
t(ge, {
|
|
313
321
|
shadow: "never",
|
|
314
322
|
class: "table-container"
|
|
315
323
|
}, {
|
|
316
324
|
header: o(() => [
|
|
317
|
-
t(
|
|
325
|
+
t(B, null, {
|
|
318
326
|
default: o(() => [
|
|
319
327
|
t(C, { span: 17 }, {
|
|
320
328
|
default: o(() => [
|
|
321
|
-
y((
|
|
329
|
+
y((r(), _(k, {
|
|
322
330
|
type: "primary",
|
|
323
|
-
onClick:
|
|
331
|
+
onClick: te
|
|
324
332
|
}, {
|
|
325
333
|
default: o(() => [
|
|
326
|
-
|
|
334
|
+
p(u(l.$t("common.add")), 1)
|
|
327
335
|
]),
|
|
328
336
|
_: 1
|
|
329
337
|
})), [
|
|
330
|
-
[
|
|
338
|
+
[S, ["goods:goods_spu:add"]]
|
|
331
339
|
]),
|
|
332
|
-
y((
|
|
340
|
+
y((r(), _(k, {
|
|
333
341
|
type: "primary",
|
|
334
342
|
onClick: a[6] || (a[6] = (e) => s(d).deleteRecords())
|
|
335
343
|
}, {
|
|
336
344
|
default: o(() => [
|
|
337
|
-
|
|
345
|
+
p(u(l.$t("common.batchDelete")), 1)
|
|
338
346
|
]),
|
|
339
347
|
_: 1
|
|
340
348
|
})), [
|
|
341
|
-
[
|
|
349
|
+
[S, ["goods:goods_spu:delete"]]
|
|
342
350
|
]),
|
|
343
|
-
y((
|
|
351
|
+
y((r(), _(Y, {
|
|
344
352
|
class: "dropdown-left",
|
|
345
|
-
onCommand:
|
|
353
|
+
onCommand: ue
|
|
346
354
|
}, {
|
|
347
355
|
dropdown: o(() => [
|
|
348
|
-
t(
|
|
356
|
+
t(M, null, {
|
|
349
357
|
default: o(() => [
|
|
350
358
|
t(P, { command: "true" }, {
|
|
351
359
|
default: o(() => [
|
|
352
360
|
t(V, { size: "14" }, {
|
|
353
361
|
default: o(() => [
|
|
354
|
-
t(
|
|
362
|
+
t(Q)
|
|
355
363
|
]),
|
|
356
364
|
_: 1
|
|
357
365
|
}),
|
|
358
|
-
|
|
366
|
+
p(" " + u(l.$t("goodsSpu.batchShelf")), 1)
|
|
359
367
|
]),
|
|
360
368
|
_: 1
|
|
361
369
|
}),
|
|
@@ -363,11 +371,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
363
371
|
default: o(() => [
|
|
364
372
|
t(V, { size: "14" }, {
|
|
365
373
|
default: o(() => [
|
|
366
|
-
t(
|
|
374
|
+
t(H)
|
|
367
375
|
]),
|
|
368
376
|
_: 1
|
|
369
377
|
}),
|
|
370
|
-
|
|
378
|
+
p(" " + u(l.$t("goodsSpu.batchOffShelf")), 1)
|
|
371
379
|
]),
|
|
372
380
|
_: 1
|
|
373
381
|
})
|
|
@@ -378,10 +386,10 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
378
386
|
default: o(() => [
|
|
379
387
|
t(k, { type: "primary" }, {
|
|
380
388
|
default: o(() => [
|
|
381
|
-
|
|
389
|
+
p(u(l.$t("goodsSpu.batchShelf")) + "/" + u(l.$t("goodsSpu.batchOffShelf")) + " ", 1),
|
|
382
390
|
t(V, { class: "el-icon--right" }, {
|
|
383
391
|
default: o(() => [
|
|
384
|
-
t(
|
|
392
|
+
t(F)
|
|
385
393
|
]),
|
|
386
394
|
_: 1
|
|
387
395
|
})
|
|
@@ -391,14 +399,14 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
391
399
|
]),
|
|
392
400
|
_: 1
|
|
393
401
|
})), [
|
|
394
|
-
[
|
|
402
|
+
[S, ["goods:goods_spu:onSale"]]
|
|
395
403
|
]),
|
|
396
|
-
y((
|
|
404
|
+
y((r(), _(Y, {
|
|
397
405
|
class: "dropdown-left",
|
|
398
|
-
onCommand:
|
|
406
|
+
onCommand: de
|
|
399
407
|
}, {
|
|
400
408
|
dropdown: o(() => [
|
|
401
|
-
t(
|
|
409
|
+
t(M, null, {
|
|
402
410
|
default: o(() => [
|
|
403
411
|
t(P, {
|
|
404
412
|
command: s(j).APPROVAL_PASS
|
|
@@ -406,11 +414,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
406
414
|
default: o(() => [
|
|
407
415
|
t(V, { size: "14" }, {
|
|
408
416
|
default: o(() => [
|
|
409
|
-
t(
|
|
417
|
+
t(Q)
|
|
410
418
|
]),
|
|
411
419
|
_: 1
|
|
412
420
|
}),
|
|
413
|
-
|
|
421
|
+
p(" " + u(l.$t("goodsSpu.batchApprovaled")), 1)
|
|
414
422
|
]),
|
|
415
423
|
_: 1
|
|
416
424
|
}, 8, ["command"]),
|
|
@@ -420,11 +428,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
420
428
|
default: o(() => [
|
|
421
429
|
t(V, { size: "14" }, {
|
|
422
430
|
default: o(() => [
|
|
423
|
-
t(
|
|
431
|
+
t(H)
|
|
424
432
|
]),
|
|
425
433
|
_: 1
|
|
426
434
|
}),
|
|
427
|
-
|
|
435
|
+
p(" " + u(l.$t("goodsSpu.batchRejected")), 1)
|
|
428
436
|
]),
|
|
429
437
|
_: 1
|
|
430
438
|
}, 8, ["command"])
|
|
@@ -435,10 +443,10 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
435
443
|
default: o(() => [
|
|
436
444
|
t(k, { type: "primary" }, {
|
|
437
445
|
default: o(() => [
|
|
438
|
-
|
|
446
|
+
p(u(l.$t("goodsSpu.batchApproval")) + " ", 1),
|
|
439
447
|
t(V, { class: "el-icon--right" }, {
|
|
440
448
|
default: o(() => [
|
|
441
|
-
t(
|
|
449
|
+
t(F)
|
|
442
450
|
]),
|
|
443
451
|
_: 1
|
|
444
452
|
})
|
|
@@ -448,7 +456,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
448
456
|
]),
|
|
449
457
|
_: 1
|
|
450
458
|
})), [
|
|
451
|
-
[
|
|
459
|
+
[S, ["goods:goods_spu:approve"]]
|
|
452
460
|
])
|
|
453
461
|
]),
|
|
454
462
|
_: 1
|
|
@@ -458,9 +466,9 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
458
466
|
class: "container-float"
|
|
459
467
|
}, {
|
|
460
468
|
default: o(() => [
|
|
461
|
-
t(
|
|
469
|
+
t(ie, {
|
|
462
470
|
modelValue: s(T),
|
|
463
|
-
"onUpdate:modelValue": a[7] || (a[7] = (e) =>
|
|
471
|
+
"onUpdate:modelValue": a[7] || (a[7] = (e) => W(T) ? T.value = e : T = e),
|
|
464
472
|
"label-name": "goods/goods-spu"
|
|
465
473
|
}, null, 8, ["modelValue"])
|
|
466
474
|
]),
|
|
@@ -471,45 +479,45 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
471
479
|
})
|
|
472
480
|
]),
|
|
473
481
|
footer: o(() => [
|
|
474
|
-
s(N) > 0 ? (
|
|
482
|
+
s(N) > 0 ? (r(), _(fe, {
|
|
475
483
|
key: 0,
|
|
476
484
|
total: s(N),
|
|
477
|
-
"onUpdate:total": a[8] || (a[8] = (e) =>
|
|
478
|
-
"current-page":
|
|
479
|
-
"onUpdate:currentPage": a[9] || (a[9] = (e) =>
|
|
480
|
-
"page-size":
|
|
481
|
-
"onUpdate:pageSize": a[10] || (a[10] = (e) =>
|
|
485
|
+
"onUpdate:total": a[8] || (a[8] = (e) => W(N) ? N.value = e : null),
|
|
486
|
+
"current-page": m.value.curPage,
|
|
487
|
+
"onUpdate:currentPage": a[9] || (a[9] = (e) => m.value.curPage = e),
|
|
488
|
+
"page-size": m.value.pageSize,
|
|
489
|
+
"onUpdate:pageSize": a[10] || (a[10] = (e) => m.value.pageSize = e),
|
|
482
490
|
onPagination: a[11] || (a[11] = (e) => s(d).getList())
|
|
483
491
|
}, null, 8, ["total", "current-page", "page-size"])) : $("", !0)
|
|
484
492
|
]),
|
|
485
493
|
default: o(() => [
|
|
486
|
-
t(
|
|
494
|
+
t(ce, {
|
|
487
495
|
ref_for: !0,
|
|
488
496
|
ref_key: "multipleTableRef",
|
|
489
497
|
ref: U,
|
|
490
498
|
"row-key": "spuId",
|
|
491
|
-
"list-loading": s(
|
|
492
|
-
data: s(
|
|
499
|
+
"list-loading": s(x),
|
|
500
|
+
data: s(ee),
|
|
493
501
|
"table-label": s(T),
|
|
494
|
-
onSelectionChange:
|
|
495
|
-
onSortChange:
|
|
502
|
+
onSelectionChange: se,
|
|
503
|
+
onSortChange: ne
|
|
496
504
|
}, {
|
|
497
505
|
shopId: o((e) => [
|
|
498
|
-
|
|
506
|
+
h("span", null, u(s(v).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
499
507
|
]),
|
|
500
508
|
categoryId: o((e) => [
|
|
501
|
-
|
|
509
|
+
h("span", null, u(s(v).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
|
|
502
510
|
]),
|
|
503
511
|
picUrls: o((e) => [
|
|
504
|
-
|
|
512
|
+
h("span", null, [
|
|
505
513
|
t(me, {
|
|
506
|
-
src: s(
|
|
514
|
+
src: s(X).imageUrl(
|
|
507
515
|
e.data.row.picUrls.split(",")[0],
|
|
508
516
|
50,
|
|
509
517
|
50
|
|
510
518
|
),
|
|
511
519
|
"preview-src-list": [
|
|
512
|
-
s(
|
|
520
|
+
s(X).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
513
521
|
],
|
|
514
522
|
"preview-teleported": "",
|
|
515
523
|
"hide-on-click-modal": "",
|
|
@@ -518,11 +526,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
518
526
|
])
|
|
519
527
|
]),
|
|
520
528
|
shelf: o((e) => [
|
|
521
|
-
|
|
529
|
+
h("span", null, [
|
|
522
530
|
t(K, {
|
|
523
531
|
modelValue: e.data.row.shelf,
|
|
524
|
-
"onUpdate:modelValue": (
|
|
525
|
-
onClick: (
|
|
532
|
+
"onUpdate:modelValue": (b) => e.data.row.shelf = b,
|
|
533
|
+
onClick: (b) => s(d).enableRecord(
|
|
526
534
|
e.data.row,
|
|
527
535
|
e.data.row.shelf
|
|
528
536
|
)
|
|
@@ -530,24 +538,24 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
530
538
|
])
|
|
531
539
|
]),
|
|
532
540
|
minPrice: o((e) => [
|
|
533
|
-
|
|
534
|
-
e.data.row.minPrice === e.data.row.maxPrice ? (
|
|
535
|
-
|
|
536
|
-
], 64)) : (
|
|
537
|
-
|
|
541
|
+
h("span", null, [
|
|
542
|
+
e.data.row.minPrice === e.data.row.maxPrice ? (r(), w(z, { key: 0 }, [
|
|
543
|
+
p(u(e.data.row.minPrice), 1)
|
|
544
|
+
], 64)) : (r(), w(z, { key: 1 }, [
|
|
545
|
+
p(u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
|
|
538
546
|
], 64))
|
|
539
547
|
])
|
|
540
548
|
]),
|
|
541
549
|
specType: o((e) => [
|
|
542
|
-
|
|
550
|
+
h("span", null, u(s(v).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
543
551
|
]),
|
|
544
552
|
approvalStatus: o((e) => [
|
|
545
|
-
|
|
553
|
+
h("span", null, u(s(v).approvalStatusEnum.getEnumValue(
|
|
546
554
|
e.data.row.approvalStatus
|
|
547
555
|
)), 1)
|
|
548
556
|
]),
|
|
549
557
|
updateTime: o((e) => [
|
|
550
|
-
|
|
558
|
+
h("span", null, u(s(Z).$moment.formatDate(
|
|
551
559
|
e.data.row.updateTime,
|
|
552
560
|
"YYYY-MM-DD HH:mm:ss"
|
|
553
561
|
)), 1)
|
|
@@ -555,37 +563,37 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
555
563
|
enable: o((e) => [
|
|
556
564
|
t(K, {
|
|
557
565
|
modelValue: e.data.row.enable,
|
|
558
|
-
"onUpdate:modelValue": (
|
|
559
|
-
onChange: (
|
|
566
|
+
"onUpdate:modelValue": (b) => e.data.row.enable = b,
|
|
567
|
+
onChange: (b) => s(d).enableRecord(
|
|
560
568
|
e.data.row,
|
|
561
569
|
e.data.row.enable
|
|
562
570
|
)
|
|
563
571
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
564
572
|
]),
|
|
565
573
|
operation: o((e) => [
|
|
566
|
-
y((
|
|
574
|
+
y((r(), w("span", {
|
|
567
575
|
class: "el-button-color",
|
|
568
|
-
onClick: (
|
|
576
|
+
onClick: (b) => le(e.data.row)
|
|
569
577
|
}, [
|
|
570
|
-
|
|
571
|
-
], 8,
|
|
572
|
-
[
|
|
578
|
+
p(u(l.$t("common.edit")), 1)
|
|
579
|
+
], 8, ze)), [
|
|
580
|
+
[S, ["goods:goods_spu:update"]]
|
|
573
581
|
]),
|
|
574
|
-
y((
|
|
582
|
+
y((r(), w("span", {
|
|
575
583
|
class: "el-button-color dropdown-left",
|
|
576
|
-
onClick: (
|
|
584
|
+
onClick: (b) => s(d).deleteRecord(e.data.row)
|
|
577
585
|
}, [
|
|
578
|
-
|
|
579
|
-
], 8,
|
|
580
|
-
[
|
|
586
|
+
p(u(l.$t("common.delete")), 1)
|
|
587
|
+
], 8, Le)), [
|
|
588
|
+
[S, ["goods:goods_spu:delete"]]
|
|
581
589
|
]),
|
|
582
|
-
y((
|
|
590
|
+
y((r(), w("span", {
|
|
583
591
|
class: "el-button-color dropdown-left",
|
|
584
|
-
onClick: (
|
|
592
|
+
onClick: (b) => ae(e.data.row)
|
|
585
593
|
}, [
|
|
586
|
-
|
|
587
|
-
], 8,
|
|
588
|
-
[
|
|
594
|
+
p(u(l.$t("common.view")), 1)
|
|
595
|
+
], 8, je)), [
|
|
596
|
+
[S, ["goods:goods_spu:view"]]
|
|
589
597
|
])
|
|
590
598
|
]),
|
|
591
599
|
_: 1
|
|
@@ -594,10 +602,10 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
594
602
|
_: 1
|
|
595
603
|
})
|
|
596
604
|
])) : $("", !0),
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
605
|
+
f.value === 1 ? (r(), _(Te, { key: 1 })) : $("", !0),
|
|
606
|
+
f.value === 2 ? (r(), _(Ne, { key: 2 })) : $("", !0),
|
|
607
|
+
f.value === 3 ? (r(), _(Pe, { key: 3 })) : $("", !0),
|
|
608
|
+
f.value === 4 ? (r(), _(Re, { key: 4 })) : $("", !0)
|
|
601
609
|
]),
|
|
602
610
|
_: 2
|
|
603
611
|
}, 1032, ["label", "name"]))), 128))
|
|
@@ -609,5 +617,5 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
|
|
|
609
617
|
}
|
|
610
618
|
});
|
|
611
619
|
export {
|
|
612
|
-
|
|
620
|
+
We as default
|
|
613
621
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -62,7 +62,7 @@ function Ps(e) {
|
|
|
62
62
|
let s = e.global.getLocaleMessage("en");
|
|
63
63
|
s = Tt(s, xs), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
|
|
64
64
|
}
|
|
65
|
-
const Ns = () => import("./edit-
|
|
65
|
+
const Ns = () => import("./edit-h0S6bHag.mjs"), Ws = () => import("./info-lDMLR1ZW.mjs"), Fs = [
|
|
66
66
|
{
|
|
67
67
|
path: "/rawgoods",
|
|
68
68
|
component: Ys,
|
|
@@ -2806,7 +2806,7 @@ class Ci {
|
|
|
2806
2806
|
});
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
|
-
const Hi = new Ci(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/approveFailIndex.vue": () => import("./approveFailIndex-B-VGnf1U.mjs"), "./views/goods/goods-spu/auditIndex.vue": () => import("./auditIndex-tEq8uYdA.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-
|
|
2809
|
+
const Hi = new Ci(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-spu/approveFailIndex.vue": () => import("./approveFailIndex-B-VGnf1U.mjs"), "./views/goods/goods-spu/auditIndex.vue": () => import("./auditIndex-tEq8uYdA.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-h0S6bHag.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-BMlIwb1h.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-lDMLR1ZW.mjs"), "./views/goods/goods-spu/saleIndex.vue": () => import("./saleIndex-B7TBQOB6.mjs"), "./views/goods/goods-spu/shelfIndex.vue": () => import("./shelfIndex-BfsIMQfD.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-ChaaXJgn.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-BBiyXctZ.mjs").then((e) => e.a) }), Ei = {
|
|
2810
2810
|
install(e) {
|
|
2811
2811
|
Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Li);
|
|
2812
2812
|
}
|
|
@@ -2,7 +2,7 @@ import { defineComponent as q, ref as k, computed as j, watch as F, resolveCompo
|
|
|
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
4
|
import { D as p, C as N, S as Y } from "./index-CKeHa-Cx.mjs";
|
|
5
|
-
import { s as z } from "./skuTable-
|
|
5
|
+
import { s as z } from "./skuTable-BBiyXctZ.mjs";
|
|
6
6
|
import { goodsSpuApi as G } from "./index.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: "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({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as te, ref as b, computed as se, watch as D, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as k, unref as O, createVNode as o, withCtx as a, createCommentVNode as I, renderList as y, createElementVNode as S, toDisplayString as Y, createTextVNode as w, createBlock as P } from "vue";
|
|
2
2
|
import { C as E, D as ue, S as H, a as ne } from "./index-CKeHa-Cx.mjs";
|
|
3
|
-
import { s as de, _ as re } from "./skuTable-
|
|
3
|
+
import { s as de, _ as re } from "./skuTable-BBiyXctZ.mjs";
|
|
4
4
|
const pe = { key: 0 }, ce = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "w-full"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, ref as C, computed as q, watch as $, resolveComponent as v, openBlock as w, createElementBlock as U, createElementVNode as
|
|
1
|
+
import { defineComponent as O, ref as C, computed as q, watch as $, resolveComponent as v, openBlock as w, createElementBlock as U, createElementVNode as g, createVNode as n, withCtx as d, createTextVNode as S, createCommentVNode as F, Fragment as M, renderList as G, createBlock as x, toDisplayString as D, unref as z } from "vue";
|
|
2
2
|
import { D as K } from "./index-CKeHa-Cx.mjs";
|
|
3
3
|
import { fileApi as E } from "jmash-core";
|
|
4
4
|
const H = (a, h) => {
|
|
@@ -24,18 +24,18 @@ function J(a, h = [], s) {
|
|
|
24
24
|
const o = [], t = [];
|
|
25
25
|
a.forEach((r, c) => {
|
|
26
26
|
const { specValueList: e } = r;
|
|
27
|
-
let
|
|
27
|
+
let m = {};
|
|
28
28
|
if (!e || e.length === 0) return !0;
|
|
29
29
|
if (e.length > 1) {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const f = Math.floor(V / y[c]) % e.length;
|
|
31
|
+
m = a[c].specValueList[f];
|
|
32
32
|
} else
|
|
33
|
-
|
|
34
|
-
!r[u] || !
|
|
33
|
+
m = a[c].specValueList[0];
|
|
34
|
+
!r[u] || !m[u] || (t.push(`${r[u]}_${m[u]}`), o.push({
|
|
35
35
|
specId: r[u],
|
|
36
36
|
specName: r[_],
|
|
37
|
-
specValueId:
|
|
38
|
-
specValueName:
|
|
37
|
+
specValueId: m[u],
|
|
38
|
+
specValueName: m[_]
|
|
39
39
|
}));
|
|
40
40
|
});
|
|
41
41
|
const { ...i } = I[t.join("|")] || {};
|
|
@@ -92,19 +92,22 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
92
92
|
(r, c, e) => `${r}${c.specId}-${c.specValueId}${e === i.specs.length - 1 ? "" : "_"}`,
|
|
93
93
|
""
|
|
94
94
|
)
|
|
95
|
-
})), t = k.goodsSku.map((i) =>
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
})), t = k.goodsSku.map((i) => {
|
|
96
|
+
var r;
|
|
97
|
+
return {
|
|
98
|
+
...i,
|
|
99
|
+
specIds: (r = i.specValues) == null ? void 0 : r.reduce(
|
|
100
|
+
(c, e, m) => `${c}${e.specId}-${e.specValueId}${m === i.specValues.length - 1 ? "" : "_"}`,
|
|
101
|
+
""
|
|
102
|
+
)
|
|
103
|
+
};
|
|
104
|
+
});
|
|
102
105
|
return o.forEach((i) => {
|
|
103
106
|
t.forEach((r) => {
|
|
104
|
-
let c = i.specIds.split("_"), e = r.specIds.split("_"),
|
|
105
|
-
c.forEach((
|
|
106
|
-
e.find((P) => P ==
|
|
107
|
-
}),
|
|
107
|
+
let c = i.specIds.split("_"), e = r.specIds.split("_"), m = !0;
|
|
108
|
+
c.forEach((f) => {
|
|
109
|
+
e.find((P) => P == f) || (m = !1);
|
|
110
|
+
}), m && (i.picUrl = r.picUrl ? r.picUrl : "", i.skuCode = r.skuCode ? r.skuCode : void 0, i.skuId = r.skuId ? r.skuId : void 0, i.salePrice = r.salePrice, i.marketPrice = r.marketPrice, i.costPrice = r.costPrice, i.stock = r.stock, i.weight = r.weight, i.volume = r.volume, i.status = r.status);
|
|
108
111
|
});
|
|
109
112
|
}), o;
|
|
110
113
|
});
|
|
@@ -129,19 +132,19 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
129
132
|
status: !0
|
|
130
133
|
}));
|
|
131
134
|
if (o.length === t.length)
|
|
132
|
-
return u.value = o.map((e,
|
|
133
|
-
...u.value[
|
|
135
|
+
return u.value = o.map((e, m) => ({
|
|
136
|
+
...u.value[m],
|
|
134
137
|
...e
|
|
135
138
|
}));
|
|
136
139
|
const i = I(o, t);
|
|
137
140
|
if (o.length > t.length) {
|
|
138
141
|
let e = [];
|
|
139
|
-
o.forEach((
|
|
140
|
-
const
|
|
141
|
-
(P) => P.specIds ===
|
|
142
|
+
o.forEach((m) => {
|
|
143
|
+
const f = u.value.find(
|
|
144
|
+
(P) => P.specIds === m.specIds
|
|
142
145
|
);
|
|
143
|
-
|
|
144
|
-
...
|
|
146
|
+
f ? e.push(f) : e.push({
|
|
147
|
+
...m,
|
|
145
148
|
picUrl: "",
|
|
146
149
|
skuCode: void 0,
|
|
147
150
|
salePrice: 0,
|
|
@@ -196,10 +199,10 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
196
199
|
t.picUrl = o;
|
|
197
200
|
}
|
|
198
201
|
return (o, t) => {
|
|
199
|
-
const i = v("Setting"), r = v("el-icon"), c = v("el-input-number"), e = v("el-tooltip"),
|
|
202
|
+
const i = v("Setting"), r = v("el-icon"), c = v("el-input-number"), e = v("el-tooltip"), m = v("el-button"), f = v("el-table-column"), P = v("jmash-single-image-upload"), j = v("el-image"), A = v("el-input"), N = v("el-switch"), T = v("el-table");
|
|
200
203
|
return w(), U("div", null, [
|
|
201
204
|
a.isSettingShow ? (w(), U("div", W, [
|
|
202
|
-
|
|
205
|
+
g("div", X, [
|
|
203
206
|
n(r, null, {
|
|
204
207
|
default: d(() => [
|
|
205
208
|
n(i)
|
|
@@ -208,7 +211,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
208
211
|
}),
|
|
209
212
|
t[6] || (t[6] = S(" 批量设置 "))
|
|
210
213
|
]),
|
|
211
|
-
|
|
214
|
+
g("span", Y, [
|
|
212
215
|
n(e, {
|
|
213
216
|
class: "box-item",
|
|
214
217
|
effect: "dark",
|
|
@@ -228,7 +231,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
228
231
|
_: 1
|
|
229
232
|
})
|
|
230
233
|
]),
|
|
231
|
-
|
|
234
|
+
g("span", Z, [
|
|
232
235
|
n(e, {
|
|
233
236
|
class: "box-item",
|
|
234
237
|
effect: "dark",
|
|
@@ -248,7 +251,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
248
251
|
_: 1
|
|
249
252
|
})
|
|
250
253
|
]),
|
|
251
|
-
|
|
254
|
+
g("span", ee, [
|
|
252
255
|
n(e, {
|
|
253
256
|
class: "box-item",
|
|
254
257
|
effect: "dark",
|
|
@@ -268,7 +271,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
268
271
|
_: 1
|
|
269
272
|
})
|
|
270
273
|
]),
|
|
271
|
-
|
|
274
|
+
g("span", le, [
|
|
272
275
|
n(e, {
|
|
273
276
|
class: "box-item",
|
|
274
277
|
effect: "dark",
|
|
@@ -288,7 +291,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
288
291
|
_: 1
|
|
289
292
|
})
|
|
290
293
|
]),
|
|
291
|
-
|
|
294
|
+
g("span", te, [
|
|
292
295
|
n(e, {
|
|
293
296
|
class: "box-item",
|
|
294
297
|
effect: "dark",
|
|
@@ -308,7 +311,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
308
311
|
_: 1
|
|
309
312
|
})
|
|
310
313
|
]),
|
|
311
|
-
|
|
314
|
+
g("span", oe, [
|
|
312
315
|
n(e, {
|
|
313
316
|
class: "box-item",
|
|
314
317
|
effect: "dark",
|
|
@@ -328,7 +331,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
328
331
|
_: 1
|
|
329
332
|
})
|
|
330
333
|
]),
|
|
331
|
-
n(
|
|
334
|
+
n(m, {
|
|
332
335
|
type: "primary",
|
|
333
336
|
size: "small",
|
|
334
337
|
onClick: y
|
|
@@ -344,8 +347,8 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
344
347
|
class: "w-full top-dis"
|
|
345
348
|
}, {
|
|
346
349
|
default: d(() => [
|
|
347
|
-
n(
|
|
348
|
-
(w(!0), U(M, null, G(a.specData, (l, p) => (w(), x(
|
|
350
|
+
n(f, { type: "index" }),
|
|
351
|
+
(w(!0), U(M, null, G(a.specData, (l, p) => (w(), x(f, {
|
|
349
352
|
key: l.id,
|
|
350
353
|
prop: l.id,
|
|
351
354
|
label: l.name
|
|
@@ -355,7 +358,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
355
358
|
]),
|
|
356
359
|
_: 2
|
|
357
360
|
}, 1032, ["prop", "label"]))), 128)),
|
|
358
|
-
n(
|
|
361
|
+
n(f, {
|
|
359
362
|
prop: "picUrl",
|
|
360
363
|
label: "图片"
|
|
361
364
|
}, {
|
|
@@ -378,17 +381,17 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
378
381
|
]),
|
|
379
382
|
_: 1
|
|
380
383
|
}),
|
|
381
|
-
n(
|
|
384
|
+
n(f, {
|
|
382
385
|
prop: "salePrice",
|
|
383
386
|
label: "销售价(元)",
|
|
384
387
|
width: "150"
|
|
385
388
|
}, {
|
|
386
389
|
header: d(() => t[8] || (t[8] = [
|
|
387
|
-
|
|
388
|
-
|
|
390
|
+
g("span", { class: "required_red" }, "*", -1),
|
|
391
|
+
g("span", null, "销售价(元)", -1)
|
|
389
392
|
])),
|
|
390
393
|
default: d((l) => [
|
|
391
|
-
|
|
394
|
+
g("span", null, [
|
|
392
395
|
n(c, {
|
|
393
396
|
modelValue: l.row.salePrice,
|
|
394
397
|
"onUpdate:modelValue": (p) => l.row.salePrice = p,
|
|
@@ -402,12 +405,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
402
405
|
]),
|
|
403
406
|
_: 1
|
|
404
407
|
}),
|
|
405
|
-
n(
|
|
408
|
+
n(f, {
|
|
406
409
|
prop: "marketPrice",
|
|
407
410
|
label: "市场价(元)"
|
|
408
411
|
}, {
|
|
409
412
|
default: d((l) => [
|
|
410
|
-
|
|
413
|
+
g("span", null, [
|
|
411
414
|
n(c, {
|
|
412
415
|
modelValue: l.row.marketPrice,
|
|
413
416
|
"onUpdate:modelValue": (p) => l.row.marketPrice = p,
|
|
@@ -421,12 +424,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
421
424
|
]),
|
|
422
425
|
_: 1
|
|
423
426
|
}),
|
|
424
|
-
n(
|
|
427
|
+
n(f, {
|
|
425
428
|
prop: "costPrice",
|
|
426
429
|
label: "成本价(元)"
|
|
427
430
|
}, {
|
|
428
431
|
default: d((l) => [
|
|
429
|
-
|
|
432
|
+
g("span", null, [
|
|
430
433
|
n(c, {
|
|
431
434
|
modelValue: l.row.costPrice,
|
|
432
435
|
"onUpdate:modelValue": (p) => l.row.costPrice = p,
|
|
@@ -440,12 +443,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
440
443
|
]),
|
|
441
444
|
_: 1
|
|
442
445
|
}),
|
|
443
|
-
n(
|
|
446
|
+
n(f, {
|
|
444
447
|
prop: "weight",
|
|
445
448
|
label: "重量(kg)"
|
|
446
449
|
}, {
|
|
447
450
|
default: d((l) => [
|
|
448
|
-
|
|
451
|
+
g("span", null, [
|
|
449
452
|
n(c, {
|
|
450
453
|
modelValue: l.row.weight,
|
|
451
454
|
"onUpdate:modelValue": (p) => l.row.weight = p,
|
|
@@ -459,12 +462,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
459
462
|
]),
|
|
460
463
|
_: 1
|
|
461
464
|
}),
|
|
462
|
-
n(
|
|
465
|
+
n(f, {
|
|
463
466
|
prop: "volume",
|
|
464
467
|
label: "体积(m³)"
|
|
465
468
|
}, {
|
|
466
469
|
default: d((l) => [
|
|
467
|
-
|
|
470
|
+
g("span", null, [
|
|
468
471
|
n(c, {
|
|
469
472
|
modelValue: l.row.volume,
|
|
470
473
|
"onUpdate:modelValue": (p) => l.row.volume = p,
|
|
@@ -478,16 +481,16 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
478
481
|
]),
|
|
479
482
|
_: 1
|
|
480
483
|
}),
|
|
481
|
-
n(
|
|
484
|
+
n(f, {
|
|
482
485
|
prop: "stock",
|
|
483
486
|
label: "库存"
|
|
484
487
|
}, {
|
|
485
488
|
header: d(() => t[9] || (t[9] = [
|
|
486
|
-
|
|
487
|
-
|
|
489
|
+
g("span", { class: "required_red" }, "*", -1),
|
|
490
|
+
g("span", null, "库存", -1)
|
|
488
491
|
])),
|
|
489
492
|
default: d((l) => [
|
|
490
|
-
|
|
493
|
+
g("span", null, [
|
|
491
494
|
n(c, {
|
|
492
495
|
modelValue: l.row.stock,
|
|
493
496
|
"onUpdate:modelValue": (p) => l.row.stock = p,
|
|
@@ -501,12 +504,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
501
504
|
]),
|
|
502
505
|
_: 1
|
|
503
506
|
}),
|
|
504
|
-
n(
|
|
507
|
+
n(f, {
|
|
505
508
|
prop: "skuCode",
|
|
506
509
|
label: "sku编码"
|
|
507
510
|
}, {
|
|
508
511
|
default: d((l) => [
|
|
509
|
-
|
|
512
|
+
g("span", null, [
|
|
510
513
|
n(A, {
|
|
511
514
|
modelValue: l.row.skuCode,
|
|
512
515
|
"onUpdate:modelValue": (p) => l.row.skuCode = p,
|
|
@@ -517,7 +520,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
517
520
|
]),
|
|
518
521
|
_: 1
|
|
519
522
|
}),
|
|
520
|
-
n(
|
|
523
|
+
n(f, {
|
|
521
524
|
prop: "status",
|
|
522
525
|
label: "是否上架",
|
|
523
526
|
width: "80"
|
|
@@ -538,7 +541,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
|
|
|
538
541
|
]);
|
|
539
542
|
};
|
|
540
543
|
}
|
|
541
|
-
}), ie = /* @__PURE__ */ H(ne, [["__scopeId", "data-v-
|
|
544
|
+
}), ie = /* @__PURE__ */ H(ne, [["__scopeId", "data-v-84542ec3"]]), de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
542
545
|
__proto__: null,
|
|
543
546
|
default: ie
|
|
544
547
|
}, Symbol.toStringTag, { value: "Module" }));
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-
|
|
1
|
+
.w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-84542ec3]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-d3b23fe5]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-d3b23fe5]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-d3b23fe5]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-d3b23fe5]{padding:10px 20px}.goods-tag[data-v-d3b23fe5]{margin-bottom:10px}[data-v-0d62e82a] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-0d62e82a] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import type { PropType } from "vue";
|
|
2
2
|
import type { Entry } from "jmash-core";
|
|
3
|
-
import type { EntryBool } from "@/api/dict";
|
|
4
3
|
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
5
4
|
modelValue: PropType<string | boolean>;
|
|
6
5
|
data: {
|
|
7
|
-
type: PropType<
|
|
6
|
+
type: PropType<Entry[]>;
|
|
8
7
|
default: () => void;
|
|
9
8
|
};
|
|
10
9
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
11
10
|
modelValue: PropType<string | boolean>;
|
|
12
11
|
data: {
|
|
13
|
-
type: PropType<
|
|
12
|
+
type: PropType<Entry[]>;
|
|
14
13
|
default: () => void;
|
|
15
14
|
};
|
|
16
15
|
}>> & Readonly<{}>, {
|
|
17
|
-
data:
|
|
16
|
+
data: Entry[];
|
|
18
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
18
|
export default _default;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
modelValue: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: () => string;
|
|
5
|
-
};
|
|
6
2
|
listType: {
|
|
7
3
|
type: () => "text" | "picture" | "picture-card";
|
|
8
4
|
default: string;
|
|
@@ -11,11 +7,15 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
11
7
|
type: NumberConstructor;
|
|
12
8
|
default: number;
|
|
13
9
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
default: () => string;
|
|
10
|
+
pictureUrl: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
default: () => never[];
|
|
18
13
|
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
filesResponse: (...args: any[]) => void;
|
|
16
|
+
uploadFileList: (...args: any[]) => void;
|
|
17
|
+
removeFile: (...args: any[]) => void;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
19
19
|
listType: {
|
|
20
20
|
type: () => "text" | "picture" | "picture-card";
|
|
21
21
|
default: string;
|
|
@@ -24,9 +24,17 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
24
24
|
type: NumberConstructor;
|
|
25
25
|
default: number;
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
pictureUrl: {
|
|
28
|
+
type: ArrayConstructor;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{
|
|
32
|
+
onFilesResponse?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
onUploadFileList?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
onRemoveFile?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
}>, {
|
|
29
36
|
listType: "picture" | "text" | "picture-card";
|
|
30
37
|
limit: number;
|
|
38
|
+
pictureUrl: unknown[];
|
|
31
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
40
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xyvcard-goods",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dts/index.d.ts",
|
|
@@ -8,16 +8,6 @@
|
|
|
8
8
|
"dist",
|
|
9
9
|
"dts"
|
|
10
10
|
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"dev": "vite",
|
|
13
|
-
"build": "vite build && pnpm build:dts",
|
|
14
|
-
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
15
|
-
"preview": "vite preview",
|
|
16
|
-
"build-only": "vite build",
|
|
17
|
-
"type-check": "vue-tsc --build --force",
|
|
18
|
-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
19
|
-
"format": "prettier --write src/"
|
|
20
|
-
},
|
|
21
11
|
"peerDependencies": {
|
|
22
12
|
"axios": "^1.7.7",
|
|
23
13
|
"element-plus": "^2.8.7",
|
|
@@ -28,8 +18,8 @@
|
|
|
28
18
|
"vue": "^3.5.11",
|
|
29
19
|
"vue-i18n": "^9.14.1",
|
|
30
20
|
"vue-router": "^4.4.5",
|
|
31
|
-
"xyvcard-emall": "^0.0.
|
|
32
|
-
"xyvcard-shop": "^0.0.
|
|
21
|
+
"xyvcard-emall": "^0.0.13",
|
|
22
|
+
"xyvcard-shop": "^0.0.23",
|
|
33
23
|
"xyvcard-cms": "0.0.36"
|
|
34
24
|
},
|
|
35
25
|
"devDependencies": {
|
|
@@ -61,5 +51,15 @@
|
|
|
61
51
|
"file-saver": "^2.0.5",
|
|
62
52
|
"nprogress": "^0.2.0",
|
|
63
53
|
"qs": "^6.12.0"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"dev": "vite",
|
|
57
|
+
"build": "vite build && pnpm build:dts",
|
|
58
|
+
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
59
|
+
"preview": "vite preview",
|
|
60
|
+
"build-only": "vite build",
|
|
61
|
+
"type-check": "vue-tsc --build --force",
|
|
62
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
63
|
+
"format": "prettier --write src/"
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
}
|