|
@@ -230,14 +230,14 @@
|
|
|
</vxe-column>
|
|
|
<vxe-column min-width="300" title="操作" fixed="right" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="hasPermission('finance:invoice:edit')&&scope.row.status === '1'||scope.row.status === '3'||scope.row.status === '4'" type="text" size="small" @click="invoicePush(scope.row)">修改</el-button>
|
|
|
+ <el-button v-if="hasPermission('finance:invoice:edit')&&scope.row.status === '1'||scope.row.status === '3'" type="text" size="small" @click="invoicePush(scope.row)">修改</el-button>
|
|
|
<el-button v-if="hasPermission('finance:invoice:edit')&&scope.row.status === '2'" type="text" size="small" @click="invoiceReback(scope.row)">撤回</el-button>
|
|
|
<el-button v-if="hasPermission('finance:invoice:edit:detail')&&scope.row.status === '5'&&scope.row.receivablesStatus !== '1'" type="text" size="small" @click="editDetail(scope.row.id)">修改发票明细</el-button>
|
|
|
<el-button v-if="hasPermission('finance:invoice:edit:receivables')&&scope.row.status === '5'&&scope.row.receivablesStatus !== '1'" type="text" size="small" @click="view(true, scope.row.id)">收款</el-button>
|
|
|
<el-button v-if="hasPermission('finance:invoice:edit:is_receivables')&&scope.row.status === '5'&&scope.row.receivablesStatus !== '1'" type="text" size="small" @click="isReceivables(scope.row)">确认收款</el-button>
|
|
|
- <el-button v-if="hasPermission('finance:invoice:edit:invalid')&&scope.row.status === '5'||scope.row.status === '7'||scope.row.status === '8'" type="text" size="small" @click="invoiceInvalidPush(scope.row)">作废</el-button>
|
|
|
+ <el-button v-if="hasPermission('finance:invoice:edit:invalid')&&scope.row.status === '5'||scope.row.status === '7'" type="text" size="small" @click="invoiceInvalidPush(scope.row)">作废</el-button>
|
|
|
<el-button v-if="hasPermission('finance:invoice:edit:invalid')&&scope.row.status === '6'" type="text" size="small" @click="invoiceInvalidReBack(scope.row)">作废撤回</el-button>
|
|
|
- <el-button v-if="hasPermission('finance:invoice:edit')&&scope.row.status === '1'||scope.row.status === '3'||scope.row.status === '4'" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
+ <el-button v-if="hasPermission('finance:invoice:edit')&&scope.row.status === '1'||scope.row.status === '3'" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
@@ -513,6 +513,7 @@
|
|
|
this.$router.push({
|
|
|
path: '/flowable/task/TaskForm',
|
|
|
query: {
|
|
|
+ ...pick(data.data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
procDefId: this.processDefinitionId,
|
|
|
procDefKey: this.procDefKey,
|
|
|
status: 'startAndHold',
|
|
@@ -533,8 +534,10 @@
|
|
|
let title = `发起流程【发票申请】`
|
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[发票申请]`
|
|
|
let status = 'startAndHold'
|
|
|
- if (row.status === '3' || row.status === '4') {
|
|
|
+ if (row.status === '3') {
|
|
|
status = 'startAndClose'
|
|
|
+ } else if (row.status === '4') {
|
|
|
+ status = 'reapplyFlag'
|
|
|
}
|
|
|
this.taskService.getTaskDef({ procDefId: this.processDefinitionId,
|
|
|
businessId: row.id,
|
|
@@ -542,6 +545,7 @@
|
|
|
this.$router.push({
|
|
|
path: '/flowable/task/TaskForm',
|
|
|
query: {
|
|
|
+ ...pick(data.data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
procDefId: this.processDefinitionId,
|
|
|
procDefKey: this.procDefKey,
|
|
|
title: title,
|
|
@@ -563,8 +567,10 @@
|
|
|
let title = `发起流程【发票作废】`
|
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了[发票作废]`
|
|
|
let status = 'startAndHold'
|
|
|
- if (row.status === '8' || row.status === '7') {
|
|
|
+ if (row.status === '7') {
|
|
|
status = 'startAndClose'
|
|
|
+ } else if (row.status === '8') {
|
|
|
+ status = 'reapplyFlag'
|
|
|
}
|
|
|
this.taskService.getTaskDef({ procDefId: this.processDefinitionInvalidId,
|
|
|
businessId: row.financeInvoiceInvalidDTO.id,
|
|
@@ -572,6 +578,7 @@
|
|
|
this.$router.push({
|
|
|
path: '/flowable/task/TaskForm',
|
|
|
query: {
|
|
|
+ ...pick(data.data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
procDefId: this.processDefinitionInvalidId,
|
|
|
procDefKey: this.procDefInvalidKey,
|
|
|
title: title,
|
|
@@ -600,13 +607,13 @@
|
|
|
this.$router.push({
|
|
|
path: '/flowable/task/TaskFormDetail',
|
|
|
query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
isShow: 'false',
|
|
|
readOnly: true,
|
|
|
title: '发票申请' + '流程详情',
|
|
|
formTitle: '发票申请' + '流程详情',
|
|
|
businessId: row.id,
|
|
|
- status: 'reback',
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'title', 'businessId')
|
|
|
+ status: 'reback'
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -622,13 +629,13 @@
|
|
|
this.$router.push({
|
|
|
path: '/flowable/task/TaskFormDetail',
|
|
|
query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
isShow: 'false',
|
|
|
readOnly: true,
|
|
|
title: '发票作废' + '流程详情',
|
|
|
formTitle: '发票作废' + '流程详情',
|
|
|
businessId: row.financeInvoiceInvalidDTO.id,
|
|
|
- status: 'reback',
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'title', 'businessId')
|
|
|
+ status: 'reback'
|
|
|
}
|
|
|
})
|
|
|
})
|