Commit 2e3ce2ba authored by 黄奎's avatar 黄奎

页面修改

parent ee2f4965
......@@ -4,8 +4,8 @@
<ul>
<li>
<template v-if="IsOperation != 1">
<input type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" :disabled="IsDisabled" />
<input type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(0)" :disabled="IsDisabled" />
<input v-if="IsEditDinner==1" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" :disabled="IsDisabled" />
<input v-if="IsEditDinner==0" type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(0)" :disabled="IsDisabled" />
</template>
<template v-else>
<span style="color:red;font-size:14px;">已制单,不能在修改!</span>
......@@ -229,6 +229,7 @@
export default {
data() {
return {
IsEditDinner: 0, //1有权限操作餐配
defaultSelectValue: 0,
list: [],
roomList: [],
......@@ -460,8 +461,19 @@
}
})
},
GetAuth() {
this.apipost('dmcstatistics_get_GetGetDmcTotalTablePageAuth', {}, res => {
if (res.data.resultCode == 1) {
//this.IsDMCIsOpenHotel = res.data.data.IsDMCIsOpenHotel;
this.IsEditDinner = res.data.data.IsEditDinner;
} else {
this.$message.error(res.data.message);
}
}, err => {})
}
},
mounted() {
this.GetAuth();
let userInfo = this.getLocalStorage();
this.CurrentUserInfo = userInfo;
this.TCNUM = this.$route.query.TCNUM;
......
......@@ -670,7 +670,7 @@
},
methods: {
goDinnerUrl(obj, outItem) {
if (this.IsEditDinner == 1) {
// if (this.IsEditDinner == 1) {
this.$router.push({
name: 'bookDinnerStatisticsDetails',
query: {
......@@ -686,10 +686,10 @@
blank: 'y',
tab: "餐厅详情"
}
})
} else {
this.Error("请联系地接部操作!");
}
})
// } else {
// this.Error("请联系地接部操作!");
// }
},
getLeaderTypeStr: function (clas) {
if (clas == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment