|
@@ -269,6 +269,7 @@
|
|
|
isSs:false,
|
|
|
isAdmin:false,
|
|
|
isDgsbxBmzr:false,
|
|
|
+ isKjsz:false,
|
|
|
}
|
|
|
},
|
|
|
// reimbursementService: null,
|
|
@@ -337,7 +338,7 @@
|
|
|
let tabTitle = `发起流程【项目-报销审批】`
|
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [项目-报销审批]`
|
|
|
console.log(this.processDefinitionId)
|
|
|
- if (this.isZj || this.isDgsbxBmzr){
|
|
|
+ if (this.isZj || this.isDgsbxBmzr || this.isKjsz){
|
|
|
taskService.getTaskDef({ procDefId: this.processDefinitionIdSzbx,
|
|
|
status: 'startAndHold'}).then((data) => {
|
|
|
this.$router.push({
|
|
@@ -436,7 +437,7 @@
|
|
|
// 读取流程表单
|
|
|
let tabTitle = `发起流程【项目-报销审批】`
|
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [项目-报销审批]`
|
|
|
- if (this.isZj || this.isDgsbxBmzr){
|
|
|
+ if (this.isZj || this.isDgsbxBmzr || this.isKjsz){
|
|
|
taskService.getTaskDef({ procDefId: this.processDefinitionIdSzbx,
|
|
|
businessId: row.id,
|
|
|
businessTable: 'ccpm_reimbursement_info',
|
|
@@ -583,12 +584,14 @@
|
|
|
// this.$refs.projectForm.init('view', id)
|
|
|
this.$refs.projectRecordsForm.init('view', id)
|
|
|
},
|
|
|
+ //多公司报销
|
|
|
checkIsZj(){
|
|
|
userService.isZj().then((data)=>{
|
|
|
this.isZj = data
|
|
|
console.log('this.isZj',this.isZj)
|
|
|
})
|
|
|
},
|
|
|
+ //多公司报销(部门主任)
|
|
|
checkIsDgsbxBmzr(){
|
|
|
userService.isDgsbxBmzr().then((data)=>{
|
|
|
this.isDgsbxBmzr = data
|
|
@@ -613,6 +616,13 @@
|
|
|
this.isAdmin = data
|
|
|
})
|
|
|
},
|
|
|
+ //查询当前用户是否是会计所长
|
|
|
+ checkIsKjsz(){
|
|
|
+ userService.isKjsz().then((data)=>{
|
|
|
+ this.isKjsz = data
|
|
|
+ console.log('this.isKjsz',this.isKjsz)
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取数据列表
|
|
|
refreshList () {
|
|
|
this.loading = true
|
|
@@ -641,6 +651,7 @@
|
|
|
this.checkIsZjbry()
|
|
|
this.checkIsSs()
|
|
|
this.checkIsAdmin()
|
|
|
+ this.checkIsKjsz()
|
|
|
processService.getByName('项目-报销审批').then((data) => {
|
|
|
if (!this.commonJS.isEmpty(data.id)) {
|
|
|
this.processDefinitionId = data.id
|
|
@@ -710,7 +721,7 @@
|
|
|
// 流程详情
|
|
|
detail (row) {
|
|
|
if (!this.commonJS.isEmpty(row.type) && row.type !== '1') {
|
|
|
- if (this.isZj || this.isDgsbxBmzr){
|
|
|
+ if (this.isZj || this.isDgsbxBmzr || this.isKjsz){
|
|
|
if (row.reimbursementType === '1') {
|
|
|
this.procDefId = this.processDefinitionIdSzbxInvoice
|
|
|
} else if (row.reimbursementType === '0') {
|