<template>
|
<el-dialog
|
:title="title"
|
top="50px"
|
:close-on-click-modal="false"
|
:close-on-press-escape="false"
|
:visible.sync="isVisible"
|
>
|
<div class="app-container">
|
<div class="filter-container" style="margin-left: -340px;">
|
<el-input v-model="queryParams.name" placeholder="姓名/身份证号/护卫点/员工编号" class="filter-item search-item" />
|
<el-button class="filter-item" type="primary" @click="search">
|
{{ $t('table.search') }}
|
</el-button>
|
<el-button class="filter-item" type="success" @click="reset">
|
{{ $t('table.reset') }}
|
</el-button>
|
</div>
|
<el-table
|
ref="multipleTable"
|
:data="list"
|
row-key="prop1"
|
width="50%"
|
>
|
<el-table-column type="selection" :reserve-selection="false" width="55" />
|
<el-table-column prop="empNumb" label="员工编号" width="180" />
|
<el-table-column prop="deptName" label="护卫点" width="180" />
|
<el-table-column prop="jobName" label="岗位名称" width="180" />
|
<el-table-column prop="empName" label="姓名" width="180" />
|
<el-table-column prop="certificateNumb" label="身份证号码" width="180" />
|
<el-table-column prop="injuredTime" label="受伤日期" width="180" />
|
<el-table-column prop="injuredAddress" label="受伤地点" width="180" />
|
<el-table-column prop="injuredPart" label="受伤部位" width="180" />
|
<el-table-column prop="injuredDescribe" label="受伤经过描述" width="180" />
|
<el-table-column prop="injuredDiacrisis" label="意外险诊断" width="180" />
|
<el-table-column prop="hospitalName" label="就诊医院" width="180" />
|
<el-table-column prop="treatmentName" label="就诊科室" width="180" />
|
<el-table-column prop="hospitalizatioFlag" label="是否住院" width="180" />
|
<el-table-column prop="bedNumb" label="床号" width="180" />
|
<el-table-column prop="reprotTime" label="报案时间" width="180" />
|
<el-table-column prop="submitTime" label="递交资料时间" width="180" />
|
<el-table-column prop="sbumitBy" label="递交人" width="180" />
|
<el-table-column prop="expensesFee" label="医疗总费用" width="180" />
|
<el-table-column prop="innsureFee" label="保险赔付费用" width="180" />
|
</el-table>
|
<pagination
|
v-show="total>0"
|
:total="total"
|
:page.sync="pagination.num"
|
:limit.sync="pagination.size"
|
@pagination="search"
|
/>
|
<el-button type="danger" @click="cancleChoose">关闭</el-button>
|
</div>
|
</el-dialog>
|
</template>
|
<script>
|
// 引用翻页组件
|
import Pagination from '@/components/Pagination'
|
export default {
|
components: {
|
Pagination
|
},
|
props: {
|
dialogVisible: {
|
type: Boolean,
|
default: false
|
},
|
title: {
|
type: String,
|
default: ''
|
},
|
multipleselect: {
|
type: Boolean,
|
default: false
|
}
|
},
|
data() {
|
return {
|
show: false,
|
headerHeight: '70px',
|
deptTree: [],
|
selection: [],
|
multipleSelection: [],
|
total: 0, // 总数量
|
queryParams: {
|
name: null,
|
btime: null,
|
etime: null,
|
index: null,
|
number: null
|
}, // 查询参数
|
sort: {}, // 排序
|
pagination: { // 分页参数
|
size: 5,
|
num: 1
|
},
|
list: [], // 给table显示的数据
|
defaultProps: {
|
children: 'children',
|
label: 'label'
|
}
|
}
|
},
|
computed: {
|
isVisible: {
|
get() {
|
return this.dialogVisible
|
}
|
}
|
},
|
methods: {
|
search() {
|
this.fetch({
|
...this.queryParams
|
})
|
},
|
reset() {
|
this.queryParams.name = null
|
this.search()
|
},
|
// 翻页方法
|
setjobUser(btime, etime, index, number) {
|
this.queryParams.btime = btime
|
this.queryParams.etime = etime
|
this.queryParams.index = index
|
this.queryParams.number = number
|
this.queryParams.name = null
|
this.search()
|
},
|
fetch(params = {}) {
|
var that = this
|
params.pageSize = this.pagination.size
|
params.pageNum = this.pagination.num
|
this.$get('hr/statistics/empBaseInfoYwList', {
|
...params
|
}).then((r) => {
|
const data = r.data.data
|
that.total = data.total
|
that.list = data.rows
|
})
|
},
|
cancleChoose() {
|
this.$emit('cancleChooseUser')
|
}
|
}
|
}
|
</script>
|
<style lang="scss" scoped>
|
.link_button {
|
color: #169BD5;
|
}
|
|
.del_button {
|
color: #D9001B;
|
}
|
</style>
|