<template> <div class="app-container"> <el-dialog title="收发明细" :visible.sync="dialogVisible" width="75%" > <el-table :data="detailedList" border> <el-table-column label="操作人"> <template slot-scope="scope"> {{ scope.row.operator}} </template> </el-table-column> <el-table-column label="件数"> <template slot-scope="scope"> {{ scope.row.pcs}} </template> </el-table-column> <el-table-column label="重量"> <template slot-scope="scope"> {{ scope.row.wgt}} </template> </el-table-column> <el-table-column label="海关回执时间" width="160"> <template slot-scope="scope"> {{ scope.row.procdate}} </template> </el-table-column> <el-table-column label="回执接收时间" width="160"> <template slot-scope="scope"> {{ scope.row.responsedate}} </template> </el-table-column> <el-table-column label="海关统一编号" width="160"> <template slot-scope="scope"> {{ scope.row.seqno}} </template> </el-table-column> <el-table-column label="客户端导入回执状态码"> <template slot-scope="scope"> <el-tag type="success" v-if="scope.row.responsecode ==='0'">正常</el-tag> <el-tag type="danger" v-if="scope.row.responsecode ==='1'">失败</el-tag> </template> </el-table-column> <el-table-column label="客户端导入回执" show-overflow-tooltip> <template slot-scope="scope"> <span :style="{'color':scope.row.responsecode=='0'?'rgb(103,194,58)' :scope.row.responsecode=='1'?'rgb(245,110,110)':'rgb(60,62,66)'}">{{ scope.row.responsemessage }}</span> </template> </el-table-column> <el-table-column label="海关回执代码"> <template slot-scope="scope"> <el-tag type="success" v-if="scope.row.procresult ==='S'">成功</el-tag> <el-tag type="danger" v-if="scope.row.procresult ==='F'">失败</el-tag> </template> </el-table-column> <el-table-column label="海关回执内容" show-overflow-tooltip> <template slot-scope="scope"> <span :style="{'color':scope.row.procresult=='S'?'rgb(103,194,58)' :scope.row.procresult=='F'?'rgb(245,110,110)':'rgb(60,62,66)'}">{{ scope.row.note }}</span> </template> </el-table-column> </el-table> </el-dialog> </div> </template> <script> import { getList } from '../../api/detailed' export default { name: "DetailedLog", props: { visible: { type: Boolean, default: false }, messageId: { type: String, default: false } }, data() { return { detailedList: [] } }, computed: { dialogVisible: { get() { return this.visible }, set(val) { // 当visible改变的时候,触发父组件的 updateVisible方法,在该方法中更改传入子组件的 centerDialogVisible的值 this.$emit('updateVisible', val) } } }, created() { }, methods: { check(id) { let _this = this const para = { autoid: id } getList(para).then(res => { let response = res.data if (response.code === '200') { _this.detailedList = response.data } }) }, handleClose() { } } } </script> <style scoped> .filter-container { margin-bottom: 20px; } .el-tooltip_popper{ max-width: 60%; } .table-p { font-size: 20px; text-align: center; background-color: #efefef; height: 45px; line-height: 45px; width: 100%; margin-top: 0px; } </style>