|
|
@@ -48,7 +48,7 @@
|
|
|
<span style="margin-right:20px;" v-if="nightAuditStatus"
|
|
|
>营业日:{{ nightAuditStatus.openDay }}
|
|
|
<span
|
|
|
- v-if="!nightAuditStatus.audited"
|
|
|
+ v-if="!nightAuditStatus.audited && nightAuditEdit"
|
|
|
style="cursor:pointer;"
|
|
|
@click="$router.push('/nightAuditEdit')"
|
|
|
>未夜审</span
|
|
|
@@ -94,7 +94,7 @@
|
|
|
<el-dropdown trigger="click" @command="onCommand" class="icon">
|
|
|
<span><i class="fas fa-power-off"></i></span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <template v-if="role != 'sale'">
|
|
|
+ <template v-if="role != 'sale' && shiftHandoverEdit">
|
|
|
<el-dropdown-item command="shift">交班</el-dropdown-item>
|
|
|
<!-- <el-dropdown-item command="nightAudit">夜审
|
|
|
</el-dropdown-item> -->
|
|
|
@@ -189,8 +189,8 @@ export default {
|
|
|
} else {
|
|
|
this.tabs = [
|
|
|
{
|
|
|
- name: 'roomStatus',
|
|
|
- title: '房态'
|
|
|
+ name: this.homePage,
|
|
|
+ title: this.homePage == 'roomStatus' ? '房态' : '首页'
|
|
|
}
|
|
|
];
|
|
|
}
|
|
|
@@ -198,7 +198,7 @@ export default {
|
|
|
if (this.$route.path === '/') {
|
|
|
let name = this.role == 'sale' ? 'saleIndex' : 'roomStatus';
|
|
|
this.$router.replace({
|
|
|
- name: this.role == 'sale' ? 'saleIndex' : 'roomStatus'
|
|
|
+ name: this.role == 'sale' ? 'saleIndex' : this.homePage
|
|
|
});
|
|
|
} else {
|
|
|
let index = this.tabs.findIndex(i => i.name === this.$route.name);
|
|
|
@@ -265,7 +265,15 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState(['userInfo', 'role', 'selectedStoreId', 'canEdit']),
|
|
|
+ ...mapState([
|
|
|
+ 'userInfo',
|
|
|
+ 'role',
|
|
|
+ 'selectedStoreId',
|
|
|
+ 'canEdit',
|
|
|
+ 'homePage',
|
|
|
+ 'shiftHandoverEdit',
|
|
|
+ 'nightAuditEdit'
|
|
|
+ ]),
|
|
|
stores() {
|
|
|
return this.userInfo ? this.userInfo.stores || [] : [];
|
|
|
}
|