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
@@ -0,0 +1,89 @@
1
+ import { useUserStore as r, clearEmpty as e, request as o } from "jmash-core";
2
+ class s {
3
+ getKey() {
4
+ }
5
+ // 查询列表信息乐企发票
6
+ findList(t) {
7
+ const n = r().user.tenant;
8
+ return e(t), o({
9
+ url: "/v1/lqfp/lqfp_fp_detail/list/" + n,
10
+ method: "get",
11
+ params: t
12
+ });
13
+ }
14
+ // 发送邮箱
15
+ sendEmail(t) {
16
+ return e(t), o({
17
+ url: "/v1/front/lqfp/fp_send",
18
+ method: "post",
19
+ data: t
20
+ });
21
+ }
22
+ // 查看详情里面的发票图片展示接口
23
+ download(t) {
24
+ const n = r().user.tenant;
25
+ return e(t), o({
26
+ url: "/v1/front/lqfp/fp_down/" + n + "/" + t.organId + "/" + t.fpUuid + ".jpg",
27
+ method: "get",
28
+ responseType: "blob",
29
+ params: t
30
+ });
31
+ }
32
+ // 下载发票
33
+ downloadXML(t) {
34
+ const n = r().user.tenant;
35
+ return e(t), o({
36
+ url: "/v1/front/lqfp/fp_down/" + n + "/" + t.organId + "/" + t.fpUuid + ".xml",
37
+ method: "get",
38
+ params: t,
39
+ responseType: "blob"
40
+ });
41
+ }
42
+ downloadPDF(t) {
43
+ const n = r().user.tenant;
44
+ return e(t), o({
45
+ url: "/v1/front/lqfp/fp_down/" + n + "/" + t.organId + "/" + t.fpUuid + ".pdf",
46
+ method: "get",
47
+ params: t,
48
+ responseType: "blob"
49
+ });
50
+ }
51
+ downloadOFD(t) {
52
+ const n = r().user.tenant;
53
+ return e(t), o({
54
+ url: "/v1/front/lqfp/fp_down/" + n + "/" + t.organId + "/" + t.fpUuid + ".ofd",
55
+ method: "get",
56
+ params: t,
57
+ responseType: "blob"
58
+ });
59
+ }
60
+ // 查询列表用户发票信息
61
+ findMyList(t) {
62
+ const n = r().user.tenant;
63
+ return e(t), o({
64
+ url: "/v1/lqfp/user_invoice_info/mylist/" + n,
65
+ method: "get",
66
+ params: t
67
+ });
68
+ }
69
+ // 创建实体用户发票信息
70
+ createUserFp(t) {
71
+ return t.tenant = r().user.tenant, e(t), o({
72
+ url: "/v1/lqfp/user_invoice_info",
73
+ method: "post",
74
+ data: t
75
+ });
76
+ }
77
+ // 换开发票
78
+ reissue(t) {
79
+ return t.tenant = r().user.tenant, e(t), o({
80
+ url: "/v1/front/lqfp/reissue",
81
+ method: "post",
82
+ data: t
83
+ });
84
+ }
85
+ }
86
+ const a = new s();
87
+ export {
88
+ a as l
89
+ };
package/dist/index.mjs CHANGED
@@ -239,7 +239,8 @@ const g = {
239
239
  xsfzh: "销售方账号",
240
240
  gmfnsrsbh: "购方税号",
241
241
  gmfnsrsbhRead: "请输入购方纳税人识别号",
242
- Infogmfmc: "购方纳税人识别号"
242
+ Infogmfmc: "购方纳税人识别号",
243
+ requestInvoice: "换开发票"
243
244
  },
244
245
  // 订单管理
245
246
  orderInfo: {
@@ -270,6 +271,7 @@ const g = {
270
271
  assignAddress: "分配地址",
271
272
  payment: "支付",
272
273
  apply: "申请开票",
274
+ send: "发送",
273
275
  shopName: "所属商家",
274
276
  shopNameRequired: "请选择所属商家",
275
277
  likeMobile: "手机号",
@@ -358,7 +360,7 @@ function v(e) {
358
360
  let i = e.global.getLocaleMessage("en");
359
361
  i = d(i, g), e.global.setLocaleMessage("zh-cn", o), e.global.setLocaleMessage("en", i);
360
362
  }
361
- const R = () => import("./index-DSwrPGyq.mjs"), P = () => import("./orderPaper-_2Kq65vV.mjs"), w = () => import("./payment-BcsD4Glh.mjs"), q = () => import("./orderAddress-ByTTzFrR.mjs"), D = () => import("./invoice-D0pCTiEx.mjs"), N = () => import("./invoiceView-BcVwgiVq.mjs"), z = () => import("./applyEdit-pzAI4h9A.mjs"), x = () => import("./info-DH7jH9F-.mjs"), t = [
363
+ const R = () => import("./index-DSwrPGyq.mjs"), P = () => import("./orderPaper-_2Kq65vV.mjs"), w = () => import("./payment-BcsD4Glh.mjs"), q = () => import("./orderAddress-ByTTzFrR.mjs"), D = () => import("./invoice-DG1zDaqb.mjs"), N = () => import("./invoiceView-Cshwyw3t.mjs"), z = () => import("./applyEdit-u3SPAGEW.mjs"), x = () => import("./info-CVaS8hdZ.mjs"), t = [
362
364
  {
363
365
  path: "/buyer",
364
366
  component: r,
@@ -511,7 +513,7 @@ const R = () => import("./index-DSwrPGyq.mjs"), P = () => import("./orderPaper-_
511
513
  scrollBehavior: () => ({ left: 0, top: 0 })
512
514
  });
513
515
  u.value = k;
514
- const S = /* @__PURE__ */ Object.assign({ "./views/buyer/order-info/applyEdit.vue": () => import("./applyEdit-pzAI4h9A.mjs"), "./views/buyer/order-info/index.vue": () => import("./index-DecGu_zO.mjs"), "./views/buyer/order-info/info.vue": () => import("./info-DH7jH9F-.mjs"), "./views/buyer/order-info/invoice.vue": () => import("./invoice-D0pCTiEx.mjs"), "./views/buyer/order-info/invoiceView.vue": () => import("./invoiceView-BcVwgiVq.mjs"), "./views/buyer/order-info/list.vue": () => import("./list-vrRKPRLU.mjs"), "./views/buyer/order-info/sendDialog.vue": () => import("./sendDialog-SIGRBNQj.mjs"), "./views/buyer/order-info/userInvoice.vue": () => import("./userInvoice-BKAsWcqv.mjs"), "./views/buyer/order-newspaper/edit.vue": () => import("./edit-B_W9Nbg_.mjs"), "./views/buyer/order-newspaper/index.vue": () => import("./index-DSwrPGyq.mjs"), "./views/buyer/order-newspaper/orderAddress.vue": () => import("./orderAddress-ByTTzFrR.mjs"), "./views/buyer/order-newspaper/orderPaper.vue": () => import("./orderPaper-_2Kq65vV.mjs"), "./views/buyer/order-newspaper/payment copy.vue": () => import("./payment copy-CyZWiAyq.mjs"), "./views/buyer/order-newspaper/payment.vue": () => import("./payment-BcsD4Glh.mjs"), "./views/buyer/order-user-address/edit.vue": () => import("./edit-DT79EUCr.mjs"), "./views/buyer/order-user-address/index.vue": () => import("./index-BmhkFkvJ.mjs") }), M = {
516
+ const S = /* @__PURE__ */ Object.assign({ "./views/buyer/order-info/applyEdit.vue": () => import("./applyEdit-u3SPAGEW.mjs"), "./views/buyer/order-info/index.vue": () => import("./index-0hEUyaRA.mjs"), "./views/buyer/order-info/info.vue": () => import("./info-CVaS8hdZ.mjs"), "./views/buyer/order-info/invoice.vue": () => import("./invoice-DG1zDaqb.mjs"), "./views/buyer/order-info/invoiceEdit.vue": () => import("./invoiceEdit-zNW26cGt.mjs"), "./views/buyer/order-info/invoiceView.vue": () => import("./invoiceView-Cshwyw3t.mjs"), "./views/buyer/order-info/list.vue": () => import("./list-CvwEEzhX.mjs"), "./views/buyer/order-info/sendDialog.vue": () => import("./sendDialog-25fhb-Uj.mjs"), "./views/buyer/order-info/userInvoice.vue": () => import("./userInvoice-CCsRE3bA.mjs"), "./views/buyer/order-newspaper/edit.vue": () => import("./edit-B_W9Nbg_.mjs"), "./views/buyer/order-newspaper/index.vue": () => import("./index-DSwrPGyq.mjs"), "./views/buyer/order-newspaper/orderAddress.vue": () => import("./orderAddress-ByTTzFrR.mjs"), "./views/buyer/order-newspaper/orderPaper.vue": () => import("./orderPaper-_2Kq65vV.mjs"), "./views/buyer/order-newspaper/payment copy.vue": () => import("./payment copy-CyZWiAyq.mjs"), "./views/buyer/order-newspaper/payment.vue": () => import("./payment-BcsD4Glh.mjs"), "./views/buyer/order-user-address/edit.vue": () => import("./edit-DT79EUCr.mjs"), "./views/buyer/order-user-address/index.vue": () => import("./index-BmhkFkvJ.mjs") }), M = {
515
517
  install(e) {
516
518
  c(S, 7), l(t), v(f);
517
519
  }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as X, ref as U, onMounted as Y, resolveComponent as i, createElementBlock as Z, openBlock as L, createVNode as t, withCtx as l, createElementVNode as e, unref as m, toDisplayString as s, createBlock as x, createCommentVNode as ee, createTextVNode as u } from "vue";
2
2
  import { D as S } from "./index-5MVT-ka0.mjs";
3
- import { o as O } from "./index-D07dGPVZ.mjs";
3
+ import { o as O } from "./index-CT0KG-ax.mjs";
4
4
  import { fileApi as W, routerUtil as oe } from "jmash-core";
5
5
  import { useRouter as te, useRoute as le } from "vue-router";
6
6
  import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -0,0 +1,173 @@
1
+ import { defineComponent as q, ref as p, resolveComponent as f, createElementBlock as k, openBlock as F, createElementVNode as t, createVNode as o, withCtx as n, createTextVNode as a, toDisplayString as e } from "vue";
2
+ import { useRouter as $, useRoute as j } from "vue-router";
3
+ import { routerUtil as z } from "jmash-core";
4
+ import x from "./list-CvwEEzhX.mjs";
5
+ import { l as y } from "./index-CokKesIL.mjs";
6
+ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ const I = { class: "app-container" }, U = { class: "search-container" }, N = { class: "result" }, V = { class: "result-item" }, w = { class: "result-item-label" }, B = { class: "result-item" }, D = { class: "result-item-label" }, L = { class: "bottom-remark" }, E = { class: "remark-item" }, R = { class: "remark-item-label" }, T = /* @__PURE__ */ q({
8
+ __name: "invoice",
9
+ setup(A) {
10
+ const m = $(), d = j(), l = p({}), c = d.query.orderCode, _ = d.query.shopId, r = p("");
11
+ function h() {
12
+ y.findOrderList({ orderNo: c, organId: _ }).then(({ data: s }) => {
13
+ l.value = s.results[0], r.value = s.results[0].fpUuid;
14
+ });
15
+ }
16
+ h();
17
+ function v() {
18
+ z.closeTagView(d.fullPath, m, !1);
19
+ }
20
+ return (s, u) => {
21
+ const b = f("el-button"), i = f("el-descriptions-item"), g = f("el-descriptions");
22
+ return F(), k("div", I, [
23
+ t("div", U, [
24
+ o(b, {
25
+ type: "primary",
26
+ onClick: v
27
+ }, {
28
+ default: n(() => [
29
+ a(e(s.$t("common.back")), 1)
30
+ ]),
31
+ _: 1
32
+ }),
33
+ o(g, {
34
+ "label-align": "right",
35
+ "label-width": "150px",
36
+ column: 2,
37
+ class: "custom-descriptions"
38
+ }, {
39
+ default: n(() => [
40
+ o(i, {
41
+ label: s.$t("lqfpFps.gmfmc")
42
+ }, {
43
+ default: n(() => [
44
+ a(e(l.value.gmfmc), 1)
45
+ ]),
46
+ _: 1
47
+ }, 8, ["label"]),
48
+ o(i, {
49
+ label: s.$t("lqfpFps.xsfmc")
50
+ }, {
51
+ default: n(() => [
52
+ a(e(l.value.xsfmc), 1)
53
+ ]),
54
+ _: 1
55
+ }, 8, ["label"]),
56
+ o(i, {
57
+ label: s.$t("lqfpFps.Infogmfmc")
58
+ }, {
59
+ default: n(() => [
60
+ a(e(l.value.gmfnsrsbh), 1)
61
+ ]),
62
+ _: 1
63
+ }, 8, ["label"]),
64
+ o(i, {
65
+ label: s.$t("lqfpFps.xsfnsrsbh")
66
+ }, {
67
+ default: n(() => [
68
+ a(e(l.value.xsfnsrsbh), 1)
69
+ ]),
70
+ _: 1
71
+ }, 8, ["label"]),
72
+ o(i, {
73
+ label: s.$t("lqfpFps.gmfdz")
74
+ }, {
75
+ default: n(() => [
76
+ a(e(l.value.gmfdz), 1)
77
+ ]),
78
+ _: 1
79
+ }, 8, ["label"]),
80
+ o(i, {
81
+ label: s.$t("lqfpFps.xsfdz")
82
+ }, {
83
+ default: n(() => [
84
+ a(e(l.value.xsfdz), 1)
85
+ ]),
86
+ _: 1
87
+ }, 8, ["label"]),
88
+ o(i, {
89
+ label: s.$t("lqfpFps.gmfdh")
90
+ }, {
91
+ default: n(() => [
92
+ a(e(l.value.gmfdh), 1)
93
+ ]),
94
+ _: 1
95
+ }, 8, ["label"]),
96
+ o(i, {
97
+ label: s.$t("lqfpFps.xsfdh")
98
+ }, {
99
+ default: n(() => [
100
+ a(e(l.value.xsfdh), 1)
101
+ ]),
102
+ _: 1
103
+ }, 8, ["label"]),
104
+ o(i, {
105
+ label: s.$t("lqfpFps.gmfkhh")
106
+ }, {
107
+ default: n(() => [
108
+ a(e(l.value.gmfkhh), 1)
109
+ ]),
110
+ _: 1
111
+ }, 8, ["label"]),
112
+ o(i, {
113
+ label: s.$t("lqfpFps.xsfkhh")
114
+ }, {
115
+ default: n(() => [
116
+ a(e(l.value.xsfkhh), 1)
117
+ ]),
118
+ _: 1
119
+ }, 8, ["label"]),
120
+ o(i, {
121
+ label: s.$t("lqfpFps.gmfzh")
122
+ }, {
123
+ default: n(() => [
124
+ a(e(l.value.gmfzh), 1)
125
+ ]),
126
+ _: 1
127
+ }, 8, ["label"]),
128
+ o(i, {
129
+ label: s.$t("lqfpFps.xsfzh")
130
+ }, {
131
+ default: n(() => [
132
+ a(e(l.value.xsfzh), 1)
133
+ ]),
134
+ _: 1
135
+ }, 8, ["label"])
136
+ ]),
137
+ _: 1
138
+ }),
139
+ o(x, {
140
+ fpUuid: r.value,
141
+ class: "list-container"
142
+ }, null, 8, ["fpUuid"]),
143
+ t("div", N, [
144
+ t("div", V, [
145
+ t("div", null, e(l.value.jshjDx), 1),
146
+ t("div", w, " 价税合计(大写):" + e(l.value.jshjDx), 1)
147
+ ]),
148
+ t("div", B, [
149
+ t("div", null, e(l.value.jshj), 1),
150
+ t("div", D, " 价税合计(小写): " + e(l.value.jshj), 1)
151
+ ])
152
+ ]),
153
+ t("div", L, [
154
+ t("div", null, "备注: " + e(l.value.bz), 1),
155
+ t("div", E, [
156
+ t("div", R, [
157
+ u[0] || (u[0] = t("span", null, "支付渠道: ", -1)),
158
+ a(" " + e(), 1)
159
+ ]),
160
+ t("div", null, [
161
+ u[1] || (u[1] = t("span", null, "交易单号:", -1)),
162
+ a(" " + e(l.value.jydh), 1)
163
+ ])
164
+ ])
165
+ ])
166
+ ])
167
+ ]);
168
+ };
169
+ }
170
+ }), K = /* @__PURE__ */ C(T, [["__scopeId", "data-v-52369a66"]]);
171
+ export {
172
+ K as default
173
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./invoiceEdit.vue_vue_type_script_setup_true_lang-DakU-TWG.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,124 @@
1
+ import { defineComponent as U, mergeModels as x, ref as g, reactive as I, useModel as A, resolveComponent as l, createBlock as b, openBlock as u, withCtx as o, createVNode as n, unref as c, createElementBlock as T, Fragment as j, renderList as z, createElementVNode as G, createTextVNode as V, toDisplayString as y } from "vue";
2
+ import { ElMessage as H } from "element-plus";
3
+ import { useI18n as J } from "vue-i18n";
4
+ import { useRoute as K } from "vue-router";
5
+ import { l as q } from "./index-TclOpCe_.mjs";
6
+ const O = { class: "dialog-footer" }, Z = /* @__PURE__ */ U({
7
+ __name: "invoiceEdit",
8
+ props: {
9
+ modelValue: { type: Boolean },
10
+ modelModifiers: {}
11
+ },
12
+ emits: /* @__PURE__ */ x(["refresh"], ["update:modelValue"]),
13
+ setup(w, { emit: F }) {
14
+ const { t: i } = J(), f = K(), h = f.query.orderCode, C = f.query.shopId, p = g(), s = g([]);
15
+ let d = I({
16
+ requestId: Math.random() * 10 + "",
17
+ organId: C,
18
+ orderNo: h
19
+ });
20
+ const k = I({
21
+ infoId: [{ required: !0, message: i("lqfpFps.dwmcRead"), trigger: "blur" }]
22
+ }), a = A(w, "modelValue"), M = F;
23
+ function R() {
24
+ q.findMyList({}).then((e) => {
25
+ s.value = e.data.results, console.log(s.value);
26
+ });
27
+ }
28
+ R();
29
+ const B = async () => {
30
+ var e;
31
+ await ((e = p.value) == null ? void 0 : e.validate((r) => {
32
+ r && q.reissue(d).then((m) => {
33
+ m.status === 200 && (H({
34
+ message: i("common.submitSuccess"),
35
+ type: "success"
36
+ }), a.value && (a.value = !1), M("refresh", m.status === 200));
37
+ });
38
+ }));
39
+ };
40
+ function _() {
41
+ a.value && (a.value = !1);
42
+ }
43
+ return (e, r) => {
44
+ const m = l("el-option"), E = l("el-select"), L = l("el-form-item"), N = l("el-col"), $ = l("el-row"), D = l("el-form"), v = l("el-button"), S = l("el-dialog");
45
+ return u(), b(S, {
46
+ modelValue: a.value,
47
+ "onUpdate:modelValue": r[1] || (r[1] = (t) => a.value = t),
48
+ onClose: _
49
+ }, {
50
+ footer: o(() => [
51
+ G("div", O, [
52
+ n(v, { onClick: _ }, {
53
+ default: o(() => [
54
+ V(y(e.$t("common.cancel")), 1)
55
+ ]),
56
+ _: 1
57
+ }),
58
+ n(v, {
59
+ type: "primary",
60
+ onClick: B
61
+ }, {
62
+ default: o(() => [
63
+ V(y(e.$t("common.confirm")), 1)
64
+ ]),
65
+ _: 1
66
+ })
67
+ ])
68
+ ]),
69
+ default: o(() => [
70
+ n(D, {
71
+ ref_key: "lqfpFpsInvoiceFormRef",
72
+ ref: p,
73
+ model: c(d),
74
+ "label-width": "80px",
75
+ rules: k
76
+ }, {
77
+ default: o(() => [
78
+ n($, null, {
79
+ default: o(() => [
80
+ n(N, { span: 24 }, {
81
+ default: o(() => [
82
+ n(L, {
83
+ label: e.$t("lqfpFps.dwmc"),
84
+ prop: "infoId"
85
+ }, {
86
+ default: o(() => [
87
+ n(E, {
88
+ modelValue: c(d).infoId,
89
+ "onUpdate:modelValue": r[0] || (r[0] = (t) => c(d).infoId = t),
90
+ placeholder: e.$t("lqfpFps.dwmcRead"),
91
+ data: s.value,
92
+ clearable: "",
93
+ filterable: ""
94
+ }, {
95
+ default: o(() => [
96
+ (u(!0), T(j, null, z(s.value, (t) => (u(), b(m, {
97
+ key: t.infoId,
98
+ label: t.gmfmc,
99
+ value: t.infoId
100
+ }, null, 8, ["label", "value"]))), 128))
101
+ ]),
102
+ _: 1
103
+ }, 8, ["modelValue", "placeholder", "data"])
104
+ ]),
105
+ _: 1
106
+ }, 8, ["label"])
107
+ ]),
108
+ _: 1
109
+ })
110
+ ]),
111
+ _: 1
112
+ })
113
+ ]),
114
+ _: 1
115
+ }, 8, ["model", "rules"])
116
+ ]),
117
+ _: 1
118
+ }, 8, ["modelValue"]);
119
+ };
120
+ }
121
+ });
122
+ export {
123
+ Z as _
124
+ };