xyvcard-goods 0.0.31 → 0.0.33

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 (54) hide show
  1. package/README.md +51 -51
  2. package/dist/GoodsBaseForm-6rzBkBTh.mjs +4 -0
  3. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +374 -0
  4. package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +10 -0
  5. package/dist/GoodsSpecForm-BqaN71rS.mjs +4 -0
  6. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +140 -0
  7. package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Bf2jhRs5.mjs} +1 -1
  8. package/dist/edit copy 2-DnKLaz3I.mjs +45 -0
  9. package/dist/edit copy-tfwJCdiV.mjs +526 -0
  10. package/dist/{edit-DEKgI9dl.mjs → edit-1Lv_dvlq.mjs} +7 -7
  11. package/dist/{edit-WZ-vVp0_.mjs → edit-CZwlbL9o.mjs} +9 -9
  12. package/dist/{edit-CR4LNc6c.mjs → edit-D2zcGl_U.mjs} +1 -1
  13. package/dist/{edit-Bgvy3bUQ.mjs → edit-DBTNknBy.mjs} +4 -4
  14. package/dist/{edit-CAmBfr7s.mjs → edit-Db2EJ9dq.mjs} +4 -4
  15. package/dist/{edit.vue_vue_type_script_setup_true_lang-CSjc2-0k.mjs → edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs} +3 -3
  16. package/dist/el-message-BB2-39XJ.mjs +1221 -0
  17. package/dist/{index-Dy5vhMgv.mjs → index-BXa-atkT.mjs} +1 -1
  18. package/dist/{index-B9EvyZqu.mjs → index-BhUD_X30.mjs} +281 -250
  19. package/dist/{index-w0WaL9Bq.mjs → index-BpXZNA11.mjs} +3 -3
  20. package/dist/{index-CIOmQi5q.mjs → index-CRfiEzkA.mjs} +1489 -1478
  21. package/dist/{index-CCDQbidt.mjs → index-Cl4wz2yF.mjs} +3 -3
  22. package/dist/{index-CnXaunj4.mjs → index-DGYGNHfx.mjs} +3 -3
  23. package/dist/{index-Br8OH0po.mjs → index-DXIGHcIv.mjs} +2 -2
  24. package/dist/index-Df-F10aZ.mjs +264 -0
  25. package/dist/index-vHQhUQSO.mjs +95 -0
  26. package/dist/index.mjs +1 -1
  27. package/dist/{info-Cp_2nx9w.mjs → info-DDi6GKQH.mjs} +3 -3
  28. package/dist/{info-CzP-Zg-I.mjs → info-DfbU-CWk.mjs} +2 -2
  29. package/dist/{skuForm-D_Q4iyk2.mjs → skuForm-DWIoveRP.mjs} +14 -14
  30. package/dist/{skuForm-CVp5ywg4.mjs → skuForm-DoIpxDvq.mjs} +71 -86
  31. package/dist/{skuTable-DcYM5x3V.mjs → skuTable-BVBtWrf9.mjs} +13 -13
  32. package/dist/style.css +1 -1
  33. package/dts/api/goods-base/index.d.ts +11 -0
  34. package/dts/api/goods-base/types.d.ts +33 -0
  35. package/dts/api/goods-logistics/index.d.ts +8 -0
  36. package/dts/api/goods-logistics/types.d.ts +16 -0
  37. package/dts/api/goods-spec/index.d.ts +8 -0
  38. package/dts/api/goods-spec/types.d.ts +15 -0
  39. package/dts/api/goods-spu/index.d.ts +3 -0
  40. package/dts/api/goods-stock/index.d.ts +8 -0
  41. package/dts/api/goods-stock/types.d.ts +32 -0
  42. package/dts/api/index.d.ts +3 -0
  43. package/dts/constant.d.ts +26 -0
  44. package/dts/lang/goods/zh-cn.d.ts +12 -0
  45. package/dts/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +7 -0
  46. package/dts/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +2 -0
  47. package/dts/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +7 -0
  48. package/dts/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  49. package/dts/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  50. package/package.json +63 -63
  51. package/dist/index-Ba-YRVAR.mjs +0 -228
  52. package/dts/views/goods/goods-combination/goodsList.vue.d.ts +0 -14
  53. package/dts/views/goods/goods-combination/skuTable.vue.d.ts +0 -40
  54. package/dts/views/goods/goods-spu/goodsList.vue.d.ts +0 -23
@@ -1,38 +1,38 @@
1
- import { defineComponent as Se, ref as q, getCurrentInstance as be, onMounted as ye, onActivated as he, resolveComponent as i, resolveDirective as _e, createElementBlock as y, openBlock as r, createVNode as s, withCtx as o, Fragment as N, renderList as D, unref as t, createBlock as h, createCommentVNode as w, createElementVNode as A, withKeys as F, createTextVNode as b, toDisplayString as m, withDirectives as V, normalizeClass as we, isRef as G } from "vue";
2
- import { useRoute as Ve, useRouter as Ce } from "vue-router";
1
+ import { defineComponent as _e, ref as U, getCurrentInstance as we, onMounted as Ce, onActivated as Ve, resolveComponent as i, resolveDirective as ke, createElementBlock as _, openBlock as p, createVNode as s, createBlock as S, createCommentVNode as w, withCtx as a, Fragment as O, renderList as z, unref as t, createElementVNode as A, withKeys as G, createTextVNode as b, toDisplayString as m, withDirectives as C, normalizeClass as Pe, isRef as H } from "vue";
2
+ import { useRoute as Ae, useRouter as Ie } from "vue-router";
3
3
  import { ElMessage as P } from "element-plus";
4
- import { useI18n as ke } from "vue-i18n";
5
- import { useTableHooks as Pe, fileApi as H } from "jmash-core";
6
- import { D as g, C as f } from "./index-Ba-YRVAR.mjs";
7
- import { a as $ } from "./index-CIOmQi5q.mjs";
8
- const Ae = { class: "app-container" }, Re = {
4
+ import { useI18n as Re } from "vue-i18n";
5
+ import { useTableHooks as Le, fileApi as K } from "jmash-core";
6
+ import { D as g, C as f } from "./index-Df-F10aZ.mjs";
7
+ import { a as T } from "./index-CRfiEzkA.mjs";
8
+ const $e = { class: "app-container" }, Te = {
9
9
  key: 0,
10
10
  class: "app-container"
11
- }, Ie = { class: "search-container" }, Le = ["onClick"], $e = ["onClick"], Te = ["onClick"], je = /* @__PURE__ */ Se({
11
+ }, De = { class: "search-container" }, Ne = ["onClick"], Ue = ["onClick"], Oe = ["onClick"], Ge = /* @__PURE__ */ _e({
12
12
  __name: "index",
13
- setup(Ne) {
13
+ setup(ze) {
14
14
  g.goodsCategoryListBizLayDict.useValues(), g.brandListBizDict.useValues(), g.labelListBizDict.useValues(), g.shopInfoBizDict.useValues();
15
- const { t: v } = ke(), E = Ve(), U = Ce(), u = q(0), d = {
15
+ const { t: c } = Re(), j = Ae(), B = Ie(), u = U(0), r = {
16
16
  0: {},
17
17
  1: { shelf: "true", approvalStatus: f.APPROVAL_PASS },
18
18
  2: { shelf: "false" },
19
19
  3: { approvalStatus: f.APPROVALING },
20
20
  4: { approvalStatus: f.APPROVAL_NOT_PASS }
21
- }, { proxy: K } = be(), p = q({
21
+ }, { proxy: Q } = we(), d = U({
22
22
  curPage: 1,
23
23
  pageSize: 10,
24
- shelf: d[u.value].shelf ? d[u.value].shelf : void 0,
25
- approvalStatus: d[u.value].approvalStatus ? d[u.value].approvalStatus : void 0,
24
+ shelf: r[u.value].shelf ? r[u.value].shelf : void 0,
25
+ approvalStatus: r[u.value].approvalStatus ? r[u.value].approvalStatus : void 0,
26
26
  goodsType: f.GOODS_TYPE.NORMAL
27
27
  }), {
28
28
  tableHooks: n,
29
- multipleTableRef: I,
30
- queryFormRef: Q,
31
- listLoading: W,
32
- tableData: J,
33
- total: T
34
- } = Pe(v, $, p);
35
- let L = q([
29
+ multipleTableRef: R,
30
+ queryFormRef: W,
31
+ listLoading: J,
32
+ tableData: X,
33
+ total: D
34
+ } = Le(c, T, d);
35
+ let L = U([
36
36
  {
37
37
  label: "goodsSpu.spuName",
38
38
  prop: "spuName",
@@ -117,161 +117,170 @@ const Ae = { class: "app-container" }, Re = {
117
117
  isColumn: !0
118
118
  }
119
119
  ]);
120
- function X(a) {
121
- const e = Number(a.index);
122
- u.value = e, p.value.shelf = d[e].shelf || void 0, p.value.approvalStatus = d[e].approvalStatus || void 0, n.getList();
120
+ function Z(o) {
121
+ const e = Number(o.index);
122
+ u.value = e, d.value.shelf = r[e].shelf || void 0, d.value.approvalStatus = r[e].approvalStatus || void 0, n.getList();
123
123
  }
124
- function Z() {
125
- p.value = {
124
+ function x() {
125
+ d.value = {
126
126
  curPage: 1,
127
127
  pageSize: 10,
128
- shelf: d[u.value].shelf ? d[u.value].shelf : void 0,
129
- approvalStatus: d[u.value].approvalStatus ? d[u.value].approvalStatus : void 0
128
+ shelf: r[u.value].shelf ? r[u.value].shelf : void 0,
129
+ approvalStatus: r[u.value].approvalStatus ? r[u.value].approvalStatus : void 0
130
130
  }, n.getList();
131
131
  }
132
- ye(() => {
133
- E.query.activeTab && (u.value = Number(E.query.activeTab), p.value.shelf = d[u.value].shelf || void 0, p.value.approvalStatus = d[u.value].approvalStatus || void 0);
134
- }), he(() => {
132
+ Ce(() => {
133
+ j.query.activeTab && (u.value = Number(j.query.activeTab), d.value.shelf = r[u.value].shelf || void 0, d.value.approvalStatus = r[u.value].approvalStatus || void 0);
134
+ }), Ve(() => {
135
135
  n.getList();
136
136
  });
137
- function x() {
138
- U.push({ path: "/rawgoods/goods-spu/edit" });
137
+ function ee() {
138
+ B.push({ path: "/rawgoods/goods-spu/edit" });
139
139
  }
140
- function ee(a) {
141
- U.push({
140
+ function le(o) {
141
+ B.push({
142
142
  path: "/rawgoods/goods-spu/edit",
143
- query: { spuId: a.spuId }
143
+ query: { spuId: o.spuId }
144
144
  });
145
145
  }
146
- function le(a) {
147
- U.push({
146
+ function oe(o) {
147
+ B.push({
148
148
  path: "/rawgoods/goods-spu/info",
149
- query: { spuId: a.spuId }
149
+ query: { spuId: o.spuId }
150
150
  });
151
151
  }
152
- function oe(a) {
153
- n.selectionRows.value = a;
152
+ function ae(o) {
153
+ n.selectionRows.value = o;
154
154
  }
155
- function ae(a) {
156
- n.handleSort(a.prop, a.order);
155
+ function te(o) {
156
+ n.handleSort(o.prop, o.order);
157
157
  }
158
- function te() {
158
+ function se() {
159
159
  if (n.selectionRows.value.length === 0) {
160
160
  P({
161
- message: v("goodsSpu.chooseShelf"),
161
+ message: c("goodsSpu.chooseShelf"),
162
162
  type: "warning"
163
163
  });
164
164
  return;
165
165
  }
166
- const a = n.selectionRows.value.map(
166
+ const o = n.selectionRows.value.map(
167
167
  (e) => e.spuId
168
168
  );
169
- $.enable({ spuId: a }, !0).then((e) => {
170
- var c;
169
+ T.enable({ spuId: o }, !0).then((e) => {
170
+ var v;
171
171
  e.status === 200 && (P({
172
- message: v("goodsSpu.successShelf") + e.data + v("common.stripData"),
172
+ message: c("goodsSpu.successShelf") + e.data + c("common.stripData"),
173
173
  type: "success"
174
- }), n.getList(), (c = I.value) == null || c.clearSelection());
174
+ }), n.getList(), (v = R.value) == null || v.clearSelection());
175
175
  });
176
176
  }
177
- function se() {
177
+ function ue() {
178
178
  if (n.selectionRows.value.length === 0) {
179
179
  P({
180
- message: v("goodsSpu.chooseShelf"),
180
+ message: c("goodsSpu.chooseShelf"),
181
181
  type: "warning"
182
182
  });
183
183
  return;
184
184
  }
185
- const a = n.selectionRows.value.map(
185
+ const o = n.selectionRows.value.map(
186
186
  (e) => e.spuId
187
187
  );
188
- $.enable({ spuId: a }, !1).then((e) => {
189
- var c;
188
+ T.enable({ spuId: o }, !1).then((e) => {
189
+ var v;
190
190
  e.status === 200 && P({
191
- message: v("goodsSpu.successOffShelf") + e.data + v("common.stripData"),
191
+ message: c("goodsSpu.successOffShelf") + e.data + c("common.stripData"),
192
192
  type: "success"
193
- }), n.getList(), (c = I.value) == null || c.clearSelection();
193
+ }), n.getList(), (v = R.value) == null || v.clearSelection();
194
194
  });
195
195
  }
196
- function ue() {
196
+ function ne() {
197
197
  if (n.selectionRows.value.length === 0) {
198
198
  P({
199
- message: v("goodsSpu.chooseShelf"),
199
+ message: c("goodsSpu.chooseShelf"),
200
200
  type: "warning"
201
201
  });
202
202
  return;
203
203
  }
204
- const a = n.selectionRows.value.map(
204
+ const o = n.selectionRows.value.map(
205
205
  (e) => e.spuId
206
206
  );
207
- $.audit({ spuId: a }, f.APPROVAL_PASS).then((e) => {
208
- var c;
207
+ T.audit({ spuId: o }, f.APPROVAL_PASS).then((e) => {
208
+ var v;
209
209
  e.status === 200 && (P({
210
- message: v("goodsSpu.successApproval") + e.data + v("common.stripData"),
210
+ message: c("goodsSpu.successApproval") + e.data + c("common.stripData"),
211
211
  type: "success"
212
- }), n.getList(), (c = I.value) == null || c.clearSelection());
212
+ }), n.getList(), (v = R.value) == null || v.clearSelection());
213
213
  });
214
214
  }
215
- function ne() {
215
+ function pe() {
216
216
  if (n.selectionRows.value.length === 0) {
217
217
  P({
218
- message: v("goodsSpu.chooseShelf"),
218
+ message: c("goodsSpu.chooseShelf"),
219
219
  type: "warning"
220
220
  });
221
221
  return;
222
222
  }
223
- const a = n.selectionRows.value.map(
223
+ const o = n.selectionRows.value.map(
224
224
  (e) => e.spuId
225
225
  );
226
- $.audit({ spuId: a }, f.APPROVAL_NOT_PASS).then((e) => {
227
- var c;
226
+ T.audit({ spuId: o }, f.APPROVAL_NOT_PASS).then((e) => {
227
+ var v;
228
228
  e.status === 200 && (P({
229
- message: v("goodsSpu.successFilled") + e.data + v("common.stripData"),
229
+ message: c("goodsSpu.successFilled") + e.data + c("common.stripData"),
230
230
  type: "success"
231
- }), n.getList(), (c = I.value) == null || c.clearSelection());
231
+ }), n.getList(), (v = R.value) == null || v.clearSelection());
232
+ });
233
+ }
234
+ const $ = U(!1);
235
+ function de(o) {
236
+ o.updateMask = "", n.importExcel(o).then(() => {
237
+ $.value = !1;
232
238
  });
233
239
  }
234
- return (a, e) => {
235
- const c = i("el-input"), R = i("el-form-item"), C = i("el-col"), pe = i("el-tree-select"), j = i("el-option"), M = i("el-select"), O = i("el-row"), k = i("el-button"), de = i("el-form"), re = i("jmash-column-select"), ie = i("el-image"), Y = i("el-switch"), me = i("jmash-table"), ce = i("jmash-pagination"), ve = i("el-card"), ge = i("el-tab-pane"), fe = i("el-tabs"), _ = _e("hasPerm");
236
- return r(), y("div", Ae, [
237
- s(fe, {
240
+ function re() {
241
+ $.value = !1;
242
+ }
243
+ return (o, e) => {
244
+ const v = i("el-input"), I = i("el-form-item"), k = i("el-col"), ie = i("el-tree-select"), M = i("el-option"), Y = i("el-select"), q = i("el-row"), V = i("el-button"), me = i("el-form"), ce = i("jmash-column-select"), ve = i("el-image"), F = i("el-switch"), ge = i("jmash-table"), fe = i("jmash-pagination"), Se = i("el-card"), be = i("el-tab-pane"), ye = i("el-tabs"), he = i("import-upload"), h = ke("hasPerm");
245
+ return p(), _("div", $e, [
246
+ s(ye, {
238
247
  modelValue: u.value,
239
- "onUpdate:modelValue": e[15] || (e[15] = (z) => u.value = z),
248
+ "onUpdate:modelValue": e[16] || (e[16] = (N) => u.value = N),
240
249
  type: "border-card",
241
- onTabClick: X
250
+ onTabClick: Z
242
251
  }, {
243
- default: o(() => [
244
- (r(!0), y(N, null, D(t(g).goodsSpuListSortDict.values, (z, B) => (r(), h(ge, {
245
- key: B,
246
- label: z.value,
247
- name: B
252
+ default: a(() => [
253
+ (p(!0), _(O, null, z(t(g).goodsSpuListSortDict.values, (N, E) => (p(), S(be, {
254
+ key: E,
255
+ label: N.value,
256
+ name: E
248
257
  }, {
249
- default: o(() => [
250
- u.value === B ? (r(), y("div", Re, [
251
- A("div", Ie, [
252
- s(de, {
258
+ default: a(() => [
259
+ u.value === E ? (p(), _("div", Te, [
260
+ A("div", De, [
261
+ s(me, {
253
262
  ref_for: !0,
254
263
  ref_key: "queryFormRef",
255
- ref: Q,
256
- model: p.value,
264
+ ref: W,
265
+ model: d.value,
257
266
  inline: !0
258
267
  }, {
259
- default: o(() => [
260
- s(O, null, {
261
- default: o(() => [
262
- s(C, { span: 6 }, {
263
- default: o(() => [
264
- s(R, {
265
- label: a.$t("goodsSpu.spuCode"),
268
+ default: a(() => [
269
+ s(q, null, {
270
+ default: a(() => [
271
+ s(k, { span: 6 }, {
272
+ default: a(() => [
273
+ s(I, {
274
+ label: o.$t("goodsSpu.spuCode"),
266
275
  prop: "spuCode"
267
276
  }, {
268
- default: o(() => [
269
- s(c, {
270
- modelValue: p.value.spuCode,
271
- "onUpdate:modelValue": e[0] || (e[0] = (l) => p.value.spuCode = l),
272
- placeholder: a.$t("goodsSpu.spuCodeRequired"),
277
+ default: a(() => [
278
+ s(v, {
279
+ modelValue: d.value.spuCode,
280
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => d.value.spuCode = l),
281
+ placeholder: o.$t("goodsSpu.spuCodeRequired"),
273
282
  class: "!w-[203px]",
274
- onKeyup: e[1] || (e[1] = F((l) => t(n).handleQuery(), ["enter"]))
283
+ onKeyup: e[1] || (e[1] = G((l) => t(n).handleQuery(), ["enter"]))
275
284
  }, null, 8, ["modelValue", "placeholder"])
276
285
  ]),
277
286
  _: 1
@@ -279,18 +288,18 @@ const Ae = { class: "app-container" }, Re = {
279
288
  ]),
280
289
  _: 1
281
290
  }),
282
- s(C, { span: 6 }, {
283
- default: o(() => [
284
- s(R, {
285
- label: a.$t("goodsSpu.spuName"),
291
+ s(k, { span: 6 }, {
292
+ default: a(() => [
293
+ s(I, {
294
+ label: o.$t("goodsSpu.spuName"),
286
295
  prop: "likeSpuName"
287
296
  }, {
288
- default: o(() => [
289
- s(c, {
290
- modelValue: p.value.likeSpuName,
291
- "onUpdate:modelValue": e[2] || (e[2] = (l) => p.value.likeSpuName = l),
292
- placeholder: a.$t("goodsSpu.spuNameRequired"),
293
- onKeyup: e[3] || (e[3] = F((l) => t(n).handleQuery(), ["enter"]))
297
+ default: a(() => [
298
+ s(v, {
299
+ modelValue: d.value.likeSpuName,
300
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => d.value.likeSpuName = l),
301
+ placeholder: o.$t("goodsSpu.spuNameRequired"),
302
+ onKeyup: e[3] || (e[3] = G((l) => t(n).handleQuery(), ["enter"]))
294
303
  }, null, 8, ["modelValue", "placeholder"])
295
304
  ]),
296
305
  _: 1
@@ -298,19 +307,21 @@ const Ae = { class: "app-container" }, Re = {
298
307
  ]),
299
308
  _: 1
300
309
  }),
301
- s(C, { span: 6 }, {
302
- default: o(() => [
303
- s(R, {
304
- label: a.$t("goodsSpu.categoryId"),
310
+ s(k, { span: 6 }, {
311
+ default: a(() => [
312
+ s(I, {
313
+ label: o.$t("goodsSpu.categoryId"),
305
314
  prop: "categoryIds"
306
315
  }, {
307
- default: o(() => [
308
- s(pe, {
309
- modelValue: p.value.categoryIds,
310
- "onUpdate:modelValue": e[4] || (e[4] = (l) => p.value.categoryIds = l),
316
+ default: a(() => [
317
+ s(ie, {
318
+ modelValue: d.value.categoryIds,
319
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => d.value.categoryIds = l),
311
320
  data: t(g).goodsCategoryListBizLayDict.values,
312
321
  multiple: "",
313
- placeholder: a.$t("goodsSpu.categoryIdRequired"),
322
+ "render-after-expand": !1,
323
+ "show-checkbox": "",
324
+ placeholder: o.$t("goodsSpu.categoryIdRequired"),
314
325
  class: "!w-[203px]"
315
326
  }, null, 8, ["modelValue", "data", "placeholder"])
316
327
  ]),
@@ -319,22 +330,22 @@ const Ae = { class: "app-container" }, Re = {
319
330
  ]),
320
331
  _: 1
321
332
  }),
322
- s(C, { span: 6 }, {
323
- default: o(() => [
324
- s(R, {
325
- label: a.$t("goodsSpu.brandId"),
333
+ s(k, { span: 6 }, {
334
+ default: a(() => [
335
+ s(I, {
336
+ label: o.$t("goodsSpu.brandId"),
326
337
  prop: "brandId"
327
338
  }, {
328
- default: o(() => [
329
- s(M, {
330
- modelValue: p.value.brandId,
331
- "onUpdate:modelValue": e[5] || (e[5] = (l) => p.value.brandId = l),
339
+ default: a(() => [
340
+ s(Y, {
341
+ modelValue: d.value.brandId,
342
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => d.value.brandId = l),
332
343
  data: t(g).brandListBizDict.values,
333
- placeholder: a.$t("goodsSpu.brandIdRequired"),
344
+ placeholder: o.$t("goodsSpu.brandIdRequired"),
334
345
  class: "!w-[203px]"
335
346
  }, {
336
- default: o(() => [
337
- (r(!0), y(N, null, D(t(g).brandListBizDict.values, (l) => (r(), h(j, {
347
+ default: a(() => [
348
+ (p(!0), _(O, null, z(t(g).brandListBizDict.values, (l) => (p(), S(M, {
338
349
  key: l.key,
339
350
  label: l.value,
340
351
  value: l.key
@@ -351,25 +362,25 @@ const Ae = { class: "app-container" }, Re = {
351
362
  ]),
352
363
  _: 1
353
364
  }),
354
- s(O, null, {
355
- default: o(() => [
356
- s(C, { span: 6 }, {
357
- default: o(() => [
358
- s(R, {
359
- label: a.$t("goodsSpu.labelIds"),
365
+ s(q, null, {
366
+ default: a(() => [
367
+ s(k, { span: 6 }, {
368
+ default: a(() => [
369
+ s(I, {
370
+ label: o.$t("goodsSpu.labelIds"),
360
371
  prop: "labelIds"
361
372
  }, {
362
- default: o(() => [
363
- s(M, {
364
- modelValue: p.value.labelIds,
365
- "onUpdate:modelValue": e[6] || (e[6] = (l) => p.value.labelIds = l),
373
+ default: a(() => [
374
+ s(Y, {
375
+ modelValue: d.value.labelIds,
376
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => d.value.labelIds = l),
366
377
  data: t(g).labelListBizDict.values,
367
378
  multiple: "",
368
- placeholder: a.$t("goodsSpu.labelIdsRequired"),
379
+ placeholder: o.$t("goodsSpu.labelIdsRequired"),
369
380
  class: "!w-[203px]"
370
381
  }, {
371
- default: o(() => [
372
- (r(!0), y(N, null, D(t(g).labelListBizDict.values, (l) => (r(), h(j, {
382
+ default: a(() => [
383
+ (p(!0), _(O, null, z(t(g).labelListBizDict.values, (l) => (p(), S(M, {
373
384
  key: l.key,
374
385
  label: l.value,
375
386
  value: l.key
@@ -383,24 +394,24 @@ const Ae = { class: "app-container" }, Re = {
383
394
  ]),
384
395
  _: 1
385
396
  }),
386
- s(C, { span: 18 }, {
387
- default: o(() => [
388
- s(R, { class: "search-btn" }, {
389
- default: o(() => [
390
- s(k, {
397
+ s(k, { span: 18 }, {
398
+ default: a(() => [
399
+ s(I, { class: "search-btn" }, {
400
+ default: a(() => [
401
+ s(V, {
391
402
  type: "primary",
392
403
  onClick: e[7] || (e[7] = (l) => t(n).handleQuery())
393
404
  }, {
394
- default: o(() => [
395
- b(m(a.$t("common.search")), 1)
405
+ default: a(() => [
406
+ b(m(o.$t("common.search")), 1)
396
407
  ]),
397
408
  _: 1
398
409
  }),
399
- s(k, {
400
- onClick: e[8] || (e[8] = (l) => Z())
410
+ s(V, {
411
+ onClick: e[8] || (e[8] = (l) => x())
401
412
  }, {
402
- default: o(() => [
403
- b(m(a.$t("common.reset")), 1)
413
+ default: a(() => [
414
+ b(m(o.$t("common.reset")), 1)
404
415
  ]),
405
416
  _: 1
406
417
  })
@@ -416,99 +427,111 @@ const Ae = { class: "app-container" }, Re = {
416
427
  ]),
417
428
  _: 1
418
429
  }, 8, ["model"]),
419
- e[16] || (e[16] = A("div", { class: "clear" }, null, -1))
430
+ e[18] || (e[18] = A("div", { class: "clear" }, null, -1))
420
431
  ]),
421
- s(ve, {
432
+ s(Se, {
422
433
  shadow: "never",
423
434
  class: "table-container"
424
435
  }, {
425
- header: o(() => [
426
- s(O, null, {
427
- default: o(() => [
428
- s(C, { span: 17 }, {
429
- default: o(() => [
430
- V((r(), h(k, {
436
+ header: a(() => [
437
+ s(q, null, {
438
+ default: a(() => [
439
+ s(k, { span: 17 }, {
440
+ default: a(() => [
441
+ C((p(), S(V, {
431
442
  type: "primary",
432
- onClick: x
443
+ onClick: ee
433
444
  }, {
434
- default: o(() => [
435
- b(m(a.$t("common.add")), 1)
445
+ default: a(() => [
446
+ b(m(o.$t("common.add")), 1)
436
447
  ]),
437
448
  _: 1
438
449
  })), [
439
- [_, ["goods:goods_spu:add"]]
450
+ [h, ["goods:goods_spu:add"]]
440
451
  ]),
441
- d[u.value].approvalStatus !== t(f).APPROVAL_PASS ? V((r(), h(k, {
452
+ r[u.value].approvalStatus !== t(f).APPROVAL_PASS ? C((p(), S(V, {
442
453
  key: 0,
443
454
  type: "primary",
444
455
  onClick: e[9] || (e[9] = (l) => t(n).deleteRecords())
445
456
  }, {
446
- default: o(() => [
447
- b(m(a.$t("common.batchDelete")), 1)
457
+ default: a(() => [
458
+ b(m(o.$t("common.batchDelete")), 1)
448
459
  ]),
449
460
  _: 1
450
461
  })), [
451
- [_, ["goods:goods_spu:delete"]]
462
+ [h, ["goods:goods_spu:delete"]]
452
463
  ]) : w("", !0),
453
- d[u.value].approvalStatus === t(f).APPROVAL_PASS || u.value === 0 ? V((r(), h(k, {
464
+ r[u.value].approvalStatus === t(f).APPROVAL_PASS || u.value === 0 ? C((p(), S(V, {
454
465
  key: 1,
455
466
  type: "primary",
456
- onClick: se
467
+ onClick: ue
457
468
  }, {
458
- default: o(() => [
459
- b(m(a.$t("goodsSpu.batchOffShelf")), 1)
469
+ default: a(() => [
470
+ b(m(o.$t("goodsSpu.batchOffShelf")), 1)
460
471
  ]),
461
472
  _: 1
462
473
  })), [
463
- [_, ["goods:goods_spu:onSale"]]
474
+ [h, ["goods:goods_spu:onSale"]]
464
475
  ]) : w("", !0),
465
- d[u.value].shelf === "false" || u.value === 0 ? V((r(), h(k, {
476
+ r[u.value].shelf === "false" || u.value === 0 ? C((p(), S(V, {
466
477
  key: 2,
467
478
  type: "primary",
468
- onClick: te
479
+ onClick: se
469
480
  }, {
470
- default: o(() => [
471
- b(m(a.$t("goodsSpu.batchShelf")), 1)
481
+ default: a(() => [
482
+ b(m(o.$t("goodsSpu.batchShelf")), 1)
472
483
  ]),
473
484
  _: 1
474
485
  })), [
475
- [_, ["goods:goods_spu:onSale"]]
486
+ [h, ["goods:goods_spu:onSale"]]
476
487
  ]) : w("", !0),
477
- u.value === 0 || d[u.value].approvalStatus === t(f).APPROVALING ? V((r(), h(k, {
488
+ u.value === 0 || r[u.value].approvalStatus === t(f).APPROVALING ? C((p(), S(V, {
478
489
  key: 3,
479
490
  type: "primary",
480
- onClick: ue
491
+ onClick: ne
481
492
  }, {
482
- default: o(() => [
483
- b(m(a.$t("goodsSpu.batchApprovaled")), 1)
493
+ default: a(() => [
494
+ b(m(o.$t("goodsSpu.batchApprovaled")), 1)
484
495
  ]),
485
496
  _: 1
486
497
  })), [
487
- [_, ["goods:goods_spu:approve"]]
498
+ [h, ["goods:goods_spu:approve"]]
488
499
  ]) : w("", !0),
489
- u.value === 0 || d[u.value].approvalStatus === t(f).APPROVALING ? V((r(), h(k, {
500
+ u.value === 0 || r[u.value].approvalStatus === t(f).APPROVALING ? C((p(), S(V, {
490
501
  key: 4,
491
502
  type: "primary",
492
- onClick: ne
503
+ onClick: pe
493
504
  }, {
494
- default: o(() => [
495
- b(m(a.$t("goodsSpu.batchRejected")), 1)
505
+ default: a(() => [
506
+ b(m(o.$t("goodsSpu.batchRejected")), 1)
496
507
  ]),
497
508
  _: 1
498
509
  })), [
499
- [_, ["goods:goods_spu:approve"]]
510
+ [h, ["goods_spuapprove"]]
500
511
  ]) : w("", !0)
501
512
  ]),
502
513
  _: 1
503
514
  }),
504
- s(C, {
515
+ s(k, {
505
516
  span: 7,
506
517
  class: "container-float"
507
518
  }, {
508
- default: o(() => [
509
- s(re, {
519
+ default: a(() => [
520
+ C((p(), S(V, {
521
+ plain: "",
522
+ type: "primary",
523
+ onClick: e[10] || (e[10] = (l) => $.value = !0)
524
+ }, {
525
+ default: a(() => [
526
+ b(m(o.$t("common.import")), 1)
527
+ ]),
528
+ _: 1
529
+ })), [
530
+ [h, ["goods_spuimport"]]
531
+ ]),
532
+ s(ce, {
510
533
  modelValue: t(L),
511
- "onUpdate:modelValue": e[10] || (e[10] = (l) => G(L) ? L.value = l : L = l),
534
+ "onUpdate:modelValue": e[11] || (e[11] = (l) => H(L) ? L.value = l : L = l),
512
535
  "label-name": "goods/goods-spu"
513
536
  }, null, 8, ["modelValue"])
514
537
  ]),
@@ -518,46 +541,46 @@ const Ae = { class: "app-container" }, Re = {
518
541
  _: 1
519
542
  })
520
543
  ]),
521
- footer: o(() => [
522
- t(T) > 0 ? (r(), h(ce, {
544
+ footer: a(() => [
545
+ t(D) > 0 ? (p(), S(fe, {
523
546
  key: 0,
524
- total: t(T),
525
- "onUpdate:total": e[11] || (e[11] = (l) => G(T) ? T.value = l : null),
526
- "current-page": p.value.curPage,
527
- "onUpdate:currentPage": e[12] || (e[12] = (l) => p.value.curPage = l),
528
- "page-size": p.value.pageSize,
529
- "onUpdate:pageSize": e[13] || (e[13] = (l) => p.value.pageSize = l),
530
- onPagination: e[14] || (e[14] = (l) => t(n).getList())
547
+ total: t(D),
548
+ "onUpdate:total": e[12] || (e[12] = (l) => H(D) ? D.value = l : null),
549
+ "current-page": d.value.curPage,
550
+ "onUpdate:currentPage": e[13] || (e[13] = (l) => d.value.curPage = l),
551
+ "page-size": d.value.pageSize,
552
+ "onUpdate:pageSize": e[14] || (e[14] = (l) => d.value.pageSize = l),
553
+ onPagination: e[15] || (e[15] = (l) => t(n).getList())
531
554
  }, null, 8, ["total", "current-page", "page-size"])) : w("", !0)
532
555
  ]),
533
- default: o(() => [
534
- s(me, {
556
+ default: a(() => [
557
+ s(ge, {
535
558
  ref_for: !0,
536
559
  ref_key: "multipleTableRef",
537
- ref: I,
560
+ ref: R,
538
561
  "row-key": "spuId",
539
- "list-loading": t(W),
540
- data: t(J),
562
+ "list-loading": t(J),
563
+ data: t(X),
541
564
  "table-label": t(L),
542
- onSelectionChange: oe,
543
- onSortChange: ae
565
+ onSelectionChange: ae,
566
+ onSortChange: te
544
567
  }, {
545
- categoryId: o((l) => [
546
- (r(!0), y(N, null, D(l.data.row.categoryIds, (S) => (r(), y("span", {
547
- key: S,
568
+ categoryId: a((l) => [
569
+ (p(!0), _(O, null, z(l.data.row.categoryIds, (y) => (p(), _("span", {
570
+ key: y,
548
571
  style: { "margin-right": "8px", "margin-bottom": "4px" }
549
- }, m(t(g).goodsCategoryListBizLayDict.getValue(S)), 1))), 128))
572
+ }, m(t(g).goodsCategoryListBizLayDict.getValue(y)), 1))), 128))
550
573
  ]),
551
- picUrls: o((l) => [
574
+ picUrls: a((l) => [
552
575
  A("span", null, [
553
- s(ie, {
554
- src: t(H).imageUrl(
576
+ s(ve, {
577
+ src: t(K).imageUrl(
555
578
  l.data.row.picUrls.split(",")[0],
556
579
  0,
557
580
  0
558
581
  ),
559
582
  "preview-src-list": [
560
- t(H).imageUrl(l.data.row.picUrls.split(",")[0])
583
+ t(K).imageUrl(l.data.row.picUrls.split(",")[0])
561
584
  ],
562
585
  "preview-teleported": "",
563
586
  "hide-on-click-modal": "",
@@ -565,70 +588,70 @@ const Ae = { class: "app-container" }, Re = {
565
588
  }, null, 8, ["src", "preview-src-list"])
566
589
  ])
567
590
  ]),
568
- shelf: o((l) => [
591
+ shelf: a((l) => [
569
592
  A("span", null, [
570
- s(Y, {
593
+ s(F, {
571
594
  modelValue: l.data.row.shelf,
572
- "onUpdate:modelValue": (S) => l.data.row.shelf = S,
573
- onClick: (S) => t(n).enableRecord(
595
+ "onUpdate:modelValue": (y) => l.data.row.shelf = y,
596
+ onClick: (y) => t(n).enableRecord(
574
597
  l.data.row,
575
598
  l.data.row.shelf
576
599
  )
577
600
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
578
601
  ])
579
602
  ]),
580
- specType: o((l) => [
603
+ specType: a((l) => [
581
604
  A("span", null, m(t(g).specTypeEnum.getEnumValue(l.data.row.specType)), 1)
582
605
  ]),
583
- approvalStatus: o((l) => [
606
+ approvalStatus: a((l) => [
584
607
  A("span", null, m(t(g).approvalStatusEnum.getEnumValue(
585
608
  l.data.row.approvalStatus
586
609
  )), 1)
587
610
  ]),
588
- updateTime: o((l) => [
589
- A("span", null, m(t(K).$moment.formatDate(
611
+ updateTime: a((l) => [
612
+ A("span", null, m(t(Q).$moment.formatDate(
590
613
  l.data.row.updateTime,
591
614
  "YYYY-MM-DD HH:mm:ss"
592
615
  )), 1)
593
616
  ]),
594
- enable: o((l) => [
595
- s(Y, {
617
+ enable: a((l) => [
618
+ s(F, {
596
619
  modelValue: l.data.row.enable,
597
- "onUpdate:modelValue": (S) => l.data.row.enable = S,
598
- onChange: (S) => t(n).enableRecord(
620
+ "onUpdate:modelValue": (y) => l.data.row.enable = y,
621
+ onChange: (y) => t(n).enableRecord(
599
622
  l.data.row,
600
623
  l.data.row.enable
601
624
  )
602
625
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
603
626
  ]),
604
- operation: o((l) => [
605
- d[u.value].approvalStatus !== t(f).APPROVAL_PASS ? V((r(), y("span", {
627
+ operation: a((l) => [
628
+ r[u.value].approvalStatus !== t(f).APPROVAL_PASS ? C((p(), _("span", {
606
629
  key: 0,
607
630
  class: "el-button-color",
608
- onClick: (S) => ee(l.data.row)
631
+ onClick: (y) => le(l.data.row)
609
632
  }, [
610
- b(m(a.$t("common.edit")), 1)
611
- ], 8, Le)), [
612
- [_, ["goods:goods_spu:update"]]
633
+ b(m(o.$t("common.edit")), 1)
634
+ ], 8, Ne)), [
635
+ [h, ["goods:goods_spu:update"]]
613
636
  ]) : w("", !0),
614
- d[u.value].approvalStatus !== t(f).APPROVAL_PASS ? V((r(), y("span", {
637
+ r[u.value].approvalStatus !== t(f).APPROVAL_PASS ? C((p(), _("span", {
615
638
  key: 1,
616
639
  class: "el-button-color dropdown-left",
617
- onClick: (S) => t(n).deleteRecord(l.data.row)
640
+ onClick: (y) => t(n).deleteRecord(l.data.row)
618
641
  }, [
619
- b(m(a.$t("common.delete")), 1)
620
- ], 8, $e)), [
621
- [_, ["goods:goods_spu:delete"]]
642
+ b(m(o.$t("common.delete")), 1)
643
+ ], 8, Ue)), [
644
+ [h, ["goods:goods_spu:delete"]]
622
645
  ]) : w("", !0),
623
- V((r(), y("span", {
624
- class: we(
625
- d[u.value].approvalStatus !== t(f).APPROVAL_PASS ? "el-button-color dropdown-left" : "el-button-color"
646
+ C((p(), _("span", {
647
+ class: Pe(
648
+ r[u.value].approvalStatus !== t(f).APPROVAL_PASS ? "el-button-color dropdown-left" : "el-button-color"
626
649
  ),
627
- onClick: (S) => le(l.data.row)
650
+ onClick: (y) => oe(l.data.row)
628
651
  }, [
629
- b(m(a.$t("common.view")), 1)
630
- ], 10, Te)), [
631
- [_, ["goods:goods_spu:view"]]
652
+ b(m(o.$t("common.view")), 1)
653
+ ], 10, Oe)), [
654
+ [h, ["goods:goods_spu:view"]]
632
655
  ])
633
656
  ]),
634
657
  _: 1
@@ -642,11 +665,19 @@ const Ae = { class: "app-container" }, Re = {
642
665
  }, 1032, ["label", "name"]))), 128))
643
666
  ]),
644
667
  _: 1
645
- }, 8, ["modelValue"])
668
+ }, 8, ["modelValue"]),
669
+ $.value ? (p(), S(he, {
670
+ key: 0,
671
+ "upload-visible": $.value,
672
+ "template-title": o.$t("goodsSpu.templateDownload"),
673
+ onTemplateDown: e[17] || (e[17] = (N) => t(n).downloadTemplate(t(c)("goodsSpu.name"))),
674
+ onImportEvents: de,
675
+ onUploadClosed: re
676
+ }, null, 8, ["upload-visible", "template-title"])) : w("", !0)
646
677
  ]);
647
678
  };
648
679
  }
649
680
  });
650
681
  export {
651
- je as default
682
+ Ge as default
652
683
  };