xyvcard-goods 0.0.32 → 0.0.34

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 (112) hide show
  1. package/README.md +51 -51
  2. package/dist/GoodsBaseForm-BSvXc_XA.mjs +4 -0
  3. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +381 -0
  4. package/dist/GoodsLogisticsForm-1Bbd4Z52.mjs +4 -0
  5. package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs +434 -0
  6. package/dist/GoodsSpecForm-Ddo1IZLZ.mjs +4 -0
  7. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs +338 -0
  8. package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Bf2jhRs5.mjs} +1 -1
  9. package/dist/edit copy 2-Yzf_M31V.mjs +59 -0
  10. package/dist/edit copy-CCnzlrgL.mjs +526 -0
  11. package/dist/{edit-DvO1wYIL.mjs → edit-BgtwinSN.mjs} +1 -1
  12. package/dist/{edit-BlQj1xVR.mjs → edit-Dke5sWct.mjs} +4 -4
  13. package/dist/{edit-CuGiM5xu.mjs → edit-e5-aXV6K.mjs} +15 -15
  14. package/dist/{edit-Bh5jT6eo.mjs → edit-lfXK_dUp.mjs} +4 -4
  15. package/dist/{edit-CyhVo22f.mjs → edit-pUKONjxH.mjs} +7 -7
  16. package/dist/{edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs → edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs} +33 -33
  17. package/dist/el-message-BB2-39XJ.mjs +1221 -0
  18. package/dist/{index-BrBipAPq.mjs → index-BSzOTWcG.mjs} +1 -1
  19. package/dist/{index-CVM7nBhM.mjs → index-BpKiAhvt.mjs} +3 -3
  20. package/dist/{index-Dk9-_0Ir.mjs → index-ChQ-ZxD1.mjs} +2 -2
  21. package/dist/{index-Dz9NSJh1.mjs → index-CkJncbVf.mjs} +3 -3
  22. package/dist/{index-DzUSeIbT.mjs → index-CkMWas2b.mjs} +3 -3
  23. package/dist/index-Da2R0n8O.mjs +374 -0
  24. package/dist/{index-BlZupHNB.mjs → index-DhS4AuWf.mjs} +1593 -1554
  25. package/dist/{index-8JQB4NmH.mjs → index-DyLLV1NK.mjs} +281 -250
  26. package/dist/index-vHQhUQSO.mjs +95 -0
  27. package/dist/index.mjs +1 -1
  28. package/dist/{info-CLt9Ea38.mjs → info-DOKoSi7a.mjs} +34 -34
  29. package/dist/{info-NFU_3fNY.mjs → info-De_pBN6A.mjs} +19 -19
  30. package/dist/{skuForm-Dr6dKGa4.mjs → skuForm-DVGkw6rD.mjs} +71 -86
  31. package/dist/{skuForm-8WZm2j5V.mjs → skuForm-YXHrhyPI.mjs} +111 -110
  32. package/dist/{skuTable-BwIc5hr5.mjs → skuTable-DOIQ9kiV.mjs} +71 -71
  33. package/dist/style.css +1 -1
  34. package/dts/api/goods-base/index.d.ts +11 -0
  35. package/dts/api/goods-base/types.d.ts +33 -0
  36. package/dts/api/goods-logistics/index.d.ts +8 -0
  37. package/dts/api/goods-logistics/types.d.ts +16 -0
  38. package/dts/api/goods-spec/index.d.ts +8 -0
  39. package/dts/api/goods-spec/types.d.ts +15 -0
  40. package/dts/api/goods-spu/index.d.ts +3 -0
  41. package/dts/api/goods-stock/index.d.ts +8 -0
  42. package/dts/api/goods-stock/types.d.ts +32 -0
  43. package/dts/api/index.d.ts +3 -0
  44. package/dts/constant.d.ts +26 -0
  45. package/dts/lang/goods/zh-cn.d.ts +12 -0
  46. package/dts/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +7 -0
  47. package/dts/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +2 -0
  48. package/dts/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +7 -0
  49. package/dts/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  50. package/dts/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  51. package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
  52. package/dts/xyvcard-goods/src/api/dict.d.ts +35 -0
  53. package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
  54. package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
  55. package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
  56. package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
  57. package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
  58. package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
  59. package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
  60. package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
  61. package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
  62. package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
  63. package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
  64. package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
  65. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +18 -0
  66. package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
  67. package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
  68. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +69 -0
  69. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +245 -0
  70. package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
  71. package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
  72. package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
  73. package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
  74. package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
  75. package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
  76. package/dts/xyvcard-goods/src/constant.d.ts +107 -0
  77. package/dts/xyvcard-goods/src/index.d.ts +12 -0
  78. package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
  79. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +141 -0
  80. package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
  81. package/dts/xyvcard-goods/src/main.d.ts +7 -0
  82. package/dts/xyvcard-goods/src/permission.d.ts +1 -0
  83. package/dts/xyvcard-goods/src/router/index.d.ts +6 -0
  84. package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
  85. package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
  86. package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
  87. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
  88. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
  89. package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
  90. package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
  91. package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
  92. package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
  93. package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
  94. package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
  95. package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
  96. package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
  97. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
  98. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
  99. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
  100. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  101. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  102. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
  103. package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
  104. package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
  105. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
  106. package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
  107. package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
  108. package/package.json +63 -63
  109. package/dist/index-B7_M6fAN.mjs +0 -228
  110. package/dts/views/goods/goods-combination/goodsList.vue.d.ts +0 -14
  111. package/dts/views/goods/goods-spu/goodsList.vue.d.ts +0 -23
  112. /package/dts/{views/goods/goods-combination → xyvcard-goods/src/views/goods/goods-spu}/skuTable.vue.d.ts +0 -0
@@ -0,0 +1,526 @@
1
+ import { _ as J } from "./ImageUpload-Bf2jhRs5.mjs";
2
+ import { defineComponent as K, ref as v, reactive as T, resolveComponent as n, createElementBlock as V, openBlock as f, createElementVNode as c, createVNode as e, unref as t, withCtx as s, Fragment as w, renderList as R, createBlock as h, createTextVNode as U, toDisplayString as Q, createCommentVNode as X } from "vue";
3
+ import { ElMessage as $ } from "element-plus";
4
+ import { useRouter as Y, useRoute as Z } from "vue-router";
5
+ import { routerUtil as E } from "jmash-core";
6
+ import { useI18n as x } from "vue-i18n";
7
+ import { D as i, C as ee } from "./index-Da2R0n8O.mjs";
8
+ import { a as _ } from "./index-DhS4AuWf.mjs";
9
+ import { g as le } from "./index-BHmGYIuc.mjs";
10
+ import { WangEditor as oe } from "xyvcard-cms";
11
+ import te from "./skuForm-YXHrhyPI.mjs";
12
+ const se = { class: "app-container" }, ae = { class: "search-container" }, ue = { class: "image-card" }, he = /* @__PURE__ */ K({
13
+ __name: "edit copy",
14
+ setup(de) {
15
+ const { t: m } = x();
16
+ i.brandListBizDict.useValues();
17
+ const S = Y(), g = Z(), I = v();
18
+ i.shopInfoBizDict.useValues(), i.goodsCategoryListBizLayDict.useValues(), i.labelListBizDict.useValues();
19
+ let o = T({
20
+ requestId: Math.random() * 10 + "",
21
+ updateMask: "labelIds,brandId,spuName,categoryIds,spuCode,note,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
22
+ skuSpecValues: [],
23
+ freightType: i.freightTypeEnum.values[0].key,
24
+ freightAmount: 0,
25
+ shelf: i.shelfDict.values[0].key,
26
+ specType: i.specTypeEnum.values[0].key
27
+ });
28
+ const C = (u, l, p) => {
29
+ var r;
30
+ const d = (r = o.picUrls) == null ? void 0 : r.split(",").filter(Boolean);
31
+ if (d != null && d.length) {
32
+ if ((d == null ? void 0 : d.length) < 1)
33
+ return p(new Error(m("goodsSpu.imageListsErrors")));
34
+ p();
35
+ } else return p(new Error(m("goodsSpu.picUrlsRequired")));
36
+ }, N = T({
37
+ brandId: [
38
+ {
39
+ required: !0,
40
+ message: m("goodsSpu.brandIdRequired"),
41
+ trigger: "change"
42
+ }
43
+ ],
44
+ spuName: [
45
+ {
46
+ required: !0,
47
+ message: m("goodsSpu.spuNameRequired"),
48
+ trigger: "blur"
49
+ }
50
+ ],
51
+ categoryIds: [
52
+ {
53
+ required: !0,
54
+ message: m("goodsSpu.categoryIdRequired"),
55
+ trigger: "change"
56
+ }
57
+ ],
58
+ spuCode: [
59
+ {
60
+ required: !0,
61
+ message: m("goodsSpu.spuCodeRequired"),
62
+ trigger: "change"
63
+ }
64
+ ],
65
+ freightType: [
66
+ {
67
+ required: !0,
68
+ message: m("goodsSpu.freightTypeRequired"),
69
+ trigger: "change"
70
+ }
71
+ ],
72
+ freightAmount: [
73
+ {
74
+ required: !0,
75
+ message: m("goodsSpu.freightAmountRequired"),
76
+ trigger: "blur"
77
+ }
78
+ ],
79
+ picUrls: [
80
+ {
81
+ validator: C,
82
+ trigger: "change"
83
+ }
84
+ ],
85
+ shelf: [
86
+ {
87
+ required: !0,
88
+ message: m("goodsSpu.shelfRequired"),
89
+ trigger: "change"
90
+ }
91
+ ],
92
+ specType: [
93
+ {
94
+ required: !0,
95
+ message: m("goodsSpu.specTypeRequired"),
96
+ trigger: "change"
97
+ }
98
+ ]
99
+ }), q = v(!1);
100
+ function D(u) {
101
+ o.skuSpecValues.push(u), o.skuSpecValues = o.skuSpecValues.slice(-1);
102
+ }
103
+ function B(u) {
104
+ u.forEach((l) => {
105
+ var p;
106
+ o.specId = (p = l.specValues) == null ? void 0 : p.map((d) => d.specId), o.skuSpecValues.push(l);
107
+ }), o.skuSpecValues = o.skuSpecValues.slice(-u.length);
108
+ }
109
+ g.query.spuId && _.findById({ spuId: g.query.spuId }).then(({ data: u }) => {
110
+ Object.assign(o, u), q.value = !0, le.findById({ spuId: g.query.spuId }).then(({ data: l }) => {
111
+ o.ensureIds = l.ensures;
112
+ });
113
+ });
114
+ const L = async () => {
115
+ var u;
116
+ await ((u = I.value) == null ? void 0 : u.validate((l) => {
117
+ l && (g.query.spuId ? _.update(o).then((p) => {
118
+ p.status === 200 && ($({
119
+ message: m("common.submitSuccess"),
120
+ type: "success"
121
+ }), E.closeTagView(g.fullPath, S, !1));
122
+ }) : _.create(o).then((p) => {
123
+ p.status === 200 && ($({
124
+ message: m("common.submitSuccess"),
125
+ type: "success"
126
+ }), E.closeTagView(g.fullPath, S, !1));
127
+ }));
128
+ }));
129
+ };
130
+ function F(u) {
131
+ u === "FREIGHT_FREE" && (o.freightAmount = 0);
132
+ }
133
+ return (u, l) => {
134
+ const p = n("el-input"), d = n("el-form-item"), r = n("el-col"), A = n("el-option"), z = n("el-select"), P = n("el-tree-select"), b = n("jmash-enum-radio"), k = n("el-input-number"), G = J, j = n("jmash-dict-checkbox"), M = n("el-checkbox"), O = n("el-checkbox-group"), y = n("el-row"), H = n("el-button"), W = n("el-form");
135
+ return f(), V("div", se, [
136
+ c("div", ae, [
137
+ e(W, {
138
+ ref_key: "goodsSpuFormRef",
139
+ ref: I,
140
+ model: t(o),
141
+ "label-width": "120px",
142
+ rules: N
143
+ }, {
144
+ default: s(() => [
145
+ l[17] || (l[17] = c("div", { class: "title-content" }, "基本信息", -1)),
146
+ e(y, null, {
147
+ default: s(() => [
148
+ e(r, { span: 12 }, {
149
+ default: s(() => [
150
+ e(d, {
151
+ label: u.$t("goodsSpu.spuName"),
152
+ prop: "spuName"
153
+ }, {
154
+ default: s(() => [
155
+ e(p, {
156
+ modelValue: t(o).spuName,
157
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => t(o).spuName = a),
158
+ placeholder: u.$t("goodsSpu.spuNameRequired"),
159
+ maxlength: "60",
160
+ "show-word-limit": "",
161
+ clearable: ""
162
+ }, null, 8, ["modelValue", "placeholder"])
163
+ ]),
164
+ _: 1
165
+ }, 8, ["label"])
166
+ ]),
167
+ _: 1
168
+ }),
169
+ e(r, { span: 12 }, {
170
+ default: s(() => [
171
+ e(d, {
172
+ label: u.$t("goodsSpu.spuCode"),
173
+ prop: "spuCode"
174
+ }, {
175
+ default: s(() => [
176
+ e(p, {
177
+ modelValue: t(o).spuCode,
178
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => t(o).spuCode = a),
179
+ placeholder: u.$t("goodsSpu.spuCodeRequired"),
180
+ maxlength: "15",
181
+ "show-word-limit": "",
182
+ clearable: ""
183
+ }, null, 8, ["modelValue", "placeholder"])
184
+ ]),
185
+ _: 1
186
+ }, 8, ["label"])
187
+ ]),
188
+ _: 1
189
+ }),
190
+ e(r, { span: 12 }, {
191
+ default: s(() => [
192
+ e(d, {
193
+ label: u.$t("goodsSpu.brandId"),
194
+ prop: "brandId"
195
+ }, {
196
+ default: s(() => [
197
+ e(z, {
198
+ modelValue: t(o).brandId,
199
+ "onUpdate:modelValue": l[2] || (l[2] = (a) => t(o).brandId = a),
200
+ data: t(i).brandListBizDict.values,
201
+ placeholder: u.$t("goodsSpu.brandIdRequired"),
202
+ class: "w-full"
203
+ }, {
204
+ default: s(() => [
205
+ (f(!0), V(w, null, R(t(i).brandListBizDict.values, (a) => (f(), h(A, {
206
+ key: a.key,
207
+ label: a.value,
208
+ value: a.key
209
+ }, null, 8, ["label", "value"]))), 128))
210
+ ]),
211
+ _: 1
212
+ }, 8, ["modelValue", "data", "placeholder"])
213
+ ]),
214
+ _: 1
215
+ }, 8, ["label"])
216
+ ]),
217
+ _: 1
218
+ }),
219
+ e(r, { span: 12 }, {
220
+ default: s(() => [
221
+ e(d, {
222
+ label: u.$t("goodsSpu.categoryId"),
223
+ prop: "categoryIds"
224
+ }, {
225
+ default: s(() => [
226
+ e(P, {
227
+ modelValue: t(o).categoryIds,
228
+ "onUpdate:modelValue": l[3] || (l[3] = (a) => t(o).categoryIds = a),
229
+ data: t(i).goodsCategoryListBizLayDict.values,
230
+ multiple: "",
231
+ "render-after-expand": !1,
232
+ "show-checkbox": "",
233
+ placeholder: u.$t("goodsSpu.categoryIdRequired"),
234
+ class: "w-full"
235
+ }, null, 8, ["modelValue", "data", "placeholder"])
236
+ ]),
237
+ _: 1
238
+ }, 8, ["label"])
239
+ ]),
240
+ _: 1
241
+ }),
242
+ e(r, { span: 12 }, {
243
+ default: s(() => [
244
+ e(d, {
245
+ label: u.$t("goodsSpu.freightType"),
246
+ prop: "freightType"
247
+ }, {
248
+ default: s(() => [
249
+ e(b, {
250
+ modelValue: t(o).freightType,
251
+ "onUpdate:modelValue": l[4] || (l[4] = (a) => t(o).freightType = a),
252
+ data: t(i).freightTypeEnum.values,
253
+ onChange: F
254
+ }, null, 8, ["modelValue", "data"])
255
+ ]),
256
+ _: 1
257
+ }, 8, ["label"])
258
+ ]),
259
+ _: 1
260
+ }),
261
+ e(r, { span: 12 }, {
262
+ default: s(() => [
263
+ e(d, {
264
+ label: u.$t("goodsSpu.freightAmount"),
265
+ prop: "freightAmount"
266
+ }, {
267
+ default: s(() => [
268
+ e(k, {
269
+ modelValue: t(o).freightAmount,
270
+ "onUpdate:modelValue": l[5] || (l[5] = (a) => t(o).freightAmount = a),
271
+ readonly: t(o).freightType === "FREIGHT_FREE",
272
+ precision: 2,
273
+ step: 0.1,
274
+ controls: !1,
275
+ min: 0,
276
+ placeholder: u.$t("goodsSpu.freightAmountRequired"),
277
+ class: "w-full"
278
+ }, null, 8, ["modelValue", "readonly", "placeholder"])
279
+ ]),
280
+ _: 1
281
+ }, 8, ["label"])
282
+ ]),
283
+ _: 1
284
+ }),
285
+ e(r, { span: 24 }, {
286
+ default: s(() => [
287
+ e(d, {
288
+ label: u.$t("goodsSpu.picUrls"),
289
+ prop: "picUrls"
290
+ }, {
291
+ default: s(() => [
292
+ c("div", ue, [
293
+ e(G, {
294
+ modelValue: t(o).picUrls,
295
+ "onUpdate:modelValue": l[6] || (l[6] = (a) => t(o).picUrls = a),
296
+ limit: 6,
297
+ "list-type": "picture-card"
298
+ }, null, 8, ["modelValue"]),
299
+ l[15] || (l[15] = c("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传1张 ", -1))
300
+ ])
301
+ ]),
302
+ _: 1
303
+ }, 8, ["label"])
304
+ ]),
305
+ _: 1
306
+ }),
307
+ e(r, { span: 12 }, {
308
+ default: s(() => [
309
+ e(d, {
310
+ label: u.$t("goodsSpu.shelf"),
311
+ prop: "shelf"
312
+ }, {
313
+ default: s(() => [
314
+ e(b, {
315
+ modelValue: t(o).shelf,
316
+ "onUpdate:modelValue": l[7] || (l[7] = (a) => t(o).shelf = a),
317
+ data: t(i).shelfDict.values
318
+ }, null, 8, ["modelValue", "data"])
319
+ ]),
320
+ _: 1
321
+ }, 8, ["label"])
322
+ ]),
323
+ _: 1
324
+ }),
325
+ e(r, { span: 12 }, {
326
+ default: s(() => [
327
+ e(d, {
328
+ label: u.$t("goodsSpu.saleNum"),
329
+ prop: "saleNum"
330
+ }, {
331
+ default: s(() => [
332
+ e(k, {
333
+ modelValue: t(o).saleNum,
334
+ "onUpdate:modelValue": l[8] || (l[8] = (a) => t(o).saleNum = a),
335
+ placeholder: u.$t("goodsSpu.saleNumRequired"),
336
+ class: "w-full",
337
+ min: 0,
338
+ controls: !1,
339
+ precision: 0
340
+ }, null, 8, ["modelValue", "placeholder"])
341
+ ]),
342
+ _: 1
343
+ }, 8, ["label"])
344
+ ]),
345
+ _: 1
346
+ }),
347
+ e(r, { span: 24 }, {
348
+ default: s(() => [
349
+ e(d, {
350
+ label: u.$t("goodsSpu.sellPoint"),
351
+ prop: "sellPoint"
352
+ }, {
353
+ default: s(() => [
354
+ e(p, {
355
+ modelValue: t(o).sellPoint,
356
+ "onUpdate:modelValue": l[9] || (l[9] = (a) => t(o).sellPoint = a),
357
+ placeholder: u.$t("goodsSpu.sellPointRequired"),
358
+ maxlength: "250",
359
+ "show-word-limit": "",
360
+ clearable: "",
361
+ rows: 4,
362
+ type: "textarea"
363
+ }, null, 8, ["modelValue", "placeholder"])
364
+ ]),
365
+ _: 1
366
+ }, 8, ["label"])
367
+ ]),
368
+ _: 1
369
+ }),
370
+ e(r, { span: 24 }, {
371
+ default: s(() => [
372
+ e(d, {
373
+ label: u.$t("goodsLabelInfo.note"),
374
+ prop: "note"
375
+ }, {
376
+ default: s(() => [
377
+ e(p, {
378
+ modelValue: t(o).note,
379
+ "onUpdate:modelValue": l[10] || (l[10] = (a) => t(o).note = a),
380
+ placeholder: u.$t("goodsLabelInfo.noteRequired"),
381
+ maxlength: "250",
382
+ "show-word-limit": "",
383
+ clearable: "",
384
+ rows: 4,
385
+ type: "textarea"
386
+ }, null, 8, ["modelValue", "placeholder"])
387
+ ]),
388
+ _: 1
389
+ }, 8, ["label"])
390
+ ]),
391
+ _: 1
392
+ }),
393
+ e(r, { span: 24 }, {
394
+ default: s(() => [
395
+ e(d, {
396
+ label: u.$t("goodsSpu.ensureIds"),
397
+ prop: "ensureIds"
398
+ }, {
399
+ default: s(() => [
400
+ e(j, {
401
+ modelValue: t(o).ensureIds,
402
+ "onUpdate:modelValue": l[11] || (l[11] = (a) => t(o).ensureIds = a),
403
+ "type-code": t(ee).DICT_GOODS_ENSURE
404
+ }, null, 8, ["modelValue", "type-code"])
405
+ ]),
406
+ _: 1
407
+ }, 8, ["label"])
408
+ ]),
409
+ _: 1
410
+ }),
411
+ e(r, { span: 24 }, {
412
+ default: s(() => [
413
+ e(d, {
414
+ label: u.$t("goodsSpu.labelIds"),
415
+ prop: "labelIds"
416
+ }, {
417
+ default: s(() => [
418
+ e(O, {
419
+ modelValue: t(o).labelIds,
420
+ "onUpdate:modelValue": l[12] || (l[12] = (a) => t(o).labelIds = a),
421
+ class: "w-full"
422
+ }, {
423
+ default: s(() => [
424
+ (f(!0), V(w, null, R(t(i).labelListBizDict.values, (a) => (f(), h(M, {
425
+ key: a.key,
426
+ label: a.key
427
+ }, {
428
+ default: s(() => [
429
+ U(Q(a.value), 1)
430
+ ]),
431
+ _: 2
432
+ }, 1032, ["label"]))), 128))
433
+ ]),
434
+ _: 1
435
+ }, 8, ["modelValue"])
436
+ ]),
437
+ _: 1
438
+ }, 8, ["label"])
439
+ ]),
440
+ _: 1
441
+ })
442
+ ]),
443
+ _: 1
444
+ }),
445
+ l[18] || (l[18] = c("div", { class: "title-content" }, "商品规格", -1)),
446
+ e(y, null, {
447
+ default: s(() => [
448
+ e(r, { span: 24 }, {
449
+ default: s(() => [
450
+ e(d, {
451
+ label: u.$t("goodsSpu.specType"),
452
+ prop: "specType"
453
+ }, {
454
+ default: s(() => [
455
+ e(b, {
456
+ modelValue: t(o).specType,
457
+ "onUpdate:modelValue": l[13] || (l[13] = (a) => t(o).specType = a),
458
+ data: t(i).specTypeEnum.values
459
+ }, null, 8, ["modelValue", "data"])
460
+ ]),
461
+ _: 1
462
+ }, 8, ["label"])
463
+ ]),
464
+ _: 1
465
+ }),
466
+ !t(g).query.spuId || q.value ? (f(), h(te, {
467
+ key: 0,
468
+ "spec-type": t(o).specType,
469
+ form: t(o),
470
+ onGetGoodsSku: D,
471
+ onGetFormData: B
472
+ }, null, 8, ["spec-type", "form"])) : X("", !0)
473
+ ]),
474
+ _: 1
475
+ }),
476
+ l[19] || (l[19] = c("div", { class: "title-content" }, "商品详情", -1)),
477
+ e(y, null, {
478
+ default: s(() => [
479
+ e(r, { span: 24 }, {
480
+ default: s(() => [
481
+ e(d, {
482
+ label: u.$t("goodsSpu.description"),
483
+ prop: "description"
484
+ }, {
485
+ default: s(() => [
486
+ e(t(oe), {
487
+ modelValue: t(o).description,
488
+ "onUpdate:modelValue": l[14] || (l[14] = (a) => t(o).description = a),
489
+ style: { width: "100%" }
490
+ }, null, 8, ["modelValue"])
491
+ ]),
492
+ _: 1
493
+ }, 8, ["label"])
494
+ ]),
495
+ _: 1
496
+ }),
497
+ e(d, null, {
498
+ default: s(() => [
499
+ e(H, {
500
+ type: "primary",
501
+ onClick: L
502
+ }, {
503
+ default: s(() => l[16] || (l[16] = [
504
+ U("保存", -1)
505
+ ])),
506
+ _: 1,
507
+ __: [16]
508
+ })
509
+ ]),
510
+ _: 1
511
+ })
512
+ ]),
513
+ _: 1
514
+ })
515
+ ]),
516
+ _: 1,
517
+ __: [17, 18, 19]
518
+ }, 8, ["model", "rules"])
519
+ ])
520
+ ]);
521
+ };
522
+ }
523
+ });
524
+ export {
525
+ he as default
526
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,14 +1,14 @@
1
- import { _ as J } from "./ImageUpload-BMw9FVJL.mjs";
1
+ import { _ as J } from "./ImageUpload-Bf2jhRs5.mjs";
2
2
  import { defineComponent as K, ref as v, reactive as T, resolveComponent as n, createElementBlock as V, openBlock as f, createElementVNode as c, createVNode as e, unref as t, withCtx as s, Fragment as w, renderList as R, createBlock as h, createTextVNode as U, toDisplayString as Q, createCommentVNode as X } from "vue";
3
3
  import { ElMessage as $ } from "element-plus";
4
4
  import { useRouter as Y, useRoute as Z } from "vue-router";
5
5
  import { routerUtil as E } from "jmash-core";
6
6
  import { useI18n as x } from "vue-i18n";
7
- import { D as i, C as ee } from "./index-B7_M6fAN.mjs";
8
- import { a as _ } from "./index-BlZupHNB.mjs";
7
+ import { D as i, C as ee } from "./index-Da2R0n8O.mjs";
8
+ import { a as _ } from "./index-DhS4AuWf.mjs";
9
9
  import { g as le } from "./index-BHmGYIuc.mjs";
10
10
  import { WangEditor as oe } from "xyvcard-cms";
11
- import te from "./skuForm-8WZm2j5V.mjs";
11
+ import te from "./skuForm-YXHrhyPI.mjs";
12
12
  const se = { class: "app-container" }, ae = { class: "search-container" }, ue = { class: "image-card" }, he = /* @__PURE__ */ K({
13
13
  __name: "edit",
14
14
  setup(de) {
@@ -1,11 +1,11 @@
1
- import { defineComponent as E, mergeModels as V, ref as B, reactive as N, useModel as F, resolveComponent as r, createBlock as K, openBlock as O, withCtx as l, createVNode as o, unref as d, createElementVNode as x, createTextVNode as w, toDisplayString as U } from "vue";
1
+ import { defineComponent as D, mergeModels as B, ref as I, reactive as N, useModel as E, resolveComponent as r, createBlock as K, openBlock as O, withCtx as l, createVNode as o, unref as d, createElementVNode as x, createTextVNode as w, toDisplayString as U } from "vue";
2
2
  import { ElMessage as k } from "element-plus";
3
3
  import { useI18n as A } from "vue-i18n";
4
- import { g as p } from "./index-BrBipAPq.mjs";
4
+ import { g as p } from "./index-BSzOTWcG.mjs";
5
5
  import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
6
+ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ D({
7
7
  __name: "edit",
8
- props: /* @__PURE__ */ V({
8
+ props: /* @__PURE__ */ B({
9
9
  entityKey: {
10
10
  type: Object,
11
11
  default: () => {
@@ -15,9 +15,9 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
15
15
  modelValue: { type: Boolean },
16
16
  modelModifiers: {}
17
17
  }),
18
- emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
18
+ emits: /* @__PURE__ */ B(["refresh"], ["update:modelValue"]),
19
19
  setup(f, { emit: $ }) {
20
- const g = B(), { t: i } = A();
20
+ const g = I(), { t: i } = A();
21
21
  let t = N({
22
22
  requestId: Math.random() * 10 + "",
23
23
  updateMask: "brandName,logoUrl,description"
@@ -30,11 +30,11 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
30
30
  trigger: "change"
31
31
  }
32
32
  ]
33
- }), a = F(f, "modelValue"), _ = f;
33
+ }), a = E(f, "modelValue"), _ = f;
34
34
  function M(e) {
35
- t.logoUrl = e;
35
+ t.logoUrl = e.response.fileSrc;
36
36
  }
37
- const b = $, j = Object.keys(_.entityKey), y = B(j.length >= 1);
37
+ const b = $, j = Object.keys(_.entityKey), y = I(j.length >= 1);
38
38
  y.value && p.findById(_.entityKey).then(({ data: e }) => {
39
39
  Object.assign(t, e);
40
40
  });
@@ -58,21 +58,21 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
58
58
  a.value && (a.value = !1);
59
59
  }
60
60
  return (e, n) => {
61
- const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"), R = r("el-row"), S = r("el-form"), I = r("el-button"), D = r("el-dialog");
62
- return O(), K(D, {
61
+ const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"), R = r("el-row"), S = r("el-form"), V = r("el-button"), F = r("el-dialog");
62
+ return O(), K(F, {
63
63
  modelValue: a.value,
64
64
  "onUpdate:modelValue": n[2] || (n[2] = (m) => a.value = m),
65
65
  onClose: h
66
66
  }, {
67
67
  footer: l(() => [
68
68
  x("div", z, [
69
- o(I, { onClick: h }, {
69
+ o(V, { onClick: h }, {
70
70
  default: l(() => [
71
71
  w(U(e.$t("common.cancel")), 1)
72
72
  ]),
73
73
  _: 1
74
74
  }),
75
- o(I, {
75
+ o(V, {
76
76
  type: "primary",
77
77
  onClick: q
78
78
  }, {
@@ -103,7 +103,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
103
103
  default: l(() => [
104
104
  o(s, {
105
105
  "picture-url": d(t).logoUrl,
106
- onImageSrc: M,
106
+ onUploadFile: M,
107
107
  width: 80,
108
108
  type: "trans"
109
109
  }, null, 8, ["picture-url"])
@@ -166,7 +166,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
166
166
  }, 8, ["modelValue"]);
167
167
  };
168
168
  }
169
- }), W = /* @__PURE__ */ T(G, [["__scopeId", "data-v-4d967c8a"]]);
169
+ }), W = /* @__PURE__ */ T(G, [["__scopeId", "data-v-7af6cdcd"]]);
170
170
  export {
171
171
  W as default
172
172
  };
@@ -1,12 +1,12 @@
1
- import { _ as x } from "./ImageUpload-BMw9FVJL.mjs";
1
+ import { _ as x } from "./ImageUpload-Bf2jhRs5.mjs";
2
2
  import { defineComponent as z, ref as P, reactive as R, resolveComponent as p, createElementBlock as I, openBlock as h, createElementVNode as f, createVNode as e, unref as r, withCtx as s, Fragment as M, renderList as O, createBlock as k, createTextVNode as v, toDisplayString as H, createCommentVNode as j } from "vue";
3
3
  import { ElMessage as U } from "element-plus";
4
4
  import { useRouter as Y, useRoute as J } from "vue-router";
5
5
  import { routerUtil as w } from "jmash-core";
6
6
  import { useI18n as K } from "vue-i18n";
7
- import { D as m, C as Q } from "./index-B7_M6fAN.mjs";
8
- import { a as b } from "./index-BlZupHNB.mjs";
9
- import W from "./skuForm-Dr6dKGa4.mjs";
7
+ import { D as m, C as Q } from "./index-Da2R0n8O.mjs";
8
+ import { a as b } from "./index-DhS4AuWf.mjs";
9
+ import W from "./skuForm-DVGkw6rD.mjs";
10
10
  const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" }, pe = /* @__PURE__ */ z({
11
11
  __name: "edit",
12
12
  setup(le) {