xyvcard-goods 0.0.33 → 0.0.35

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 (116) hide show
  1. package/dist/BatchSetting-B1LcBFPD.mjs +333 -0
  2. package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
  3. package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
  4. package/dist/{GoodsBaseForm-6rzBkBTh.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
  5. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
  6. package/dist/GoodsLogisticsForm-BqlwdGQ1.mjs +4 -0
  7. package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs +433 -0
  8. package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
  9. package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
  10. package/dist/{GoodsSpecForm-BqaN71rS.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
  11. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs +347 -0
  12. package/dist/SingleSku-rWv9vVhv.mjs +351 -0
  13. package/dist/constant-sVd2JbJt.mjs +115 -0
  14. package/dist/edit-B1cmsJpy.mjs +70 -0
  15. package/dist/{edit-DBTNknBy.mjs → edit-Br1Y569l.mjs} +8 -7
  16. package/dist/{edit-CZwlbL9o.mjs → edit-CET8Fr-t.mjs} +18 -18
  17. package/dist/{edit-1Lv_dvlq.mjs → edit-CagYTFKr.mjs} +1 -1
  18. package/dist/{edit-D2zcGl_U.mjs → edit-iJGrWlSv.mjs} +1 -1
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +32 -32
  20. package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
  21. package/dist/{index-BhUD_X30.mjs → index copy-kNLE7fPg.mjs } +6 -5
  22. package/dist/index-C61SQFSx.mjs +264 -0
  23. package/dist/index-CeWPdEJD.mjs +713 -0
  24. package/dist/{index-BpXZNA11.mjs → index-Cg6GUdSP.mjs} +3 -3
  25. package/dist/index-CyxnVWnL.mjs +182 -0
  26. package/dist/{index-DGYGNHfx.mjs → index-D9s8hsVw.mjs} +3 -3
  27. package/dist/{index-BXa-atkT.mjs → index-DbnKa_BJ.mjs} +1 -1
  28. package/dist/{index-DXIGHcIv.mjs → index-DoxTu4kg.mjs} +5 -4
  29. package/dist/{index-Cl4wz2yF.mjs → index-kw0UYOIu.mjs} +3 -3
  30. package/dist/{index-CRfiEzkA.mjs → index-xQgC-8Gd.mjs} +1237 -1141
  31. package/dist/index.mjs +1 -1
  32. package/dist/info-CTElDVo6.mjs +376 -0
  33. package/dist/{info-DfbU-CWk.mjs → info-DpGJgdac.mjs} +37 -36
  34. package/dist/{skuForm-DoIpxDvq.mjs → skuForm-C7w9YIDe.mjs} +40 -39
  35. package/dist/skuForm-CPlnCToi.mjs +279 -0
  36. package/dist/skuTable-C-LcASbX.mjs +594 -0
  37. package/dist/spec-DkiGCkuM.mjs +44 -0
  38. package/dist/style.css +1 -1
  39. package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
  40. package/dts/xyvcard-goods/src/api/dict.d.ts +36 -0
  41. package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
  42. package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
  43. package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
  44. package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
  45. package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
  46. package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
  47. package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
  48. package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
  49. package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
  50. package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
  51. package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
  52. package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
  53. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +21 -0
  54. package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
  55. package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
  56. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +72 -0
  57. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +271 -0
  58. package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
  59. package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
  60. package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
  61. package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
  62. package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
  63. package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
  64. package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
  65. package/dts/xyvcard-goods/src/constant.d.ts +107 -0
  66. package/dts/xyvcard-goods/src/index.d.ts +12 -0
  67. package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
  68. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +173 -0
  69. package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
  70. package/dts/xyvcard-goods/src/main.d.ts +7 -0
  71. package/dts/xyvcard-goods/src/permission.d.ts +1 -0
  72. package/dts/xyvcard-goods/src/router/index.d.ts +7 -0
  73. package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
  74. package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
  75. package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
  76. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
  77. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
  78. package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
  79. package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
  80. package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
  81. package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
  82. package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
  83. package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
  84. package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
  85. package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
  86. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
  87. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
  88. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
  89. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
  90. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
  91. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
  92. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
  93. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  94. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  95. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
  96. package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
  97. package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
  98. package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
  99. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +42 -0
  100. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +53 -0
  101. package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
  102. package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
  103. package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
  104. package/package.json +6 -5
  105. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +0 -374
  106. package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
  107. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
  108. package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
  109. package/dist/edit copy-tfwJCdiV.mjs +0 -526
  110. package/dist/edit-Db2EJ9dq.mjs +0 -526
  111. package/dist/index-BHmGYIuc.mjs +0 -24
  112. package/dist/index-Df-F10aZ.mjs +0 -264
  113. package/dist/index-vHQhUQSO.mjs +0 -95
  114. package/dist/info-DDi6GKQH.mjs +0 -365
  115. package/dist/skuForm-DWIoveRP.mjs +0 -475
  116. package/dist/skuTable-BVBtWrf9.mjs +0 -639
@@ -1,639 +0,0 @@
1
- import { defineComponent as T, ref as C, computed as F, watch as $, resolveComponent as g, createElementBlock as _, openBlock as P, createCommentVNode as M, createVNode as a, createElementVNode as u, createTextVNode as y, withCtx as d, Fragment as G, renderList as K, createBlock as z, toDisplayString as D, unref as x } from "vue";
2
- import { D as O } from "./index-Df-F10aZ.mjs";
3
- import { fileApi as E } from "jmash-core";
4
- import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
- function J(n, h = [], o) {
6
- const { optionValue: f = "id", optionText: U = "name" } = o || {}, w = [];
7
- let k = 0;
8
- const I = {}, S = Q(n);
9
- if (n.length === 0) return w;
10
- n.forEach((v) => {
11
- const { specValueList: t } = v;
12
- if (!t || t.length === 0) return !0;
13
- k = (k || 1) * t.length;
14
- }), h.forEach((v) => {
15
- const { specs: t, ...s } = v;
16
- I[t.map((i) => `${i.specId}_${i.specValueId}`).join("|")] = s;
17
- });
18
- for (let v = 0; v < k; v++) {
19
- const t = [], s = [];
20
- n.forEach((r, c) => {
21
- const { specValueList: l } = r;
22
- let V = {};
23
- if (!l || l.length === 0) return !0;
24
- if (l.length > 1) {
25
- const m = Math.floor(v / S[c]) % l.length;
26
- V = n[c].specValueList[m];
27
- } else
28
- V = n[c].specValueList[0];
29
- !r[f] || !V[f] || (s.push(`${r[f]}_${V[f]}`), t.push({
30
- specId: r[f],
31
- specName: r[U],
32
- specValueId: V[f],
33
- specValueName: V[U]
34
- }));
35
- });
36
- const { ...i } = I[s.join("|")] || {};
37
- w.push({ ...i, specs: t });
38
- }
39
- return w;
40
- }
41
- function Q(n) {
42
- const h = [];
43
- for (let o = n.length - 1; o >= 0; o--)
44
- n[o + 1] && n[o + 1].specValueList ? h[o] = n[o + 1].specValueList.length * h[o + 1] || 1 : h[o] = 1;
45
- return h;
46
- }
47
- function L(n) {
48
- return Array.from(new Set(n));
49
- }
50
- function R(n, h) {
51
- return n = L(n), h = L(h), n.concat(h).filter((o) => !(n.includes(o) && h.includes(o)));
52
- }
53
- const W = { key: 0 }, X = { class: "title-set" }, Y = { class: "right-dis" }, Z = { class: "right-dis" }, ee = { class: "right-dis" }, le = { class: "right-dis" }, se = { class: "right-dis" }, ae = { class: "right-dis" }, te = { class: "right-dis" }, oe = { class: "right-dis" }, ie = { key: 0 }, ne = { key: 1 }, re = /* @__PURE__ */ T({
54
- __name: "skuTable",
55
- props: {
56
- specData: {
57
- type: Array,
58
- default() {
59
- return [];
60
- }
61
- },
62
- goodsSku: {
63
- type: Array,
64
- default() {
65
- return [];
66
- }
67
- },
68
- // 是否显示批量设置,主要是用于详情展示
69
- isSettingShow: {
70
- type: Boolean,
71
- default: !0
72
- }
73
- },
74
- emits: ["getGoodsSku", "getFormData"],
75
- setup(n, { emit: h }) {
76
- const o = C({
77
- salePrice: 0,
78
- marketPrice: 0,
79
- costPrice: 0,
80
- weight: 0,
81
- volume: 0,
82
- stock: 0,
83
- salePriceV2: 0,
84
- salePriceV3: 0
85
- }), f = C([]), U = h, w = n, k = F(() => {
86
- let t = J(w.specData, [], {}).map((i) => ({
87
- specValues: i.specs,
88
- specIds: i.specs.reduce(
89
- (r, c, l) => `${r}${c.specId}-${c.specValueId}${l === i.specs.length - 1 ? "" : "_"}`,
90
- ""
91
- )
92
- })), s = w.goodsSku.map((i) => {
93
- var r;
94
- return {
95
- ...i,
96
- specIds: (r = i.specValues) == null ? void 0 : r.reduce(
97
- (c, l, V) => `${c}${l.specId}-${l.specValueId}${V === i.specValues.length - 1 ? "" : "_"}`,
98
- ""
99
- )
100
- };
101
- });
102
- return t.forEach((i) => {
103
- s.forEach((r) => {
104
- let c = i.specIds.split("_"), l = r.specIds.split("_"), V = !0;
105
- c.forEach((m) => {
106
- l.find((b) => b == m) || (V = !1);
107
- }), V && (i.picUrl = r.picUrl ? r.picUrl : "", i.skuCode = r.skuCode ? r.skuCode : void 0, i.skuId = r.skuId ? r.skuId : void 0, i.salePrice = r.salePrice, i.salePriceV2 = r.salePriceV2, i.salePriceV3 = r.salePriceV3, i.marketPrice = r.marketPrice, i.costPrice = r.costPrice, i.stock = r.stock, i.weight = r.weight, i.volume = r.volume, i.status = r.status);
108
- });
109
- }), t;
110
- });
111
- $(
112
- k,
113
- (t, s) => {
114
- var r, c;
115
- if (!t || !t.length) return f.value = [];
116
- if (!s || !s.length)
117
- return;
118
- if (((r = t[0].specValues) == null ? void 0 : r.length) !== ((c = s[0].specValues) == null ? void 0 : c.length))
119
- return f.value = t.map((l) => ({
120
- ...l,
121
- picUrl: "",
122
- skuCode: void 0,
123
- salePrice: 0,
124
- salePriceV2: 0,
125
- salePriceV3: 0,
126
- marketPrice: void 0,
127
- costPrice: void 0,
128
- stock: 0,
129
- weight: void 0,
130
- volume: void 0,
131
- status: !0
132
- }));
133
- if (t.length === s.length)
134
- return f.value = t.map((l, V) => ({
135
- ...f.value[V],
136
- ...l
137
- }));
138
- const i = I(t, s);
139
- if (t.length > s.length) {
140
- let l = [];
141
- t.forEach((V) => {
142
- const m = f.value.find(
143
- (b) => b.specIds === V.specIds
144
- );
145
- m ? l.push(m) : l.push({
146
- ...V,
147
- picUrl: "",
148
- skuCode: void 0,
149
- salePrice: 0,
150
- salePriceV2: 0,
151
- salePriceV3: 0,
152
- marketPrice: void 0,
153
- costPrice: void 0,
154
- stock: 0,
155
- weight: void 0,
156
- volume: void 0,
157
- status: !0
158
- });
159
- }), f.value = l;
160
- } else
161
- f.value = f.value.filter(
162
- (l) => !i.includes(l.specIds)
163
- );
164
- f.value = t.map((l) => ({
165
- ...l,
166
- picUrl: l.picUrl ? l.picUrl : "",
167
- skuCode: l.skuCode ? l.skuCode : void 0,
168
- salePrice: l.salePrice ? l.salePrice : 0,
169
- salePriceV2: l.salePrice ? l.salePriceV2 : 0,
170
- salePriceV3: l.salePrice ? l.salePriceV3 : 0,
171
- marketPrice: l.marketPrice ? l.marketPrice : void 0,
172
- costPrice: l.costPrice ? l.costPrice : void 0,
173
- stock: l.stock ? l.stock : 0,
174
- weight: l.weight ? l.weight : void 0,
175
- volume: l.volume ? l.volume : void 0,
176
- status: l.status ? l.status : !0
177
- }));
178
- },
179
- {
180
- deep: !0,
181
- immediate: !0
182
- }
183
- ), $(
184
- f,
185
- (t) => {
186
- U("getFormData", t);
187
- },
188
- {
189
- deep: !0,
190
- immediate: !0
191
- }
192
- );
193
- function I(t, s) {
194
- return t = t.map((i) => i.specIds), s = s.map((i) => i.specIds), R(t, s);
195
- }
196
- function S() {
197
- f.value.forEach((t) => {
198
- t.salePrice = o.value.salePrice, t.salePriceV2 = o.value.salePriceV2, t.salePriceV3 = o.value.salePriceV3, t.marketPrice = o.value.marketPrice, t.costPrice = o.value.costPrice, t.weight = o.value.weight, t.volume = o.value.volume, t.stock = o.value.stock;
199
- });
200
- }
201
- function v(t, s) {
202
- s.picUrl = t.response.fileSrc;
203
- }
204
- return (t, s) => {
205
- const i = g("Setting"), r = g("el-icon"), c = g("el-input-number"), l = g("el-tooltip"), V = g("el-button"), m = g("el-table-column"), b = g("jmash-single-image-upload"), A = g("el-image"), N = g("el-input"), j = g("el-switch"), q = g("el-table");
206
- return P(), _("div", null, [
207
- n.isSettingShow ? (P(), _("div", W, [
208
- u("div", X, [
209
- a(r, null, {
210
- default: d(() => [
211
- a(i)
212
- ]),
213
- _: 1
214
- }),
215
- s[8] || (s[8] = y(" 批量设置 ", -1))
216
- ]),
217
- u("span", Y, [
218
- a(l, {
219
- class: "box-item",
220
- effect: "dark",
221
- content: "销售价(元)",
222
- placement: "top-start"
223
- }, {
224
- default: d(() => [
225
- a(c, {
226
- modelValue: o.value.salePrice,
227
- "onUpdate:modelValue": s[0] || (s[0] = (e) => o.value.salePrice = e),
228
- precision: 2,
229
- size: "small",
230
- placeholder: "销售价(元)",
231
- "controls-position": "right"
232
- }, null, 8, ["modelValue"])
233
- ]),
234
- _: 1
235
- })
236
- ]),
237
- u("span", Z, [
238
- a(l, {
239
- class: "box-item",
240
- effect: "dark",
241
- content: "v2会员销售价(元)",
242
- placement: "top-start"
243
- }, {
244
- default: d(() => [
245
- a(c, {
246
- modelValue: o.value.salePriceV2,
247
- "onUpdate:modelValue": s[1] || (s[1] = (e) => o.value.salePriceV2 = e),
248
- precision: 2,
249
- size: "small",
250
- placeholder: "v2会员销售价(元)",
251
- "controls-position": "right"
252
- }, null, 8, ["modelValue"])
253
- ]),
254
- _: 1
255
- })
256
- ]),
257
- u("span", ee, [
258
- a(l, {
259
- class: "box-item",
260
- effect: "dark",
261
- content: "v3会员销售价(元)",
262
- placement: "top-start"
263
- }, {
264
- default: d(() => [
265
- a(c, {
266
- modelValue: o.value.salePriceV3,
267
- "onUpdate:modelValue": s[2] || (s[2] = (e) => o.value.salePriceV3 = e),
268
- precision: 2,
269
- size: "small",
270
- placeholder: "v3会员销售价(元)",
271
- "controls-position": "right"
272
- }, null, 8, ["modelValue"])
273
- ]),
274
- _: 1
275
- })
276
- ]),
277
- u("span", le, [
278
- a(l, {
279
- class: "box-item",
280
- effect: "dark",
281
- content: "市场价(元)",
282
- placement: "top-start"
283
- }, {
284
- default: d(() => [
285
- a(c, {
286
- modelValue: o.value.marketPrice,
287
- "onUpdate:modelValue": s[3] || (s[3] = (e) => o.value.marketPrice = e),
288
- precision: 2,
289
- size: "small",
290
- placeholder: "市场价(元)",
291
- "controls-position": "right"
292
- }, null, 8, ["modelValue"])
293
- ]),
294
- _: 1
295
- })
296
- ]),
297
- u("span", se, [
298
- a(l, {
299
- class: "box-item",
300
- effect: "dark",
301
- content: "成本价(元)",
302
- placement: "top-start"
303
- }, {
304
- default: d(() => [
305
- a(c, {
306
- modelValue: o.value.costPrice,
307
- "onUpdate:modelValue": s[4] || (s[4] = (e) => o.value.costPrice = e),
308
- precision: 2,
309
- size: "small",
310
- placeholder: "成本价(元)",
311
- "controls-position": "right"
312
- }, null, 8, ["modelValue"])
313
- ]),
314
- _: 1
315
- })
316
- ]),
317
- u("span", ae, [
318
- a(l, {
319
- class: "box-item",
320
- effect: "dark",
321
- content: "重量(kg)",
322
- placement: "top-start"
323
- }, {
324
- default: d(() => [
325
- a(c, {
326
- modelValue: o.value.weight,
327
- "onUpdate:modelValue": s[5] || (s[5] = (e) => o.value.weight = e),
328
- precision: 2,
329
- size: "small",
330
- placeholder: "重量(kg)",
331
- "controls-position": "right"
332
- }, null, 8, ["modelValue"])
333
- ]),
334
- _: 1
335
- })
336
- ]),
337
- u("span", te, [
338
- a(l, {
339
- class: "box-item",
340
- effect: "dark",
341
- content: "体积(m³)",
342
- placement: "top-start"
343
- }, {
344
- default: d(() => [
345
- a(c, {
346
- modelValue: o.value.volume,
347
- "onUpdate:modelValue": s[6] || (s[6] = (e) => o.value.volume = e),
348
- precision: 2,
349
- size: "small",
350
- placeholder: "体积(m³)",
351
- "controls-position": "right"
352
- }, null, 8, ["modelValue"])
353
- ]),
354
- _: 1
355
- })
356
- ]),
357
- u("span", oe, [
358
- a(l, {
359
- class: "box-item",
360
- effect: "dark",
361
- content: "库存",
362
- placement: "top-start"
363
- }, {
364
- default: d(() => [
365
- a(c, {
366
- modelValue: o.value.stock,
367
- "onUpdate:modelValue": s[7] || (s[7] = (e) => o.value.stock = e),
368
- precision: 0,
369
- size: "small",
370
- placeholder: "库存",
371
- "controls-position": "right"
372
- }, null, 8, ["modelValue"])
373
- ]),
374
- _: 1
375
- })
376
- ]),
377
- a(V, {
378
- type: "primary",
379
- size: "small",
380
- onClick: S
381
- }, {
382
- default: d(() => s[9] || (s[9] = [
383
- y("设置", -1)
384
- ])),
385
- _: 1,
386
- __: [9]
387
- })
388
- ])) : M("", !0),
389
- a(q, {
390
- data: f.value,
391
- class: "w-full top-dis"
392
- }, {
393
- default: d(() => [
394
- a(m, { type: "index" }),
395
- (P(!0), _(G, null, K(n.specData, (e, p) => (P(), z(m, {
396
- key: e.id,
397
- prop: e.id,
398
- label: e.name
399
- }, {
400
- default: d((B) => [
401
- y(D(B.row.specValues[p].specValueName), 1)
402
- ]),
403
- _: 2
404
- }, 1032, ["prop", "label"]))), 128)),
405
- a(m, {
406
- prop: "picUrl",
407
- label: "图片"
408
- }, {
409
- default: d((e) => [
410
- n.isSettingShow ? (P(), z(b, {
411
- key: 0,
412
- "picture-url": e.row.picUrl,
413
- onImageSrc: (p) => v(p, e.row)
414
- }, null, 8, ["picture-url", "onImageSrc"])) : (P(), z(A, {
415
- key: 1,
416
- "preview-teleported": "",
417
- style: { width: "80px", height: "80px" },
418
- src: x(E).imageUrl(e.row.picUrl, 80, 80),
419
- "zoom-rate": 1.2,
420
- "max-scale": 7,
421
- "min-scale": 0.2,
422
- "preview-src-list": [x(E).imageUrl(e.row.picUrl)],
423
- fit: "cover"
424
- }, null, 8, ["src", "preview-src-list"]))
425
- ]),
426
- _: 1
427
- }),
428
- a(m, {
429
- prop: "salePrice",
430
- label: "销售价(元)",
431
- width: "150"
432
- }, {
433
- header: d(() => s[10] || (s[10] = [
434
- u("span", { class: "required_red" }, "*", -1),
435
- u("span", null, "销售价(元)", -1)
436
- ])),
437
- default: d((e) => [
438
- u("span", null, [
439
- a(c, {
440
- modelValue: e.row.salePrice,
441
- "onUpdate:modelValue": (p) => e.row.salePrice = p,
442
- precision: 2,
443
- size: "small",
444
- controls: !1,
445
- class: "w-full",
446
- disabled: !n.isSettingShow
447
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
448
- ])
449
- ]),
450
- _: 1
451
- }),
452
- a(m, {
453
- prop: "salePriceV2",
454
- label: "v2会员销售价(元)",
455
- width: "150"
456
- }, {
457
- header: d(() => s[11] || (s[11] = [
458
- u("span", { class: "required_red" }, "*", -1),
459
- u("span", null, "v2会员销售价(元)", -1)
460
- ])),
461
- default: d((e) => [
462
- u("span", null, [
463
- a(c, {
464
- modelValue: e.row.salePriceV2,
465
- "onUpdate:modelValue": (p) => e.row.salePriceV2 = p,
466
- precision: 2,
467
- size: "small",
468
- controls: !1,
469
- class: "w-full",
470
- disabled: !n.isSettingShow
471
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
472
- ])
473
- ]),
474
- _: 1
475
- }),
476
- a(m, {
477
- prop: "salePriceV3",
478
- label: "v3会员销售价(元)",
479
- width: "150"
480
- }, {
481
- header: d(() => s[12] || (s[12] = [
482
- u("span", { class: "required_red" }, "*", -1),
483
- u("span", null, "v3会员销售价(元)", -1)
484
- ])),
485
- default: d((e) => [
486
- u("span", null, [
487
- a(c, {
488
- modelValue: e.row.salePriceV3,
489
- "onUpdate:modelValue": (p) => e.row.salePriceV3 = p,
490
- precision: 2,
491
- size: "small",
492
- controls: !1,
493
- class: "w-full",
494
- disabled: !n.isSettingShow
495
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
496
- ])
497
- ]),
498
- _: 1
499
- }),
500
- a(m, {
501
- prop: "marketPrice",
502
- label: "市场价(元)"
503
- }, {
504
- default: d((e) => [
505
- u("span", null, [
506
- a(c, {
507
- modelValue: e.row.marketPrice,
508
- "onUpdate:modelValue": (p) => e.row.marketPrice = p,
509
- precision: 2,
510
- size: "small",
511
- controls: !1,
512
- class: "w-full",
513
- disabled: !n.isSettingShow
514
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
515
- ])
516
- ]),
517
- _: 1
518
- }),
519
- a(m, {
520
- prop: "costPrice",
521
- label: "成本价(元)"
522
- }, {
523
- default: d((e) => [
524
- u("span", null, [
525
- a(c, {
526
- modelValue: e.row.costPrice,
527
- "onUpdate:modelValue": (p) => e.row.costPrice = p,
528
- precision: 2,
529
- size: "small",
530
- controls: !1,
531
- class: "w-full",
532
- disabled: !n.isSettingShow
533
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
534
- ])
535
- ]),
536
- _: 1
537
- }),
538
- a(m, {
539
- prop: "weight",
540
- label: "重量(kg)"
541
- }, {
542
- default: d((e) => [
543
- u("span", null, [
544
- a(c, {
545
- modelValue: e.row.weight,
546
- "onUpdate:modelValue": (p) => e.row.weight = p,
547
- precision: 2,
548
- size: "small",
549
- controls: !1,
550
- class: "w-full",
551
- disabled: !n.isSettingShow
552
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
553
- ])
554
- ]),
555
- _: 1
556
- }),
557
- a(m, {
558
- prop: "volume",
559
- label: "体积(m³)"
560
- }, {
561
- default: d((e) => [
562
- u("span", null, [
563
- a(c, {
564
- modelValue: e.row.volume,
565
- "onUpdate:modelValue": (p) => e.row.volume = p,
566
- precision: 2,
567
- size: "small",
568
- controls: !1,
569
- class: "w-full",
570
- disabled: !n.isSettingShow
571
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
572
- ])
573
- ]),
574
- _: 1
575
- }),
576
- a(m, {
577
- prop: "stock",
578
- label: "库存"
579
- }, {
580
- header: d(() => s[13] || (s[13] = [
581
- u("span", { class: "required_red" }, "*", -1),
582
- u("span", null, "库存", -1)
583
- ])),
584
- default: d((e) => [
585
- u("span", null, [
586
- a(c, {
587
- modelValue: e.row.stock,
588
- "onUpdate:modelValue": (p) => e.row.stock = p,
589
- precision: 2,
590
- size: "small",
591
- controls: !1,
592
- class: "w-full",
593
- disabled: !n.isSettingShow
594
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
595
- ])
596
- ]),
597
- _: 1
598
- }),
599
- a(m, {
600
- prop: "skuCode",
601
- label: "sku编码"
602
- }, {
603
- default: d((e) => [
604
- u("span", null, [
605
- a(N, {
606
- modelValue: e.row.skuCode,
607
- "onUpdate:modelValue": (p) => e.row.skuCode = p,
608
- size: "small",
609
- disabled: !n.isSettingShow
610
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
611
- ])
612
- ]),
613
- _: 1
614
- }),
615
- a(m, {
616
- prop: "status",
617
- label: "是否上架",
618
- width: "80"
619
- }, {
620
- default: d((e) => [
621
- n.isSettingShow ? (P(), _("span", ie, [
622
- a(j, {
623
- modelValue: e.row.status,
624
- "onUpdate:modelValue": (p) => e.row.status = p
625
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
626
- ])) : (P(), _("span", ne, D(x(O).shelfDict.getValue(e.row.status)), 1))
627
- ]),
628
- _: 1
629
- })
630
- ]),
631
- _: 1
632
- }, 8, ["data"])
633
- ]);
634
- };
635
- }
636
- }), me = /* @__PURE__ */ H(re, [["__scopeId", "data-v-b94fa9cb"]]);
637
- export {
638
- me as default
639
- };