xyvcard-paper-buyer 0.0.6 → 0.0.7

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 (29) hide show
  1. package/dist/_commonjsHelpers-BVfed4GL.mjs +28 -0
  2. package/dist/{applyEdit-pzAI4h9A.mjs → applyEdit-u3SPAGEW.mjs} +3 -3
  3. package/dist/{index-DecGu_zO.mjs → index-0hEUyaRA.mjs} +69 -61
  4. package/dist/{index-D07dGPVZ.mjs → index-CT0KG-ax.mjs} +116 -138
  5. package/dist/index-TclOpCe_.mjs +89 -0
  6. package/dist/index.mjs +5 -3
  7. package/dist/{info-DH7jH9F-.mjs → info-CVaS8hdZ.mjs} +1 -1
  8. package/dist/invoice-DG1zDaqb.mjs +173 -0
  9. package/dist/invoiceEdit-zNW26cGt.mjs +4 -0
  10. package/dist/invoiceEdit.vue_vue_type_script_setup_true_lang-DakU-TWG.mjs +124 -0
  11. package/dist/invoiceView-Cshwyw3t.mjs +265 -0
  12. package/dist/{list-vrRKPRLU.mjs → list-CvwEEzhX.mjs} +1 -1
  13. package/dist/sendDialog-25fhb-Uj.mjs +120 -0
  14. package/dist/style.css +1 -1
  15. package/dist/{userInvoice-BKAsWcqv.mjs → userInvoice-CCsRE3bA.mjs} +1 -1
  16. package/dist/{userInvoice.vue_vue_type_script_setup_true_lang-o13refla.mjs → userInvoice.vue_vue_type_script_setup_true_lang-CjLciTA0.mjs} +1 -1
  17. package/dts/api/buyer/lqfp-fp/index.d.ts +5 -2
  18. package/dts/api/buyer/lqfp-fp/types.d.ts +8 -1
  19. package/dts/api/buyer/lqfp-fps/index.d.ts +2 -2
  20. package/dts/api/buyer/lqfp-fps/types.d.ts +5 -1
  21. package/dts/api/buyer/order-info/types.d.ts +4 -3
  22. package/dts/lang/order/zh-cn.d.ts +2 -0
  23. package/dts/views/buyer/order-info/invoiceEdit.vue.d.ts +10 -0
  24. package/dts/views/buyer/order-info/sendDialog.vue.d.ts +12 -1
  25. package/package.json +2 -2
  26. package/dist/index-B1a-Ksur.mjs +0 -63
  27. package/dist/invoice-D0pCTiEx.mjs +0 -170
  28. package/dist/invoiceView-BcVwgiVq.mjs +0 -145
  29. package/dist/sendDialog-SIGRBNQj.mjs +0 -113
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-paper-buyer",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "jmash-rbac": "^0.1.17",
31
31
  "jmash-region": "^0.1.0",
32
32
  "xyvcard-union": "^0.0.82",
33
- "xyvcard-paper-union": "^0.0.11"
33
+ "xyvcard-paper-union": "^0.0.12"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@rushstack/eslint-patch": "^1.3.3",
@@ -1,63 +0,0 @@
1
- import { useUserStore as r, clearEmpty as n, request as o } from "jmash-core";
2
- class s {
3
- getKey() {
4
- }
5
- // 查询列表信息乐企发票
6
- findList(t) {
7
- const e = r().user.tenant;
8
- return n(t), o({
9
- url: "/v1/lqfp/lqfp_fp_detail/list/" + e,
10
- method: "get",
11
- params: t
12
- });
13
- }
14
- // 发送邮箱
15
- sendEmail(t) {
16
- return n(t), o({
17
- url: "/v1/front/lqfp/fp_send",
18
- method: "post",
19
- data: t
20
- });
21
- }
22
- // 查看详情里面的发票图片展示接口
23
- download(t) {
24
- const e = r().user.tenant;
25
- return n(t), o({
26
- url: `/v1/front/lqfp/fp_down/${e}/${t.organId}/${t.fpName}`,
27
- method: "get",
28
- responseType: "blob",
29
- params: t
30
- });
31
- }
32
- // 下载发票
33
- downloadInvoice(t) {
34
- const e = r().user.tenant;
35
- return n(t), o({
36
- url: `/v1/lqfp/fp_down/${e}/${t.organId}/${t.fpName}`,
37
- method: "get",
38
- params: t,
39
- responseType: "blob"
40
- });
41
- }
42
- // 查询列表用户发票信息
43
- findMyList(t) {
44
- const e = r().user.tenant;
45
- return n(t), o({
46
- url: "/v1/lqfp/user_invoice_info/mylist/" + e,
47
- method: "get",
48
- params: t
49
- });
50
- }
51
- // 创建实体用户发票信息
52
- createUserFp(t) {
53
- return t.tenant = r().user.tenant, n(t), o({
54
- url: "/v1/lqfp/user_invoice_info",
55
- method: "post",
56
- data: t
57
- });
58
- }
59
- }
60
- const l = new s();
61
- export {
62
- l
63
- };
@@ -1,170 +0,0 @@
1
- import { defineComponent as h, ref as p, resolveComponent as d, createElementBlock as g, openBlock as q, createElementVNode as t, createVNode as a, withCtx as i, createTextVNode as o, toDisplayString as l } from "vue";
2
- import { useRouter as k, useRoute as F } from "vue-router";
3
- import { routerUtil as $ } from "jmash-core";
4
- import j from "./list-vrRKPRLU.mjs";
5
- import { l as z } from "./index-CokKesIL.mjs";
6
- import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- const y = { class: "app-container" }, I = { class: "search-container" }, U = { class: "result" }, C = { class: "result-item" }, N = { class: "result-item-label" }, V = { class: "result-item" }, w = { class: "result-item-label" }, B = { class: "bottom-remark" }, D = { class: "remark-item" }, E = { class: "remark-item-label" }, L = /* @__PURE__ */ h({
8
- __name: "invoice",
9
- setup(R) {
10
- const m = k(), u = F(), e = p({}), c = u.query.orderId, r = p("");
11
- z.findOrderList({ orderNo: c }).then(({ data: s }) => {
12
- e.value = s, r.value = s.fpUuid;
13
- });
14
- function _() {
15
- $.closeTagView(u.fullPath, m, !1);
16
- }
17
- return (s, f) => {
18
- const v = d("el-button"), n = d("el-descriptions-item"), b = d("el-descriptions");
19
- return q(), g("div", y, [
20
- t("div", I, [
21
- a(v, {
22
- type: "primary",
23
- onClick: _
24
- }, {
25
- default: i(() => [
26
- o(l(s.$t("common.back")), 1)
27
- ]),
28
- _: 1
29
- }),
30
- a(b, {
31
- "label-align": "right",
32
- "label-width": "150px",
33
- column: 2,
34
- class: "custom-descriptions"
35
- }, {
36
- default: i(() => [
37
- a(n, {
38
- label: s.$t("lqfpFps.gmfmc")
39
- }, {
40
- default: i(() => [
41
- o(l(e.value.gmfmc), 1)
42
- ]),
43
- _: 1
44
- }, 8, ["label"]),
45
- a(n, {
46
- label: s.$t("lqfpFps.xsfmc")
47
- }, {
48
- default: i(() => [
49
- o(l(e.value.xsfmc), 1)
50
- ]),
51
- _: 1
52
- }, 8, ["label"]),
53
- a(n, {
54
- label: s.$t("lqfpFps.Infogmfmc")
55
- }, {
56
- default: i(() => [
57
- o(l(e.value.gmfnsrsbh), 1)
58
- ]),
59
- _: 1
60
- }, 8, ["label"]),
61
- a(n, {
62
- label: s.$t("lqfpFps.xsfnsrsbh")
63
- }, {
64
- default: i(() => [
65
- o(l(e.value.xsfnsrsbh), 1)
66
- ]),
67
- _: 1
68
- }, 8, ["label"]),
69
- a(n, {
70
- label: s.$t("lqfpFps.gmfdz")
71
- }, {
72
- default: i(() => [
73
- o(l(e.value.gmfdz), 1)
74
- ]),
75
- _: 1
76
- }, 8, ["label"]),
77
- a(n, {
78
- label: s.$t("lqfpFps.xsfdz")
79
- }, {
80
- default: i(() => [
81
- o(l(e.value.xsfdz), 1)
82
- ]),
83
- _: 1
84
- }, 8, ["label"]),
85
- a(n, {
86
- label: s.$t("lqfpFps.gmfdh")
87
- }, {
88
- default: i(() => [
89
- o(l(e.value.gmfdh), 1)
90
- ]),
91
- _: 1
92
- }, 8, ["label"]),
93
- a(n, {
94
- label: s.$t("lqfpFps.xsfdh")
95
- }, {
96
- default: i(() => [
97
- o(l(e.value.xsfdh), 1)
98
- ]),
99
- _: 1
100
- }, 8, ["label"]),
101
- a(n, {
102
- label: s.$t("lqfpFps.gmfkhh")
103
- }, {
104
- default: i(() => [
105
- o(l(e.value.gmfkhh), 1)
106
- ]),
107
- _: 1
108
- }, 8, ["label"]),
109
- a(n, {
110
- label: s.$t("lqfpFps.xsfkhh")
111
- }, {
112
- default: i(() => [
113
- o(l(e.value.xsfkhh), 1)
114
- ]),
115
- _: 1
116
- }, 8, ["label"]),
117
- a(n, {
118
- label: s.$t("lqfpFps.gmfzh")
119
- }, {
120
- default: i(() => [
121
- o(l(e.value.gmfzh), 1)
122
- ]),
123
- _: 1
124
- }, 8, ["label"]),
125
- a(n, {
126
- label: s.$t("lqfpFps.xsfzh")
127
- }, {
128
- default: i(() => [
129
- o(l(e.value.xsfzh), 1)
130
- ]),
131
- _: 1
132
- }, 8, ["label"])
133
- ]),
134
- _: 1
135
- }),
136
- a(j, {
137
- fpUuid: r.value,
138
- class: "list-container"
139
- }, null, 8, ["fpUuid"]),
140
- t("div", U, [
141
- t("div", C, [
142
- t("div", null, l(e.value.jshjDx), 1),
143
- t("div", N, " 价税合计(大写):" + l(e.value.jshjDx), 1)
144
- ]),
145
- t("div", V, [
146
- t("div", null, l(e.value.jshj), 1),
147
- t("div", w, " 价税合计(小写): " + l(e.value.jshj), 1)
148
- ])
149
- ]),
150
- t("div", B, [
151
- t("div", null, "备注: " + l(e.value.bz), 1),
152
- t("div", D, [
153
- t("div", E, [
154
- f[0] || (f[0] = t("span", null, "支付渠道: ", -1)),
155
- o(" " + l(), 1)
156
- ]),
157
- t("div", null, [
158
- f[1] || (f[1] = t("span", null, "交易单号:", -1)),
159
- o(" " + l(e.value.jydh), 1)
160
- ])
161
- ])
162
- ])
163
- ])
164
- ]);
165
- };
166
- }
167
- }), H = /* @__PURE__ */ x(L, [["__scopeId", "data-v-f5a6ab3a"]]);
168
- export {
169
- H as default
170
- };
@@ -1,145 +0,0 @@
1
- import { defineComponent as E, ref as w, computed as L, resolveComponent as a, createElementBlock as S, openBlock as y, createElementVNode as m, createBlock as x, createCommentVNode as B, createVNode as n, withCtx as t, createTextVNode as i, toDisplayString as d, unref as O } from "vue";
2
- import { useRouter as j, useRoute as q } from "vue-router";
3
- import { p as A } from "./index-DOOUDqve.mjs";
4
- import { routerUtil as F } from "jmash-core";
5
- import T from "./sendDialog-SIGRBNQj.mjs";
6
- import { l as U } from "./index-B1a-Ksur.mjs";
7
- import { l as J } from "./index-CokKesIL.mjs";
8
- import { E as M } from "./el-message-D5NtBelf.mjs";
9
- import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
10
- const z = { class: "app-container" }, G = { class: "search-container" }, H = { class: "title-container" }, K = { class: "image-content" }, Q = /* @__PURE__ */ E({
11
- __name: "invoiceView",
12
- setup(W) {
13
- const b = j(), g = q(), C = g.query.orderId, p = w(""), N = L(() => p.value + ".jpg"), u = w(""), I = localStorage.getItem("unionUserInfo"), k = (I ? JSON.parse(I) : {}).orgId;
14
- J.findOrderList({ orderNo: C }).then(({ data: e }) => {
15
- p.value = e.fpUuid;
16
- });
17
- const s = w({
18
- visible: !1
19
- });
20
- function V() {
21
- s.value.visible = !0;
22
- }
23
- U.download({ organId: k, fpName: N.value }).then((e) => {
24
- u.value = URL.createObjectURL(e.data);
25
- });
26
- async function f(e) {
27
- try {
28
- const o = `${p.value}.${e}`, r = await U.downloadInvoice({
29
- organId: k,
30
- fpName: o
31
- });
32
- if (r != null && r.data) {
33
- const _ = URL.createObjectURL(r.data), l = document.createElement("a");
34
- l.href = _, l.download = o, l.style.display = "none", document.body.appendChild(l), l.click();
35
- }
36
- } catch {
37
- M.error("下载失败,请稍后重试");
38
- }
39
- }
40
- function $() {
41
- F.closeTagView(g.fullPath, b, !1);
42
- }
43
- return (e, o) => {
44
- const r = a("el-button"), _ = a("arrow-down"), l = a("el-icon"), v = a("el-dropdown-item"), h = a("el-dropdown-menu"), R = a("el-dropdown"), D = a("el-image");
45
- return y(), S("div", z, [
46
- m("div", G, [
47
- m("div", H, [
48
- n(r, {
49
- type: "primary",
50
- onClick: $
51
- }, {
52
- default: t(() => [
53
- i(d(e.$t("common.back")), 1)
54
- ]),
55
- _: 1
56
- }),
57
- m("div", null, [
58
- n(R, { class: "more-btn" }, {
59
- dropdown: t(() => [
60
- n(h, null, {
61
- default: t(() => [
62
- n(v, {
63
- command: "xml",
64
- onClick: o[0] || (o[0] = (c) => f("xml"))
65
- }, {
66
- default: t(() => [
67
- i(d(e.$t("orderInfo.xml")), 1)
68
- ]),
69
- _: 1
70
- }),
71
- n(v, {
72
- command: "pdf",
73
- onClick: o[1] || (o[1] = (c) => f("pdf"))
74
- }, {
75
- default: t(() => [
76
- i(d(e.$t("orderInfo.pdf")), 1)
77
- ]),
78
- _: 1
79
- }),
80
- n(v, {
81
- command: "ofd",
82
- onClick: o[2] || (o[2] = (c) => f("ofd"))
83
- }, {
84
- default: t(() => [
85
- i(d(e.$t("orderInfo.ofd")), 1)
86
- ]),
87
- _: 1
88
- })
89
- ]),
90
- _: 1
91
- })
92
- ]),
93
- default: t(() => [
94
- n(r, { type: "primary" }, {
95
- default: t(() => [
96
- i(d(e.$t("orderInfo.moreDropdown")) + " ", 1),
97
- n(l, null, {
98
- default: t(() => [
99
- n(_)
100
- ]),
101
- _: 1
102
- })
103
- ]),
104
- _: 1
105
- })
106
- ]),
107
- _: 1
108
- }),
109
- n(r, {
110
- type: "primary",
111
- icon: O(A),
112
- onClick: V
113
- }, {
114
- default: t(() => o[4] || (o[4] = [
115
- i("发送邮箱")
116
- ])),
117
- _: 1,
118
- __: [4]
119
- }, 8, ["icon"])
120
- ])
121
- ]),
122
- m("div", K, [
123
- n(D, {
124
- src: u.value,
125
- "preview-src-list": [u.value],
126
- "preview-teleported": "",
127
- "hide-on-click-modal": "",
128
- fit: "contain",
129
- class: "image-container"
130
- }, null, 8, ["src", "preview-src-list"])
131
- ])
132
- ]),
133
- s.value.visible ? (y(), x(T, {
134
- key: 0,
135
- modelValue: s.value.visible,
136
- "onUpdate:modelValue": o[3] || (o[3] = (c) => s.value.visible = c),
137
- width: "400px"
138
- }, null, 8, ["modelValue"])) : B("", !0)
139
- ]);
140
- };
141
- }
142
- }), io = /* @__PURE__ */ P(Q, [["__scopeId", "data-v-23299e75"]]);
143
- export {
144
- io as default
145
- };
@@ -1,113 +0,0 @@
1
- import { defineComponent as D, mergeModels as k, ref as z, reactive as v, useModel as B, resolveComponent as l, createBlock as S, openBlock as U, withCtx as o, createElementVNode as g, createVNode as n, unref as u, createTextVNode as E, toDisplayString as V } from "vue";
2
- import { useRoute as $ } from "vue-router";
3
- import { useI18n as x } from "vue-i18n";
4
- import { ElMessage as T } from "element-plus";
5
- import { useUserStore as j, validateEmail as G } from "jmash-core";
6
- import { l as H } from "./index-B1a-Ksur.mjs";
7
- import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
- const K = { class: "dialog-footer" }, L = /* @__PURE__ */ D({
9
- __name: "sendDialog",
10
- props: {
11
- modelValue: { type: Boolean },
12
- modelModifiers: {}
13
- },
14
- emits: /* @__PURE__ */ k(["refresh"], ["update:modelValue"]),
15
- setup(q, { emit: y }) {
16
- const { t: i } = x(), f = $(), c = z(), C = j().user.tenant, b = f.query.orderNo;
17
- let a = v({
18
- requestId: Math.random() * 10 + "",
19
- sendEmail: "",
20
- tenant: C,
21
- organId: f.query.organId,
22
- orderNo: b
23
- });
24
- function w(t, e, s) {
25
- e === void 0 && s(new Error(i("lqfpAuthorize.noticeEmailRead"))), G(e) || s(new Error(i("lqfpAuthorize.noticeEmailRequireds"))), s();
26
- }
27
- const F = v({
28
- sendEmail: [{ required: !0, trigger: "blur", validator: w }]
29
- }), r = B(q, "modelValue"), I = y;
30
- function M() {
31
- var t;
32
- (t = c.value) == null || t.validate((e, s) => {
33
- e && H.sendEmail(a).then((m) => {
34
- m.status === 200 && (T({
35
- message: i("common.submitSuccess"),
36
- type: "success"
37
- }), r.value && (r.value = !1)), I("refresh", m.status === 200);
38
- });
39
- });
40
- }
41
- function p() {
42
- r.value && (r.value = !1);
43
- }
44
- return (t, e) => {
45
- const s = l("el-input"), m = l("el-form-item"), N = l("el-col"), R = l("el-row"), h = l("el-form"), _ = l("el-button"), A = l("el-dialog");
46
- return U(), S(A, {
47
- modelValue: r.value,
48
- "onUpdate:modelValue": e[1] || (e[1] = (d) => r.value = d),
49
- onClose: p
50
- }, {
51
- footer: o(() => [
52
- g("div", K, [
53
- n(_, { onClick: p }, {
54
- default: o(() => [
55
- E(V(t.$t("common.cancel")), 1)
56
- ]),
57
- _: 1
58
- }),
59
- n(_, {
60
- type: "primary",
61
- onClick: M
62
- }, {
63
- default: o(() => [
64
- E(V(t.$t("lqfpFps.send")), 1)
65
- ]),
66
- _: 1
67
- })
68
- ])
69
- ]),
70
- default: o(() => [
71
- e[2] || (e[2] = g("div", { class: "title-content" }, "发送邮箱", -1)),
72
- n(h, {
73
- ref_key: "cardsFormRef",
74
- ref: c,
75
- model: u(a),
76
- rules: F
77
- }, {
78
- default: o(() => [
79
- n(R, null, {
80
- default: o(() => [
81
- n(N, { span: 24 }, {
82
- default: o(() => [
83
- n(m, {
84
- label: t.$t("lqfpAuthorize.email"),
85
- prop: "sendEmail"
86
- }, {
87
- default: o(() => [
88
- n(s, {
89
- modelValue: u(a).sendEmail,
90
- "onUpdate:modelValue": e[0] || (e[0] = (d) => u(a).sendEmail = d)
91
- }, null, 8, ["modelValue"])
92
- ]),
93
- _: 1
94
- }, 8, ["label"])
95
- ]),
96
- _: 1
97
- })
98
- ]),
99
- _: 1
100
- })
101
- ]),
102
- _: 1
103
- }, 8, ["model", "rules"])
104
- ]),
105
- _: 1,
106
- __: [2]
107
- }, 8, ["modelValue"]);
108
- };
109
- }
110
- }), ee = /* @__PURE__ */ J(L, [["__scopeId", "data-v-890287c1"]]);
111
- export {
112
- ee as default
113
- };