xyvcard-goods 0.0.22 → 0.0.23

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 (37) hide show
  1. package/dist/{edit-Nuaz9WSB.mjs → edit-9jPSycsG.mjs} +185 -165
  2. package/dist/{edit-exVf8d8b.mjs → edit-CJpoa4Ck.mjs} +69 -68
  3. package/dist/{edit-DxnsmaXV.mjs → edit-CWQMgvVP.mjs} +38 -38
  4. package/dist/{edit-Byv9oYAC.mjs → edit-DU-BEAcq.mjs} +1 -1
  5. package/dist/{edit-BcokSKfN.mjs → edit-Ziwv43v0.mjs} +27 -27
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-DuSBj1Mm.mjs → edit.vue_vue_type_script_setup_true_lang-BP0C4d2-.mjs} +8 -7
  7. package/dist/{goodsList-CZUqc4nm.mjs → goodsList-2AwsJVoO.mjs} +1 -1
  8. package/dist/{goodsList-IWDAvKOx.mjs → goodsList-CyWliLjg.mjs} +1 -1
  9. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-CuzIDtTN.mjs → goodsList.vue_vue_type_script_setup_true_lang-Bq06GIMe.mjs} +2 -2
  10. package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BhJn02Ym.mjs → goodsList.vue_vue_type_script_setup_true_lang-DjKzEAB7.mjs} +136 -147
  11. package/dist/{index-4i7TnWvV.mjs → index-8E7BciYp.mjs} +7 -6
  12. package/dist/{index-BVGn6Q_T.mjs → index-B1H5hqEi.mjs} +2 -2
  13. package/dist/{index-B_U2s9fI.mjs → index-B88acg0Q.mjs} +2 -2
  14. package/dist/{index-_xxSoBUe.mjs → index-BdP_dXBK.mjs} +3 -3
  15. package/dist/index-C7oatDPl.mjs +4432 -0
  16. package/dist/{index-CQIttgns.mjs → index-DPjR32Kv.mjs} +3 -3
  17. package/dist/{index-r0u-27m7.mjs → index-DR3Gk44r.mjs} +1 -1
  18. package/dist/index-jCpYt-EU.mjs +221 -0
  19. package/dist/index.mjs +6 -2875
  20. package/dist/info-BEMxnD6-.mjs +325 -0
  21. package/dist/{info-BQaaTFry.mjs → info-DFIeVs66.mjs} +3 -3
  22. package/dist/{skuForm-CgjMd46J.mjs → skuForm-BhAbf2AG.mjs} +16 -16
  23. package/dist/skuForm-C2aQcL90.mjs +314 -0
  24. package/dist/{skuTable-CyGQuTvR.mjs → skuTable-9JJqGeRx.mjs} +255 -208
  25. package/dist/style.css +1 -1
  26. package/dts/api/goods-spu/index.d.ts +3 -1
  27. package/dts/api/goods-spu/types.d.ts +12 -1
  28. package/dts/index.d.ts +4 -0
  29. package/dts/router/index.d.ts +1 -0
  30. package/package.json +1 -1
  31. package/dist/index-DR7GlHNd.mjs +0 -1288
  32. package/dist/index-Dvaotk7B.mjs +0 -325
  33. package/dist/index-jTDhsbYM.mjs +0 -141
  34. package/dist/info-BH4MW3Sw.mjs +0 -365
  35. package/dist/sku-B-IzfYLq.mjs +0 -52
  36. package/dist/skuForm-AMIoZkH-.mjs +0 -287
  37. package/dist/skuTable-DDWSmvoz.mjs +0 -592
@@ -1,34 +1,35 @@
1
- import { _ as j } from "./ImageUpload-Dk6GY6PA.mjs";
2
- import { defineComponent as M, ref as I, reactive as k, resolveComponent as n, openBlock as c, createElementBlock as v, createElementVNode as g, createVNode as e, unref as t, withCtx as s, Fragment as H, renderList as P, createBlock as R, createTextVNode as w, toDisplayString as O, createCommentVNode as J } from "vue";
3
- import { ElMessage as N } from "element-plus";
4
- import { useRouter as K, useRoute as Q } from "vue-router";
1
+ import { _ as O } from "./ImageUpload-Dk6GY6PA.mjs";
2
+ import { defineComponent as P, ref as q, reactive as v, resolveComponent as n, openBlock as c, createElementBlock as R, createElementVNode as g, createVNode as e, unref as t, withCtx as s, Fragment as j, renderList as M, createBlock as k, createTextVNode as C, toDisplayString as H, createCommentVNode as Y } from "vue";
3
+ import { ElMessage as T } from "element-plus";
4
+ import { useRouter as J, useRoute as K } from "vue-router";
5
5
  import { routerUtil as U } from "jmash-core";
6
- import { useI18n as W } from "vue-i18n";
7
- import { D as m } from "./index-Dvaotk7B.mjs";
8
- import { goodsSpuApi as h } from "./index.mjs";
9
- import X from "./skuForm-AMIoZkH-.mjs";
10
- const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { class: "image-card" }, pe = /* @__PURE__ */ M({
6
+ import { useI18n as Q } from "vue-i18n";
7
+ import { D as m, C as W } from "./index-jCpYt-EU.mjs";
8
+ import { a as h } from "./index-C7oatDPl.mjs";
9
+ import X from "./skuForm-C2aQcL90.mjs";
10
+ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = { class: "image-card" }, ie = /* @__PURE__ */ P({
11
11
  __name: "edit",
12
- setup(ee) {
13
- const { t: p } = W(), y = K(), f = Q(), b = I();
12
+ setup(le) {
13
+ const { t: p } = Q(), y = J(), f = K(), b = q();
14
14
  m.goodsCategoryListBizLayDict.useValues(), m.labelListBizDict.useValues();
15
- let l = k({
15
+ let o = v({
16
16
  requestId: Math.random() * 10 + "",
17
17
  updateMask: "labelIds,spuName,categoryIds,spuCode,freightType,freightAmount,picUrls,shelf,saleNum",
18
18
  skuSpecValues: [],
19
19
  freightType: m.freightTypeEnum.values[0].key,
20
20
  freightAmount: 0,
21
- shelf: m.shelfDict.values[0].key
21
+ shelf: m.shelfDict.values[0].key,
22
+ goodsType: W.GOODS_TYPE.GROUP
22
23
  });
23
- const C = (u, o, i) => {
24
+ const w = (u, l, i) => {
24
25
  var d;
25
- const r = (d = l.picUrls) == null ? void 0 : d.split(",").filter(Boolean);
26
+ const r = (d = o.picUrls) == null ? void 0 : d.split(",").filter(Boolean);
26
27
  if (r != null && r.length) {
27
28
  if ((r == null ? void 0 : r.length) < 1)
28
29
  return i(new Error(p("goodsSpu.imageListsErrors")));
29
30
  i();
30
31
  } else return i(new Error(p("goodsSpu.picUrlsRequired")));
31
- }, T = k({
32
+ }, N = v({
32
33
  spuName: [
33
34
  {
34
35
  required: !0,
@@ -66,7 +67,7 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
66
67
  ],
67
68
  picUrls: [
68
69
  {
69
- validator: C,
70
+ validator: w,
70
71
  trigger: "change"
71
72
  }
72
73
  ],
@@ -77,23 +78,23 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
77
78
  trigger: "change"
78
79
  }
79
80
  ]
80
- }), V = I(!1);
81
+ }), V = q(!1);
81
82
  function E(u) {
82
- l.skuSpecValues.push(u), l.skuSpecValues = l.skuSpecValues.slice(-1);
83
+ o.groupInfos = u;
83
84
  }
84
85
  f.query.spuId && h.findById({ spuId: f.query.spuId }).then(({ data: u }) => {
85
- Object.assign(l, u), V.value = !0;
86
+ Object.assign(o, u), V.value = !0;
86
87
  });
87
88
  const $ = async () => {
88
89
  var u;
89
- await ((u = b.value) == null ? void 0 : u.validate((o) => {
90
- o && (f.query.spuId ? h.update(l).then((i) => {
91
- i.status === 200 && (N({
90
+ await ((u = b.value) == null ? void 0 : u.validate((l) => {
91
+ l && (f.query.spuId ? h.updateList(o).then((i) => {
92
+ i.status === 200 && (T({
92
93
  message: p("common.submitSuccess"),
93
94
  type: "success"
94
95
  }), U.closeTagView(f.fullPath, y, !1));
95
- }) : h.createList(l).then((i) => {
96
- i.status === 200 && (N({
96
+ }) : h.createList(o).then((i) => {
97
+ i.status === 200 && (T({
97
98
  message: p("common.submitSuccess"),
98
99
  type: "success"
99
100
  }), U.closeTagView(f.fullPath, y, !1));
@@ -101,21 +102,21 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
101
102
  }));
102
103
  };
103
104
  function A(u) {
104
- u === "FREIGHT_FREE" && (l.freightAmount = 0);
105
+ u === "FREIGHT_FREE" && (o.freightAmount = 0);
105
106
  }
106
- return (u, o) => {
107
- const i = n("el-input"), r = n("el-form-item"), d = n("el-col"), F = n("el-tree-select"), S = n("jmash-enum-radio"), q = n("el-input-number"), B = j, D = n("el-checkbox"), L = n("el-checkbox-group"), _ = n("el-row"), G = n("el-button"), z = n("el-form");
108
- return c(), v("div", Y, [
109
- g("div", Z, [
107
+ return (u, l) => {
108
+ const i = n("el-input"), r = n("el-form-item"), d = n("el-col"), D = n("el-tree-select"), S = n("jmash-enum-radio"), I = n("el-input-number"), F = O, L = n("el-checkbox"), B = n("el-checkbox-group"), _ = n("el-row"), G = n("el-button"), z = n("el-form");
109
+ return c(), R("div", Z, [
110
+ g("div", x, [
110
111
  e(z, {
111
112
  ref_key: "goodsSpuFormRef",
112
113
  ref: b,
113
- model: t(l),
114
+ model: t(o),
114
115
  "label-width": "120px",
115
- rules: T
116
+ rules: N
116
117
  }, {
117
118
  default: s(() => [
118
- o[11] || (o[11] = g("div", { class: "title-content" }, "基本信息", -1)),
119
+ l[11] || (l[11] = g("div", { class: "title-content" }, "基本信息", -1)),
119
120
  e(_, null, {
120
121
  default: s(() => [
121
122
  e(d, { span: 12 }, {
@@ -126,8 +127,8 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
126
127
  }, {
127
128
  default: s(() => [
128
129
  e(i, {
129
- modelValue: t(l).spuName,
130
- "onUpdate:modelValue": o[0] || (o[0] = (a) => t(l).spuName = a),
130
+ modelValue: t(o).spuName,
131
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => t(o).spuName = a),
131
132
  placeholder: u.$t("goodsSpu.spuNameRequired"),
132
133
  maxlength: "60",
133
134
  "show-word-limit": "",
@@ -147,8 +148,8 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
147
148
  }, {
148
149
  default: s(() => [
149
150
  e(i, {
150
- modelValue: t(l).spuCode,
151
- "onUpdate:modelValue": o[1] || (o[1] = (a) => t(l).spuCode = a),
151
+ modelValue: t(o).spuCode,
152
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => t(o).spuCode = a),
152
153
  placeholder: u.$t("goodsSpu.spuCodeRequired"),
153
154
  maxlength: "15",
154
155
  "show-word-limit": "",
@@ -167,9 +168,9 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
167
168
  prop: "categoryIds"
168
169
  }, {
169
170
  default: s(() => [
170
- e(F, {
171
- modelValue: t(l).categoryIds,
172
- "onUpdate:modelValue": o[2] || (o[2] = (a) => t(l).categoryIds = a),
171
+ e(D, {
172
+ modelValue: t(o).categoryIds,
173
+ "onUpdate:modelValue": l[2] || (l[2] = (a) => t(o).categoryIds = a),
173
174
  data: t(m).goodsCategoryListBizLayDict.values,
174
175
  multiple: "",
175
176
  "render-after-expand": !1,
@@ -191,8 +192,8 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
191
192
  }, {
192
193
  default: s(() => [
193
194
  e(S, {
194
- modelValue: t(l).freightType,
195
- "onUpdate:modelValue": o[3] || (o[3] = (a) => t(l).freightType = a),
195
+ modelValue: t(o).freightType,
196
+ "onUpdate:modelValue": l[3] || (l[3] = (a) => t(o).freightType = a),
196
197
  data: t(m).freightTypeEnum.values,
197
198
  onChange: A
198
199
  }, null, 8, ["modelValue", "data"])
@@ -209,10 +210,10 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
209
210
  prop: "freightAmount"
210
211
  }, {
211
212
  default: s(() => [
212
- e(q, {
213
- modelValue: t(l).freightAmount,
214
- "onUpdate:modelValue": o[4] || (o[4] = (a) => t(l).freightAmount = a),
215
- readonly: t(l).freightType === "FREIGHT_FREE",
213
+ e(I, {
214
+ modelValue: t(o).freightAmount,
215
+ "onUpdate:modelValue": l[4] || (l[4] = (a) => t(o).freightAmount = a),
216
+ readonly: t(o).freightType === "FREIGHT_FREE",
216
217
  precision: 2,
217
218
  step: 0.1,
218
219
  controls: !1,
@@ -233,14 +234,14 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
233
234
  prop: "picUrls"
234
235
  }, {
235
236
  default: s(() => [
236
- g("div", x, [
237
- e(B, {
238
- modelValue: t(l).picUrls,
239
- "onUpdate:modelValue": o[5] || (o[5] = (a) => t(l).picUrls = a),
237
+ g("div", ee, [
238
+ e(F, {
239
+ modelValue: t(o).picUrls,
240
+ "onUpdate:modelValue": l[5] || (l[5] = (a) => t(o).picUrls = a),
240
241
  limit: 6,
241
242
  "list-type": "picture-card"
242
243
  }, null, 8, ["modelValue"]),
243
- o[9] || (o[9] = g("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传1张 ", -1))
244
+ l[9] || (l[9] = g("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传1张 ", -1))
244
245
  ])
245
246
  ]),
246
247
  _: 1
@@ -256,8 +257,8 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
256
257
  }, {
257
258
  default: s(() => [
258
259
  e(S, {
259
- modelValue: t(l).shelf,
260
- "onUpdate:modelValue": o[6] || (o[6] = (a) => t(l).shelf = a),
260
+ modelValue: t(o).shelf,
261
+ "onUpdate:modelValue": l[6] || (l[6] = (a) => t(o).shelf = a),
261
262
  data: t(m).shelfDict.values
262
263
  }, null, 8, ["modelValue", "data"])
263
264
  ]),
@@ -273,9 +274,9 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
273
274
  prop: "saleNum"
274
275
  }, {
275
276
  default: s(() => [
276
- e(q, {
277
- modelValue: t(l).saleNum,
278
- "onUpdate:modelValue": o[7] || (o[7] = (a) => t(l).saleNum = a),
277
+ e(I, {
278
+ modelValue: t(o).saleNum,
279
+ "onUpdate:modelValue": l[7] || (l[7] = (a) => t(o).saleNum = a),
279
280
  placeholder: u.$t("goodsSpu.saleNumRequired"),
280
281
  class: "w-full",
281
282
  min: 0,
@@ -295,18 +296,18 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
295
296
  prop: "labelIds"
296
297
  }, {
297
298
  default: s(() => [
298
- e(L, {
299
- modelValue: t(l).labelIds,
300
- "onUpdate:modelValue": o[8] || (o[8] = (a) => t(l).labelIds = a),
299
+ e(B, {
300
+ modelValue: t(o).labelIds,
301
+ "onUpdate:modelValue": l[8] || (l[8] = (a) => t(o).labelIds = a),
301
302
  class: "w-full"
302
303
  }, {
303
304
  default: s(() => [
304
- (c(!0), v(H, null, P(t(m).labelListBizDict.values, (a) => (c(), R(D, {
305
+ (c(!0), R(j, null, M(t(m).labelListBizDict.values, (a) => (c(), k(L, {
305
306
  key: a.key,
306
307
  label: a.key
307
308
  }, {
308
309
  default: s(() => [
309
- w(O(a.value), 1)
310
+ C(H(a.value), 1)
310
311
  ]),
311
312
  _: 2
312
313
  }, 1032, ["label"]))), 128))
@@ -322,14 +323,14 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
322
323
  ]),
323
324
  _: 1
324
325
  }),
325
- o[12] || (o[12] = g("div", { class: "title-content" }, "套装商品", -1)),
326
+ l[12] || (l[12] = g("div", { class: "title-content" }, "套装商品", -1)),
326
327
  e(_, null, {
327
328
  default: s(() => [
328
- !t(f).query.spuId || V.value ? (c(), R(X, {
329
+ !t(f).query.spuId || V.value ? (c(), k(X, {
329
330
  key: 0,
330
- form: t(l),
331
+ form: t(o),
331
332
  onGetGoodsSku: E
332
- }, null, 8, ["form"])) : J("", !0)
333
+ }, null, 8, ["form"])) : Y("", !0)
333
334
  ]),
334
335
  _: 1
335
336
  }),
@@ -341,8 +342,8 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
341
342
  type: "primary",
342
343
  onClick: $
343
344
  }, {
344
- default: s(() => o[10] || (o[10] = [
345
- w("保存")
345
+ default: s(() => l[10] || (l[10] = [
346
+ C("保存")
346
347
  ])),
347
348
  _: 1,
348
349
  __: [10]
@@ -363,5 +364,5 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, x = { c
363
364
  }
364
365
  });
365
366
  export {
366
- pe as default
367
+ ie as default
367
368
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as E, mergeModels as B, ref as V, reactive as N, useModel as F, resolveComponent as d, openBlock as K, createBlock as O, withCtx as l, createElementVNode as x, createVNode as o, createTextVNode as U, toDisplayString as w, unref as s } from "vue";
1
+ import { defineComponent as E, mergeModels as B, ref as V, reactive as N, useModel as F, resolveComponent as r, openBlock as K, createBlock as O, withCtx as t, createElementVNode as x, createVNode as o, createTextVNode as U, toDisplayString as w, unref as s } from "vue";
2
2
  import { ElMessage as q } from "element-plus";
3
3
  import { useI18n as A } from "vue-i18n";
4
- import { g as f } from "./index-r0u-27m7.mjs";
4
+ import { g as f } from "./index-DR3Gk44r.mjs";
5
5
  import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
7
7
  __name: "edit",
@@ -18,7 +18,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
18
18
  emits: /* @__PURE__ */ B(["refresh"], ["update:modelValue"]),
19
19
  setup(p, { emit: k }) {
20
20
  const g = V(), { t: i } = A();
21
- let t = N({
21
+ let l = N({
22
22
  requestId: Math.random() * 10 + "",
23
23
  updateMask: "brandName,logoUrl,description"
24
24
  });
@@ -44,44 +44,44 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
44
44
  trigger: "change"
45
45
  }
46
46
  ]
47
- }), n = F(p, "modelValue"), _ = p;
47
+ }), a = F(p, "modelValue"), _ = p;
48
48
  function $(e) {
49
- t.logoUrl = e;
49
+ l.logoUrl = e;
50
50
  }
51
51
  const b = k, C = Object.keys(_.entityKey), y = V(C.length >= 1);
52
52
  y.value && f.findById(_.entityKey).then(({ data: e }) => {
53
- Object.assign(t, e);
53
+ Object.assign(l, e);
54
54
  });
55
55
  const M = async () => {
56
56
  var e;
57
- await ((e = g.value) == null ? void 0 : e.validate((r) => {
58
- r && (y.value ? f.update(t).then((a) => {
59
- console.log(a), a.status === 200 && (q({
57
+ await ((e = g.value) == null ? void 0 : e.validate((n) => {
58
+ n && (y.value ? f.update(l).then((d) => {
59
+ d.status === 200 && (q({
60
60
  message: i("common.submitSuccess"),
61
61
  type: "success"
62
- }), n.value && (n.value = !1), b("refresh", a.status === 200));
63
- }) : f.create(t).then((a) => {
64
- console.log(a), a.status === 200 && (q({
62
+ }), a.value && (a.value = !1), b("refresh", d.status === 200));
63
+ }) : f.create(l).then((d) => {
64
+ d.status === 200 && (q({
65
65
  message: i("common.submitSuccess"),
66
66
  type: "success"
67
- }), n.value && (n.value = !1), b("refresh", a.status === 200));
67
+ }), a.value && (a.value = !1), b("refresh", d.status === 200));
68
68
  }));
69
69
  }));
70
70
  };
71
71
  function h() {
72
- n.value && (n.value = !1);
72
+ a.value && (a.value = !1);
73
73
  }
74
- return (e, r) => {
75
- const a = d("jmash-single-image-upload"), u = d("el-form-item"), c = d("el-col"), I = d("el-input"), j = d("el-row"), S = d("el-form"), v = d("el-button"), D = d("el-dialog");
74
+ return (e, n) => {
75
+ const d = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), I = r("el-input"), j = r("el-row"), S = r("el-form"), v = r("el-button"), D = r("el-dialog");
76
76
  return K(), O(D, {
77
- modelValue: n.value,
78
- "onUpdate:modelValue": r[2] || (r[2] = (m) => n.value = m),
77
+ modelValue: a.value,
78
+ "onUpdate:modelValue": n[2] || (n[2] = (m) => a.value = m),
79
79
  onClose: h
80
80
  }, {
81
- footer: l(() => [
81
+ footer: t(() => [
82
82
  x("div", z, [
83
83
  o(v, { onClick: h }, {
84
- default: l(() => [
84
+ default: t(() => [
85
85
  U(w(e.$t("common.cancel")), 1)
86
86
  ]),
87
87
  _: 1
@@ -90,33 +90,33 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
90
90
  type: "primary",
91
91
  onClick: M
92
92
  }, {
93
- default: l(() => [
93
+ default: t(() => [
94
94
  U(w(e.$t("common.confirm")), 1)
95
95
  ]),
96
96
  _: 1
97
97
  })
98
98
  ])
99
99
  ]),
100
- default: l(() => [
100
+ default: t(() => [
101
101
  o(S, {
102
102
  ref_key: "goodsBrandInfoFormRef",
103
103
  ref: g,
104
- model: s(t),
104
+ model: s(l),
105
105
  "label-width": "120px",
106
106
  rules: R
107
107
  }, {
108
- default: l(() => [
108
+ default: t(() => [
109
109
  o(j, null, {
110
- default: l(() => [
110
+ default: t(() => [
111
111
  o(c, { span: 24 }, {
112
- default: l(() => [
112
+ default: t(() => [
113
113
  o(u, {
114
114
  label: e.$t("goodsBrandInfo.logoUrl"),
115
115
  prop: "logoUrl"
116
116
  }, {
117
- default: l(() => [
118
- o(a, {
119
- "picture-url": s(t).logoUrl,
117
+ default: t(() => [
118
+ o(d, {
119
+ "picture-url": s(l).logoUrl,
120
120
  onImageSrc: $,
121
121
  width: 80,
122
122
  type: "trans"
@@ -128,15 +128,15 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
128
128
  _: 1
129
129
  }),
130
130
  o(c, { span: 24 }, {
131
- default: l(() => [
131
+ default: t(() => [
132
132
  o(u, {
133
133
  label: e.$t("goodsBrandInfo.brandName"),
134
134
  prop: "brandName"
135
135
  }, {
136
- default: l(() => [
136
+ default: t(() => [
137
137
  o(I, {
138
- modelValue: s(t).brandName,
139
- "onUpdate:modelValue": r[0] || (r[0] = (m) => s(t).brandName = m),
138
+ modelValue: s(l).brandName,
139
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => s(l).brandName = m),
140
140
  placeholder: e.$t("goodsBrandInfo.brandNameRequired"),
141
141
  maxlength: "30",
142
142
  "show-word-limit": "",
@@ -149,15 +149,15 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
149
149
  _: 1
150
150
  }),
151
151
  o(c, { span: 24 }, {
152
- default: l(() => [
152
+ default: t(() => [
153
153
  o(u, {
154
154
  label: e.$t("goodsBrandInfo.description"),
155
155
  prop: "description"
156
156
  }, {
157
- default: l(() => [
157
+ default: t(() => [
158
158
  o(I, {
159
- modelValue: s(t).description,
160
- "onUpdate:modelValue": r[1] || (r[1] = (m) => s(t).description = m),
159
+ modelValue: s(l).description,
160
+ "onUpdate:modelValue": n[1] || (n[1] = (m) => s(l).description = m),
161
161
  type: "textarea",
162
162
  placeholder: e.$t("goodsBrandInfo.descriptionRequired"),
163
163
  "show-word-limit": "",
@@ -180,7 +180,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
180
180
  }, 8, ["modelValue"]);
181
181
  };
182
182
  }
183
- }), W = /* @__PURE__ */ T(G, [["__scopeId", "data-v-90ddc8d1"]]);
183
+ }), W = /* @__PURE__ */ T(G, [["__scopeId", "data-v-05285e5f"]]);
184
184
  export {
185
185
  W as default
186
186
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DuSBj1Mm.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BP0C4d2-.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as j, mergeModels as I, ref as v, reactive as C, useModel as E, resolveComponent as r, openBlock as F, createBlock as K, withCtx as l, createElementVNode as O, createVNode as o, createTextVNode as L, toDisplayString as N, unref as m } from "vue";
2
2
  import { ElMessage as q } from "element-plus";
3
3
  import { useI18n as S } from "vue-i18n";
4
- import { g as c } from "./index-jTDhsbYM.mjs";
4
+ import { b as c } from "./index-C7oatDPl.mjs";
5
5
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
7
7
  __name: "edit",
@@ -18,7 +18,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
18
18
  emits: /* @__PURE__ */ I(["refresh"], ["update:modelValue"]),
19
19
  setup(p, { emit: w }) {
20
20
  const { t: u } = S(), b = v();
21
- let t = C({
21
+ let a = C({
22
22
  requestId: Math.random() * 10 + "",
23
23
  updateMask: "labelName,labelCode,note"
24
24
  });
@@ -44,34 +44,34 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
44
44
  trigger: "change"
45
45
  }
46
46
  ]
47
- }), d = E(p, "modelValue"), g = p, _ = w, R = Object.keys(g.entityKey), y = v(R.length >= 1);
47
+ }), s = E(p, "modelValue"), g = p, _ = w, R = Object.keys(g.entityKey), y = v(R.length >= 1);
48
48
  y.value && c.findById(g.entityKey).then(({ data: e }) => {
49
- Object.assign(t, e);
49
+ Object.assign(a, e);
50
50
  });
51
51
  const $ = async () => {
52
52
  var e;
53
- await ((e = b.value) == null ? void 0 : e.validate((n) => {
54
- n && (y.value ? c.update(t).then((a) => {
55
- console.log(a), a.status === 200 && (q({
53
+ await ((e = b.value) == null ? void 0 : e.validate((t) => {
54
+ t && (y.value ? c.update(a).then((n) => {
55
+ n.status === 200 && (q({
56
56
  message: u("common.submitSuccess"),
57
57
  type: "success"
58
- }), d.value && (d.value = !1), _("refresh", a.status === 200));
59
- }) : c.create(t).then((a) => {
60
- console.log(a), a.status === 200 && (q({
58
+ }), s.value && (s.value = !1), _("refresh", n.status === 200));
59
+ }) : c.create(a).then((n) => {
60
+ n.status === 200 && (q({
61
61
  message: u("common.submitSuccess"),
62
62
  type: "success"
63
- }), d.value && (d.value = !1), _("refresh", a.status === 200));
63
+ }), s.value && (s.value = !1), _("refresh", n.status === 200));
64
64
  }));
65
65
  }));
66
66
  };
67
67
  function V() {
68
- d.value && (d.value = !1);
68
+ s.value && (s.value = !1);
69
69
  }
70
- return (e, n) => {
71
- const a = r("el-input"), i = r("el-form-item"), f = r("el-col"), M = r("el-row"), B = r("el-form"), h = r("el-button"), U = r("el-dialog");
70
+ return (e, t) => {
71
+ const n = r("el-input"), i = r("el-form-item"), f = r("el-col"), M = r("el-row"), B = r("el-form"), h = r("el-button"), U = r("el-dialog");
72
72
  return F(), K(U, {
73
- modelValue: d.value,
74
- "onUpdate:modelValue": n[3] || (n[3] = (s) => d.value = s),
73
+ modelValue: s.value,
74
+ "onUpdate:modelValue": t[3] || (t[3] = (d) => s.value = d),
75
75
  onClose: V
76
76
  }, {
77
77
  footer: l(() => [
@@ -97,7 +97,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
97
97
  o(B, {
98
98
  ref_key: "goodsLabelInfoFormRef",
99
99
  ref: b,
100
- model: m(t),
100
+ model: m(a),
101
101
  "label-width": "120px",
102
102
  rules: k
103
103
  }, {
@@ -111,9 +111,9 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
111
111
  prop: "labelName"
112
112
  }, {
113
113
  default: l(() => [
114
- o(a, {
115
- modelValue: m(t).labelName,
116
- "onUpdate:modelValue": n[0] || (n[0] = (s) => m(t).labelName = s),
114
+ o(n, {
115
+ modelValue: m(a).labelName,
116
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => m(a).labelName = d),
117
117
  placeholder: e.$t("goodsLabelInfo.labelNameRequired"),
118
118
  maxlength: "30",
119
119
  "show-word-limit": "",
@@ -132,9 +132,9 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
132
132
  prop: "labelCode"
133
133
  }, {
134
134
  default: l(() => [
135
- o(a, {
136
- modelValue: m(t).labelCode,
137
- "onUpdate:modelValue": n[1] || (n[1] = (s) => m(t).labelCode = s),
135
+ o(n, {
136
+ modelValue: m(a).labelCode,
137
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => m(a).labelCode = d),
138
138
  placeholder: e.$t("goodsLabelInfo.labelCodeRequired"),
139
139
  maxlength: "30",
140
140
  "show-word-limit": "",
@@ -153,9 +153,9 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
153
153
  prop: "note"
154
154
  }, {
155
155
  default: l(() => [
156
- o(a, {
157
- modelValue: m(t).note,
158
- "onUpdate:modelValue": n[2] || (n[2] = (s) => m(t).note = s),
156
+ o(n, {
157
+ modelValue: m(a).note,
158
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => m(a).note = d),
159
159
  placeholder: e.$t("goodsLabelInfo.noteRequired"),
160
160
  clearable: "",
161
161
  type: "textarea"
@@ -177,7 +177,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
177
177
  }, 8, ["modelValue"]);
178
178
  };
179
179
  }
180
- }), P = /* @__PURE__ */ D(A, [["__scopeId", "data-v-7e1c2961"]]);
180
+ }), P = /* @__PURE__ */ D(A, [["__scopeId", "data-v-3bb58ee1"]]);
181
181
  export {
182
182
  P as default
183
183
  };
@@ -1,7 +1,8 @@
1
1
  import { defineComponent as wn, mergeModels as E, ref as $, reactive as R, useModel as qn, onMounted as pn, resolveComponent as p, openBlock as an, createBlock as kn, withCtx as j, createElementVNode as Cn, createVNode as t, createTextVNode as A, toDisplayString as U, unref as x } from "vue";
2
2
  import { ElMessage as L } from "element-plus";
3
3
  import { useI18n as Sn } from "vue-i18n";
4
- import { D as B, g as O } from "./index-Dvaotk7B.mjs";
4
+ import { g as B } from "./index-C7oatDPl.mjs";
5
+ import { D as O } from "./index-jCpYt-EU.mjs";
5
6
  const _n = /^[\uD800-\uDBFF]$/, Pn = /^[\uDC00-\uDFFF]$/, Dn = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
6
7
  var F;
7
8
  (function(n) {
@@ -23935,7 +23936,7 @@ var N;
23935
23936
  n[n.AllSegment = 1] = "AllSegment", n[n.AllArray = 2] = "AllArray", n[n.AllString = 3] = "AllString", n[n.PinyinSegment = 4] = "PinyinSegment", n[n.PinyinArray = 5] = "PinyinArray", n[n.PinyinString = 6] = "PinyinString", n[n.ZhSegment = 7] = "ZhSegment", n[n.ZhArray = 8] = "ZhArray", n[n.ZhString = 9] = "ZhString";
23936
23937
  })(N || (N = {}));
23937
23938
  N.AllSegment;
23938
- const bi = { class: "dialog-footer" }, wi = /* @__PURE__ */ wn({
23939
+ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
23939
23940
  __name: "edit",
23940
23941
  props: /* @__PURE__ */ E({
23941
23942
  entityKey: {
@@ -23972,19 +23973,19 @@ const bi = { class: "dialog-footer" }, wi = /* @__PURE__ */ wn({
23972
23973
  ]
23973
23974
  }), o = qn(n, "modelValue"), z = n, y = Object.keys(z.entityKey), l = $(y.length >= 1);
23974
23975
  pn(() => {
23975
- B.goodsCategoryListBizLayDict.useValues();
23976
+ O.goodsCategoryListBizLayDict.useValues();
23976
23977
  });
23977
23978
  const c = i;
23978
23979
  (v = z.entityKey) != null && v.categoryId && (h = Object.assign(h, z.entityKey), h.parentId === "00000000-0000-0000-0000-000000000000" && (h.parentId = ""));
23979
23980
  const e = async () => {
23980
23981
  var d;
23981
23982
  await ((d = u.value) == null ? void 0 : d.validate((r) => {
23982
- r && (h.categoryId ? O.update(h).then((w) => {
23983
+ r && (h.categoryId ? B.update(h).then((w) => {
23983
23984
  w.status === 200 && (L({
23984
23985
  message: g("common.submitSuccess"),
23985
23986
  type: "success"
23986
23987
  }), o.value && (o.value = !1), c("refresh", w.status === 200));
23987
- }) : O.create(h).then((w) => {
23988
+ }) : B.create(h).then((w) => {
23988
23989
  w.status === 200 && (L({
23989
23990
  message: g("common.submitSuccess"),
23990
23991
  type: "success"
@@ -24100,7 +24101,7 @@ const bi = { class: "dialog-footer" }, wi = /* @__PURE__ */ wn({
24100
24101
  t(bn, {
24101
24102
  modelValue: x(h).parentId,
24102
24103
  "onUpdate:modelValue": r[2] || (r[2] = (q) => x(h).parentId = q),
24103
- data: x(B).goodsCategoryListBizLayDict.values,
24104
+ data: x(O).goodsCategoryListBizLayDict.values,
24104
24105
  filterable: "",
24105
24106
  clearable: "",
24106
24107
  "check-strictly": "",
@@ -24168,5 +24169,5 @@ const bi = { class: "dialog-footer" }, wi = /* @__PURE__ */ wn({
24168
24169
  }
24169
24170
  });
24170
24171
  export {
24171
- wi as _
24172
+ qi as _
24172
24173
  };