xyvcard-goods 0.0.33 → 0.0.35

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 (116) hide show
  1. package/dist/BatchSetting-B1LcBFPD.mjs +333 -0
  2. package/dist/ChannelProfit-CNSIK87d.mjs +4 -0
  3. package/dist/ChannelProfit.vue_vue_type_script_setup_true_lang-BVTifRY8.mjs +320 -0
  4. package/dist/{GoodsBaseForm-6rzBkBTh.mjs → GoodsBaseForm-BZ2fZmmp.mjs} +1 -1
  5. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BxBTTLdA.mjs +407 -0
  6. package/dist/GoodsLogisticsForm-BqlwdGQ1.mjs +4 -0
  7. package/dist/GoodsLogisticsForm.vue_vue_type_script_setup_true_lang-DJREiSkD.mjs +433 -0
  8. package/dist/GoodsProfitForm-COYRi8sx.mjs +4 -0
  9. package/dist/GoodsProfitForm.vue_vue_type_script_setup_true_lang-BYPWP95J.mjs +2550 -0
  10. package/dist/{GoodsSpecForm-BqaN71rS.mjs → GoodsSpecForm-B4MtETRy.mjs} +1 -1
  11. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BbVK_KNz.mjs +347 -0
  12. package/dist/SingleSku-rWv9vVhv.mjs +351 -0
  13. package/dist/constant-sVd2JbJt.mjs +115 -0
  14. package/dist/edit-B1cmsJpy.mjs +70 -0
  15. package/dist/{edit-DBTNknBy.mjs → edit-Br1Y569l.mjs} +8 -7
  16. package/dist/{edit-CZwlbL9o.mjs → edit-CET8Fr-t.mjs} +18 -18
  17. package/dist/{edit-1Lv_dvlq.mjs → edit-CagYTFKr.mjs} +1 -1
  18. package/dist/{edit-D2zcGl_U.mjs → edit-iJGrWlSv.mjs} +1 -1
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-BmOhw098.mjs → edit.vue_vue_type_script_setup_true_lang-D_0YivhL.mjs} +32 -32
  20. package/dist/{el-message-BB2-39XJ.mjs → el-message-Dj6aaz4G.mjs} +490 -373
  21. package/dist/{index-BhUD_X30.mjs → index copy-kNLE7fPg.mjs } +6 -5
  22. package/dist/index-C61SQFSx.mjs +264 -0
  23. package/dist/index-CeWPdEJD.mjs +713 -0
  24. package/dist/{index-BpXZNA11.mjs → index-Cg6GUdSP.mjs} +3 -3
  25. package/dist/index-CyxnVWnL.mjs +182 -0
  26. package/dist/{index-DGYGNHfx.mjs → index-D9s8hsVw.mjs} +3 -3
  27. package/dist/{index-BXa-atkT.mjs → index-DbnKa_BJ.mjs} +1 -1
  28. package/dist/{index-DXIGHcIv.mjs → index-DoxTu4kg.mjs} +5 -4
  29. package/dist/{index-Cl4wz2yF.mjs → index-kw0UYOIu.mjs} +3 -3
  30. package/dist/{index-CRfiEzkA.mjs → index-xQgC-8Gd.mjs} +1237 -1141
  31. package/dist/index.mjs +1 -1
  32. package/dist/info-CTElDVo6.mjs +376 -0
  33. package/dist/{info-DfbU-CWk.mjs → info-DpGJgdac.mjs} +37 -36
  34. package/dist/{skuForm-DoIpxDvq.mjs → skuForm-C7w9YIDe.mjs} +40 -39
  35. package/dist/skuForm-CPlnCToi.mjs +279 -0
  36. package/dist/skuTable-C-LcASbX.mjs +594 -0
  37. package/dist/spec-DkiGCkuM.mjs +44 -0
  38. package/dist/style.css +1 -1
  39. package/dts/xyvcard-goods/src/App.vue.d.ts +2 -0
  40. package/dts/xyvcard-goods/src/api/dict.d.ts +36 -0
  41. package/dts/xyvcard-goods/src/api/goods-base/index.d.ts +11 -0
  42. package/dts/xyvcard-goods/src/api/goods-base/types.d.ts +33 -0
  43. package/dts/xyvcard-goods/src/api/goods-brand-info/index.d.ts +20 -0
  44. package/dts/xyvcard-goods/src/api/goods-brand-info/types.d.ts +73 -0
  45. package/dts/xyvcard-goods/src/api/goods-category/index.d.ts +23 -0
  46. package/dts/xyvcard-goods/src/api/goods-category/types.d.ts +70 -0
  47. package/dts/xyvcard-goods/src/api/goods-ensure/index.d.ts +13 -0
  48. package/dts/xyvcard-goods/src/api/goods-ensure/types.d.ts +13 -0
  49. package/dts/xyvcard-goods/src/api/goods-label-info/index.d.ts +20 -0
  50. package/dts/xyvcard-goods/src/api/goods-label-info/types.d.ts +70 -0
  51. package/dts/xyvcard-goods/src/api/goods-logistics/index.d.ts +8 -0
  52. package/dts/xyvcard-goods/src/api/goods-logistics/types.d.ts +16 -0
  53. package/dts/xyvcard-goods/src/api/goods-sku/types.d.ts +21 -0
  54. package/dts/xyvcard-goods/src/api/goods-spec/index.d.ts +8 -0
  55. package/dts/xyvcard-goods/src/api/goods-spec/types.d.ts +15 -0
  56. package/dts/xyvcard-goods/src/api/goods-spu/index.d.ts +72 -0
  57. package/dts/xyvcard-goods/src/api/goods-spu/types.d.ts +271 -0
  58. package/dts/xyvcard-goods/src/api/goods-stock/index.d.ts +8 -0
  59. package/dts/xyvcard-goods/src/api/goods-stock/types.d.ts +32 -0
  60. package/dts/xyvcard-goods/src/api/index.d.ts +29 -0
  61. package/dts/xyvcard-goods/src/api/shop-branch/index.d.ts +9 -0
  62. package/dts/xyvcard-goods/src/api/shop-branch/types.d.ts +28 -0
  63. package/dts/xyvcard-goods/src/api/types.d.ts +4 -0
  64. package/dts/xyvcard-goods/src/components/ImageUpload.vue.d.ts +36 -0
  65. package/dts/xyvcard-goods/src/constant.d.ts +107 -0
  66. package/dts/xyvcard-goods/src/index.d.ts +12 -0
  67. package/dts/xyvcard-goods/src/lang/goods/en.d.ts +2 -0
  68. package/dts/xyvcard-goods/src/lang/goods/zh-cn.d.ts +173 -0
  69. package/dts/xyvcard-goods/src/lang/index.d.ts +1 -0
  70. package/dts/xyvcard-goods/src/main.d.ts +7 -0
  71. package/dts/xyvcard-goods/src/permission.d.ts +1 -0
  72. package/dts/xyvcard-goods/src/router/index.d.ts +7 -0
  73. package/dts/xyvcard-goods/src/utils/momentPlugin.d.ts +5 -0
  74. package/dts/xyvcard-goods/src/utils/returnBizLay.d.ts +2 -0
  75. package/dts/xyvcard-goods/src/utils/sku.d.ts +19 -0
  76. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/edit.vue.d.ts +22 -0
  77. package/dts/xyvcard-goods/src/views/goods/goods-brand-info/index.vue.d.ts +2 -0
  78. package/dts/xyvcard-goods/src/views/goods/goods-category/edit.vue.d.ts +22 -0
  79. package/dts/xyvcard-goods/src/views/goods/goods-category/index.vue.d.ts +2 -0
  80. package/dts/xyvcard-goods/src/views/goods/goods-combination/edit.vue.d.ts +2 -0
  81. package/dts/xyvcard-goods/src/views/goods/goods-combination/index.vue.d.ts +2 -0
  82. package/dts/xyvcard-goods/src/views/goods/goods-combination/info.vue.d.ts +2 -0
  83. package/dts/xyvcard-goods/src/views/goods/goods-combination/skuForm.vue.d.ts +20 -0
  84. package/dts/xyvcard-goods/src/views/goods/goods-label-info/edit.vue.d.ts +22 -0
  85. package/dts/xyvcard-goods/src/views/goods/goods-label-info/index.vue.d.ts +2 -0
  86. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/BatchSetting.vue.d.ts +35 -0
  87. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/ChannelProfit.vue.d.ts +22 -0
  88. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsBaseForm.vue.d.ts +34 -0
  89. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsLogisticsForm.vue.d.ts +42 -0
  90. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsProfitForm.vue.d.ts +34 -0
  91. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/GoodsSpecForm.vue.d.ts +42 -0
  92. package/dts/xyvcard-goods/src/views/goods/goods-spu/components/SingleSku.vue.d.ts +23 -0
  93. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy 2.vue.d.ts +2 -0
  94. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit copy.vue.d.ts +2 -0
  95. package/dts/xyvcard-goods/src/views/goods/goods-spu/edit.vue.d.ts +2 -0
  96. package/dts/xyvcard-goods/src/views/goods/goods-spu/index copy.vue.d.ts +2 -0
  97. package/dts/xyvcard-goods/src/views/goods/goods-spu/index.vue.d.ts +2 -0
  98. package/dts/xyvcard-goods/src/views/goods/goods-spu/info.vue.d.ts +2 -0
  99. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuForm.vue.d.ts +42 -0
  100. package/dts/xyvcard-goods/src/views/goods/goods-spu/skuTable.vue.d.ts +53 -0
  101. package/dts/xyvcard-goods/src/views/goods/goods-spu/spec.vue.d.ts +2 -0
  102. package/dts/xyvcard-shop/src/api/shop-branch/index.d.ts +14 -0
  103. package/dts/xyvcard-shop/src/api/shop-branch/types.d.ts +76 -0
  104. package/package.json +6 -5
  105. package/dist/GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs +0 -374
  106. package/dist/GoodsLogisticsForm-CHyQ99Mt.mjs +0 -10
  107. package/dist/GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs +0 -140
  108. package/dist/edit copy 2-DnKLaz3I.mjs +0 -45
  109. package/dist/edit copy-tfwJCdiV.mjs +0 -526
  110. package/dist/edit-Db2EJ9dq.mjs +0 -526
  111. package/dist/index-BHmGYIuc.mjs +0 -24
  112. package/dist/index-Df-F10aZ.mjs +0 -264
  113. package/dist/index-vHQhUQSO.mjs +0 -95
  114. package/dist/info-DDi6GKQH.mjs +0 -365
  115. package/dist/skuForm-DWIoveRP.mjs +0 -475
  116. package/dist/skuTable-BVBtWrf9.mjs +0 -639
@@ -1,140 +0,0 @@
1
- import { defineComponent as G, reactive as _, ref as I, resolveComponent as n, createBlock as v, openBlock as k, unref as o, withCtx as s, createVNode as e, createTextVNode as w } from "vue";
2
- import { useI18n as C } from "vue-i18n";
3
- import { useRoute as N, useRouter as O } from "vue-router";
4
- import { D as i, C as U } from "./index-Df-F10aZ.mjs";
5
- import { useUserStore as h, clearEmpty as A, request as R, routerUtil as q } from "jmash-core";
6
- import { a as F } from "./index-CRfiEzkA.mjs";
7
- import { E as L } from "./el-message-BB2-39XJ.mjs";
8
- class j {
9
- // A设置商品规格与定价信息
10
- create(u) {
11
- return u.tenant = h().user.tenant, A(u), R({
12
- url: "/v1/goods/goods_spec",
13
- method: "patch",
14
- data: u
15
- });
16
- }
17
- }
18
- const B = new j(), K = /* @__PURE__ */ G({
19
- __name: "GoodsSpecForm",
20
- emits: ["submit"],
21
- setup(y, { emit: u }) {
22
- i.presaleTypeEnum.useEnumValues();
23
- const { t: P } = C(), d = N(), b = O();
24
- let l = _({
25
- requestId: Math.random() * 10 + "",
26
- updateMask: "presaleType,isPointsGift,isPointsDeduct,purchaseLimit,balancePaymentType,balancePaymentDays,balancePaymentDate,specType,specId,skiSpecValues",
27
- isPointsGift: !1,
28
- isPointsDeduct: !1,
29
- purchaseLimit: 0,
30
- spuId: "",
31
- presaleType: U.GOODS_PRESALE_TYPE_VALUES.NONE
32
- });
33
- d.query.spuId && F.findById({ spuId: d.query.spuId }).then(({ data: a }) => {
34
- Object.assign(l, a);
35
- });
36
- const S = _({}), f = I(), V = u;
37
- function g() {
38
- var a;
39
- V("submit", {}), (a = f.value) == null || a.validate((t) => {
40
- t && B.create(l).then((r) => {
41
- r.status === 200 && (L({
42
- message: P("common.submitSuccess"),
43
- type: "success"
44
- }), q.closeTagView(d.fullPath, b, !1));
45
- });
46
- });
47
- }
48
- return (a, t) => {
49
- const r = n("jmash-enum-radio"), m = n("el-form-item"), c = n("el-col"), E = n("el-row"), T = n("el-button"), D = n("el-form");
50
- return k(), v(D, {
51
- ref_key: "goodsSpecFormRef",
52
- ref: f,
53
- model: o(l),
54
- "label-width": "130px",
55
- rules: S
56
- }, {
57
- default: s(() => [
58
- e(E, null, {
59
- default: s(() => [
60
- e(c, { span: 12 }, {
61
- default: s(() => [
62
- e(m, {
63
- label: a.$t("goodsSpu.presaleType"),
64
- prop: "presaleType"
65
- }, {
66
- default: s(() => [
67
- e(r, {
68
- modelValue: o(l).presaleType,
69
- "onUpdate:modelValue": t[0] || (t[0] = (p) => o(l).presaleType = p),
70
- data: o(i).presaleTypeEnum.values
71
- }, null, 8, ["modelValue", "data"])
72
- ]),
73
- _: 1
74
- }, 8, ["label"])
75
- ]),
76
- _: 1
77
- }),
78
- e(c, { span: 12 }, {
79
- default: s(() => [
80
- e(m, {
81
- label: a.$t("goodsSpu.isPointsGift"),
82
- prop: "isPointsGift"
83
- }, {
84
- default: s(() => [
85
- e(r, {
86
- modelValue: o(l).isPointsGift,
87
- "onUpdate:modelValue": t[1] || (t[1] = (p) => o(l).isPointsGift = p),
88
- data: o(i).yesOrNoEnum.values
89
- }, null, 8, ["modelValue", "data"])
90
- ]),
91
- _: 1
92
- }, 8, ["label"])
93
- ]),
94
- _: 1
95
- }),
96
- e(c, { span: 12 }, {
97
- default: s(() => [
98
- e(m, {
99
- label: a.$t("goodsSpu.isPointsDeduct"),
100
- prop: "isPointsDeduct"
101
- }, {
102
- default: s(() => [
103
- e(r, {
104
- modelValue: o(l).isPointsDeduct,
105
- "onUpdate:modelValue": t[2] || (t[2] = (p) => o(l).isPointsDeduct = p),
106
- data: o(i).yesOrNoEnum.values
107
- }, null, 8, ["modelValue", "data"])
108
- ]),
109
- _: 1
110
- }, 8, ["label"])
111
- ]),
112
- _: 1
113
- })
114
- ]),
115
- _: 1
116
- }),
117
- e(m, null, {
118
- default: s(() => [
119
- e(T, {
120
- type: "primary",
121
- onClick: g
122
- }, {
123
- default: s(() => t[3] || (t[3] = [
124
- w("保存", -1)
125
- ])),
126
- _: 1,
127
- __: [3]
128
- })
129
- ]),
130
- _: 1
131
- })
132
- ]),
133
- _: 1
134
- }, 8, ["model", "rules"]);
135
- };
136
- }
137
- });
138
- export {
139
- K as _
140
- };
@@ -1,45 +0,0 @@
1
- import { defineComponent as u, ref as f, computed as b, resolveComponent as l, createElementBlock as r, openBlock as n, createVNode as k, unref as s, isRef as v, withCtx as C, Fragment as B, renderList as y, createBlock as F } from "vue";
2
- import { C as m } from "./index-Df-F10aZ.mjs";
3
- import { _ as V } from "./GoodsBaseForm.vue_vue_type_script_setup_true_lang-BmIR352P.mjs";
4
- import { _ as x } from "./GoodsSpecForm.vue_vue_type_script_setup_true_lang-BTFKRiNW.mjs";
5
- import A from "./GoodsLogisticsForm-CHyQ99Mt.mjs";
6
- const E = { class: "app-container" }, L = /* @__PURE__ */ u({
7
- __name: "edit copy 2",
8
- setup(G) {
9
- const e = f(m.TAB_ENUM[0].key), c = {
10
- GoodsBaseForm: V,
11
- GoodsSpecForm: x,
12
- GoodsLogisticsForm: A
13
- };
14
- b(
15
- () => c[e.value]
16
- );
17
- function p(a, t) {
18
- e.value = a.props.name;
19
- }
20
- return (a, t) => {
21
- const _ = l("el-tab-pane"), i = l("el-tabs");
22
- return n(), r("div", E, [
23
- k(i, {
24
- type: "border-card",
25
- modelValue: s(e),
26
- "onUpdate:modelValue": t[0] || (t[0] = (o) => v(e) ? e.value = o : null),
27
- class: "demo-tabs",
28
- onTabClick: p
29
- }, {
30
- default: C(() => [
31
- (n(!0), r(B, null, y(s(m).TAB_ENUM, (o, d) => (n(), F(_, {
32
- key: d,
33
- label: o.value,
34
- name: o.key
35
- }, null, 8, ["label", "name"]))), 128))
36
- ]),
37
- _: 1
38
- }, 8, ["modelValue"])
39
- ]);
40
- };
41
- }
42
- });
43
- export {
44
- L as default
45
- };