Commit a48eb773 authored by 黄奎's avatar 黄奎

页面修改

parent e08fcef6
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
<ul> <ul>
<li> <li>
<template v-if="IsOperation != 1"> <template v-if="IsOperation != 1">
<input v-if="IsOperation != 1" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" /> <input type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" />
<input v-if="IsOperation != 1" type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(0)" /> <input type="button" class="fr normalBtn mb30" value="保存草稿" @click="saveList(0)" />
</template> </template>
<template v-else> <template v-else>
<span v-if="IsOperation==1" style="color:red;font-size:14px;">已制单,不能在修改!</span> <span style="color:red;font-size:14px;">已制单,不能在修改!</span>
<input v-if="CurrentUserInfo.EmployeeId==615" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" />
</template> </template>
<input type="button" class="fr normalBtn mb30" style="display:none;" value="保存" @click="saveList(1)" />
</li> </li>
</ul> </ul>
</div> </div>
...@@ -192,6 +192,8 @@ ...@@ -192,6 +192,8 @@
GuestNum: 0, GuestNum: 0,
loading: false, loading: false,
IsOperation: '', IsOperation: '',
//当前登录人信息
CurrentUserInfo:{},
}; };
}, },
methods: { methods: {
...@@ -343,6 +345,8 @@ ...@@ -343,6 +345,8 @@
}, },
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage();
this.CurrentUserInfo = userInfo;
this.TCNUM = this.$route.query.TCNUM; this.TCNUM = this.$route.query.TCNUM;
this.GuestNum = this.$route.query.GuestNum; this.GuestNum = this.$route.query.GuestNum;
this.getList(); this.getList();
......
...@@ -143,6 +143,8 @@ ...@@ -143,6 +143,8 @@
loading: false, loading: false,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
//当前登录用户
CurrentUserInfo: {},
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 5, pageSize: 5,
...@@ -264,6 +266,8 @@ ...@@ -264,6 +266,8 @@
}, },
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage()
this.CurrentUserInfo = userInfo;
let myDate = new Date(); let myDate = new Date();
let nowDate = let nowDate =
myDate.getFullYear() + myDate.getFullYear() +
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
</template> </template>
<template v-else> <template v-else>
<span style="color:red;font-size:14px;">已制单,不能在修改!</span> <span style="color:red;font-size:14px;">已制单,不能在修改!</span>
<input v-if="CurrentUserInfo.EmployeeId == 615" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" />
</template> </template>
<input style="display:none;" type="button" class="fr normalBtn mb30" value="保存" @click="saveList(1)" />
</li> </li>
</ul> </ul>
</div> </div>
......
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