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.
Files changed (39) hide show
  1. package/dist/{applyEdit-BBkGmNz4.mjs → applyEdit-DYinV0av.mjs} +22 -22
  2. package/dist/assets/3a1c0fd6fbc19dd2.png +0 -0
  3. package/dist/confirm-BBtbi4mX.mjs +227 -0
  4. package/dist/{edit-CEqukYUY.mjs → edit-BgQo-uqd.mjs} +24 -24
  5. package/dist/{edit-CCUAR44E.mjs → edit-DHXk9uMQ.mjs} +84 -84
  6. package/dist/el-message-VSzNakoG.mjs +1381 -0
  7. package/dist/{index-CT0KG-ax.mjs → index-1iQKY0yJ.mjs} +512 -494
  8. package/dist/{index-izvLgG-Q.mjs → index-BCSYWkW7.mjs} +159 -163
  9. package/dist/{index-oEQVLdND.mjs → index-DISDK9IB.mjs} +1 -1
  10. package/dist/index-Dph_ktOL.mjs +9456 -0
  11. package/dist/{index-3POeZkeU.mjs → index-ky8hEDAn.mjs} +35 -35
  12. package/dist/index-sU6sAHrn.mjs +35 -0
  13. package/dist/index.mjs +56 -30
  14. package/dist/info-B4ow2tzV.mjs +194 -0
  15. package/dist/{invoiceEdit-CezFMQuV.mjs → invoiceEdit-CILq1n3W.mjs} +18 -18
  16. package/dist/{invoiceView-CQ8xpAcH.mjs → invoiceView-ClfMLUV3.mjs} +37 -37
  17. package/dist/onlineBanking-oV-IPpiL.mjs +206 -0
  18. package/dist/{orderAddress-BkCadi1G.mjs → orderAddress-CKllpjjU.mjs} +79 -76
  19. package/dist/orderInfo-BVT4H9ew.mjs +309 -0
  20. package/dist/{orderPaper-DfDpfRek.mjs → orderPaper-DpSTDYX4.mjs} +35 -37
  21. package/dist/{payment-CaWj9re7.mjs → payment-BkxF9Q0m.mjs} +14 -14
  22. package/dist/prompt-CsoFkmiu.mjs +76 -0
  23. package/dist/style.css +1 -1
  24. package/dts/api/buyer/order-newspaper/index.d.ts +8 -1
  25. package/dts/api/buyer/order-newspaper/types.d.ts +32 -0
  26. package/dts/lang/order/zh-cn.d.ts +17 -0
  27. package/dts/router/index.d.ts +2 -1
  28. package/dts/utils/index.d.ts +1 -0
  29. package/dts/utils/signature.d.ts +7 -0
  30. package/dts/views/buyer/order-newspaper/confirm.vue.d.ts +39 -0
  31. package/dts/views/buyer/order-newspaper/onlineBanking.vue.d.ts +43 -0
  32. package/dts/views/buyer/order-newspaper/orderInfo.vue.d.ts +2 -0
  33. package/dts/views/buyer/order-newspaper/prompt.vue.d.ts +45 -0
  34. package/package.json +2 -2
  35. package/dist/el-message-D5NtBelf.mjs +0 -1229
  36. package/dist/index-C8xOGCSg.mjs +0 -73
  37. package/dist/index-DOOUDqve.mjs +0 -110
  38. package/dist/info-BpCTqM6V.mjs +0 -189
  39. 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 d, withCtx as t, Fragment as R, renderList as E, createTextVNode as v, toDisplayString as I } from "vue";
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-D5NtBelf.mjs";
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(de) {
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
- (r) => r.infoId === n.infoId
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((r) => r.infoId === e);
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
- console.log("点击了管理按钮"), b.push({
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 r = {
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(r).then((q) => {
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 r = 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");
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: d(n),
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: d(n).fppz,
109
- "onUpdate:modelValue": l[0] || (l[0] = (a) => d(n).fppz = 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(d(N).fppzDict.values, (a) => (f(), y(r, {
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: d(n).infoId,
141
- "onUpdate:modelValue": l[1] || (l[1] = (a) => d(n).infoId = 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: d(n).email,
223
- "onUpdate:modelValue": l[3] || (l[3] = (a) => d(n).email = 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-a07178dd"]]);
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 g, reactive as $, resolveComponent as m, createElementBlock as H, openBlock as x, createElementVNode as L, createBlock as N, createCommentVNode as K, createVNode as s, withCtx as c, createTextVNode as v, toDisplayString as _, unref as B } from "vue";
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-DOOUDqve.mjs";
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 R } from "./index-TclOpCe_.mjs";
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 a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof E == "object" && E.global === E ? E : void 0, y = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), f = a.saveAs || (typeof window != "object" || window !== a ? function() {
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 = a.URL || a.webkitURL, l = document.createElement("a");
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(a.HTMLElement) || a.safari, U = /CriOS\/[\d]+/.test(navigator.userAgent);
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 r = a.URL || a.webkitURL, n = r.createObjectURL(e);
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
- r.revokeObjectURL(n);
73
+ a.revokeObjectURL(n);
74
74
  }, 4e4);
75
75
  }
76
76
  });
77
- a.saveAs = f.saveAs = f, F.exports = f;
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, a = g(""), y = g(""), f = g("");
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: r }) => {
87
- a.value = r.results[0].fpUuid, y.value = r.results[0].sendEmail, console.log(a.value), a.value && R.download({ organId: d, fpUuid: a.value }).then((n) => {
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 = g({
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
- R.downloadXML({
108
+ g.downloadXML({
109
109
  organId: d,
110
- fpUuid: a.value
111
- }).then((r) => {
112
- const n = new Blob([r.data], {
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
- R.downloadPDF({
119
+ g.downloadPDF({
120
120
  organId: d,
121
- fpUuid: a.value
122
- }).then((r) => {
123
- const n = new Blob([r.data], {
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
- R.downloadOFD({
130
+ g.downloadOFD({
131
131
  organId: d,
132
- fpUuid: a.value
133
- }).then((r) => {
134
- const n = new Blob([r.data], {
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 (r, n) => {
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
- L("div", ee, [
147
- L("div", oe, [
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(_(r.$t("common.back")), 1)
153
+ v(_(a.$t("common.back")), 1)
154
154
  ]),
155
155
  _: 1
156
156
  }),
157
- L("div", null, [
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(_(r.$t("lqfpFps.requestInvoice")), 1)
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(_(r.$t("orderInfo.xml")), 1)
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(_(r.$t("orderInfo.pdf")), 1)
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(_(r.$t("orderInfo.ofd")), 1)
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(_(r.$t("orderInfo.moreDropdown")) + " ", 1),
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
- L("div", te, [
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-df1dac45"]]);
253
+ }), me = /* @__PURE__ */ Y(ne, [["__scopeId", "data-v-bd96aa7d"]]);
254
254
  export {
255
255
  me as default
256
256
  };
@@ -0,0 +1,206 @@
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 m, createElementVNode as e, toDisplayString as a, unref as r, createVNode as w, createTextVNode as C } from "vue";
2
+ import { vueMetaEnv as g, 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 b } 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 i = document.execCommand("copy");
20
+ document.body.removeChild(s), i ? 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: i } = q(), P = R(), v = j(), p = l, y = I(l, "modelValue"), f = s, o = K({});
57
+ function M() {
58
+ A.createPay({
59
+ tenant: S().user.tenant,
60
+ merchantNo: g.APP_MERCHANT_NO,
61
+ termNo: g.APP_TERM_NO,
62
+ outOrderNo: p.bankKey.outOrderNo,
63
+ orderTitle: p.bankKey.orderTitle,
64
+ payableAmount: p.bankKey.payableAmount,
65
+ payMode: "BANKCOM",
66
+ notifyUrl: `${window.location.origin}/v1/front/order/pay_notify/paper/${v.query.shopId}`,
67
+ requestId: Math.random() * 10 + ""
68
+ }).then(({ data: n }) => {
69
+ Object.assign(o, n);
70
+ }).catch(() => {
71
+ b.error("加载支付信息失败");
72
+ });
73
+ }
74
+ O(M);
75
+ function $() {
76
+ A.completedTransfer({
77
+ requestId: Math.random() * 10 + "",
78
+ merchantNo: o.merchantNo,
79
+ orderNo: o.orderNo
80
+ }).then((n) => {
81
+ n.data === "success" ? (b({
82
+ message: i("common.submitSuccess"),
83
+ type: "success"
84
+ }), f("refresh", !0), _(), P.push({
85
+ path: "/buyer/order-info/applyEdit",
86
+ query: { orderId: v.query.orderId }
87
+ })) : f("open-prompt", o);
88
+ }).catch(() => {
89
+ b.error("提交失败,请重试");
90
+ });
91
+ }
92
+ function _() {
93
+ f("close"), y.value = !1;
94
+ }
95
+ function d(n) {
96
+ n && z(n);
97
+ }
98
+ function B() {
99
+ const n = [
100
+ "注:切勿遗漏交易附言!",
101
+ i("newsPapepr.payableAmount") + " " + (p.bankKey.payableAmount || ""),
102
+ i("newsPapepr.postscript") + " " + (o.postscript || ""),
103
+ i("newsPapepr.payeeName") + " " + (o.payeeName || ""),
104
+ i("newsPapepr.payeeAccount") + " " + (o.payeeAccount || ""),
105
+ i("newsPapepr.payeeBankName") + " " + (o.payeeBankName || "")
106
+ ].join(`
107
+ `);
108
+ d(n);
109
+ }
110
+ return (n, t) => {
111
+ const N = k("el-button"), E = k("el-dialog");
112
+ return x(), T(E, {
113
+ modelValue: y.value,
114
+ "onUpdate:modelValue": t[5] || (t[5] = (c) => y.value = c),
115
+ title: l.title,
116
+ width: l.width,
117
+ onClose: _,
118
+ "destroy-on-close": ""
119
+ }, {
120
+ footer: m(() => [
121
+ e("div", te, [
122
+ w(N, { onClick: B }, {
123
+ default: m(() => t[6] || (t[6] = [
124
+ C("一键复制")
125
+ ])),
126
+ _: 1,
127
+ __: [6]
128
+ }),
129
+ w(N, {
130
+ type: "primary",
131
+ onClick: $
132
+ }, {
133
+ default: m(() => t[7] || (t[7] = [
134
+ C("已完成转账")
135
+ ])),
136
+ _: 1,
137
+ __: [7]
138
+ })
139
+ ])
140
+ ]),
141
+ default: m(() => [
142
+ t[8] || (t[8] = e("div", { class: "note" }, "注:切勿遗漏交易附言!", -1)),
143
+ e("div", D, [
144
+ e("div", F, [
145
+ e("div", H, [
146
+ e("span", null, a(n.$t("newsPapepr.payableAmount")), 1),
147
+ e("span", null, a(p.bankKey.payableAmount) + "元", 1)
148
+ ]),
149
+ e("span", {
150
+ class: "copy-btn",
151
+ onClick: t[0] || (t[0] = (c) => d(p.bankKey.payableAmount))
152
+ }, " 复制 ")
153
+ ]),
154
+ e("div", G, [
155
+ e("div", J, [
156
+ e("span", null, a(n.$t("newsPapepr.postscript")), 1),
157
+ e("span", null, a(r(o).postscript), 1)
158
+ ]),
159
+ e("span", {
160
+ class: "copy-btn",
161
+ onClick: t[1] || (t[1] = (c) => d(r(o).postscript))
162
+ }, " 复制 ")
163
+ ])
164
+ ]),
165
+ e("div", L, [
166
+ e("div", Q, [
167
+ e("div", W, [
168
+ e("span", null, a(n.$t("newsPapepr.payeeName")), 1),
169
+ e("span", null, a(r(o).payeeName), 1)
170
+ ]),
171
+ e("span", {
172
+ class: "copy-btn",
173
+ onClick: t[2] || (t[2] = (c) => d(r(o).payeeName))
174
+ }, " 复制 ")
175
+ ]),
176
+ e("div", X, [
177
+ e("div", Y, [
178
+ e("span", null, a(n.$t("newsPapepr.payeeAccount")), 1),
179
+ e("span", null, a(r(o).payeeAccount), 1)
180
+ ]),
181
+ e("span", {
182
+ class: "copy-btn",
183
+ onClick: t[3] || (t[3] = (c) => d(r(o).payeeAccount))
184
+ }, " 复制 ")
185
+ ]),
186
+ e("div", Z, [
187
+ e("div", ee, [
188
+ e("span", null, a(n.$t("newsPapepr.payeeBankName")), 1),
189
+ e("span", null, a(r(o).payeeBankName), 1)
190
+ ]),
191
+ e("span", {
192
+ class: "copy-btn",
193
+ onClick: t[4] || (t[4] = (c) => d(r(o).payeeBankName))
194
+ }, " 复制 ")
195
+ ])
196
+ ])
197
+ ]),
198
+ _: 1,
199
+ __: [8]
200
+ }, 8, ["modelValue", "title", "width"]);
201
+ };
202
+ }
203
+ }), ce = /* @__PURE__ */ U(oe, [["__scopeId", "data-v-1003b2ca"]]);
204
+ export {
205
+ ce as default
206
+ };