|
@@ -5,7 +5,7 @@
|
|
<div class="label">年月:</div>
|
|
<div class="label">年月:</div>
|
|
<div class="value">
|
|
<div class="value">
|
|
<el-date-picker v-model="tableForm.dates" type="monthrange" range-separator="至" start-placeholder="开始日期"
|
|
<el-date-picker v-model="tableForm.dates" type="monthrange" range-separator="至" start-placeholder="开始日期"
|
|
- @change="getFinanceAuditTableData()" size="small" value-format="yyyy-MM" end-placeholder="结束日期">
|
|
|
|
|
|
+ @change="getFinanceAuditTableData()" size="small" value-format="yyyy-MM" end-placeholder="结束日期" :clearable="false">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -25,7 +25,7 @@
|
|
v-loading="allLoading.tableLoading">
|
|
v-loading="allLoading.tableLoading">
|
|
<el-table-column prop="reportYrmnth" label="日报年月" align="center">
|
|
<el-table-column prop="reportYrmnth" label="日报年月" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button type="text" @click="toDetail()">{{ scope.row.reportYrmnth }}</el-button>
|
|
|
|
|
|
+ <el-button type="text" @click="toDetail(scope.row)">{{ scope.row.reportYrmnth }}</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="reviewerName" label="审核人" align="center"></el-table-column>
|
|
<el-table-column prop="reviewerName" label="审核人" align="center"></el-table-column>
|
|
@@ -35,10 +35,10 @@
|
|
{{ scope.row.reviewStatus == 1 ? '未审核' : '已审核' }}
|
|
{{ scope.row.reviewStatus == 1 ? '未审核' : '已审核' }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" align="center" v-if="tableForm.status == 1" fixed="right">
|
|
|
|
|
|
+ <el-table-column label="操作" align="center" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button @click="audit(scope.row)" type="text">审核</el-button>
|
|
|
|
- <el-button type="text" @click="toDetail()">查看详情</el-button>
|
|
|
|
|
|
+ <el-button @click="audit(scope.row)" type="text" v-if="scope.row.reviewStatus == 1">审核</el-button>
|
|
|
|
+ <el-button type="text" @click="toDetail(scope.row)">查看详情</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -61,10 +61,11 @@ export default {
|
|
return {
|
|
return {
|
|
tableForm: {
|
|
tableForm: {
|
|
dates: [],
|
|
dates: [],
|
|
- status: 1,
|
|
|
|
|
|
+ status: 0,
|
|
},
|
|
},
|
|
financeAuditTableData: [],
|
|
financeAuditTableData: [],
|
|
statusOptions: [
|
|
statusOptions: [
|
|
|
|
+ { value: 0, label: '全部' },
|
|
{ value: 1, label: '未审核' },
|
|
{ value: 1, label: '未审核' },
|
|
{ value: 2, label: '已审核' },
|
|
{ value: 2, label: '已审核' },
|
|
],
|
|
],
|
|
@@ -88,12 +89,12 @@ export default {
|
|
this.getFinanceAuditTableData()
|
|
this.getFinanceAuditTableData()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- toDetail() {
|
|
|
|
|
|
+ toDetail(item) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/cost',
|
|
path: '/cost',
|
|
query: {
|
|
query: {
|
|
- startDate: this.tableForm.dates[0],
|
|
|
|
- endDate: this.tableForm.dates[1]
|
|
|
|
|
|
+ startDate: item.reportYrmnth,
|
|
|
|
+ endDate: item.reportYrmnth
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -119,7 +120,7 @@ export default {
|
|
pageIndex: this.paging.pageIndex,
|
|
pageIndex: this.paging.pageIndex,
|
|
startDate: this.tableForm.dates[0] + '-01' || '',
|
|
startDate: this.tableForm.dates[0] + '-01' || '',
|
|
endDate: this.tableForm.dates[1] + '-01' || '',
|
|
endDate: this.tableForm.dates[1] + '-01' || '',
|
|
- status: this.tableForm.status || '',
|
|
|
|
|
|
+ status: this.tableForm.status,
|
|
}
|
|
}
|
|
this.postData('/financial-audit/list', param).then(({ data }) => {
|
|
this.postData('/financial-audit/list', param).then(({ data }) => {
|
|
const { total, records } = data
|
|
const { total, records } = data
|