xyvcard-goods 0.0.9 → 0.0.11

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.
Files changed (22) hide show
  1. package/dist/{approveFailIndex-DJf9bHab.mjs → approveFailIndex-B-VGnf1U.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs} +113 -107
  3. package/dist/{auditIndex-CCkGsSy2.mjs → auditIndex-tEq8uYdA.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs → auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs} +118 -112
  5. package/dist/edit-Bk7YJzrm.mjs +556 -0
  6. package/dist/{index-vcmJ06-Y.mjs → index-C9LeLF51.mjs} +158 -149
  7. package/dist/index.mjs +3 -3
  8. package/dist/{info-CPZykxS1.mjs → info-lw-aEq4N.mjs} +1 -1
  9. package/dist/{saleIndex-CdAcvCzO.mjs → saleIndex-B7TBQOB6.mjs} +1 -1
  10. 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
  11. package/dist/{shelfIndex-ZHuhzU_h.mjs → shelfIndex-BfsIMQfD.mjs} +1 -1
  12. 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
  13. package/dist/{skuForm-BSlT4TYd.mjs → skuForm-DuMlHj7f.mjs} +11 -5
  14. package/dist/{skuTable-DYmQYXk3.mjs → skuTable-BlK2s902.mjs} +173 -159
  15. package/dist/style.css +1 -1
  16. package/dts/api/goods-spu/types.d.ts +1 -1
  17. package/dts/components/EnumRadio/index.vue.d.ts +4 -3
  18. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +10 -18
  19. package/dts/components/ImageUpload.vue.d.ts +36 -0
  20. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +1 -1
  21. package/package.json +17 -17
  22. 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-D37yka6Z.mjs"), Ws = () => import("./info-CPZykxS1.mjs"), Fs = [
65
+ const Ns = () => import("./edit-Bk7YJzrm.mjs"), Ws = () => import("./info-lw-aEq4N.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-DJf9bHab.mjs"), "./views/goods/goods-spu/auditIndex.vue": () => import("./auditIndex-CCkGsSy2.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-D37yka6Z.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-vcmJ06-Y.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-CPZykxS1.mjs"), "./views/goods/goods-spu/saleIndex.vue": () => import("./saleIndex-CdAcvCzO.mjs"), "./views/goods/goods-spu/shelfIndex.vue": () => import("./shelfIndex-ZHuhzU_h.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-BSlT4TYd.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-DYmQYXk3.mjs").then((e) => e.a) }), Ei = {
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-Bk7YJzrm.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-C9LeLF51.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-lw-aEq4N.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-DuMlHj7f.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-BlK2s902.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-DYmQYXk3.mjs";
5
+ import { s as z } from "./skuTable-BlK2s902.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,4 +1,4 @@
1
- import { _ as f } from "./saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs";
1
+ import { _ as f } from "./saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,27 +1,27 @@
1
- import { defineComponent as Z, getCurrentInstance as x, ref as D, resolveComponent as p, resolveDirective as ee, openBlock as i, createElementBlock as I, createElementVNode as d, createVNode as t, withCtx as l, unref as a, withKeys as P, createTextVNode as c, toDisplayString as u, withDirectives as y, createBlock as V, isRef as R, createCommentVNode as oe } from "vue";
2
- import { ElMessage as z } from "element-plus";
3
- import { useRouter as le } from "vue-router";
4
- import { useTableHooks as te, fileApi as j } from "jmash-core";
5
- import { useI18n as ae } from "vue-i18n";
6
- import { goodsSpuApi as E } from "./index.mjs";
7
- import { C as se, D as g } from "./index-CKeHa-Cx.mjs";
8
- const ne = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], be = /* @__PURE__ */ Z({
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: v } = ae(), T = le(), { proxy: A } = x(), r = D({
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: se.APPROVAL_PASS
15
+ approvalStatus: ne.APPROVAL_PASS
16
16
  }), {
17
17
  tableHooks: n,
18
- multipleTableRef: $,
19
- queryFormRef: B,
20
- listLoading: L,
21
- tableData: q,
22
- total: _
23
- } = te(v, E, r);
24
- let h = D([
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
- g.shopInfoBizDict.useValues(), g.goodsCategoryDict.useValues();
123
- function H() {
122
+ c.shopInfoBizDict.useValues(), c.goodsCategoryDict.useValues();
123
+ function Q() {
124
124
  T.push({ path: "/rawgoods/goods-spu/edit" });
125
125
  }
126
- function Q(s) {
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 Y(s) {
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
- z({
141
- message: v("goodsSpu.chooseShelf"),
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((o) => o.spuId);
147
- E.enable({ spuId: s }, !1).then((o) => {
148
- var S;
149
- o.status === 200 && z({
150
- message: v("goodsSpu.successOffShelf") + o.data + v("common.stripData"),
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(), (S = $.value) == null || S.clearSelection();
152
+ }), n.getList(), (y = k.value) == null || y.clearSelection();
153
153
  });
154
154
  }
155
- return n.getList(), (s, o) => {
156
- const S = p("jmash-select"), C = p("el-form-item"), f = p("el-col"), N = p("el-input"), b = p("el-button"), k = p("el-row"), O = p("el-form"), F = 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
- return i(), I("div", null, [
158
- d("div", ne, [
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: B,
161
+ ref: L,
162
162
  model: r.value,
163
163
  inline: !0
164
164
  }, {
165
- default: l(() => [
166
- t(k, null, {
167
- default: l(() => [
168
- t(f, { span: 6 }, {
169
- default: l(() => [
170
- t(C, {
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: l(() => [
175
- t(S, {
174
+ default: o(() => [
175
+ t(y, {
176
176
  modelValue: r.value.shopId,
177
- "onUpdate:modelValue": o[0] || (o[0] = (e) => r.value.shopId = e),
177
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => r.value.shopId = e),
178
178
  placeholder: s.$t("goodsSpu.shopIdRequired"),
179
- data: a(g).shopInfoBizDict.values,
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(f, { span: 6 }, {
189
- default: l(() => [
190
- t(C, {
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: l(() => [
194
+ default: o(() => [
195
195
  t(N, {
196
196
  modelValue: r.value.spuCode,
197
- "onUpdate:modelValue": o[1] || (o[1] = (e) => r.value.spuCode = e),
197
+ "onUpdate:modelValue": l[1] || (l[1] = (e) => r.value.spuCode = e),
198
198
  placeholder: s.$t("goodsSpu.spuCode"),
199
- onKeyup: o[2] || (o[2] = P((e) => a(n).handleQuery(), ["enter"])),
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(f, { span: 6 }, {
209
- default: l(() => [
210
- t(C, {
208
+ t(g, { span: 6 }, {
209
+ default: o(() => [
210
+ t(S, {
211
211
  label: s.$t("goodsSpu.spuName"),
212
- prop: "spuName"
212
+ prop: "likeSpuName"
213
213
  }, {
214
- default: l(() => [
214
+ default: o(() => [
215
215
  t(N, {
216
- modelValue: r.value.spuName,
217
- "onUpdate:modelValue": o[3] || (o[3] = (e) => r.value.spuName = e),
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: o[4] || (o[4] = P((e) => a(n).handleQuery(), ["enter"])),
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(f, { span: 6 }, {
229
- default: l(() => [
230
- t(C, { class: "search-btn" }, {
231
- default: l(() => [
232
- t(b, {
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: o[5] || (o[5] = (e) => a(n).handleQuery())
234
+ onClick: l[5] || (l[5] = (e) => a(n).handleQuery())
235
235
  }, {
236
- default: l(() => [
237
- c(u(s.$t("common.search")), 1)
236
+ default: o(() => [
237
+ m(p(s.$t("common.search")), 1)
238
238
  ]),
239
239
  _: 1
240
240
  }),
241
- t(b, {
242
- onClick: o[6] || (o[6] = (e) => a(n).resetQuery())
241
+ t(_, {
242
+ onClick: l[6] || (l[6] = (e) => a(n).resetQuery())
243
243
  }, {
244
- default: l(() => [
245
- c(u(s.$t("common.reset")), 1)
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: l(() => [
267
- t(k, null, {
268
- default: l(() => [
269
- t(f, { span: 17 }, {
270
- default: l(() => [
271
- y((i(), V(b, {
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: o[7] || (o[7] = (e) => a(n).deleteRecords())
273
+ onClick: Q
285
274
  }, {
286
- default: l(() => [
287
- c(u(s.$t("common.batchDelete")), 1)
275
+ default: o(() => [
276
+ m(p(s.$t("common.add")), 1)
288
277
  ]),
289
278
  _: 1
290
279
  })), [
291
- [w, ["goods:goods_spu:delete"]]
280
+ [C, ["goods:goods_spu:add"]]
292
281
  ]),
293
- y((i(), V(b, {
282
+ V((i(), I(_, {
294
283
  type: "primary",
295
284
  onClick: M
296
285
  }, {
297
- default: l(() => [
298
- c(u(s.$t("goodsSpu.batchOffShelf")), 1)
286
+ default: o(() => [
287
+ m(p(s.$t("goodsSpu.batchOffShelf")), 1)
299
288
  ]),
300
289
  _: 1
301
290
  })), [
302
- [w, ["goods:goods_spu:onSale"]]
291
+ [C, ["goods:goods_spu:onSale"]]
303
292
  ])
304
293
  ]),
305
294
  _: 1
306
295
  }),
307
- t(f, {
296
+ t(g, {
308
297
  span: 7,
309
298
  class: "container-float"
310
299
  }, {
311
- default: l(() => [
312
- t(F, {
300
+ default: o(() => [
301
+ t(x, {
313
302
  modelValue: a(h),
314
- "onUpdate:modelValue": o[8] || (o[8] = (e) => R(h) ? h.value = e : h = e),
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: l(() => [
325
- a(_) > 0 ? (i(), V(W, {
313
+ footer: o(() => [
314
+ a(b) > 0 ? (i(), I(W, {
326
315
  key: 0,
327
- total: a(_),
328
- "onUpdate:total": o[9] || (o[9] = (e) => R(_) ? _.value = e : null),
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": o[10] || (o[10] = (e) => r.value.curPage = e),
319
+ "onUpdate:currentPage": l[9] || (l[9] = (e) => r.value.curPage = e),
331
320
  "page-size": r.value.pageSize,
332
- "onUpdate:pageSize": o[11] || (o[11] = (e) => r.value.pageSize = e),
333
- onPagination: o[12] || (o[12] = (e) => a(n).getList())
334
- }, null, 8, ["total", "current-page", "page-size"])) : oe("", !0)
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: l(() => [
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(L),
342
- data: a(q),
330
+ "list-loading": a(q),
331
+ data: a(H),
343
332
  "table-label": a(h),
344
- onSelectionChange: Y,
333
+ onSelectionChange: F,
345
334
  onSortChange: K
346
335
  }, {
347
- shopId: l((e) => [
348
- d("span", null, u(a(g).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
336
+ shopId: o((e) => [
337
+ d("span", null, p(a(c).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
349
338
  ]),
350
- categoryId: l((e) => [
351
- d("span", null, u(a(g).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
339
+ categoryId: o((e) => [
340
+ d("span", null, p(a(c).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
352
341
  ]),
353
- picUrls: l((e) => [
342
+ picUrls: o((e) => [
354
343
  d("span", null, [
355
344
  t(G, {
356
- src: a(j).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
345
+ src: a(E).imageUrl(e.data.row.picUrls.split(",")[0], 50, 50),
357
346
  "preview-src-list": [
358
- a(j).imageUrl(e.data.row.picUrls.split(",")[0])
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: l((e) => [
355
+ shelf: o((e) => [
367
356
  d("span", null, [
368
357
  t(U, {
369
358
  modelValue: e.data.row.shelf,
370
- "onUpdate:modelValue": (m) => e.data.row.shelf = m,
371
- onClick: (m) => a(n).enableRecord(e.data.row, e.data.row.shelf)
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: l((e) => [
376
- d("span", null, u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
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: l((e) => [
379
- d("span", null, u(a(g).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
373
+ specType: o((e) => [
374
+ d("span", null, p(a(c).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
380
375
  ]),
381
- approvalStatus: l((e) => [
382
- d("span", null, u(a(g).approvalStatusEnum.getEnumValue(
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: l((e) => [
387
- d("span", null, u(a(A).$moment.formatDate(
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: l((e) => [
387
+ enable: o((e) => [
393
388
  t(U, {
394
389
  modelValue: e.data.row.enable,
395
- "onUpdate:modelValue": (m) => e.data.row.enable = m,
396
- onChange: (m) => a(n).enableRecord(e.data.row, e.data.row.enable)
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: l((e) => [
400
- y((i(), I("span", {
394
+ operation: o((e) => [
395
+ V((i(), v("span", {
401
396
  class: "el-button-color",
402
- onClick: (m) => a(n).deleteRecord(e.data.row)
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
- c(u(s.$t("common.view")), 1)
399
+ m(p(s.$t("common.view")), 1)
413
400
  ], 8, pe)), [
414
- [w, ["goods:goods_spu:view"]]
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
- be as _
414
+ we as _
428
415
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs";
1
+ import { _ as f } from "./shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs";
2
2
  export {
3
3
  f as default
4
4
  };