运费模版

This commit is contained in:
余同学 2025-03-20 10:00:57 +08:00
parent 7317367716
commit effc36a756
1 changed files with 27 additions and 8 deletions

View File

@ -67,10 +67,20 @@ export default {
}; };
}, },
created() { created() {
if (
JSON.parse(sessionStorage.getItem("userInfo")).role === "ROLE_MERCHANT"
) {
this.searchForm = {
name: "",
linkId: this.shopId,
};
} else {
this.searchForm = { this.searchForm = {
name: "", name: "",
linkId: this.marketId ? this.marketId : this.shopId, linkId: this.marketId ? this.marketId : this.shopId,
}; };
}
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.oTable.reload(); this.$refs.oTable.reload();
}); });
@ -95,10 +105,19 @@ export default {
}); });
}, },
Reset() { Reset() {
if (
JSON.parse(sessionStorage.getItem("userInfo")).role === "ROLE_MERCHANT"
) {
this.searchForm = {
name: "",
linkId: this.shopId,
};
} else {
this.searchForm = { this.searchForm = {
name: "", name: "",
linkId: this.marketId ? this.marketId : this.shopId, linkId: this.marketId ? this.marketId : this.shopId,
}; };
}
this.$refs.oTable.reload(); this.$refs.oTable.reload();
}, },
addFareTemplate() { addFareTemplate() {