xyvcard-goods 0.0.1 → 0.0.2
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-gl8MBbK6.mjs → approveFailIndex-BS-H7i3Y.mjs} +1 -1
- package/dist/{approvedIndex.vue_vue_type_script_setup_true_lang-Wyt6TM2h.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CebPGseh.mjs} +111 -94
- package/dist/{auditIndex-jOIDtl_l.mjs → auditIndex-DHQPvPdG.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-sZD3eYJR.mjs → auditIndex.vue_vue_type_script_setup_true_lang-B-ghb-zu.mjs} +142 -125
- package/dist/{edit-DpIovEhA.mjs → edit-DOqDV4qb.mjs} +3792 -3789
- package/dist/{index-C9KO9AZw.mjs → el-message-D15RmjW3.mjs} +368 -367
- package/dist/{index-BupW0ufK.mjs → index-CIN1Wvug.mjs} +102 -75
- package/dist/{index-C9f6Lybt.mjs → index-CZD7OAWo.mjs} +49 -30
- package/dist/index.mjs +519 -593
- package/dist/info-MqipS9Ok.mjs +311 -0
- package/dist/{saleIndex-DOcefF_x.mjs → saleIndex-D2vlM6ww.mjs} +1 -1
- package/dist/saleIndex.vue_vue_type_script_setup_true_lang-B1iRvFF9.mjs +428 -0
- package/dist/{shelfIndex-CTAReFV-.mjs → shelfIndex-CEgDzOX1.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-BG3OCeN_.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-DS__493K.mjs} +174 -160
- package/dist/skuForm-BMRF5whq.mjs +419 -0
- package/dist/skuTable-Ddo1obnO.mjs +585 -0
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +13 -6
- package/dts/constant.d.ts +4 -0
- package/dts/lang/goods/en.d.ts +1 -68
- package/dts/lang/goods/zh-cn.d.ts +0 -44
- package/dts/utils/sku.d.ts +19 -0
- package/dts/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
- package/dts/views/goods/goods-spu/skuTable.vue.d.ts +40 -0
- package/package.json +2 -2
- package/dist/approveFailIndex.vue_vue_type_script_setup_true_lang-WJ40OU9K.mjs +0 -544
- package/dist/approvedIndex-Cn6g11xv.mjs +0 -4
- package/dist/info-C6VRixBH.mjs +0 -301
- package/dist/saleIndex.vue_vue_type_script_setup_true_lang-Cfv3a-DK.mjs +0 -415
- package/dist/sku-form-BAi4HkUM.mjs +0 -463
- package/dist/sku-table-CRrisvJ1.mjs +0 -410
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { useTableHooks as
|
|
4
|
-
import { useI18n as
|
|
1
|
+
import { defineComponent as ne, getCurrentInstance as pe, ref as A, resolveComponent as n, resolveDirective as de, openBlock as g, createElementBlock as V, createElementVNode as i, createVNode as l, withCtx as o, unref as s, withKeys as z, createTextVNode as r, toDisplayString as p, withDirectives as v, createBlock as I, isRef as L, createCommentVNode as ue } from "vue";
|
|
2
|
+
import { useRouter as re } from "vue-router";
|
|
3
|
+
import { useTableHooks as ie, fileApi as j } from "jmash-core";
|
|
4
|
+
import { useI18n as me } from "vue-i18n";
|
|
5
5
|
import { g as E } from "./index-fu3gxdt_.mjs";
|
|
6
|
-
import { C as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const _e = { class: "app-container" }, we = { class: "search-container" }, he = ["onClick"], be = ["onClick"], ve = ["onClick"], Pe = /* @__PURE__ */ pe({
|
|
6
|
+
import { C as ce, D as _ } from "./index-CZD7OAWo.mjs";
|
|
7
|
+
import { Z as T } from "./el-message-D15RmjW3.mjs";
|
|
8
|
+
const ge = { class: "app-container" }, fe = { class: "search-container" }, _e = ["onClick"], we = ["onClick"], he = ["onClick"], ke = /* @__PURE__ */ ne({
|
|
10
9
|
__name: "auditIndex",
|
|
11
|
-
setup(
|
|
12
|
-
const { t:
|
|
10
|
+
setup(be) {
|
|
11
|
+
const { t: w } = me(), $ = re(), { proxy: q } = pe(), u = A({
|
|
13
12
|
curPage: 1,
|
|
14
13
|
pageSize: 10,
|
|
15
|
-
approvalStatus:
|
|
16
|
-
}), {
|
|
17
|
-
|
|
14
|
+
approvalStatus: ce.approvaling
|
|
15
|
+
}), {
|
|
16
|
+
tableHooks: d,
|
|
17
|
+
multipleTableRef: N,
|
|
18
|
+
queryFormRef: B,
|
|
19
|
+
listLoading: H,
|
|
20
|
+
tableData: O,
|
|
21
|
+
total: C
|
|
22
|
+
} = ie(w, E, u);
|
|
23
|
+
let y = A([
|
|
18
24
|
{
|
|
19
25
|
label: "goodsSpu.shopId",
|
|
20
26
|
prop: "shopId",
|
|
@@ -112,69 +118,73 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
112
118
|
isColumn: !0
|
|
113
119
|
}
|
|
114
120
|
]);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
visible: !1
|
|
119
|
-
});
|
|
120
|
-
let Q = ue({});
|
|
121
|
-
function Y() {
|
|
122
|
-
B.push({ path: "/rawgoods/goods-spu/edit" });
|
|
121
|
+
_.shopInfoBizDict.useValues(), _.goodsCategoryDict.useValues();
|
|
122
|
+
function Q() {
|
|
123
|
+
$.push({ path: "/rawgoods/goods-spu/edit" });
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
125
|
+
function Y(t) {
|
|
126
|
+
$.push({
|
|
127
|
+
path: "/rawgoods/goods-spu/edit",
|
|
128
|
+
query: { spuId: t.spuId }
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function F(t) {
|
|
132
|
+
$.push({
|
|
133
|
+
path: "/rawgoods/goods-spu/info",
|
|
134
|
+
query: { spuId: t.spuId }
|
|
135
|
+
});
|
|
126
136
|
}
|
|
127
|
-
function
|
|
128
|
-
d.selectionRows.value =
|
|
137
|
+
function K(t) {
|
|
138
|
+
d.selectionRows.value = t;
|
|
129
139
|
}
|
|
130
|
-
function
|
|
131
|
-
d.handleSort(
|
|
140
|
+
function M(t) {
|
|
141
|
+
d.handleSort(t.prop, t.order);
|
|
132
142
|
}
|
|
133
|
-
function
|
|
134
|
-
if (console.log(
|
|
143
|
+
function Z(t) {
|
|
144
|
+
if (console.log(t), d.selectionRows.value.length === 0) {
|
|
135
145
|
T({
|
|
136
|
-
message:
|
|
146
|
+
message: w("goodsSpu.chooseShelf"),
|
|
137
147
|
type: "warning"
|
|
138
148
|
});
|
|
139
149
|
return;
|
|
140
150
|
}
|
|
141
|
-
const
|
|
142
|
-
E.audit({ spuId:
|
|
143
|
-
var
|
|
144
|
-
console.log(
|
|
145
|
-
message:
|
|
151
|
+
const a = d.selectionRows.value.map((m) => m.spuId);
|
|
152
|
+
E.audit({ spuId: a }, t).then((m) => {
|
|
153
|
+
var f;
|
|
154
|
+
console.log(m), m.status === 200 && (t === "APPROVAL_PASS" ? T({
|
|
155
|
+
message: w("goodsSpu.successApproval") + m.data + w("common.stripData"),
|
|
146
156
|
type: "success"
|
|
147
157
|
}) : T({
|
|
148
|
-
message:
|
|
158
|
+
message: w("goodsSpu.successFilled") + m.data + w("common.stripData"),
|
|
149
159
|
type: "success"
|
|
150
|
-
}), d.getList(), (
|
|
160
|
+
}), d.getList(), (f = N.value) == null || f.clearSelection());
|
|
151
161
|
});
|
|
152
162
|
}
|
|
153
|
-
return d.getList(), (
|
|
154
|
-
const
|
|
155
|
-
return
|
|
156
|
-
i("div",
|
|
157
|
-
l(
|
|
163
|
+
return d.getList(), (t, a) => {
|
|
164
|
+
const m = n("jmash-select"), f = n("el-form-item"), h = n("el-col"), P = n("el-input"), S = n("el-button"), U = n("el-row"), G = n("el-form"), J = n("arrow-down"), k = n("el-icon"), W = n("Unlock"), R = n("el-dropdown-item"), X = n("Lock"), x = n("el-dropdown-menu"), ee = n("el-dropdown"), oe = n("jmash-column-select"), le = n("el-image"), D = n("el-switch"), te = n("jmash-table"), ae = n("jmash-pagination"), se = n("el-card"), b = de("hasPerm");
|
|
165
|
+
return g(), V("div", ge, [
|
|
166
|
+
i("div", fe, [
|
|
167
|
+
l(G, {
|
|
158
168
|
ref_key: "queryFormRef",
|
|
159
|
-
ref:
|
|
169
|
+
ref: B,
|
|
160
170
|
model: u.value,
|
|
161
171
|
inline: !0
|
|
162
172
|
}, {
|
|
163
173
|
default: o(() => [
|
|
164
|
-
l(
|
|
174
|
+
l(U, null, {
|
|
165
175
|
default: o(() => [
|
|
166
176
|
l(h, { span: 6 }, {
|
|
167
177
|
default: o(() => [
|
|
168
|
-
l(
|
|
169
|
-
label:
|
|
178
|
+
l(f, {
|
|
179
|
+
label: t.$t("goodsSpu.shopId"),
|
|
170
180
|
prop: "shopId"
|
|
171
181
|
}, {
|
|
172
182
|
default: o(() => [
|
|
173
|
-
l(
|
|
183
|
+
l(m, {
|
|
174
184
|
modelValue: u.value.shopId,
|
|
175
|
-
"onUpdate:modelValue":
|
|
176
|
-
placeholder:
|
|
177
|
-
data: s(
|
|
185
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => u.value.shopId = e),
|
|
186
|
+
placeholder: t.$t("goodsSpu.shopIdRequired"),
|
|
187
|
+
data: s(_).shopInfoBizDict.values,
|
|
178
188
|
filterable: ""
|
|
179
189
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
180
190
|
]),
|
|
@@ -185,16 +195,16 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
185
195
|
}),
|
|
186
196
|
l(h, { span: 6 }, {
|
|
187
197
|
default: o(() => [
|
|
188
|
-
l(
|
|
189
|
-
label:
|
|
198
|
+
l(f, {
|
|
199
|
+
label: t.$t("goodsSpu.spuCode"),
|
|
190
200
|
prop: "spuCode"
|
|
191
201
|
}, {
|
|
192
202
|
default: o(() => [
|
|
193
|
-
l(
|
|
203
|
+
l(P, {
|
|
194
204
|
modelValue: u.value.spuCode,
|
|
195
|
-
"onUpdate:modelValue":
|
|
196
|
-
placeholder:
|
|
197
|
-
onKeyup:
|
|
205
|
+
"onUpdate:modelValue": a[1] || (a[1] = (e) => u.value.spuCode = e),
|
|
206
|
+
placeholder: t.$t("goodsSpu.spuCode"),
|
|
207
|
+
onKeyup: a[2] || (a[2] = z((e) => s(d).handleQuery(), ["enter"])),
|
|
198
208
|
class: "!w-[203px]"
|
|
199
209
|
}, null, 8, ["modelValue", "placeholder"])
|
|
200
210
|
]),
|
|
@@ -205,16 +215,16 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
205
215
|
}),
|
|
206
216
|
l(h, { span: 6 }, {
|
|
207
217
|
default: o(() => [
|
|
208
|
-
l(
|
|
209
|
-
label:
|
|
218
|
+
l(f, {
|
|
219
|
+
label: t.$t("goodsSpu.spuName"),
|
|
210
220
|
prop: "spuName"
|
|
211
221
|
}, {
|
|
212
222
|
default: o(() => [
|
|
213
|
-
l(
|
|
223
|
+
l(P, {
|
|
214
224
|
modelValue: u.value.spuName,
|
|
215
|
-
"onUpdate:modelValue":
|
|
216
|
-
placeholder:
|
|
217
|
-
onKeyup:
|
|
225
|
+
"onUpdate:modelValue": a[3] || (a[3] = (e) => u.value.spuName = e),
|
|
226
|
+
placeholder: t.$t("goodsSpu.spuName"),
|
|
227
|
+
onKeyup: a[4] || (a[4] = z((e) => s(d).handleQuery(), ["enter"])),
|
|
218
228
|
class: "!w-[203px]"
|
|
219
229
|
}, null, 8, ["modelValue", "placeholder"])
|
|
220
230
|
]),
|
|
@@ -225,22 +235,22 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
225
235
|
}),
|
|
226
236
|
l(h, { span: 6 }, {
|
|
227
237
|
default: o(() => [
|
|
228
|
-
l(
|
|
238
|
+
l(f, { class: "search-btn" }, {
|
|
229
239
|
default: o(() => [
|
|
230
240
|
l(S, {
|
|
231
241
|
type: "primary",
|
|
232
|
-
onClick:
|
|
242
|
+
onClick: a[5] || (a[5] = (e) => s(d).handleQuery())
|
|
233
243
|
}, {
|
|
234
244
|
default: o(() => [
|
|
235
|
-
r(p(
|
|
245
|
+
r(p(t.$t("common.search")), 1)
|
|
236
246
|
]),
|
|
237
247
|
_: 1
|
|
238
248
|
}),
|
|
239
249
|
l(S, {
|
|
240
|
-
onClick:
|
|
250
|
+
onClick: a[6] || (a[6] = (e) => s(d).resetQuery())
|
|
241
251
|
}, {
|
|
242
252
|
default: o(() => [
|
|
243
|
-
r(p(
|
|
253
|
+
r(p(t.$t("common.reset")), 1)
|
|
244
254
|
]),
|
|
245
255
|
_: 1
|
|
246
256
|
})
|
|
@@ -257,65 +267,65 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
257
267
|
_: 1
|
|
258
268
|
}, 8, ["model"])
|
|
259
269
|
]),
|
|
260
|
-
l(
|
|
270
|
+
l(se, {
|
|
261
271
|
shadow: "never",
|
|
262
272
|
class: "table-container"
|
|
263
273
|
}, {
|
|
264
274
|
header: o(() => [
|
|
265
|
-
l(
|
|
275
|
+
l(U, null, {
|
|
266
276
|
default: o(() => [
|
|
267
277
|
l(h, { span: 17 }, {
|
|
268
278
|
default: o(() => [
|
|
269
|
-
v((
|
|
279
|
+
v((g(), I(S, {
|
|
270
280
|
type: "primary",
|
|
271
|
-
onClick:
|
|
281
|
+
onClick: Q
|
|
272
282
|
}, {
|
|
273
283
|
default: o(() => [
|
|
274
|
-
r(p(
|
|
284
|
+
r(p(t.$t("common.add")), 1)
|
|
275
285
|
]),
|
|
276
286
|
_: 1
|
|
277
287
|
})), [
|
|
278
288
|
[b, ["goods:goods_spu:add"]]
|
|
279
289
|
]),
|
|
280
|
-
v((
|
|
290
|
+
v((g(), I(S, {
|
|
281
291
|
type: "primary",
|
|
282
|
-
onClick:
|
|
292
|
+
onClick: a[7] || (a[7] = (e) => s(d).deleteRecords())
|
|
283
293
|
}, {
|
|
284
294
|
default: o(() => [
|
|
285
|
-
r(p(
|
|
295
|
+
r(p(t.$t("common.batchDelete")), 1)
|
|
286
296
|
]),
|
|
287
297
|
_: 1
|
|
288
298
|
})), [
|
|
289
299
|
[b, ["goods:goods_spu:delete"]]
|
|
290
300
|
]),
|
|
291
|
-
v((
|
|
301
|
+
v((g(), I(ee, {
|
|
292
302
|
class: "dropdown-left",
|
|
293
|
-
onCommand:
|
|
303
|
+
onCommand: Z
|
|
294
304
|
}, {
|
|
295
305
|
dropdown: o(() => [
|
|
296
|
-
l(
|
|
306
|
+
l(x, null, {
|
|
297
307
|
default: o(() => [
|
|
298
|
-
l(
|
|
308
|
+
l(R, { command: "APPROVAL_PASS" }, {
|
|
299
309
|
default: o(() => [
|
|
300
310
|
l(k, { size: "14" }, {
|
|
301
311
|
default: o(() => [
|
|
302
|
-
l(
|
|
312
|
+
l(W)
|
|
303
313
|
]),
|
|
304
314
|
_: 1
|
|
305
315
|
}),
|
|
306
|
-
r(" " + p(
|
|
316
|
+
r(" " + p(t.$t("goodsSpu.batchApprovaled")), 1)
|
|
307
317
|
]),
|
|
308
318
|
_: 1
|
|
309
319
|
}),
|
|
310
|
-
l(
|
|
320
|
+
l(R, { command: "APPROVAL_NOT_PASS" }, {
|
|
311
321
|
default: o(() => [
|
|
312
322
|
l(k, { size: "14" }, {
|
|
313
323
|
default: o(() => [
|
|
314
|
-
l(
|
|
324
|
+
l(X)
|
|
315
325
|
]),
|
|
316
326
|
_: 1
|
|
317
327
|
}),
|
|
318
|
-
r(" " + p(
|
|
328
|
+
r(" " + p(t.$t("goodsSpu.batchRejected")), 1)
|
|
319
329
|
]),
|
|
320
330
|
_: 1
|
|
321
331
|
})
|
|
@@ -326,10 +336,10 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
326
336
|
default: o(() => [
|
|
327
337
|
l(S, { type: "primary" }, {
|
|
328
338
|
default: o(() => [
|
|
329
|
-
r(p(
|
|
339
|
+
r(p(t.$t("goodsSpu.batchApproval")) + " ", 1),
|
|
330
340
|
l(k, { class: "el-icon--right" }, {
|
|
331
341
|
default: o(() => [
|
|
332
|
-
l(
|
|
342
|
+
l(J)
|
|
333
343
|
]),
|
|
334
344
|
_: 1
|
|
335
345
|
})
|
|
@@ -349,9 +359,9 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
349
359
|
class: "container-float"
|
|
350
360
|
}, {
|
|
351
361
|
default: o(() => [
|
|
352
|
-
l(
|
|
362
|
+
l(oe, {
|
|
353
363
|
modelValue: s(y),
|
|
354
|
-
"onUpdate:modelValue":
|
|
364
|
+
"onUpdate:modelValue": a[8] || (a[8] = (e) => L(y) ? y.value = e : y = e),
|
|
355
365
|
"label-name": "goods/goods-spu"
|
|
356
366
|
}, null, 8, ["modelValue"])
|
|
357
367
|
]),
|
|
@@ -362,39 +372,41 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
362
372
|
})
|
|
363
373
|
]),
|
|
364
374
|
footer: o(() => [
|
|
365
|
-
s(C) > 0 ? (
|
|
375
|
+
s(C) > 0 ? (g(), I(ae, {
|
|
366
376
|
key: 0,
|
|
367
377
|
total: s(C),
|
|
368
|
-
"onUpdate:total":
|
|
378
|
+
"onUpdate:total": a[9] || (a[9] = (e) => L(C) ? C.value = e : null),
|
|
369
379
|
"current-page": u.value.curPage,
|
|
370
|
-
"onUpdate:currentPage":
|
|
380
|
+
"onUpdate:currentPage": a[10] || (a[10] = (e) => u.value.curPage = e),
|
|
371
381
|
"page-size": u.value.pageSize,
|
|
372
|
-
"onUpdate:pageSize":
|
|
373
|
-
onPagination:
|
|
374
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
382
|
+
"onUpdate:pageSize": a[11] || (a[11] = (e) => u.value.pageSize = e),
|
|
383
|
+
onPagination: a[12] || (a[12] = (e) => s(d).getList())
|
|
384
|
+
}, null, 8, ["total", "current-page", "page-size"])) : ue("", !0)
|
|
375
385
|
]),
|
|
376
386
|
default: o(() => [
|
|
377
|
-
l(
|
|
387
|
+
l(te, {
|
|
378
388
|
ref_key: "multipleTableRef",
|
|
379
389
|
ref: N,
|
|
380
390
|
"row-key": "spuId",
|
|
381
|
-
"list-loading": s(
|
|
391
|
+
"list-loading": s(H),
|
|
382
392
|
data: s(O),
|
|
383
393
|
"table-label": s(y),
|
|
384
|
-
onSelectionChange:
|
|
385
|
-
onSortChange:
|
|
394
|
+
onSelectionChange: K,
|
|
395
|
+
onSortChange: M
|
|
386
396
|
}, {
|
|
387
397
|
shopId: o((e) => [
|
|
388
|
-
i("span", null, p(s(
|
|
398
|
+
i("span", null, p(s(_).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
389
399
|
]),
|
|
390
400
|
categoryId: o((e) => [
|
|
391
|
-
i("span", null, p(s(
|
|
401
|
+
i("span", null, p(s(_).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
|
|
392
402
|
]),
|
|
393
403
|
picUrls: o((e) => [
|
|
394
404
|
i("span", null, [
|
|
395
|
-
l(
|
|
405
|
+
l(le, {
|
|
396
406
|
src: s(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
397
|
-
"preview-src-list": [
|
|
407
|
+
"preview-src-list": [
|
|
408
|
+
s(j).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
409
|
+
],
|
|
398
410
|
"preview-teleported": "",
|
|
399
411
|
"hide-on-click-modal": "",
|
|
400
412
|
fit: "contain"
|
|
@@ -403,10 +415,10 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
403
415
|
]),
|
|
404
416
|
shelf: o((e) => [
|
|
405
417
|
i("span", null, [
|
|
406
|
-
l(
|
|
418
|
+
l(D, {
|
|
407
419
|
modelValue: e.data.row.shelf,
|
|
408
|
-
"onUpdate:modelValue": (
|
|
409
|
-
onClick: (
|
|
420
|
+
"onUpdate:modelValue": (c) => e.data.row.shelf = c,
|
|
421
|
+
onClick: (c) => s(d).enableRecord(e.data.row, e.data.row.shelf)
|
|
410
422
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
411
423
|
])
|
|
412
424
|
]),
|
|
@@ -414,45 +426,50 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
414
426
|
i("span", null, p(e.data.row.minPrice) + " ~ " + p(e.data.row.maxPrice), 1)
|
|
415
427
|
]),
|
|
416
428
|
specType: o((e) => [
|
|
417
|
-
i("span", null, p(s(
|
|
429
|
+
i("span", null, p(s(_).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
418
430
|
]),
|
|
419
431
|
approvalStatus: o((e) => [
|
|
420
|
-
i("span", null, p(s(
|
|
432
|
+
i("span", null, p(s(_).approvalStatusEnum.getEnumValue(
|
|
433
|
+
e.data.row.approvalStatus
|
|
434
|
+
)), 1)
|
|
421
435
|
]),
|
|
422
436
|
updateTime: o((e) => [
|
|
423
|
-
i("span", null, p(s(q).$moment.formatDate(
|
|
437
|
+
i("span", null, p(s(q).$moment.formatDate(
|
|
438
|
+
e.data.row.updateTime,
|
|
439
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
440
|
+
)), 1)
|
|
424
441
|
]),
|
|
425
442
|
enable: o((e) => [
|
|
426
|
-
l(
|
|
443
|
+
l(D, {
|
|
427
444
|
modelValue: e.data.row.enable,
|
|
428
|
-
"onUpdate:modelValue": (
|
|
429
|
-
onChange: (
|
|
445
|
+
"onUpdate:modelValue": (c) => e.data.row.enable = c,
|
|
446
|
+
onChange: (c) => s(d).enableRecord(e.data.row, e.data.row.enable)
|
|
430
447
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
431
448
|
]),
|
|
432
449
|
operation: o((e) => [
|
|
433
|
-
v((
|
|
450
|
+
v((g(), V("span", {
|
|
434
451
|
class: "el-button-color",
|
|
435
|
-
onClick: (
|
|
452
|
+
onClick: (c) => Y(e.data.row)
|
|
436
453
|
}, [
|
|
437
|
-
r(p(
|
|
438
|
-
], 8,
|
|
454
|
+
r(p(t.$t("common.edit")), 1)
|
|
455
|
+
], 8, _e)), [
|
|
439
456
|
[b, ["goods:goods_spu:update"]]
|
|
440
457
|
]),
|
|
441
|
-
v((
|
|
458
|
+
v((g(), V("span", {
|
|
442
459
|
class: "el-button-color dropdown-left",
|
|
443
|
-
onClick: (
|
|
460
|
+
onClick: (c) => s(d).deleteRecord(e.data.row)
|
|
444
461
|
}, [
|
|
445
|
-
r(p(
|
|
446
|
-
], 8,
|
|
462
|
+
r(p(t.$t("common.delete")), 1)
|
|
463
|
+
], 8, we)), [
|
|
447
464
|
[b, ["goods:goods_spu:delete"]]
|
|
448
465
|
]),
|
|
449
|
-
v((
|
|
466
|
+
v((g(), V("span", {
|
|
450
467
|
class: "el-button-color dropdown-left",
|
|
451
|
-
onClick: (
|
|
468
|
+
onClick: (c) => F(e.data.row)
|
|
452
469
|
}, [
|
|
453
|
-
r(p(
|
|
454
|
-
], 8,
|
|
455
|
-
[b, ["goods:goods_spu:
|
|
470
|
+
r(p(t.$t("common.view")), 1)
|
|
471
|
+
], 8, he)), [
|
|
472
|
+
[b, ["goods:goods_spu:view"]]
|
|
456
473
|
])
|
|
457
474
|
]),
|
|
458
475
|
_: 1
|
|
@@ -465,5 +482,5 @@ const _e = { class: "app-container" }, we = { class: "search-container" }, he =
|
|
|
465
482
|
}
|
|
466
483
|
});
|
|
467
484
|
export {
|
|
468
|
-
|
|
485
|
+
ke as _
|
|
469
486
|
};
|