xyvcard-paper-buyer 0.0.57 → 0.0.59

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.
@@ -3,8 +3,8 @@ import { useI18n as O } from "vue-i18n";
3
3
  import "element-plus";
4
4
  import { routerUtil as D } from "jmash-core";
5
5
  import { useRouter as Q, useRoute as W } from "vue-router";
6
- import { D as U } from "./index-Knr6dYOL.mjs";
7
- import { _ as X, u as Y } from "./userInvoice.vue_vue_type_script_setup_true_lang-Bzqz4vIJ.mjs";
6
+ import { D as U } from "./index-BsMxZHKS.mjs";
7
+ import { _ as X, u as Y } from "./userInvoice.vue_vue_type_script_setup_true_lang-CM1wsRXx.mjs";
8
8
  import { o as Z } from "./index-C-g3Ei_P.mjs";
9
9
  import { E as x } from "./el-message-VSzNakoG.mjs";
10
10
  import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -0,0 +1,77 @@
1
+ var _ = Object.defineProperty;
2
+ var P = (r, a, i) => a in r ? _(r, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[a] = i;
3
+ var t = (r, a, i) => P(r, typeof a != "symbol" ? a + "" : a, i);
4
+ import { ref as p } from "vue";
5
+ import { BizLayDict as l, CustomBizDict as o, EnumDict as E } from "jmash-core";
6
+ import { goodsCategoryApi as n } from "xyvcard-paper-goods";
7
+ import { EntryDict as A } from "jmash-dict";
8
+ class e {
9
+ }
10
+ //模块
11
+ t(e, "PAPER_DICT", "paper"), // 订单状态
12
+ t(e, "ENUM_ORDER_STATUS", p([
13
+ { key: "unpay", value: "待付款" },
14
+ { key: "unpost", value: "订阅成功" }
15
+ ])), // 订单状态常量
16
+ t(e, "UNPAY", "unpay"), t(e, "UNPOST", "unpost"), // 发票票种
17
+ t(e, "LQFP_FPPZ", "Fppz"), // 开票状态
18
+ t(e, "INVOICE_STATUS", "xyvcard.order.protobuf.InvoiceStatus"), t(e, "UNINVOICE", "uninvoice"), t(e, "INVOICING", "invoicing"), t(e, "INVOICED", "invoiced"), // 企业
19
+ t(e, "GMF_TYPE_ENT", "ent"), // 个人
20
+ t(e, "GMF_TYPE_PER", "person"), // 证件类型
21
+ t(e, "DICT_TYPE_ID", "TypeID"), // 抬头类型
22
+ t(e, "GMF_TYPE_VALUES", p([
23
+ { key: "ent", value: "企业" },
24
+ { key: "person", value: "个人" }
25
+ ])), // 订单模块
26
+ t(e, "MODULE_ORDER", "order"), // 支付方式
27
+ t(e, "PAYMENT_MODE", "xyvcard.order.protobuf.PaymentMode"), // 支付渠道
28
+ t(e, "PAYWAY_STATUS", "xyvcard.lqfp.protobuf.PayWay");
29
+ function T(r, a, i) {
30
+ return !Array.isArray(r) || r.length === 0 ? [] : r.map((s) => {
31
+ let y = [];
32
+ return Array.isArray(s.children) && s.children.length > 0 && (y = T(s.children, a, i)), {
33
+ value: s[i],
34
+ label: s[a],
35
+ parentId: s.parentId,
36
+ children: y
37
+ };
38
+ });
39
+ }
40
+ class d extends l {
41
+ // 实现 useValues 方法
42
+ useValues() {
43
+ return new Promise((a, i) => {
44
+ n.findTreeListApi(this.query).then((u) => {
45
+ const { data: s } = u;
46
+ this.values.length = 0, this.values.push(...T(s.results, "label", "value")), a(this.values);
47
+ }).catch(i);
48
+ });
49
+ }
50
+ }
51
+ class c {
52
+ }
53
+ // 订单状态
54
+ t(c, "orderStatusEnum", new o(
55
+ e.ENUM_ORDER_STATUS,
56
+ {}
57
+ )), // 发票票种
58
+ t(c, "fppzDict", new A(e.LQFP_FPPZ)), // 开票状态
59
+ t(c, "invoiceStatusEnum", new E(
60
+ e.PAPER_DICT,
61
+ e.INVOICE_STATUS
62
+ )), // 商品分类(发行频率)
63
+ t(c, "goodsCategoryListBizLayDict", new d(
64
+ {}
65
+ )), t(c, "gmfTypeDict", new o(e.GMF_TYPE_VALUES, {})), // 支付方式
66
+ t(c, "paymentMode", new E(
67
+ e.MODULE_ORDER,
68
+ e.PAYMENT_MODE
69
+ )), // 支付渠道
70
+ t(c, "payWayEnum", new E(
71
+ e.MODULE_ORDER,
72
+ e.PAYWAY_STATUS
73
+ ));
74
+ export {
75
+ e as C,
76
+ c as D
77
+ };