xyvcard-paper-buyer 0.0.29 → 0.0.31
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.
- package/dist/{applyEdit-BBkGmNz4.mjs → applyEdit-DYinV0av.mjs} +22 -22
- package/dist/assets/3a1c0fd6fbc19dd2.png +0 -0
- package/dist/confirm-BBtbi4mX.mjs +227 -0
- package/dist/{edit-CEqukYUY.mjs → edit-BgQo-uqd.mjs} +24 -24
- package/dist/{edit-CCUAR44E.mjs → edit-DHXk9uMQ.mjs} +84 -84
- package/dist/el-message-VSzNakoG.mjs +1381 -0
- package/dist/{index-CT0KG-ax.mjs → index-1iQKY0yJ.mjs} +512 -494
- package/dist/{index-izvLgG-Q.mjs → index-BCSYWkW7.mjs} +159 -163
- package/dist/{index-oEQVLdND.mjs → index-DISDK9IB.mjs} +1 -1
- package/dist/index-Dph_ktOL.mjs +9456 -0
- package/dist/{index-3POeZkeU.mjs → index-ky8hEDAn.mjs} +35 -35
- package/dist/index-sU6sAHrn.mjs +35 -0
- package/dist/index.mjs +56 -30
- package/dist/info-B4ow2tzV.mjs +194 -0
- package/dist/{invoiceEdit-CezFMQuV.mjs → invoiceEdit-CILq1n3W.mjs} +18 -18
- package/dist/{invoiceView-CQ8xpAcH.mjs → invoiceView-ClfMLUV3.mjs} +37 -37
- package/dist/onlineBanking-oV-IPpiL.mjs +206 -0
- package/dist/{orderAddress-BkCadi1G.mjs → orderAddress-CKllpjjU.mjs} +79 -76
- package/dist/orderInfo-BVT4H9ew.mjs +309 -0
- package/dist/{orderPaper-DfDpfRek.mjs → orderPaper-DpSTDYX4.mjs} +35 -37
- package/dist/{payment-CaWj9re7.mjs → payment-BkxF9Q0m.mjs} +14 -14
- package/dist/prompt-CsoFkmiu.mjs +76 -0
- package/dist/style.css +1 -1
- package/dts/api/buyer/order-newspaper/index.d.ts +8 -1
- package/dts/api/buyer/order-newspaper/types.d.ts +32 -0
- package/dts/lang/order/zh-cn.d.ts +17 -0
- package/dts/router/index.d.ts +2 -1
- package/dts/utils/index.d.ts +1 -0
- package/dts/utils/signature.d.ts +7 -0
- package/dts/views/buyer/order-newspaper/confirm.vue.d.ts +39 -0
- package/dts/views/buyer/order-newspaper/onlineBanking.vue.d.ts +43 -0
- package/dts/views/buyer/order-newspaper/orderInfo.vue.d.ts +2 -0
- package/dts/views/buyer/order-newspaper/prompt.vue.d.ts +45 -0
- package/package.json +2 -2
- package/dist/el-message-D5NtBelf.mjs +0 -1229
- package/dist/index-C8xOGCSg.mjs +0 -73
- package/dist/index-DOOUDqve.mjs +0 -110
- package/dist/info-BpCTqM6V.mjs +0 -189
- package/dist/payment copy-CyZWiAyq.mjs +0 -69
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { o as
|
|
4
|
-
import { useTableHooks as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { useRoute as
|
|
7
|
-
import
|
|
8
|
-
import { E as
|
|
9
|
-
import { _ as
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as z, ref as d, computed as q, resolveComponent as m, createElementBlock as F, openBlock as k, createElementVNode as o, createBlock as E, createCommentVNode as U, toDisplayString as p, createVNode as n, withCtx as i, createTextVNode as g, unref as $ } from "vue";
|
|
2
|
+
import { o as D } from "./index-Dph_ktOL.mjs";
|
|
3
|
+
import { o as M } from "./index-BP8zUjOw.mjs";
|
|
4
|
+
import { useTableHooks as G } from "jmash-core";
|
|
5
|
+
import { useI18n as J } from "vue-i18n";
|
|
6
|
+
import { useRoute as K, useRouter as W } from "vue-router";
|
|
7
|
+
import X from "./edit-BgQo-uqd.mjs";
|
|
8
|
+
import { E as y } from "./el-message-VSzNakoG.mjs";
|
|
9
|
+
import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
10
|
+
const Z = { class: "app-container" }, ee = { class: "search-container" }, te = { class: "address-management-container" }, oe = { class: "subscription-info" }, se = { class: "info-item" }, ne = { class: "value" }, le = { class: "info-item" }, ae = { class: "value" }, de = { class: "info-item" }, re = { class: "value" }, ie = { class: "action-bar" }, ue = { class: "address-table" }, me = { class: "footer" }, pe = /* @__PURE__ */ z({
|
|
11
11
|
__name: "orderAddress",
|
|
12
|
-
setup(
|
|
13
|
-
const { t: c } =
|
|
12
|
+
setup(ce) {
|
|
13
|
+
const { t: c } = J(), f = d([]), I = K(), B = W(), v = d(0), x = d(""), r = d({
|
|
14
14
|
title: c("common.edit"),
|
|
15
15
|
visible: !1
|
|
16
16
|
});
|
|
17
|
-
function
|
|
18
|
-
|
|
17
|
+
function L() {
|
|
18
|
+
r.value.title = c("common.add"), r.value.visible = !0;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const C = d("");
|
|
21
|
+
D.findOrderInfoById({ orderId: I.query.orderId }).then((t) => {
|
|
22
|
+
var l, a, _, b;
|
|
22
23
|
x.value = (a = (l = t.data.orderItemList) == null ? void 0 : l.results[0]) == null ? void 0 : a.itemId;
|
|
23
|
-
const e = (
|
|
24
|
-
|
|
24
|
+
const e = (b = (_ = t.data.orderItemList) == null ? void 0 : _.results[0]) == null ? void 0 : b.quantity;
|
|
25
|
+
v.value = typeof e == "number" ? e : 0, C.value = t.data.shopId;
|
|
25
26
|
});
|
|
26
|
-
const h =
|
|
27
|
+
const h = q(() => f.value.reduce((t, e) => t + (e.goodsNum || 0), 0)), P = q(() => v.value - h.value), V = (t) => {
|
|
27
28
|
const e = h.value - (t.goodsNum || 0);
|
|
28
|
-
return
|
|
29
|
-
},
|
|
29
|
+
return v.value - e;
|
|
30
|
+
}, T = (t) => {
|
|
30
31
|
const e = t.goodsNum ?? 0;
|
|
31
32
|
e < 0 && (t.goodsNum = 0);
|
|
32
|
-
const l =
|
|
33
|
-
e > l && (t.goodsNum = l,
|
|
33
|
+
const l = V(t);
|
|
34
|
+
e > l && (t.goodsNum = l, y.warning(`订阅份数不能超过${l}份`));
|
|
34
35
|
};
|
|
35
36
|
N();
|
|
36
37
|
function N() {
|
|
37
|
-
|
|
38
|
+
M.findList().then((t) => {
|
|
38
39
|
f.value = t.data.results.map((e) => ({
|
|
39
40
|
...e,
|
|
40
41
|
goodsNum: 0
|
|
@@ -42,75 +43,77 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
42
43
|
}));
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
|
-
const
|
|
46
|
+
const R = () => {
|
|
46
47
|
const t = f.value.filter((e) => e.goodsNum && e.goodsNum > 0).map((e) => ({
|
|
47
48
|
addressId: e.addressId,
|
|
48
49
|
goodsNum: e.goodsNum
|
|
49
50
|
}));
|
|
50
51
|
if (t.length === 0) {
|
|
51
|
-
|
|
52
|
+
y.warning("请至少为一个地址分配订阅份数");
|
|
52
53
|
return;
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
-
tenant:
|
|
55
|
+
D.createOrderAddress({
|
|
56
|
+
tenant: I.query.tenant,
|
|
56
57
|
requestId: Math.random().toString(),
|
|
57
58
|
orderItemId: x.value,
|
|
58
59
|
userAddresses: t
|
|
59
|
-
// 提交所有有效地址
|
|
60
60
|
}).then((e) => {
|
|
61
|
-
|
|
61
|
+
e && e.data === !0 && (y({
|
|
62
62
|
message: "提交成功",
|
|
63
63
|
type: "success"
|
|
64
|
-
})
|
|
64
|
+
}), B.push({
|
|
65
|
+
path: "/buyer/order-newspaper/orderDetails",
|
|
66
|
+
query: {
|
|
67
|
+
orderId: I.query.orderId,
|
|
68
|
+
shopId: C.value
|
|
69
|
+
}
|
|
70
|
+
}));
|
|
65
71
|
}).catch((e) => {
|
|
66
|
-
|
|
67
|
-
}), M.push({
|
|
68
|
-
path: "/buyer/order-newspaper/payment",
|
|
69
|
-
query: { orderId: v.query.orderId, counterUrl: v.query.counterUrl }
|
|
72
|
+
y.error("提交失败,请稍后重试");
|
|
70
73
|
});
|
|
71
74
|
};
|
|
72
|
-
function
|
|
75
|
+
function j(t) {
|
|
73
76
|
t && N();
|
|
74
77
|
}
|
|
75
|
-
const u =
|
|
76
|
-
function
|
|
78
|
+
const u = d(!1), H = d({}), { tableHooks: A } = G(c, M, H);
|
|
79
|
+
function O() {
|
|
77
80
|
u.value = !1;
|
|
78
81
|
}
|
|
79
|
-
function
|
|
80
|
-
t.updateMask = "",
|
|
82
|
+
function Q(t) {
|
|
83
|
+
t.updateMask = "", A.importExcel(t).then(() => {
|
|
81
84
|
u.value = !1, N();
|
|
82
85
|
});
|
|
83
86
|
}
|
|
84
87
|
return (t, e) => {
|
|
85
|
-
const l = m("el-button"), a = m("el-table-column"),
|
|
86
|
-
return k(),
|
|
87
|
-
o("div",
|
|
88
|
-
o("div",
|
|
88
|
+
const l = m("el-button"), a = m("el-table-column"), _ = m("el-input"), b = m("el-table"), S = m("jmash-import-upload");
|
|
89
|
+
return k(), F("div", Z, [
|
|
90
|
+
o("div", ee, [
|
|
91
|
+
o("div", te, [
|
|
89
92
|
e[11] || (e[11] = o("div", { class: "header" }, [
|
|
90
93
|
o("h2", null, "收报地址")
|
|
91
94
|
], -1)),
|
|
92
|
-
o("div",
|
|
93
|
-
o("div",
|
|
95
|
+
o("div", oe, [
|
|
96
|
+
o("div", se, [
|
|
94
97
|
e[5] || (e[5] = o("span", null, "总订阅份数:", -1)),
|
|
95
|
-
o("span",
|
|
98
|
+
o("span", ne, p(v.value) + "份", 1)
|
|
96
99
|
]),
|
|
97
|
-
o("div",
|
|
100
|
+
o("div", le, [
|
|
98
101
|
e[6] || (e[6] = o("span", null, "已分配:", -1)),
|
|
99
|
-
o("span",
|
|
102
|
+
o("span", ae, p(h.value) + "份", 1)
|
|
100
103
|
]),
|
|
101
|
-
o("div",
|
|
104
|
+
o("div", de, [
|
|
102
105
|
e[7] || (e[7] = o("span", null, "待分配:", -1)),
|
|
103
|
-
o("span",
|
|
106
|
+
o("span", re, p(P.value) + "份", 1)
|
|
104
107
|
])
|
|
105
108
|
]),
|
|
106
|
-
o("div",
|
|
109
|
+
o("div", ie, [
|
|
107
110
|
n(l, {
|
|
108
111
|
type: "danger",
|
|
109
112
|
class: "add-button",
|
|
110
|
-
onClick: e[0] || (e[0] = (s) =>
|
|
113
|
+
onClick: e[0] || (e[0] = (s) => L())
|
|
111
114
|
}, {
|
|
112
115
|
default: i(() => e[8] || (e[8] = [
|
|
113
|
-
|
|
116
|
+
g("新增收报地址")
|
|
114
117
|
])),
|
|
115
118
|
_: 1,
|
|
116
119
|
__: [8]
|
|
@@ -121,14 +124,14 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
121
124
|
onClick: e[1] || (e[1] = (s) => u.value = !0)
|
|
122
125
|
}, {
|
|
123
126
|
default: i(() => e[9] || (e[9] = [
|
|
124
|
-
|
|
127
|
+
g("导入收报地址")
|
|
125
128
|
])),
|
|
126
129
|
_: 1,
|
|
127
130
|
__: [9]
|
|
128
131
|
})
|
|
129
132
|
]),
|
|
130
|
-
o("div",
|
|
131
|
-
n(
|
|
133
|
+
o("div", ue, [
|
|
134
|
+
n(b, {
|
|
132
135
|
data: f.value,
|
|
133
136
|
border: "",
|
|
134
137
|
style: { width: "100%" },
|
|
@@ -164,7 +167,7 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
164
167
|
"min-width": "250"
|
|
165
168
|
}, {
|
|
166
169
|
default: i(({ row: s }) => [
|
|
167
|
-
|
|
170
|
+
g(p(s.cityName) + p(s.detailInfo), 1)
|
|
168
171
|
]),
|
|
169
172
|
_: 1
|
|
170
173
|
}),
|
|
@@ -174,14 +177,14 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
174
177
|
align: "center"
|
|
175
178
|
}, {
|
|
176
179
|
default: i(({ row: s }) => [
|
|
177
|
-
n(
|
|
180
|
+
n(_, {
|
|
178
181
|
modelValue: s.goodsNum,
|
|
179
|
-
"onUpdate:modelValue": (
|
|
182
|
+
"onUpdate:modelValue": (w) => s.goodsNum = w,
|
|
180
183
|
modelModifiers: { number: !0 },
|
|
181
184
|
type: "number",
|
|
182
185
|
min: "0",
|
|
183
|
-
max:
|
|
184
|
-
onChange: (
|
|
186
|
+
max: V(s),
|
|
187
|
+
onChange: (w) => T(s)
|
|
185
188
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "max", "onChange"])
|
|
186
189
|
]),
|
|
187
190
|
_: 1
|
|
@@ -190,14 +193,14 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
190
193
|
_: 1
|
|
191
194
|
}, 8, ["data"])
|
|
192
195
|
]),
|
|
193
|
-
o("div",
|
|
196
|
+
o("div", me, [
|
|
194
197
|
n(l, {
|
|
195
198
|
type: "danger",
|
|
196
199
|
class: "confirm-button",
|
|
197
|
-
onClick: e[2] || (e[2] = (s) =>
|
|
200
|
+
onClick: e[2] || (e[2] = (s) => R())
|
|
198
201
|
}, {
|
|
199
202
|
default: i(() => e[10] || (e[10] = [
|
|
200
|
-
|
|
203
|
+
g("确定")
|
|
201
204
|
])),
|
|
202
205
|
_: 1,
|
|
203
206
|
__: [10]
|
|
@@ -205,26 +208,26 @@ const Y = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
205
208
|
])
|
|
206
209
|
])
|
|
207
210
|
]),
|
|
208
|
-
|
|
211
|
+
r.value.visible ? (k(), E(X, {
|
|
209
212
|
key: 0,
|
|
210
|
-
modelValue:
|
|
211
|
-
"onUpdate:modelValue": e[3] || (e[3] = (s) =>
|
|
212
|
-
title:
|
|
213
|
-
onRefresh:
|
|
213
|
+
modelValue: r.value.visible,
|
|
214
|
+
"onUpdate:modelValue": e[3] || (e[3] = (s) => r.value.visible = s),
|
|
215
|
+
title: r.value.title,
|
|
216
|
+
onRefresh: j,
|
|
214
217
|
width: "500px"
|
|
215
218
|
}, null, 8, ["modelValue", "title"])) : U("", !0),
|
|
216
|
-
u.value ? (k(),
|
|
219
|
+
u.value ? (k(), E(S, {
|
|
217
220
|
key: 1,
|
|
218
221
|
"upload-visible": u.value,
|
|
219
222
|
"template-title": t.$t("sysUser.templateDownload"),
|
|
220
|
-
onTemplateDown: e[4] || (e[4] = (s) =>
|
|
221
|
-
onImportEvents:
|
|
222
|
-
onUploadClosed:
|
|
223
|
+
onTemplateDown: e[4] || (e[4] = (s) => $(A).downloadTemplate($(c)("newsPapepr.names"))),
|
|
224
|
+
onImportEvents: Q,
|
|
225
|
+
onUploadClosed: O
|
|
223
226
|
}, null, 8, ["upload-visible", "template-title"])) : U("", !0)
|
|
224
227
|
]);
|
|
225
228
|
};
|
|
226
229
|
}
|
|
227
|
-
}),
|
|
230
|
+
}), ke = /* @__PURE__ */ Y(pe, [["__scopeId", "data-v-fffbc646"]]);
|
|
228
231
|
export {
|
|
229
|
-
|
|
232
|
+
ke as default
|
|
230
233
|
};
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { defineComponent as Oe, ref as _, reactive as I, onMounted as Ve, resolveComponent as p, createElementBlock as we, openBlock as h, createVNode as l, createBlock as A, createCommentVNode as O, withCtx as u, createElementVNode as t, unref as V, toDisplayString as d, createTextVNode as pe } from "vue";
|
|
2
|
+
import { useI18n as Le } from "vue-i18n";
|
|
3
|
+
import { D as ue } from "./index-BGqp7CRm.mjs";
|
|
4
|
+
import { o as ce } from "./index-1iQKY0yJ.mjs";
|
|
5
|
+
import { fileApi as fe, vueMetaEnv as ve, useUserStore as $e } from "jmash-core";
|
|
6
|
+
import { useRoute as Be, useRouter as Ue } from "vue-router";
|
|
7
|
+
import { goodsSpuApi as De } from "xyvcard-paper-goods";
|
|
8
|
+
import Ke from "./onlineBanking-oV-IPpiL.mjs";
|
|
9
|
+
import Me from "./prompt-CsoFkmiu.mjs";
|
|
10
|
+
import Te from "./confirm-BBtbi4mX.mjs";
|
|
11
|
+
import { o as qe } from "./index-Dph_ktOL.mjs";
|
|
12
|
+
import { E as be } from "./el-message-VSzNakoG.mjs";
|
|
13
|
+
import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
14
|
+
const je = { class: "app-container" }, xe = { class: "subscription-container" }, Se = { class: "newspaper-image" }, ze = { class: "shanxi-worker-paper" }, Fe = { class: "subscription-info" }, He = { class: "magazine-title" }, Ge = { class: "info-item" }, Je = { class: "info-label" }, Qe = { class: "info-item" }, We = { class: "info-label" }, Xe = { class: "price" }, Ye = { class: "price-value" }, Ze = { class: "orderAddresmargin" }, eo = { class: "subscription-container" }, oo = { class: "order-container" }, to = { class: "order-info" }, no = { class: "status" }, so = { class: "order-detail" }, ro = { class: "value" }, lo = { class: "order-detail" }, io = { class: "value" }, ao = { class: "payment-section" }, mo = { class: "amount" }, po = { class: "pay-methods" }, uo = /* @__PURE__ */ Oe({
|
|
15
|
+
__name: "orderInfo",
|
|
16
|
+
setup(co) {
|
|
17
|
+
const f = Be(), ye = Ue(), { t: k } = Le(), n = _([]), w = _([]), L = _([]), s = I({
|
|
18
|
+
bank: { visible: !1, title: k("orderInfo.onlineBanking") },
|
|
19
|
+
// 网银弹框
|
|
20
|
+
prompt: { visible: !1, title: k("orderInfo.prompt") },
|
|
21
|
+
// 提示弹框
|
|
22
|
+
confirm: { visible: !1, title: k("orderInfo.confirm") }
|
|
23
|
+
// 确认弹框
|
|
24
|
+
}), c = _(null), N = I({}), g = I({}), E = I({});
|
|
25
|
+
ue.goodsCategoryListBizLayDict.useValues();
|
|
26
|
+
function _e(o) {
|
|
27
|
+
return o ? new Date(o).toLocaleString() : "";
|
|
28
|
+
}
|
|
29
|
+
function Ie(o) {
|
|
30
|
+
o.mobileEncrypt = !o.mobileEncrypt;
|
|
31
|
+
}
|
|
32
|
+
function $() {
|
|
33
|
+
ce.findById({ orderId: f.query.orderId }).then(({ data: o }) => {
|
|
34
|
+
var e, i, a, b, y;
|
|
35
|
+
n.value = [o], De.findById({
|
|
36
|
+
spuId: (y = (b = (a = (i = (e = n.value) == null ? void 0 : e[0]) == null ? void 0 : i.orderItemList) == null ? void 0 : a.results) == null ? void 0 : b[0]) == null ? void 0 : y.spuId
|
|
37
|
+
}).then(({ data: C }) => {
|
|
38
|
+
L.value = C.categoryIds;
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function B() {
|
|
43
|
+
ce.findOrderAddressList({ orderId: f.query.orderId }).then(({ data: o }) => {
|
|
44
|
+
w.value = o.results;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
Ve(() => {
|
|
48
|
+
$(), B();
|
|
49
|
+
});
|
|
50
|
+
const he = () => {
|
|
51
|
+
Object.keys(s).forEach((o) => {
|
|
52
|
+
s[o].visible = !1;
|
|
53
|
+
});
|
|
54
|
+
}, v = (o, e) => {
|
|
55
|
+
he();
|
|
56
|
+
const i = s[o];
|
|
57
|
+
e != null && e.title && (i.title = e.title), e != null && e.key && Object.assign({ bank: N, prompt: g, confirm: E }[o], e.key), i.visible = !0;
|
|
58
|
+
}, P = (o) => {
|
|
59
|
+
s[o].visible = !1;
|
|
60
|
+
};
|
|
61
|
+
function ke() {
|
|
62
|
+
var e;
|
|
63
|
+
if (!((e = n.value) != null && e[0])) return;
|
|
64
|
+
const o = n.value[0].orderItemList.results[0];
|
|
65
|
+
v("bank", {
|
|
66
|
+
key: {
|
|
67
|
+
outOrderNo: n.value[0].orderCode,
|
|
68
|
+
orderTitle: o.spuName,
|
|
69
|
+
payableAmount: o.paymentPrice
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function Ne(o) {
|
|
74
|
+
c.value = "bank", v("prompt", {
|
|
75
|
+
key: {
|
|
76
|
+
merchantNo: o.merchantNo,
|
|
77
|
+
orderNo: o.orderNo,
|
|
78
|
+
payableAmount: o.payableAmount
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function ge(o) {
|
|
83
|
+
v("confirm", {
|
|
84
|
+
key: {
|
|
85
|
+
merchantNo: o.merchantNo,
|
|
86
|
+
orderNo: o.orderNo
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function Ee() {
|
|
91
|
+
if (c.value) {
|
|
92
|
+
const o = {
|
|
93
|
+
bank: N,
|
|
94
|
+
prompt: g,
|
|
95
|
+
confirm: E
|
|
96
|
+
};
|
|
97
|
+
v(c.value, {
|
|
98
|
+
key: o[c.value]
|
|
99
|
+
}), c.value = null;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function Pe() {
|
|
103
|
+
var e;
|
|
104
|
+
if (!((e = n.value) != null && e[0])) return;
|
|
105
|
+
const o = n.value[0].orderItemList.results[0];
|
|
106
|
+
qe.createPay({
|
|
107
|
+
tenant: $e().user.tenant,
|
|
108
|
+
merchantNo: ve.APP_MERCHANT_NO,
|
|
109
|
+
termNo: ve.APP_TERM_NO1,
|
|
110
|
+
outOrderNo: n.value[0].orderCode,
|
|
111
|
+
orderTitle: o.spuName,
|
|
112
|
+
payableAmount: o.paymentPrice,
|
|
113
|
+
notifyUrl: `${window.location.origin}/v1/front/order/pay_notify/paper/${f.query.shopId}`,
|
|
114
|
+
requestId: Math.random() * 10 + ""
|
|
115
|
+
}).then((i) => {
|
|
116
|
+
i.status === 200 && (be({ message: "提交成功", type: "success" }), ye.push({
|
|
117
|
+
path: "/buyer/order-newspaper/payment",
|
|
118
|
+
query: {
|
|
119
|
+
orderId: f.query.orderId,
|
|
120
|
+
counterUrl: i.data.counterUrl
|
|
121
|
+
}
|
|
122
|
+
}));
|
|
123
|
+
}).catch(() => {
|
|
124
|
+
be.error("提交失败,请稍后重试");
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
function U() {
|
|
128
|
+
$(), B();
|
|
129
|
+
}
|
|
130
|
+
return (o, e) => {
|
|
131
|
+
const i = p("el-image"), a = p("el-table-column"), b = p("jmash-mobileIns-component"), y = p("el-table"), C = p("SuccessFilled"), Ce = p("el-icon"), Ae = p("el-card");
|
|
132
|
+
return h(), we("div", je, [
|
|
133
|
+
l(Ae, { shadow: "never" }, {
|
|
134
|
+
footer: u(() => [
|
|
135
|
+
t("div", po, [
|
|
136
|
+
t("button", {
|
|
137
|
+
class: "pay-btn",
|
|
138
|
+
onClick: e[0] || (e[0] = (r) => ke())
|
|
139
|
+
}, " 网银转账 "),
|
|
140
|
+
t("button", {
|
|
141
|
+
class: "pay-btn",
|
|
142
|
+
onClick: e[1] || (e[1] = (r) => Pe())
|
|
143
|
+
}, "扫码支付")
|
|
144
|
+
])
|
|
145
|
+
]),
|
|
146
|
+
default: u(() => {
|
|
147
|
+
var r, D, K, M, T, q, R, j, x, S, z, F, H, G, J, Q, W, X, Y, Z, ee, oe, te, ne, se, re, le, ie, ae, de, me;
|
|
148
|
+
return [
|
|
149
|
+
e[13] || (e[13] = t("div", { class: "title-content" }, "订单详情", -1)),
|
|
150
|
+
t("div", xe, [
|
|
151
|
+
t("div", Se, [
|
|
152
|
+
t("div", ze, [
|
|
153
|
+
l(i, {
|
|
154
|
+
src: V(fe).imageUrl(
|
|
155
|
+
(T = (M = (K = (D = (r = n.value) == null ? void 0 : r[0]) == null ? void 0 : D.orderItemList) == null ? void 0 : K.results) == null ? void 0 : M[0]) == null ? void 0 : T.picUrl,
|
|
156
|
+
160,
|
|
157
|
+
160
|
|
158
|
+
),
|
|
159
|
+
"preview-src-list": [
|
|
160
|
+
V(fe).imageUrl(
|
|
161
|
+
(S = (x = (j = (R = (q = n.value) == null ? void 0 : q[0]) == null ? void 0 : R.orderItemList) == null ? void 0 : j.results) == null ? void 0 : x[0]) == null ? void 0 : S.picUrl
|
|
162
|
+
)
|
|
163
|
+
],
|
|
164
|
+
"preview-teleported": "",
|
|
165
|
+
"hide-on-click-modal": "",
|
|
166
|
+
fit: "contain",
|
|
167
|
+
class: "magazine-image"
|
|
168
|
+
}, null, 8, ["src", "preview-src-list"])
|
|
169
|
+
])
|
|
170
|
+
]),
|
|
171
|
+
t("div", Fe, [
|
|
172
|
+
t("span", He, "《" + d((J = (G = (H = (F = (z = n.value) == null ? void 0 : z[0]) == null ? void 0 : F.orderItemList) == null ? void 0 : H.results) == null ? void 0 : G[0]) == null ? void 0 : J.spuName) + "》 ", 1),
|
|
173
|
+
t("div", Ge, [
|
|
174
|
+
t("span", Je, [
|
|
175
|
+
e[8] || (e[8] = pe("发行频率: ")),
|
|
176
|
+
t("span", null, d(V(ue).goodsCategoryListBizLayDict.getValue(L.value.join(","))), 1)
|
|
177
|
+
])
|
|
178
|
+
]),
|
|
179
|
+
t("div", Qe, [
|
|
180
|
+
t("span", We, "订阅周期:" + d((W = (Q = n.value) == null ? void 0 : Q[0]) == null ? void 0 : W.remark), 1)
|
|
181
|
+
]),
|
|
182
|
+
t("div", Xe, [
|
|
183
|
+
t("span", Ye, "¥" + d((oe = (ee = (Z = (Y = (X = n.value) == null ? void 0 : X[0]) == null ? void 0 : Y.orderItemList) == null ? void 0 : Z.results) == null ? void 0 : ee[0]) == null ? void 0 : oe.salesPrice) + "/年", 1)
|
|
184
|
+
])
|
|
185
|
+
])
|
|
186
|
+
]),
|
|
187
|
+
e[14] || (e[14] = t("div", { class: "title-content" }, "收报地址", -1)),
|
|
188
|
+
t("div", Ze, [
|
|
189
|
+
l(y, {
|
|
190
|
+
data: w.value,
|
|
191
|
+
border: ""
|
|
192
|
+
}, {
|
|
193
|
+
default: u(() => [
|
|
194
|
+
l(a, {
|
|
195
|
+
prop: "note",
|
|
196
|
+
label: o.$t("orderInfo.unitNames"),
|
|
197
|
+
width: "250"
|
|
198
|
+
}, null, 8, ["label"]),
|
|
199
|
+
l(a, {
|
|
200
|
+
prop: "userName",
|
|
201
|
+
label: o.$t("orderInfo.userName"),
|
|
202
|
+
width: "120"
|
|
203
|
+
}, null, 8, ["label"]),
|
|
204
|
+
l(a, {
|
|
205
|
+
label: o.$t("orderInfo.mobilePhone"),
|
|
206
|
+
width: "170"
|
|
207
|
+
}, {
|
|
208
|
+
default: u(({ row: m }) => [
|
|
209
|
+
l(b, {
|
|
210
|
+
mobileEncrypt: m.mobileEncrypt,
|
|
211
|
+
mobilePhoneIns: m.mobilePhoneIns,
|
|
212
|
+
mobilePhone: m.mobilePhone,
|
|
213
|
+
onToggleEncrypt: (fo) => Ie(m)
|
|
214
|
+
}, null, 8, ["mobileEncrypt", "mobilePhoneIns", "mobilePhone", "onToggleEncrypt"])
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}, 8, ["label"]),
|
|
218
|
+
l(a, {
|
|
219
|
+
prop: "detailInfo",
|
|
220
|
+
label: o.$t("orderInfo.address")
|
|
221
|
+
}, {
|
|
222
|
+
default: u(({ row: m }) => [
|
|
223
|
+
pe(d(m.cityName) + d(m.detailInfo), 1)
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
}, 8, ["label"]),
|
|
227
|
+
l(a, {
|
|
228
|
+
prop: "goodsNum",
|
|
229
|
+
label: o.$t("orderInfo.paperNumber"),
|
|
230
|
+
width: "100"
|
|
231
|
+
}, null, 8, ["label"])
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
}, 8, ["data"])
|
|
235
|
+
]),
|
|
236
|
+
t("div", eo, [
|
|
237
|
+
t("div", oo, [
|
|
238
|
+
t("div", to, [
|
|
239
|
+
t("div", no, [
|
|
240
|
+
l(Ce, {
|
|
241
|
+
color: "#42b983",
|
|
242
|
+
class: "status-icon"
|
|
243
|
+
}, {
|
|
244
|
+
default: u(() => [
|
|
245
|
+
l(C)
|
|
246
|
+
]),
|
|
247
|
+
_: 1
|
|
248
|
+
}),
|
|
249
|
+
e[9] || (e[9] = t("div", { class: "status-text" }, "订购订单提交成功,请尽快完成付款!", -1))
|
|
250
|
+
]),
|
|
251
|
+
t("div", so, [
|
|
252
|
+
e[10] || (e[10] = t("div", { class: "label" }, "订单号", -1)),
|
|
253
|
+
t("div", ro, d((ne = (te = n.value) == null ? void 0 : te[0]) == null ? void 0 : ne.orderCode), 1)
|
|
254
|
+
]),
|
|
255
|
+
t("div", lo, [
|
|
256
|
+
e[11] || (e[11] = t("div", { class: "label" }, "创建时间", -1)),
|
|
257
|
+
t("div", io, d(_e((re = (se = n.value) == null ? void 0 : se[0]) == null ? void 0 : re.createTime)), 1)
|
|
258
|
+
])
|
|
259
|
+
]),
|
|
260
|
+
t("div", ao, [
|
|
261
|
+
e[12] || (e[12] = t("div", { class: "label" }, "支付金额", -1)),
|
|
262
|
+
t("div", mo, " ¥" + d((me = (de = (ae = (ie = (le = n.value) == null ? void 0 : le[0]) == null ? void 0 : ie.orderItemList) == null ? void 0 : ae.results) == null ? void 0 : de[0]) == null ? void 0 : me.paymentPrice), 1)
|
|
263
|
+
])
|
|
264
|
+
])
|
|
265
|
+
])
|
|
266
|
+
];
|
|
267
|
+
}),
|
|
268
|
+
_: 1,
|
|
269
|
+
__: [13, 14]
|
|
270
|
+
}),
|
|
271
|
+
s.bank.visible ? (h(), A(Ke, {
|
|
272
|
+
key: 0,
|
|
273
|
+
modelValue: s.bank.visible,
|
|
274
|
+
"onUpdate:modelValue": e[2] || (e[2] = (r) => s.bank.visible = r),
|
|
275
|
+
title: s.bank.title,
|
|
276
|
+
"bank-Key": N,
|
|
277
|
+
onRefresh: U,
|
|
278
|
+
onClose: e[3] || (e[3] = (r) => P("bank")),
|
|
279
|
+
width: "550px",
|
|
280
|
+
onOpenPrompt: Ne
|
|
281
|
+
}, null, 8, ["modelValue", "title", "bank-Key"])) : O("", !0),
|
|
282
|
+
s.prompt.visible ? (h(), A(Me, {
|
|
283
|
+
key: 1,
|
|
284
|
+
modelValue: s.prompt.visible,
|
|
285
|
+
"onUpdate:modelValue": e[4] || (e[4] = (r) => s.prompt.visible = r),
|
|
286
|
+
title: s.prompt.title,
|
|
287
|
+
"prompt-Key": g,
|
|
288
|
+
onRefresh: U,
|
|
289
|
+
onClose: e[5] || (e[5] = (r) => P("prompt")),
|
|
290
|
+
onOpenConfirm: ge,
|
|
291
|
+
onBack: Ee,
|
|
292
|
+
width: "550px"
|
|
293
|
+
}, null, 8, ["modelValue", "title", "prompt-Key"])) : O("", !0),
|
|
294
|
+
s.confirm.visible ? (h(), A(Te, {
|
|
295
|
+
key: 2,
|
|
296
|
+
modelValue: s.confirm.visible,
|
|
297
|
+
"onUpdate:modelValue": e[6] || (e[6] = (r) => s.confirm.visible = r),
|
|
298
|
+
title: s.confirm.title,
|
|
299
|
+
"confirm-Key": E,
|
|
300
|
+
onClose: e[7] || (e[7] = (r) => P("confirm")),
|
|
301
|
+
width: "550px"
|
|
302
|
+
}, null, 8, ["modelValue", "title", "confirm-Key"])) : O("", !0)
|
|
303
|
+
]);
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
}), Oo = /* @__PURE__ */ Re(uo, [["__scopeId", "data-v-cc4f27b4"]]);
|
|
307
|
+
export {
|
|
308
|
+
Oo as default
|
|
309
|
+
};
|