xyvcard-goods 0.0.3 → 0.0.5

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 (37) hide show
  1. package/dist/{approveFailIndex-C2BhoVKC.mjs → approveFailIndex-F3GtuNeX.mjs} +1 -1
  2. package/dist/{approveFailIndex.vue_vue_type_script_setup_true_lang-CSBlBFQo.mjs → approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs} +1 -1
  3. package/dist/{auditIndex-BjjiwYrm.mjs → auditIndex-BVwcPv66.mjs} +1 -1
  4. package/dist/{auditIndex.vue_vue_type_script_setup_true_lang-UrMEjXo-.mjs → auditIndex.vue_vue_type_script_setup_true_lang-Ds9vp1Ci.mjs} +2 -2
  5. package/dist/edit-CM1WlJqP.mjs +2978 -0
  6. package/dist/{el-message-BBB-S2MS.mjs → el-message-wJI-19Bz.mjs} +733 -730
  7. package/dist/index-D5_GsXR7.mjs +142 -0
  8. package/dist/{index-vE-TE0cx.mjs → index-DsDgds5T.mjs} +6 -6
  9. package/dist/index.mjs +215 -216
  10. package/dist/{info-Bm6Ifv7W.mjs → info-D0lnJ8uu.mjs} +2 -2
  11. package/dist/{saleIndex-C9AD4DIj.mjs → saleIndex-DvFk3R2S.mjs} +1 -1
  12. package/dist/{saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs → saleIndex.vue_vue_type_script_setup_true_lang-DAWECwmp.mjs} +2 -2
  13. package/dist/{shelfIndex-CyAp6rf5.mjs → shelfIndex-1cvkxQ_J.mjs} +1 -1
  14. package/dist/{shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs → shelfIndex.vue_vue_type_script_setup_true_lang--gWnIIPM.mjs} +2 -2
  15. package/dist/{skuForm-Ctu0Vbym.mjs → skuForm-ULR9yLYt.mjs} +5 -4
  16. package/dist/{skuTable-BbTTCq2m.mjs → skuTable-Ck36wysA.mjs} +131 -122
  17. package/dist/style.css +1 -1
  18. package/dts/components/EnumRadio/index.vue.d.ts +2 -2
  19. package/dts/components/GoodsUpload/ImageUpload.vue.d.ts +4 -2
  20. package/dts/components/GoodsUpload/MultiUpload.vue.d.ts +4 -4
  21. package/dts/components/GoodsUpload/index.vue.d.ts +2 -2
  22. package/dts/constant.d.ts +1 -1
  23. package/dts/lang/goods/zh-cn.d.ts +17 -0
  24. package/dts/main.d.ts +3 -0
  25. package/dts/views/goods/goods-spu/skuForm.vue.d.ts +2 -2
  26. package/dts/views/goods/goods-spu/skuTable.vue.d.ts +2 -2
  27. package/package.json +20 -15
  28. package/dist/edit-B1_IbaHc.mjs +0 -13974
  29. package/dist/index-CZD7OAWo.mjs +0 -213
  30. package/dts/api/emall/goods-category/index.d.ts +0 -14
  31. package/dts/api/emall/goods-category/types.d.ts +0 -19
  32. package/dts/api/shop/shop-info/index.d.ts +0 -8
  33. package/dts/api/shop/shop-info/types.d.ts +0 -16
  34. package/dts/api/shop/spec-info/index.d.ts +0 -8
  35. package/dts/api/shop/spec-info/types.d.ts +0 -21
  36. package/dts/api/shop/spec-value/index.d.ts +0 -8
  37. package/dts/api/shop/spec-value/types.d.ts +0 -21
@@ -0,0 +1,142 @@
1
+ var h = Object.defineProperty;
2
+ var S = (a, t, i) => t in a ? h(a, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[t] = i;
3
+ var s = (a, t, i) => S(a, typeof t != "symbol" ? t + "" : t, i);
4
+ import { BizDict as p, BizLayDict as E, EnumDict as l } from "jmash-core";
5
+ import { EntryDict as _ } from "jmash-dict";
6
+ import { ref as n, reactive as v } from "vue";
7
+ import { goodsCategoryApi as O } from "xyvcard-emall";
8
+ import { specValueApi as d, infoApi as P, specInfoApi as f } from "xyvcard-shop";
9
+ class e {
10
+ }
11
+ // 模块
12
+ s(e, "MODULE_GOODS", "goods"), // 商品规格类型
13
+ s(e, "specType", {
14
+ UNIFIED_SPEC: "UNIFIED_SPEC",
15
+ //统一规格
16
+ MULTI_SPEC: "MULTI_SPEC"
17
+ //多规格
18
+ }), // 启用禁用
19
+ s(e, "SHELF_VALUES", n([
20
+ { key: "true", value: "上架" },
21
+ { key: "false", value: "下架" }
22
+ ])), // 运费类型
23
+ s(e, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 保障服务
24
+ s(e, "DICT_GOODS_ENSURE", "goods_ensure"), // 规格类型
25
+ s(e, "ENUM_SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), // 商品查询枚举
26
+ s(e, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), // 审核状态
27
+ s(e, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
28
+ s(e, "approval_not_pass", "APPROVAL_NOT_PASS"), s(e, "approval_pass", "APPROVAL_PASS"), s(e, "approvaling", "APPROVALING");
29
+ class y {
30
+ constructor(t, i) {
31
+ s(this, "values", v([]));
32
+ // 查询条件
33
+ s(this, "query");
34
+ this.values.length = 0, this.values.push(...t.value), this.query = i;
35
+ }
36
+ // 根据给定键获取业务数据项的值的方法
37
+ getValue(t) {
38
+ for (const i of this.values)
39
+ if (i.key == t)
40
+ return i.value;
41
+ return "";
42
+ }
43
+ }
44
+ class L extends p {
45
+ // 实现 useValues 方法
46
+ useValues() {
47
+ return new Promise((t, i) => {
48
+ P.findList(this.query).then(({ data: o }) => {
49
+ console.log(o);
50
+ const r = o.results;
51
+ this.values.length = 0, this.values.push(
52
+ ...r.map(
53
+ (c) => ({
54
+ key: c.shopId,
55
+ value: c.shopName
56
+ })
57
+ )
58
+ ), t(this.values);
59
+ }).catch(i);
60
+ });
61
+ }
62
+ }
63
+ class g extends E {
64
+ // 实现 useValues 方法
65
+ useValues() {
66
+ return new Promise((t, i) => {
67
+ O.findTreeListApi().then(({ data: o }) => {
68
+ this.values.length = 0, this.values.push(...o.results), t(this.values);
69
+ }).catch(i);
70
+ });
71
+ }
72
+ }
73
+ class m extends p {
74
+ // 实现 useValues 方法
75
+ useValues() {
76
+ return new Promise((t, i) => {
77
+ f.findList(this.query).then(({ data: o }) => {
78
+ console.log(o);
79
+ const r = o.results;
80
+ this.values.length = 0, this.values.push(
81
+ ...r.map(
82
+ (c) => ({
83
+ key: c.specId,
84
+ value: c.specName,
85
+ disabled: c.disabled
86
+ })
87
+ )
88
+ ), t(this.values);
89
+ }).catch(i);
90
+ });
91
+ }
92
+ }
93
+ class D extends p {
94
+ // 实现 useValues 方法
95
+ useValues() {
96
+ return new Promise((t, i) => {
97
+ d.findList(this.query).then(({ data: o }) => {
98
+ console.log(o);
99
+ const r = o.results;
100
+ this.values.length = 0, this.values.push(
101
+ ...r.map(
102
+ (c) => ({
103
+ key: c.specValueId,
104
+ value: c.valueName
105
+ })
106
+ )
107
+ ), t(this.values);
108
+ }).catch(i);
109
+ });
110
+ }
111
+ }
112
+ class u {
113
+ }
114
+ // 店铺列表
115
+ s(u, "shopInfoBizDict", new L({})), // 商品分类
116
+ s(u, "goodsCategoryDict", new g({})), // 规格列表
117
+ s(u, "specInfoDict", new m({})), // 规格值
118
+ s(u, "specValueDict", new D({})), // 上架下架
119
+ s(u, "shelfDict", new y(e.SHELF_VALUES, {})), // 运费类型
120
+ s(u, "freightTypeEnum", new l(
121
+ e.MODULE_GOODS,
122
+ e.ENUM_FREIGHT_TYPE
123
+ )), // 保障服务
124
+ s(u, "goodsEnsureDict", new _(e.DICT_GOODS_ENSURE)), // 规格类型
125
+ s(u, "specTypeEnum", new l(
126
+ e.MODULE_GOODS,
127
+ e.ENUM_SPEC_TYPE
128
+ )), // 商品查询枚举
129
+ s(u, "goodsSpuListSortEnum", new l(
130
+ e.MODULE_GOODS,
131
+ e.ENUM_GOODS_SPU_List_SORT
132
+ )), // 审核状态
133
+ s(u, "approvalStatusEnum", new l(
134
+ e.MODULE_GOODS,
135
+ e.ENUM_APPROVAL_STATUS
136
+ ));
137
+ export {
138
+ e as C,
139
+ u as D,
140
+ D as S,
141
+ m as a
142
+ };
@@ -3,12 +3,12 @@ import { useRouter as ve } from "vue-router";
3
3
  import { useTableHooks as ye, fileApi as M } from "jmash-core";
4
4
  import { useI18n as Se } from "vue-i18n";
5
5
  import { goodsSpuApi as L } from "./index.mjs";
6
- import { D as b, C as j } from "./index-CZD7OAWo.mjs";
7
- import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-qDsRE8JX.mjs";
8
- import { _ as $e } from "./shelfIndex.vue_vue_type_script_setup_true_lang-D3xUiFR2.mjs";
9
- import { _ as Ve } from "./auditIndex.vue_vue_type_script_setup_true_lang-UrMEjXo-.mjs";
10
- import { _ as ke } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-CSBlBFQo.mjs";
11
- import { $ as I } from "./el-message-BBB-S2MS.mjs";
6
+ import { D as b, C as j } from "./index-D5_GsXR7.mjs";
7
+ import { _ as Ce } from "./saleIndex.vue_vue_type_script_setup_true_lang-DAWECwmp.mjs";
8
+ import { _ as $e } from "./shelfIndex.vue_vue_type_script_setup_true_lang--gWnIIPM.mjs";
9
+ import { _ as Ve } from "./auditIndex.vue_vue_type_script_setup_true_lang-Ds9vp1Ci.mjs";
10
+ import { _ as ke } from "./approveFailIndex.vue_vue_type_script_setup_true_lang-8ykH4NF1.mjs";
11
+ import { $ as I } from "./el-message-wJI-19Bz.mjs";
12
12
  const Ie = { class: "app-container" }, Te = { key: 0 }, Ne = { class: "search-container" }, Ue = ["onClick"], De = ["onClick"], Re = ["onClick"], Ye = /* @__PURE__ */ ge({
13
13
  __name: "index",
14
14
  setup(ze) {