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.
- package/README.md +51 -51
- package/dist/GoodsBaseForm-BSvXc_XA.mjs +4 -0
- package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +381 -0
- package/dist/GoodsLogisticsForm-1Bbd4Z52.mjs +4 -0
- package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs +434 -0
- package/dist/GoodsSpecForm-Ddo1IZLZ.mjs +4 -0
- package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs +338 -0
- package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Bf2jhRs5.mjs} +1 -1
- package/dist/edit copy 2-Yzf_M31V.mjs +59 -0
- package/dist/edit copy-CCnzlrgL.mjs +526 -0
- package/dist/{edit-DvO1wYIL.mjs → edit-BgtwinSN.mjs} +1 -1
- package/dist/{edit-BlQj1xVR.mjs → edit-Dke5sWct.mjs} +4 -4
- package/dist/{edit-CuGiM5xu.mjs → edit-e5-aXV6K.mjs} +15 -15
- package/dist/{edit-Bh5jT6eo.mjs → edit-lfXK_dUp.mjs} +4 -4
- package/dist/{edit-CyhVo22f.mjs → edit-pUKONjxH.mjs} +7 -7
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs → edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs} +33 -33
- package/dist/el-message-BB2-39XJ.mjs +1221 -0
- package/dist/{index-BrBipAPq.mjs → index-BSzOTWcG.mjs} +1 -1
- package/dist/{index-CVM7nBhM.mjs → index-BpKiAhvt.mjs} +3 -3
- package/dist/{index-Dk9-_0Ir.mjs → index-ChQ-ZxD1.mjs} +2 -2
- package/dist/{index-Dz9NSJh1.mjs → index-CkJncbVf.mjs} +3 -3
- package/dist/{index-DzUSeIbT.mjs → index-CkMWas2b.mjs} +3 -3
- package/dist/index-Da2R0n8O.mjs +374 -0
- package/dist/{index-BlZupHNB.mjs → index-DhS4AuWf.mjs} +1593 -1554
- package/dist/{index-8JQB4NmH.mjs → index-DyLLV1NK.mjs} +281 -250
- package/dist/index-vHQhUQSO.mjs +95 -0
- package/dist/index.mjs +1 -1
- package/dist/{info-CLt9Ea38.mjs → info-DOKoSi7a.mjs} +34 -34
- package/dist/{info-NFU_3fNY.mjs → info-De_pBN6A.mjs} +19 -19
- package/dist/{skuForm-Dr6dKGa4.mjs → skuForm-DVGkw6rD.mjs} +71 -86
- package/dist/{skuForm-8WZm2j5V.mjs → skuForm-YXHrhyPI.mjs} +111 -110
- package/dist/{skuTable-BwIc5hr5.mjs → skuTable-DOIQ9kiV.mjs} +71 -71
- package/dist/style.css +1 -1
- package/dts/api/goods-base/index.d.ts +11 -0
- package/dts/api/goods-base/types.d.ts +33 -0
- package/dts/api/goods-logistics/index.d.ts +8 -0
- package/dts/api/goods-logistics/types.d.ts +16 -0
- package/dts/api/goods-spec/index.d.ts +8 -0
- package/dts/api/goods-spec/types.d.ts +15 -0
- package/dts/api/goods-spu/index.d.ts +3 -0
- package/dts/api/goods-stock/index.d.ts +8 -0
- package/dts/api/goods-stock/types.d.ts +32 -0
- package/dts/api/index.d.ts +3 -0
- package/dts/constant.d.ts +26 -0
- package/dts/lang/goods/zh-cn.d.ts +12 -0
- package/dts/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +7 -0
- package/dts/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/api/dict.d.ts +35 -0
- package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
- package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
- package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
- package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
- package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
- package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +18 -0
- package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
- package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +69 -0
- package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +245 -0
- package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
- package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
- package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
- package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
- package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
- package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
- package/dts/xyvcard-goods/src/constant.d.ts +107 -0
- package/dts/xyvcard-goods/src/index.d.ts +12 -0
- package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
- package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +141 -0
- package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
- package/dts/xyvcard-goods/src/main.d.ts +7 -0
- package/dts/xyvcard-goods/src/permission.d.ts +1 -0
- package/dts/xyvcard-goods/src/router/index.d.ts +6 -0
- package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
- package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
- package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
- package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
- package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
- package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
- package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
- package/package.json +63 -63
- package/dist/index-B7_M6fAN.mjs +0 -228
- package/dts/views/goods/goods-combination/goodsList.vue.d.ts +0 -14
- package/dts/views/goods/goods-spu/goodsList.vue.d.ts +0 -23
- /package/dts/{views/goods/goods-combination → xyvcard-goods/src/views/goods/goods-spu}/skuTable.vue.d.ts +0 -0
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as z, ref as S, watch as E, resolveComponent as i, createBlock as P, openBlock as m, withCtx as r, createVNode as n, unref as U, createElementBlock as T, Fragment as Y, renderList as G, createCommentVNode as M, createTextVNode as H, toDisplayString as J } from "vue";
|
|
2
2
|
import { useI18n as K } from "vue-i18n";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
name: "Plus",
|
|
10
|
-
__name: "plus",
|
|
11
|
-
setup(b) {
|
|
12
|
-
return (C, E) => (m(), v("svg", {
|
|
13
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
viewBox: "0 0 1024 1024"
|
|
15
|
-
}, [
|
|
16
|
-
M("path", {
|
|
17
|
-
fill: "currentColor",
|
|
18
|
-
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
19
|
-
})
|
|
20
|
-
]));
|
|
21
|
-
}
|
|
22
|
-
}), Z = X;
|
|
23
|
-
const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
3
|
+
import { p as Q } from "./index-vHQhUQSO.mjs";
|
|
4
|
+
import { D as V, C as h } from "./index-Da2R0n8O.mjs";
|
|
5
|
+
import { a as D } from "./index-DhS4AuWf.mjs";
|
|
6
|
+
import { specValueApi as W } from "xyvcard-shop";
|
|
7
|
+
import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
|
+
const Z = { key: 0 }, x = /* @__PURE__ */ z({
|
|
24
9
|
__name: "skuForm",
|
|
25
10
|
props: {
|
|
26
11
|
form: {
|
|
@@ -30,8 +15,8 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
30
15
|
}
|
|
31
16
|
},
|
|
32
17
|
emits: ["getGoodsSku", "getFormData"],
|
|
33
|
-
setup(
|
|
34
|
-
const { t:
|
|
18
|
+
setup($, { emit: L }) {
|
|
19
|
+
const { t: A } = K(), g = S([]), d = S([
|
|
35
20
|
{
|
|
36
21
|
salePrice: 0,
|
|
37
22
|
skuId: "",
|
|
@@ -44,20 +29,20 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
44
29
|
marketPrice: 0
|
|
45
30
|
}
|
|
46
31
|
]);
|
|
47
|
-
|
|
48
|
-
const F =
|
|
49
|
-
function
|
|
50
|
-
s.picUrl = e;
|
|
32
|
+
V.goodsSpuBizDict.useValues();
|
|
33
|
+
const F = L;
|
|
34
|
+
function B(s, e) {
|
|
35
|
+
s.picUrl = e.response.fileSrc;
|
|
51
36
|
}
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
37
|
+
const y = $;
|
|
38
|
+
E(
|
|
39
|
+
y.form,
|
|
55
40
|
(s) => s,
|
|
56
41
|
{
|
|
57
42
|
deep: !0,
|
|
58
43
|
immediate: !0
|
|
59
44
|
}
|
|
60
|
-
),
|
|
45
|
+
), y.form.spuId && D.findGroupList({ goodsId: y.form.spuId }).then(({ data: s }) => {
|
|
61
46
|
if (s && s.results.length > 0) {
|
|
62
47
|
d.value = [];
|
|
63
48
|
const e = s.results.map(async (l) => {
|
|
@@ -71,18 +56,18 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
71
56
|
specType: "",
|
|
72
57
|
skuOptions: []
|
|
73
58
|
};
|
|
74
|
-
return await
|
|
59
|
+
return await v(l.spuId, t), t.saleNum = l.saleNum || 1, t.salePrice = l.salePrice || 0, t.specType === h.SPEC_TYPE_VALUES.MULTI_SPEC && l.skuId && (t.skuId = l.skuId || "", t.salePrice = l.salePrice || 0, t.saleNum = l.saleNum || 1, t.picUrl = l.picUrl || "", C(l.skuId)), t;
|
|
75
60
|
});
|
|
76
61
|
Promise.all(e).then((l) => {
|
|
77
62
|
d.value = l;
|
|
78
63
|
});
|
|
79
64
|
}
|
|
80
65
|
});
|
|
81
|
-
function
|
|
66
|
+
function O(s) {
|
|
82
67
|
const e = d.value.indexOf(s.row);
|
|
83
68
|
e !== 0 && d.value.splice(e, 1);
|
|
84
69
|
}
|
|
85
|
-
function
|
|
70
|
+
function j() {
|
|
86
71
|
d.value.push({
|
|
87
72
|
salePrice: 0,
|
|
88
73
|
skuId: "",
|
|
@@ -95,44 +80,44 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
95
80
|
marketPrice: 0
|
|
96
81
|
});
|
|
97
82
|
}
|
|
98
|
-
const
|
|
99
|
-
async function
|
|
100
|
-
if (!
|
|
83
|
+
const b = S({});
|
|
84
|
+
async function R(s) {
|
|
85
|
+
if (!g.value[s])
|
|
101
86
|
try {
|
|
102
|
-
const { data: e } = await
|
|
87
|
+
const { data: e } = await W.findById({
|
|
103
88
|
specValueId: s
|
|
104
89
|
});
|
|
105
|
-
return
|
|
90
|
+
return g.value[s] = e.valueName, e.valueName;
|
|
106
91
|
} catch {
|
|
107
92
|
}
|
|
108
93
|
}
|
|
109
|
-
async function
|
|
94
|
+
async function v(s, e) {
|
|
110
95
|
var l, t, I;
|
|
111
96
|
if (e.skuId = "", e.skuOptions = [], e.picUrl = "", e.salePrice = 0, e.saleNum = 1, e.skuName = "", e.marketPrice = 0, !s) {
|
|
112
|
-
e.skuId = "", e.picUrl = "", e.salePrice = 0, e.saleNum = 1, e.skuName = ((l =
|
|
97
|
+
e.skuId = "", e.picUrl = "", e.salePrice = 0, e.saleNum = 1, e.skuName = ((l = V.goodsSpuBizDict.values.find((o) => o.key === s)) == null ? void 0 : l.value) ?? "", e.skuOptions = [], e.marketPrice = 0;
|
|
113
98
|
return;
|
|
114
99
|
}
|
|
115
100
|
try {
|
|
116
|
-
const { data: o } = await
|
|
117
|
-
if (e.specType = o.specType, e.marketPrice = o.maxPrice, e.specType ===
|
|
118
|
-
const f = o.skuList.results,
|
|
101
|
+
const { data: o } = await D.findById({ spuId: s });
|
|
102
|
+
if (e.specType = o.specType, e.marketPrice = o.maxPrice, e.specType === h.SPEC_TYPE_VALUES.UNIFIED_SPEC && (e.picUrl = o.picUrls ? o.picUrls.split(",")[0] : "", e.salePrice = (t = o.skuList) == null ? void 0 : t.results[0].salePrice, e.skuId = (I = o.skuList) == null ? void 0 : I.results[0].skuId, e.skuName = o.spuName), e.specType === h.SPEC_TYPE_VALUES.MULTI_SPEC && o.skuList) {
|
|
103
|
+
const f = o.skuList.results, k = f.map((u) => u.specValues && Array.isArray(u.specValues) ? u.specValues.map(
|
|
119
104
|
(p) => p.specValueId
|
|
120
|
-
) : []),
|
|
121
|
-
await Promise.all(
|
|
122
|
-
const
|
|
123
|
-
(u) => u.map((p) =>
|
|
105
|
+
) : []), N = k.flat().map((u) => R(u));
|
|
106
|
+
await Promise.all(N);
|
|
107
|
+
const _ = k.map(
|
|
108
|
+
(u) => u.map((p) => g.value[p] || p)
|
|
124
109
|
);
|
|
125
110
|
e.skuOptions = f.map((u, p) => ({
|
|
126
111
|
key: u.skuId,
|
|
127
|
-
value:
|
|
128
|
-
specInfo:
|
|
112
|
+
value: _[p].join(" "),
|
|
113
|
+
specInfo: _[p].join(" "),
|
|
129
114
|
picUrl: u.picUrl || (o.picUrls ? o.picUrls.split(",")[0] : ""),
|
|
130
115
|
salePrice: u.salePrice,
|
|
131
116
|
stock: u.stock
|
|
132
117
|
})), f.forEach((u, p) => {
|
|
133
|
-
u.skuId && (
|
|
118
|
+
u.skuId && (b.value[u.skuId] = {
|
|
134
119
|
...u,
|
|
135
|
-
specInfo:
|
|
120
|
+
specInfo: _[p].join(" "),
|
|
136
121
|
spuPicUrls: o.picUrls
|
|
137
122
|
});
|
|
138
123
|
});
|
|
@@ -140,17 +125,17 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
140
125
|
} catch {
|
|
141
126
|
}
|
|
142
127
|
}
|
|
143
|
-
function
|
|
128
|
+
function C(s) {
|
|
144
129
|
const e = d.value.find((l) => l.skuId === s);
|
|
145
130
|
if (e && s) {
|
|
146
|
-
const l =
|
|
131
|
+
const l = b.value[s];
|
|
147
132
|
if (l) {
|
|
148
133
|
const t = l.spuPicUrls ? l.spuPicUrls.split(",")[0] : "";
|
|
149
134
|
e.picUrl = l.picUrl || t, e.salePrice = l.salePrice, e.specInfo = l.specInfo;
|
|
150
135
|
}
|
|
151
136
|
}
|
|
152
137
|
}
|
|
153
|
-
return
|
|
138
|
+
return E(
|
|
154
139
|
d,
|
|
155
140
|
(s) => {
|
|
156
141
|
const e = s.filter((l) => l.spuId && l.skuId).map((l) => ({
|
|
@@ -170,30 +155,30 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
170
155
|
immediate: !0
|
|
171
156
|
}
|
|
172
157
|
), (s, e) => {
|
|
173
|
-
const l =
|
|
158
|
+
const l = i("jmash-select"), t = i("el-table-column"), I = i("el-option"), o = i("el-select"), f = i("jmash-single-image-upload"), k = i("el-input-number"), N = i("DeleteFilled"), _ = i("el-icon"), u = i("el-table"), p = i("el-button"), q = i("el-row");
|
|
174
159
|
return m(), P(q, null, {
|
|
175
|
-
default:
|
|
160
|
+
default: r(() => [
|
|
176
161
|
n(u, {
|
|
177
162
|
data: d.value,
|
|
178
163
|
border: "",
|
|
179
164
|
style: { width: "100%" }
|
|
180
165
|
}, {
|
|
181
|
-
default:
|
|
166
|
+
default: r(() => [
|
|
182
167
|
n(t, {
|
|
183
168
|
label: s.$t("goodsSpu.spuName"),
|
|
184
169
|
prop: "spuId",
|
|
185
170
|
"header-align": "center"
|
|
186
171
|
}, {
|
|
187
|
-
default:
|
|
172
|
+
default: r(({ row: a }) => [
|
|
188
173
|
n(l, {
|
|
189
174
|
modelValue: a.spuId,
|
|
190
175
|
"onUpdate:modelValue": (c) => a.spuId = c,
|
|
191
|
-
data:
|
|
176
|
+
data: U(V).goodsSpuBizDict.values,
|
|
192
177
|
filterable: "",
|
|
193
178
|
clearable: "",
|
|
194
179
|
placeholder: s.$t("goodsSpu.spuNameRequireds"),
|
|
195
180
|
class: "w-full",
|
|
196
|
-
onChange: (c) =>
|
|
181
|
+
onChange: (c) => v(a.spuId, a)
|
|
197
182
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder", "onChange"])
|
|
198
183
|
]),
|
|
199
184
|
_: 1
|
|
@@ -202,16 +187,16 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
202
187
|
label: s.$t("goodsSpu.specType"),
|
|
203
188
|
"header-align": "center"
|
|
204
189
|
}, {
|
|
205
|
-
default:
|
|
206
|
-
a.specType === h
|
|
190
|
+
default: r(({ row: a }) => [
|
|
191
|
+
a.specType === U(h).SPEC_TYPE_VALUES.UNIFIED_SPEC ? (m(), T("span", Z, " 统一规格 ")) : (m(), P(o, {
|
|
207
192
|
key: 1,
|
|
208
193
|
modelValue: a.skuId,
|
|
209
194
|
"onUpdate:modelValue": (c) => a.skuId = c,
|
|
210
195
|
placeholder: s.$t("goodsSpu.specTypeRequired"),
|
|
211
|
-
onChange: (c) =>
|
|
196
|
+
onChange: (c) => C(a.skuId)
|
|
212
197
|
}, {
|
|
213
|
-
default:
|
|
214
|
-
(m(!0),
|
|
198
|
+
default: r(() => [
|
|
199
|
+
(m(!0), T(Y, null, G(a.skuOptions, (c) => (m(), P(I, {
|
|
215
200
|
key: c.key,
|
|
216
201
|
label: c.value,
|
|
217
202
|
value: c.key
|
|
@@ -228,13 +213,13 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
228
213
|
width: "105",
|
|
229
214
|
"header-align": "center"
|
|
230
215
|
}, {
|
|
231
|
-
default:
|
|
216
|
+
default: r(({ row: a }) => [
|
|
232
217
|
n(f, {
|
|
233
218
|
"picture-url": a.picUrl,
|
|
234
|
-
|
|
219
|
+
onUploadFile: (c) => B(a, c),
|
|
235
220
|
width: 80,
|
|
236
221
|
type: "trans"
|
|
237
|
-
}, null, 8, ["picture-url", "
|
|
222
|
+
}, null, 8, ["picture-url", "onUploadFile"])
|
|
238
223
|
]),
|
|
239
224
|
_: 1
|
|
240
225
|
}, 8, ["label"]),
|
|
@@ -243,8 +228,8 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
243
228
|
prop: "salePrice",
|
|
244
229
|
"header-align": "center"
|
|
245
230
|
}, {
|
|
246
|
-
default:
|
|
247
|
-
n(
|
|
231
|
+
default: r(({ row: a }) => [
|
|
232
|
+
n(k, {
|
|
248
233
|
modelValue: a.salePrice,
|
|
249
234
|
"onUpdate:modelValue": (c) => a.salePrice = c,
|
|
250
235
|
precision: 2,
|
|
@@ -261,8 +246,8 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
261
246
|
prop: "saleNum",
|
|
262
247
|
"header-align": "center"
|
|
263
248
|
}, {
|
|
264
|
-
default:
|
|
265
|
-
n(
|
|
249
|
+
default: r(({ row: a }) => [
|
|
250
|
+
n(k, {
|
|
266
251
|
modelValue: a.saleNum,
|
|
267
252
|
"onUpdate:modelValue": (c) => a.saleNum = c,
|
|
268
253
|
placeholder: s.$t("goodsSpu.saleNumRequireds"),
|
|
@@ -279,19 +264,19 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
279
264
|
width: "60",
|
|
280
265
|
align: "center"
|
|
281
266
|
}, {
|
|
282
|
-
default:
|
|
283
|
-
a.$index !== 0 ? (m(), P(
|
|
267
|
+
default: r((a) => [
|
|
268
|
+
a.$index !== 0 ? (m(), P(_, {
|
|
284
269
|
key: 0,
|
|
285
|
-
onClick: (c) =>
|
|
270
|
+
onClick: (c) => O(a),
|
|
286
271
|
size: "18",
|
|
287
272
|
style: { cursor: "pointer", color: "inherit" },
|
|
288
273
|
class: "hover-blue"
|
|
289
274
|
}, {
|
|
290
|
-
default:
|
|
291
|
-
n(
|
|
275
|
+
default: r(() => [
|
|
276
|
+
n(N)
|
|
292
277
|
]),
|
|
293
278
|
_: 2
|
|
294
|
-
}, 1032, ["onClick"])) :
|
|
279
|
+
}, 1032, ["onClick"])) : M("", !0)
|
|
295
280
|
]),
|
|
296
281
|
_: 1
|
|
297
282
|
}, 8, ["label"])
|
|
@@ -299,12 +284,12 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
299
284
|
_: 1
|
|
300
285
|
}, 8, ["data"]),
|
|
301
286
|
n(p, {
|
|
302
|
-
icon:
|
|
287
|
+
icon: U(Q),
|
|
303
288
|
class: "addButton",
|
|
304
|
-
onClick:
|
|
289
|
+
onClick: j
|
|
305
290
|
}, {
|
|
306
|
-
default:
|
|
307
|
-
|
|
291
|
+
default: r(() => [
|
|
292
|
+
H(J(U(A)("common.add")), 1)
|
|
308
293
|
]),
|
|
309
294
|
_: 1
|
|
310
295
|
}, 8, ["icon"])
|
|
@@ -313,7 +298,7 @@ const w = { key: 0 }, ee = /* @__PURE__ */ j({
|
|
|
313
298
|
});
|
|
314
299
|
};
|
|
315
300
|
}
|
|
316
|
-
}),
|
|
301
|
+
}), oe = /* @__PURE__ */ X(x, [["__scopeId", "data-v-605dcad9"]]);
|
|
317
302
|
export {
|
|
318
|
-
|
|
303
|
+
oe as default
|
|
319
304
|
};
|