xyvcard-goods 0.0.11 → 0.0.12

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.
@@ -2,13 +2,13 @@ import { defineComponent as j, ref as g, watchEffect as O, computed as W, resolv
2
2
  import { ElMessageBox as Y, ElMessage as F } from "element-plus";
3
3
  import { fileApi as k, routerUtil as P } from "jmash-core";
4
4
  import { useI18n as L } from "vue-i18n";
5
- import { _ as x } from "./skuTable-BlK2s902.mjs";
5
+ import { _ as x } from "./skuTable-BBiyXctZ.mjs";
6
6
  import { useRouter as ee, useRoute as le } from "vue-router";
7
7
  import { D as m, C as oe } from "./index-CKeHa-Cx.mjs";
8
8
  import { goodsSpuApi as D } from "./index.mjs";
9
9
  import { g as te } from "./index-BHmGYIuc.mjs";
10
10
  import { WangEditor as se } from "xyvcard-cms";
11
- import ae from "./skuForm-DuMlHj7f.mjs";
11
+ import ae from "./skuForm-ChaaXJgn.mjs";
12
12
  const ue = ["src"], re = /* @__PURE__ */ j({
13
13
  __name: "ImageUpload",
14
14
  props: {
@@ -93,7 +93,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
93
93
  ], 64);
94
94
  };
95
95
  }
96
- }), de = /* @__PURE__ */ x(re, [["__scopeId", "data-v-f10f6f7e"]]), ne = { class: "app-container" }, pe = { class: "search-container" }, ie = { class: "image-card" }, ve = /* @__PURE__ */ j({
96
+ }), de = /* @__PURE__ */ x(re, [["__scopeId", "data-v-0d62e82a"]]), ne = { class: "app-container" }, pe = { class: "search-container" }, ie = { class: "image-card" }, ve = /* @__PURE__ */ j({
97
97
  __name: "edit",
98
98
  setup(b) {
99
99
  var R;
@@ -1,29 +1,29 @@
1
- import { defineComponent as he, getCurrentInstance as we, ref as A, resolveComponent as n, resolveDirective as be, openBlock as p, createElementBlock as b, createVNode as t, withCtx as o, Fragment as z, renderList as Se, unref as s, createBlock as g, createElementVNode as _, withKeys as J, createTextVNode as r, toDisplayString as u, withDirectives as y, isRef as G, createCommentVNode as $ } from "vue";
1
+ import { defineComponent as be, getCurrentInstance as we, ref as A, onMounted as ve, watch as Se, resolveComponent as n, resolveDirective as ye, openBlock as r, createElementBlock as w, createVNode as t, withCtx as o, Fragment as z, renderList as Ce, unref as s, createBlock as _, createElementVNode as h, withKeys as G, createTextVNode as p, toDisplayString as u, withDirectives as y, isRef as W, createCommentVNode as $ } from "vue";
2
2
  import { ElMessage as I } from "element-plus";
3
- import { useRouter as ve } from "vue-router";
4
- import { useTableHooks as ye, fileApi as W } from "jmash-core";
5
- import { useI18n as Ce } from "vue-i18n";
3
+ import { useRoute as ke, useRouter as Ve } from "vue-router";
4
+ import { useTableHooks as $e, fileApi as X } from "jmash-core";
5
+ import { useI18n as Ie } from "vue-i18n";
6
6
  import { goodsSpuApi as L } from "./index.mjs";
7
- import { D as S, C as j } from "./index-CKeHa-Cx.mjs";
8
- import { _ as ke } from "./saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs";
9
- import { _ as Ve } from "./shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs";
10
- import { _ as $e } from "./auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs";
11
- import { _ as Ie } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs";
12
- const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-container" }, Re = ["onClick"], Ue = ["onClick"], De = ["onClick"], Ke = /* @__PURE__ */ he({
7
+ import { D as v, C as j } from "./index-CKeHa-Cx.mjs";
8
+ import { _ as Te } from "./saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs";
9
+ import { _ as Ne } from "./shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs";
10
+ import { _ as Pe } from "./auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs";
11
+ import { _ as Re } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs";
12
+ const Ue = { class: "app-container" }, De = { key: 0 }, Ae = { class: "search-container" }, ze = ["onClick"], Le = ["onClick"], je = ["onClick"], We = /* @__PURE__ */ be({
13
13
  __name: "index",
14
- setup(Ae) {
15
- const { t: c } = Ce(), R = ve(), { proxy: X } = we(), i = A({
14
+ setup(Ee) {
15
+ const { t: c } = Ie(), E = ke(), R = Ve(), { proxy: Z } = we(), m = A({
16
16
  curPage: 1,
17
17
  pageSize: 10
18
18
  }), {
19
19
  tableHooks: d,
20
20
  multipleTableRef: U,
21
- queryFormRef: E,
22
- listLoading: Z,
23
- tableData: x,
21
+ queryFormRef: q,
22
+ listLoading: x,
23
+ tableData: ee,
24
24
  total: N
25
- } = ye(c, L, i), ee = () => {
26
- E.value[0].resetFields();
25
+ } = $e(c, L, m), oe = () => {
26
+ q.value[0].resetFields();
27
27
  };
28
28
  let T = A([
29
29
  {
@@ -123,30 +123,30 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
123
123
  isColumn: !0
124
124
  }
125
125
  ]);
126
- S.shopInfoBizDict.useValues(), S.goodsCategoryDict.useValues();
127
- const h = A(0);
128
- function oe() {
126
+ v.shopInfoBizDict.useValues(), v.goodsCategoryDict.useValues();
127
+ const f = A(0);
128
+ function te() {
129
129
  R.push({ path: "/rawgoods/goods-spu/edit" });
130
130
  }
131
- function te(l) {
131
+ function le(l) {
132
132
  R.push({
133
133
  path: "/rawgoods/goods-spu/edit",
134
134
  query: { spuId: l.spuId }
135
135
  });
136
136
  }
137
- function le(l) {
137
+ function ae(l) {
138
138
  R.push({
139
139
  path: "/rawgoods/goods-spu/info",
140
140
  query: { spuId: l.spuId }
141
141
  });
142
142
  }
143
- function ae(l) {
143
+ function se(l) {
144
144
  d.selectionRows.value = l;
145
145
  }
146
- function se(l) {
146
+ function ne(l) {
147
147
  d.handleSort(l.prop, l.order);
148
148
  }
149
- function ne(l) {
149
+ function ue(l) {
150
150
  if (d.selectionRows.value.length === 0) {
151
151
  I({
152
152
  message: c("goodsSpu.chooseShelf"),
@@ -154,19 +154,19 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
154
154
  });
155
155
  return;
156
156
  }
157
- const a = d.selectionRows.value.map((m) => m.spuId);
158
- L.enable({ spuId: a }, JSON.parse(l)).then((m) => {
159
- var f;
160
- m.status === 200 && (l === "true" ? I({
161
- message: c("goodsSpu.successShelf") + m.data + c("common.stripData"),
157
+ const a = d.selectionRows.value.map((i) => i.spuId);
158
+ L.enable({ spuId: a }, JSON.parse(l)).then((i) => {
159
+ var g;
160
+ i.status === 200 && (l === "true" ? I({
161
+ message: c("goodsSpu.successShelf") + i.data + c("common.stripData"),
162
162
  type: "success"
163
163
  }) : I({
164
- message: c("goodsSpu.successOffShelf") + m.data + c("common.stripData"),
164
+ message: c("goodsSpu.successOffShelf") + i.data + c("common.stripData"),
165
165
  type: "success"
166
- }), d.getList(), (f = U.value) == null || f.clearSelection());
166
+ }), d.getList(), (g = U.value) == null || g.clearSelection());
167
167
  });
168
168
  }
169
- function ue(l) {
169
+ function de(l) {
170
170
  if (d.selectionRows.value.length === 0) {
171
171
  I({
172
172
  message: c("goodsSpu.chooseShelf"),
@@ -174,61 +174,69 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
174
174
  });
175
175
  return;
176
176
  }
177
- const a = d.selectionRows.value.map((m) => m.spuId);
178
- L.audit({ spuId: a }, l).then((m) => {
179
- var f;
180
- m.status === 200 && (l === j.APPROVAL_PASS ? I({
181
- message: c("goodsSpu.successApproval") + m.data + c("common.stripData"),
177
+ const a = d.selectionRows.value.map((i) => i.spuId);
178
+ L.audit({ spuId: a }, l).then((i) => {
179
+ var g;
180
+ i.status === 200 && (l === j.APPROVAL_PASS ? I({
181
+ message: c("goodsSpu.successApproval") + i.data + c("common.stripData"),
182
182
  type: "success"
183
183
  }) : I({
184
- message: c("goodsSpu.successFilled") + m.data + c("common.stripData"),
184
+ message: c("goodsSpu.successFilled") + i.data + c("common.stripData"),
185
185
  type: "success"
186
- }), d.getList(), (f = U.value) == null || f.clearSelection());
186
+ }), d.getList(), (g = U.value) == null || g.clearSelection());
187
187
  });
188
188
  }
189
- function de(l) {
190
- h.value = Number(l.index), Number(l.index) === 0 && d.handleQuery();
189
+ function re(l) {
190
+ f.value = Number(l.index), Number(l.index) === 0 && d.handleQuery();
191
191
  }
192
- return d.getList(), (l, a) => {
193
- const m = n("jmash-select"), f = n("el-form-item"), C = n("el-col"), O = n("el-input"), k = n("el-button"), q = n("el-row"), pe = n("el-form"), B = n("arrow-down"), V = n("el-icon"), F = n("Unlock"), P = n("el-dropdown-item"), Q = n("Lock"), H = n("el-dropdown-menu"), Y = n("el-dropdown"), re = n("jmash-column-select"), me = n("el-image"), K = n("el-switch"), ie = n("jmash-table"), ce = n("jmash-pagination"), fe = n("el-card"), ge = n("el-tab-pane"), _e = n("el-tabs"), v = be("hasPerm");
194
- return p(), b("div", Te, [
195
- t(_e, {
196
- modelValue: h.value,
197
- "onUpdate:modelValue": a[12] || (a[12] = (D) => h.value = D),
192
+ return ve(() => {
193
+ const l = E.query.activeTab;
194
+ l && (f.value = Number(l));
195
+ }), Se(
196
+ () => E.query.activeTab,
197
+ (l) => {
198
+ l && (f.value = Number(l));
199
+ }
200
+ ), d.getList(), (l, a) => {
201
+ const i = n("jmash-select"), g = n("el-form-item"), C = n("el-col"), O = n("el-input"), k = n("el-button"), B = n("el-row"), pe = n("el-form"), F = n("arrow-down"), V = n("el-icon"), Q = n("Unlock"), P = n("el-dropdown-item"), H = n("Lock"), M = n("el-dropdown-menu"), Y = n("el-dropdown"), ie = n("jmash-column-select"), me = n("el-image"), K = n("el-switch"), ce = n("jmash-table"), fe = n("jmash-pagination"), ge = n("el-card"), _e = n("el-tab-pane"), he = n("el-tabs"), S = ye("hasPerm");
202
+ return r(), w("div", Ue, [
203
+ t(he, {
204
+ modelValue: f.value,
205
+ "onUpdate:modelValue": a[12] || (a[12] = (D) => f.value = D),
198
206
  type: "border-card",
199
- onTabClick: de
207
+ onTabClick: re
200
208
  }, {
201
209
  default: o(() => [
202
- (p(!0), b(z, null, Se(s(S).goodsSpuListSortEnum.values, (D, M) => (p(), g(ge, {
203
- key: M,
210
+ (r(!0), w(z, null, Ce(s(v).goodsSpuListSortEnum.values, (D, J) => (r(), _(_e, {
211
+ key: J,
204
212
  label: D.value,
205
- name: M
213
+ name: J
206
214
  }, {
207
215
  default: o(() => [
208
- h.value === 0 ? (p(), b("div", Ne, [
209
- _("div", Pe, [
216
+ f.value === 0 ? (r(), w("div", De, [
217
+ h("div", Ae, [
210
218
  t(pe, {
211
219
  ref_for: !0,
212
220
  ref_key: "queryFormRef",
213
- ref: E,
214
- model: i.value,
221
+ ref: q,
222
+ model: m.value,
215
223
  inline: !0
216
224
  }, {
217
225
  default: o(() => [
218
- t(q, null, {
226
+ t(B, null, {
219
227
  default: o(() => [
220
228
  t(C, { span: 6 }, {
221
229
  default: o(() => [
222
- t(f, {
230
+ t(g, {
223
231
  label: l.$t("goodsSpu.shopId"),
224
232
  prop: "shopId"
225
233
  }, {
226
234
  default: o(() => [
227
- t(m, {
228
- modelValue: i.value.shopId,
229
- "onUpdate:modelValue": a[0] || (a[0] = (e) => i.value.shopId = e),
235
+ t(i, {
236
+ modelValue: m.value.shopId,
237
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => m.value.shopId = e),
230
238
  placeholder: l.$t("goodsSpu.shopIdRequired"),
231
- data: s(S).shopInfoBizDict.values,
239
+ data: s(v).shopInfoBizDict.values,
232
240
  filterable: ""
233
241
  }, null, 8, ["modelValue", "placeholder", "data"])
234
242
  ]),
@@ -239,17 +247,17 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
239
247
  }),
240
248
  t(C, { span: 6 }, {
241
249
  default: o(() => [
242
- t(f, {
250
+ t(g, {
243
251
  label: l.$t("goodsSpu.spuCode"),
244
252
  prop: "spuCode"
245
253
  }, {
246
254
  default: o(() => [
247
255
  t(O, {
248
- modelValue: i.value.spuCode,
249
- "onUpdate:modelValue": a[1] || (a[1] = (e) => i.value.spuCode = e),
256
+ modelValue: m.value.spuCode,
257
+ "onUpdate:modelValue": a[1] || (a[1] = (e) => m.value.spuCode = e),
250
258
  placeholder: l.$t("goodsSpu.spuCode"),
251
259
  class: "!w-[203px]",
252
- onKeyup: a[2] || (a[2] = J((e) => s(d).handleQuery(), ["enter"]))
260
+ onKeyup: a[2] || (a[2] = G((e) => s(d).handleQuery(), ["enter"]))
253
261
  }, null, 8, ["modelValue", "placeholder"])
254
262
  ]),
255
263
  _: 1
@@ -259,17 +267,17 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
259
267
  }),
260
268
  t(C, { span: 6 }, {
261
269
  default: o(() => [
262
- t(f, {
270
+ t(g, {
263
271
  label: l.$t("goodsSpu.spuName"),
264
272
  prop: "likeSpuName"
265
273
  }, {
266
274
  default: o(() => [
267
275
  t(O, {
268
- modelValue: i.value.likeSpuName,
269
- "onUpdate:modelValue": a[3] || (a[3] = (e) => i.value.likeSpuName = e),
276
+ modelValue: m.value.likeSpuName,
277
+ "onUpdate:modelValue": a[3] || (a[3] = (e) => m.value.likeSpuName = e),
270
278
  placeholder: l.$t("goodsSpu.spuName"),
271
279
  class: "!w-[203px]",
272
- onKeyup: a[4] || (a[4] = J((e) => s(d).handleQuery(), ["enter"]))
280
+ onKeyup: a[4] || (a[4] = G((e) => s(d).handleQuery(), ["enter"]))
273
281
  }, null, 8, ["modelValue", "placeholder"])
274
282
  ]),
275
283
  _: 1
@@ -279,20 +287,20 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
279
287
  }),
280
288
  t(C, { span: 6 }, {
281
289
  default: o(() => [
282
- t(f, { class: "search-btn" }, {
290
+ t(g, { class: "search-btn" }, {
283
291
  default: o(() => [
284
292
  t(k, {
285
293
  type: "primary",
286
294
  onClick: a[5] || (a[5] = (e) => s(d).handleQuery())
287
295
  }, {
288
296
  default: o(() => [
289
- r(u(l.$t("common.search")), 1)
297
+ p(u(l.$t("common.search")), 1)
290
298
  ]),
291
299
  _: 1
292
300
  }),
293
- t(k, { onClick: ee }, {
301
+ t(k, { onClick: oe }, {
294
302
  default: o(() => [
295
- r(u(l.$t("common.reset")), 1)
303
+ p(u(l.$t("common.reset")), 1)
296
304
  ]),
297
305
  _: 1
298
306
  })
@@ -309,53 +317,53 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
309
317
  _: 1
310
318
  }, 8, ["model"])
311
319
  ]),
312
- t(fe, {
320
+ t(ge, {
313
321
  shadow: "never",
314
322
  class: "table-container"
315
323
  }, {
316
324
  header: o(() => [
317
- t(q, null, {
325
+ t(B, null, {
318
326
  default: o(() => [
319
327
  t(C, { span: 17 }, {
320
328
  default: o(() => [
321
- y((p(), g(k, {
329
+ y((r(), _(k, {
322
330
  type: "primary",
323
- onClick: oe
331
+ onClick: te
324
332
  }, {
325
333
  default: o(() => [
326
- r(u(l.$t("common.add")), 1)
334
+ p(u(l.$t("common.add")), 1)
327
335
  ]),
328
336
  _: 1
329
337
  })), [
330
- [v, ["goods:goods_spu:add"]]
338
+ [S, ["goods:goods_spu:add"]]
331
339
  ]),
332
- y((p(), g(k, {
340
+ y((r(), _(k, {
333
341
  type: "primary",
334
342
  onClick: a[6] || (a[6] = (e) => s(d).deleteRecords())
335
343
  }, {
336
344
  default: o(() => [
337
- r(u(l.$t("common.batchDelete")), 1)
345
+ p(u(l.$t("common.batchDelete")), 1)
338
346
  ]),
339
347
  _: 1
340
348
  })), [
341
- [v, ["goods:goods_spu:delete"]]
349
+ [S, ["goods:goods_spu:delete"]]
342
350
  ]),
343
- y((p(), g(Y, {
351
+ y((r(), _(Y, {
344
352
  class: "dropdown-left",
345
- onCommand: ne
353
+ onCommand: ue
346
354
  }, {
347
355
  dropdown: o(() => [
348
- t(H, null, {
356
+ t(M, null, {
349
357
  default: o(() => [
350
358
  t(P, { command: "true" }, {
351
359
  default: o(() => [
352
360
  t(V, { size: "14" }, {
353
361
  default: o(() => [
354
- t(F)
362
+ t(Q)
355
363
  ]),
356
364
  _: 1
357
365
  }),
358
- r(" " + u(l.$t("goodsSpu.batchShelf")), 1)
366
+ p(" " + u(l.$t("goodsSpu.batchShelf")), 1)
359
367
  ]),
360
368
  _: 1
361
369
  }),
@@ -363,11 +371,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
363
371
  default: o(() => [
364
372
  t(V, { size: "14" }, {
365
373
  default: o(() => [
366
- t(Q)
374
+ t(H)
367
375
  ]),
368
376
  _: 1
369
377
  }),
370
- r(" " + u(l.$t("goodsSpu.batchOffShelf")), 1)
378
+ p(" " + u(l.$t("goodsSpu.batchOffShelf")), 1)
371
379
  ]),
372
380
  _: 1
373
381
  })
@@ -378,10 +386,10 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
378
386
  default: o(() => [
379
387
  t(k, { type: "primary" }, {
380
388
  default: o(() => [
381
- r(u(l.$t("goodsSpu.batchShelf")) + "/" + u(l.$t("goodsSpu.batchOffShelf")) + " ", 1),
389
+ p(u(l.$t("goodsSpu.batchShelf")) + "/" + u(l.$t("goodsSpu.batchOffShelf")) + " ", 1),
382
390
  t(V, { class: "el-icon--right" }, {
383
391
  default: o(() => [
384
- t(B)
392
+ t(F)
385
393
  ]),
386
394
  _: 1
387
395
  })
@@ -391,14 +399,14 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
391
399
  ]),
392
400
  _: 1
393
401
  })), [
394
- [v, ["goods:goods_spu:onSale"]]
402
+ [S, ["goods:goods_spu:onSale"]]
395
403
  ]),
396
- y((p(), g(Y, {
404
+ y((r(), _(Y, {
397
405
  class: "dropdown-left",
398
- onCommand: ue
406
+ onCommand: de
399
407
  }, {
400
408
  dropdown: o(() => [
401
- t(H, null, {
409
+ t(M, null, {
402
410
  default: o(() => [
403
411
  t(P, {
404
412
  command: s(j).APPROVAL_PASS
@@ -406,11 +414,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
406
414
  default: o(() => [
407
415
  t(V, { size: "14" }, {
408
416
  default: o(() => [
409
- t(F)
417
+ t(Q)
410
418
  ]),
411
419
  _: 1
412
420
  }),
413
- r(" " + u(l.$t("goodsSpu.batchApprovaled")), 1)
421
+ p(" " + u(l.$t("goodsSpu.batchApprovaled")), 1)
414
422
  ]),
415
423
  _: 1
416
424
  }, 8, ["command"]),
@@ -420,11 +428,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
420
428
  default: o(() => [
421
429
  t(V, { size: "14" }, {
422
430
  default: o(() => [
423
- t(Q)
431
+ t(H)
424
432
  ]),
425
433
  _: 1
426
434
  }),
427
- r(" " + u(l.$t("goodsSpu.batchRejected")), 1)
435
+ p(" " + u(l.$t("goodsSpu.batchRejected")), 1)
428
436
  ]),
429
437
  _: 1
430
438
  }, 8, ["command"])
@@ -435,10 +443,10 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
435
443
  default: o(() => [
436
444
  t(k, { type: "primary" }, {
437
445
  default: o(() => [
438
- r(u(l.$t("goodsSpu.batchApproval")) + " ", 1),
446
+ p(u(l.$t("goodsSpu.batchApproval")) + " ", 1),
439
447
  t(V, { class: "el-icon--right" }, {
440
448
  default: o(() => [
441
- t(B)
449
+ t(F)
442
450
  ]),
443
451
  _: 1
444
452
  })
@@ -448,7 +456,7 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
448
456
  ]),
449
457
  _: 1
450
458
  })), [
451
- [v, ["goods:goods_spu:approve"]]
459
+ [S, ["goods:goods_spu:approve"]]
452
460
  ])
453
461
  ]),
454
462
  _: 1
@@ -458,9 +466,9 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
458
466
  class: "container-float"
459
467
  }, {
460
468
  default: o(() => [
461
- t(re, {
469
+ t(ie, {
462
470
  modelValue: s(T),
463
- "onUpdate:modelValue": a[7] || (a[7] = (e) => G(T) ? T.value = e : T = e),
471
+ "onUpdate:modelValue": a[7] || (a[7] = (e) => W(T) ? T.value = e : T = e),
464
472
  "label-name": "goods/goods-spu"
465
473
  }, null, 8, ["modelValue"])
466
474
  ]),
@@ -471,45 +479,45 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
471
479
  })
472
480
  ]),
473
481
  footer: o(() => [
474
- s(N) > 0 ? (p(), g(ce, {
482
+ s(N) > 0 ? (r(), _(fe, {
475
483
  key: 0,
476
484
  total: s(N),
477
- "onUpdate:total": a[8] || (a[8] = (e) => G(N) ? N.value = e : null),
478
- "current-page": i.value.curPage,
479
- "onUpdate:currentPage": a[9] || (a[9] = (e) => i.value.curPage = e),
480
- "page-size": i.value.pageSize,
481
- "onUpdate:pageSize": a[10] || (a[10] = (e) => i.value.pageSize = e),
485
+ "onUpdate:total": a[8] || (a[8] = (e) => W(N) ? N.value = e : null),
486
+ "current-page": m.value.curPage,
487
+ "onUpdate:currentPage": a[9] || (a[9] = (e) => m.value.curPage = e),
488
+ "page-size": m.value.pageSize,
489
+ "onUpdate:pageSize": a[10] || (a[10] = (e) => m.value.pageSize = e),
482
490
  onPagination: a[11] || (a[11] = (e) => s(d).getList())
483
491
  }, null, 8, ["total", "current-page", "page-size"])) : $("", !0)
484
492
  ]),
485
493
  default: o(() => [
486
- t(ie, {
494
+ t(ce, {
487
495
  ref_for: !0,
488
496
  ref_key: "multipleTableRef",
489
497
  ref: U,
490
498
  "row-key": "spuId",
491
- "list-loading": s(Z),
492
- data: s(x),
499
+ "list-loading": s(x),
500
+ data: s(ee),
493
501
  "table-label": s(T),
494
- onSelectionChange: ae,
495
- onSortChange: se
502
+ onSelectionChange: se,
503
+ onSortChange: ne
496
504
  }, {
497
505
  shopId: o((e) => [
498
- _("span", null, u(s(S).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
506
+ h("span", null, u(s(v).shopInfoBizDict.getValue(e.data.row.shopId)), 1)
499
507
  ]),
500
508
  categoryId: o((e) => [
501
- _("span", null, u(s(S).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
509
+ h("span", null, u(s(v).goodsCategoryDict.getValue(e.data.row.categoryId)), 1)
502
510
  ]),
503
511
  picUrls: o((e) => [
504
- _("span", null, [
512
+ h("span", null, [
505
513
  t(me, {
506
- src: s(W).imageUrl(
514
+ src: s(X).imageUrl(
507
515
  e.data.row.picUrls.split(",")[0],
508
516
  50,
509
517
  50
510
518
  ),
511
519
  "preview-src-list": [
512
- s(W).imageUrl(e.data.row.picUrls.split(",")[0])
520
+ s(X).imageUrl(e.data.row.picUrls.split(",")[0])
513
521
  ],
514
522
  "preview-teleported": "",
515
523
  "hide-on-click-modal": "",
@@ -518,11 +526,11 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
518
526
  ])
519
527
  ]),
520
528
  shelf: o((e) => [
521
- _("span", null, [
529
+ h("span", null, [
522
530
  t(K, {
523
531
  modelValue: e.data.row.shelf,
524
- "onUpdate:modelValue": (w) => e.data.row.shelf = w,
525
- onClick: (w) => s(d).enableRecord(
532
+ "onUpdate:modelValue": (b) => e.data.row.shelf = b,
533
+ onClick: (b) => s(d).enableRecord(
526
534
  e.data.row,
527
535
  e.data.row.shelf
528
536
  )
@@ -530,24 +538,24 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
530
538
  ])
531
539
  ]),
532
540
  minPrice: o((e) => [
533
- _("span", null, [
534
- e.data.row.minPrice === e.data.row.maxPrice ? (p(), b(z, { key: 0 }, [
535
- r(u(e.data.row.minPrice), 1)
536
- ], 64)) : (p(), b(z, { key: 1 }, [
537
- r(u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
541
+ h("span", null, [
542
+ e.data.row.minPrice === e.data.row.maxPrice ? (r(), w(z, { key: 0 }, [
543
+ p(u(e.data.row.minPrice), 1)
544
+ ], 64)) : (r(), w(z, { key: 1 }, [
545
+ p(u(e.data.row.minPrice) + " ~ " + u(e.data.row.maxPrice), 1)
538
546
  ], 64))
539
547
  ])
540
548
  ]),
541
549
  specType: o((e) => [
542
- _("span", null, u(s(S).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
550
+ h("span", null, u(s(v).specTypeEnum.getEnumValue(e.data.row.specType)), 1)
543
551
  ]),
544
552
  approvalStatus: o((e) => [
545
- _("span", null, u(s(S).approvalStatusEnum.getEnumValue(
553
+ h("span", null, u(s(v).approvalStatusEnum.getEnumValue(
546
554
  e.data.row.approvalStatus
547
555
  )), 1)
548
556
  ]),
549
557
  updateTime: o((e) => [
550
- _("span", null, u(s(X).$moment.formatDate(
558
+ h("span", null, u(s(Z).$moment.formatDate(
551
559
  e.data.row.updateTime,
552
560
  "YYYY-MM-DD HH:mm:ss"
553
561
  )), 1)
@@ -555,37 +563,37 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
555
563
  enable: o((e) => [
556
564
  t(K, {
557
565
  modelValue: e.data.row.enable,
558
- "onUpdate:modelValue": (w) => e.data.row.enable = w,
559
- onChange: (w) => s(d).enableRecord(
566
+ "onUpdate:modelValue": (b) => e.data.row.enable = b,
567
+ onChange: (b) => s(d).enableRecord(
560
568
  e.data.row,
561
569
  e.data.row.enable
562
570
  )
563
571
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
564
572
  ]),
565
573
  operation: o((e) => [
566
- y((p(), b("span", {
574
+ y((r(), w("span", {
567
575
  class: "el-button-color",
568
- onClick: (w) => te(e.data.row)
576
+ onClick: (b) => le(e.data.row)
569
577
  }, [
570
- r(u(l.$t("common.edit")), 1)
571
- ], 8, Re)), [
572
- [v, ["goods:goods_spu:update"]]
578
+ p(u(l.$t("common.edit")), 1)
579
+ ], 8, ze)), [
580
+ [S, ["goods:goods_spu:update"]]
573
581
  ]),
574
- y((p(), b("span", {
582
+ y((r(), w("span", {
575
583
  class: "el-button-color dropdown-left",
576
- onClick: (w) => s(d).deleteRecord(e.data.row)
584
+ onClick: (b) => s(d).deleteRecord(e.data.row)
577
585
  }, [
578
- r(u(l.$t("common.delete")), 1)
579
- ], 8, Ue)), [
580
- [v, ["goods:goods_spu:delete"]]
586
+ p(u(l.$t("common.delete")), 1)
587
+ ], 8, Le)), [
588
+ [S, ["goods:goods_spu:delete"]]
581
589
  ]),
582
- y((p(), b("span", {
590
+ y((r(), w("span", {
583
591
  class: "el-button-color dropdown-left",
584
- onClick: (w) => le(e.data.row)
592
+ onClick: (b) => ae(e.data.row)
585
593
  }, [
586
- r(u(l.$t("common.view")), 1)
587
- ], 8, De)), [
588
- [v, ["goods:goods_spu:view"]]
594
+ p(u(l.$t("common.view")), 1)
595
+ ], 8, je)), [
596
+ [S, ["goods:goods_spu:view"]]
589
597
  ])
590
598
  ]),
591
599
  _: 1
@@ -594,10 +602,10 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
594
602
  _: 1
595
603
  })
596
604
  ])) : $("", !0),
597
- h.value === 1 ? (p(), g(ke, { key: 1 })) : $("", !0),
598
- h.value === 2 ? (p(), g(Ve, { key: 2 })) : $("", !0),
599
- h.value === 3 ? (p(), g($e, { key: 3 })) : $("", !0),
600
- h.value === 4 ? (p(), g(Ie, { key: 4 })) : $("", !0)
605
+ f.value === 1 ? (r(), _(Te, { key: 1 })) : $("", !0),
606
+ f.value === 2 ? (r(), _(Ne, { key: 2 })) : $("", !0),
607
+ f.value === 3 ? (r(), _(Pe, { key: 3 })) : $("", !0),
608
+ f.value === 4 ? (r(), _(Re, { key: 4 })) : $("", !0)
601
609
  ]),
602
610
  _: 2
603
611
  }, 1032, ["label", "name"]))), 128))
@@ -609,5 +617,5 @@ const Te = { class: "app-container" }, Ne = { key: 0 }, Pe = { class: "search-co
609
617
  }
610
618
  });
611
619
  export {
612
- Ke as default
620
+ We as default
613
621
  };
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-Bk7YJzrm.mjs"), Ws = () => import("./info-lw-aEq4N.mjs"), Fs = [
65
+ const Ns = () => import("./edit-h0S6bHag.mjs"), Ws = () => import("./info-lDMLR1ZW.mjs"), Fs = [
66
66
  {
67
67
  path: "/rawgoods",
68
68
  component: Ys,
@@ -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-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 = {
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-h0S6bHag.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-BMlIwb1h.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-lDMLR1ZW.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-ChaaXJgn.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-BBiyXctZ.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-BlK2s902.mjs";
5
+ import { s as z } from "./skuTable-BBiyXctZ.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,6 +1,6 @@
1
1
  import { defineComponent as te, ref as b, computed as se, watch as D, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as k, unref as O, createVNode as o, withCtx as a, createCommentVNode as I, renderList as y, createElementVNode as S, toDisplayString as Y, createTextVNode as w, createBlock as P } from "vue";
2
2
  import { C as E, D as ue, S as H, a as ne } from "./index-CKeHa-Cx.mjs";
3
- import { s as de, _ as re } from "./skuTable-BlK2s902.mjs";
3
+ import { s as de, _ as re } from "./skuTable-BBiyXctZ.mjs";
4
4
  const pe = { key: 0 }, ce = {
5
5
  key: 1,
6
6
  class: "w-full"
@@ -1,4 +1,4 @@
1
- import { defineComponent as O, ref as C, computed as q, watch as $, resolveComponent as v, openBlock as w, createElementBlock as U, createElementVNode as f, createVNode as n, withCtx as d, createTextVNode as S, createCommentVNode as F, Fragment as M, renderList as G, createBlock as x, toDisplayString as D, unref as z } from "vue";
1
+ import { defineComponent as O, ref as C, computed as q, watch as $, resolveComponent as v, openBlock as w, createElementBlock as U, createElementVNode as g, createVNode as n, withCtx as d, createTextVNode as S, createCommentVNode as F, Fragment as M, renderList as G, createBlock as x, toDisplayString as D, unref as z } from "vue";
2
2
  import { D as K } from "./index-CKeHa-Cx.mjs";
3
3
  import { fileApi as E } from "jmash-core";
4
4
  const H = (a, h) => {
@@ -24,18 +24,18 @@ function J(a, h = [], s) {
24
24
  const o = [], t = [];
25
25
  a.forEach((r, c) => {
26
26
  const { specValueList: e } = r;
27
- let g = {};
27
+ let m = {};
28
28
  if (!e || e.length === 0) return !0;
29
29
  if (e.length > 1) {
30
- const m = Math.floor(V / y[c]) % e.length;
31
- g = a[c].specValueList[m];
30
+ const f = Math.floor(V / y[c]) % e.length;
31
+ m = a[c].specValueList[f];
32
32
  } else
33
- g = a[c].specValueList[0];
34
- !r[u] || !g[u] || (t.push(`${r[u]}_${g[u]}`), o.push({
33
+ m = a[c].specValueList[0];
34
+ !r[u] || !m[u] || (t.push(`${r[u]}_${m[u]}`), o.push({
35
35
  specId: r[u],
36
36
  specName: r[_],
37
- specValueId: g[u],
38
- specValueName: g[_]
37
+ specValueId: m[u],
38
+ specValueName: m[_]
39
39
  }));
40
40
  });
41
41
  const { ...i } = I[t.join("|")] || {};
@@ -92,19 +92,22 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
92
92
  (r, c, e) => `${r}${c.specId}-${c.specValueId}${e === i.specs.length - 1 ? "" : "_"}`,
93
93
  ""
94
94
  )
95
- })), t = k.goodsSku.map((i) => ({
96
- ...i,
97
- specIds: i.specValues.reduce(
98
- (r, c, e) => `${r}${c.specId}-${c.specValueId}${e === i.specValues.length - 1 ? "" : "_"}`,
99
- ""
100
- )
101
- }));
95
+ })), t = k.goodsSku.map((i) => {
96
+ var r;
97
+ return {
98
+ ...i,
99
+ specIds: (r = i.specValues) == null ? void 0 : r.reduce(
100
+ (c, e, m) => `${c}${e.specId}-${e.specValueId}${m === i.specValues.length - 1 ? "" : "_"}`,
101
+ ""
102
+ )
103
+ };
104
+ });
102
105
  return o.forEach((i) => {
103
106
  t.forEach((r) => {
104
- let c = i.specIds.split("_"), e = r.specIds.split("_"), g = !0;
105
- c.forEach((m) => {
106
- e.find((P) => P == m) || (g = !1);
107
- }), g && (i.picUrl = r.picUrl ? r.picUrl : "", i.skuCode = r.skuCode ? r.skuCode : void 0, i.skuId = r.skuId ? r.skuId : void 0, i.salePrice = r.salePrice, i.marketPrice = r.marketPrice, i.costPrice = r.costPrice, i.stock = r.stock, i.weight = r.weight, i.volume = r.volume, i.status = r.status);
107
+ let c = i.specIds.split("_"), e = r.specIds.split("_"), m = !0;
108
+ c.forEach((f) => {
109
+ e.find((P) => P == f) || (m = !1);
110
+ }), m && (i.picUrl = r.picUrl ? r.picUrl : "", i.skuCode = r.skuCode ? r.skuCode : void 0, i.skuId = r.skuId ? r.skuId : void 0, i.salePrice = r.salePrice, i.marketPrice = r.marketPrice, i.costPrice = r.costPrice, i.stock = r.stock, i.weight = r.weight, i.volume = r.volume, i.status = r.status);
108
111
  });
109
112
  }), o;
110
113
  });
@@ -129,19 +132,19 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
129
132
  status: !0
130
133
  }));
131
134
  if (o.length === t.length)
132
- return u.value = o.map((e, g) => ({
133
- ...u.value[g],
135
+ return u.value = o.map((e, m) => ({
136
+ ...u.value[m],
134
137
  ...e
135
138
  }));
136
139
  const i = I(o, t);
137
140
  if (o.length > t.length) {
138
141
  let e = [];
139
- o.forEach((g) => {
140
- const m = u.value.find(
141
- (P) => P.specIds === g.specIds
142
+ o.forEach((m) => {
143
+ const f = u.value.find(
144
+ (P) => P.specIds === m.specIds
142
145
  );
143
- m ? e.push(m) : e.push({
144
- ...g,
146
+ f ? e.push(f) : e.push({
147
+ ...m,
145
148
  picUrl: "",
146
149
  skuCode: void 0,
147
150
  salePrice: 0,
@@ -196,10 +199,10 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
196
199
  t.picUrl = o;
197
200
  }
198
201
  return (o, t) => {
199
- const i = v("Setting"), r = v("el-icon"), c = v("el-input-number"), e = v("el-tooltip"), g = v("el-button"), m = v("el-table-column"), P = v("jmash-single-image-upload"), j = v("el-image"), A = v("el-input"), N = v("el-switch"), T = v("el-table");
202
+ const i = v("Setting"), r = v("el-icon"), c = v("el-input-number"), e = v("el-tooltip"), m = v("el-button"), f = v("el-table-column"), P = v("jmash-single-image-upload"), j = v("el-image"), A = v("el-input"), N = v("el-switch"), T = v("el-table");
200
203
  return w(), U("div", null, [
201
204
  a.isSettingShow ? (w(), U("div", W, [
202
- f("div", X, [
205
+ g("div", X, [
203
206
  n(r, null, {
204
207
  default: d(() => [
205
208
  n(i)
@@ -208,7 +211,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
208
211
  }),
209
212
  t[6] || (t[6] = S(" 批量设置 "))
210
213
  ]),
211
- f("span", Y, [
214
+ g("span", Y, [
212
215
  n(e, {
213
216
  class: "box-item",
214
217
  effect: "dark",
@@ -228,7 +231,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
228
231
  _: 1
229
232
  })
230
233
  ]),
231
- f("span", Z, [
234
+ g("span", Z, [
232
235
  n(e, {
233
236
  class: "box-item",
234
237
  effect: "dark",
@@ -248,7 +251,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
248
251
  _: 1
249
252
  })
250
253
  ]),
251
- f("span", ee, [
254
+ g("span", ee, [
252
255
  n(e, {
253
256
  class: "box-item",
254
257
  effect: "dark",
@@ -268,7 +271,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
268
271
  _: 1
269
272
  })
270
273
  ]),
271
- f("span", le, [
274
+ g("span", le, [
272
275
  n(e, {
273
276
  class: "box-item",
274
277
  effect: "dark",
@@ -288,7 +291,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
288
291
  _: 1
289
292
  })
290
293
  ]),
291
- f("span", te, [
294
+ g("span", te, [
292
295
  n(e, {
293
296
  class: "box-item",
294
297
  effect: "dark",
@@ -308,7 +311,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
308
311
  _: 1
309
312
  })
310
313
  ]),
311
- f("span", oe, [
314
+ g("span", oe, [
312
315
  n(e, {
313
316
  class: "box-item",
314
317
  effect: "dark",
@@ -328,7 +331,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
328
331
  _: 1
329
332
  })
330
333
  ]),
331
- n(g, {
334
+ n(m, {
332
335
  type: "primary",
333
336
  size: "small",
334
337
  onClick: y
@@ -344,8 +347,8 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
344
347
  class: "w-full top-dis"
345
348
  }, {
346
349
  default: d(() => [
347
- n(m, { type: "index" }),
348
- (w(!0), U(M, null, G(a.specData, (l, p) => (w(), x(m, {
350
+ n(f, { type: "index" }),
351
+ (w(!0), U(M, null, G(a.specData, (l, p) => (w(), x(f, {
349
352
  key: l.id,
350
353
  prop: l.id,
351
354
  label: l.name
@@ -355,7 +358,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
355
358
  ]),
356
359
  _: 2
357
360
  }, 1032, ["prop", "label"]))), 128)),
358
- n(m, {
361
+ n(f, {
359
362
  prop: "picUrl",
360
363
  label: "图片"
361
364
  }, {
@@ -378,17 +381,17 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
378
381
  ]),
379
382
  _: 1
380
383
  }),
381
- n(m, {
384
+ n(f, {
382
385
  prop: "salePrice",
383
386
  label: "销售价(元)",
384
387
  width: "150"
385
388
  }, {
386
389
  header: d(() => t[8] || (t[8] = [
387
- f("span", { class: "required_red" }, "*", -1),
388
- f("span", null, "销售价(元)", -1)
390
+ g("span", { class: "required_red" }, "*", -1),
391
+ g("span", null, "销售价(元)", -1)
389
392
  ])),
390
393
  default: d((l) => [
391
- f("span", null, [
394
+ g("span", null, [
392
395
  n(c, {
393
396
  modelValue: l.row.salePrice,
394
397
  "onUpdate:modelValue": (p) => l.row.salePrice = p,
@@ -402,12 +405,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
402
405
  ]),
403
406
  _: 1
404
407
  }),
405
- n(m, {
408
+ n(f, {
406
409
  prop: "marketPrice",
407
410
  label: "市场价(元)"
408
411
  }, {
409
412
  default: d((l) => [
410
- f("span", null, [
413
+ g("span", null, [
411
414
  n(c, {
412
415
  modelValue: l.row.marketPrice,
413
416
  "onUpdate:modelValue": (p) => l.row.marketPrice = p,
@@ -421,12 +424,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
421
424
  ]),
422
425
  _: 1
423
426
  }),
424
- n(m, {
427
+ n(f, {
425
428
  prop: "costPrice",
426
429
  label: "成本价(元)"
427
430
  }, {
428
431
  default: d((l) => [
429
- f("span", null, [
432
+ g("span", null, [
430
433
  n(c, {
431
434
  modelValue: l.row.costPrice,
432
435
  "onUpdate:modelValue": (p) => l.row.costPrice = p,
@@ -440,12 +443,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
440
443
  ]),
441
444
  _: 1
442
445
  }),
443
- n(m, {
446
+ n(f, {
444
447
  prop: "weight",
445
448
  label: "重量(kg)"
446
449
  }, {
447
450
  default: d((l) => [
448
- f("span", null, [
451
+ g("span", null, [
449
452
  n(c, {
450
453
  modelValue: l.row.weight,
451
454
  "onUpdate:modelValue": (p) => l.row.weight = p,
@@ -459,12 +462,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
459
462
  ]),
460
463
  _: 1
461
464
  }),
462
- n(m, {
465
+ n(f, {
463
466
  prop: "volume",
464
467
  label: "体积(m³)"
465
468
  }, {
466
469
  default: d((l) => [
467
- f("span", null, [
470
+ g("span", null, [
468
471
  n(c, {
469
472
  modelValue: l.row.volume,
470
473
  "onUpdate:modelValue": (p) => l.row.volume = p,
@@ -478,16 +481,16 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
478
481
  ]),
479
482
  _: 1
480
483
  }),
481
- n(m, {
484
+ n(f, {
482
485
  prop: "stock",
483
486
  label: "库存"
484
487
  }, {
485
488
  header: d(() => t[9] || (t[9] = [
486
- f("span", { class: "required_red" }, "*", -1),
487
- f("span", null, "库存", -1)
489
+ g("span", { class: "required_red" }, "*", -1),
490
+ g("span", null, "库存", -1)
488
491
  ])),
489
492
  default: d((l) => [
490
- f("span", null, [
493
+ g("span", null, [
491
494
  n(c, {
492
495
  modelValue: l.row.stock,
493
496
  "onUpdate:modelValue": (p) => l.row.stock = p,
@@ -501,12 +504,12 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
501
504
  ]),
502
505
  _: 1
503
506
  }),
504
- n(m, {
507
+ n(f, {
505
508
  prop: "skuCode",
506
509
  label: "sku编码"
507
510
  }, {
508
511
  default: d((l) => [
509
- f("span", null, [
512
+ g("span", null, [
510
513
  n(A, {
511
514
  modelValue: l.row.skuCode,
512
515
  "onUpdate:modelValue": (p) => l.row.skuCode = p,
@@ -517,7 +520,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
517
520
  ]),
518
521
  _: 1
519
522
  }),
520
- n(m, {
523
+ n(f, {
521
524
  prop: "status",
522
525
  label: "是否上架",
523
526
  width: "80"
@@ -538,7 +541,7 @@ const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z
538
541
  ]);
539
542
  };
540
543
  }
541
- }), ie = /* @__PURE__ */ H(ne, [["__scopeId", "data-v-35aefe40"]]), de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
544
+ }), ie = /* @__PURE__ */ H(ne, [["__scopeId", "data-v-84542ec3"]]), de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
542
545
  __proto__: null,
543
546
  default: ie
544
547
  }, Symbol.toStringTag, { value: "Module" }));
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-35aefe40]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-d3b23fe5]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-d3b23fe5]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-d3b23fe5]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-d3b23fe5]{padding:10px 20px}.goods-tag[data-v-d3b23fe5]{margin-bottom:10px}[data-v-f10f6f7e] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-f10f6f7e] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}
1
+ .w-full{width:100%!important}.right-dis{margin-right:10px}.top-dis{margin-top:25px}.cell-item{display:flex;align-items:center;justify-content:flex-end}.el-descriptions__label{width:15%;text-align:right}.el-descriptions__content{width:35%}.title-set[data-v-84542ec3]{display:flex;align-items:center;font-size:14px;padding:0 0 10px}.goods-spec[data-v-d3b23fe5]{border:1px solid #ccc;margin-bottom:5px}.goods-title[data-v-d3b23fe5]{display:flex;align-items:center;border-bottom:1px solid #ccc;padding:10px 20px}.goods-title .goods-delete[data-v-d3b23fe5]{display:flex;align-items:center;margin-left:auto;color:red;font-size:14px}.goods-content[data-v-d3b23fe5]{padding:10px 20px}.goods-tag[data-v-d3b23fe5]{margin-bottom:10px}[data-v-0d62e82a] .el-upload--picture-card{width:80px;height:80px;border-radius:0}[data-v-0d62e82a] .el-upload-list--picture-card .el-upload-list__item{width:80px;height:80px}
@@ -1,19 +1,18 @@
1
1
  import type { PropType } from "vue";
2
2
  import type { Entry } from "jmash-core";
3
- import type { EntryBool } from "@/api/dict";
4
3
  declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
5
4
  modelValue: PropType<string | boolean>;
6
5
  data: {
7
- type: PropType<EntryBool[] | Entry[]>;
6
+ type: PropType<Entry[]>;
8
7
  default: () => void;
9
8
  };
10
9
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
11
10
  modelValue: PropType<string | boolean>;
12
11
  data: {
13
- type: PropType<EntryBool[] | Entry[]>;
12
+ type: PropType<Entry[]>;
14
13
  default: () => void;
15
14
  };
16
15
  }>> & Readonly<{}>, {
17
- data: EntryBool[] | Entry[];
16
+ data: Entry[];
18
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
18
  export default _default;
@@ -1,8 +1,4 @@
1
1
  declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: {
3
- type: StringConstructor;
4
- default: () => string;
5
- };
6
2
  listType: {
7
3
  type: () => "text" | "picture" | "picture-card";
8
4
  default: string;
@@ -11,11 +7,15 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
11
7
  type: NumberConstructor;
12
8
  default: number;
13
9
  };
14
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
- modelValue: {
16
- type: StringConstructor;
17
- default: () => string;
10
+ pictureUrl: {
11
+ type: ArrayConstructor;
12
+ default: () => never[];
18
13
  };
14
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ filesResponse: (...args: any[]) => void;
16
+ uploadFileList: (...args: any[]) => void;
17
+ removeFile: (...args: any[]) => void;
18
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
19
19
  listType: {
20
20
  type: () => "text" | "picture" | "picture-card";
21
21
  default: string;
@@ -24,9 +24,17 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
24
24
  type: NumberConstructor;
25
25
  default: number;
26
26
  };
27
- }>> & Readonly<{}>, {
28
- modelValue: string;
27
+ pictureUrl: {
28
+ type: ArrayConstructor;
29
+ default: () => never[];
30
+ };
31
+ }>> & Readonly<{
32
+ onFilesResponse?: ((...args: any[]) => any) | undefined;
33
+ onUploadFileList?: ((...args: any[]) => any) | undefined;
34
+ onRemoveFile?: ((...args: any[]) => any) | undefined;
35
+ }>, {
29
36
  listType: "picture" | "text" | "picture-card";
30
37
  limit: number;
38
+ pictureUrl: unknown[];
31
39
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
40
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-goods",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -8,16 +8,6 @@
8
8
  "dist",
9
9
  "dts"
10
10
  ],
11
- "scripts": {
12
- "dev": "vite",
13
- "build": "vite build && pnpm build:dts",
14
- "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
15
- "preview": "vite preview",
16
- "build-only": "vite build",
17
- "type-check": "vue-tsc --build --force",
18
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
19
- "format": "prettier --write src/"
20
- },
21
11
  "peerDependencies": {
22
12
  "axios": "^1.7.7",
23
13
  "element-plus": "^2.8.7",
@@ -28,8 +18,8 @@
28
18
  "vue": "^3.5.11",
29
19
  "vue-i18n": "^9.14.1",
30
20
  "vue-router": "^4.4.5",
31
- "xyvcard-emall": "^0.0.6",
32
- "xyvcard-shop": "^0.0.16",
21
+ "xyvcard-emall": "^0.0.13",
22
+ "xyvcard-shop": "^0.0.23",
33
23
  "xyvcard-cms": "0.0.36"
34
24
  },
35
25
  "devDependencies": {
@@ -61,5 +51,15 @@
61
51
  "file-saver": "^2.0.5",
62
52
  "nprogress": "^0.2.0",
63
53
  "qs": "^6.12.0"
54
+ },
55
+ "scripts": {
56
+ "dev": "vite",
57
+ "build": "vite build && pnpm build:dts",
58
+ "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
59
+ "preview": "vite preview",
60
+ "build-only": "vite build",
61
+ "type-check": "vue-tsc --build --force",
62
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
63
+ "format": "prettier --write src/"
64
64
  }
65
- }
65
+ }