xyvcard-goods 0.0.8 → 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-BecI6njE.mjs → approveFailIndex-B-VGnf1U.mjs} +1 -1
- package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-1FXHUoMJ.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs} +116 -110
- package/dist/{auditIndex-ByyMgebr.mjs → auditIndex-tEq8uYdA.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DT2irP9g.mjs → auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs} +128 -122
- package/dist/edit-FCXD46Ef.mjs +556 -0
- package/dist/{index-BypI3ZNk.mjs → index-C9LeLF51.mjs} +174 -165
- package/dist/{index-AZ4TxL-_.mjs → index-CKeHa-Cx.mjs} +55 -55
- package/dist/index.mjs +9 -38
- package/dist/{info-BJ1Ld_6D.mjs → info-CScBSLKA.mjs} +27 -27
- package/dist/{saleIndex-CBtuv6um.mjs → saleIndex-B7TBQOB6.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-Cxv3foxp.mjs → saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs} +133 -146
- package/dist/{shelfIndex-CykEAeD4.mjs → shelfIndex-BfsIMQfD.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-UPt1ZDpP.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs} +122 -116
- package/dist/{skuForm-DdiMztDh.mjs → skuForm-CRnWdE9n.mjs} +57 -51
- package/dist/skuTable-Ck7bJzYP.mjs +536 -0
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +1 -1
- package/dts/components/ImageUpload.vue.d.ts +36 -0
- package/dts/constant.d.ts +4 -4
- package/dts/router/index.d.ts +2 -2
- package/package.json +65 -65
- package/dist/edit-BWUxDk9Y.mjs +0 -594
- package/dist/skuTable-Cg06m_5i.mjs +0 -606
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { useTableHooks as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { goodsSpuApi as
|
|
7
|
-
import { D as g } from "./index-
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as ee, getCurrentInstance as oe, ref as D, resolveComponent as p, resolveDirective as le, openBlock as r, createElementBlock as w, createElementVNode as m, createVNode as a, withCtx as l, unref as s, withKeys as P, createTextVNode as i, toDisplayString as n, withDirectives as b, createBlock as I, isRef as R, createCommentVNode as te, Fragment as z } from "vue";
|
|
2
|
+
import { ElMessage as j } from "element-plus";
|
|
3
|
+
import { useRouter as ae } from "vue-router";
|
|
4
|
+
import { useTableHooks as se, fileApi as E } from "jmash-core";
|
|
5
|
+
import { useI18n as ne } from "vue-i18n";
|
|
6
|
+
import { goodsSpuApi as q } from "./index.mjs";
|
|
7
|
+
import { D as g } from "./index-CKeHa-Cx.mjs";
|
|
8
|
+
const ue = { class: "search-container" }, pe = ["onClick"], de = ["onClick"], re = ["onClick"], ye = /* @__PURE__ */ ee({
|
|
9
9
|
__name: "shelfIndex",
|
|
10
|
-
setup(
|
|
11
|
-
const { t:
|
|
10
|
+
setup(ie) {
|
|
11
|
+
const { t: v } = ne(), k = ae(), { proxy: B } = oe(), d = D({
|
|
12
12
|
curPage: 1,
|
|
13
13
|
pageSize: 10,
|
|
14
14
|
shelf: "false"
|
|
15
15
|
}), {
|
|
16
|
-
tableHooks:
|
|
17
|
-
multipleTableRef:
|
|
18
|
-
queryFormRef:
|
|
19
|
-
listLoading:
|
|
20
|
-
tableData:
|
|
21
|
-
total:
|
|
22
|
-
} =
|
|
23
|
-
let
|
|
16
|
+
tableHooks: u,
|
|
17
|
+
multipleTableRef: $,
|
|
18
|
+
queryFormRef: L,
|
|
19
|
+
listLoading: H,
|
|
20
|
+
tableData: Q,
|
|
21
|
+
total: S
|
|
22
|
+
} = se(v, q, d);
|
|
23
|
+
let y = D([
|
|
24
24
|
{
|
|
25
25
|
label: "goodsSpu.shopId",
|
|
26
26
|
prop: "shopId",
|
|
27
27
|
slotName: "shopId",
|
|
28
28
|
columnType: "slot",
|
|
29
|
-
width: "
|
|
29
|
+
width: "250",
|
|
30
30
|
isColumn: !0
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
label: "goodsSpu.spuName",
|
|
34
34
|
prop: "spuName",
|
|
35
|
-
width: "
|
|
35
|
+
width: "200",
|
|
36
36
|
isColumn: !0
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -54,7 +54,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
54
54
|
{
|
|
55
55
|
label: "goodsSpu.price",
|
|
56
56
|
prop: "minPrice",
|
|
57
|
-
width: "
|
|
57
|
+
width: "120",
|
|
58
58
|
sortable: "custom",
|
|
59
59
|
slotName: "minPrice",
|
|
60
60
|
columnType: "slot",
|
|
@@ -63,7 +63,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
63
63
|
{
|
|
64
64
|
label: "goodsSpu.spuCode",
|
|
65
65
|
prop: "spuCode",
|
|
66
|
-
width: "
|
|
66
|
+
width: "120",
|
|
67
67
|
sortable: "custom",
|
|
68
68
|
isColumn: !0
|
|
69
69
|
},
|
|
@@ -77,7 +77,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
77
77
|
{
|
|
78
78
|
label: "goodsSpu.specType",
|
|
79
79
|
prop: "specType",
|
|
80
|
-
width: "
|
|
80
|
+
width: "120",
|
|
81
81
|
slotName: "specType",
|
|
82
82
|
columnType: "slot",
|
|
83
83
|
sortable: "custom",
|
|
@@ -86,7 +86,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
86
86
|
{
|
|
87
87
|
label: "goodsSpu.shelf",
|
|
88
88
|
prop: "shelf",
|
|
89
|
-
width: "
|
|
89
|
+
width: "120",
|
|
90
90
|
slotName: "shelf",
|
|
91
91
|
columnType: "slot",
|
|
92
92
|
sortable: "custom",
|
|
@@ -95,7 +95,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
95
95
|
{
|
|
96
96
|
label: "goodsSpu.approvalStatus",
|
|
97
97
|
prop: "approvalStatus",
|
|
98
|
-
width: "
|
|
98
|
+
width: "120",
|
|
99
99
|
slotName: "approvalStatus",
|
|
100
100
|
columnType: "slot",
|
|
101
101
|
isColumn: !0
|
|
@@ -119,51 +119,51 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
119
119
|
}
|
|
120
120
|
]);
|
|
121
121
|
g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
|
|
122
|
-
function
|
|
123
|
-
|
|
122
|
+
function Y() {
|
|
123
|
+
k.push({ path: "/rawgoods/goods-spu/edit" });
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function A(t) {
|
|
126
|
+
k.push({
|
|
127
127
|
path: "/rawgoods/goods-spu/edit",
|
|
128
128
|
query: { spuId: t.spuId }
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
131
|
+
function F(t) {
|
|
132
|
+
k.push({
|
|
133
133
|
path: "/rawgoods/goods-spu/info",
|
|
134
134
|
query: { spuId: t.spuId }
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
function K(t) {
|
|
138
|
-
|
|
138
|
+
u.selectionRows.value = t;
|
|
139
139
|
}
|
|
140
140
|
function M(t) {
|
|
141
|
-
|
|
141
|
+
u.handleSort(t.prop, t.order);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
message:
|
|
143
|
+
function G() {
|
|
144
|
+
if (u.selectionRows.value.length === 0) {
|
|
145
|
+
j({
|
|
146
|
+
message: v("goodsSpu.chooseShelf"),
|
|
147
147
|
type: "warning"
|
|
148
148
|
});
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
const t =
|
|
152
|
-
|
|
151
|
+
const t = u.selectionRows.value.map((o) => o.spuId);
|
|
152
|
+
q.enable({ spuId: t }, !0).then((o) => {
|
|
153
153
|
var C;
|
|
154
|
-
o.status === 200 && (
|
|
155
|
-
message:
|
|
154
|
+
o.status === 200 && (j({
|
|
155
|
+
message: v("goodsSpu.successShelf") + o.data + v("common.stripData"),
|
|
156
156
|
type: "success"
|
|
157
|
-
}),
|
|
157
|
+
}), u.getList(), (C = $.value) == null || C.clearSelection());
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
return
|
|
161
|
-
const C = p("jmash-select"),
|
|
162
|
-
return
|
|
163
|
-
|
|
164
|
-
a(
|
|
160
|
+
return u.getList(), (t, o) => {
|
|
161
|
+
const C = p("jmash-select"), V = p("el-form-item"), f = p("el-col"), T = p("el-input"), _ = p("el-button"), N = p("el-row"), J = p("el-form"), O = p("jmash-column-select"), W = p("el-image"), U = p("el-switch"), X = p("jmash-table"), Z = p("jmash-pagination"), x = p("el-card"), h = le("hasPerm");
|
|
162
|
+
return r(), w("div", null, [
|
|
163
|
+
m("div", ue, [
|
|
164
|
+
a(J, {
|
|
165
165
|
ref_key: "queryFormRef",
|
|
166
|
-
ref:
|
|
166
|
+
ref: L,
|
|
167
167
|
model: d.value,
|
|
168
168
|
inline: !0
|
|
169
169
|
}, {
|
|
@@ -172,7 +172,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
172
172
|
default: l(() => [
|
|
173
173
|
a(f, { span: 6 }, {
|
|
174
174
|
default: l(() => [
|
|
175
|
-
a(
|
|
175
|
+
a(V, {
|
|
176
176
|
label: t.$t("goodsSpu.shopId"),
|
|
177
177
|
prop: "shopId"
|
|
178
178
|
}, {
|
|
@@ -192,16 +192,16 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
192
192
|
}),
|
|
193
193
|
a(f, { span: 6 }, {
|
|
194
194
|
default: l(() => [
|
|
195
|
-
a(
|
|
195
|
+
a(V, {
|
|
196
196
|
label: t.$t("goodsSpu.spuCode"),
|
|
197
197
|
prop: "spuCode"
|
|
198
198
|
}, {
|
|
199
199
|
default: l(() => [
|
|
200
|
-
a(
|
|
200
|
+
a(T, {
|
|
201
201
|
modelValue: d.value.spuCode,
|
|
202
202
|
"onUpdate:modelValue": o[1] || (o[1] = (e) => d.value.spuCode = e),
|
|
203
203
|
placeholder: t.$t("goodsSpu.spuCode"),
|
|
204
|
-
onKeyup: o[2] || (o[2] =
|
|
204
|
+
onKeyup: o[2] || (o[2] = P((e) => s(u).handleQuery(), ["enter"])),
|
|
205
205
|
class: "!w-[203px]"
|
|
206
206
|
}, null, 8, ["modelValue", "placeholder"])
|
|
207
207
|
]),
|
|
@@ -212,16 +212,16 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
212
212
|
}),
|
|
213
213
|
a(f, { span: 6 }, {
|
|
214
214
|
default: l(() => [
|
|
215
|
-
a(
|
|
215
|
+
a(V, {
|
|
216
216
|
label: t.$t("goodsSpu.spuName"),
|
|
217
|
-
prop: "
|
|
217
|
+
prop: "likeSpuName"
|
|
218
218
|
}, {
|
|
219
219
|
default: l(() => [
|
|
220
|
-
a(
|
|
221
|
-
modelValue: d.value.
|
|
222
|
-
"onUpdate:modelValue": o[3] || (o[3] = (e) => d.value.
|
|
220
|
+
a(T, {
|
|
221
|
+
modelValue: d.value.likeSpuName,
|
|
222
|
+
"onUpdate:modelValue": o[3] || (o[3] = (e) => d.value.likeSpuName = e),
|
|
223
223
|
placeholder: t.$t("goodsSpu.spuName"),
|
|
224
|
-
onKeyup: o[4] || (o[4] =
|
|
224
|
+
onKeyup: o[4] || (o[4] = P((e) => s(u).handleQuery(), ["enter"])),
|
|
225
225
|
class: "!w-[203px]"
|
|
226
226
|
}, null, 8, ["modelValue", "placeholder"])
|
|
227
227
|
]),
|
|
@@ -232,22 +232,22 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
232
232
|
}),
|
|
233
233
|
a(f, { span: 6 }, {
|
|
234
234
|
default: l(() => [
|
|
235
|
-
a(
|
|
235
|
+
a(V, { class: "search-btn" }, {
|
|
236
236
|
default: l(() => [
|
|
237
|
-
a(
|
|
237
|
+
a(_, {
|
|
238
238
|
type: "primary",
|
|
239
|
-
onClick: o[5] || (o[5] = (e) => s(
|
|
239
|
+
onClick: o[5] || (o[5] = (e) => s(u).handleQuery())
|
|
240
240
|
}, {
|
|
241
241
|
default: l(() => [
|
|
242
|
-
|
|
242
|
+
i(n(t.$t("common.search")), 1)
|
|
243
243
|
]),
|
|
244
244
|
_: 1
|
|
245
245
|
}),
|
|
246
|
-
a(
|
|
247
|
-
onClick: o[6] || (o[6] = (e) => s(
|
|
246
|
+
a(_, {
|
|
247
|
+
onClick: o[6] || (o[6] = (e) => s(u).resetQuery())
|
|
248
248
|
}, {
|
|
249
249
|
default: l(() => [
|
|
250
|
-
|
|
250
|
+
i(n(t.$t("common.reset")), 1)
|
|
251
251
|
]),
|
|
252
252
|
_: 1
|
|
253
253
|
})
|
|
@@ -264,7 +264,7 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
264
264
|
_: 1
|
|
265
265
|
}, 8, ["model"])
|
|
266
266
|
]),
|
|
267
|
-
a(
|
|
267
|
+
a(x, {
|
|
268
268
|
shadow: "never",
|
|
269
269
|
class: "table-container"
|
|
270
270
|
}, {
|
|
@@ -273,34 +273,34 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
273
273
|
default: l(() => [
|
|
274
274
|
a(f, { span: 17 }, {
|
|
275
275
|
default: l(() => [
|
|
276
|
-
b((
|
|
276
|
+
b((r(), I(_, {
|
|
277
277
|
type: "primary",
|
|
278
|
-
onClick:
|
|
278
|
+
onClick: Y
|
|
279
279
|
}, {
|
|
280
280
|
default: l(() => [
|
|
281
|
-
|
|
281
|
+
i(n(t.$t("common.add")), 1)
|
|
282
282
|
]),
|
|
283
283
|
_: 1
|
|
284
284
|
})), [
|
|
285
285
|
[h, ["goods:goods_spu:add"]]
|
|
286
286
|
]),
|
|
287
|
-
b((
|
|
287
|
+
b((r(), I(_, {
|
|
288
288
|
type: "primary",
|
|
289
|
-
onClick: o[7] || (o[7] = (e) => s(
|
|
289
|
+
onClick: o[7] || (o[7] = (e) => s(u).deleteRecords())
|
|
290
290
|
}, {
|
|
291
291
|
default: l(() => [
|
|
292
|
-
|
|
292
|
+
i(n(t.$t("common.batchDelete")), 1)
|
|
293
293
|
]),
|
|
294
294
|
_: 1
|
|
295
295
|
})), [
|
|
296
296
|
[h, ["goods:goods_spu:delete"]]
|
|
297
297
|
]),
|
|
298
|
-
b((
|
|
298
|
+
b((r(), I(_, {
|
|
299
299
|
type: "primary",
|
|
300
|
-
onClick:
|
|
300
|
+
onClick: G
|
|
301
301
|
}, {
|
|
302
302
|
default: l(() => [
|
|
303
|
-
|
|
303
|
+
i(n(t.$t("goodsSpu.batchShelf")), 1)
|
|
304
304
|
]),
|
|
305
305
|
_: 1
|
|
306
306
|
})), [
|
|
@@ -314,9 +314,9 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
314
314
|
class: "container-float"
|
|
315
315
|
}, {
|
|
316
316
|
default: l(() => [
|
|
317
|
-
a(
|
|
318
|
-
modelValue: s(
|
|
319
|
-
"onUpdate:modelValue": o[8] || (o[8] = (e) =>
|
|
317
|
+
a(O, {
|
|
318
|
+
modelValue: s(y),
|
|
319
|
+
"onUpdate:modelValue": o[8] || (o[8] = (e) => R(y) ? y.value = e : y = e),
|
|
320
320
|
"label-name": "goods/goods-spu"
|
|
321
321
|
}, null, 8, ["modelValue"])
|
|
322
322
|
]),
|
|
@@ -327,40 +327,40 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
327
327
|
})
|
|
328
328
|
]),
|
|
329
329
|
footer: l(() => [
|
|
330
|
-
s(
|
|
330
|
+
s(S) > 0 ? (r(), I(Z, {
|
|
331
331
|
key: 0,
|
|
332
|
-
total: s(
|
|
333
|
-
"onUpdate:total": o[9] || (o[9] = (e) =>
|
|
332
|
+
total: s(S),
|
|
333
|
+
"onUpdate:total": o[9] || (o[9] = (e) => R(S) ? S.value = e : null),
|
|
334
334
|
"current-page": d.value.curPage,
|
|
335
335
|
"onUpdate:currentPage": o[10] || (o[10] = (e) => d.value.curPage = e),
|
|
336
336
|
"page-size": d.value.pageSize,
|
|
337
337
|
"onUpdate:pageSize": o[11] || (o[11] = (e) => d.value.pageSize = e),
|
|
338
|
-
onPagination: o[12] || (o[12] = (e) => s(
|
|
339
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
338
|
+
onPagination: o[12] || (o[12] = (e) => s(u).getList())
|
|
339
|
+
}, null, 8, ["total", "current-page", "page-size"])) : te("", !0)
|
|
340
340
|
]),
|
|
341
341
|
default: l(() => [
|
|
342
|
-
a(
|
|
342
|
+
a(X, {
|
|
343
343
|
ref_key: "multipleTableRef",
|
|
344
|
-
ref:
|
|
344
|
+
ref: $,
|
|
345
345
|
"row-key": "spuId",
|
|
346
|
-
"list-loading": s(
|
|
347
|
-
data: s(
|
|
348
|
-
"table-label": s(
|
|
346
|
+
"list-loading": s(H),
|
|
347
|
+
data: s(Q),
|
|
348
|
+
"table-label": s(y),
|
|
349
349
|
onSelectionChange: K,
|
|
350
350
|
onSortChange: M
|
|
351
351
|
}, {
|
|
352
352
|
shopId: l((e) => [
|
|
353
|
-
|
|
353
|
+
m("span", null, n(s(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
|
|
354
354
|
]),
|
|
355
355
|
categoryId: l((e) => [
|
|
356
|
-
|
|
356
|
+
m("span", null, n(s(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
|
|
357
357
|
]),
|
|
358
358
|
picUrls: l((e) => [
|
|
359
|
-
|
|
360
|
-
a(
|
|
361
|
-
src: s(
|
|
359
|
+
m("span", null, [
|
|
360
|
+
a(W, {
|
|
361
|
+
src: s(E).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
|
|
362
362
|
"preview-src-list": [
|
|
363
|
-
s(
|
|
363
|
+
s(E).imageUrl(e.data.row.picUrls.split(",")[0])
|
|
364
364
|
],
|
|
365
365
|
"preview-teleported": "",
|
|
366
366
|
"hide-on-click-modal": "",
|
|
@@ -369,27 +369,33 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
369
369
|
])
|
|
370
370
|
]),
|
|
371
371
|
shelf: l((e) => [
|
|
372
|
-
|
|
372
|
+
m("span", null, [
|
|
373
373
|
a(U, {
|
|
374
374
|
modelValue: e.data.row.shelf,
|
|
375
|
-
"onUpdate:modelValue": (
|
|
376
|
-
onClick: (
|
|
375
|
+
"onUpdate:modelValue": (c) => e.data.row.shelf = c,
|
|
376
|
+
onClick: (c) => s(u).enableRecord(e.data.row, e.data.row.shelf)
|
|
377
377
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
378
378
|
])
|
|
379
379
|
]),
|
|
380
380
|
minPrice: l((e) => [
|
|
381
|
-
|
|
381
|
+
m("span", null, [
|
|
382
|
+
e.data.row.minPrice === e.data.row.maxPrice ? (r(), w(z, { key: 0 }, [
|
|
383
|
+
i(n(e.data.row.minPrice), 1)
|
|
384
|
+
], 64)) : (r(), w(z, { key: 1 }, [
|
|
385
|
+
i(n(e.data.row.minPrice) + " ~ " + n(e.data.row.maxPrice), 1)
|
|
386
|
+
], 64))
|
|
387
|
+
])
|
|
382
388
|
]),
|
|
383
389
|
specType: l((e) => [
|
|
384
|
-
|
|
390
|
+
m("span", null, n(s(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
|
|
385
391
|
]),
|
|
386
392
|
approvalStatus: l((e) => [
|
|
387
|
-
|
|
393
|
+
m("span", null, n(s(g).approvalStatusEnum.getEnumValue(
|
|
388
394
|
e.data.row.approvalStatus
|
|
389
395
|
)), 1)
|
|
390
396
|
]),
|
|
391
397
|
updateTime: l((e) => [
|
|
392
|
-
|
|
398
|
+
m("span", null, n(s(B).$moment.formatDate(
|
|
393
399
|
e.data.row.updateTime,
|
|
394
400
|
"YYYY-MM-DD HH:mm:ss"
|
|
395
401
|
)), 1)
|
|
@@ -397,33 +403,33 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
397
403
|
enable: l((e) => [
|
|
398
404
|
a(U, {
|
|
399
405
|
modelValue: e.data.row.enable,
|
|
400
|
-
"onUpdate:modelValue": (
|
|
401
|
-
onChange: (
|
|
406
|
+
"onUpdate:modelValue": (c) => e.data.row.enable = c,
|
|
407
|
+
onChange: (c) => s(u).enableRecord(e.data.row, e.data.row.enable)
|
|
402
408
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
403
409
|
]),
|
|
404
410
|
operation: l((e) => [
|
|
405
|
-
b((
|
|
411
|
+
b((r(), w("span", {
|
|
406
412
|
class: "el-button-color",
|
|
407
|
-
onClick: (
|
|
413
|
+
onClick: (c) => A(e.data.row)
|
|
408
414
|
}, [
|
|
409
|
-
|
|
410
|
-
], 8,
|
|
415
|
+
i(n(t.$t("common.edit")), 1)
|
|
416
|
+
], 8, pe)), [
|
|
411
417
|
[h, ["goods:goods_spu:update"]]
|
|
412
418
|
]),
|
|
413
|
-
b((
|
|
419
|
+
b((r(), w("span", {
|
|
414
420
|
class: "el-button-color dropdown-left",
|
|
415
|
-
onClick: (
|
|
421
|
+
onClick: (c) => s(u).deleteRecord(e.data.row)
|
|
416
422
|
}, [
|
|
417
|
-
|
|
418
|
-
], 8,
|
|
423
|
+
i(n(t.$t("common.delete")), 1)
|
|
424
|
+
], 8, de)), [
|
|
419
425
|
[h, ["goods:goods_spu:delete"]]
|
|
420
426
|
]),
|
|
421
|
-
b((
|
|
427
|
+
b((r(), w("span", {
|
|
422
428
|
class: "el-button-color dropdown-left",
|
|
423
|
-
onClick: (
|
|
429
|
+
onClick: (c) => F(e.data.row)
|
|
424
430
|
}, [
|
|
425
|
-
|
|
426
|
-
], 8,
|
|
431
|
+
i(n(t.$t("common.view")), 1)
|
|
432
|
+
], 8, re)), [
|
|
427
433
|
[h, ["goods:goods_spu:view"]]
|
|
428
434
|
])
|
|
429
435
|
]),
|
|
@@ -437,5 +443,5 @@ const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], de
|
|
|
437
443
|
}
|
|
438
444
|
});
|
|
439
445
|
export {
|
|
440
|
-
|
|
446
|
+
ye as _
|
|
441
447
|
};
|