9.20/2
This commit is contained in:
@@ -68,7 +68,21 @@ const _sfc_main = {
|
||||
return Number(p.cash || 0) + Number(p.bank || 0) + Number(p.wechat || 0);
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onLoad(query) {
|
||||
try {
|
||||
const biz = query && query.biz;
|
||||
const type = query && query.type;
|
||||
if (biz === "sale" || biz === "purchase" || biz === "income" || biz === "expense") {
|
||||
this.biz = biz;
|
||||
}
|
||||
if (this.biz === "sale" && (type === "out" || type === "return" || type === "collect")) {
|
||||
this.saleType = type;
|
||||
}
|
||||
if (this.biz === "purchase" && (type === "in" || type === "return" || type === "pay")) {
|
||||
this.purchaseType = type;
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
this.fetchCategories();
|
||||
},
|
||||
onShow() {
|
||||
|
||||
Reference in New Issue
Block a user