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.
Files changed (112) hide show
  1. package/README.md +51 -51
  2. package/dist/GoodsBaseForm-BSvXc_XA.mjs +4 -0
  3. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs +381 -0
  4. package/dist/GoodsLogisticsForm-1Bbd4Z52.mjs +4 -0
  5. package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs +434 -0
  6. package/dist/GoodsSpecForm-Ddo1IZLZ.mjs +4 -0
  7. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-CdWIufm4.mjs +338 -0
  8. package/dist/{ImageUpload-BMw9FVJL.mjs → ImageUpload-Bf2jhRs5.mjs} +1 -1
  9. package/dist/edit copy 2-Yzf_M31V.mjs +59 -0
  10. package/dist/edit copy-CCnzlrgL.mjs +526 -0
  11. package/dist/{edit-DvO1wYIL.mjs → edit-BgtwinSN.mjs} +1 -1
  12. package/dist/{edit-BlQj1xVR.mjs → edit-Dke5sWct.mjs} +4 -4
  13. package/dist/{edit-CuGiM5xu.mjs → edit-e5-aXV6K.mjs} +15 -15
  14. package/dist/{edit-Bh5jT6eo.mjs → edit-lfXK_dUp.mjs} +4 -4
  15. package/dist/{edit-CyhVo22f.mjs → edit-pUKONjxH.mjs} +7 -7
  16. package/dist/{edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs → edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs} +33 -33
  17. package/dist/el-message-BB2-39XJ.mjs +1221 -0
  18. package/dist/{index-BrBipAPq.mjs → index-BSzOTWcG.mjs} +1 -1
  19. package/dist/{index-CVM7nBhM.mjs → index-BpKiAhvt.mjs} +3 -3
  20. package/dist/{index-Dk9-_0Ir.mjs → index-ChQ-ZxD1.mjs} +2 -2
  21. package/dist/{index-Dz9NSJh1.mjs → index-CkJncbVf.mjs} +3 -3
  22. package/dist/{index-DzUSeIbT.mjs → index-CkMWas2b.mjs} +3 -3
  23. package/dist/index-Da2R0n8O.mjs +374 -0
  24. package/dist/{index-BlZupHNB.mjs → index-DhS4AuWf.mjs} +1593 -1554
  25. package/dist/{index-8JQB4NmH.mjs → index-DyLLV1NK.mjs} +281 -250
  26. package/dist/index-vHQhUQSO.mjs +95 -0
  27. package/dist/index.mjs +1 -1
  28. package/dist/{info-CLt9Ea38.mjs → info-DOKoSi7a.mjs} +34 -34
  29. package/dist/{info-NFU_3fNY.mjs → info-De_pBN6A.mjs} +19 -19
  30. package/dist/{skuForm-Dr6dKGa4.mjs → skuForm-DVGkw6rD.mjs} +71 -86
  31. package/dist/{skuForm-8WZm2j5V.mjs → skuForm-YXHrhyPI.mjs} +111 -110
  32. package/dist/{skuTable-BwIc5hr5.mjs → skuTable-DOIQ9kiV.mjs} +71 -71
  33. package/dist/style.css +1 -1
  34. package/dts/api/goods-base/index.d.ts +11 -0
  35. package/dts/api/goods-base/types.d.ts +33 -0
  36. package/dts/api/goods-logistics/index.d.ts +8 -0
  37. package/dts/api/goods-logistics/types.d.ts +16 -0
  38. package/dts/api/goods-spec/index.d.ts +8 -0
  39. package/dts/api/goods-spec/types.d.ts +15 -0
  40. package/dts/api/goods-spu/index.d.ts +3 -0
  41. package/dts/api/goods-stock/index.d.ts +8 -0
  42. package/dts/api/goods-stock/types.d.ts +32 -0
  43. package/dts/api/index.d.ts +3 -0
  44. package/dts/constant.d.ts +26 -0
  45. package/dts/lang/goods/zh-cn.d.ts +12 -0
  46. package/dts/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +7 -0
  47. package/dts/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +2 -0
  48. package/dts/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +7 -0
  49. package/dts/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  50. package/dts/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  51. package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
  52. package/dts/xyvcard-goods/src/api/dict.d.ts +35 -0
  53. package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
  54. package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
  55. package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
  56. package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
  57. package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
  58. package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
  59. package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
  60. package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
  61. package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
  62. package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
  63. package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
  64. package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
  65. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +18 -0
  66. package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
  67. package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
  68. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +69 -0
  69. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +245 -0
  70. package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
  71. package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
  72. package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
  73. package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
  74. package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
  75. package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
  76. package/dts/xyvcard-goods/src/constant.d.ts +107 -0
  77. package/dts/xyvcard-goods/src/index.d.ts +12 -0
  78. package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
  79. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +141 -0
  80. package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
  81. package/dts/xyvcard-goods/src/main.d.ts +7 -0
  82. package/dts/xyvcard-goods/src/permission.d.ts +1 -0
  83. package/dts/xyvcard-goods/src/router/index.d.ts +6 -0
  84. package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
  85. package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
  86. package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
  87. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
  88. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
  89. package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
  90. package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
  91. package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
  92. package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
  93. package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
  94. package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
  95. package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
  96. package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
  97. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
  98. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
  99. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
  100. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  101. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  102. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
  103. package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
  104. package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
  105. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +29 -0
  106. package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
  107. package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
  108. package/package.json +63 -63
  109. package/dist/index-B7_M6fAN.mjs +0 -228
  110. package/dts/views/goods/goods-combination/goodsList.vue.d.ts +0 -14
  111. package/dts/views/goods/goods-spu/goodsList.vue.d.ts +0 -23
  112. /package/dts/{views/goods/goods-combination → xyvcard-goods/src/views/goods/goods-spu}/skuTable.vue.d.ts +0 -0
package/README.md CHANGED
@@ -1,51 +1,51 @@
1
- # pnpm publish --no-git-checks
2
- npm config set registry https://registry.npmjs.org/
3
-
4
- # pnpm install
5
- npm config set registry https://registry.npmmirror.com/
6
-
7
-
8
- This template should help get you started developing with Vue 3 in Vite.
9
-
10
- ## Recommended IDE Setup
11
-
12
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
13
-
14
- ## Type Support for `.vue` Imports in TS
15
-
16
- TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
17
-
18
- If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
19
-
20
- 1. Disable the built-in TypeScript Extension
21
- 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
22
- 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
23
- 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
24
-
25
- ## Customize configuration
26
-
27
- See [Vite Configuration Reference](https://vitejs.dev/config/).
28
-
29
- ## Project Setup
30
-
31
- ```sh
32
- pnpm install
33
- ```
34
-
35
- ### Compile and Hot-Reload for Development
36
-
37
- ```sh
38
- pnpm dev
39
- ```
40
-
41
- ### Type-Check, Compile and Minify for Production
42
-
43
- ```sh
44
- pnpm build
45
- ```
46
-
47
- ### Lint with [ESLint](https://eslint.org/)
48
-
49
- ```sh
50
- pnpm lint
51
- ```
1
+ # pnpm publish --no-git-checks
2
+ npm config set registry https://registry.npmjs.org/
3
+
4
+ # pnpm install
5
+ npm config set registry https://registry.npmmirror.com/
6
+
7
+
8
+ This template should help get you started developing with Vue 3 in Vite.
9
+
10
+ ## Recommended IDE Setup
11
+
12
+ [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
13
+
14
+ ## Type Support for `.vue` Imports in TS
15
+
16
+ TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
17
+
18
+ If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
19
+
20
+ 1. Disable the built-in TypeScript Extension
21
+ 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
22
+ 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
23
+ 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
24
+
25
+ ## Customize configuration
26
+
27
+ See [Vite Configuration Reference](https://vitejs.dev/config/).
28
+
29
+ ## Project Setup
30
+
31
+ ```sh
32
+ pnpm install
33
+ ```
34
+
35
+ ### Compile and Hot-Reload for Development
36
+
37
+ ```sh
38
+ pnpm dev
39
+ ```
40
+
41
+ ### Type-Check, Compile and Minify for Production
42
+
43
+ ```sh
44
+ pnpm build
45
+ ```
46
+
47
+ ### Lint with [ESLint](https://eslint.org/)
48
+
49
+ ```sh
50
+ pnpm lint
51
+ ```
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./GoodsBaseForm.vue_vue_type_script_setup_true_lang-rsmqHXbJ.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,381 @@
1
+ import { _ as j } from "./ImageUpload-Bf2jhRs5.mjs";
2
+ import { defineComponent as F, reactive as h, ref as M, resolveComponent as m, createBlock as U, openBlock as y, unref as o, withCtx as t, createVNode as e, createCommentVNode as z, createElementVNode as I, createTextVNode as Y } from "vue";
3
+ import { useI18n as W } from "vue-i18n";
4
+ import { useRoute as H, useRouter as J } from "vue-router";
5
+ import { useUserStore as c, clearEmpty as V, request as f, fileApi as K, routerUtil as Q } from "jmash-core";
6
+ import { WangEditor as X } from "xyvcard-cms";
7
+ import { D as g, C as q } from "./index-Da2R0n8O.mjs";
8
+ import { E as B } from "./el-message-BB2-39XJ.mjs";
9
+ class Z {
10
+ // A创建商品基本信息
11
+ create(d) {
12
+ return d.tenant = c().user.tenant, V(d), f({
13
+ url: "/v1/goods/goods_base",
14
+ method: "post",
15
+ data: d
16
+ });
17
+ }
18
+ // A编辑商品基本信息
19
+ update(d) {
20
+ return d.tenant = c().user.tenant, V(d), f({
21
+ url: "/v1/goods/goods_base",
22
+ method: "patch",
23
+ data: d
24
+ });
25
+ }
26
+ // 导入下载模版
27
+ downloadTemplate() {
28
+ const d = c().user.tenant;
29
+ return f({
30
+ url: `/v1/goods/goods_base/${d}/template.xlsx`,
31
+ method: "get",
32
+ responseType: "blob"
33
+ });
34
+ }
35
+ // A导入商品基本信息请求.
36
+ importExcel(d) {
37
+ return d.tenant = c().user.tenant, V(d), f({
38
+ url: "/v1/ecoupons/grant_users/import",
39
+ method: "patch",
40
+ data: d
41
+ });
42
+ }
43
+ }
44
+ const E = new Z(), x = { class: "image-card" }, de = /* @__PURE__ */ F({
45
+ __name: "GoodsBaseForm",
46
+ props: {
47
+ goodsSpuModel: { default: () => ({}) }
48
+ },
49
+ emits: ["submit"],
50
+ setup(C, { emit: d }) {
51
+ g.goodsSupClassEnum.useEnumValues(), g.brandListBizDict.useValues(), g.goodsCategoryListBizLayDict.useValues();
52
+ const { t: i } = W(), b = H(), P = J(), v = C;
53
+ let s = h({
54
+ requestId: Math.random() * 10 + "",
55
+ updateMask: "spuName,categoryIds,brandId,spuCode,labelIds,picUrls,sellPoint,description,appApiUrl",
56
+ appApiUrl: K.baseApiUrl() || location.origin,
57
+ categoryIds: [],
58
+ labelIds: [],
59
+ spuId: "",
60
+ spuName: "",
61
+ brandId: "",
62
+ spuCode: "",
63
+ picUrls: "",
64
+ sellPoint: "",
65
+ description: "",
66
+ supClass: q.GOODS_SUP_CLASS_VALUES.GOODS_TYPE_REAL,
67
+ isBranchPickup: !1
68
+ });
69
+ b.query.spuId && Object.assign(s, v.goodsSpuModel);
70
+ const w = (a, l, n) => {
71
+ var p;
72
+ const r = (p = s.picUrls) == null ? void 0 : p.split(",").filter(Boolean);
73
+ if (r != null && r.length) {
74
+ if ((r == null ? void 0 : r.length) < 1)
75
+ return n(new Error(i("goodsSpu.imageListsErrors")));
76
+ n();
77
+ } else return n(new Error(i("goodsSpu.picUrlsRequired")));
78
+ }, R = () => {
79
+ var a;
80
+ (a = _.value) == null || a.validateField("picUrls");
81
+ }, $ = h({
82
+ supClass: [
83
+ {
84
+ required: !0,
85
+ message: i("goodsSpu.supClassRequired"),
86
+ trigger: "blur"
87
+ }
88
+ ],
89
+ isBranchPickup: [
90
+ {
91
+ required: !0,
92
+ message: i("goodsSpu.isBranchPickupRequired"),
93
+ trigger: "blur"
94
+ }
95
+ ],
96
+ spuName: [
97
+ {
98
+ required: !0,
99
+ message: i("goodsSpu.spuNameRequired"),
100
+ trigger: "blur"
101
+ }
102
+ ],
103
+ categoryIds: [
104
+ {
105
+ required: !0,
106
+ message: i("goodsSpu.categoryIdRequired"),
107
+ trigger: "change"
108
+ }
109
+ ],
110
+ brandId: [
111
+ {
112
+ required: !0,
113
+ message: i("goodsSpu.brandIdRequired"),
114
+ trigger: "change"
115
+ }
116
+ ],
117
+ spuCode: [
118
+ {
119
+ required: !0,
120
+ message: i("goodsSpu.spuCodeRequired"),
121
+ trigger: "change"
122
+ }
123
+ ],
124
+ picUrls: [
125
+ {
126
+ required: !0,
127
+ validator: w,
128
+ trigger: "change"
129
+ }
130
+ ]
131
+ }), _ = M(), N = d;
132
+ function L() {
133
+ var a;
134
+ (a = _.value) == null || a.validate((l) => {
135
+ if (l) {
136
+ if (b.query.spuId) {
137
+ E.update(s).then((n) => {
138
+ n.status === 200 && (B({
139
+ message: i("common.submitSuccess"),
140
+ type: "success"
141
+ }), Q.closeTagView(b.fullPath, P, !1));
142
+ });
143
+ return;
144
+ }
145
+ E.create(s).then((n) => {
146
+ n.status === 200 && (B({
147
+ message: i("common.submitSuccess"),
148
+ type: "success"
149
+ }), N("submit", n.data));
150
+ });
151
+ }
152
+ });
153
+ }
154
+ return (a, l) => {
155
+ const n = m("jmash-enum-radio"), r = m("el-form-item"), p = m("el-col"), S = m("el-input"), k = m("el-tree-select"), A = m("jmash-select"), D = j, O = m("el-row"), G = m("el-button"), T = m("el-form");
156
+ return y(), U(T, {
157
+ ref_key: "goodsBaseFormRef",
158
+ ref: _,
159
+ model: o(s),
160
+ "label-width": "120px",
161
+ rules: $
162
+ }, {
163
+ default: t(() => [
164
+ e(O, null, {
165
+ default: t(() => [
166
+ e(p, { span: 12 }, {
167
+ default: t(() => [
168
+ e(r, {
169
+ label: a.$t("goodsSpu.supClass"),
170
+ prop: "supClass"
171
+ }, {
172
+ default: t(() => [
173
+ e(n, {
174
+ modelValue: o(s).supClass,
175
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => o(s).supClass = u),
176
+ data: o(g).goodsSupClassEnum.values
177
+ }, null, 8, ["modelValue", "data"])
178
+ ]),
179
+ _: 1
180
+ }, 8, ["label"])
181
+ ]),
182
+ _: 1
183
+ }),
184
+ o(s).supClass === o(q).GOODS_SUP_CLASS_VALUES.GOODS_TYPE_REAL ? (y(), U(p, {
185
+ key: 0,
186
+ span: 12
187
+ }, {
188
+ default: t(() => [
189
+ e(r, {
190
+ label: a.$t("goodsSpu.isBranchPickup"),
191
+ prop: "isBranchPickup"
192
+ }, {
193
+ default: t(() => [
194
+ e(n, {
195
+ modelValue: o(s).isBranchPickup,
196
+ "onUpdate:modelValue": l[1] || (l[1] = (u) => o(s).isBranchPickup = u),
197
+ data: o(g).yesOrNoEnum.values
198
+ }, null, 8, ["modelValue", "data"])
199
+ ]),
200
+ _: 1
201
+ }, 8, ["label"])
202
+ ]),
203
+ _: 1
204
+ })) : z("", !0),
205
+ e(p, { span: 12 }, {
206
+ default: t(() => [
207
+ e(r, {
208
+ label: a.$t("goodsSpu.spuName"),
209
+ prop: "spuName"
210
+ }, {
211
+ default: t(() => [
212
+ e(S, {
213
+ modelValue: o(s).spuName,
214
+ "onUpdate:modelValue": l[2] || (l[2] = (u) => o(s).spuName = u),
215
+ placeholder: a.$t("goodsSpu.spuNameRequired"),
216
+ maxlength: "60",
217
+ "show-word-limit": "",
218
+ clearable: ""
219
+ }, null, 8, ["modelValue", "placeholder"])
220
+ ]),
221
+ _: 1
222
+ }, 8, ["label"])
223
+ ]),
224
+ _: 1
225
+ }),
226
+ e(p, { span: 12 }, {
227
+ default: t(() => [
228
+ e(r, {
229
+ label: a.$t("goodsSpu.categoryId"),
230
+ prop: "categoryIds"
231
+ }, {
232
+ default: t(() => [
233
+ e(k, {
234
+ modelValue: o(s).categoryIds,
235
+ "onUpdate:modelValue": l[3] || (l[3] = (u) => o(s).categoryIds = u),
236
+ data: o(g).goodsCategoryListBizLayDict.values,
237
+ multiple: "",
238
+ "render-after-expand": !1,
239
+ "show-checkbox": "",
240
+ placeholder: a.$t("goodsSpu.categoryIdRequired"),
241
+ class: "w-full"
242
+ }, null, 8, ["modelValue", "data", "placeholder"])
243
+ ]),
244
+ _: 1
245
+ }, 8, ["label"])
246
+ ]),
247
+ _: 1
248
+ }),
249
+ e(p, { span: 12 }, {
250
+ default: t(() => [
251
+ e(r, {
252
+ label: a.$t("goodsSpu.brandId"),
253
+ prop: "brandId"
254
+ }, {
255
+ default: t(() => [
256
+ e(A, {
257
+ modelValue: o(s).brandId,
258
+ "onUpdate:modelValue": l[4] || (l[4] = (u) => o(s).brandId = u),
259
+ placeholder: a.$t("goodsSpu.brandIdRequired"),
260
+ data: o(g).brandListBizDict.values,
261
+ class: "w-full",
262
+ clearable: ""
263
+ }, null, 8, ["modelValue", "placeholder", "data"])
264
+ ]),
265
+ _: 1
266
+ }, 8, ["label"])
267
+ ]),
268
+ _: 1
269
+ }),
270
+ e(p, { span: 12 }, {
271
+ default: t(() => [
272
+ e(r, {
273
+ label: a.$t("goodsSpu.spuCode"),
274
+ prop: "spuCode"
275
+ }, {
276
+ default: t(() => [
277
+ e(S, {
278
+ modelValue: o(s).spuCode,
279
+ "onUpdate:modelValue": l[5] || (l[5] = (u) => o(s).spuCode = u),
280
+ placeholder: a.$t("goodsSpu.spuCodeRequired"),
281
+ maxlength: "15",
282
+ "show-word-limit": "",
283
+ clearable: ""
284
+ }, null, 8, ["modelValue", "placeholder"])
285
+ ]),
286
+ _: 1
287
+ }, 8, ["label"])
288
+ ]),
289
+ _: 1
290
+ }),
291
+ e(p, { span: 24 }, {
292
+ default: t(() => [
293
+ e(r, {
294
+ label: a.$t("goodsSpu.picUrls"),
295
+ prop: "picUrls"
296
+ }, {
297
+ default: t(() => [
298
+ I("div", x, [
299
+ e(D, {
300
+ modelValue: o(s).picUrls,
301
+ "onUpdate:modelValue": [
302
+ l[6] || (l[6] = (u) => o(s).picUrls = u),
303
+ R
304
+ ],
305
+ limit: 6,
306
+ "list-type": "picture-card"
307
+ }, null, 8, ["modelValue"]),
308
+ l[9] || (l[9] = I("div", { class: "red-color" }, " 推荐尺寸:100*100或同比例图片,最少上传1张 ", -1))
309
+ ])
310
+ ]),
311
+ _: 1
312
+ }, 8, ["label"])
313
+ ]),
314
+ _: 1
315
+ }),
316
+ e(p, { span: 24 }, {
317
+ default: t(() => [
318
+ e(r, {
319
+ label: a.$t("goodsSpu.sellPoint"),
320
+ prop: "sellPoint"
321
+ }, {
322
+ default: t(() => [
323
+ e(S, {
324
+ type: "textarea",
325
+ modelValue: o(s).sellPoint,
326
+ "onUpdate:modelValue": l[7] || (l[7] = (u) => o(s).sellPoint = u),
327
+ placeholder: a.$t("goodsSpu.sellPointRequired"),
328
+ clearable: "",
329
+ rows: 4
330
+ }, null, 8, ["modelValue", "placeholder"])
331
+ ]),
332
+ _: 1
333
+ }, 8, ["label"])
334
+ ]),
335
+ _: 1
336
+ }),
337
+ e(p, { span: 24 }, {
338
+ default: t(() => [
339
+ e(r, {
340
+ label: a.$t("goodsSpu.description"),
341
+ prop: "description"
342
+ }, {
343
+ default: t(() => [
344
+ e(o(X), {
345
+ modelValue: o(s).description,
346
+ "onUpdate:modelValue": l[8] || (l[8] = (u) => o(s).description = u),
347
+ style: { width: "100%" }
348
+ }, null, 8, ["modelValue"])
349
+ ]),
350
+ _: 1
351
+ }, 8, ["label"])
352
+ ]),
353
+ _: 1
354
+ })
355
+ ]),
356
+ _: 1
357
+ }),
358
+ e(r, null, {
359
+ default: t(() => [
360
+ e(G, {
361
+ type: "primary",
362
+ onClick: L
363
+ }, {
364
+ default: t(() => l[10] || (l[10] = [
365
+ Y("保存", -1)
366
+ ])),
367
+ _: 1,
368
+ __: [10]
369
+ })
370
+ ]),
371
+ _: 1
372
+ })
373
+ ]),
374
+ _: 1
375
+ }, 8, ["model", "rules"]);
376
+ };
377
+ }
378
+ });
379
+ export {
380
+ de as _
381
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-PSnPNbmT.mjs";
2
+ export {
3
+ f as default
4
+ };