发票分角色

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