xyvcard-paper-buyer 0.0.40 → 0.0.42

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 (34) hide show
  1. package/README.md +51 -51
  2. package/dist/{applyEdit-B0CKdbR2.mjs → applyEdit-PZxjIdlm.mjs} +6 -5
  3. package/dist/{confirm-HoPA9uSr.mjs → confirm-BYEYokBP.mjs} +24 -26
  4. package/dist/{edit-CgLvvQy2.mjs → edit--iYDGPN6.mjs} +9 -9
  5. package/dist/edit-DxbJEXn-.mjs +260 -0
  6. package/dist/{index-DyTbbNUO.mjs → index-BKZPqxLM.mjs} +518 -500
  7. package/dist/{index-CX-7x1SL.mjs → index-BRBqB4uC.mjs} +44 -37
  8. package/dist/{index-BqwYBqQF.mjs → index-BWV5njqv.mjs} +1 -1
  9. package/dist/{index-BGqp7CRm.mjs → index-CUfcoWMj.mjs} +1 -2
  10. package/dist/{index-C8vnqMMv.mjs → index-C_O5LkoO.mjs} +3 -2
  11. package/dist/index.mjs +6 -10
  12. package/dist/{info-BhjWwF6z.mjs → info-yQ5o6UTa.mjs} +15 -15
  13. package/dist/{invoice-DppfMFDj.mjs → invoice-Ca967WuM.mjs} +2 -2
  14. package/dist/{invoiceEdit-BKEb7oNj.mjs → invoiceEdit-BPyK5oBD.mjs} +31 -30
  15. package/dist/{invoiceView-41EDyu0B.mjs → invoiceView-BQ20QFpo.mjs} +4 -3
  16. package/dist/{list-DNIbCic-.mjs → list-CeY2OdrK.mjs} +28 -25
  17. package/dist/{onlineBanking-BIjxFuQ5.mjs → onlineBanking-CdDAY0YQ.mjs} +47 -44
  18. package/dist/{orderAddress-BHmLnG9Z.mjs → orderAddress-BXu0z9LD.mjs} +80 -79
  19. package/dist/{orderInfo-CiPVCQxz.mjs → orderInfo-CxDN2Vgs.mjs} +24 -21
  20. package/dist/orderPaper-DAXED5UU.mjs +148 -0
  21. package/dist/{payment-B8q1Mpiy.mjs → payment-DD_Lhvf0.mjs} +7 -7
  22. package/dist/{prompt-CF5J3V95.mjs → prompt-DQX4apPU.mjs} +1 -1
  23. package/dist/{sendDialog-D50t3cjw.mjs → sendDialog-B0HE_2cs.mjs} +4 -4
  24. package/dist/style.css +1 -1
  25. package/dist/{userInvoice-DhoqnQE4.mjs → userInvoice-ByXwccaa.mjs} +1 -1
  26. package/dist/{userInvoice.vue_vue_type_script_setup_true_lang-DV5JSa_i.mjs → userInvoice.vue_vue_type_script_setup_true_lang-BaWmhSHl.mjs} +1 -1
  27. package/dts/api/buyer/lqfp-fp/types.d.ts +1 -0
  28. package/dts/api/buyer/order-newspaper/types.d.ts +1 -1
  29. package/dts/api/buyer/order-user-address/types.d.ts +1 -0
  30. package/dts/utils/momentPlugin.d.ts +5 -0
  31. package/dts/views/buyer/order-newspaper/payment copy.vue.d.ts +2 -0
  32. package/package.json +62 -62
  33. package/dist/edit-D2_W7oIL.mjs +0 -227
  34. package/dist/orderPaper-DLv8c7Hi.mjs +0 -153
@@ -1,153 +0,0 @@
1
- import { defineComponent as E, ref as p, computed as y, resolveComponent as C, createElementBlock as B, openBlock as L, createElementVNode as t, createVNode as A, unref as h, toDisplayString as l, withDirectives as M, vModelText as V } from "vue";
2
- import { useRouter as $, useRoute as z } from "vue-router";
3
- import { o as v } from "./index-B90ZLkZ9.mjs";
4
- import { useUserStore as F, fileApi as k } from "jmash-core";
5
- import { E as d } from "./el-message-VSzNakoG.mjs";
6
- import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- const R = { class: "app-container" }, J = { class: "search-container" }, T = { class: "newspaper-info" }, W = { class: "newspaper-preview" }, j = { class: "subscription-form" }, G = { style: { "font-weight": "bold" } }, H = { class: "form-group" }, K = { class: "form-value order-day" }, Q = { class: "form-group" }, X = { class: "price-info" }, Y = { class: "price" }, Z = { class: "form-group" }, ee = { class: "quantity-selector" }, te = { class: "total-price" }, se = { class: "price" }, oe = /* @__PURE__ */ E({
8
- __name: "orderPaper",
9
- setup(re) {
10
- const s = p({
11
- picUrls: ""
12
- }), b = $(), m = z(), f = localStorage.getItem("unionUserInfo"), w = (f ? JSON.parse(f) : {}).orgId;
13
- v.findById({ spuId: m.query.spuId }).then((o) => {
14
- s.value = o.data;
15
- });
16
- const U = y(() => s.value.goodsStartDate && s.value.goodsEndDate ? `${s.value.goodsStartDate}至${s.value.goodsEndDate}` : ""), r = p(1), N = () => {
17
- r.value > 1 && r.value--;
18
- }, P = () => {
19
- r.value++;
20
- }, u = y(() => {
21
- var i, n, a;
22
- const o = ((a = (n = (i = s.value.skuList) == null ? void 0 : i.results) == null ? void 0 : n[0]) == null ? void 0 : a.salePrice) || 0, e = r.value * o;
23
- return parseFloat(e.toFixed(2));
24
- }), D = (o) => {
25
- const e = parseInt(o.target.value);
26
- isNaN(e) || e < 1 ? r.value = 1 : r.value = e;
27
- }, _ = p(""), S = F().user.tenant;
28
- function q() {
29
- v.findUnionName({ tenant: S }).then((o) => {
30
- _.value = o.data.orgName;
31
- });
32
- }
33
- q();
34
- function x() {
35
- var n, a, g, I;
36
- const o = (a = (n = s.value.skuList) == null ? void 0 : n.results) == null ? void 0 : a[0], e = (I = (g = s.value.skuList) == null ? void 0 : g.results) == null ? void 0 : I[0], i = m.query.tenant;
37
- if (!o || !e) {
38
- d({
39
- message: "商品信息不完整",
40
- type: "error"
41
- });
42
- return;
43
- }
44
- v.create({
45
- tenant: i,
46
- requestId: Math.random().toString(),
47
- shopId: s.value.shopId,
48
- spuId: s.value.spuId,
49
- shopBrancheId: w,
50
- salesPrice: u.value,
51
- orderPrice: u.value,
52
- deliveryWay: "self_pickup",
53
- remark: U.value,
54
- unitName: _.value,
55
- orderItems: [
56
- {
57
- skuId: e.skuId,
58
- quantity: r.value
59
- }
60
- ]
61
- }).then((c) => {
62
- c.status === 200 ? (d({
63
- message: "提交成功",
64
- type: "success"
65
- }), b.push({
66
- path: "/buyer/order-newspaper/orderAddress",
67
- query: {
68
- orderPrice: u.value,
69
- orderId: c.data.orderId
70
- }
71
- })) : d({
72
- message: "提交失败",
73
- type: "error"
74
- });
75
- }).catch((c) => {
76
- d({
77
- message: "网络请求失败,请稍后重试",
78
- type: "error"
79
- });
80
- });
81
- }
82
- return (o, e) => {
83
- var n;
84
- const i = C("el-image");
85
- return L(), B("div", R, [
86
- t("div", J, [
87
- t("div", T, [
88
- t("div", W, [
89
- A(i, {
90
- src: h(k).imageUrl(s.value.picUrls, 0, 0),
91
- "preview-src-list": [h(k).imageUrl(s.value.picUrls)],
92
- "preview-teleported": "",
93
- "hide-on-click-modal": "",
94
- fit: "contain"
95
- }, null, 8, ["src", "preview-src-list"])
96
- ]),
97
- t("div", j, [
98
- t("div", G, l(s.value.spuName), 1),
99
- t("div", H, [
100
- e[2] || (e[2] = t("label", { class: "order-label" }, "订阅周期", -1)),
101
- t("div", K, l(s.value.goodsStartDate) + "至" + l(s.value.goodsEndDate), 1)
102
- ]),
103
- t("div", Q, [
104
- e[4] || (e[4] = t("label", { style: { "font-weight": "600", color: "#000", "font-size": "13px" } }, "价格信息", -1)),
105
- t("div", X, [
106
- e[3] || (e[3] = t("span", { class: "form-value" }, "单价:", -1)),
107
- t("div", Y, " ¥" + l((n = s.value.skuList) == null ? void 0 : n.results[0].salePrice), 1)
108
- ])
109
- ]),
110
- t("div", Z, [
111
- t("div", ee, [
112
- e[5] || (e[5] = t("label", { class: "form-value" }, "订阅份数:", -1)),
113
- t("button", {
114
- class: "btn-minus",
115
- onClick: N
116
- }, "-"),
117
- M(t("input", {
118
- type: "text",
119
- "onUpdate:modelValue": e[0] || (e[0] = (a) => r.value = a),
120
- class: "quantity-input",
121
- onInput: D
122
- }, null, 544), [
123
- [
124
- V,
125
- r.value,
126
- void 0,
127
- { number: !0 }
128
- ]
129
- ]),
130
- t("button", {
131
- class: "btn-plus",
132
- onClick: P
133
- }, "+")
134
- ])
135
- ]),
136
- t("div", te, [
137
- e[6] || (e[6] = t("span", { style: { "font-weight": "600", color: "#000", "font-size": "13px" } }, "总价", -1)),
138
- t("div", se, "¥" + l(u.value), 1)
139
- ])
140
- ])
141
- ]),
142
- t("button", {
143
- class: "order-btn",
144
- onClick: e[1] || (e[1] = (a) => x())
145
- }, "立即订购")
146
- ])
147
- ]);
148
- };
149
- }
150
- }), pe = /* @__PURE__ */ O(oe, [["__scopeId", "data-v-024494d4"]]);
151
- export {
152
- pe as default
153
- };