<template>
|
<div>
|
<el-row id="opinionFlow">
|
<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">
|
<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="submitForm">搜索</el-button>
|
</div>
|
</el-col>
|
</el-form>
|
<el-table
|
v-loading="listLoading"
|
:data="tableData"
|
fit
|
stripe
|
highlight-current-row
|
style="width: 100%;padding-top:8px"
|
size="small"
|
>
|
<el-table-column label=" " type="index" align="center" width="50px"> </el-table-column>
|
<el-table-column prop="phaseName" label="阶段名称"></el-table-column>
|
<el-table-column prop="userName" label="处理人"></el-table-column>
|
<el-table-column prop="orgName" label="处理人直属机构"></el-table-column>
|
<el-table-column prop="beginTime" label="任务接收时间"></el-table-column>
|
<el-table-column prop="endTime" label="任务完成时间"></el-table-column>
|
<el-table-column prop="finishTime" label="处理耗时"></el-table-column>
|
</el-table>
|
<!-- <pagination
|
v-show="total > 0"
|
:total="total"
|
:page.sync="listQuery.currentPage"
|
:limit.sync="listQuery.pageSize"
|
@pagination="initTable"
|
/> -->
|
</el-row>
|
</div>
|
</template>
|
|
<script>
|
import { qryEnpFlowCirculationRecord, qryEnpFlowPhaseNo } from '@/api/area/enterprise'
|
import Pagination from '@/components/Pagination'
|
import { mapState } from 'vuex'
|
export default {
|
components: { Pagination },
|
data: function() {
|
return {
|
listLoading: true,
|
tableData: [],
|
total: 0,
|
listQuery: {
|
currentPage: 1,
|
pageSize: 10
|
},
|
ruleForm: {
|
phaseno: ''
|
},
|
options: [],
|
}
|
},
|
computed: {
|
...mapState({
|
enterpriseParams: state => state.risk.enterpriseParams
|
})
|
},
|
created() {
|
this.initSelect()
|
this.initTable()
|
},
|
methods: {
|
initTable() {
|
const { phaseno } = this.ruleForm
|
this.listLoading = true
|
let params = {
|
objectno: this.enterpriseParams.tempSerialNo,
|
objecttype: this.enterpriseParams.objectType,
|
phaseno
|
}
|
params = Object.assign({}, params, this.listQuery)
|
qryEnpFlowCirculationRecord(params).then(res => {
|
this.tableData = res.result
|
this.total = res.result.length
|
this.listLoading = false
|
})
|
},
|
handleSubmit() {
|
this.$emit('handleNextPage', true)
|
},
|
submitForm() {
|
this.initTable()
|
},
|
async initSelect() {
|
const { objectType } = this.enterpriseParams
|
let params = {
|
objecttype: objectType
|
}
|
const { result } = await qryEnpFlowPhaseNo(params)
|
this.options = result
|
}
|
}
|
}
|
</script>
|
|
<style scoped></style>
|