xyvcard-paper-buyer 0.0.56 → 0.0.58
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-DqKxdFnY.mjs → applyEdit-C2PrzKta.mjs} +3 -3
- package/dist/{index-DvqcVtci.mjs → index-C-g3Ei_P.mjs} +500 -518
- package/dist/index-C_9577tG.mjs +72 -0
- package/dist/{index-DgrzdZxV.mjs → index-CvTXIlZt.mjs} +167 -148
- package/dist/index.mjs +14 -10
- package/dist/{info-bWNQy4VE.mjs → info-JO0c7Ddl.mjs} +2 -2
- package/dist/{invoiceEdit-B-GHm9GY.mjs → invoiceEdit-CyOin4HT.mjs} +2 -2
- package/dist/{orderInfo-1eDmhUdI.mjs → orderInfo--5Dy6ucl.mjs} +2 -2
- package/dist/{userInvoice-CDsynyWz.mjs → userInvoice-BGxdy8kb.mjs} +1 -1
- package/dist/{userInvoice.vue_vue_type_script_setup_true_lang-Bzqz4vIJ.mjs → userInvoice.vue_vue_type_script_setup_true_lang-_E3C_ACs.mjs} +1 -1
- package/dts/api/buyer/index.d.ts +1 -0
- package/dts/constant.d.ts +2 -0
- package/dts/lang/order/zh-cn.d.ts +4 -0
- package/package.json +1 -1
- package/dist/index-Knr6dYOL.mjs +0 -66
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var n = (r, i, a) => i in r ? l(r, i, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[i] = a;
|
|
3
|
+
var e = (r, i, a) => n(r, typeof i != "symbol" ? i + "" : i, a);
|
|
4
|
+
import { ref as y } from "vue";
|
|
5
|
+
import { BizLayDict as T, CustomBizDict as o, EnumDict as p } from "jmash-core";
|
|
6
|
+
import { goodsCategoryApi as P } from "xyvcard-paper-goods";
|
|
7
|
+
import { EntryDict as d } from "jmash-dict";
|
|
8
|
+
class t {
|
|
9
|
+
}
|
|
10
|
+
//模块
|
|
11
|
+
e(t, "PAPER_DICT", "paper"), // 订单状态
|
|
12
|
+
e(t, "ENUM_ORDER_STATUS", y([
|
|
13
|
+
{ key: "unpay", value: "待付款" },
|
|
14
|
+
{ key: "unpost", value: "订阅成功" }
|
|
15
|
+
])), // 订单状态常量
|
|
16
|
+
e(t, "UNPAY", "unpay"), e(t, "UNPOST", "unpost"), // 发票票种
|
|
17
|
+
e(t, "LQFP_FPPZ", "Fppz"), // 开票状态
|
|
18
|
+
e(t, "INVOICE_STATUS", "xyvcard.order.protobuf.InvoiceStatus"), e(t, "UNINVOICE", "uninvoice"), e(t, "INVOICING", "invoicing"), e(t, "INVOICED", "invoiced"), // 企业
|
|
19
|
+
e(t, "GMF_TYPE_ENT", "ent"), // 个人
|
|
20
|
+
e(t, "GMF_TYPE_PER", "person"), // 证件类型
|
|
21
|
+
e(t, "DICT_TYPE_ID", "TypeID"), // 抬头类型
|
|
22
|
+
e(t, "GMF_TYPE_VALUES", y([
|
|
23
|
+
{ key: "ent", value: "企业" },
|
|
24
|
+
{ key: "person", value: "个人" }
|
|
25
|
+
])), // 订单模块
|
|
26
|
+
e(t, "MODULE_ORDER", "order"), // 支付方式
|
|
27
|
+
e(t, "PAYMENT_MODE", "xyvcard.order.protobuf.PaymentMode");
|
|
28
|
+
function _(r, i, a) {
|
|
29
|
+
return !Array.isArray(r) || r.length === 0 ? [] : r.map((s) => {
|
|
30
|
+
let E = [];
|
|
31
|
+
return Array.isArray(s.children) && s.children.length > 0 && (E = _(s.children, i, a)), {
|
|
32
|
+
value: s[a],
|
|
33
|
+
label: s[i],
|
|
34
|
+
parentId: s.parentId,
|
|
35
|
+
children: E
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
class I extends T {
|
|
40
|
+
// 实现 useValues 方法
|
|
41
|
+
useValues() {
|
|
42
|
+
return new Promise((i, a) => {
|
|
43
|
+
P.findTreeListApi(this.query).then((u) => {
|
|
44
|
+
const { data: s } = u;
|
|
45
|
+
this.values.length = 0, this.values.push(..._(s.results, "label", "value")), i(this.values);
|
|
46
|
+
}).catch(a);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
class c {
|
|
51
|
+
}
|
|
52
|
+
// 订单状态
|
|
53
|
+
e(c, "orderStatusEnum", new o(
|
|
54
|
+
t.ENUM_ORDER_STATUS,
|
|
55
|
+
{}
|
|
56
|
+
)), // 发票票种
|
|
57
|
+
e(c, "fppzDict", new d(t.LQFP_FPPZ)), // 开票状态
|
|
58
|
+
e(c, "invoiceStatusEnum", new p(
|
|
59
|
+
t.PAPER_DICT,
|
|
60
|
+
t.INVOICE_STATUS
|
|
61
|
+
)), // 商品分类(发行频率)
|
|
62
|
+
e(c, "goodsCategoryListBizLayDict", new I(
|
|
63
|
+
{}
|
|
64
|
+
)), e(c, "gmfTypeDict", new o(t.GMF_TYPE_VALUES, {})), // 支付方式
|
|
65
|
+
e(c, "paymentMode", new p(
|
|
66
|
+
t.MODULE_ORDER,
|
|
67
|
+
t.PAYMENT_MODE
|
|
68
|
+
));
|
|
69
|
+
export {
|
|
70
|
+
t as C,
|
|
71
|
+
c as D
|
|
72
|
+
};
|