xyvcard-goods 0.0.9 → 0.0.11
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/dist/{approveFailIndex-DJf9bHab.mjs → approveFailIndex-B-VGnf1U.mjs} +1 -1
- package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-mXqZdtba.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-CiIyafoQ.mjs} +113 -107
- package/dist/{auditIndex-CCkGsSy2.mjs → auditIndex-tEq8uYdA.mjs} +1 -1
- package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-DHolmNaP.mjs → auditIndex.vue_vue_type_script_setup_true_lang-BW22LRCL.mjs} +118 -112
- package/dist/edit-Bk7YJzrm.mjs +556 -0
- package/dist/{index-vcmJ06-Y.mjs → index-C9LeLF51.mjs} +158 -149
- package/dist/index.mjs +3 -3
- package/dist/{info-CPZykxS1.mjs → info-lw-aEq4N.mjs} +1 -1
- package/dist/{saleIndex-CdAcvCzO.mjs → saleIndex-B7TBQOB6.mjs} +1 -1
- package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-CLzVH-ix.mjs → saleIndex.vue_vue_type_script_setup_true_lang-B6wKXUcV.mjs} +134 -147
- package/dist/{shelfIndex-ZHuhzU_h.mjs → shelfIndex-BfsIMQfD.mjs} +1 -1
- package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-CTv-j8Xe.mjs → shelfIndex.vue_vue_type_script_setup_true_lang-C6RfhqIl.mjs} +114 -108
- package/dist/{skuForm-BSlT4TYd.mjs → skuForm-DuMlHj7f.mjs} +11 -5
- package/dist/{skuTable-DYmQYXk3.mjs → skuTable-BlK2s902.mjs} +173 -159
- package/dist/style.css +1 -1
- package/dts/api/goods-spu/types.d.ts +1 -1
- package/dts/components/EnumRadio/index.vue.d.ts +4 -3
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +10 -18
- package/dts/components/ImageUpload.vue.d.ts +36 -0
- package/dts/views/goods/goods-spu/skuForm.vue.d.ts +1 -1
- package/package.json +17 -17
- package/dist/edit-D37yka6Z.mjs +0 -470
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type { PropType } from "vue";
|
|
2
2
|
import type { Entry } from "jmash-core";
|
|
3
|
+
import type { EntryBool } from "@/api/dict";
|
|
3
4
|
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
5
|
modelValue: PropType<string | boolean>;
|
|
5
6
|
data: {
|
|
6
|
-
type: PropType<Entry[]>;
|
|
7
|
+
type: PropType<EntryBool[] | Entry[]>;
|
|
7
8
|
default: () => void;
|
|
8
9
|
};
|
|
9
10
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
10
11
|
modelValue: PropType<string | boolean>;
|
|
11
12
|
data: {
|
|
12
|
-
type: PropType<Entry[]>;
|
|
13
|
+
type: PropType<EntryBool[] | Entry[]>;
|
|
13
14
|
default: () => void;
|
|
14
15
|
};
|
|
15
16
|
}>> & Readonly<{}>, {
|
|
16
|
-
data: Entry[];
|
|
17
|
+
data: EntryBool[] | Entry[];
|
|
17
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
19
|
export default _default;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: () => string;
|
|
5
|
+
};
|
|
2
6
|
listType: {
|
|
3
7
|
type: () => "text" | "picture" | "picture-card";
|
|
4
8
|
default: string;
|
|
@@ -7,15 +11,11 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
7
11
|
type: NumberConstructor;
|
|
8
12
|
default: number;
|
|
9
13
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: () => string;
|
|
13
18
|
};
|
|
14
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
-
filesResponse: (...args: any[]) => void;
|
|
16
|
-
uploadFileList: (...args: any[]) => void;
|
|
17
|
-
removeFile: (...args: any[]) => void;
|
|
18
|
-
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
19
19
|
listType: {
|
|
20
20
|
type: () => "text" | "picture" | "picture-card";
|
|
21
21
|
default: string;
|
|
@@ -24,17 +24,9 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
24
24
|
type: NumberConstructor;
|
|
25
25
|
default: number;
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
default: () => never[];
|
|
30
|
-
};
|
|
31
|
-
}>> & Readonly<{
|
|
32
|
-
onFilesResponse?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
onUploadFileList?: ((...args: any[]) => any) | undefined;
|
|
34
|
-
onRemoveFile?: ((...args: any[]) => any) | undefined;
|
|
35
|
-
}>, {
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
modelValue: string;
|
|
36
29
|
listType: "picture" | "text" | "picture-card";
|
|
37
30
|
limit: number;
|
|
38
|
-
pictureUrl: unknown[];
|
|
39
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
32
|
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: () => string;
|
|
5
|
+
};
|
|
6
|
+
listType: {
|
|
7
|
+
type: () => "text" | "picture" | "picture-card";
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
limit: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (...args: any[]) => void;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: () => string;
|
|
20
|
+
};
|
|
21
|
+
listType: {
|
|
22
|
+
type: () => "text" | "picture" | "picture-card";
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
limit: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
}>> & Readonly<{
|
|
30
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
listType: "picture" | "text" | "picture-card";
|
|
33
|
+
limit: number;
|
|
34
|
+
modelValue: string;
|
|
35
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
export default _default;
|
|
@@ -31,8 +31,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
|
|
|
31
31
|
onGetGoodsSku?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
onGetFormData?: ((...args: any[]) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
specType: string;
|
|
35
34
|
form: Record<string, any>;
|
|
35
|
+
specType: string;
|
|
36
36
|
isDisabled: boolean;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
38
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xyvcard-goods",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dts/index.d.ts",
|
|
@@ -8,19 +8,29 @@
|
|
|
8
8
|
"dist",
|
|
9
9
|
"dts"
|
|
10
10
|
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "vite",
|
|
13
|
+
"build": "vite build && pnpm build:dts",
|
|
14
|
+
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
15
|
+
"preview": "vite preview",
|
|
16
|
+
"build-only": "vite build",
|
|
17
|
+
"type-check": "vue-tsc --build --force",
|
|
18
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
19
|
+
"format": "prettier --write src/"
|
|
20
|
+
},
|
|
11
21
|
"peerDependencies": {
|
|
12
22
|
"axios": "^1.7.7",
|
|
13
23
|
"element-plus": "^2.8.7",
|
|
14
|
-
"jmash-core": "^0.0.
|
|
15
|
-
"jmash-dict": "^0.0.
|
|
16
|
-
"jmash-rbac": "^0.0.
|
|
24
|
+
"jmash-core": "^0.0.120",
|
|
25
|
+
"jmash-dict": "^0.0.47",
|
|
26
|
+
"jmash-rbac": "^0.0.43",
|
|
17
27
|
"pinia": "^2.2.4",
|
|
18
28
|
"vue": "^3.5.11",
|
|
19
29
|
"vue-i18n": "^9.14.1",
|
|
20
30
|
"vue-router": "^4.4.5",
|
|
21
|
-
"xyvcard-cms": "^0.0.26",
|
|
22
31
|
"xyvcard-emall": "^0.0.6",
|
|
23
|
-
"xyvcard-shop": "^0.0.16"
|
|
32
|
+
"xyvcard-shop": "^0.0.16",
|
|
33
|
+
"xyvcard-cms": "0.0.36"
|
|
24
34
|
},
|
|
25
35
|
"devDependencies": {
|
|
26
36
|
"@eslint/js": "^9.16.0",
|
|
@@ -51,15 +61,5 @@
|
|
|
51
61
|
"file-saver": "^2.0.5",
|
|
52
62
|
"nprogress": "^0.2.0",
|
|
53
63
|
"qs": "^6.12.0"
|
|
54
|
-
},
|
|
55
|
-
"scripts": {
|
|
56
|
-
"dev": "vite",
|
|
57
|
-
"build": "vite build && pnpm build:dts",
|
|
58
|
-
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
59
|
-
"preview": "vite preview",
|
|
60
|
-
"build-only": "vite build",
|
|
61
|
-
"type-check": "vue-tsc --build --force",
|
|
62
|
-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
63
|
-
"format": "prettier --write src/"
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
}
|
package/dist/edit-D37yka6Z.mjs
DELETED
|
@@ -1,470 +0,0 @@
|
|
|
1
|
-
import { defineComponent as G, ref as T, reactive as R, watch as z, resolveComponent as i, openBlock as v, createElementBlock as M, createElementVNode as f, createVNode as l, unref as s, withCtx as u, createBlock as O, createCommentVNode as H, createTextVNode as L } from "vue";
|
|
2
|
-
import { ElMessage as U } from "element-plus";
|
|
3
|
-
import { useRouter as W, useRoute as J } from "vue-router";
|
|
4
|
-
import { routerUtil as w } from "jmash-core";
|
|
5
|
-
import { useI18n as K } from "vue-i18n";
|
|
6
|
-
import { D as m, C as Q } from "./index-CKeHa-Cx.mjs";
|
|
7
|
-
import { goodsSpuApi as V } from "./index.mjs";
|
|
8
|
-
import { g as X } from "./index-BHmGYIuc.mjs";
|
|
9
|
-
import { WangEditor as Y } from "xyvcard-cms";
|
|
10
|
-
import Z from "./skuForm-BSlT4TYd.mjs";
|
|
11
|
-
const x = { class: "app-container" }, ee = { class: "search-container" }, le = { class: "image-card" }, ge = /* @__PURE__ */ G({
|
|
12
|
-
__name: "edit",
|
|
13
|
-
setup(oe) {
|
|
14
|
-
var _;
|
|
15
|
-
const { t: p } = K(), S = W(), g = J(), b = T();
|
|
16
|
-
m.shopInfoBizDict.useValues(), m.goodsCategoryDict.useValues();
|
|
17
|
-
let e = R({
|
|
18
|
-
requestId: Math.random() * 10 + "",
|
|
19
|
-
updateMask: "shopId,spuName,categoryId,spuCode,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
|
|
20
|
-
skuSpecValues: [],
|
|
21
|
-
freightType: m.freightTypeEnum.values[0].key,
|
|
22
|
-
freightAmount: 0,
|
|
23
|
-
shelf: m.shelfDict.values[0].key,
|
|
24
|
-
specType: m.specTypeEnum.values[0].key,
|
|
25
|
-
shopId: (_ = m.shopInfoBizDict.values[0]) == null ? void 0 : _.key
|
|
26
|
-
});
|
|
27
|
-
const E = (t, o, n) => {
|
|
28
|
-
var r;
|
|
29
|
-
const d = (r = e.picUrls) == null ? void 0 : r.split(",").filter(Boolean);
|
|
30
|
-
if (d != null && d.length) {
|
|
31
|
-
if ((d == null ? void 0 : d.length) < 3)
|
|
32
|
-
return n(new Error(p("goodsSpu.imageListsError")));
|
|
33
|
-
n();
|
|
34
|
-
} else return n(new Error(p("goodsSpu.picUrlsRequired")));
|
|
35
|
-
}, k = R({
|
|
36
|
-
shopId: [
|
|
37
|
-
{
|
|
38
|
-
required: !0,
|
|
39
|
-
message: p("goodsSpu.shopIdRequired"),
|
|
40
|
-
trigger: "change"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
spuName: [
|
|
44
|
-
{
|
|
45
|
-
required: !0,
|
|
46
|
-
message: p("goodsSpu.spuNameRequired"),
|
|
47
|
-
trigger: "blur"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
categoryId: [
|
|
51
|
-
{
|
|
52
|
-
required: !0,
|
|
53
|
-
message: p("goodsSpu.categoryIdRequired"),
|
|
54
|
-
trigger: "change"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
spuCode: [
|
|
58
|
-
{
|
|
59
|
-
required: !0,
|
|
60
|
-
message: p("goodsSpu.spuCodeRequired"),
|
|
61
|
-
trigger: "change"
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
freightType: [
|
|
65
|
-
{
|
|
66
|
-
required: !0,
|
|
67
|
-
message: p("goodsSpu.freightTypeRequired"),
|
|
68
|
-
trigger: "change"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
freightAmount: [
|
|
72
|
-
{
|
|
73
|
-
required: !0,
|
|
74
|
-
message: p("goodsSpu.freightAmountRequired"),
|
|
75
|
-
trigger: "blur"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
picUrls: [
|
|
79
|
-
{
|
|
80
|
-
validator: E,
|
|
81
|
-
trigger: "change"
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
shelf: [
|
|
85
|
-
{
|
|
86
|
-
required: !0,
|
|
87
|
-
message: p("goodsSpu.shelfRequired"),
|
|
88
|
-
trigger: "change"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
specType: [
|
|
92
|
-
{
|
|
93
|
-
required: !0,
|
|
94
|
-
message: p("goodsSpu.specTypeRequired"),
|
|
95
|
-
trigger: "change"
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
}), I = T(!1);
|
|
99
|
-
z(
|
|
100
|
-
() => e.shopId,
|
|
101
|
-
(t) => t,
|
|
102
|
-
{
|
|
103
|
-
deep: !0,
|
|
104
|
-
immediate: !0
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
function C(t) {
|
|
108
|
-
e.skuSpecValues.push(t), e.skuSpecValues = e.skuSpecValues.slice(-1);
|
|
109
|
-
}
|
|
110
|
-
function $(t) {
|
|
111
|
-
t.forEach((o) => {
|
|
112
|
-
var n;
|
|
113
|
-
e.specId = (n = o.specValues) == null ? void 0 : n.map((d) => d.specId), e.skuSpecValues.push(o);
|
|
114
|
-
}), e.skuSpecValues = e.skuSpecValues.slice(-t.length);
|
|
115
|
-
}
|
|
116
|
-
g.query.spuId && V.findById({ spuId: g.query.spuId }).then(({ data: t }) => {
|
|
117
|
-
Object.assign(e, t), I.value = !0, X.findById({ spuId: g.query.spuId }).then(({ data: o }) => {
|
|
118
|
-
e.ensureIds = o.ensures;
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
const N = async () => {
|
|
122
|
-
var t;
|
|
123
|
-
await ((t = b.value) == null ? void 0 : t.validate((o) => {
|
|
124
|
-
o && (g.query.spuId ? V.update(e).then((n) => {
|
|
125
|
-
n.status === 200 && (U({
|
|
126
|
-
message: p("common.submitSuccess"),
|
|
127
|
-
type: "success"
|
|
128
|
-
}), w.closeTagView(g.fullPath, S, !1));
|
|
129
|
-
}) : V.create(e).then((n) => {
|
|
130
|
-
n.status === 200 && (U({
|
|
131
|
-
message: p("common.submitSuccess"),
|
|
132
|
-
type: "success"
|
|
133
|
-
}), w.closeTagView(g.fullPath, S, !1));
|
|
134
|
-
}));
|
|
135
|
-
}));
|
|
136
|
-
};
|
|
137
|
-
function D(t) {
|
|
138
|
-
t === "FREIGHT_FREE" && (e.freightAmount = 0);
|
|
139
|
-
}
|
|
140
|
-
return (t, o) => {
|
|
141
|
-
const n = i("jmash-select"), d = i("el-form-item"), r = i("el-col"), c = i("el-input"), A = i("el-tree-select"), h = i("jmash-enum-radio"), q = i("el-input-number"), F = i("jmash-multi-image-upload"), j = i("jmash-dict-checkbox"), y = i("el-row"), B = i("el-button"), P = i("el-form");
|
|
142
|
-
return v(), M("div", x, [
|
|
143
|
-
f("div", ee, [
|
|
144
|
-
l(P, {
|
|
145
|
-
ref_key: "goodsSpuFormRef",
|
|
146
|
-
ref: b,
|
|
147
|
-
model: s(e),
|
|
148
|
-
"label-width": "120px",
|
|
149
|
-
rules: k
|
|
150
|
-
}, {
|
|
151
|
-
default: u(() => [
|
|
152
|
-
o[15] || (o[15] = f("div", { class: "title-content" }, "基本信息", -1)),
|
|
153
|
-
l(y, null, {
|
|
154
|
-
default: u(() => [
|
|
155
|
-
l(r, { span: 12 }, {
|
|
156
|
-
default: u(() => [
|
|
157
|
-
l(d, {
|
|
158
|
-
label: t.$t("goodsSpu.shopId"),
|
|
159
|
-
prop: "shopId"
|
|
160
|
-
}, {
|
|
161
|
-
default: u(() => [
|
|
162
|
-
l(n, {
|
|
163
|
-
modelValue: s(e).shopId,
|
|
164
|
-
"onUpdate:modelValue": o[0] || (o[0] = (a) => s(e).shopId = a),
|
|
165
|
-
placeholder: t.$t("goodsSpu.shopIdRequired"),
|
|
166
|
-
data: s(m).shopInfoBizDict.values,
|
|
167
|
-
filterable: "",
|
|
168
|
-
class: "w-full"
|
|
169
|
-
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
}, 8, ["label"])
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
}),
|
|
176
|
-
l(r, { span: 12 }, {
|
|
177
|
-
default: u(() => [
|
|
178
|
-
l(d, {
|
|
179
|
-
label: t.$t("goodsSpu.spuName"),
|
|
180
|
-
prop: "spuName"
|
|
181
|
-
}, {
|
|
182
|
-
default: u(() => [
|
|
183
|
-
l(c, {
|
|
184
|
-
modelValue: s(e).spuName,
|
|
185
|
-
"onUpdate:modelValue": o[1] || (o[1] = (a) => s(e).spuName = a),
|
|
186
|
-
placeholder: t.$t("goodsSpu.spuNameRequired"),
|
|
187
|
-
maxlength: "60",
|
|
188
|
-
"show-word-limit": "",
|
|
189
|
-
clearable: ""
|
|
190
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
191
|
-
]),
|
|
192
|
-
_: 1
|
|
193
|
-
}, 8, ["label"])
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
}),
|
|
197
|
-
l(r, { span: 12 }, {
|
|
198
|
-
default: u(() => [
|
|
199
|
-
l(d, {
|
|
200
|
-
label: t.$t("goodsSpu.categoryId"),
|
|
201
|
-
prop: "categoryId"
|
|
202
|
-
}, {
|
|
203
|
-
default: u(() => [
|
|
204
|
-
l(A, {
|
|
205
|
-
modelValue: s(e).categoryId,
|
|
206
|
-
"onUpdate:modelValue": o[2] || (o[2] = (a) => s(e).categoryId = a),
|
|
207
|
-
data: s(m).goodsCategoryDict.values,
|
|
208
|
-
filterable: "",
|
|
209
|
-
clearable: "",
|
|
210
|
-
"check-strictly": "",
|
|
211
|
-
"render-after-expand": !1,
|
|
212
|
-
placeholder: t.$t("goodsSpu.categoryIdRequired"),
|
|
213
|
-
class: "w-full"
|
|
214
|
-
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
215
|
-
]),
|
|
216
|
-
_: 1
|
|
217
|
-
}, 8, ["label"])
|
|
218
|
-
]),
|
|
219
|
-
_: 1
|
|
220
|
-
}),
|
|
221
|
-
l(r, { span: 12 }, {
|
|
222
|
-
default: u(() => [
|
|
223
|
-
l(d, {
|
|
224
|
-
label: t.$t("goodsSpu.spuCode"),
|
|
225
|
-
prop: "spuCode"
|
|
226
|
-
}, {
|
|
227
|
-
default: u(() => [
|
|
228
|
-
l(c, {
|
|
229
|
-
modelValue: s(e).spuCode,
|
|
230
|
-
"onUpdate:modelValue": o[3] || (o[3] = (a) => s(e).spuCode = a),
|
|
231
|
-
placeholder: t.$t("goodsSpu.spuCodeRequired"),
|
|
232
|
-
maxlength: "15",
|
|
233
|
-
"show-word-limit": "",
|
|
234
|
-
clearable: ""
|
|
235
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
}, 8, ["label"])
|
|
239
|
-
]),
|
|
240
|
-
_: 1
|
|
241
|
-
}),
|
|
242
|
-
l(r, { span: 12 }, {
|
|
243
|
-
default: u(() => [
|
|
244
|
-
l(d, {
|
|
245
|
-
label: t.$t("goodsSpu.freightType"),
|
|
246
|
-
prop: "freightType"
|
|
247
|
-
}, {
|
|
248
|
-
default: u(() => [
|
|
249
|
-
l(h, {
|
|
250
|
-
modelValue: s(e).freightType,
|
|
251
|
-
"onUpdate:modelValue": o[4] || (o[4] = (a) => s(e).freightType = a),
|
|
252
|
-
data: s(m).freightTypeEnum.values,
|
|
253
|
-
onChange: D
|
|
254
|
-
}, null, 8, ["modelValue", "data"])
|
|
255
|
-
]),
|
|
256
|
-
_: 1
|
|
257
|
-
}, 8, ["label"])
|
|
258
|
-
]),
|
|
259
|
-
_: 1
|
|
260
|
-
}),
|
|
261
|
-
l(r, { span: 12 }, {
|
|
262
|
-
default: u(() => [
|
|
263
|
-
l(d, {
|
|
264
|
-
label: t.$t("goodsSpu.freightAmount"),
|
|
265
|
-
prop: "freightAmount"
|
|
266
|
-
}, {
|
|
267
|
-
default: u(() => [
|
|
268
|
-
l(q, {
|
|
269
|
-
modelValue: s(e).freightAmount,
|
|
270
|
-
"onUpdate:modelValue": o[5] || (o[5] = (a) => s(e).freightAmount = a),
|
|
271
|
-
readonly: s(e).freightType === "FREIGHT_FREE",
|
|
272
|
-
precision: 2,
|
|
273
|
-
step: 0.1,
|
|
274
|
-
controls: !1,
|
|
275
|
-
placeholder: t.$t("goodsSpu.freightAmountRequired"),
|
|
276
|
-
class: "w-full"
|
|
277
|
-
}, null, 8, ["modelValue", "readonly", "placeholder"])
|
|
278
|
-
]),
|
|
279
|
-
_: 1
|
|
280
|
-
}, 8, ["label"])
|
|
281
|
-
]),
|
|
282
|
-
_: 1
|
|
283
|
-
}),
|
|
284
|
-
l(r, { span: 24 }, {
|
|
285
|
-
default: u(() => [
|
|
286
|
-
l(d, {
|
|
287
|
-
label: t.$t("goodsSpu.picUrls"),
|
|
288
|
-
prop: "picUrls"
|
|
289
|
-
}, {
|
|
290
|
-
default: u(() => [
|
|
291
|
-
f("div", le, [
|
|
292
|
-
l(F, {
|
|
293
|
-
modelValue: s(e).picUrls,
|
|
294
|
-
"onUpdate:modelValue": o[6] || (o[6] = (a) => s(e).picUrls = a),
|
|
295
|
-
limit: 6,
|
|
296
|
-
"list-type": "picture-card"
|
|
297
|
-
}, null, 8, ["modelValue"]),
|
|
298
|
-
o[13] || (o[13] = f("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传3张 ", -1))
|
|
299
|
-
])
|
|
300
|
-
]),
|
|
301
|
-
_: 1
|
|
302
|
-
}, 8, ["label"])
|
|
303
|
-
]),
|
|
304
|
-
_: 1
|
|
305
|
-
}),
|
|
306
|
-
l(r, { span: 12 }, {
|
|
307
|
-
default: u(() => [
|
|
308
|
-
l(d, {
|
|
309
|
-
label: t.$t("goodsSpu.shelf"),
|
|
310
|
-
prop: "shelf"
|
|
311
|
-
}, {
|
|
312
|
-
default: u(() => [
|
|
313
|
-
l(h, {
|
|
314
|
-
modelValue: s(e).shelf,
|
|
315
|
-
"onUpdate:modelValue": o[7] || (o[7] = (a) => s(e).shelf = a),
|
|
316
|
-
data: s(m).shelfDict.values
|
|
317
|
-
}, null, 8, ["modelValue", "data"])
|
|
318
|
-
]),
|
|
319
|
-
_: 1
|
|
320
|
-
}, 8, ["label"])
|
|
321
|
-
]),
|
|
322
|
-
_: 1
|
|
323
|
-
}),
|
|
324
|
-
l(r, { span: 12 }, {
|
|
325
|
-
default: u(() => [
|
|
326
|
-
l(d, {
|
|
327
|
-
label: t.$t("goodsSpu.saleNum"),
|
|
328
|
-
prop: "saleNum"
|
|
329
|
-
}, {
|
|
330
|
-
default: u(() => [
|
|
331
|
-
l(q, {
|
|
332
|
-
modelValue: s(e).saleNum,
|
|
333
|
-
"onUpdate:modelValue": o[8] || (o[8] = (a) => s(e).saleNum = a),
|
|
334
|
-
placeholder: t.$t("goodsSpu.saleNumRequired"),
|
|
335
|
-
class: "w-full",
|
|
336
|
-
min: 0,
|
|
337
|
-
controls: !1,
|
|
338
|
-
precision: 0
|
|
339
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
340
|
-
]),
|
|
341
|
-
_: 1
|
|
342
|
-
}, 8, ["label"])
|
|
343
|
-
]),
|
|
344
|
-
_: 1
|
|
345
|
-
}),
|
|
346
|
-
l(r, { span: 24 }, {
|
|
347
|
-
default: u(() => [
|
|
348
|
-
l(d, {
|
|
349
|
-
label: t.$t("goodsSpu.sellPoint"),
|
|
350
|
-
prop: "sellPoint"
|
|
351
|
-
}, {
|
|
352
|
-
default: u(() => [
|
|
353
|
-
l(c, {
|
|
354
|
-
modelValue: s(e).sellPoint,
|
|
355
|
-
"onUpdate:modelValue": o[9] || (o[9] = (a) => s(e).sellPoint = a),
|
|
356
|
-
placeholder: t.$t("goodsSpu.sellPointRequired"),
|
|
357
|
-
maxlength: "250",
|
|
358
|
-
"show-word-limit": "",
|
|
359
|
-
clearable: "",
|
|
360
|
-
rows: 4,
|
|
361
|
-
type: "textarea"
|
|
362
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
363
|
-
]),
|
|
364
|
-
_: 1
|
|
365
|
-
}, 8, ["label"])
|
|
366
|
-
]),
|
|
367
|
-
_: 1
|
|
368
|
-
}),
|
|
369
|
-
l(r, { span: 24 }, {
|
|
370
|
-
default: u(() => [
|
|
371
|
-
l(d, {
|
|
372
|
-
label: t.$t("goodsSpu.ensureIds"),
|
|
373
|
-
prop: "ensureIds"
|
|
374
|
-
}, {
|
|
375
|
-
default: u(() => [
|
|
376
|
-
l(j, {
|
|
377
|
-
modelValue: s(e).ensureIds,
|
|
378
|
-
"onUpdate:modelValue": o[10] || (o[10] = (a) => s(e).ensureIds = a),
|
|
379
|
-
"type-code": s(Q).DICT_GOODS_ENSURE
|
|
380
|
-
}, null, 8, ["modelValue", "type-code"])
|
|
381
|
-
]),
|
|
382
|
-
_: 1
|
|
383
|
-
}, 8, ["label"])
|
|
384
|
-
]),
|
|
385
|
-
_: 1
|
|
386
|
-
})
|
|
387
|
-
]),
|
|
388
|
-
_: 1
|
|
389
|
-
}),
|
|
390
|
-
o[16] || (o[16] = f("div", { class: "title-content" }, "商品规格", -1)),
|
|
391
|
-
l(y, null, {
|
|
392
|
-
default: u(() => [
|
|
393
|
-
l(r, { span: 24 }, {
|
|
394
|
-
default: u(() => [
|
|
395
|
-
l(d, {
|
|
396
|
-
label: t.$t("goodsSpu.specType"),
|
|
397
|
-
prop: "specType"
|
|
398
|
-
}, {
|
|
399
|
-
default: u(() => [
|
|
400
|
-
l(h, {
|
|
401
|
-
modelValue: s(e).specType,
|
|
402
|
-
"onUpdate:modelValue": o[11] || (o[11] = (a) => s(e).specType = a),
|
|
403
|
-
data: s(m).specTypeEnum.values
|
|
404
|
-
}, null, 8, ["modelValue", "data"])
|
|
405
|
-
]),
|
|
406
|
-
_: 1
|
|
407
|
-
}, 8, ["label"])
|
|
408
|
-
]),
|
|
409
|
-
_: 1
|
|
410
|
-
}),
|
|
411
|
-
!s(g).query.spuId || I.value ? (v(), O(Z, {
|
|
412
|
-
key: 0,
|
|
413
|
-
"spec-type": s(e).specType,
|
|
414
|
-
form: s(e),
|
|
415
|
-
isDisabled: !s(e).shopId,
|
|
416
|
-
onGetGoodsSku: C,
|
|
417
|
-
onGetFormData: $
|
|
418
|
-
}, null, 8, ["spec-type", "form", "isDisabled"])) : H("", !0)
|
|
419
|
-
]),
|
|
420
|
-
_: 1
|
|
421
|
-
}),
|
|
422
|
-
o[17] || (o[17] = f("div", { class: "title-content" }, "商品详情", -1)),
|
|
423
|
-
l(y, null, {
|
|
424
|
-
default: u(() => [
|
|
425
|
-
l(r, { span: 24 }, {
|
|
426
|
-
default: u(() => [
|
|
427
|
-
l(d, {
|
|
428
|
-
label: t.$t("goodsSpu.description"),
|
|
429
|
-
prop: "description"
|
|
430
|
-
}, {
|
|
431
|
-
default: u(() => [
|
|
432
|
-
l(s(Y), {
|
|
433
|
-
modelValue: s(e).description,
|
|
434
|
-
"onUpdate:modelValue": o[12] || (o[12] = (a) => s(e).description = a),
|
|
435
|
-
style: { width: "100%" }
|
|
436
|
-
}, null, 8, ["modelValue"])
|
|
437
|
-
]),
|
|
438
|
-
_: 1
|
|
439
|
-
}, 8, ["label"])
|
|
440
|
-
]),
|
|
441
|
-
_: 1
|
|
442
|
-
}),
|
|
443
|
-
l(d, null, {
|
|
444
|
-
default: u(() => [
|
|
445
|
-
l(B, {
|
|
446
|
-
type: "primary",
|
|
447
|
-
onClick: N
|
|
448
|
-
}, {
|
|
449
|
-
default: u(() => o[14] || (o[14] = [
|
|
450
|
-
L("保存")
|
|
451
|
-
])),
|
|
452
|
-
_: 1
|
|
453
|
-
})
|
|
454
|
-
]),
|
|
455
|
-
_: 1
|
|
456
|
-
})
|
|
457
|
-
]),
|
|
458
|
-
_: 1
|
|
459
|
-
})
|
|
460
|
-
]),
|
|
461
|
-
_: 1
|
|
462
|
-
}, 8, ["model", "rules"])
|
|
463
|
-
])
|
|
464
|
-
]);
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
|
-
export {
|
|
469
|
-
ge as default
|
|
470
|
-
};
|