xyvcard-goods 0.0.9 → 0.0.10
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-DJf9bHab.mjs → approveFailIndex-B-VGnf1U.mjs} +1 -1
- package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs} +113 -107
- package/dist/{auditIndex-CCkGsSy2.mjs → auditIndex-tEq8uYdA.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs → auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs} +118 -112
- package/dist/edit-FCXD46Ef.mjs +556 -0
- package/dist/{index-vcmJ06-Y.mjs → index-C9LeLF51.mjs} +158 -149
- package/dist/index.mjs +3 -3
- package/dist/{info-CPZykxS1.mjs → info-CScBSLKA.mjs} +1 -1
- package/dist/{saleIndex-CdAcvCzO.mjs → saleIndex-B7TBQOB6.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs → saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs} +134 -147
- package/dist/{shelfIndex-ZHuhzU_h.mjs → shelfIndex-BfsIMQfD.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs} +114 -108
- package/dist/{skuForm-BSlT4TYd.mjs → skuForm-CRnWdE9n.mjs} +11 -5
- package/dist/{skuTable-DYmQYXk3.mjs → skuTable-Ck7bJzYP.mjs} +25 -24
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +1 -1
- package/dts/components/EnumRadio/index.vue.d.ts +4 -3
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +10 -18
- package/dts/components/ImageUpload.vue.d.ts +36 -0
- package/dts/views/goods/goods-spu/skuForm.vue.d.ts +1 -1
- package/package.json +14 -14
- package/dist/edit-D37yka6Z.mjs +0 -470
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-FCXD46Ef.mjs"), Ws = () => import("./info-CScBSLKA.mjs"), Fs = [
|
|
66
66
|
{
|
|
67
67
|
path: "/rawgoods",
|
|
68
68
|
component: Ys,
|
|
@@ -2758,7 +2758,7 @@ class Ci {
|
|
|
2758
2758
|
enable(t, s) {
|
|
2759
2759
|
const r = { ...t };
|
|
2760
2760
|
return r.tenant = E().user.tenant, r.shelf = s, V(r), G({
|
|
2761
|
-
url: "/v1/goods/goods_spu/on_sale",
|
|
2761
|
+
url: "/v1/goods/goods_spu/on_sale/" + r.spuId,
|
|
2762
2762
|
method: "put",
|
|
2763
2763
|
data: r
|
|
2764
2764
|
});
|
|
@@ -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-
|
|
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-FCXD46Ef.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-C9LeLF51.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-CScBSLKA.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-CRnWdE9n.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-Ck7bJzYP.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-Ck7bJzYP.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,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as Z, getCurrentInstance as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { useTableHooks as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { goodsSpuApi as
|
|
7
|
-
import { C as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as Z, getCurrentInstance as ee, ref as $, resolveComponent as u, resolveDirective as oe, openBlock as i, createElementBlock as v, createElementVNode as d, createVNode as t, withCtx as o, unref as a, withKeys as D, createTextVNode as m, toDisplayString as p, withDirectives as V, createBlock as I, isRef as R, createCommentVNode as le, Fragment as z } from "vue";
|
|
2
|
+
import { ElMessage as j } from "element-plus";
|
|
3
|
+
import { useRouter as te } from "vue-router";
|
|
4
|
+
import { useTableHooks as ae, fileApi as E } from "jmash-core";
|
|
5
|
+
import { useI18n as se } from "vue-i18n";
|
|
6
|
+
import { goodsSpuApi as A } from "./index.mjs";
|
|
7
|
+
import { C as ne, D as c } from "./index-CKeHa-Cx.mjs";
|
|
8
|
+
const ue = { class: "search-container" }, pe = ["onClick"], we = /* @__PURE__ */ Z({
|
|
9
9
|
__name: "saleIndex",
|
|
10
10
|
setup(re) {
|
|
11
|
-
const { t:
|
|
11
|
+
const { t: w } = se(), T = te(), { proxy: B } = ee(), r = $({
|
|
12
12
|
curPage: 1,
|
|
13
13
|
pageSize: 10,
|
|
14
14
|
shelf: "true",
|
|
15
|
-
approvalStatus:
|
|
15
|
+
approvalStatus: ne.APPROVAL_PASS
|
|
16
16
|
}), {
|
|
17
17
|
tableHooks: n,
|
|
18
|
-
multipleTableRef:
|
|
19
|
-
queryFormRef:
|
|
20
|
-
listLoading:
|
|
21
|
-
tableData:
|
|
22
|
-
total:
|
|
23
|
-
} =
|
|
24
|
-
let h =
|
|
18
|
+
multipleTableRef: k,
|
|
19
|
+
queryFormRef: L,
|
|
20
|
+
listLoading: q,
|
|
21
|
+
tableData: H,
|
|
22
|
+
total: b
|
|
23
|
+
} = ae(w, A, r);
|
|
24
|
+
let h = $([
|
|
25
25
|
{
|
|
26
26
|
label: "goodsSpu.shopId",
|
|
27
27
|
prop: "shopId",
|
|
@@ -119,17 +119,17 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be
|
|
|
119
119
|
isColumn: !0
|
|
120
120
|
}
|
|
121
121
|
]);
|
|
122
|
-
|
|
123
|
-
function
|
|
122
|
+
c.shopInfoBizDict.useValues(), c.goodsCategoryDict.useValues();
|
|
123
|
+
function Q() {
|
|
124
124
|
T.push({ path: "/rawgoods/goods-spu/edit" });
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Y(s) {
|
|
127
127
|
T.push({
|
|
128
128
|
path: "/rawgoods/goods-spu/info",
|
|
129
129
|
query: { spuId: s.spuId }
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function F(s) {
|
|
133
133
|
n.selectionRows.value = s;
|
|
134
134
|
}
|
|
135
135
|
function K(s) {
|
|
@@ -137,46 +137,46 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be
|
|
|
137
137
|
}
|
|
138
138
|
function M() {
|
|
139
139
|
if (n.selectionRows.value.length === 0) {
|
|
140
|
-
|
|
141
|
-
message:
|
|
140
|
+
j({
|
|
141
|
+
message: w("goodsSpu.chooseShelf"),
|
|
142
142
|
type: "warning"
|
|
143
143
|
});
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
|
-
const s = n.selectionRows.value.map((
|
|
147
|
-
|
|
148
|
-
var
|
|
149
|
-
|
|
150
|
-
message:
|
|
146
|
+
const s = n.selectionRows.value.map((l) => l.spuId);
|
|
147
|
+
A.enable({ spuId: s }, !1).then((l) => {
|
|
148
|
+
var y;
|
|
149
|
+
l.status === 200 && j({
|
|
150
|
+
message: w("goodsSpu.successOffShelf") + l.data + w("common.stripData"),
|
|
151
151
|
type: "success"
|
|
152
|
-
}), n.getList(), (
|
|
152
|
+
}), n.getList(), (y = k.value) == null || y.clearSelection();
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
return n.getList(), (s,
|
|
156
|
-
const
|
|
157
|
-
return i(),
|
|
158
|
-
d("div",
|
|
155
|
+
return n.getList(), (s, l) => {
|
|
156
|
+
const y = u("jmash-select"), S = u("el-form-item"), g = u("el-col"), N = u("el-input"), _ = u("el-button"), P = u("el-row"), O = u("el-form"), x = u("jmash-column-select"), G = u("el-image"), U = u("el-switch"), J = u("jmash-table"), W = u("jmash-pagination"), X = u("el-card"), C = oe("hasPerm");
|
|
157
|
+
return i(), v("div", null, [
|
|
158
|
+
d("div", ue, [
|
|
159
159
|
t(O, {
|
|
160
160
|
ref_key: "queryFormRef",
|
|
161
|
-
ref:
|
|
161
|
+
ref: L,
|
|
162
162
|
model: r.value,
|
|
163
163
|
inline: !0
|
|
164
164
|
}, {
|
|
165
|
-
default:
|
|
166
|
-
t(
|
|
167
|
-
default:
|
|
168
|
-
t(
|
|
169
|
-
default:
|
|
170
|
-
t(
|
|
165
|
+
default: o(() => [
|
|
166
|
+
t(P, null, {
|
|
167
|
+
default: o(() => [
|
|
168
|
+
t(g, { span: 6 }, {
|
|
169
|
+
default: o(() => [
|
|
170
|
+
t(S, {
|
|
171
171
|
label: s.$t("goodsSpu.shopId"),
|
|
172
172
|
prop: "shopId"
|
|
173
173
|
}, {
|
|
174
|
-
default:
|
|
175
|
-
t(
|
|
174
|
+
default: o(() => [
|
|
175
|
+
t(y, {
|
|
176
176
|
modelValue: r.value.shopId,
|
|
177
|
-
"onUpdate:modelValue":
|
|
177
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => r.value.shopId = e),
|
|
178
178
|
placeholder: s.$t("goodsSpu.shopIdRequired"),
|
|
179
|
-
data: a(
|
|
179
|
+
data: a(c).shopInfoBizDict.values,
|
|
180
180
|
filterable: ""
|
|
181
181
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
182
182
|
]),
|
|
@@ -185,18 +185,18 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be
|
|
|
185
185
|
]),
|
|
186
186
|
_: 1
|
|
187
187
|
}),
|
|
188
|
-
t(
|
|
189
|
-
default:
|
|
190
|
-
t(
|
|
188
|
+
t(g, { span: 6 }, {
|
|
189
|
+
default: o(() => [
|
|
190
|
+
t(S, {
|
|
191
191
|
label: s.$t("goodsSpu.spuCode"),
|
|
192
192
|
prop: "spuCode"
|
|
193
193
|
}, {
|
|
194
|
-
default:
|
|
194
|
+
default: o(() => [
|
|
195
195
|
t(N, {
|
|
196
196
|
modelValue: r.value.spuCode,
|
|
197
|
-
"onUpdate:modelValue":
|
|
197
|
+
"onUpdate:modelValue": l[1] || (l[1] = (e) => r.value.spuCode = e),
|
|
198
198
|
placeholder: s.$t("goodsSpu.spuCode"),
|
|
199
|
-
onKeyup:
|
|
199
|
+
onKeyup: l[2] || (l[2] = D((e) => a(n).handleQuery(), ["enter"])),
|
|
200
200
|
class: "!w-[203px]"
|
|
201
201
|
}, null, 8, ["modelValue", "placeholder"])
|
|
202
202
|
]),
|
|
@@ -205,18 +205,18 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be
|
|
|
205
205
|
]),
|
|
206
206
|
_: 1
|
|
207
207
|
}),
|
|
208
|
-
t(
|
|
209
|
-
default:
|
|
210
|
-
t(
|
|
208
|
+
t(g, { span: 6 }, {
|
|
209
|
+
default: o(() => [
|
|
210
|
+
t(S, {
|
|
211
211
|
label: s.$t("goodsSpu.spuName"),
|
|
212
|
-
prop: "
|
|
212
|
+
prop: "likeSpuName"
|
|
213
213
|
}, {
|
|
214
|
-
default:
|
|
214
|
+
default: o(() => [
|
|
215
215
|
t(N, {
|
|
216
|
-
modelValue: r.value.
|
|
217
|
-
"onUpdate:modelValue":
|
|
216
|
+
modelValue: r.value.likeSpuName,
|
|
217
|
+
"onUpdate:modelValue": l[3] || (l[3] = (e) => r.value.likeSpuName = e),
|
|
218
218
|
placeholder: s.$t("goodsSpu.spuName"),
|
|
219
|
-
onKeyup:
|
|
219
|
+
onKeyup: l[4] || (l[4] = D((e) => a(n).handleQuery(), ["enter"])),
|
|
220
220
|
class: "!w-[203px]"
|
|
221
221
|
}, null, 8, ["modelValue", "placeholder"])
|
|
222
222
|
]),
|
|
@@ -225,24 +225,24 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be
|
|
|
225
225
|
]),
|
|
226
226
|
_: 1
|
|
227
227
|
}),
|
|
228
|
-
t(
|
|
229
|
-
default:
|
|
230
|
-
t(
|
|
231
|
-
default:
|
|
232
|
-
t(
|
|
228
|
+
t(g, { span: 6 }, {
|
|
229
|
+
default: o(() => [
|
|
230
|
+
t(S, { class: "search-btn" }, {
|
|
231
|
+
default: o(() => [
|
|
232
|
+
t(_, {
|
|
233
233
|
type: "primary",
|
|
234
|
-
onClick:
|
|
234
|
+
onClick: l[5] || (l[5] = (e) => a(n).handleQuery())
|
|
235
235
|
}, {
|
|
236
|
-
default:
|
|
237
|
-
|
|
236
|
+
default: o(() => [
|
|
237
|
+
m(p(s.$t("common.search")), 1)
|
|
238
238
|
]),
|
|
239
239
|
_: 1
|
|
240
240
|
}),
|
|
241
|
-
t(
|
|
242
|
-
onClick:
|
|
241
|
+
t(_, {
|
|
242
|
+
onClick: l[6] || (l[6] = (e) => a(n).resetQuery())
|
|
243
243
|
}, {
|
|
244
|
-
default:
|
|
245
|
-
|
|
244
|
+
default: o(() => [
|
|
245
|
+
m(p(s.$t("common.reset")), 1)
|
|
246
246
|
]),
|
|
247
247
|
_: 1
|
|
248
248
|
})
|
|
@@ -263,55 +263,44 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be
|
|
|
263
263
|
shadow: "never",
|
|
264
264
|
class: "table-container"
|
|
265
265
|
}, {
|
|
266
|
-
header:
|
|
267
|
-
t(
|
|
268
|
-
default:
|
|
269
|
-
t(
|
|
270
|
-
default:
|
|
271
|
-
|
|
272
|
-
type: "primary",
|
|
273
|
-
onClick: H
|
|
274
|
-
}, {
|
|
275
|
-
default: l(() => [
|
|
276
|
-
c(u(s.$t("common.add")), 1)
|
|
277
|
-
]),
|
|
278
|
-
_: 1
|
|
279
|
-
})), [
|
|
280
|
-
[w, ["goods:goods_spu:add"]]
|
|
281
|
-
]),
|
|
282
|
-
y((i(), V(b, {
|
|
266
|
+
header: o(() => [
|
|
267
|
+
t(P, null, {
|
|
268
|
+
default: o(() => [
|
|
269
|
+
t(g, { span: 17 }, {
|
|
270
|
+
default: o(() => [
|
|
271
|
+
V((i(), I(_, {
|
|
283
272
|
type: "primary",
|
|
284
|
-
onClick:
|
|
273
|
+
onClick: Q
|
|
285
274
|
}, {
|
|
286
|
-
default:
|
|
287
|
-
|
|
275
|
+
default: o(() => [
|
|
276
|
+
m(p(s.$t("common.add")), 1)
|
|
288
277
|
]),
|
|
289
278
|
_: 1
|
|
290
279
|
})), [
|
|
291
|
-
[
|
|
280
|
+
[C, ["goods:goods_spu:add"]]
|
|
292
281
|
]),
|
|
293
|
-
|
|
282
|
+
V((i(), I(_, {
|
|
294
283
|
type: "primary",
|
|
295
284
|
onClick: M
|
|
296
285
|
}, {
|
|
297
|
-
default:
|
|
298
|
-
|
|
286
|
+
default: o(() => [
|
|
287
|
+
m(p(s.$t("goodsSpu.batchOffShelf")), 1)
|
|
299
288
|
]),
|
|
300
289
|
_: 1
|
|
301
290
|
})), [
|
|
302
|
-
[
|
|
291
|
+
[C, ["goods:goods_spu:onSale"]]
|
|
303
292
|
])
|
|
304
293
|
]),
|
|
305
294
|
_: 1
|
|
306
295
|
}),
|
|
307
|
-
t(
|
|
296
|
+
t(g, {
|
|
308
297
|
span: 7,
|
|
309
298
|
class: "container-float"
|
|
310
299
|
}, {
|
|
311
|
-
default:
|
|
312
|
-
t(
|
|
300
|
+
default: o(() => [
|
|
301
|
+
t(x, {
|
|
313
302
|
modelValue: a(h),
|
|
314
|
-
"onUpdate:modelValue":
|
|
303
|
+
"onUpdate:modelValue": l[7] || (l[7] = (e) => R(h) ? h.value = e : h = e),
|
|
315
304
|
"label-name": "goods/goods-spu"
|
|
316
305
|
}, null, 8, ["modelValue"])
|
|
317
306
|
]),
|
|
@@ -321,41 +310,41 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be
|
|
|
321
310
|
_: 1
|
|
322
311
|
})
|
|
323
312
|
]),
|
|
324
|
-
footer:
|
|
325
|
-
a(
|
|
313
|
+
footer: o(() => [
|
|
314
|
+
a(b) > 0 ? (i(), I(W, {
|
|
326
315
|
key: 0,
|
|
327
|
-
total: a(
|
|
328
|
-
"onUpdate:total":
|
|
316
|
+
total: a(b),
|
|
317
|
+
"onUpdate:total": l[8] || (l[8] = (e) => R(b) ? b.value = e : null),
|
|
329
318
|
"current-page": r.value.curPage,
|
|
330
|
-
"onUpdate:currentPage":
|
|
319
|
+
"onUpdate:currentPage": l[9] || (l[9] = (e) => r.value.curPage = e),
|
|
331
320
|
"page-size": r.value.pageSize,
|
|
332
|
-
"onUpdate:pageSize":
|
|
333
|
-
onPagination:
|
|
334
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
321
|
+
"onUpdate:pageSize": l[10] || (l[10] = (e) => r.value.pageSize = e),
|
|
322
|
+
onPagination: l[11] || (l[11] = (e) => a(n).getList())
|
|
323
|
+
}, null, 8, ["total", "current-page", "page-size"])) : le("", !0)
|
|
335
324
|
]),
|
|
336
|
-
default:
|
|
325
|
+
default: o(() => [
|
|
337
326
|
t(J, {
|
|
338
327
|
ref_key: "multipleTableRef",
|
|
339
|
-
ref:
|
|
328
|
+
ref: k,
|
|
340
329
|
"row-key": "spuId",
|
|
341
|
-
"list-loading": a(
|
|
342
|
-
data: a(
|
|
330
|
+
"list-loading": a(q),
|
|
331
|
+
data: a(H),
|
|
343
332
|
"table-label": a(h),
|
|
344
|
-
onSelectionChange:
|
|
333
|
+
onSelectionChange: F,
|
|
345
334
|
onSortChange: K
|
|
346
335
|
}, {
|
|
347
|
-
shopId:
|
|
348
|
-
d("span", null,
|
|
336
|
+
shopId: o((e) => [
|
|
337
|
+
d("span", null, p(a(c).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
349
338
|
]),
|
|
350
|
-
categoryId:
|
|
351
|
-
d("span", null,
|
|
339
|
+
categoryId: o((e) => [
|
|
340
|
+
d("span", null, p(a(c).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
|
|
352
341
|
]),
|
|
353
|
-
picUrls:
|
|
342
|
+
picUrls: o((e) => [
|
|
354
343
|
d("span", null, [
|
|
355
344
|
t(G, {
|
|
356
|
-
src: a(
|
|
345
|
+
src: a(E).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
357
346
|
"preview-src-list": [
|
|
358
|
-
a(
|
|
347
|
+
a(E).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
359
348
|
],
|
|
360
349
|
"preview-teleported": "",
|
|
361
350
|
"hide-on-click-modal": "",
|
|
@@ -363,55 +352,53 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be
|
|
|
363
352
|
}, null, 8, ["src", "preview-src-list"])
|
|
364
353
|
])
|
|
365
354
|
]),
|
|
366
|
-
shelf:
|
|
355
|
+
shelf: o((e) => [
|
|
367
356
|
d("span", null, [
|
|
368
357
|
t(U, {
|
|
369
358
|
modelValue: e.data.row.shelf,
|
|
370
|
-
"onUpdate:modelValue": (
|
|
371
|
-
onClick: (
|
|
359
|
+
"onUpdate:modelValue": (f) => e.data.row.shelf = f,
|
|
360
|
+
onClick: (f) => a(n).enableRecord(e.data.row, e.data.row.shelf)
|
|
372
361
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
373
362
|
])
|
|
374
363
|
]),
|
|
375
|
-
minPrice:
|
|
376
|
-
d("span", null,
|
|
364
|
+
minPrice: o((e) => [
|
|
365
|
+
d("span", null, [
|
|
366
|
+
e.data.row.minPrice === e.data.row.maxPrice ? (i(), v(z, { key: 0 }, [
|
|
367
|
+
m(p(e.data.row.minPrice), 1)
|
|
368
|
+
], 64)) : (i(), v(z, { key: 1 }, [
|
|
369
|
+
m(p(e.data.row.minPrice) + " ~ " + p(e.data.row.maxPrice), 1)
|
|
370
|
+
], 64))
|
|
371
|
+
])
|
|
377
372
|
]),
|
|
378
|
-
specType:
|
|
379
|
-
d("span", null,
|
|
373
|
+
specType: o((e) => [
|
|
374
|
+
d("span", null, p(a(c).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
380
375
|
]),
|
|
381
|
-
approvalStatus:
|
|
382
|
-
d("span", null,
|
|
376
|
+
approvalStatus: o((e) => [
|
|
377
|
+
d("span", null, p(a(c).approvalStatusEnum.getEnumValue(
|
|
383
378
|
e.data.row.approvalStatus
|
|
384
379
|
)), 1)
|
|
385
380
|
]),
|
|
386
|
-
updateTime:
|
|
387
|
-
d("span", null,
|
|
381
|
+
updateTime: o((e) => [
|
|
382
|
+
d("span", null, p(a(B).$moment.formatDate(
|
|
388
383
|
e.data.row.updateTime,
|
|
389
384
|
"YYYY-MM-DD HH:mm:ss"
|
|
390
385
|
)), 1)
|
|
391
386
|
]),
|
|
392
|
-
enable:
|
|
387
|
+
enable: o((e) => [
|
|
393
388
|
t(U, {
|
|
394
389
|
modelValue: e.data.row.enable,
|
|
395
|
-
"onUpdate:modelValue": (
|
|
396
|
-
onChange: (
|
|
390
|
+
"onUpdate:modelValue": (f) => e.data.row.enable = f,
|
|
391
|
+
onChange: (f) => a(n).enableRecord(e.data.row, e.data.row.enable)
|
|
397
392
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
398
393
|
]),
|
|
399
|
-
operation:
|
|
400
|
-
|
|
394
|
+
operation: o((e) => [
|
|
395
|
+
V((i(), v("span", {
|
|
401
396
|
class: "el-button-color",
|
|
402
|
-
onClick: (
|
|
403
|
-
}, [
|
|
404
|
-
c(u(s.$t("common.delete")), 1)
|
|
405
|
-
], 8, ue)), [
|
|
406
|
-
[w, ["goods:goods_spu:delete"]]
|
|
407
|
-
]),
|
|
408
|
-
y((i(), I("span", {
|
|
409
|
-
class: "el-button-color dropdown-left",
|
|
410
|
-
onClick: (m) => Q(e.data.row)
|
|
397
|
+
onClick: (f) => Y(e.data.row)
|
|
411
398
|
}, [
|
|
412
|
-
|
|
399
|
+
m(p(s.$t("common.view")), 1)
|
|
413
400
|
], 8, pe)), [
|
|
414
|
-
[
|
|
401
|
+
[C, ["goods:goods_spu:view"]]
|
|
415
402
|
])
|
|
416
403
|
]),
|
|
417
404
|
_: 1
|
|
@@ -424,5 +411,5 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be
|
|
|
424
411
|
}
|
|
425
412
|
});
|
|
426
413
|
export {
|
|
427
|
-
|
|
414
|
+
we as _
|
|
428
415
|
};
|