发票分角色

This commit is contained in:
chenjianan
2018-12-25 18:30:34 +08:00
parent 4476165381
commit c3bab31a7d

View File

@@ -288,7 +288,7 @@ export default {
return {
offline: '非离线',
check1: 0,
office: false,
office: null, // 是否为办公室
scanSrc: '',
upload: uploadInvoiceScan,
limit: 1,
@@ -342,12 +342,15 @@ export default {
'sidebar',
'avatar',
'name',
'token', // 角色编号
'id' // 人员编号
])
},
created() {
this.fetchData()
this.searchTable1()
console.log(this.token)
Number(this.token) === 8 ? this.office = true : this.office = false // 是否为办公室8是办公室2是采购部
},
methods: {
offlineChange2() { // 切换离线非离线(内)