xyvcard-paper-buyer 0.0.44 → 0.0.45

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.
@@ -1,153 +0,0 @@
1
- var y = Object.defineProperty;
2
- var v = (i, r, e) => r in i ? y(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
3
- var t = (i, r, e) => v(i, typeof r != "symbol" ? r + "" : r, e);
4
- import { ref as h } from "vue";
5
- import { BizLayDict as l, CustomBizDict as p, EnumDict as I } from "jmash-core";
6
- import { goodsCategoryApi as g } from "xyvcard-paper-goods";
7
- import { unionOrgApi as c } from "xyvcard-paper-union";
8
- import { EntryDict as P } from "jmash-dict";
9
- class s {
10
- }
11
- //模块
12
- t(s, "PAPER_DICT", "paper"), // 订单状态
13
- t(s, "ENUM_ORDER_STATUS", h([
14
- { key: "unpay", value: "待付款" },
15
- { key: "unpost", value: "订阅成功" }
16
- ])), // 订单状态常量
17
- t(s, "UNPAY", "unpay"), t(s, "UNPOST", "unpost"), // 发票票种
18
- t(s, "LQFP_FPPZ", "Fppz"), // 开票状态
19
- t(s, "INVOICE_STATUS", "xyvcard.order.protobuf.InvoiceStatus"), t(s, "UNINVOICE", "uninvoice"), t(s, "INVOICING", "invoicing"), t(s, "INVOICED", "invoiced"), // 基层工会
20
- t(s, "BASE_UNION", "base"), // 企业
21
- t(s, "GMF_TYPE_ENT", "ent"), // 个人
22
- t(s, "GMF_TYPE_PER", "person"), // 证件类型
23
- t(s, "DICT_TYPE_ID", "TypeID"), // 抬头类型
24
- t(s, "GMF_TYPE_VALUES", h([
25
- { key: "ent", value: "企业" },
26
- { key: "person", value: "个人" }
27
- ]));
28
- function d(i, r, e) {
29
- return !Array.isArray(i) || i.length === 0 ? [] : i.map((a) => {
30
- let o = [];
31
- return Array.isArray(a.children) && a.children.length > 0 && (o = d(a.children, r, e)), {
32
- value: a[e],
33
- label: a[r],
34
- parentId: a.parentId,
35
- children: o
36
- };
37
- });
38
- }
39
- class T extends l {
40
- // 实现 useValues 方法
41
- useValues() {
42
- return new Promise((r, e) => {
43
- if (typeof c.findList > "u") {
44
- r(this.values);
45
- return;
46
- }
47
- c.findList(this.query).then(({ data: n }) => {
48
- const a = n.results;
49
- this.values.length = 0, this.values.push(...this.convertToLayEntryArray(a)), r(this.values);
50
- }).catch(e);
51
- });
52
- }
53
- convertToLayEntryArray(r) {
54
- return r.map((e) => ({
55
- value: e.orgId,
56
- label: e.orgName,
57
- parentId: e.parentId || "",
58
- disabled: !e.status,
59
- children: e.children ? this.convertToLayEntryArray(e.children) : []
60
- }));
61
- }
62
- }
63
- class f extends l {
64
- // 实现 useValues 方法
65
- useValues() {
66
- return new Promise((r, e) => {
67
- if (typeof c.findList > "u") {
68
- r(this.values);
69
- return;
70
- }
71
- const n = {
72
- ...this.query,
73
- orgType: s.BASE_UNION
74
- };
75
- c.findList(n).then(({ data: a }) => {
76
- const o = a.results;
77
- this.values.length = 0, this.values.push(...this.convertToLayEntryArray(o)), r(this.values);
78
- }).catch(e);
79
- });
80
- }
81
- convertToLayEntryArray(r) {
82
- return r.filter(
83
- (e) => e.orgId !== void 0 && e.chargePersonMobile !== void 0
84
- ).map((e) => ({
85
- value: e.orgId,
86
- label: e.chargePersonMobile,
87
- parentId: e.parentId || "",
88
- children: e.children ? this.convertToLayEntryArray(e.children) : []
89
- }));
90
- }
91
- }
92
- class A extends l {
93
- // 实现 useValues 方法
94
- useValues() {
95
- return new Promise((r, e) => {
96
- if (typeof c.findList > "u") {
97
- r(this.values);
98
- return;
99
- }
100
- const n = {
101
- ...this.query,
102
- orgType: s.BASE_UNION
103
- };
104
- c.findList(n).then(({ data: a }) => {
105
- const o = a.results;
106
- this.values.length = 0, this.values.push(...this.convertToLayEntryArray(o)), r(this.values);
107
- }).catch(e);
108
- });
109
- }
110
- convertToLayEntryArray(r) {
111
- return r.filter(
112
- (e) => e.orgId !== void 0 && e.chargePersonMobile !== void 0
113
- ).map((e) => ({
114
- value: e.orgId,
115
- label: e.chargePersonMobileIns,
116
- parentId: e.parentId || "",
117
- children: e.children ? this.convertToLayEntryArray(e.children) : []
118
- }));
119
- }
120
- }
121
- class m extends l {
122
- // 实现 useValues 方法
123
- useValues() {
124
- return new Promise((r, e) => {
125
- g.findTreeListApi(this.query).then((n) => {
126
- const { data: a } = n;
127
- this.values.length = 0, this.values.push(...d(a.results, "label", "value")), r(this.values);
128
- }).catch(e);
129
- });
130
- }
131
- }
132
- class u {
133
- }
134
- // 订单状态
135
- t(u, "orderStatusEnum", new p(
136
- s.ENUM_ORDER_STATUS,
137
- {}
138
- )), // 所属工会
139
- t(u, "unionOrgBizLayDict", new T({})), t(u, "unionOrgPhoneBizLayDict", new f({})), t(u, "unionOrgPhoneInsBizLayDict", new A(
140
- {}
141
- )), // 发票票种
142
- t(u, "fppzDict", new P(s.LQFP_FPPZ)), // 开票状态
143
- t(u, "invoiceStatusEnum", new I(
144
- s.PAPER_DICT,
145
- s.INVOICE_STATUS
146
- )), // 商品分类(发行频率)
147
- t(u, "goodsCategoryListBizLayDict", new m(
148
- {}
149
- )), t(u, "gmfTypeDict", new p(s.GMF_TYPE_VALUES, {}));
150
- export {
151
- s as C,
152
- u as D
153
- };