xyvcard-goods 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{approveFailIndex-BS-H7i3Y.mjs → approveFailIndex-C2BhoVKC.mjs} +1 -1
- package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-CebPGseh.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CSBlBFQo.mjs} +1 -1
- package/dist/{auditIndex-DHQPvPdG.mjs → auditIndex-BjjiwYrm.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-B-ghb-zu.mjs → auditIndex.vue_vue_type_script_setup_true_lang-UrMEjXo-.mjs} +9 -9
- package/dist/{edit-DOqDV4qb.mjs → edit-B1_IbaHc.mjs} +4128 -4132
- package/dist/{el-message-D15RmjW3.mjs → el-message-BBB-S2MS.mjs} +472 -454
- package/dist/{index-CIN1Wvug.mjs → index-vE-TE0cx.mjs} +14 -14
- package/dist/index.mjs +1055 -928
- package/dist/{info-MqipS9Ok.mjs → info-Bm6Ifv7W.mjs} +2 -2
- package/dist/{saleIndex-D2vlM6ww.mjs → saleIndex-C9AD4DIj.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-B1iRvFF9.mjs → saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs} +9 -9
- package/dist/{shelfIndex-CEgDzOX1.mjs → shelfIndex-CyAp6rf5.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-DS__493K.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs} +9 -9
- package/dist/{skuForm-BMRF5whq.mjs → skuForm-Ctu0Vbym.mjs} +1 -1
- package/dist/{skuTable-Ddo1obnO.mjs → skuTable-BbTTCq2m.mjs} +13 -13
- package/dts/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/index-fu3gxdt_.mjs +0 -130
- package/dts/views/goods/goods-spu/approvedIndex.vue.d.ts +0 -2
- package/dts/views/goods/goods-spu/sku-form.vue.d.ts +0 -31
- package/dts/views/goods/goods-spu/sku-table.vue.d.ts +0 -14
|
@@ -2,8 +2,8 @@ import { defineComponent as q, ref as b, 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 z } from "./index-CZD7OAWo.mjs";
|
|
5
|
-
import { s as G } from "./skuTable-
|
|
6
|
-
import {
|
|
5
|
+
import { s as G } from "./skuTable-BbTTCq2m.mjs";
|
|
6
|
+
import { goodsSpuApi as J } from "./index.mjs";
|
|
7
7
|
import { g as K } from "./index-BHmGYIuc.mjs";
|
|
8
8
|
const Q = { class: "app-container" }, W = { class: "cell-item" }, X = { class: "cell-item" }, Y = { class: "cell-item" }, Z = { class: "cell-item" }, x = { class: "cell-item" }, ee = { class: "cell-item" }, le = { class: "cell-item" }, se = { class: "cell-item" }, te = { class: "cell-item" }, oe = { class: "cell-item" }, ue = { class: "cell-item" }, ae = { class: "title-content" }, ie = { class: "cell-item" }, ne = { class: "cell-item" }, ce = { class: "cell-item" }, de = { class: "cell-item" }, re = { class: "cell-item" }, pe = { class: "cell-item" }, me = ["innerHTML"], ye = /* @__PURE__ */ q({
|
|
9
9
|
__name: "info",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Z, getCurrentInstance as x, ref as D, resolveComponent as p, resolveDirective as ee, openBlock as m, createElementBlock as I, createElementVNode as d, createVNode as t, withCtx as l, unref as s, withKeys as R, createTextVNode as c, toDisplayString as u, withDirectives as y, createBlock as V, isRef as P, createCommentVNode as oe } from "vue";
|
|
2
2
|
import { useRouter as le } from "vue-router";
|
|
3
3
|
import { useTableHooks as te, fileApi as z } from "jmash-core";
|
|
4
4
|
import { useI18n as ae } from "vue-i18n";
|
|
5
|
-
import {
|
|
5
|
+
import { goodsSpuApi as j } from "./index.mjs";
|
|
6
6
|
import { C as se, D as g } from "./index-CZD7OAWo.mjs";
|
|
7
|
-
import {
|
|
8
|
-
const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], re = ["onClick"], we = /* @__PURE__ */
|
|
7
|
+
import { $ as E } from "./el-message-BBB-S2MS.mjs";
|
|
8
|
+
const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], re = ["onClick"], we = /* @__PURE__ */ Z({
|
|
9
9
|
__name: "saleIndex",
|
|
10
10
|
setup(de) {
|
|
11
11
|
const { t: _ } = ae(), T = le(), { proxy: B } = x(), r = D({
|
|
@@ -153,7 +153,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
return n.getList(), (a, o) => {
|
|
156
|
-
const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), N = p("el-input"), b = p("el-button"), k = p("el-row"), F = p("el-form"), O = p("jmash-column-select"),
|
|
156
|
+
const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), N = p("el-input"), b = p("el-button"), k = p("el-row"), F = p("el-form"), O = p("jmash-column-select"), G = p("el-image"), U = p("el-switch"), J = p("jmash-table"), W = p("jmash-pagination"), X = p("el-card"), w = ee("hasPerm");
|
|
157
157
|
return m(), I("div", ne, [
|
|
158
158
|
d("div", ue, [
|
|
159
159
|
t(F, {
|
|
@@ -259,7 +259,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
259
259
|
_: 1
|
|
260
260
|
}, 8, ["model"])
|
|
261
261
|
]),
|
|
262
|
-
t(
|
|
262
|
+
t(X, {
|
|
263
263
|
shadow: "never",
|
|
264
264
|
class: "table-container"
|
|
265
265
|
}, {
|
|
@@ -322,7 +322,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
322
322
|
})
|
|
323
323
|
]),
|
|
324
324
|
footer: l(() => [
|
|
325
|
-
s(v) > 0 ? (m(), V(
|
|
325
|
+
s(v) > 0 ? (m(), V(W, {
|
|
326
326
|
key: 0,
|
|
327
327
|
total: s(v),
|
|
328
328
|
"onUpdate:total": o[9] || (o[9] = (e) => P(v) ? v.value = e : null),
|
|
@@ -334,7 +334,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
334
334
|
}, null, 8, ["total", "current-page", "page-size"])) : oe("", !0)
|
|
335
335
|
]),
|
|
336
336
|
default: l(() => [
|
|
337
|
-
t(
|
|
337
|
+
t(J, {
|
|
338
338
|
ref_key: "multipleTableRef",
|
|
339
339
|
ref: $,
|
|
340
340
|
"row-key": "spuId",
|
|
@@ -352,7 +352,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
352
352
|
]),
|
|
353
353
|
picUrls: l((e) => [
|
|
354
354
|
d("span", null, [
|
|
355
|
-
t(
|
|
355
|
+
t(G, {
|
|
356
356
|
src: s(z).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
357
357
|
"preview-src-list": [
|
|
358
358
|
s(z).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
@@ -2,9 +2,9 @@ import { defineComponent as x, getCurrentInstance as ee, ref as D, resolveCompon
|
|
|
2
2
|
import { useRouter as te } from "vue-router";
|
|
3
3
|
import { useTableHooks as ae, fileApi as z } from "jmash-core";
|
|
4
4
|
import { useI18n as se } from "vue-i18n";
|
|
5
|
-
import {
|
|
5
|
+
import { goodsSpuApi as j } from "./index.mjs";
|
|
6
6
|
import { D as g } from "./index-CZD7OAWo.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { $ as E } from "./el-message-BBB-S2MS.mjs";
|
|
8
8
|
const ne = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], de = ["onClick"], re = ["onClick"], ye = /* @__PURE__ */ x({
|
|
9
9
|
__name: "shelfIndex",
|
|
10
10
|
setup(ie) {
|
|
@@ -158,10 +158,10 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
return n.getList(), (t, o) => {
|
|
161
|
-
const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), k = p("el-input"), y = p("el-button"), N = p("el-row"),
|
|
161
|
+
const C = p("jmash-select"), S = p("el-form-item"), f = p("el-col"), k = p("el-input"), y = p("el-button"), N = p("el-row"), G = p("el-form"), J = p("jmash-column-select"), O = p("el-image"), U = p("el-switch"), W = p("jmash-table"), X = p("jmash-pagination"), Z = p("el-card"), h = oe("hasPerm");
|
|
162
162
|
return m(), V("div", ne, [
|
|
163
163
|
r("div", ue, [
|
|
164
|
-
a(
|
|
164
|
+
a(G, {
|
|
165
165
|
ref_key: "queryFormRef",
|
|
166
166
|
ref: B,
|
|
167
167
|
model: d.value,
|
|
@@ -264,7 +264,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
264
264
|
_: 1
|
|
265
265
|
}, 8, ["model"])
|
|
266
266
|
]),
|
|
267
|
-
a(
|
|
267
|
+
a(Z, {
|
|
268
268
|
shadow: "never",
|
|
269
269
|
class: "table-container"
|
|
270
270
|
}, {
|
|
@@ -314,7 +314,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
314
314
|
class: "container-float"
|
|
315
315
|
}, {
|
|
316
316
|
default: l(() => [
|
|
317
|
-
a(
|
|
317
|
+
a(J, {
|
|
318
318
|
modelValue: s(w),
|
|
319
319
|
"onUpdate:modelValue": o[8] || (o[8] = (e) => P(w) ? w.value = e : w = e),
|
|
320
320
|
"label-name": "goods/goods-spu"
|
|
@@ -327,7 +327,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
327
327
|
})
|
|
328
328
|
]),
|
|
329
329
|
footer: l(() => [
|
|
330
|
-
s(v) > 0 ? (m(), I(
|
|
330
|
+
s(v) > 0 ? (m(), I(X, {
|
|
331
331
|
key: 0,
|
|
332
332
|
total: s(v),
|
|
333
333
|
"onUpdate:total": o[9] || (o[9] = (e) => P(v) ? v.value = e : null),
|
|
@@ -339,7 +339,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
339
339
|
}, null, 8, ["total", "current-page", "page-size"])) : le("", !0)
|
|
340
340
|
]),
|
|
341
341
|
default: l(() => [
|
|
342
|
-
a(
|
|
342
|
+
a(W, {
|
|
343
343
|
ref_key: "multipleTableRef",
|
|
344
344
|
ref: T,
|
|
345
345
|
"row-key": "spuId",
|
|
@@ -357,7 +357,7 @@ const ne = { class: "app-container" }, ue = { class: "search-container" }, pe =
|
|
|
357
357
|
]),
|
|
358
358
|
picUrls: l((e) => [
|
|
359
359
|
r("span", null, [
|
|
360
|
-
a(
|
|
360
|
+
a(O, {
|
|
361
361
|
src: s(z).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
362
362
|
"preview-src-list": [
|
|
363
363
|
s(z).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as te, ref as k, computed as se, watch as C, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as h, unref as M, createVNode as o, withCtx as a, createCommentVNode as D, renderList as y, createElementVNode as S, toDisplayString as O, createTextVNode as w, createBlock as P } from "vue";
|
|
2
2
|
import "jmash-core";
|
|
3
3
|
import { C as L, D as ue, S as H, a as ne } from "./index-CZD7OAWo.mjs";
|
|
4
|
-
import { s as pe, _ as re } from "./skuTable-
|
|
4
|
+
import { s as pe, _ as re } from "./skuTable-BbTTCq2m.mjs";
|
|
5
5
|
const de = { key: 0 }, ce = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "w-full"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as N, ref as I, toRefs as O, watchEffect as q, computed as T, resolveComponent as V, openBlock as w, createBlock as z, withCtx as d, createElementBlock as S, createVNode as n, unref as j, watch as E, Fragment as D, createElementVNode as h, createTextVNode as $, createCommentVNode as G, renderList as H, toDisplayString as L } from "vue";
|
|
2
2
|
import { fileApi as x } from "jmash-core";
|
|
3
|
-
import {
|
|
4
|
-
import { D as
|
|
5
|
-
const
|
|
3
|
+
import { a0 as K, $ as R } from "./el-message-BBB-S2MS.mjs";
|
|
4
|
+
import { D as J } from "./index-CZD7OAWo.mjs";
|
|
5
|
+
const Q = (s, m) => {
|
|
6
6
|
const o = s.__vccOpts || s;
|
|
7
7
|
for (const [r, k] of m)
|
|
8
8
|
o[r] = k;
|
|
9
9
|
return o;
|
|
10
|
-
},
|
|
10
|
+
}, W = ["src"], X = /* @__PURE__ */ N({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
13
13
|
pictureUrl: {
|
|
@@ -45,7 +45,7 @@ const J = (s, m) => {
|
|
|
45
45
|
src: _.value,
|
|
46
46
|
class: "avatar",
|
|
47
47
|
alt: ""
|
|
48
|
-
}, null, 8,
|
|
48
|
+
}, null, 8, W)) : (w(), z(c, {
|
|
49
49
|
key: 1,
|
|
50
50
|
class: "avatar-uploader-icon"
|
|
51
51
|
}, {
|
|
@@ -60,10 +60,10 @@ const J = (s, m) => {
|
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
function
|
|
63
|
+
function Y(s, m = [], o) {
|
|
64
64
|
console.log(s, m = [], o);
|
|
65
65
|
let { optionValue: r = "id", optionText: k = "name" } = o || {}, b = [], v = 0, P = {};
|
|
66
|
-
const U =
|
|
66
|
+
const U = Z(s);
|
|
67
67
|
if (console.log(U), s.length === 0) return b;
|
|
68
68
|
s.forEach((_) => {
|
|
69
69
|
const { specValueList: l } = _;
|
|
@@ -96,7 +96,7 @@ function X(s, m = [], o) {
|
|
|
96
96
|
}
|
|
97
97
|
return b;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Z(s) {
|
|
100
100
|
let m = [];
|
|
101
101
|
for (let o = s.length - 1; o >= 0; o--)
|
|
102
102
|
s[o + 1] && s[o + 1].specValueList ? m[o] = s[o + 1].specValueList.length * m[o + 1] || 1 : m[o] = 1;
|
|
@@ -139,7 +139,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
|
|
|
139
139
|
volume: 0,
|
|
140
140
|
stock: 0
|
|
141
141
|
}), r = I([]), k = m, b = s, v = T(() => {
|
|
142
|
-
let l =
|
|
142
|
+
let l = Y(b.specData, [], {}).map((c) => ({
|
|
143
143
|
specValues: c.specs,
|
|
144
144
|
specIds: c.specs.reduce(
|
|
145
145
|
(u, i, e) => `${u}${i.specId}-${i.specValueId}${e === c.specs.length - 1 ? "" : "_"}`,
|
|
@@ -249,7 +249,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
|
|
|
249
249
|
a.picUrl = l;
|
|
250
250
|
}
|
|
251
251
|
return (l, a) => {
|
|
252
|
-
const c = V("Setting"), u = V("el-icon"), i = V("el-input-number"), e = V("el-tooltip"), g = V("el-button"), f = V("el-table-column"), y =
|
|
252
|
+
const c = V("Setting"), u = V("el-icon"), i = V("el-input-number"), e = V("el-tooltip"), g = V("el-button"), f = V("el-table-column"), y = X, B = V("el-input"), F = V("el-switch"), M = V("el-table");
|
|
253
253
|
return w(), S(D, null, [
|
|
254
254
|
s.isSettingShow ? (w(), S("div", le, [
|
|
255
255
|
h("div", te, [
|
|
@@ -563,7 +563,7 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
|
|
|
563
563
|
modelValue: t.row.status,
|
|
564
564
|
"onUpdate:modelValue": (C) => t.row.status = C
|
|
565
565
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
566
|
-
])) : (w(), S("span", re, L(j(
|
|
566
|
+
])) : (w(), S("span", re, L(j(J).shelfDict.getValue((p = t.row.status) == null ? void 0 : p.toString())), 1))
|
|
567
567
|
];
|
|
568
568
|
}),
|
|
569
569
|
_: 1
|
|
@@ -574,12 +574,12 @@ const le = { key: 0 }, te = { class: "title-set" }, oe = { class: "right-dis" },
|
|
|
574
574
|
], 64);
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
|
-
}), pe = /* @__PURE__ */
|
|
577
|
+
}), pe = /* @__PURE__ */ Q(de, [["__scopeId", "data-v-0ad45a00"]]), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
578
578
|
__proto__: null,
|
|
579
579
|
default: pe
|
|
580
580
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
581
581
|
export {
|
|
582
|
-
|
|
582
|
+
Q as _,
|
|
583
583
|
ve as a,
|
|
584
584
|
pe as s
|
|
585
585
|
};
|
package/dts/index.d.ts
CHANGED
package/package.json
CHANGED
package/dist/index-fu3gxdt_.mjs
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { useUserStore as o, clearEmpty as n, request as d } from "jmash-core";
|
|
2
|
-
class u {
|
|
3
|
-
getKey(t) {
|
|
4
|
-
return {
|
|
5
|
-
spuId: t.spuId
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 查询翻页信息商品SPU
|
|
10
|
-
* @param query 可选的查询条件,用于过滤商品SPU的分页结果
|
|
11
|
-
* @returns 返回一个AxiosPromise,解析为商品SPU的分页信息
|
|
12
|
-
*/
|
|
13
|
-
findPage(t) {
|
|
14
|
-
const s = o().user.tenant;
|
|
15
|
-
return t && (t.hasApproval = t.approvalStatus != null, t.hasShelf = t.shelf != null), n(t), d({
|
|
16
|
-
url: "/v1/goods/goods_spu/page/" + s,
|
|
17
|
-
method: "get",
|
|
18
|
-
params: t
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* 查询列表信息商品SPU
|
|
23
|
-
* @param query 可选的查询参数,用于指定商品SPU的查询条件
|
|
24
|
-
* @returns 返回一个AxiosPromise,解析后提供商品SPU列表
|
|
25
|
-
*/
|
|
26
|
-
findList(t) {
|
|
27
|
-
const s = o().user.tenant;
|
|
28
|
-
return n(t), d({
|
|
29
|
-
url: "/v1/goods/goods_spu/list/" + s,
|
|
30
|
-
method: "get",
|
|
31
|
-
params: t
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* 根据商品SPU的ID进行查询
|
|
36
|
-
* @param query 商品SPU的查询键,包含需要查询的SPU ID
|
|
37
|
-
* @returns 返回一个AxiosPromise对象,解析为商品SPU模型
|
|
38
|
-
*/
|
|
39
|
-
findById(t) {
|
|
40
|
-
const s = o().user.tenant;
|
|
41
|
-
return n(t), d({
|
|
42
|
-
url: "/v1/goods/goods_spu/id/" + s + "/" + t.spuId,
|
|
43
|
-
method: "get"
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* 创建实体商品SPU
|
|
48
|
-
* @param data 商品SPU创建所需的数据对象,包含商品的各种信息
|
|
49
|
-
* @returns 返回一个Promise对象,解析为创建的商品SPU模型
|
|
50
|
-
*/
|
|
51
|
-
create(t) {
|
|
52
|
-
return t.tenant = o().user.tenant, n(t), d({
|
|
53
|
-
url: "/v1/goods/goods_spu",
|
|
54
|
-
method: "post",
|
|
55
|
-
data: t
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* 修改实体商品SPU
|
|
60
|
-
* @param data 包含要更新的商品SPU信息的对象
|
|
61
|
-
* @returns 返回一个Promise,解析为更新后的商品SPU模型
|
|
62
|
-
*/
|
|
63
|
-
update(t) {
|
|
64
|
-
return t.tenant = o().user.tenant, n(t), d({
|
|
65
|
-
url: "/v1/goods/goods_spu",
|
|
66
|
-
method: "patch",
|
|
67
|
-
data: t
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* 上架或下架商品
|
|
72
|
-
* @param key 商品的唯一键包含商品的必要标识信息
|
|
73
|
-
* @param enable 一个布尔值指示商品是否应被上架true表示上架false表示下架
|
|
74
|
-
* @returns 返回一个AxiosPromise对象解析为一个布尔值表示操作是否成功
|
|
75
|
-
*/
|
|
76
|
-
enable(t, s) {
|
|
77
|
-
let e = { ...t };
|
|
78
|
-
return e.tenant = o().user.tenant, e.shelf = s, n(e), d({
|
|
79
|
-
url: "/v1/goods/goods_spu/on_sale",
|
|
80
|
-
method: "put",
|
|
81
|
-
data: e
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* 删除商品SPU
|
|
86
|
-
* @param query 包含商品SPU关键信息的查询对象,用于指定需要删除的商品SPU
|
|
87
|
-
* @returns 返回一个AxiosPromise对象,包含删除操作的结果信息
|
|
88
|
-
*/
|
|
89
|
-
delete(t) {
|
|
90
|
-
return t.tenant = o().user.tenant, n(t), d({
|
|
91
|
-
url: "/v1/goods/goods_spu/id",
|
|
92
|
-
method: "delete",
|
|
93
|
-
params: t
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* 批量删除商品SPU
|
|
98
|
-
* @param keys - 一个包含多个商品SPU键的数组,每个键包含一个SPU的标识信息
|
|
99
|
-
* @returns 返回一个AxiosPromise,解析后提供删除操作的影响行数
|
|
100
|
-
*/
|
|
101
|
-
batchDelete(t) {
|
|
102
|
-
const s = t.map((a) => a.spuId), e = {
|
|
103
|
-
tenant: o().user.tenant,
|
|
104
|
-
spuId: s
|
|
105
|
-
};
|
|
106
|
-
return n(e), d({
|
|
107
|
-
url: "/v1/goods/goods_spu/batch",
|
|
108
|
-
method: "put",
|
|
109
|
-
data: e
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* 审核商品SPU
|
|
114
|
-
* @param key 商品SPU的关键信息,包括需要审核的商品SPU的唯一标识符等
|
|
115
|
-
* @param status 商品SPU的审核状态,决定商品SPU的审核结果
|
|
116
|
-
* @returns 返回一个AxiosPromise,包含审核操作的结果,通常是一个数字状态码
|
|
117
|
-
*/
|
|
118
|
-
audit(t, s) {
|
|
119
|
-
let e = { ...t };
|
|
120
|
-
return e.tenant = o().user.tenant, e.status = s, n(e), d({
|
|
121
|
-
url: "/v1/goods/goods_spu/audit",
|
|
122
|
-
method: "put",
|
|
123
|
-
data: e
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
const g = new u();
|
|
128
|
-
export {
|
|
129
|
-
g
|
|
130
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type PropType } from "vue";
|
|
2
|
-
import type { GoodsSkuCreateReq } from "@/api/goods-spu/types";
|
|
3
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
-
specType: {
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
default: () => string;
|
|
7
|
-
};
|
|
8
|
-
skuListUpdate: {
|
|
9
|
-
type: PropType<GoodsSkuCreateReq[]>;
|
|
10
|
-
default: () => never[];
|
|
11
|
-
};
|
|
12
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
getGoodsSku: (...args: any[]) => void;
|
|
14
|
-
getFormData: (...args: any[]) => void;
|
|
15
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
-
specType: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
default: () => string;
|
|
19
|
-
};
|
|
20
|
-
skuListUpdate: {
|
|
21
|
-
type: PropType<GoodsSkuCreateReq[]>;
|
|
22
|
-
default: () => never[];
|
|
23
|
-
};
|
|
24
|
-
}>> & Readonly<{
|
|
25
|
-
onGetGoodsSku?: ((...args: any[]) => any) | undefined;
|
|
26
|
-
onGetFormData?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
specType: string;
|
|
29
|
-
skuListUpdate: GoodsSkuCreateReq[];
|
|
30
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
-
tableObj: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => void;
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
-
tableObj: {
|
|
8
|
-
type: ObjectConstructor;
|
|
9
|
-
default: () => void;
|
|
10
|
-
};
|
|
11
|
-
}>> & Readonly<{}>, {
|
|
12
|
-
tableObj: Record<string, any>;
|
|
13
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
export default _default;
|