xyvcard-paper-buyer 0.0.29 → 0.0.30
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-B5tQ5VMT.mjs +178 -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 +52 -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--2OAMgrT.mjs +204 -0
- package/dist/{orderAddress-BkCadi1G.mjs → orderAddress-CKllpjjU.mjs} +79 -76
- package/dist/orderInfo-Cl2DftVh.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 +30 -0
- package/dts/lang/order/zh-cn.d.ts +13 -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 +1 -1
- 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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q, ref as V, reactive as D, resolveComponent as s, createElementBlock as w, openBlock as f, createElementVNode as $, createBlock as y, createCommentVNode as W, createVNode as o, unref as
|
|
1
|
+
import { defineComponent as Q, ref as V, reactive as D, resolveComponent as s, createElementBlock as w, openBlock as f, createElementVNode as $, createBlock as y, createCommentVNode as W, createVNode as o, unref as r, withCtx as t, Fragment as R, renderList as E, createTextVNode as v, toDisplayString as I } from "vue";
|
|
2
2
|
import { useI18n as X } from "vue-i18n";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
import { routerUtil as F } from "jmash-core";
|
|
@@ -6,11 +6,11 @@ import { useRouter as Y, useRoute as Z } from "vue-router";
|
|
|
6
6
|
import { D as N } from "./index-BGqp7CRm.mjs";
|
|
7
7
|
import { l as T } from "./index-TclOpCe_.mjs";
|
|
8
8
|
import { _ as ee } from "./userInvoice.vue_vue_type_script_setup_true_lang-cUHb_KPE.mjs";
|
|
9
|
-
import { E as le } from "./el-message-
|
|
9
|
+
import { E as le } from "./el-message-VSzNakoG.mjs";
|
|
10
10
|
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
11
11
|
const te = { class: "app-container" }, ae = { class: "search-container" }, ne = { class: "form-footer" }, se = /* @__PURE__ */ Q({
|
|
12
12
|
__name: "invoiceEdit",
|
|
13
|
-
setup(
|
|
13
|
+
setup(re) {
|
|
14
14
|
const b = Y(), m = Z(), { t: c } = X(), U = m.query.orderCode, L = m.query.organId, g = V(""), _ = V([]);
|
|
15
15
|
function C() {
|
|
16
16
|
T.findMyList({}).then((e) => {
|
|
@@ -28,13 +28,13 @@ const te = { class: "app-container" }, ae = { class: "search-container" }, ne =
|
|
|
28
28
|
infoId: [{ required: !0, message: c("lqfpFps.dwmcRead"), trigger: "blur" }]
|
|
29
29
|
}), B = (e) => {
|
|
30
30
|
const l = _.value.find(
|
|
31
|
-
(
|
|
31
|
+
(d) => d.infoId === n.infoId
|
|
32
32
|
);
|
|
33
33
|
return !l || l.gmfType !== "person" ? !1 : e.dictCode !== "02";
|
|
34
34
|
};
|
|
35
35
|
function P(e) {
|
|
36
36
|
if (e) {
|
|
37
|
-
const l = _.value.find((
|
|
37
|
+
const l = _.value.find((d) => d.infoId === e);
|
|
38
38
|
l && (g.value = l.nsrsbh || "", n.email = l.sendEmail || "", l.gmfType === "person" && (n.fppz = "02"));
|
|
39
39
|
} else
|
|
40
40
|
g.value = "", n.email = "", n.fppz = "";
|
|
@@ -47,7 +47,7 @@ const te = { class: "app-container" }, ae = { class: "search-container" }, ne =
|
|
|
47
47
|
p.value.title = c("common.add"), p.value.visible = !0;
|
|
48
48
|
}
|
|
49
49
|
function S() {
|
|
50
|
-
|
|
50
|
+
b.push({
|
|
51
51
|
path: "/union-information/invoice"
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -55,14 +55,14 @@ const te = { class: "app-container" }, ae = { class: "search-container" }, ne =
|
|
|
55
55
|
var e;
|
|
56
56
|
await ((e = z.value) == null ? void 0 : e.validate((l) => {
|
|
57
57
|
if (l) {
|
|
58
|
-
const
|
|
58
|
+
const d = {
|
|
59
59
|
requestId: n.requestId,
|
|
60
60
|
organId: L,
|
|
61
61
|
orderNo: U,
|
|
62
62
|
infoId: n.infoId,
|
|
63
63
|
fppz: n.fppz
|
|
64
64
|
};
|
|
65
|
-
T.reissue(
|
|
65
|
+
T.reissue(d).then((q) => {
|
|
66
66
|
if (q.status === 200) {
|
|
67
67
|
le({
|
|
68
68
|
message: c("common.submitSuccess"),
|
|
@@ -82,13 +82,13 @@ const te = { class: "app-container" }, ae = { class: "search-container" }, ne =
|
|
|
82
82
|
F.closeTagView(m.fullPath, b, !1);
|
|
83
83
|
}
|
|
84
84
|
return (e, l) => {
|
|
85
|
-
const
|
|
85
|
+
const d = s("el-radio"), q = s("el-radio-group"), i = s("el-form-item"), u = s("el-col"), H = s("el-option"), J = s("el-select"), h = s("el-button"), k = s("el-input"), K = s("el-row"), O = s("el-form");
|
|
86
86
|
return f(), w("div", te, [
|
|
87
87
|
$("div", ae, [
|
|
88
88
|
o(O, {
|
|
89
89
|
ref_key: "lqfpFpsInvoiceFormRef",
|
|
90
90
|
ref: z,
|
|
91
|
-
model:
|
|
91
|
+
model: r(n),
|
|
92
92
|
"label-width": "120px",
|
|
93
93
|
rules: M,
|
|
94
94
|
class: "centered-form"
|
|
@@ -105,11 +105,11 @@ const te = { class: "app-container" }, ae = { class: "search-container" }, ne =
|
|
|
105
105
|
}, {
|
|
106
106
|
default: t(() => [
|
|
107
107
|
o(q, {
|
|
108
|
-
modelValue:
|
|
109
|
-
"onUpdate:modelValue": l[0] || (l[0] = (a) =>
|
|
108
|
+
modelValue: r(n).fppz,
|
|
109
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => r(n).fppz = a)
|
|
110
110
|
}, {
|
|
111
111
|
default: t(() => [
|
|
112
|
-
(f(!0), w(R, null, E(
|
|
112
|
+
(f(!0), w(R, null, E(r(N).fppzDict.values, (a) => (f(), y(d, {
|
|
113
113
|
key: a.dictCode,
|
|
114
114
|
value: a.dictCode,
|
|
115
115
|
disabled: B(a),
|
|
@@ -137,8 +137,8 @@ const te = { class: "app-container" }, ae = { class: "search-container" }, ne =
|
|
|
137
137
|
}, {
|
|
138
138
|
default: t(() => [
|
|
139
139
|
o(J, {
|
|
140
|
-
modelValue:
|
|
141
|
-
"onUpdate:modelValue": l[1] || (l[1] = (a) =>
|
|
140
|
+
modelValue: r(n).infoId,
|
|
141
|
+
"onUpdate:modelValue": l[1] || (l[1] = (a) => r(n).infoId = a),
|
|
142
142
|
placeholder: e.$t("lqfpFps.dwmcRead"),
|
|
143
143
|
data: _.value,
|
|
144
144
|
clearable: "",
|
|
@@ -219,8 +219,8 @@ const te = { class: "app-container" }, ae = { class: "search-container" }, ne =
|
|
|
219
219
|
}, {
|
|
220
220
|
default: t(() => [
|
|
221
221
|
o(k, {
|
|
222
|
-
modelValue:
|
|
223
|
-
"onUpdate:modelValue": l[3] || (l[3] = (a) =>
|
|
222
|
+
modelValue: r(n).email,
|
|
223
|
+
"onUpdate:modelValue": l[3] || (l[3] = (a) => r(n).email = a),
|
|
224
224
|
placeholder: e.$t("lqfpFps.emailRead"),
|
|
225
225
|
"show-word-limit": "",
|
|
226
226
|
disabled: ""
|
|
@@ -266,7 +266,7 @@ const te = { class: "app-container" }, ae = { class: "search-container" }, ne =
|
|
|
266
266
|
]);
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
}), ge = /* @__PURE__ */ oe(se, [["__scopeId", "data-v-
|
|
269
|
+
}), ge = /* @__PURE__ */ oe(se, [["__scopeId", "data-v-08928d72"]]);
|
|
270
270
|
export {
|
|
271
271
|
ge as default
|
|
272
272
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as V, ref as
|
|
1
|
+
import { defineComponent as V, ref as L, reactive as $, resolveComponent as m, createElementBlock as H, openBlock as x, createElementVNode as R, createBlock as N, createCommentVNode as K, createVNode as s, withCtx as c, createTextVNode as v, toDisplayString as _, unref as B } from "vue";
|
|
2
2
|
import { useI18n as P } from "vue-i18n";
|
|
3
3
|
import { useRouter as X, useRoute as G } from "vue-router";
|
|
4
|
-
import { p as W } from "./index-
|
|
4
|
+
import { p as W } from "./index-sU6sAHrn.mjs";
|
|
5
5
|
import { routerUtil as z } from "jmash-core";
|
|
6
6
|
import J from "./sendDialog-Bf8rP763.mjs";
|
|
7
|
-
import { l as
|
|
7
|
+
import { l as g } from "./index-TclOpCe_.mjs";
|
|
8
8
|
import { l as Q } from "./index-CokKesIL.mjs";
|
|
9
9
|
import { c as E } from "./_commonjsHelpers-BVfed4GL.mjs";
|
|
10
10
|
import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -41,9 +41,9 @@ var O = { exports: {} };
|
|
|
41
41
|
o.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(o);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var r = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof E == "object" && E.global === E ? E : void 0, y = r.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), f = r.saveAs || (typeof window != "object" || window !== r ? function() {
|
|
45
45
|
} : "download" in HTMLAnchorElement.prototype && !y ? function(e, o, i) {
|
|
46
|
-
var t =
|
|
46
|
+
var t = r.URL || r.webkitURL, l = document.createElement("a");
|
|
47
47
|
o = o || e.name || "download", l.download = o, l.rel = "noopener", typeof e == "string" ? (l.href = e, l.origin === location.origin ? d(l) : k(l.href) ? w(e, o, i) : d(l, l.target = "_blank")) : (l.href = t.createObjectURL(e), setTimeout(function() {
|
|
48
48
|
t.revokeObjectURL(l.href);
|
|
49
49
|
}, 4e4), setTimeout(function() {
|
|
@@ -60,7 +60,7 @@ var O = { exports: {} };
|
|
|
60
60
|
}
|
|
61
61
|
} : function(e, o, i, t) {
|
|
62
62
|
if (t = t || open("", "_blank"), t && (t.document.title = t.document.body.innerText = "downloading..."), typeof e == "string") return w(e, o, i);
|
|
63
|
-
var l = e.type === "application/octet-stream", C = /constructor/i.test(
|
|
63
|
+
var l = e.type === "application/octet-stream", C = /constructor/i.test(r.HTMLElement) || r.safari, U = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
64
64
|
if ((U || l && C || y) && typeof FileReader < "u") {
|
|
65
65
|
var b = new FileReader();
|
|
66
66
|
b.onloadend = function() {
|
|
@@ -68,23 +68,23 @@ var O = { exports: {} };
|
|
|
68
68
|
u = U ? u : u.replace(/^data:[^;]*;/, "data:attachment/file;"), t ? t.location.href = u : location = u, t = null;
|
|
69
69
|
}, b.readAsDataURL(e);
|
|
70
70
|
} else {
|
|
71
|
-
var
|
|
71
|
+
var a = r.URL || r.webkitURL, n = a.createObjectURL(e);
|
|
72
72
|
t ? t.location = n : location.href = n, t = null, setTimeout(function() {
|
|
73
|
-
|
|
73
|
+
a.revokeObjectURL(n);
|
|
74
74
|
}, 4e4);
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
|
|
77
|
+
r.saveAs = f.saveAs = f, F.exports = f;
|
|
78
78
|
});
|
|
79
79
|
})(O);
|
|
80
80
|
var D = O.exports;
|
|
81
81
|
const Z = { class: "app-container" }, ee = { class: "search-container" }, oe = { class: "title-container" }, te = { class: "image-content" }, ne = /* @__PURE__ */ V({
|
|
82
82
|
__name: "invoiceView",
|
|
83
83
|
setup(F) {
|
|
84
|
-
const A = X(), p = G(), { t: w } = P(), k = p.query.orderCode, d = p.query.organId,
|
|
84
|
+
const A = X(), p = G(), { t: w } = P(), k = p.query.orderCode, d = p.query.organId, r = L(""), y = L(""), f = L("");
|
|
85
85
|
let e = $({});
|
|
86
|
-
Q.findOrderList({ orderNo: k, organId: d }).then(({ data:
|
|
87
|
-
|
|
86
|
+
Q.findOrderList({ orderNo: k, organId: d }).then(({ data: a }) => {
|
|
87
|
+
r.value = a.results[0].fpUuid, y.value = a.results[0].sendEmail, r.value && g.download({ organId: d, fpUuid: r.value }).then((n) => {
|
|
88
88
|
f.value = URL.createObjectURL(n.data);
|
|
89
89
|
});
|
|
90
90
|
});
|
|
@@ -98,40 +98,40 @@ const Z = { class: "app-container" }, ee = { class: "search-container" }, oe = {
|
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
const i =
|
|
101
|
+
const i = L({
|
|
102
102
|
visible: !1
|
|
103
103
|
});
|
|
104
104
|
function t() {
|
|
105
105
|
e.sendEmail = y.value, i.value.visible = !0;
|
|
106
106
|
}
|
|
107
107
|
function l() {
|
|
108
|
-
|
|
108
|
+
g.downloadXML({
|
|
109
109
|
organId: d,
|
|
110
|
-
fpUuid:
|
|
111
|
-
}).then((
|
|
112
|
-
const n = new Blob([
|
|
110
|
+
fpUuid: r.value
|
|
111
|
+
}).then((a) => {
|
|
112
|
+
const n = new Blob([a.data], {
|
|
113
113
|
type: "application/octet-stream"
|
|
114
114
|
});
|
|
115
115
|
D.saveAs(n, "电子发票.xml");
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
function C() {
|
|
119
|
-
|
|
119
|
+
g.downloadPDF({
|
|
120
120
|
organId: d,
|
|
121
|
-
fpUuid:
|
|
122
|
-
}).then((
|
|
123
|
-
const n = new Blob([
|
|
121
|
+
fpUuid: r.value
|
|
122
|
+
}).then((a) => {
|
|
123
|
+
const n = new Blob([a.data], {
|
|
124
124
|
type: "application/octet-stream"
|
|
125
125
|
});
|
|
126
126
|
D.saveAs(n, "电子发票.pdf");
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
function U() {
|
|
130
|
-
|
|
130
|
+
g.downloadOFD({
|
|
131
131
|
organId: d,
|
|
132
|
-
fpUuid:
|
|
133
|
-
}).then((
|
|
134
|
-
const n = new Blob([
|
|
132
|
+
fpUuid: r.value
|
|
133
|
+
}).then((a) => {
|
|
134
|
+
const n = new Blob([a.data], {
|
|
135
135
|
type: "application/octet-stream"
|
|
136
136
|
});
|
|
137
137
|
D.saveAs(n, "电子发票.ofd");
|
|
@@ -140,28 +140,28 @@ const Z = { class: "app-container" }, ee = { class: "search-container" }, oe = {
|
|
|
140
140
|
function b() {
|
|
141
141
|
z.closeTagView(p.fullPath, A, !1);
|
|
142
142
|
}
|
|
143
|
-
return (
|
|
143
|
+
return (a, n) => {
|
|
144
144
|
const u = m("el-button"), q = m("arrow-down"), S = m("el-icon"), j = m("el-dropdown-item"), T = m("el-dropdown-menu"), I = m("el-dropdown"), M = m("el-image");
|
|
145
145
|
return x(), H("div", Z, [
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
R("div", ee, [
|
|
147
|
+
R("div", oe, [
|
|
148
148
|
s(u, {
|
|
149
149
|
type: "primary",
|
|
150
150
|
onClick: b
|
|
151
151
|
}, {
|
|
152
152
|
default: c(() => [
|
|
153
|
-
v(_(
|
|
153
|
+
v(_(a.$t("common.back")), 1)
|
|
154
154
|
]),
|
|
155
155
|
_: 1
|
|
156
156
|
}),
|
|
157
|
-
|
|
157
|
+
R("div", null, [
|
|
158
158
|
s(u, {
|
|
159
159
|
class: "more-btn",
|
|
160
160
|
type: "primary",
|
|
161
161
|
onClick: n[0] || (n[0] = (h) => o())
|
|
162
162
|
}, {
|
|
163
163
|
default: c(() => [
|
|
164
|
-
v(_(
|
|
164
|
+
v(_(a.$t("lqfpFps.requestInvoice")), 1)
|
|
165
165
|
]),
|
|
166
166
|
_: 1
|
|
167
167
|
}),
|
|
@@ -174,7 +174,7 @@ const Z = { class: "app-container" }, ee = { class: "search-container" }, oe = {
|
|
|
174
174
|
onClick: n[1] || (n[1] = (h) => l())
|
|
175
175
|
}, {
|
|
176
176
|
default: c(() => [
|
|
177
|
-
v(_(
|
|
177
|
+
v(_(a.$t("orderInfo.xml")), 1)
|
|
178
178
|
]),
|
|
179
179
|
_: 1
|
|
180
180
|
}),
|
|
@@ -183,7 +183,7 @@ const Z = { class: "app-container" }, ee = { class: "search-container" }, oe = {
|
|
|
183
183
|
onClick: n[2] || (n[2] = (h) => C())
|
|
184
184
|
}, {
|
|
185
185
|
default: c(() => [
|
|
186
|
-
v(_(
|
|
186
|
+
v(_(a.$t("orderInfo.pdf")), 1)
|
|
187
187
|
]),
|
|
188
188
|
_: 1
|
|
189
189
|
}),
|
|
@@ -192,7 +192,7 @@ const Z = { class: "app-container" }, ee = { class: "search-container" }, oe = {
|
|
|
192
192
|
onClick: n[3] || (n[3] = (h) => U())
|
|
193
193
|
}, {
|
|
194
194
|
default: c(() => [
|
|
195
|
-
v(_(
|
|
195
|
+
v(_(a.$t("orderInfo.ofd")), 1)
|
|
196
196
|
]),
|
|
197
197
|
_: 1
|
|
198
198
|
})
|
|
@@ -203,7 +203,7 @@ const Z = { class: "app-container" }, ee = { class: "search-container" }, oe = {
|
|
|
203
203
|
default: c(() => [
|
|
204
204
|
s(u, { type: "primary" }, {
|
|
205
205
|
default: c(() => [
|
|
206
|
-
v(_(
|
|
206
|
+
v(_(a.$t("orderInfo.moreDropdown")) + " ", 1),
|
|
207
207
|
s(S, null, {
|
|
208
208
|
default: c(() => [
|
|
209
209
|
s(q)
|
|
@@ -229,7 +229,7 @@ const Z = { class: "app-container" }, ee = { class: "search-container" }, oe = {
|
|
|
229
229
|
}, 8, ["icon"])
|
|
230
230
|
])
|
|
231
231
|
]),
|
|
232
|
-
|
|
232
|
+
R("div", te, [
|
|
233
233
|
s(M, {
|
|
234
234
|
src: f.value,
|
|
235
235
|
"preview-src-list": [f.value],
|
|
@@ -250,7 +250,7 @@ const Z = { class: "app-container" }, ee = { class: "search-container" }, oe = {
|
|
|
250
250
|
]);
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
}), me = /* @__PURE__ */ Y(ne, [["__scopeId", "data-v-
|
|
253
|
+
}), me = /* @__PURE__ */ Y(ne, [["__scopeId", "data-v-bd96aa7d"]]);
|
|
254
254
|
export {
|
|
255
255
|
me as default
|
|
256
256
|
};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { defineComponent as V, mergeModels as h, useModel as I, reactive as K, onMounted as O, resolveComponent as k, createBlock as T, openBlock as x, withCtx as c, createElementVNode as e, toDisplayString as a, unref as i, createVNode as g, createTextVNode as C } from "vue";
|
|
2
|
+
import { vueMetaEnv as w, useUserStore as S } from "jmash-core";
|
|
3
|
+
import { useI18n as q } from "vue-i18n";
|
|
4
|
+
import { o as A } from "./index-Dph_ktOL.mjs";
|
|
5
|
+
import { E as u } from "./el-message-VSzNakoG.mjs";
|
|
6
|
+
import { ElMessage as v } from "element-plus";
|
|
7
|
+
import { useRouter as R, useRoute as j } from "vue-router";
|
|
8
|
+
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
function z(l) {
|
|
10
|
+
if (navigator.clipboard && window.isSecureContext)
|
|
11
|
+
navigator.clipboard.writeText(l), u({
|
|
12
|
+
message: "复制成功",
|
|
13
|
+
type: "success"
|
|
14
|
+
});
|
|
15
|
+
else {
|
|
16
|
+
let s = document.createElement("input");
|
|
17
|
+
s.style.position = "fixed", s.style.top = "-10000px", s.style.zIndex = "-999", document.body.appendChild(s), s.value = l, s.focus(), s.select();
|
|
18
|
+
try {
|
|
19
|
+
let m = document.execCommand("copy");
|
|
20
|
+
document.body.removeChild(s), m ? u({
|
|
21
|
+
message: "复制成功",
|
|
22
|
+
type: "success"
|
|
23
|
+
}) : u({
|
|
24
|
+
message: "复制失败",
|
|
25
|
+
type: "error"
|
|
26
|
+
});
|
|
27
|
+
} catch {
|
|
28
|
+
document.body.removeChild(s), u({
|
|
29
|
+
message: "当前浏览器不支持复制功能,请检查更新或更换其他浏览器操作",
|
|
30
|
+
type: "error"
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const D = { class: "info-card" }, F = { class: "info-item" }, H = { class: "info-item-item" }, G = { class: "info-item" }, J = { class: "info-item-item" }, L = { class: "info-card-one" }, Q = { class: "info-item" }, W = { class: "info-item-item" }, X = { class: "info-item" }, Y = { class: "info-item-item" }, Z = { class: "info-item" }, ee = { class: "info-item-item" }, te = { class: "footer" }, oe = /* @__PURE__ */ V({
|
|
36
|
+
__name: "onlineBanking",
|
|
37
|
+
props: /* @__PURE__ */ h({
|
|
38
|
+
bankKey: {
|
|
39
|
+
type: Object,
|
|
40
|
+
default: () => ({})
|
|
41
|
+
},
|
|
42
|
+
title: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: ""
|
|
45
|
+
},
|
|
46
|
+
width: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "550px"
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
modelValue: { type: Boolean, default: !1 },
|
|
52
|
+
modelModifiers: {}
|
|
53
|
+
}),
|
|
54
|
+
emits: /* @__PURE__ */ h(["refresh", "close", "open-prompt"], ["update:modelValue"]),
|
|
55
|
+
setup(l, { emit: s }) {
|
|
56
|
+
const { t: m } = q(), M = R(), b = j(), r = l, y = I(l, "modelValue"), f = s, o = K({});
|
|
57
|
+
function $() {
|
|
58
|
+
A.createPay({
|
|
59
|
+
tenant: S().user.tenant,
|
|
60
|
+
merchantNo: w.APP_MERCHANT_NO,
|
|
61
|
+
termNo: w.APP_TERM_NO,
|
|
62
|
+
outOrderNo: r.bankKey.outOrderNo,
|
|
63
|
+
orderTitle: r.bankKey.orderTitle,
|
|
64
|
+
payableAmount: r.bankKey.payableAmount,
|
|
65
|
+
payMode: "EBANK",
|
|
66
|
+
notifyUrl: `${window.location.origin}/v1/front/order/pay_notify/paper/${b.query.shopId}`,
|
|
67
|
+
requestId: Math.random() * 10 + ""
|
|
68
|
+
}).then(({ data: n }) => {
|
|
69
|
+
Object.assign(o, n);
|
|
70
|
+
}).catch(() => {
|
|
71
|
+
v.error("加载支付信息失败");
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
O($);
|
|
75
|
+
function E() {
|
|
76
|
+
A.completedTransfer({
|
|
77
|
+
requestId: Math.random() * 10 + "",
|
|
78
|
+
merchantNo: o.merchantNo,
|
|
79
|
+
orderNo: o.orderNo
|
|
80
|
+
}).then((n) => {
|
|
81
|
+
n.data === !0 ? (v({
|
|
82
|
+
message: m("common.submitSuccess"),
|
|
83
|
+
type: "success"
|
|
84
|
+
}), f("refresh", !0), _(), M.push({
|
|
85
|
+
path: "/buyer/order-info/applyEdit",
|
|
86
|
+
query: { orderId: b.query.orderId }
|
|
87
|
+
})) : f("open-prompt", o);
|
|
88
|
+
}).catch(() => {
|
|
89
|
+
v.error("提交失败,请重试");
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function _() {
|
|
93
|
+
f("close"), y.value = !1;
|
|
94
|
+
}
|
|
95
|
+
function p(n) {
|
|
96
|
+
n && z(n);
|
|
97
|
+
}
|
|
98
|
+
function P() {
|
|
99
|
+
const n = [
|
|
100
|
+
r.bankKey.payableAmount,
|
|
101
|
+
o.postscript,
|
|
102
|
+
o.payeeName,
|
|
103
|
+
o.payeeAccount,
|
|
104
|
+
o.payeeBankName
|
|
105
|
+
].join(" ");
|
|
106
|
+
p(n);
|
|
107
|
+
}
|
|
108
|
+
return (n, t) => {
|
|
109
|
+
const N = k("el-button"), B = k("el-dialog");
|
|
110
|
+
return x(), T(B, {
|
|
111
|
+
modelValue: y.value,
|
|
112
|
+
"onUpdate:modelValue": t[5] || (t[5] = (d) => y.value = d),
|
|
113
|
+
title: l.title,
|
|
114
|
+
width: l.width,
|
|
115
|
+
onClose: _,
|
|
116
|
+
"destroy-on-close": ""
|
|
117
|
+
}, {
|
|
118
|
+
footer: c(() => [
|
|
119
|
+
e("div", te, [
|
|
120
|
+
g(N, { onClick: P }, {
|
|
121
|
+
default: c(() => t[6] || (t[6] = [
|
|
122
|
+
C("一键复制")
|
|
123
|
+
])),
|
|
124
|
+
_: 1,
|
|
125
|
+
__: [6]
|
|
126
|
+
}),
|
|
127
|
+
g(N, {
|
|
128
|
+
type: "primary",
|
|
129
|
+
onClick: E
|
|
130
|
+
}, {
|
|
131
|
+
default: c(() => t[7] || (t[7] = [
|
|
132
|
+
C("已完成转账")
|
|
133
|
+
])),
|
|
134
|
+
_: 1,
|
|
135
|
+
__: [7]
|
|
136
|
+
})
|
|
137
|
+
])
|
|
138
|
+
]),
|
|
139
|
+
default: c(() => [
|
|
140
|
+
t[8] || (t[8] = e("div", { class: "note" }, "注:切勿遗漏交易附言!", -1)),
|
|
141
|
+
e("div", D, [
|
|
142
|
+
e("div", F, [
|
|
143
|
+
e("div", H, [
|
|
144
|
+
e("span", null, a(n.$t("newsPapepr.payableAmount")), 1),
|
|
145
|
+
e("span", null, a(r.bankKey.payableAmount) + "元", 1)
|
|
146
|
+
]),
|
|
147
|
+
e("span", {
|
|
148
|
+
class: "copy-btn",
|
|
149
|
+
onClick: t[0] || (t[0] = (d) => p(r.bankKey.payableAmount))
|
|
150
|
+
}, " 复制 ")
|
|
151
|
+
]),
|
|
152
|
+
e("div", G, [
|
|
153
|
+
e("div", J, [
|
|
154
|
+
e("span", null, a(n.$t("newsPapepr.postscript")), 1),
|
|
155
|
+
e("span", null, a(i(o).postscript), 1)
|
|
156
|
+
]),
|
|
157
|
+
e("span", {
|
|
158
|
+
class: "copy-btn",
|
|
159
|
+
onClick: t[1] || (t[1] = (d) => p(i(o).postscript))
|
|
160
|
+
}, " 复制 ")
|
|
161
|
+
])
|
|
162
|
+
]),
|
|
163
|
+
e("div", L, [
|
|
164
|
+
e("div", Q, [
|
|
165
|
+
e("div", W, [
|
|
166
|
+
e("span", null, a(n.$t("newsPapepr.payeeName")), 1),
|
|
167
|
+
e("span", null, a(i(o).payeeName), 1)
|
|
168
|
+
]),
|
|
169
|
+
e("span", {
|
|
170
|
+
class: "copy-btn",
|
|
171
|
+
onClick: t[2] || (t[2] = (d) => p(i(o).payeeName))
|
|
172
|
+
}, " 复制 ")
|
|
173
|
+
]),
|
|
174
|
+
e("div", X, [
|
|
175
|
+
e("div", Y, [
|
|
176
|
+
e("span", null, a(n.$t("newsPapepr.payeeAccount")), 1),
|
|
177
|
+
e("span", null, a(i(o).payeeAccount), 1)
|
|
178
|
+
]),
|
|
179
|
+
e("span", {
|
|
180
|
+
class: "copy-btn",
|
|
181
|
+
onClick: t[3] || (t[3] = (d) => p(i(o).payeeAccount))
|
|
182
|
+
}, " 复制 ")
|
|
183
|
+
]),
|
|
184
|
+
e("div", Z, [
|
|
185
|
+
e("div", ee, [
|
|
186
|
+
e("span", null, a(n.$t("newsPapepr.payeeBankName")), 1),
|
|
187
|
+
e("span", null, a(i(o).payeeBankName), 1)
|
|
188
|
+
]),
|
|
189
|
+
e("span", {
|
|
190
|
+
class: "copy-btn",
|
|
191
|
+
onClick: t[4] || (t[4] = (d) => p(i(o).payeeBankName))
|
|
192
|
+
}, " 复制 ")
|
|
193
|
+
])
|
|
194
|
+
])
|
|
195
|
+
]),
|
|
196
|
+
_: 1,
|
|
197
|
+
__: [8]
|
|
198
|
+
}, 8, ["modelValue", "title", "width"]);
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
}), me = /* @__PURE__ */ U(oe, [["__scopeId", "data-v-207d92ab"]]);
|
|
202
|
+
export {
|
|
203
|
+
me as default
|
|
204
|
+
};
|