xyvcard-goods 0.0.13 → 0.0.14
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/{edit-h0S6bHag.mjs → edit-BlnYCDI4.mjs} +34 -32
- package/dist/edit-BsaWxeqY.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs +236 -0
- package/dist/{goodsList-BtEY_SNz.mjs → goodsList-Dvsh76f7.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-BGajxpZV.mjs → goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs} +98 -96
- package/dist/{index-BQz1LNIa.mjs → index-BF7PDcd4.mjs} +13 -13
- package/dist/index-Ct0LRSwV.mjs +333 -0
- package/dist/index-DZJVaUh3.mjs +248 -0
- package/dist/index.mjs +2 -2
- package/dist/{info-lDMLR1ZW.mjs → info-wrevnU3P.mjs} +19 -18
- package/dist/{skuForm-ChaaXJgn.mjs → skuForm-B7yYjwdJ.mjs} +23 -21
- package/dist/{skuTable-BBiyXctZ.mjs → skuTable-YDBH_oRN.mjs} +18 -17
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +2 -2
- package/dts/api/goods-category/index.d.ts +23 -0
- package/dts/api/goods-category/types.d.ts +68 -0
- package/dts/api/index.d.ts +3 -2
- package/dts/constant.d.ts +10 -0
- package/dts/views/goods/goods-category/edit.vue.d.ts +22 -0
- package/package.json +12 -12
- package/dist/index-CKeHa-Cx.mjs +0 -139
- package/dts/components/EnumRadio/index.vue.d.ts +0 -18
- package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +0 -40
- package/dts/components/GoodsUpload/MultiUpload.vue.d.ts +0 -24
- package/dts/components/GoodsUpload/index.vue.d.ts +0 -18
- package/dts/views/goods/goods-spu/auditIndex.vue.d.ts +0 -2
- package/dts/views/goods/goods-spu/saleIndex.vue.d.ts +0 -2
- package/dts/views/goods/goods-spu/shelfIndex.vue.d.ts +0 -2
- /package/dts/views/goods/{goods-spu/approveFailIndex.vue.d.ts → goods-category/index.vue.d.ts} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as j, ref as g, watchEffect as O, computed as W, resolveComponent as p, openBlock as
|
|
1
|
+
import { defineComponent as j, ref as g, watchEffect as O, computed as W, resolveComponent as p, openBlock as D, createElementBlock as L, Fragment as Z, createVNode as e, withCtx as u, createElementVNode as y, reactive as A, watch as J, unref as t, createBlock as K, createCommentVNode as Q, createTextVNode as X } from "vue";
|
|
2
2
|
import { ElMessageBox as Y, ElMessage as F } from "element-plus";
|
|
3
3
|
import { fileApi as k, routerUtil as P } from "jmash-core";
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { _ as x } from "./skuTable-
|
|
4
|
+
import { useI18n as G } from "vue-i18n";
|
|
5
|
+
import { _ as x } from "./skuTable-YDBH_oRN.mjs";
|
|
6
6
|
import { useRouter as ee, useRoute as le } from "vue-router";
|
|
7
|
-
import { D as m, C as oe } from "./index-
|
|
8
|
-
import { goodsSpuApi as
|
|
7
|
+
import { D as m, C as oe } from "./index-DZJVaUh3.mjs";
|
|
8
|
+
import { goodsSpuApi as B } from "./index.mjs";
|
|
9
9
|
import { g as te } from "./index-BHmGYIuc.mjs";
|
|
10
10
|
import { WangEditor as se } from "xyvcard-cms";
|
|
11
|
-
import ae from "./skuForm-
|
|
11
|
+
import ae from "./skuForm-B7yYjwdJ.mjs";
|
|
12
12
|
const ue = ["src"], re = /* @__PURE__ */ j({
|
|
13
13
|
__name: "ImageUpload",
|
|
14
14
|
props: {
|
|
@@ -27,14 +27,14 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
27
27
|
},
|
|
28
28
|
emits: ["update:modelValue"],
|
|
29
29
|
setup(b, { emit: i }) {
|
|
30
|
-
const { t: h } =
|
|
30
|
+
const { t: h } = G(), c = g(k.uploadUrl()), v = g(k.authHeader()), l = g(), V = g(!1), T = g(""), q = b, f = g([]);
|
|
31
31
|
O(() => {
|
|
32
32
|
f.value = q.modelValue.split(",").filter(Boolean);
|
|
33
33
|
});
|
|
34
34
|
const U = W(
|
|
35
35
|
() => f.value.map((a) => ({ url: k.imageUrl(a), status: "success", uid: a }))
|
|
36
36
|
), C = (a) => {
|
|
37
|
-
T.value = a.url,
|
|
37
|
+
T.value = a.url, V.value = !0;
|
|
38
38
|
}, $ = (a) => {
|
|
39
39
|
const r = a.size / 1024 / 1024 < 2;
|
|
40
40
|
["image/jpeg", "image/png", "image/gif", "image/jpg"].includes(a.type) && !r && Y.confirm(h("file.imageLtRequired"), h("file.warning"), {
|
|
@@ -51,8 +51,8 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
51
51
|
o("update:modelValue", f.value.join(","));
|
|
52
52
|
};
|
|
53
53
|
return (a, r) => {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
54
|
+
const _ = p("Plus"), w = p("el-icon"), S = p("el-upload"), E = p("el-dialog");
|
|
55
|
+
return D(), L(Z, null, [
|
|
56
56
|
e(S, {
|
|
57
57
|
ref_key: "uploadImageRef",
|
|
58
58
|
ref: l,
|
|
@@ -70,7 +70,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
70
70
|
default: u(() => [
|
|
71
71
|
e(w, null, {
|
|
72
72
|
default: u(() => [
|
|
73
|
-
e(
|
|
73
|
+
e(_)
|
|
74
74
|
]),
|
|
75
75
|
_: 1
|
|
76
76
|
})
|
|
@@ -78,8 +78,8 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
78
78
|
_: 1
|
|
79
79
|
}, 8, ["file-list", "action", "headers", "limit", "list-type"]),
|
|
80
80
|
e(E, {
|
|
81
|
-
modelValue:
|
|
82
|
-
"onUpdate:modelValue": r[1] || (r[1] = (I) =>
|
|
81
|
+
modelValue: V.value,
|
|
82
|
+
"onUpdate:modelValue": r[1] || (r[1] = (I) => V.value = I),
|
|
83
83
|
fullscreen: !0
|
|
84
84
|
}, {
|
|
85
85
|
default: u(() => [
|
|
@@ -93,12 +93,12 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
93
93
|
], 64);
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
}), de = /* @__PURE__ */ x(re, [["__scopeId", "data-v-
|
|
96
|
+
}), de = /* @__PURE__ */ x(re, [["__scopeId", "data-v-f10f6f7e"]]), ne = { class: "app-container" }, pe = { class: "search-container" }, ie = { class: "image-card" }, ve = /* @__PURE__ */ j({
|
|
97
97
|
__name: "edit",
|
|
98
98
|
setup(b) {
|
|
99
99
|
var R;
|
|
100
|
-
const { t: i } =
|
|
101
|
-
m.shopInfoBizDict.useValues(), m.
|
|
100
|
+
const { t: i } = G(), h = ee(), c = le(), v = g();
|
|
101
|
+
m.shopInfoBizDict.useValues(), m.goodsCategoryListBizLayDict.useValues();
|
|
102
102
|
let l = A({
|
|
103
103
|
requestId: Math.random() * 10 + "",
|
|
104
104
|
updateMask: "shopId,spuName,categoryId,spuCode,freightType,freightAmount,picUrls,shelf,saleNum,sellPoint,specType,description",
|
|
@@ -109,7 +109,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
109
109
|
specType: m.specTypeEnum.values[0].key,
|
|
110
110
|
shopId: (R = m.shopInfoBizDict.values[0]) == null ? void 0 : R.key
|
|
111
111
|
});
|
|
112
|
-
const
|
|
112
|
+
const V = (s, o, n) => {
|
|
113
113
|
var r;
|
|
114
114
|
const a = (r = l.picUrls) == null ? void 0 : r.split(",").filter(Boolean);
|
|
115
115
|
if (a != null && a.length) {
|
|
@@ -162,7 +162,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
162
162
|
],
|
|
163
163
|
picUrls: [
|
|
164
164
|
{
|
|
165
|
-
validator:
|
|
165
|
+
validator: V,
|
|
166
166
|
trigger: "change"
|
|
167
167
|
}
|
|
168
168
|
],
|
|
@@ -198,7 +198,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
198
198
|
l.specId = (n = o.specValues) == null ? void 0 : n.map((a) => a.specId), l.skuSpecValues.push(o);
|
|
199
199
|
}), l.skuSpecValues = l.skuSpecValues.slice(-s.length);
|
|
200
200
|
}
|
|
201
|
-
c.query.spuId &&
|
|
201
|
+
c.query.spuId && B.findById({ spuId: c.query.spuId }).then(({ data: s }) => {
|
|
202
202
|
Object.assign(l, s), q.value = !0, te.findById({ spuId: c.query.spuId }).then(({ data: o }) => {
|
|
203
203
|
l.ensureIds = o.ensures;
|
|
204
204
|
});
|
|
@@ -206,12 +206,12 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
206
206
|
const C = async () => {
|
|
207
207
|
var s;
|
|
208
208
|
await ((s = v.value) == null ? void 0 : s.validate((o) => {
|
|
209
|
-
o && (c.query.spuId ?
|
|
209
|
+
o && (c.query.spuId ? B.update(l).then((n) => {
|
|
210
210
|
n.status === 200 && (F({
|
|
211
211
|
message: i("common.submitSuccess"),
|
|
212
212
|
type: "success"
|
|
213
213
|
}), P.closeTagView(c.fullPath, h, !1));
|
|
214
|
-
}) :
|
|
214
|
+
}) : B.create(l).then((n) => {
|
|
215
215
|
n.status === 200 && (F({
|
|
216
216
|
message: i("common.submitSuccess"),
|
|
217
217
|
type: "success"
|
|
@@ -223,8 +223,8 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
223
223
|
s === "FREIGHT_FREE" && (l.freightAmount = 0);
|
|
224
224
|
}
|
|
225
225
|
return (s, o) => {
|
|
226
|
-
const n = p("jmash-select"), a = p("el-form-item"), r = p("el-col"),
|
|
227
|
-
return
|
|
226
|
+
const n = p("jmash-select"), a = p("el-form-item"), r = p("el-col"), _ = p("el-input"), w = p("el-tree-select"), S = p("jmash-enum-radio"), E = p("el-input-number"), I = de, z = p("jmash-dict-checkbox"), N = p("el-row"), M = p("el-button"), H = p("el-form");
|
|
227
|
+
return D(), L("div", ne, [
|
|
228
228
|
y("div", pe, [
|
|
229
229
|
e(H, {
|
|
230
230
|
ref_key: "goodsSpuFormRef",
|
|
@@ -265,7 +265,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
265
265
|
prop: "spuName"
|
|
266
266
|
}, {
|
|
267
267
|
default: u(() => [
|
|
268
|
-
e(
|
|
268
|
+
e(_, {
|
|
269
269
|
modelValue: t(l).spuName,
|
|
270
270
|
"onUpdate:modelValue": o[1] || (o[1] = (d) => t(l).spuName = d),
|
|
271
271
|
placeholder: s.$t("goodsSpu.spuNameRequired"),
|
|
@@ -289,7 +289,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
289
289
|
e(w, {
|
|
290
290
|
modelValue: t(l).categoryId,
|
|
291
291
|
"onUpdate:modelValue": o[2] || (o[2] = (d) => t(l).categoryId = d),
|
|
292
|
-
data: t(m).
|
|
292
|
+
data: t(m).goodsCategoryListBizLayDict.values,
|
|
293
293
|
filterable: "",
|
|
294
294
|
clearable: "",
|
|
295
295
|
"check-strictly": "",
|
|
@@ -310,7 +310,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
310
310
|
prop: "spuCode"
|
|
311
311
|
}, {
|
|
312
312
|
default: u(() => [
|
|
313
|
-
e(
|
|
313
|
+
e(_, {
|
|
314
314
|
modelValue: t(l).spuCode,
|
|
315
315
|
"onUpdate:modelValue": o[3] || (o[3] = (d) => t(l).spuCode = d),
|
|
316
316
|
placeholder: s.$t("goodsSpu.spuCodeRequired"),
|
|
@@ -436,7 +436,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
436
436
|
prop: "sellPoint"
|
|
437
437
|
}, {
|
|
438
438
|
default: u(() => [
|
|
439
|
-
e(
|
|
439
|
+
e(_, {
|
|
440
440
|
modelValue: t(l).sellPoint,
|
|
441
441
|
"onUpdate:modelValue": o[9] || (o[9] = (d) => t(l).sellPoint = d),
|
|
442
442
|
placeholder: s.$t("goodsSpu.sellPointRequired"),
|
|
@@ -459,7 +459,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
459
459
|
prop: "ensureIds"
|
|
460
460
|
}, {
|
|
461
461
|
default: u(() => [
|
|
462
|
-
e(
|
|
462
|
+
e(z, {
|
|
463
463
|
modelValue: t(l).ensureIds,
|
|
464
464
|
"onUpdate:modelValue": o[10] || (o[10] = (d) => t(l).ensureIds = d),
|
|
465
465
|
"type-code": t(oe).DICT_GOODS_ENSURE
|
|
@@ -494,7 +494,7 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
494
494
|
]),
|
|
495
495
|
_: 1
|
|
496
496
|
}),
|
|
497
|
-
!t(c).query.spuId || q.value ? (
|
|
497
|
+
!t(c).query.spuId || q.value ? (D(), K(ae, {
|
|
498
498
|
key: 0,
|
|
499
499
|
"spec-type": t(l).specType,
|
|
500
500
|
form: t(l),
|
|
@@ -528,14 +528,15 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
528
528
|
}),
|
|
529
529
|
e(a, null, {
|
|
530
530
|
default: u(() => [
|
|
531
|
-
e(
|
|
531
|
+
e(M, {
|
|
532
532
|
type: "primary",
|
|
533
533
|
onClick: C
|
|
534
534
|
}, {
|
|
535
535
|
default: u(() => o[14] || (o[14] = [
|
|
536
536
|
X("保存")
|
|
537
537
|
])),
|
|
538
|
-
_: 1
|
|
538
|
+
_: 1,
|
|
539
|
+
__: [14]
|
|
539
540
|
})
|
|
540
541
|
]),
|
|
541
542
|
_: 1
|
|
@@ -544,7 +545,8 @@ const ue = ["src"], re = /* @__PURE__ */ j({
|
|
|
544
545
|
_: 1
|
|
545
546
|
})
|
|
546
547
|
]),
|
|
547
|
-
_: 1
|
|
548
|
+
_: 1,
|
|
549
|
+
__: [15, 16, 17]
|
|
548
550
|
}, 8, ["model", "rules"])
|
|
549
551
|
])
|
|
550
552
|
]);
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { defineComponent as F, mergeModels as V, ref as h, reactive as v, useModel as O, onMounted as E, resolveComponent as n, openBlock as A, createBlock as T, withCtx as l, createElementVNode as x, createVNode as e, createTextVNode as I, toDisplayString as w, unref as r } from "vue";
|
|
2
|
+
import { ElMessage as U } from "element-plus";
|
|
3
|
+
import { useI18n as G } from "vue-i18n";
|
|
4
|
+
import { D as q, g as N } from "./index-DZJVaUh3.mjs";
|
|
5
|
+
const H = { class: "dialog-footer" }, X = /* @__PURE__ */ F({
|
|
6
|
+
__name: "edit",
|
|
7
|
+
props: /* @__PURE__ */ V({
|
|
8
|
+
entityKey: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: () => {
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}, {
|
|
14
|
+
modelValue: { type: Boolean },
|
|
15
|
+
modelModifiers: {}
|
|
16
|
+
}),
|
|
17
|
+
emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
|
|
18
|
+
setup(g, { emit: $ }) {
|
|
19
|
+
var C;
|
|
20
|
+
const { t: u } = G(), y = h();
|
|
21
|
+
let o = v({
|
|
22
|
+
requestId: Math.random() * 10 + "",
|
|
23
|
+
updateMask: "categoryName,parentId,picUrl,description"
|
|
24
|
+
});
|
|
25
|
+
const R = v({
|
|
26
|
+
categoryName: [
|
|
27
|
+
{
|
|
28
|
+
required: !0,
|
|
29
|
+
message: u("goodsCategory.categoryNameRequired"),
|
|
30
|
+
trigger: "blur"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
categoryCode: [
|
|
34
|
+
{
|
|
35
|
+
required: !0,
|
|
36
|
+
message: u("goodsCategory.categoryCodeRequired"),
|
|
37
|
+
trigger: "blur"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
picUrl: [
|
|
41
|
+
{
|
|
42
|
+
required: !0,
|
|
43
|
+
message: u("goodsCategory.picUrlRequired"),
|
|
44
|
+
trigger: "change"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}), i = O(g, "modelValue"), p = g, k = Object.keys(p.entityKey), D = h(k.length >= 1);
|
|
48
|
+
E(() => {
|
|
49
|
+
var a;
|
|
50
|
+
const t = (a = p.entityKey) == null ? void 0 : a.categoryId;
|
|
51
|
+
q.goodsCategoryListBizLayDict.useValues(t);
|
|
52
|
+
});
|
|
53
|
+
const f = $;
|
|
54
|
+
(C = p.entityKey) != null && C.categoryId && (o = Object.assign(o, p.entityKey), o.parentId === "00000000-0000-0000-0000-000000000000" && (o.parentId = ""));
|
|
55
|
+
const M = async () => {
|
|
56
|
+
var t;
|
|
57
|
+
await ((t = y.value) == null ? void 0 : t.validate((a) => {
|
|
58
|
+
a && (o.categoryId ? N.update(o).then((d) => {
|
|
59
|
+
d.status === 200 && (U({
|
|
60
|
+
message: u("common.submitSuccess"),
|
|
61
|
+
type: "success"
|
|
62
|
+
}), i.value && (i.value = !1), f("refresh", d.status === 200));
|
|
63
|
+
}) : N.create(o).then((d) => {
|
|
64
|
+
d.status === 200 && (U({
|
|
65
|
+
message: u("common.submitSuccess"),
|
|
66
|
+
type: "success"
|
|
67
|
+
}), i.value && (i.value = !1), f("refresh", d.status === 200));
|
|
68
|
+
}));
|
|
69
|
+
}));
|
|
70
|
+
};
|
|
71
|
+
function _() {
|
|
72
|
+
i.value && (i.value = !1);
|
|
73
|
+
}
|
|
74
|
+
function j(t) {
|
|
75
|
+
o.picUrl = t;
|
|
76
|
+
}
|
|
77
|
+
return (t, a) => {
|
|
78
|
+
const d = n("el-input"), m = n("el-form-item"), c = n("el-col"), B = n("el-tree-select"), K = n("jmash-single-image-upload"), S = n("el-row"), L = n("el-form"), b = n("el-button"), z = n("el-dialog");
|
|
79
|
+
return A(), T(z, {
|
|
80
|
+
modelValue: i.value,
|
|
81
|
+
"onUpdate:modelValue": a[4] || (a[4] = (s) => i.value = s),
|
|
82
|
+
onClose: _
|
|
83
|
+
}, {
|
|
84
|
+
footer: l(() => [
|
|
85
|
+
x("div", H, [
|
|
86
|
+
e(b, { onClick: _ }, {
|
|
87
|
+
default: l(() => [
|
|
88
|
+
I(w(t.$t("common.cancel")), 1)
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}),
|
|
92
|
+
e(b, {
|
|
93
|
+
type: "primary",
|
|
94
|
+
onClick: M
|
|
95
|
+
}, {
|
|
96
|
+
default: l(() => [
|
|
97
|
+
I(w(t.$t("common.confirm")), 1)
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
})
|
|
101
|
+
])
|
|
102
|
+
]),
|
|
103
|
+
default: l(() => [
|
|
104
|
+
e(L, {
|
|
105
|
+
ref_key: "goodsCategoryFormRef",
|
|
106
|
+
ref: y,
|
|
107
|
+
model: r(o),
|
|
108
|
+
"label-width": "120px",
|
|
109
|
+
rules: R
|
|
110
|
+
}, {
|
|
111
|
+
default: l(() => [
|
|
112
|
+
e(S, null, {
|
|
113
|
+
default: l(() => [
|
|
114
|
+
e(c, { span: 24 }, {
|
|
115
|
+
default: l(() => [
|
|
116
|
+
e(m, {
|
|
117
|
+
label: t.$t("goodsCategory.categoryName"),
|
|
118
|
+
prop: "categoryName"
|
|
119
|
+
}, {
|
|
120
|
+
default: l(() => [
|
|
121
|
+
e(d, {
|
|
122
|
+
modelValue: r(o).categoryName,
|
|
123
|
+
"onUpdate:modelValue": a[0] || (a[0] = (s) => r(o).categoryName = s),
|
|
124
|
+
placeholder: t.$t("goodsCategory.categoryNameRequired"),
|
|
125
|
+
maxlength: "60",
|
|
126
|
+
"show-word-limit": "",
|
|
127
|
+
clearable: ""
|
|
128
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["label"])
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}),
|
|
135
|
+
e(c, { span: 24 }, {
|
|
136
|
+
default: l(() => [
|
|
137
|
+
e(m, {
|
|
138
|
+
label: t.$t("goodsCategory.categoryCode"),
|
|
139
|
+
prop: "categoryCode"
|
|
140
|
+
}, {
|
|
141
|
+
default: l(() => [
|
|
142
|
+
e(d, {
|
|
143
|
+
modelValue: r(o).categoryCode,
|
|
144
|
+
"onUpdate:modelValue": a[1] || (a[1] = (s) => r(o).categoryCode = s),
|
|
145
|
+
disabled: D.value,
|
|
146
|
+
placeholder: t.$t("goodsCategory.categoryCodeRequired"),
|
|
147
|
+
maxlength: "30",
|
|
148
|
+
"show-word-limit": "",
|
|
149
|
+
clearable: ""
|
|
150
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["label"])
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}),
|
|
157
|
+
e(c, { span: 24 }, {
|
|
158
|
+
default: l(() => [
|
|
159
|
+
e(m, {
|
|
160
|
+
label: t.$t("goodsCategory.parentId"),
|
|
161
|
+
prop: "parentId"
|
|
162
|
+
}, {
|
|
163
|
+
default: l(() => [
|
|
164
|
+
e(B, {
|
|
165
|
+
modelValue: r(o).parentId,
|
|
166
|
+
"onUpdate:modelValue": a[2] || (a[2] = (s) => r(o).parentId = s),
|
|
167
|
+
data: r(q).goodsCategoryListBizLayDict.values,
|
|
168
|
+
filterable: "",
|
|
169
|
+
clearable: "",
|
|
170
|
+
"check-strictly": "",
|
|
171
|
+
"render-after-expand": !1,
|
|
172
|
+
placeholder: t.$t("goodsCategory.parentIdRequired")
|
|
173
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["label"])
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
}),
|
|
180
|
+
e(c, { span: 24 }, {
|
|
181
|
+
default: l(() => [
|
|
182
|
+
e(m, {
|
|
183
|
+
label: t.$t("goodsCategory.picUrl"),
|
|
184
|
+
prop: "picUrl"
|
|
185
|
+
}, {
|
|
186
|
+
default: l(() => [
|
|
187
|
+
e(K, {
|
|
188
|
+
"picture-url": r(o).picUrl,
|
|
189
|
+
onImageSrc: j,
|
|
190
|
+
width: 80,
|
|
191
|
+
type: "trans"
|
|
192
|
+
}, null, 8, ["picture-url"])
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
}, 8, ["label"])
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}),
|
|
199
|
+
e(c, { span: 24 }, {
|
|
200
|
+
default: l(() => [
|
|
201
|
+
e(m, {
|
|
202
|
+
label: t.$t("goodsCategory.description"),
|
|
203
|
+
prop: "description"
|
|
204
|
+
}, {
|
|
205
|
+
default: l(() => [
|
|
206
|
+
e(d, {
|
|
207
|
+
modelValue: r(o).description,
|
|
208
|
+
"onUpdate:modelValue": a[3] || (a[3] = (s) => r(o).description = s),
|
|
209
|
+
type: "textarea",
|
|
210
|
+
autosize: { minRows: 2 },
|
|
211
|
+
maxlength: "200",
|
|
212
|
+
"show-word-limit": "",
|
|
213
|
+
placeholder: t.$t("goodsCategory.descriptionRequired"),
|
|
214
|
+
clearable: ""
|
|
215
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 8, ["label"])
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
})
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
})
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}, 8, ["model", "rules"])
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
}, 8, ["modelValue"]);
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
export {
|
|
235
|
+
X as _
|
|
236
|
+
};
|