|
@@ -32,7 +32,8 @@ import {
|
|
|
getFinanceOtherReceDelete,
|
|
|
getFinanceOtherReceDetail,
|
|
|
getFinanceOtherReceApply,
|
|
|
- getFinanceOtherReceAbandon
|
|
|
+ getFinanceOtherReceAbandon,
|
|
|
+ financeOtherReceClose
|
|
|
} from '@/api/finance/receivable_list'
|
|
|
import ReceivableListAdd from './components/receivable_list-add'
|
|
|
import ReceivableListApproval from './components/receivable_list-approval'
|
|
@@ -159,33 +160,47 @@ export default {
|
|
|
return (
|
|
|
<div class="operation-btns">
|
|
|
{this.$checkBtnRole('print', this.$route.meta.roles) ? (
|
|
|
- <el-button type="text" class="textColor" onClick={() => this.toPrint(row, 2)}>
|
|
|
+ <el-button type="text" size="mini" class="textColor" onClick={() => this.toPrint(row, 2)}>
|
|
|
打印
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
{(row.examineStatus == 'WAIT' || row.examineStatus == 'FAIL') &&
|
|
|
this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
- <el-button type="text" onClick={() => this.approvalFn(row.id)}>
|
|
|
+ <el-button type="text" size="mini" onClick={() => this.approvalFn(row.id)}>
|
|
|
审批
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
{row.examineStatus == 'SAVE' ? (
|
|
|
- <el-button type="text" onClick={() => this.bringFn(row.id)}>
|
|
|
+ <el-button type="text" size="mini" onClick={() => this.bringFn(row.id)}>
|
|
|
提审
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
{row.examineStatus == 'OK' || row.examineStatus == 'FAIL' ? (
|
|
|
- <el-button type="text" onClick={() => this.unApprovalFn(row.id)}>
|
|
|
+ <el-button type="text" size="mini" onClick={() => this.unApprovalFn(row.id)}>
|
|
|
弃审
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
{row.examineStatus == 'SAVE' ? (
|
|
|
- <el-button type="text" onClick={() => this.detailFn(row.id, 'edit')}>
|
|
|
+ <el-button type="text" size="mini" onClick={() => this.detailFn(row.id, 'edit')}>
|
|
|
编辑
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
+ {row.examineStatus !== 'CLOSE' ? (
|
|
|
+ <el-popconfirm title="关闭吗?" onOnConfirm={() => {
|
|
|
+ financeOtherReceClose({
|
|
|
+ id: row.id
|
|
|
+ }).then(_res=>{
|
|
|
+ this.$message.success('关闭成功')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ })
|
|
|
+ }}>
|
|
|
+ <el-button slot="reference" type="text" size="mini">
|
|
|
+ 关闭
|
|
|
+ </el-button>
|
|
|
+ </el-popconfirm>
|
|
|
+ ) : null}
|
|
|
{
|
|
|
- <el-button type="text" onClick={() => this.detailFn(row.id, 'detail')}>
|
|
|
+ <el-button type="text" size="mini" onClick={() => this.detailFn(row.id, 'detail')}>
|
|
|
详情
|
|
|
</el-button>
|
|
|
}
|