9.20/3
This commit is contained in:
@@ -70,8 +70,9 @@ const _sfc_main = {
|
||||
},
|
||||
onLoad(query) {
|
||||
try {
|
||||
const biz = query && query.biz;
|
||||
const type = query && query.type;
|
||||
const preset = common_vendor.index.getStorageSync("ORDER_DEFAULT_PARAMS") || {};
|
||||
const biz = query && query.biz || preset.biz;
|
||||
const type = query && query.type || preset.type;
|
||||
if (biz === "sale" || biz === "purchase" || biz === "income" || biz === "expense") {
|
||||
this.biz = biz;
|
||||
}
|
||||
@@ -81,6 +82,10 @@ const _sfc_main = {
|
||||
if (this.biz === "purchase" && (type === "in" || type === "return" || type === "pay")) {
|
||||
this.purchaseType = type;
|
||||
}
|
||||
try {
|
||||
common_vendor.index.removeStorageSync("ORDER_DEFAULT_PARAMS");
|
||||
} catch (_) {
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
this.fetchCategories();
|
||||
|
||||
Reference in New Issue
Block a user