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.
- package/dist/{applyEdit-DMbelNYl.mjs → applyEdit-Ch-oVoTx.mjs} +3 -3
- package/dist/{index-DyTbbNUO.mjs → index-BKZPqxLM.mjs} +518 -500
- package/dist/{index-CJvB_knp.mjs → index-CBj9jO6o.mjs} +165 -190
- package/dist/index-Knr6dYOL.mjs +66 -0
- package/dist/index.mjs +2 -2
- package/dist/{info-iJb2mpwO.mjs → info-BshHBFtv.mjs} +2 -2
- package/dist/{invoiceEdit-D3qEYbNL.mjs → invoiceEdit-CpBEUGPH.mjs} +2 -2
- package/dist/{orderInfo-BE6BEAw1.mjs → orderInfo-DY2LKHto.mjs} +2 -2
- package/dist/{orderPaper-DAXED5UU.mjs → orderPaper-DUCuNxKR.mjs} +50 -49
- package/dist/style.css +1 -1
- package/dist/{userInvoice-CZ7yW4I6.mjs → userInvoice-DPxbKmv9.mjs} +1 -1
- package/dist/{userInvoice.vue_vue_type_script_setup_true_lang-D-3fXoBu.mjs → userInvoice.vue_vue_type_script_setup_true_lang-3eHl8CCv.mjs} +1 -1
- package/dts/api/buyer/dict.d.ts +0 -13
- package/dts/api/buyer/index.d.ts +1 -4
- package/dts/api/buyer/order-newspaper/types.d.ts +2 -0
- package/dts/constant.d.ts +0 -1
- package/dts/main.d.ts +0 -1
- package/package.json +2 -4
- package/dist/index-BPKQNnjE.mjs +0 -153
package/dist/index-BPKQNnjE.mjs
DELETED
|
@@ -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
|
-
};
|