xyvcard-paper-buyer 0.0.52 → 0.0.54

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 (35) hide show
  1. package/README.md +51 -51
  2. package/dist/{applyEdit-xjYBzFbb.mjs → applyEdit-CNh3bH5h.mjs} +15 -15
  3. package/dist/{confirm-BK-aSN_z.mjs → confirm-Be02OkOA.mjs} +16 -16
  4. package/dist/{edit-DFyOnrzr.mjs → edit-1PaZ9XLl.mjs} +12 -12
  5. package/dist/{edit-Omp_CxC3.mjs → edit-B3vIbXsy.mjs} +1 -1
  6. package/dist/{index-D043eLPj.mjs → index-BuhpHQLA.mjs} +1 -1
  7. package/dist/{index-BCt6P3MY.mjs → index-C-g3Ei_P.mjs} +1 -1
  8. package/dist/{index-CFbuS8W8.mjs → index-CBX_Yjx4.mjs} +1 -1
  9. package/dist/index-DspCttgG.mjs +72 -0
  10. package/dist/{index-CNxs6SEe.mjs → index-jeaiOykS.mjs} +13 -13
  11. package/dist/index.mjs +2 -2
  12. package/dist/info-DWyFGRq0.mjs +185 -0
  13. package/dist/{invoice-AqP1572z.mjs → invoice-C6mhD6zX.mjs} +2 -2
  14. package/dist/{invoiceEdit-BkCY1bqD.mjs → invoiceEdit-B-GHm9GY.mjs} +77 -79
  15. package/dist/{invoiceView-B80V7jLe.mjs → invoiceView-Cvwqlg-m.mjs} +3 -3
  16. package/dist/{list-B4yYlD1K.mjs → list-BlV0irYa.mjs} +12 -12
  17. package/dist/{onlineBanking-CdDAY0YQ.mjs → onlineBanking-e57OBfmj.mjs} +1 -1
  18. package/dist/{orderAddress-BBFS2Jys.mjs → orderAddress-CqIRyskd.mjs} +2 -2
  19. package/dist/orderInfo-DyMm8TFN.mjs +309 -0
  20. package/dist/{orderPaper-DUCuNxKR.mjs → orderPaper-af69zWms.mjs} +1 -1
  21. package/dist/{payment-C1UwHZy4.mjs → payment-BWhe3mhK.mjs} +7 -7
  22. package/dist/{prompt-DQX4apPU.mjs → prompt-CF5J3V95.mjs} +1 -1
  23. package/dist/{sendDialog-BVaPpA-9.mjs → sendDialog-D50t3cjw.mjs} +5 -5
  24. package/dist/style.css +1 -1
  25. package/dist/{userInvoice-DPxbKmv9.mjs → userInvoice-CDsynyWz.mjs} +1 -1
  26. package/dist/{userInvoice.vue_vue_type_script_setup_true_lang-3eHl8CCv.mjs → userInvoice.vue_vue_type_script_setup_true_lang-Bzqz4vIJ.mjs} +48 -48
  27. package/dts/api/buyer/lqfp-fp/index.d.ts +2 -1
  28. package/dts/api/buyer/lqfp-fp/types.d.ts +17 -0
  29. package/package.json +61 -61
  30. package/dist/index-CxY8_Gfa.mjs +0 -73
  31. package/dist/info-BmV7cZbD.mjs +0 -185
  32. package/dist/orderInfo-BSPKYn7H.mjs +0 -309
  33. package/dts/utils/momentPlugin.d.ts +0 -5
  34. package/dts/utils/signature.d.ts +0 -7
  35. package/dts/views/buyer/order-newspaper/payment copy.vue.d.ts +0 -2
@@ -1,309 +0,0 @@
1
- import { defineComponent as we, ref as _, reactive as h, onMounted as Ke, resolveComponent as c, createElementBlock as Le, openBlock as k, createVNode as r, createBlock as B, createCommentVNode as D, withCtx as m, createElementVNode as t, unref as O, toDisplayString as a, createTextVNode as fe } from "vue";
2
- import { useI18n as Ae } from "vue-i18n";
3
- import { D as ve } from "./index-Knr6dYOL.mjs";
4
- import { o as be } from "./index-BCt6P3MY.mjs";
5
- import { fileApi as ye } from "jmash-core";
6
- import { useRoute as $e, useRouter as Ue } from "vue-router";
7
- import { goodsSpuApi as Me } from "xyvcard-paper-goods";
8
- import qe from "./onlineBanking-CdDAY0YQ.mjs";
9
- import Se from "./prompt-DQX4apPU.mjs";
10
- import Te from "./confirm-BK-aSN_z.mjs";
11
- import { o as Ie } from "./index-B90ZLkZ9.mjs";
12
- import { E as _e } from "./el-message-VSzNakoG.mjs";
13
- import { _ as je } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
14
- const xe = { class: "app-container" }, ze = { class: "subscription-container" }, Re = { class: "newspaper-image" }, Fe = { class: "shanxi-worker-paper" }, We = { class: "subscription-info" }, Ye = { class: "magazine-title" }, Ge = { class: "info-item" }, He = { class: "info-label" }, Je = { class: "info-item" }, Qe = { class: "info-label" }, Xe = { class: "price" }, Ze = { class: "price-value" }, eo = { class: "orderAddresmargin" }, oo = { class: "subscription-container" }, to = { class: "order-container" }, so = { class: "order-info" }, no = { class: "status" }, lo = { class: "order-detail" }, ro = { class: "value" }, io = { class: "order-detail" }, ao = { class: "value" }, po = { class: "payment-section" }, co = { class: "amount" }, mo = { class: "pay-methods" }, uo = /* @__PURE__ */ we({
15
- __name: "orderInfo",
16
- setup(fo) {
17
- const u = $e(), he = Ue(), { t: P } = Ae(), n = _([]), w = _([]), K = _([]), s = h({
18
- bank: { visible: !1, title: P("orderInfo.onlineBanking") },
19
- // 网银弹框
20
- prompt: { visible: !1, title: P("orderInfo.prompt") },
21
- // 提示弹框
22
- confirm: { visible: !1, title: P("orderInfo.confirm") }
23
- // 确认弹框
24
- }), f = _(null), g = h({}), C = h({}), E = h({});
25
- ve.goodsCategoryListBizLayDict.useValues();
26
- function ke(o) {
27
- return o ? new Date(o).toLocaleString() : "";
28
- }
29
- function Pe(o) {
30
- o.mobileEncrypt = !o.mobileEncrypt;
31
- }
32
- function L() {
33
- be.findById({ orderId: u.query.orderId }).then(({ data: o }) => {
34
- var e, d, i, y, I;
35
- n.value = [o], Me.findById({
36
- spuId: (I = (y = (i = (d = (e = n.value) == null ? void 0 : e[0]) == null ? void 0 : d.orderItemList) == null ? void 0 : i.results) == null ? void 0 : y[0]) == null ? void 0 : I.spuId
37
- }).then(({ data: V }) => {
38
- K.value = V.categoryIds;
39
- });
40
- });
41
- }
42
- function A() {
43
- be.findOrderAddressList({ orderId: u.query.orderId }).then(({ data: o }) => {
44
- w.value = o.results;
45
- });
46
- }
47
- Ke(() => {
48
- L(), A(), U();
49
- });
50
- const ge = () => {
51
- Object.keys(s).forEach((o) => {
52
- s[o].visible = !1;
53
- });
54
- }, v = (o, e) => {
55
- ge();
56
- const d = s[o];
57
- e != null && e.title && (d.title = e.title), e != null && e.key && Object.assign({ bank: g, prompt: C, confirm: E }[o], e.key), d.visible = !0;
58
- }, N = (o) => {
59
- s[o].visible = !1;
60
- };
61
- function Ce() {
62
- var o;
63
- (o = n.value) != null && o[0] && v("bank", {
64
- key: {
65
- shopPayInfoId: b,
66
- orderCode: n.value[0].orderCode
67
- }
68
- });
69
- }
70
- function Ee() {
71
- f.value = "bank", v("prompt", {
72
- key: {
73
- shopPayInfoId: b,
74
- orderCode: n.value[0].orderCode
75
- }
76
- });
77
- }
78
- function Ne() {
79
- v("confirm", {
80
- key: {
81
- shopPayInfoId: b,
82
- orderCode: n.value[0].orderCode
83
- }
84
- });
85
- }
86
- function Ve() {
87
- if (f.value) {
88
- const o = {
89
- bank: g,
90
- prompt: C,
91
- confirm: E
92
- };
93
- v(f.value, {
94
- key: o[f.value]
95
- }), f.value = null;
96
- }
97
- }
98
- function Be() {
99
- Ie.createPay({
100
- shopPayInfoId: $,
101
- orderId: u.query.orderId
102
- }).then((o) => {
103
- o.status === 200 && (_e({ message: "提交成功", type: "success" }), he.push({
104
- path: "/buyer/order-newspaper/payment",
105
- query: {
106
- orderId: u.query.orderId,
107
- counterUrl: o.data.counterUrl
108
- }
109
- }));
110
- }).catch(() => {
111
- _e.error("提交失败,请稍后重试");
112
- });
113
- }
114
- let b = "", $ = "";
115
- function U() {
116
- Ie.findPayMode({
117
- shopId: u.query.shopId
118
- }).then(({ data: o }) => {
119
- o.results.forEach((e) => {
120
- e.payMode === "BANKCOM" ? b = e.shopPayId : e.payMode === "UNKNOWNPAY" && ($ = e.shopPayId);
121
- });
122
- });
123
- }
124
- function M() {
125
- L(), A(), U();
126
- }
127
- return (o, e) => {
128
- const d = c("el-image"), i = c("el-table-column"), y = c("jmash-mobileIns-component"), I = c("el-table"), V = c("SuccessFilled"), De = c("el-icon"), Oe = c("el-card");
129
- return k(), Le("div", xe, [
130
- r(Oe, { shadow: "never" }, {
131
- footer: m(() => [
132
- t("div", mo, [
133
- t("button", {
134
- class: "pay-btn",
135
- onClick: e[0] || (e[0] = (l) => Ce())
136
- }, " 网银转账 "),
137
- t("button", {
138
- class: "pay-btn",
139
- onClick: e[1] || (e[1] = (l) => Be())
140
- }, "扫码支付")
141
- ])
142
- ]),
143
- default: m(() => {
144
- var l, q, S, T, j, x, z, R, F, W, Y, G, H, J, Q, X, Z, ee, oe, te, se, ne, le, re, ie, ae, de, pe, ce, me, ue;
145
- return [
146
- e[13] || (e[13] = t("div", { class: "title-content" }, "订单详情", -1)),
147
- t("div", ze, [
148
- t("div", Re, [
149
- t("div", Fe, [
150
- r(d, {
151
- src: O(ye).imageUrl(
152
- (j = (T = (S = (q = (l = n.value) == null ? void 0 : l[0]) == null ? void 0 : q.orderItemList) == null ? void 0 : S.results) == null ? void 0 : T[0]) == null ? void 0 : j.picUrl,
153
- 160,
154
- 160
155
- ),
156
- "preview-src-list": [
157
- O(ye).imageUrl(
158
- (W = (F = (R = (z = (x = n.value) == null ? void 0 : x[0]) == null ? void 0 : z.orderItemList) == null ? void 0 : R.results) == null ? void 0 : F[0]) == null ? void 0 : W.picUrl
159
- )
160
- ],
161
- "preview-teleported": "",
162
- "hide-on-click-modal": "",
163
- fit: "contain",
164
- class: "magazine-image"
165
- }, null, 8, ["src", "preview-src-list"])
166
- ])
167
- ]),
168
- t("div", We, [
169
- t("span", Ye, "《" + a((Q = (J = (H = (G = (Y = n.value) == null ? void 0 : Y[0]) == null ? void 0 : G.orderItemList) == null ? void 0 : H.results) == null ? void 0 : J[0]) == null ? void 0 : Q.spuName) + "》 ", 1),
170
- t("div", Ge, [
171
- t("span", He, [
172
- e[8] || (e[8] = fe("发行频率: ")),
173
- t("span", null, a(O(ve).goodsCategoryListBizLayDict.getValue(K.value.join(","))), 1)
174
- ])
175
- ]),
176
- t("div", Je, [
177
- t("span", Qe, "订阅周期:" + a((Z = (X = n.value) == null ? void 0 : X[0]) == null ? void 0 : Z.remark), 1)
178
- ]),
179
- t("div", Xe, [
180
- t("span", Ze, "¥" + a((ne = (se = (te = (oe = (ee = n.value) == null ? void 0 : ee[0]) == null ? void 0 : oe.orderItemList) == null ? void 0 : te.results) == null ? void 0 : se[0]) == null ? void 0 : ne.salesPrice) + "/年", 1)
181
- ])
182
- ])
183
- ]),
184
- e[14] || (e[14] = t("div", { class: "title-content" }, "收报地址", -1)),
185
- t("div", eo, [
186
- r(I, {
187
- data: w.value,
188
- border: ""
189
- }, {
190
- default: m(() => [
191
- r(i, {
192
- prop: "note",
193
- label: o.$t("orderInfo.unitNames"),
194
- width: "250"
195
- }, null, 8, ["label"]),
196
- r(i, {
197
- prop: "userName",
198
- label: o.$t("orderInfo.userName"),
199
- width: "120"
200
- }, null, 8, ["label"]),
201
- r(i, {
202
- label: o.$t("orderInfo.mobilePhone"),
203
- width: "170"
204
- }, {
205
- default: m(({ row: p }) => [
206
- r(y, {
207
- mobileEncrypt: p.mobileEncrypt,
208
- mobilePhoneIns: p.mobilePhoneIns,
209
- mobilePhone: p.mobilePhone,
210
- onToggleEncrypt: (vo) => Pe(p)
211
- }, null, 8, ["mobileEncrypt", "mobilePhoneIns", "mobilePhone", "onToggleEncrypt"])
212
- ]),
213
- _: 1
214
- }, 8, ["label"]),
215
- r(i, {
216
- prop: "detailInfo",
217
- label: o.$t("orderInfo.address")
218
- }, {
219
- default: m(({ row: p }) => [
220
- fe(a(p.cityName) + a(p.detailInfo), 1)
221
- ]),
222
- _: 1
223
- }, 8, ["label"]),
224
- r(i, {
225
- prop: "goodsNum",
226
- label: o.$t("orderInfo.paperNumber"),
227
- width: "100"
228
- }, null, 8, ["label"])
229
- ]),
230
- _: 1
231
- }, 8, ["data"])
232
- ]),
233
- t("div", oo, [
234
- t("div", to, [
235
- t("div", so, [
236
- t("div", no, [
237
- r(De, {
238
- color: "#42b983",
239
- class: "status-icon"
240
- }, {
241
- default: m(() => [
242
- r(V)
243
- ]),
244
- _: 1
245
- }),
246
- e[9] || (e[9] = t("div", { class: "status-text" }, "订购订单提交成功,请尽快完成付款!", -1))
247
- ]),
248
- t("div", lo, [
249
- e[10] || (e[10] = t("div", { class: "label" }, "订单号", -1)),
250
- t("div", ro, a((re = (le = n.value) == null ? void 0 : le[0]) == null ? void 0 : re.orderCode), 1)
251
- ]),
252
- t("div", io, [
253
- e[11] || (e[11] = t("div", { class: "label" }, "创建时间", -1)),
254
- t("div", ao, a(ke((ae = (ie = n.value) == null ? void 0 : ie[0]) == null ? void 0 : ae.createTime)), 1)
255
- ])
256
- ]),
257
- t("div", po, [
258
- e[12] || (e[12] = t("div", { class: "label" }, "支付金额", -1)),
259
- t("div", co, " ¥" + a((ue = (me = (ce = (pe = (de = n.value) == null ? void 0 : de[0]) == null ? void 0 : pe.orderItemList) == null ? void 0 : ce.results) == null ? void 0 : me[0]) == null ? void 0 : ue.paymentPrice), 1)
260
- ])
261
- ])
262
- ])
263
- ];
264
- }),
265
- _: 1,
266
- __: [13, 14]
267
- }),
268
- s.bank.visible ? (k(), B(qe, {
269
- key: 0,
270
- modelValue: s.bank.visible,
271
- "onUpdate:modelValue": e[2] || (e[2] = (l) => s.bank.visible = l),
272
- title: s.bank.title,
273
- "bank-Key": g,
274
- onRefresh: M,
275
- onClose: e[3] || (e[3] = (l) => N("bank")),
276
- width: "550px",
277
- onOpenPrompt: Ee,
278
- "close-on-click-modal": !1
279
- }, null, 8, ["modelValue", "title", "bank-Key"])) : D("", !0),
280
- s.prompt.visible ? (k(), B(Se, {
281
- key: 1,
282
- modelValue: s.prompt.visible,
283
- "onUpdate:modelValue": e[4] || (e[4] = (l) => s.prompt.visible = l),
284
- title: s.prompt.title,
285
- "prompt-Key": C,
286
- onRefresh: M,
287
- onClose: e[5] || (e[5] = (l) => N("prompt")),
288
- onOpenConfirm: Ne,
289
- onBack: Ve,
290
- width: "550px",
291
- "close-on-click-modal": !1
292
- }, null, 8, ["modelValue", "title", "prompt-Key"])) : D("", !0),
293
- s.confirm.visible ? (k(), B(Te, {
294
- key: 2,
295
- modelValue: s.confirm.visible,
296
- "onUpdate:modelValue": e[6] || (e[6] = (l) => s.confirm.visible = l),
297
- title: s.confirm.title,
298
- "confirm-Key": E,
299
- onClose: e[7] || (e[7] = (l) => N("confirm")),
300
- width: "550px",
301
- "close-on-click-modal": !1
302
- }, null, 8, ["modelValue", "title", "confirm-Key"])) : D("", !0)
303
- ]);
304
- };
305
- }
306
- }), Do = /* @__PURE__ */ je(uo, [["__scopeId", "data-v-173f91ce"]]);
307
- export {
308
- Do as default
309
- };
@@ -1,5 +0,0 @@
1
- import type { App } from "vue";
2
- declare const _default: {
3
- install: (app: App) => void;
4
- };
5
- export default _default;
@@ -1,7 +0,0 @@
1
- import type { PayCreateReq } from "@/api/buyer/order-newspaper/types";
2
- export declare function objectValuesToStr(obj: PayCreateReq): string;
3
- export declare function generateNonceStr(): string;
4
- export declare function buildSignMessage(merchantNo: string, serialNo: string, timestamp: number, nonceStr: string, body: string): string;
5
- export declare function signWithRSA(message: string, privateKey: string): string;
6
- export declare function buildAuthHeader(alg: string, merchantNo: string, serialNo: string, nonceStr: string, timestamp: number, signature: string): string;
7
- export declare function buildFinalAuth(tenant: string, authHeader: string): string;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;