xyvcard-goods 0.0.14 → 0.0.16
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-BlnYCDI4.mjs → edit-CN1CKgoW.mjs} +206 -234
- package/dist/{edit-BsaWxeqY.mjs → edit-E57LIt5x.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DRAXgRwD.mjs → edit.vue_vue_type_script_setup_true_lang-BHplO2tN.mjs} +13 -15
- package/dist/{goodsList-Dvsh76f7.mjs → goodsList-C2113q3G.mjs} +1 -1
- package/dist/{goodsList.vue_vue_type_script_setup_true_lang-CWJQd86q.mjs → goodsList.vue_vue_type_script_setup_true_lang-C7lnUpja.mjs} +202 -225
- package/dist/{index-DZJVaUh3.mjs → index-CmKF2zdn.mjs} +97 -73
- package/dist/{index-Ct0LRSwV.mjs → index-CnyW3rxw.mjs} +47 -47
- package/dist/{index-BF7PDcd4.mjs → index-DO2m_h7R.mjs} +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{info-wrevnU3P.mjs → info-D6MWRZ1y.mjs} +52 -59
- package/dist/{skuForm-B7yYjwdJ.mjs → skuForm-BW2yrv5Z.mjs} +2 -2
- package/dist/{skuTable-YDBH_oRN.mjs → skuTable-DbNThlFG.mjs} +1 -1
- package/dts/api/dict.d.ts +1 -1
- package/dts/api/goods-spu/types.d.ts +2 -2
- package/dts/utils/returnBizLay.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
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 G, createVNode as e, createTextVNode as w, toDisplayString as I, unref as r } from "vue";
|
|
2
2
|
import { ElMessage as U } from "element-plus";
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { D as q, g as N } from "./index-
|
|
5
|
-
const
|
|
3
|
+
import { useI18n as H } from "vue-i18n";
|
|
4
|
+
import { D as q, g as N } from "./index-CmKF2zdn.mjs";
|
|
5
|
+
const J = { class: "dialog-footer" }, Y = /* @__PURE__ */ F({
|
|
6
6
|
__name: "edit",
|
|
7
7
|
props: /* @__PURE__ */ V({
|
|
8
8
|
entityKey: {
|
|
@@ -17,7 +17,7 @@ const H = { class: "dialog-footer" }, X = /* @__PURE__ */ F({
|
|
|
17
17
|
emits: /* @__PURE__ */ V(["refresh"], ["update:modelValue"]),
|
|
18
18
|
setup(g, { emit: $ }) {
|
|
19
19
|
var C;
|
|
20
|
-
const { t: u } =
|
|
20
|
+
const { t: u } = H(), y = h();
|
|
21
21
|
let o = v({
|
|
22
22
|
requestId: Math.random() * 10 + "",
|
|
23
23
|
updateMask: "categoryName,parentId,picUrl,description"
|
|
@@ -46,9 +46,7 @@ const H = { class: "dialog-footer" }, X = /* @__PURE__ */ F({
|
|
|
46
46
|
]
|
|
47
47
|
}), i = O(g, "modelValue"), p = g, k = Object.keys(p.entityKey), D = h(k.length >= 1);
|
|
48
48
|
E(() => {
|
|
49
|
-
|
|
50
|
-
const t = (a = p.entityKey) == null ? void 0 : a.categoryId;
|
|
51
|
-
q.goodsCategoryListBizLayDict.useValues(t);
|
|
49
|
+
q.goodsCategoryListBizLayDict.useValues();
|
|
52
50
|
});
|
|
53
51
|
const f = $;
|
|
54
52
|
(C = p.entityKey) != null && C.categoryId && (o = Object.assign(o, p.entityKey), o.parentId === "00000000-0000-0000-0000-000000000000" && (o.parentId = ""));
|
|
@@ -75,17 +73,17 @@ const H = { class: "dialog-footer" }, X = /* @__PURE__ */ F({
|
|
|
75
73
|
o.picUrl = t;
|
|
76
74
|
}
|
|
77
75
|
return (t, a) => {
|
|
78
|
-
const d = n("el-input"), m = n("el-form-item"), c = n("el-col"), B = n("el-tree-select"),
|
|
76
|
+
const d = n("el-input"), m = n("el-form-item"), c = n("el-col"), B = n("el-tree-select"), S = n("jmash-single-image-upload"), K = n("el-row"), L = n("el-form"), b = n("el-button"), z = n("el-dialog");
|
|
79
77
|
return A(), T(z, {
|
|
80
78
|
modelValue: i.value,
|
|
81
79
|
"onUpdate:modelValue": a[4] || (a[4] = (s) => i.value = s),
|
|
82
80
|
onClose: _
|
|
83
81
|
}, {
|
|
84
82
|
footer: l(() => [
|
|
85
|
-
|
|
83
|
+
G("div", J, [
|
|
86
84
|
e(b, { onClick: _ }, {
|
|
87
85
|
default: l(() => [
|
|
88
|
-
I(
|
|
86
|
+
w(I(t.$t("common.cancel")), 1)
|
|
89
87
|
]),
|
|
90
88
|
_: 1
|
|
91
89
|
}),
|
|
@@ -94,7 +92,7 @@ const H = { class: "dialog-footer" }, X = /* @__PURE__ */ F({
|
|
|
94
92
|
onClick: M
|
|
95
93
|
}, {
|
|
96
94
|
default: l(() => [
|
|
97
|
-
I(
|
|
95
|
+
w(I(t.$t("common.confirm")), 1)
|
|
98
96
|
]),
|
|
99
97
|
_: 1
|
|
100
98
|
})
|
|
@@ -109,7 +107,7 @@ const H = { class: "dialog-footer" }, X = /* @__PURE__ */ F({
|
|
|
109
107
|
rules: R
|
|
110
108
|
}, {
|
|
111
109
|
default: l(() => [
|
|
112
|
-
e(
|
|
110
|
+
e(K, null, {
|
|
113
111
|
default: l(() => [
|
|
114
112
|
e(c, { span: 24 }, {
|
|
115
113
|
default: l(() => [
|
|
@@ -184,7 +182,7 @@ const H = { class: "dialog-footer" }, X = /* @__PURE__ */ F({
|
|
|
184
182
|
prop: "picUrl"
|
|
185
183
|
}, {
|
|
186
184
|
default: l(() => [
|
|
187
|
-
e(
|
|
185
|
+
e(S, {
|
|
188
186
|
"picture-url": r(o).picUrl,
|
|
189
187
|
onImageSrc: j,
|
|
190
188
|
width: 80,
|
|
@@ -232,5 +230,5 @@ const H = { class: "dialog-footer" }, X = /* @__PURE__ */ F({
|
|
|
232
230
|
}
|
|
233
231
|
});
|
|
234
232
|
export {
|
|
235
|
-
|
|
233
|
+
Y as _
|
|
236
234
|
};
|