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

页面修改

parent ee2f4965
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<ul> <ul>
<li> <li>
<template v-if="IsOperation != 1"> <template v-if="IsOperation != 1">
<input type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" :disabled="IsDisabled" /> <input v-if="IsEditDinner==1" 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==0" type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(0)" :disabled="IsDisabled" />
</template> </template>
<template v-else> <template v-else>
<span style="color:red;font-size:14px;">已制单,不能在修改!</span> <span style="color:red;font-size:14px;">已制单,不能在修改!</span>
...@@ -229,6 +229,7 @@ ...@@ -229,6 +229,7 @@
export default { export default {
data() { data() {
return { return {
IsEditDinner: 0, //1有权限操作餐配
defaultSelectValue: 0, defaultSelectValue: 0,
list: [], list: [],
roomList: [], roomList: [],
...@@ -460,8 +461,19 @@ ...@@ -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() { mounted() {
this.GetAuth();
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.CurrentUserInfo = userInfo; this.CurrentUserInfo = userInfo;
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
......
...@@ -670,7 +670,7 @@ ...@@ -670,7 +670,7 @@
}, },
methods: { methods: {
goDinnerUrl(obj, outItem) { goDinnerUrl(obj, outItem) {
if (this.IsEditDinner == 1) { // if (this.IsEditDinner == 1) {
this.$router.push({ this.$router.push({
name: 'bookDinnerStatisticsDetails', name: 'bookDinnerStatisticsDetails',
query: { query: {
...@@ -687,9 +687,9 @@ ...@@ -687,9 +687,9 @@
tab: "餐厅详情" tab: "餐厅详情"
} }
}) })
} else { // } else {
this.Error("请联系地接部操作!"); // this.Error("请联系地接部操作!");
} // }
}, },
getLeaderTypeStr: function (clas) { getLeaderTypeStr: function (clas) {
if (clas == 1) { 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