|
@@ -8,10 +8,10 @@
|
|
|
<el-input v-model="queryParams.batchName" placeholder="请输入结算批次" @keyup.enter.native="handleQuery" clearable />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="关联项目" prop="projectId">
|
|
|
- <projectSelect v-model="queryParams.projectId"></projectSelect>
|
|
|
+ <projectSelect v-model="queryParams.projectId" class="inp"></projectSelect>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="审核状态" prop="audit">
|
|
|
- <el-select v-model="queryParams.audit" placeholder="充值状态" class="se" clearable>
|
|
|
+ <el-select v-model="queryParams.audit" placeholder="待审状态" class="se" clearable>
|
|
|
<el-option value="1" label="待审核"></el-option>
|
|
|
<el-option value="2" label="审核通过"></el-option>
|
|
|
<el-option value="3" label="审核驳回"></el-option>
|
|
@@ -40,7 +40,7 @@
|
|
|
<el-tag type="success" v-if="scope.row.audit == 2">审核通过</el-tag>
|
|
|
<el-popover placement="top-start" v-if="scope.row.audit == 3" title="原因" width="200" trigger="hover" :content="scope.row.msg">
|
|
|
<div slot="reference">
|
|
|
- <el-tag type="info">审核驳回</el-tag>
|
|
|
+ <el-tag type="info">驳回</el-tag>
|
|
|
<i class="el-icon-warning"></i>
|
|
|
</div>
|
|
|
</el-popover>
|
|
@@ -51,7 +51,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="op('detail', scope.row)">详情</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-check" @click="op('success', scope.row)" v-if="scope.row.audit === 1">同意</el-button>
|
|
|
- <el-button size="mini" type="text" icon="el-icon-close" @click="op('submit', scope.row)" v-if="scope.row.audit === 1">驳回</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-close" @click="op('reject', scope.row)" v-if="scope.row.audit === 1">驳回</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<template slot="empty">
|
|
@@ -72,6 +72,7 @@ export default {
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
+ num: null,
|
|
|
batchName: null,
|
|
|
audit: null,
|
|
|
projectId: null,
|
|
@@ -104,16 +105,26 @@ export default {
|
|
|
}
|
|
|
if (tag == 'success') {
|
|
|
this.$confirm('是否确认审核通过?', '警告', { type: 'warning' }).then(() => {
|
|
|
- this.ajax({ url: '/work/statement/audit/success/' + id, data: { id: id } }).then((response) => {
|
|
|
+ this.ajax({ url: '/work/statement/audit/success/' + id }).then((response) => {
|
|
|
this.$modal.msgSuccess('审核成功');
|
|
|
this.getList();
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
- if (tag == 'cancel') {
|
|
|
- this.$confirm('是否撤销审核?', '警告', { type: 'warning' }).then(() => {
|
|
|
- this.ajax({ url: '/work/statement/manage/cancel/' + id, data: { id: id } }).then((response) => {
|
|
|
- this.$modal.msgSuccess('撤销成功');
|
|
|
+ if (tag == 'reject') {
|
|
|
+ this.$prompt('确定审核驳回', {
|
|
|
+ type: 'warning',
|
|
|
+ showInput: true,
|
|
|
+ inputType: 'textarea',
|
|
|
+ inputPlaceholder: '驳回原因',
|
|
|
+ inputValidator: (value) => {
|
|
|
+ if (!value) {
|
|
|
+ return '请输入驳回原因';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).then(({ value }) => {
|
|
|
+ this.ajax({ method: 'post', url: '/work/statement/audit/reject', data: { id: id, msg: value } }).then((response) => {
|
|
|
+ this.$modal.msgSuccess('驳回成功');
|
|
|
this.getList();
|
|
|
});
|
|
|
});
|