|
@@ -121,34 +121,35 @@
|
|
|
<vxe-column width="100px" title="合同金额(元)" field="contractAmount"></vxe-column>
|
|
|
<vxe-column width="100px" title="创建人" field="createBy"></vxe-column>
|
|
|
<vxe-column width="150px" title="签订日期" field="contractDate"></vxe-column>
|
|
|
- <vxe-column width="120px" title="流程状态" field="status" >
|
|
|
+ <vxe-column width="120px" title="登记状态" field="status" >
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="detail(scope.row)" :type="$dictUtils.getDictLabel('approval_type_status', scope.row.status, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("approval_type", scope.row.status, '-')}} </el-button>
|
|
|
+ <el-button type="text" @click="detail(scope.row)" :type="$dictUtils.getDictLabel('approval_type_status', scope.row.status, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("approval_type", scope.row.status, '-')}} </el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
<vxe-column width="100px" title="归档状态" field="filedType" >
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="detailFiled(scope.row)" :type="$dictUtils.getDictLabel('filed_type', scope.row.filedType, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("filed_type", scope.row.filedType, '-')}} </el-button>
|
|
|
+ <el-button type="text" @click="detailFiled(scope.row)" :type="$dictUtils.getDictLabel('filed_type_status', scope.row.filedType, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("filed_type", scope.row.filedType, '未归档')}} </el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
<vxe-column width="100px" title="借用状态" field="borrowType" >
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="detailBorrow(scope.row)" :type="$dictUtils.getDictLabel('borrow_type', scope.row.borrowType, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("borrow_type", scope.row.borrowType, '-')}} </el-button>
|
|
|
+ <el-button type="text" @click="detailBorrow(scope.row)" :type="$dictUtils.getDictLabel('borrow_type_status', scope.row.borrowType, '-')" effect="dark" size="mini">{{$dictUtils.getDictLabel("borrow_type", scope.row.borrowType, '未借用')}} </el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
|
|
|
<vxe-column title="操作" width="200px" fixed="right" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="hasPermission('sys:workContract:view')" type="text" icon="el-icon-view" size="small" @click="view(scope.row.id)">查看</el-button>
|
|
|
- <el-button v-if="hasPermission('sys:workContract:edit') && scope.row.status !== '2' && scope.row.status !== '5' && scope.row.createId === create && !isAdmin" type="text" icon="el-icon-edit" size="small" @click="edit(scope.row)">修改</el-button>
|
|
|
- <el-button v-if="hasPermission('sys:workContract:edit') && scope.row.status === '5' && isAdmin" type="text" icon="el-icon-edit" size="small" @click="editForm(scope.row.id)">修改</el-button>
|
|
|
- <el-button v-if="hasPermission('sys:workContract:del') && (scope.row.status === '1' || scope.row.status === '3')" type="text" icon="el-icon-delete" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
- <el-button v-if="hasPermission('sys:workContract:back') && scope.row.status === '2'" type="text" icon="el-icon-back" size="small" @click="reback(scope.row)">撤回</el-button>
|
|
|
- <el-button v-if="hasPermission('sys:workContract:filed') && scope.row.status === '5' && scope.row.createId === create && (scope.row.filedType === '1' || scope.row.filedType === '2' || scope.row.filedType === '4' || scope.row.filedType === '5' || scope.row.filedType === undefined)" type="text" icon="el-icon-s-order" size="small" @click="filed(scope.row.id)">归档</el-button>
|
|
|
- <el-button v-if="hasPermission('sys:workContract:back') && scope.row.status === '5' && scope.row.filedType === '3'" type="text" icon="el-icon-back" size="small" @click="rebackFiled(scope.row)">撤回</el-button>
|
|
|
- <el-button v-if="hasPermission('sys:workContract:borrow') && scope.row.status === '5' && scope.row.filedType === '6' && (scope.row.borrowType === undefined || scope.row.borrowType === '1')" type="text" icon="el-icon-s-order" size="small" @click="borrow(scope.row.id)">借用</el-button>
|
|
|
- <el-button v-if="hasPermission('sys:workContract:back') && scope.row.status === '5' && scope.row.filedType === '6' && scope.row.borrowType === '2'" type="text" icon="el-icon-back" size="small" @click="rebackBorrow(scope.row)">撤回</el-button>
|
|
|
- <el-button v-if="hasPermission('sys:workContract:reture') && scope.row.status === '5' && scope.row.filedType === '6' && scope.row.borrowType === '6'" type="text" icon="el-icon-back" size="small" @click="retureBorrow(scope.row)">归还合同</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:view')" type="text" size="small" @click="view(scope.row.id)">查看</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:edit') && scope.row.status !== '2' && scope.row.status !== '5' && scope.row.createId === create" type="text" size="small" @click="edit(scope.row)">修改</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:edit') && scope.row.status === '5' && isAdmin" type="text" size="small" @click="editForm(scope.row.id)">修改</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:del') && (scope.row.status === '1' || scope.row.status === '3') && scope.row.createId === create" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:back') && scope.row.status === '2'" type="text" size="small" @click="reback(scope.row)">撤回</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:filed') && scope.row.status === '5' && scope.row.createId === create && (scope.row.filedType === '1' || scope.row.filedType === '4' || scope.row.filedType === '5' || scope.row.filedType === undefined)" type="text" size="small" @click="filed(scope.row.id)">归档</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:filed') && scope.row.status === '5' && scope.row.createId === create && scope.row.filedType === '2'" type="text" size="small" @click="filed(scope.row.id)">修改</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:back') && scope.row.status === '5' && scope.row.filedType === '3'" type="text" size="small" @click="rebackFiled(scope.row)">撤回</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:borrow') && scope.row.status === '5' && scope.row.filedType === '6' && (scope.row.borrowType === undefined || scope.row.borrowType === '1')" type="text" size="small" @click="borrow(scope.row.id)">借用</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:back') && scope.row.status === '5' && scope.row.filedType === '6' && scope.row.borrowType === '2'" type="text" size="small" @click="rebackBorrow(scope.row)">撤回</el-button>
|
|
|
+ <el-button v-if="hasPermission('sys:workContract:reture') && scope.row.status === '5' && scope.row.filedType === '6' && scope.row.borrowType === '6'" type="text" size="small" @click="retureBorrow(scope.row)">归还合同</el-button>
|
|
|
</template>
|
|
|
</vxe-column>
|
|
|
</vxe-table>
|
|
@@ -552,25 +553,27 @@
|
|
|
},
|
|
|
// 归档详情
|
|
|
detailFiled (row) {
|
|
|
- this.workContractFileService.findByContractInfoId(row.id).then(({data}) => {
|
|
|
- if (!this.commonJS.isEmpty(data.id)) {
|
|
|
- console.log('data', data)
|
|
|
- this.taskService.getTaskDef({
|
|
|
- procInsId: data.procInsId,
|
|
|
- procDefId: data.processDefinitionId
|
|
|
- }).then(({data}) => {
|
|
|
- this.$router.push({
|
|
|
- path: '/flowable/task/TaskFormDetail',
|
|
|
- query: {
|
|
|
- readOnly: true,
|
|
|
- title: row.name + '归档流程详情',
|
|
|
- formTitle: row.name + '归档流程详情',
|
|
|
- businessId: row.id,
|
|
|
- ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId')}
|
|
|
+ if (row.filedType !== '4') {
|
|
|
+ this.workContractFileService.findByContractInfoId(row.id).then(({data}) => {
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
+ console.log('data', data)
|
|
|
+ this.taskService.getTaskDef({
|
|
|
+ procInsId: data.procInsId,
|
|
|
+ procDefId: data.processDefinitionId
|
|
|
+ }).then(({data}) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskFormDetail',
|
|
|
+ query: {
|
|
|
+ readOnly: true,
|
|
|
+ title: row.name + '归档流程详情',
|
|
|
+ formTitle: row.name + '归档流程详情',
|
|
|
+ businessId: row.id,
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title', 'businessId')}
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
// 借用
|
|
|
borrow (id) {
|
|
@@ -637,6 +640,7 @@
|
|
|
// 归还合同
|
|
|
retureBorrow (row) {
|
|
|
this.updateStatusById(row, 'retureBorrow')
|
|
|
+ this.refreshList()
|
|
|
}
|
|
|
}
|
|
|
}
|