<template>
|
<div>
|
<el-container id="opinionFlow">
|
<el-main style="padding:0px">
|
<el-row>
|
<p class="title">历史审批意见</p>
|
<!-- <el-form :model="ruleForm" label-position="left" ref="ruleForm" v-if="false"> -->
|
<el-form :model="ruleForm" label-position="left" ref="ruleForm" >
|
<el-col :span="8" style="padding-right:0px">
|
<el-form-item label="审批阶段" prop="phaseNo">
|
<el-select v-model="ruleForm.phaseNo" filterable clearable placeholder="请选择">
|
<el-option v-for="(item, index) in options" :key="index" :label="item.valueDesc" :value="item.value"></el-option>
|
</el-select>
|
</el-form-item>
|
</el-col>
|
<el-col :span="8">
|
<div class="buttonAbout">
|
<el-button size="small" @click="ruleForm.phaseNo = ''">重置</el-button>
|
<el-button size="small" type="primary" @click="tableLoad()">搜索</el-button>
|
</div>
|
</el-col>
|
</el-form>
|
<el-table
|
:data="tableData"
|
stripe
|
size="mini"
|
style="width: 100%;padding-top:8px">
|
<!-- <el-table-column type="index" label=" "> </el-table-column> -->
|
<el-table-column
|
prop="serialNo"
|
label="审批流水">
|
</el-table-column>
|
<el-table-column
|
prop="phaseName"
|
label="审批阶段">
|
</el-table-column>
|
<el-table-column
|
prop="phaseChoice"
|
label="审批结果">
|
</el-table-column>
|
<el-table-column
|
prop="externalOpinion"
|
label="审批意见">
|
<template slot-scope="scope">
|
<div v-if="scope.row.externalOpinion.length < 26">{{scope.row.externalOpinion}}</div>
|
<el-popover v-else class="beyondContent" placement="top-start" width="215" trigger="hover" >
|
<div>{{scope.row.externalOpinion}}</div>
|
<span slot="reference">{{ scope.row.externalOpinion}}</span>
|
</el-popover>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="approvalTerminalName"
|
label="审批终端">
|
</el-table-column>
|
<el-table-column
|
prop="approvalPersonName"
|
label="审批人">
|
</el-table-column>
|
<el-table-column
|
prop="approvalOrgName"
|
label="审批机构">
|
</el-table-column>
|
<el-table-column
|
prop="approvalData"
|
label="审批时间">
|
</el-table-column>
|
</el-table>
|
<!-- <pagination
|
v-show="total > 0"
|
:total="total"
|
:page.sync="listQuery.currentPage"
|
:limit.sync="listQuery.pageSize"
|
@pagination="tableLoad"
|
/> -->
|
</el-row>
|
</el-main>
|
</el-container>
|
</div>
|
</template>
|
|
<script>
|
import { queryApprovalOpinions, phaseListByType } from '@/api/area'
|
import Pagination from '@/components/Pagination'
|
import { mapState } from 'vuex'
|
export default {
|
components: {
|
Pagination
|
},
|
data: function () {
|
return {
|
tableData: [],
|
listQuery: {
|
currentPage: 1,
|
pageSize: 10
|
},
|
total: 0,
|
ruleForm: {
|
phaseNo: ''
|
},
|
options: [],
|
}
|
},
|
computed: {
|
...mapState({
|
detailsParams: state => state.risk.detailsParams
|
})
|
},
|
created () {
|
this.initSelect()
|
this.tableLoad()
|
},
|
methods: {
|
tableLoad () {
|
const { listQuery, ruleForm } = this
|
const { phaseNo } = ruleForm
|
let params = {
|
objectType: this.detailsParams.objectType,
|
dataType: this.detailsParams.dataType,
|
projectFlag: this.detailsParams.projectFlag,
|
projectType: this.detailsParams.projectType,
|
serialno: this.detailsParams.objectNo,
|
phaseNo,
|
listQuery
|
}
|
queryApprovalOpinions(params).then(res => {
|
this.tableData = res.result
|
this.total = res.result.length
|
})
|
},
|
submitForm () {
|
this.$emit('handleNextPage', true)
|
},
|
async initSelect() {
|
const { objectType } = this.detailsParams
|
const { result } = await phaseListByType({ objectType })
|
this.options = result
|
},
|
}
|
}
|
</script>
|
|
<style scoped>
|
|
</style>
|