|
@@ -27,6 +27,10 @@
|
|
|
<div class="jp-table">
|
|
<div class="jp-table">
|
|
|
<vxe-toolbar ref="todoToolbar" :refresh="{ query: refreshList }" export print custom>
|
|
<vxe-toolbar ref="todoToolbar" :refresh="{ query: refreshList }" export print custom>
|
|
|
<template #buttons>
|
|
<template #buttons>
|
|
|
|
|
+ <el-button v-if="hasPermission('approval:info:reimbursementApproval')" type="primary"
|
|
|
|
|
+ @click="allReimbursementApproval()">一键审核报销</el-button>
|
|
|
|
|
+ <el-button v-if="hasPermission('approval:info:reimbursementApproval')" type="primary"
|
|
|
|
|
+ @click="oneClickApproval()">批量审核报销</el-button>
|
|
|
<el-button v-if="hasPermission('approval:info:edit')" type="primary" icon="el-icon-plus"
|
|
<el-button v-if="hasPermission('approval:info:edit')" type="primary" icon="el-icon-plus"
|
|
|
@click="approval()"
|
|
@click="approval()"
|
|
|
:disabled="$refs.todoTable && $refs.todoTable.getCheckboxRecords().length === 0">批量审核</el-button>
|
|
:disabled="$refs.todoTable && $refs.todoTable.getCheckboxRecords().length === 0">批量审核</el-button>
|
|
@@ -99,6 +103,7 @@
|
|
|
<user-select2 ref="userSelect2" @doSubmit="selectUser">
|
|
<user-select2 ref="userSelect2" @doSubmit="selectUser">
|
|
|
</user-select2>
|
|
</user-select2>
|
|
|
<TodoDia ref="todoDia" @refreshDataList="refreshList"></TodoDia>
|
|
<TodoDia ref="todoDia" @refreshDataList="refreshList"></TodoDia>
|
|
|
|
|
+ <TodoBatch ref="todoBatch" @refreshDataList="refreshList"></TodoBatch>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -109,6 +114,7 @@ import UserSelect from "@/components/userSelect/UserSelectDialog";
|
|
|
import taskService from "@/api/flowable/taskService";
|
|
import taskService from "@/api/flowable/taskService";
|
|
|
import UserSelect2 from '@/views/utils/UserTreeSelect';
|
|
import UserSelect2 from '@/views/utils/UserTreeSelect';
|
|
|
import TodoDia from "./TodoDia";
|
|
import TodoDia from "./TodoDia";
|
|
|
|
|
+import TodoBatch from "./TodoBatch";
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -151,7 +157,8 @@ export default {
|
|
|
components: {
|
|
components: {
|
|
|
UserSelect,
|
|
UserSelect,
|
|
|
UserSelect2,
|
|
UserSelect2,
|
|
|
- TodoDia
|
|
|
|
|
|
|
+ TodoDia,
|
|
|
|
|
+ TodoBatch
|
|
|
// FlowChart
|
|
// FlowChart
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -467,6 +474,29 @@ export default {
|
|
|
let info = this.$refs.todoTable.getCheckboxRecords()
|
|
let info = this.$refs.todoTable.getCheckboxRecords()
|
|
|
this.$refs.todoDia.init(info)
|
|
this.$refs.todoDia.init(info)
|
|
|
},
|
|
},
|
|
|
|
|
+ oneClickApproval() {
|
|
|
|
|
+ let info = this.$refs.todoTable.getCheckboxRecords()
|
|
|
|
|
+ if (info.some(item => !this.isBatchReimbursementProcess(item.processDefinitionName))) {
|
|
|
|
|
+ this.$message.warning('勾选数据中包含非报销流程,请重新选择')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs.todoBatch.init(info)
|
|
|
|
|
+ },
|
|
|
|
|
+ isBatchReimbursementProcess(processName) {
|
|
|
|
|
+ const processNames = [
|
|
|
|
|
+ '咨询-所长报销-电子发票', '咨询-所长报销', '咨询-总经办报销', '咨询-报销审批-电子发票', '咨询-报销审批',
|
|
|
|
|
+ '项目-总经办报销', '中审-总经办报销', '评估-总经办报销', '会计-总经办报销',
|
|
|
|
|
+ '项目-报销审批-电子发票', '项目-报销审批', '评估-所长报销-电子发票', '评估-所长报销',
|
|
|
|
|
+ '中审-所长报销-电子发票', '中审-所长报销', '会计-所长报销', '会计-所长报销-电子发票',
|
|
|
|
|
+ '中审-报销审批-电子发票', '评估-报销审批-电子发票', '会计-报销审批-电子发票',
|
|
|
|
|
+ '中审-报销审批', '评估-报销审批', '会计-报销审批',
|
|
|
|
|
+ '苏州-业务操作报销', '中审-苏州分公司(智永祥)-报销'
|
|
|
|
|
+ ]
|
|
|
|
|
+ return processNames.includes(processName)
|
|
|
|
|
+ },
|
|
|
|
|
+ allReimbursementApproval() {
|
|
|
|
|
+ this.$refs.todoBatch.initAll()
|
|
|
|
|
+ },
|
|
|
// // 审核方法
|
|
// // 审核方法
|
|
|
todoCcpm(row) {
|
|
todoCcpm(row) {
|
|
|
console.log('row', row)
|
|
console.log('row', row)
|