xyvcard-goods 0.0.28 → 0.0.30

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 (31) hide show
  1. package/dist/{edit-CquWa3hI.mjs → edit-BY1AVieE.mjs} +131 -128
  2. package/dist/{edit-CYekSxUa.mjs → edit-BYxk3lFr.mjs} +3 -3
  3. package/dist/{edit-C_XCVJwM.mjs → edit-CRc6GqY4.mjs} +8 -8
  4. package/dist/{edit-CuZnQH9w.mjs → edit-D9JqZTHN.mjs} +1 -1
  5. package/dist/{edit-D1FAN3TA.mjs → edit-ehVvbusK.mjs} +23 -30
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs → edit.vue_vue_type_script_setup_true_lang-d769FSho.mjs} +3 -3
  7. package/dist/index-BLO5ssji.mjs +562 -0
  8. package/dist/{index-nCeCw43N.mjs → index-BaX061kc.mjs} +87 -92
  9. package/dist/index-CNVwLggO.mjs +644 -0
  10. package/dist/{index-wH3Sgvus.mjs → index-DloS7z9I.mjs} +1 -1
  11. package/dist/{index-B27GuULR.mjs → index-Dpms2ryP.mjs} +9 -9
  12. package/dist/{index-B3vvD7JH.mjs → index-DvCC73mO.mjs} +61 -63
  13. package/dist/{index-Dd1dJx7i.mjs → index-R43ND-Ey.mjs} +32 -37
  14. package/dist/{index-COXyxAor.mjs → index-Vu01FEMS.mjs} +53 -46
  15. package/dist/index.mjs +1 -1
  16. package/dist/{info-NBnTd9fK.mjs → info-CJxN7XOi.mjs} +2 -2
  17. package/dist/{info-0Pf9u0GJ.mjs → info-CzhzwS5C.mjs} +3 -3
  18. package/dist/{skuForm-BsvKk2kD.mjs → skuForm-K3S131WX.mjs} +86 -83
  19. package/dist/{skuForm-CU0a2ltJ.mjs → skuForm-X1aeeUCX.mjs} +2 -2
  20. package/dist/{skuTable-DgDGWX-n.mjs → skuTable-7VaeJKGp.mjs} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dts/api/goods-spu/types.d.ts +1 -0
  23. package/dts/api/index.d.ts +1 -0
  24. package/dts/constant.d.ts +10 -0
  25. package/package.json +4 -4
  26. package/dist/goodsList-DZlaY5k0.mjs +0 -4
  27. package/dist/goodsList-wpPEPZqs.mjs +0 -4
  28. package/dist/goodsList.vue_vue_type_script_setup_true_lang-BFXFifWr.mjs +0 -565
  29. package/dist/goodsList.vue_vue_type_script_setup_true_lang-iXycU5oS.mjs +0 -714
  30. package/dist/index-DFxg3rmo.mjs +0 -55
  31. package/dist/index-Dy5JznUz.mjs +0 -53
@@ -1,13 +1,13 @@
1
- import { defineComponent as x, ref as V, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as u, createElementBlock as $, createElementVNode as U, createVNode as t, withCtx as l, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, createBlock as w, isRef as T, createCommentVNode as D } from "vue";
1
+ import { defineComponent as x, ref as $, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as d, createElementBlock as w, createElementVNode as U, createVNode as l, withCtx as t, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as k, createBlock as _, isRef as T, createCommentVNode as D } from "vue";
2
2
  import { useI18n as le } from "vue-i18n";
3
3
  import { useTableHooks as ae, fileApi as j } from "jmash-core";
4
- import { D as ne } from "./index-COXyxAor.mjs";
5
- import { g as re } from "./index-B27GuULR.mjs";
6
- import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BSxqVyG4.mjs";
7
- const ie = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], be = /* @__PURE__ */ x({
4
+ import { D as ne } from "./index-Vu01FEMS.mjs";
5
+ import { g as re } from "./index-Dpms2ryP.mjs";
6
+ import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-d769FSho.mjs";
7
+ const ie = { class: "app-container" }, de = { class: "search-container" }, ue = { key: 1 }, me = ["onClick"], pe = ["onClick"], Ce = /* @__PURE__ */ x({
8
8
  __name: "index",
9
- setup(pe) {
10
- const { t: _ } = le(), i = V({
9
+ setup(ce) {
10
+ const { t: y } = le(), i = $({
11
11
  curPage: 1,
12
12
  pageSize: 10
13
13
  }), {
@@ -16,19 +16,19 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
16
16
  queryFormRef: P,
17
17
  listLoading: B,
18
18
  tableData: q,
19
- total: y
20
- } = ae(_, re, i);
21
- let g = V([
19
+ total: v
20
+ } = ae(y, re, i);
21
+ let g = $([
22
22
  {
23
23
  label: "goodsCategory.categoryName",
24
24
  prop: "categoryName",
25
- width: "200",
25
+ minWidth: "200",
26
26
  isColumn: !0
27
27
  },
28
28
  {
29
29
  label: "goodsCategory.categoryCode",
30
30
  prop: "categoryCode",
31
- width: "200",
31
+ minWidth: "200",
32
32
  isColumn: !0
33
33
  },
34
34
  {
@@ -40,13 +40,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
40
40
  isColumn: !0
41
41
  },
42
42
  {
43
- label: "goodsCategory.description",
44
- prop: "description",
45
- minWidth: "200",
46
- isColumn: !0
47
- },
48
- {
49
- label: "goodsCategory.status",
43
+ label: "goodsSpu.shelf",
50
44
  prop: "status",
51
45
  slotName: "status",
52
46
  columnType: "slot",
@@ -69,16 +63,16 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
69
63
  isColumn: !0
70
64
  }
71
65
  ]);
72
- const d = V({
73
- title: _("common.edit"),
66
+ const u = $({
67
+ title: y("common.edit"),
74
68
  visible: !1
75
69
  });
76
70
  let h = S({});
77
71
  function L() {
78
- h = S({}), d.value.title = _("common.add"), d.value.visible = !0;
72
+ h = S({}), u.value.title = y("common.add"), u.value.visible = !0;
79
73
  }
80
74
  function A(a) {
81
- h = { ...a }, d.value.title = _("common.edit"), d.value.visible = !0;
75
+ h = { ...a }, u.value.title = y("common.edit"), u.value.visible = !0;
82
76
  }
83
77
  function E(a) {
84
78
  s.selectionRows.value = a;
@@ -92,26 +86,26 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
92
86
  return ee(() => {
93
87
  s.getList();
94
88
  }), (a, o) => {
95
- const F = r("el-input"), k = r("el-form-item"), f = r("el-col"), H = r("jmash-select"), v = r("el-button"), N = r("el-row"), I = r("el-form"), M = r("jmash-column-select"), O = r("el-image"), W = r("el-switch"), G = r("Bottom"), R = r("el-icon"), J = r("Top"), X = r("jmash-table"), Y = r("jmash-pagination"), Z = r("el-card"), b = oe("hasPerm");
96
- return u(), $("div", ie, [
89
+ const F = r("el-input"), V = r("el-form-item"), f = r("el-col"), H = r("jmash-select"), b = r("el-button"), N = r("el-row"), I = r("el-form"), M = r("jmash-column-select"), O = r("el-image"), W = r("el-switch"), G = r("Bottom"), R = r("el-icon"), J = r("Top"), X = r("jmash-table"), Y = r("jmash-pagination"), Z = r("el-card"), C = oe("hasPerm");
90
+ return d(), w("div", ie, [
97
91
  U("div", de, [
98
- t(I, {
92
+ l(I, {
99
93
  ref_key: "queryFormRef",
100
94
  ref: P,
101
95
  model: i.value,
102
96
  inline: !0
103
97
  }, {
104
- default: l(() => [
105
- t(N, null, {
106
- default: l(() => [
107
- t(f, { span: 6 }, {
108
- default: l(() => [
109
- t(k, {
98
+ default: t(() => [
99
+ l(N, null, {
100
+ default: t(() => [
101
+ l(f, { span: 6 }, {
102
+ default: t(() => [
103
+ l(V, {
110
104
  label: a.$t("goodsCategory.categoryName"),
111
105
  prop: "likeCategoryName"
112
106
  }, {
113
- default: l(() => [
114
- t(F, {
107
+ default: t(() => [
108
+ l(F, {
115
109
  modelValue: i.value.likeCategoryName,
116
110
  "onUpdate:modelValue": o[0] || (o[0] = (e) => i.value.likeCategoryName = e),
117
111
  placeholder: a.$t("goodsCategory.categoryNameRequired"),
@@ -125,14 +119,14 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
125
119
  ]),
126
120
  _: 1
127
121
  }),
128
- t(f, { span: 6 }, {
129
- default: l(() => [
130
- t(k, {
122
+ l(f, { span: 6 }, {
123
+ default: t(() => [
124
+ l(V, {
131
125
  label: a.$t("goodsCategory.status"),
132
126
  prop: "status"
133
127
  }, {
134
- default: l(() => [
135
- t(H, {
128
+ default: t(() => [
129
+ l(H, {
136
130
  modelValue: i.value.status,
137
131
  "onUpdate:modelValue": o[2] || (o[2] = (e) => i.value.status = e),
138
132
  placeholder: a.$t("goodsCategory.statusRequired"),
@@ -145,23 +139,23 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
145
139
  ]),
146
140
  _: 1
147
141
  }),
148
- t(f, { span: 12 }, {
149
- default: l(() => [
150
- t(k, { class: "search-btn" }, {
151
- default: l(() => [
152
- t(v, {
142
+ l(f, { span: 12 }, {
143
+ default: t(() => [
144
+ l(V, { class: "search-btn" }, {
145
+ default: t(() => [
146
+ l(b, {
153
147
  type: "primary",
154
148
  onClick: o[3] || (o[3] = (e) => n(s).handleQuery())
155
149
  }, {
156
- default: l(() => [
150
+ default: t(() => [
157
151
  p(c(a.$t("common.search")), 1)
158
152
  ]),
159
153
  _: 1
160
154
  }),
161
- t(v, {
155
+ l(b, {
162
156
  onClick: o[4] || (o[4] = (e) => n(s).resetQuery())
163
157
  }, {
164
- default: l(() => [
158
+ default: t(() => [
165
159
  p(c(a.$t("common.reset")), 1)
166
160
  ]),
167
161
  _: 1
@@ -180,46 +174,46 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
180
174
  }, 8, ["model"]),
181
175
  o[12] || (o[12] = U("div", { class: "clear" }, null, -1))
182
176
  ]),
183
- t(Z, {
177
+ l(Z, {
184
178
  shadow: "never",
185
179
  class: "table-container"
186
180
  }, {
187
- header: l(() => [
188
- t(N, null, {
189
- default: l(() => [
190
- t(f, { span: 17 }, {
191
- default: l(() => [
192
- C((u(), w(v, {
181
+ header: t(() => [
182
+ l(N, null, {
183
+ default: t(() => [
184
+ l(f, { span: 17 }, {
185
+ default: t(() => [
186
+ k((d(), _(b, {
193
187
  type: "primary",
194
188
  onClick: L
195
189
  }, {
196
- default: l(() => [
190
+ default: t(() => [
197
191
  p(c(a.$t("common.add")), 1)
198
192
  ]),
199
193
  _: 1
200
194
  })), [
201
- [b, ["goods:goods_category:add"]]
195
+ [C, ["goods:goods_category:add"]]
202
196
  ]),
203
- C((u(), w(v, {
197
+ k((d(), _(b, {
204
198
  type: "primary",
205
199
  onClick: o[5] || (o[5] = (e) => n(s).deleteRecords())
206
200
  }, {
207
- default: l(() => [
201
+ default: t(() => [
208
202
  p(c(a.$t("common.batchDelete")), 1)
209
203
  ]),
210
204
  _: 1
211
205
  })), [
212
- [b, ["goods:goods_category:delete"]]
206
+ [C, ["goods:goods_category:delete"]]
213
207
  ])
214
208
  ]),
215
209
  _: 1
216
210
  }),
217
- t(f, {
211
+ l(f, {
218
212
  span: 7,
219
213
  class: "container-float"
220
214
  }, {
221
- default: l(() => [
222
- t(M, {
215
+ default: t(() => [
216
+ l(M, {
223
217
  modelValue: n(g),
224
218
  "onUpdate:modelValue": o[6] || (o[6] = (e) => T(g) ? g.value = e : g = e),
225
219
  "label-name": "goods/goods-spu"
@@ -231,11 +225,11 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
231
225
  _: 1
232
226
  })
233
227
  ]),
234
- footer: l(() => [
235
- n(y) > 0 ? (u(), w(Y, {
228
+ footer: t(() => [
229
+ n(v) > 0 ? (d(), _(Y, {
236
230
  key: 0,
237
- total: n(y),
238
- "onUpdate:total": o[7] || (o[7] = (e) => T(y) ? y.value = e : null),
231
+ total: n(v),
232
+ "onUpdate:total": o[7] || (o[7] = (e) => T(v) ? v.value = e : null),
239
233
  "current-page": i.value.curPage,
240
234
  "onUpdate:currentPage": o[8] || (o[8] = (e) => i.value.curPage = e),
241
235
  "page-size": i.value.pageSize,
@@ -243,8 +237,8 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
243
237
  onPagination: o[10] || (o[10] = (e) => n(s).getList())
244
238
  }, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
245
239
  ]),
246
- default: l(() => [
247
- t(X, {
240
+ default: t(() => [
241
+ l(X, {
248
242
  ref_key: "multipleTableRef",
249
243
  ref: z,
250
244
  "row-key": "categoryId",
@@ -254,60 +248,61 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
254
248
  onSelectionChange: E,
255
249
  onSortChange: K
256
250
  }, {
257
- picUrl: l((e) => [
258
- t(O, {
251
+ picUrl: t((e) => [
252
+ e.data.row.picUrl ? (d(), _(O, {
253
+ key: 0,
259
254
  src: n(j).imageUrl(e.data.row.picUrl, 0, 0),
260
255
  "preview-src-list": [n(j).imageUrl(e.data.row.picUrl)],
261
256
  "preview-teleported": "",
262
257
  "hide-on-click-modal": "",
263
258
  fit: "contain"
264
- }, null, 8, ["src", "preview-src-list"])
259
+ }, null, 8, ["src", "preview-src-list"])) : (d(), w("span", ue, "-"))
265
260
  ]),
266
- status: l((e) => [
261
+ status: t((e) => [
267
262
  U("span", null, [
268
- t(W, {
263
+ l(W, {
269
264
  modelValue: e.data.row.status,
270
265
  "onUpdate:modelValue": (m) => e.data.row.status = m,
271
266
  onChange: (m) => n(s).enableRecord(e.data.row, e.data.row.status)
272
267
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
273
268
  ])
274
269
  ]),
275
- listOrder: l((e) => [
276
- t(R, {
270
+ listOrder: t((e) => [
271
+ l(R, {
277
272
  size: "16",
278
273
  onClick: (m) => n(s).handleMove(e.data.row, !1)
279
274
  }, {
280
- default: l(() => [
281
- t(G)
275
+ default: t(() => [
276
+ l(G)
282
277
  ]),
283
278
  _: 2
284
279
  }, 1032, ["onClick"]),
285
- t(R, {
280
+ l(R, {
286
281
  size: "16",
287
282
  onClick: (m) => n(s).handleMove(e.data.row, !0)
288
283
  }, {
289
- default: l(() => [
290
- t(J)
284
+ default: t(() => [
285
+ l(J)
291
286
  ]),
292
287
  _: 2
293
288
  }, 1032, ["onClick"])
294
289
  ]),
295
- operation: l((e) => [
296
- C((u(), $("span", {
290
+ operation: t((e) => [
291
+ k((d(), w("span", {
297
292
  class: "el-button-color",
298
293
  onClick: (m) => A(e.data.row)
299
294
  }, [
300
295
  p(c(a.$t("common.edit")), 1)
301
- ], 8, ue)), [
302
- [b, ["goods:goods_category:update"]]
296
+ ], 8, me)), [
297
+ [C, ["goods:goods_category:update"]]
303
298
  ]),
304
- C((u(), $("span", {
299
+ k((d(), w("span", {
305
300
  class: "el-button-color dropdown-left",
306
301
  onClick: (m) => n(s).deleteRecord(e.data.row)
307
302
  }, [
308
303
  p(c(a.$t("common.delete")), 1)
309
- ], 8, me)), [
310
- [b, ["goods:goods_category:delete"]]
304
+ ], 8, pe)), [
305
+ [C, ["goods:goods_category:delete"]]
311
306
  ])
312
307
  ]),
313
308
  _: 1
@@ -315,11 +310,11 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
315
310
  ]),
316
311
  _: 1
317
312
  }),
318
- d.value.visible ? (u(), w(se, {
313
+ u.value.visible ? (d(), _(se, {
319
314
  key: 0,
320
- modelValue: d.value.visible,
321
- "onUpdate:modelValue": o[11] || (o[11] = (e) => d.value.visible = e),
322
- title: d.value.title,
315
+ modelValue: u.value.visible,
316
+ "onUpdate:modelValue": o[11] || (o[11] = (e) => u.value.visible = e),
317
+ title: u.value.title,
323
318
  "entity-key": n(h),
324
319
  onRefresh: Q,
325
320
  width: "600px"
@@ -329,5 +324,5 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
329
324
  }
330
325
  });
331
326
  export {
332
- be as default
327
+ Ce as default
333
328
  };