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
@@ -1,5 +1,5 @@
1
1
  import { useUserStore as e, clearEmpty as s, request as r } from "jmash-core";
2
- import { q as d } from "./index-BlZupHNB.mjs";
2
+ import { q as d } from "./index-DhS4AuWf.mjs";
3
3
  class u {
4
4
  getKey(t) {
5
5
  return {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as Y, ref as L, reactive as R, onActivated as Z, resolveComponent as s, resolveDirective as x, createElementBlock as V, openBlock as u, createElementVNode as $, createVNode as l, createBlock as k, createCommentVNode as S, withCtx as t, withKeys as ee, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, isRef as D } from "vue";
2
2
  import { useTableHooks as oe } from "jmash-core";
3
3
  import { useI18n as le } from "vue-i18n";
4
- import { b as te } from "./index-BlZupHNB.mjs";
5
- import ae from "./edit-CyhVo22f.mjs";
6
- import { D as ne } from "./index-B7_M6fAN.mjs";
4
+ import { b as te } from "./index-DhS4AuWf.mjs";
5
+ import ae from "./edit-pUKONjxH.mjs";
6
+ import { D as ne } from "./index-Da2R0n8O.mjs";
7
7
  const se = { class: "app-container" }, de = { class: "search-container" }, ie = ["onClick"], re = ["onClick"], ve = /* @__PURE__ */ Y({
8
8
  __name: "index",
9
9
  setup(ue) {
@@ -3,8 +3,8 @@ import { useRoute as he, useRouter as _e } from "vue-router";
3
3
  import { ElMessage as U } from "element-plus";
4
4
  import { useI18n as we } from "vue-i18n";
5
5
  import { useTableHooks as Se, fileApi as F } from "jmash-core";
6
- import { D as c, C as Ce } from "./index-B7_M6fAN.mjs";
7
- import { a as E } from "./index-BlZupHNB.mjs";
6
+ import { D as c, C as Ce } from "./index-Da2R0n8O.mjs";
7
+ import { a as E } from "./index-DhS4AuWf.mjs";
8
8
  const ke = { class: "app-container" }, Ve = {
9
9
  key: 0,
10
10
  class: "app-container"
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as x, ref as $, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, createElementBlock as w, openBlock as d, createElementVNode as U, createVNode as l, createBlock as _, createCommentVNode as T, withCtx as t, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as k, isRef as D } from "vue";
2
2
  import { useI18n as le } from "vue-i18n";
3
3
  import { useTableHooks as ae, fileApi as j } from "jmash-core";
4
- import { D as ne } from "./index-B7_M6fAN.mjs";
5
- import { g as re } from "./index-BlZupHNB.mjs";
6
- import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs";
4
+ import { D as ne } from "./index-Da2R0n8O.mjs";
5
+ import { g as re } from "./index-DhS4AuWf.mjs";
6
+ import { _ as se } from "./edit.vue_vue_type_script_setup_true_lang-BtGT564r.mjs";
7
7
  const ie = { class: "app-container" }, de = { class: "search-container" }, ue = { key: 1 }, me = ["onClick"], pe = ["onClick"], Ce = /* @__PURE__ */ x({
8
8
  __name: "index",
9
9
  setup(ce) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as x, ref as B, reactive as N, onActivated as ee, resolveComponent as d, resolveDirective as oe, createElementBlock as V, openBlock as u, createElementVNode as I, createVNode as t, createBlock as h, createCommentVNode as R, withCtx as l, withKeys as te, unref as a, createTextVNode as p, toDisplayString as c, withDirectives as k, isRef as S } from "vue";
2
2
  import { useTableHooks as le, fileApi as T } from "jmash-core";
3
3
  import { useI18n as ne } from "vue-i18n";
4
- import { g as ae } from "./index-BrBipAPq.mjs";
5
- import de from "./edit-CuGiM5xu.mjs";
6
- import { D as re } from "./index-B7_M6fAN.mjs";
4
+ import { g as ae } from "./index-BSzOTWcG.mjs";
5
+ import de from "./edit-e5-aXV6K.mjs";
6
+ import { D as re } from "./index-Da2R0n8O.mjs";
7
7
  const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], me = ["onClick"], ye = /* @__PURE__ */ x({
8
8
  __name: "index",
9
9
  setup(pe) {
@@ -0,0 +1,374 @@
1
+ var p = Object.defineProperty;
2
+ var A = (r, t, a) => t in r ? p(r, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[t] = a;
3
+ var e = (r, t, a) => A(r, typeof t != "symbol" ? t + "" : t, a);
4
+ import { useUserStore as O, clearEmpty as T, request as n, BizDict as l, BizLayDict as P, EnumDict as c } from "jmash-core";
5
+ import { EntryDict as d } from "jmash-dict";
6
+ import { ref as o, reactive as L } from "vue";
7
+ import { specValueApi as D, infoApi as I, specInfoApi as y } from "xyvcard-shop";
8
+ import { g as v, b as U, a as N } from "./index-DhS4AuWf.mjs";
9
+ import { g as R } from "./index-BSzOTWcG.mjs";
10
+ class s {
11
+ }
12
+ // 模块
13
+ e(s, "MODULE_GOODS", "goods"), // 启用禁用
14
+ e(s, "SHELF_VALUES", o([
15
+ { key: !0, value: "上架" },
16
+ { key: !1, value: "下架" }
17
+ ])), // 运费类型
18
+ e(s, "ENUM_FREIGHT_TYPE", "xyvcard.goods.protobuf.FreightType"), // 运费类型.
19
+ e(s, "FREIGHT_TYPE_VALUES", {
20
+ FREIGHT_FREE: "FREIGHT_FREE",
21
+ // 包邮
22
+ FREIGHT_FIXED: "FREIGHT_FIXED",
23
+ // 固定邮费
24
+ FREIGHT_TEMPLATE: "FREIGHT_TEMPLATE"
25
+ // 运费模板
26
+ }), // 保障服务
27
+ e(s, "DICT_GOODS_ENSURE", "goods_ensure"), // 商品查询枚举
28
+ e(s, "ENUM_GOODS_SPU_List_SORT", "xyvcard.goods.protobuf.GoodsSpuListSort"), e(s, "GOODS_SPU_VALUES", o([
29
+ { key: "goods_all", value: "全部商品" },
30
+ { key: "goods_sale", value: "已上架" },
31
+ { key: "goods_shelf", value: "待上架" },
32
+ { key: "goods_audit", value: "审核中" },
33
+ { key: "goods_notpass", value: "审核驳回" }
34
+ ])), // 审核状态
35
+ e(s, "ENUM_APPROVAL_STATUS", "xyvcard.goods.protobuf.ApprovalStatus"), // 审核状态常量
36
+ e(s, "APPROVAL_NOT_PASS", "APPROVAL_NOT_PASS"), e(s, "APPROVAL_PASS", "APPROVAL_PASS"), e(s, "APPROVALING", "APPROVALING"), // 启用禁用
37
+ e(s, "ENABLE_VALUES", o([
38
+ { key: "true", value: "启用" },
39
+ { key: "false", value: "禁用" }
40
+ ])), // 商品类型
41
+ e(s, "GOODS_TYPE", {
42
+ NORMAL: "normal",
43
+ GROUP: "group"
44
+ }), // 商品品类
45
+ e(s, "GOODS_SUP_CLASS", "xyvcard.goods.protobuf.SupClass"), // 商品品类.
46
+ e(s, "GOODS_SUP_CLASS_VALUES", {
47
+ GOODS_TYPE_REAL: "GOODS_TYPE_REAL",
48
+ // 实物类商品
49
+ GOODS_TYPE_VIRTUAL: "GOODS_TYPE_VIRTUAL",
50
+ // 虚拟类商品
51
+ GOODS_TYPE_LIFE: "GOODS_TYPE_LIFE"
52
+ // 生活服务类
53
+ }), // 是或否
54
+ e(s, "YES_OR_NO", o([
55
+ { key: !0, value: "是" },
56
+ { key: !1, value: "否" }
57
+ ])), // tab栏
58
+ e(s, "TAB_ENUM", L([
59
+ { key: "GoodsBaseForm", value: "商品基本信息" },
60
+ { key: "GoodsSpecForm", value: "规格与定价" },
61
+ { key: "GoodsLogisticsForm", value: "物流设置" }
62
+ ])), // 预售类型
63
+ e(s, "GOODS_PRESALE_TYPE", "xyvcard.goods.protobuf.PresaleType"), // 预售类型.
64
+ e(s, "GOODS_PRESALE_TYPE_VALUES", {
65
+ NONE: "NONE",
66
+ // 无预售
67
+ DEPOSIT: "DEPOSIT",
68
+ // 定金预售(不退)
69
+ DEPOSIT_RETURN: "DEPOSIT_RETURN"
70
+ // 订金预售(可退)
71
+ }), // 尾款支付期限
72
+ e(s, "BALANCE_PAYMENT_TYPE", "xyvcard.goods.protobuf.BalancePaymentType"), // 尾款支付期限.
73
+ e(s, "BALANCE_PAYMENT_TYPE_VALUES", {
74
+ DYNAMIC_DATE: "DYNAMIC_DATE",
75
+ // 动态时间
76
+ FIXED_DATE: "FIXED_DATE"
77
+ // 固定时间
78
+ }), // 规格类型
79
+ e(s, "SPEC_TYPE", "xyvcard.goods.protobuf.SpecType"), e(s, "SPEC_TYPE_VALUES", {
80
+ UNIFIED_SPEC: "UNIFIED_SPEC",
81
+ // 统一规格
82
+ MULTI_SPEC: "MULTI_SPEC"
83
+ // 多规格
84
+ }), // 发货模式
85
+ e(s, "DELIVERY_TYPE", "xyvcard.goods.protobuf.DeliveryType"), // 发货模式.
86
+ e(s, "DELIVERY_TYPE_VALUES", {
87
+ SPOT_ONLY: "SPOT_ONLY",
88
+ // 现货发售
89
+ PRESALE: "PRESALE"
90
+ // 预售模式
91
+ }), // 发货模式(现货发售:24小时内、48小时内、72小时内).
92
+ e(s, "DELIVERY_SPOT_TYPE", "xyvcard.goods.protobuf.DeliverySpotType"), // 发货模式(现货发售:24小时内、48小时内、72小时内).
93
+ e(s, "DELIVERY_SPOT_TYPE_VALUES", {
94
+ SPOT_24: "SPOT_24",
95
+ // 24小时内
96
+ SPOT_48: "SPOT_48",
97
+ // 48小时内
98
+ SPOT_72: "SPOT_72"
99
+ // 72小时内
100
+ }), // 核销有效期限.
101
+ e(s, "VALIDITY_TYPE", "xyvcard.goods.protobuf.ValidityType"), // 核销有效期限.
102
+ e(s, "VALIDITY_TYPE_VALUES", {
103
+ DYNAMIC_TIME: "DYNAMIC_TIME",
104
+ // 动态时间
105
+ FIXED_TIME: "FIXED_TIME",
106
+ // 固定时间
107
+ UNLIMITED_TIME: "UNLIMITED_TIME"
108
+ // 无限期
109
+ }), // 可用门店.
110
+ e(s, "USE_BRANCH", "xyvcard.goods.protobuf.UseBranch"), // 可用门店.
111
+ e(s, "USE_BRANCH_VALUES", {
112
+ USE_BRANCH_ALL: "USE_BRANCH_ALL",
113
+ // 全部门店
114
+ USE_BRANCH_PART: "USE_BRANCH_PART"
115
+ // 部分门店
116
+ });
117
+ function h(r, t, a) {
118
+ return !Array.isArray(r) || r.length === 0 ? [] : r.map((u) => {
119
+ let i = [];
120
+ return Array.isArray(u.children) && u.children.length > 0 && (i = h(u.children, t, a)), {
121
+ value: u[a],
122
+ label: u[t],
123
+ parentId: u.parentId,
124
+ children: i
125
+ };
126
+ });
127
+ }
128
+ class g {
129
+ getKey(t) {
130
+ return {
131
+ branchId: t.branchId
132
+ };
133
+ }
134
+ // 查询列表信息门店管理
135
+ findList(t) {
136
+ const a = O().user.tenant;
137
+ return t && (t.hasIsHq = t.isHq != null), T(t), n({
138
+ url: "/v1/shop/branch/list/" + a,
139
+ method: "get",
140
+ params: t
141
+ });
142
+ }
143
+ // 查询门店管理
144
+ findById(t) {
145
+ const a = O().user.tenant;
146
+ return T(t), n({
147
+ url: "/v1/shop/branch/id/" + a + "/" + t.branchId,
148
+ method: "get"
149
+ });
150
+ }
151
+ }
152
+ const m = new g();
153
+ class S {
154
+ constructor(t, a) {
155
+ e(this, "values", L([]));
156
+ // 查询条件
157
+ e(this, "query");
158
+ this.values.length = 0, this.values.push(...t.value), this.query = a;
159
+ }
160
+ // 根据给定键获取业务数据项的值的方法
161
+ getValue(t) {
162
+ for (const a of this.values)
163
+ if (a.key == t)
164
+ return a.value;
165
+ return "";
166
+ }
167
+ }
168
+ class f extends l {
169
+ // 实现 useValues 方法
170
+ useValues() {
171
+ return new Promise((t, a) => {
172
+ I.findList(this.query).then(({ data: _ }) => {
173
+ const u = _.results;
174
+ this.values.length = 0, this.values.push(
175
+ ...u.map(
176
+ (i) => ({
177
+ key: i.shopId,
178
+ value: i.shopName
179
+ })
180
+ )
181
+ ), t(this.values);
182
+ }).catch(a);
183
+ });
184
+ }
185
+ }
186
+ class G extends l {
187
+ // 实现 useValues 方法
188
+ useValues() {
189
+ return new Promise((t, a) => {
190
+ m.findList(this.query).then(({ data: _ }) => {
191
+ const u = _.results;
192
+ this.values.length = 0, this.values.push(
193
+ ...u.map(
194
+ (i) => ({
195
+ key: i.branchId,
196
+ value: i.facadeName
197
+ })
198
+ )
199
+ ), t(this.values);
200
+ }).catch(a);
201
+ });
202
+ }
203
+ }
204
+ class V extends P {
205
+ // 实现 useValues 方法
206
+ useValues() {
207
+ return new Promise((t, a) => {
208
+ v.findTreeListApi(this.query).then(({ data: _ }) => {
209
+ this.values.length = 0, this.values.push(...h(_.results, "label", "value")), t(this.values);
210
+ }).catch(a);
211
+ });
212
+ }
213
+ }
214
+ class Y extends l {
215
+ // 实现 useValues 方法
216
+ useValues() {
217
+ return new Promise((t, a) => {
218
+ y.findList(this.query).then(({ data: _ }) => {
219
+ const u = _.results;
220
+ this.values.length = 0, this.values.push(
221
+ ...u.map(
222
+ (i) => ({
223
+ key: i.specId,
224
+ value: i.specName,
225
+ disabled: i.disabled
226
+ })
227
+ )
228
+ ), t(this.values);
229
+ }).catch(a);
230
+ });
231
+ }
232
+ }
233
+ class B extends l {
234
+ // 实现 useValues 方法
235
+ useValues() {
236
+ return new Promise((t, a) => {
237
+ D.findList(this.query).then(({ data: _ }) => {
238
+ const u = _.results;
239
+ this.values.length = 0, this.values.push(
240
+ ...u.map(
241
+ (i) => ({
242
+ key: i.specValueId,
243
+ value: i.valueName
244
+ })
245
+ )
246
+ ), t(this.values);
247
+ }).catch(a);
248
+ });
249
+ }
250
+ }
251
+ class M extends l {
252
+ // 实现 useValues 方法
253
+ useValues() {
254
+ return new Promise((t, a) => {
255
+ R.findList(this.query).then(({ data: _ }) => {
256
+ const u = _.results;
257
+ this.values.length = 0, this.values.push(
258
+ ...u.map(
259
+ (i) => ({
260
+ key: i.brandId,
261
+ value: i.brandName
262
+ })
263
+ )
264
+ ), t(this.values);
265
+ }).catch(a);
266
+ });
267
+ }
268
+ }
269
+ class b extends l {
270
+ // 实现 useValues 方法
271
+ useValues() {
272
+ return new Promise((t, a) => {
273
+ U.findList(this.query).then(({ data: _ }) => {
274
+ const u = _.results;
275
+ this.values.length = 0, this.values.push(
276
+ ...u.map(
277
+ (i) => ({
278
+ key: i.labelId,
279
+ value: i.labelName
280
+ })
281
+ )
282
+ ), t(this.values);
283
+ }).catch(a);
284
+ });
285
+ }
286
+ }
287
+ class w extends l {
288
+ // 实现 useValues 方法
289
+ useValues() {
290
+ return new Promise((t, a) => {
291
+ N.findList(this.query).then(({ data: _ }) => {
292
+ const u = _.results;
293
+ this.values.length = 0, this.values.push(
294
+ ...u.map(
295
+ (i) => ({
296
+ key: i.spuId,
297
+ value: i.spuName
298
+ })
299
+ )
300
+ ), t(this.values);
301
+ }).catch(a);
302
+ });
303
+ }
304
+ }
305
+ class E {
306
+ }
307
+ // 店铺列表
308
+ e(E, "shopInfoBizDict", new f({})), // 门店列表
309
+ e(E, "shopBranchBizDict", new G({})), // 规格列表
310
+ e(E, "specInfoDict", new Y({})), // 规格值
311
+ e(E, "specValueDict", new B({})), // 上架下架
312
+ e(E, "shelfDict", new S(s.SHELF_VALUES, {})), // 运费类型
313
+ e(E, "freightTypeEnum", new c(
314
+ s.MODULE_GOODS,
315
+ s.ENUM_FREIGHT_TYPE
316
+ )), // 保障服务
317
+ e(E, "goodsEnsureDict", new d(s.DICT_GOODS_ENSURE)), // 规格类型
318
+ e(E, "specTypeEnum", new c(
319
+ s.MODULE_GOODS,
320
+ s.SPEC_TYPE
321
+ )), // 商品查询枚举
322
+ e(E, "goodsSpuListSortEnum", new c(
323
+ s.MODULE_GOODS,
324
+ s.ENUM_GOODS_SPU_List_SORT
325
+ )), e(E, "goodsSpuListSortDict", new S(
326
+ s.GOODS_SPU_VALUES,
327
+ {}
328
+ )), // 审核状态
329
+ e(E, "approvalStatusEnum", new c(
330
+ s.MODULE_GOODS,
331
+ s.ENUM_APPROVAL_STATUS
332
+ )), // 启用禁用
333
+ e(E, "enableDict", new S(s.ENABLE_VALUES, {})), // 商品分类
334
+ e(E, "goodsCategoryListBizLayDict", new V(
335
+ {}
336
+ )), // 品牌列表
337
+ e(E, "brandListBizDict", new M({})), // 标签列表
338
+ e(E, "labelListBizDict", new b({})), // 商品列表
339
+ e(E, "goodsSpuBizDict", new w({})), // 商品品类
340
+ e(E, "goodsSupClassEnum", new c(
341
+ s.MODULE_GOODS,
342
+ s.GOODS_SUP_CLASS
343
+ )), // 是或否
344
+ e(E, "yesOrNoEnum", new S(s.YES_OR_NO, {})), // 预售类型
345
+ e(E, "presaleTypeEnum", new c(
346
+ s.MODULE_GOODS,
347
+ s.GOODS_PRESALE_TYPE
348
+ )), // 尾款支付期限
349
+ e(E, "balancePaymentTypeEnum", new c(
350
+ s.MODULE_GOODS,
351
+ s.BALANCE_PAYMENT_TYPE
352
+ )), // 发货模式
353
+ e(E, "goodsDeliveryTypeEnum", new c(
354
+ s.MODULE_GOODS,
355
+ s.DELIVERY_TYPE
356
+ )), // 发货模式(现货发售:24小时内、48小时内、72小时内).
357
+ e(E, "goodsDeliverySpotTypeEnum", new c(
358
+ s.MODULE_GOODS,
359
+ s.DELIVERY_SPOT_TYPE
360
+ )), // 核销有效期限.
361
+ e(E, "validityTypeEnum", new c(
362
+ s.MODULE_GOODS,
363
+ s.VALIDITY_TYPE
364
+ )), // 可用门店.
365
+ e(E, "useBranchEnum", new c(
366
+ s.MODULE_GOODS,
367
+ s.USE_BRANCH
368
+ ));
369
+ export {
370
+ s as C,
371
+ E as D,
372
+ B as S,
373
+ Y as a
374
+ };