<template>
|
<div class="mod-config" style="padding: 10px 10px 0px 10px;">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form-item label="车牌号">
|
<el-input v-model="searchForm.carNo" clearable></el-input>
|
</el-form-item>
|
<!-- <el-form-item label="停车场">-->
|
<!-- <el-select v-model="searchForm.parkId" clearable>-->
|
<!-- <el-option v-for="item in table1" :key="item.id" :label="item.name" :value="item.id" ></el-option>-->
|
<!-- </el-select>-->
|
<!-- </el-form-item>-->
|
<el-form-item>
|
<el-button type="primary" size="small" @click="getDataList" icon="el-icon-search">查询</el-button>
|
</el-form-item>
|
</el-form>
|
|
<div class="avue-crud">
|
<el-table
|
:height="tableHeight"
|
:data="pageData.rows"
|
border
|
v-loading="pageData.isLoading">
|
<el-table-column
|
type="index"
|
width="50"
|
label="序号"
|
align="center">
|
</el-table-column>
|
<el-table-column label="入场图" width="200" header-align="center" align="center">
|
<template slot-scope="scope">
|
<!-- trigger(触发方式)、placement(出现位置) -->
|
<el-popover trigger="hover" placement="right" v-if="scope.row.imgInPath != null">
|
<img :src="scope.row.imgInPath" style="height: 800px;width: 800px"/>
|
<img slot="reference" :src="scope.row.imgInPath" :alt="scope.row.imgInPath" style="height: 50px;width: 150px">
|
</el-popover>
|
</template>
|
</el-table-column>
|
<el-table-column label="出场图" width="200" header-align="center" align="center">
|
<template slot-scope="scope">
|
<!-- trigger(触发方式)、placement(出现位置) -->
|
<el-popover trigger="hover" placement="right" v-if="scope.row.imgOutPath != null">
|
<img :src="scope.row.imgOutPath" style="height: 800px;width: 800px"/>
|
<img slot="reference" :src="scope.row.imgOutPath" :alt="scope.row.imgOutPath" style="height: 50px;width: 150px">
|
</el-popover>
|
</template>
|
</el-table-column>
|
<el-table-column
|
prop="carNo"
|
header-align="center"
|
align="center"
|
label="车牌号">
|
</el-table-column>
|
<el-table-column
|
prop="code"
|
header-align="center"
|
align="center"
|
label="订单号">
|
</el-table-column>
|
<el-table-column
|
prop="updateTime"
|
header-align="center"
|
align="center"
|
label="开票时间">
|
</el-table-column>
|
<el-table-column
|
prop="money"
|
header-align="center"
|
align="center"
|
width="100px"
|
label="金额">
|
</el-table-column>
|
<el-table-column
|
prop="payCode"
|
header-align="center"
|
align="center"
|
label="电子缴款码">
|
</el-table-column>
|
<el-table-column
|
prop="ticketStatus"
|
header-align="center"
|
align="center"
|
width="100px"
|
label="开票状态">
|
<template slot-scope="scope">
|
<p v-if="scope.row.ticketStatus==2" style="color: red">未开票</p>
|
<p v-if="scope.row.ticketStatus==1" >已开票</p>
|
</template>
|
</el-table-column>
|
<el-table-column
|
header-align="center"
|
align="center"
|
label="操作">
|
<template slot-scope="scope">
|
<el-button type="text" size="small" icon="el-icon-view" @click="watchTicket(scope.row.fileId)">查看发票</el-button>
|
<el-button type="text" size="small" icon="el-icon-download" @click="downTicket(scope.row.fileId)">下载发票</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
<el-pagination background @size-change="onPageSizeChange" @current-change="onCurrentPageChange" :current-page="pageData.currentPage" :page-size="pageData.pageSize" :total="pageData.total" style="float: right"></el-pagination>
|
|
</div>
|
|
<el-dialog append-to-body title="查看发票" :visible.sync="imgFlag" width="60%">
|
<el-image
|
class = "my-img"
|
ref = "myImg"
|
:src="imageUrl"
|
:preview-src-list="srcList">
|
</el-image>
|
</el-dialog>
|
|
</div>
|
</template>
|
|
<script>
|
export default {
|
data () {
|
return {
|
tableHeight:500,
|
dataForm: {
|
key: ''
|
},
|
table1:[],
|
pageData: this.$byutil.defaultPageData(),
|
searchForm: {
|
carNo:'',
|
parkId:'',
|
type:1,
|
current:this.pageIndex,
|
size:this.pageSize
|
},
|
imageUrl:'',
|
imgFlag:false,
|
srcList:'',
|
dataList: [],
|
pageIndex: 1,
|
pageSize: 50,
|
totalPage: 0,
|
dataListLoading: false,
|
addOrUpdateVisible: false
|
}
|
},
|
components: {
|
},
|
created () {
|
this.getDataList()
|
this.getAllPark()
|
this.tableHeight = window.innerHeight - 260
|
},
|
computed: {
|
},
|
methods: {
|
// 获取数据列表
|
getDataList () {
|
this.dataListLoading = true
|
this.searchForm.current = this.pageIndex
|
this.searchForm.size = this.pageSize
|
this.$byutil.loadPageData(this, this.$systemconfig.basePath+'/ffzf/orderrecord/findPage', this.searchForm);
|
this.dataListLoading = false
|
},
|
getAllPark(){
|
this.$byutil.postData(this, this.$systemconfig.basePath+'/ffzf/park/findAll', this.formData, res => {
|
this.table1 = res.data;
|
})
|
},
|
closeDialog(){
|
this.imgFlag = false
|
},
|
watchTicket(fileId){
|
this.imgFlag = true
|
this.imageUrl = "/ffzf/fileinfo/showImgById/"+fileId
|
},
|
downTicket(fileId){
|
this.$byutil.postData(this, this.$systemconfig.basePath+'/ffzf/fileinfo/download/downloadPng', {fileId:fileId}, res => {
|
|
})
|
},
|
onPageSizeChange(val) {
|
this.pageData.pageSize = val;
|
this.getDataList();
|
},
|
onCurrentPageChange(val) {
|
this.pageData.page = val;
|
this.getDataList();
|
},
|
}
|
}
|
</script>
|
<style lang="scss" scoped>
|
.fenye-box2{
|
width: calc(80% - 20px);
|
}
|
.per-up{
|
position: relative;
|
.my-img{
|
width: 100px;
|
height: 100px;
|
.el-image__inner{
|
visibility: hidden ;
|
}
|
}
|
.my-pre{
|
position: absolute;
|
margin-left: 111px;
|
margin-top: -156px;
|
}
|
}
|
</style>
|