xyvcard-paper-buyer 0.0.39 → 0.0.41

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 (25) hide show
  1. package/dist/{applyEdit-Bcl_bli2.mjs → applyEdit-Cyj9Q0lP.mjs} +36 -36
  2. package/dist/{confirm-BIHrk7gs.mjs → confirm-BYEYokBP.mjs} +24 -26
  3. package/dist/{index-DISDK9IB.mjs → index-DrADb2uC.mjs} +2 -1
  4. package/dist/{index-TclOpCe_.mjs → index-DspCttgG.mjs} +10 -27
  5. package/dist/index.mjs +6 -10
  6. package/dist/{invoice-N1lsQHhB.mjs → invoice-Ca967WuM.mjs} +1 -1
  7. package/dist/{invoiceEdit-CILq1n3W.mjs → invoiceEdit-jwC6d-7m.mjs} +62 -61
  8. package/dist/{invoiceView-ClfMLUV3.mjs → invoiceView-BQ20QFpo.mjs} +5 -4
  9. package/dist/{list-BPfP8vsl.mjs → list-CeY2OdrK.mjs} +28 -25
  10. package/dist/{onlineBanking-DfzIYOBF.mjs → onlineBanking-BjnT3Pli.mjs} +42 -39
  11. package/dist/{orderAddress-CK22n9R3.mjs → orderAddress-DBPQQVGw.mjs} +72 -71
  12. package/dist/{orderInfo-DKPnxmRD.mjs → orderInfo-D_KS6_dc.mjs} +21 -18
  13. package/dist/orderPaper-DAXED5UU.mjs +148 -0
  14. package/dist/{sendDialog-Bf8rP763.mjs → sendDialog-B0HE_2cs.mjs} +1 -1
  15. package/dist/style.css +1 -1
  16. package/dist/{userInvoice-S09QEhkA.mjs → userInvoice-DhoqnQE4.mjs} +1 -1
  17. package/dist/{userInvoice.vue_vue_type_script_setup_true_lang-cUHb_KPE.mjs → userInvoice.vue_vue_type_script_setup_true_lang-DV5JSa_i.mjs} +119 -100
  18. package/dts/api/buyer/lqfp-fp/index.d.ts +1 -3
  19. package/dts/api/buyer/lqfp-fp/types.d.ts +1 -32
  20. package/dts/api/buyer/order-newspaper/types.d.ts +1 -1
  21. package/dts/api/buyer/order-user-address/types.d.ts +1 -0
  22. package/dts/api/buyer/user_invoice/index.d.ts +9 -0
  23. package/dts/api/buyer/user_invoice/types.d.ts +38 -0
  24. package/package.json +4 -4
  25. package/dist/orderPaper-Cscnx-MT.mjs +0 -153
@@ -0,0 +1,9 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { UserInvoiceApi, UserInvoiceReq, UserInvoiceInfoList, UserInvoiceInfoCreateReq, UserInvoiceInfoModel } from "./types";
3
+ declare class UserInvoiceApiImpl implements UserInvoiceApi {
4
+ getKey(): any;
5
+ findMyUserInvoiceList(query: UserInvoiceReq): AxiosPromise<UserInvoiceInfoList>;
6
+ createUserInvoice(data: UserInvoiceInfoCreateReq): AxiosPromise<UserInvoiceInfoModel>;
7
+ }
8
+ declare const userInvoiceApi: UserInvoiceApiImpl;
9
+ export { userInvoiceApi };
@@ -0,0 +1,38 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList } from "jmash-core";
2
+ export interface UserInvoiceApi extends EntityApi {
3
+ }
4
+ export interface UserInvoiceReq extends EntityReq {
5
+ tenant?: string;
6
+ }
7
+ export interface UserInvoiceInfoList extends EntityList {
8
+ results: Array<UserInvoiceInfoModel>;
9
+ }
10
+ export interface UserInvoiceInfoModel extends EntityModel {
11
+ tenant?: string;
12
+ infoId?: string;
13
+ userId?: string;
14
+ gmfType?: string;
15
+ gmfmc?: string;
16
+ nsrsbh?: string;
17
+ sendEmail?: string;
18
+ }
19
+ export interface UserInvoiceInfoCreateReq extends EntityReq {
20
+ tenant?: string;
21
+ requestId?: string;
22
+ infoId?: string;
23
+ gmfType?: string;
24
+ gmfmc?: string;
25
+ nsrsbh?: string;
26
+ gmfdz?: string;
27
+ gmfdh?: string;
28
+ gmfkhh?: string;
29
+ gmfzh?: string;
30
+ sendEmail?: string;
31
+ xsfkhh?: string;
32
+ xsfzh?: string;
33
+ xsfdz?: string;
34
+ xsfdh?: string;
35
+ noticeEmail?: string;
36
+ zrrzjlxDm?: string;
37
+ zrrzjhm?: string;
38
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-paper-buyer",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "peerDependencies": {
22
22
  "axios": "^1.6.7",
23
23
  "element-plus": "^2.11.5",
24
- "jmash-core": "^0.1.15",
24
+ "jmash-core": "^0.1.19",
25
25
  "jmash-dict": "^0.1.2",
26
26
  "jmash-rbac": "^0.1.17",
27
27
  "jmash-region": "^0.1.0",
@@ -29,8 +29,8 @@
29
29
  "vue": "^3.4.21",
30
30
  "vue-i18n": "^9.10.1",
31
31
  "vue-router": "^4.3.0",
32
- "xyvcard-paper-goods": "^0.0.11",
33
- "xyvcard-paper-union": "^0.0.30",
32
+ "xyvcard-paper-goods": "^0.0.13",
33
+ "xyvcard-paper-union": "^0.0.35",
34
34
  "xyvcard-union": "^0.0.82"
35
35
  },
36
36
  "devDependencies": {
@@ -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-388cd498"]]);
151
- export {
152
- pe as default
153
- };