正在显示
1 个修改的文件
包含
17 行增加
和
4 行删除
| @@ -32,7 +32,7 @@ | @@ -32,7 +32,7 @@ | ||
| 32 | <el-table-column prop="headGuid" label="报头ID/批次ID"></el-table-column> | 32 | <el-table-column prop="headGuid" label="报头ID/批次ID"></el-table-column> |
| 33 | <el-table-column prop="decNum" label="申报序号"></el-table-column> | 33 | <el-table-column prop="decNum" label="申报序号"></el-table-column> |
| 34 | <el-table-column prop="recDate" label="回执时间" :formatter="formatDate"></el-table-column> | 34 | <el-table-column prop="recDate" label="回执时间" :formatter="formatDate"></el-table-column> |
| 35 | - <el-table-column prop="recStatus" label="回执状态"></el-table-column> | 35 | + <el-table-column prop="recStatus" label="回执状态" :formatter="formatReturnStatus"></el-table-column> |
| 36 | <el-table-column prop="recDescription" label="回执说明"></el-table-column> | 36 | <el-table-column prop="recDescription" label="回执说明"></el-table-column> |
| 37 | <!-- <el-table-column fixed="right" label="操作">--> | 37 | <!-- <el-table-column fixed="right" label="操作">--> |
| 38 | <!-- <template slot-scope="scope">--> | 38 | <!-- <template slot-scope="scope">--> |
| @@ -138,7 +138,6 @@ export default { | @@ -138,7 +138,6 @@ export default { | ||
| 138 | }, | 138 | }, |
| 139 | formatDecType: function (row, column,cellValue, index) { | 139 | formatDecType: function (row, column,cellValue, index) { |
| 140 | cellValue = ''+ cellValue; | 140 | cellValue = ''+ cellValue; |
| 141 | - console.log(row, column,cellValue, index); | ||
| 142 | const map={ | 141 | const map={ |
| 143 | "1": "新增", | 142 | "1": "新增", |
| 144 | "2": "变更", | 143 | "2": "变更", |
| @@ -146,7 +145,20 @@ export default { | @@ -146,7 +145,20 @@ export default { | ||
| 146 | } | 145 | } |
| 147 | return map[cellValue]; | 146 | return map[cellValue]; |
| 148 | }, | 147 | }, |
| 149 | - formatDate(date) { | 148 | + formatReturnStatus: function (row, column,cellValue, index) { |
| 149 | + cellValue = ''+ cellValue; | ||
| 150 | + const map={ | ||
| 151 | + "1": "电子口岸已暂存", | ||
| 152 | + "2": "电子口岸申报中", | ||
| 153 | + "3": "发送海关成功", | ||
| 154 | + "4": "发送海关失败", | ||
| 155 | + "100":"海关退单", | ||
| 156 | + "120":"海关入库", | ||
| 157 | + "399": "海关审结" | ||
| 158 | + } | ||
| 159 | + return map[cellValue]; | ||
| 160 | + }, | ||
| 161 | + formatDate(row, column,date, index) { | ||
| 150 | if (!date) return ''; | 162 | if (!date) return ''; |
| 151 | const d = new Date(date); | 163 | const d = new Date(date); |
| 152 | const year = d.getFullYear(); | 164 | const year = d.getFullYear(); |
| @@ -155,9 +167,10 @@ export default { | @@ -155,9 +167,10 @@ export default { | ||
| 155 | const hours = d.getHours().toString().padStart(2, '0'); | 167 | const hours = d.getHours().toString().padStart(2, '0'); |
| 156 | const minutes = d.getMinutes().toString().padStart(2, '0'); | 168 | const minutes = d.getMinutes().toString().padStart(2, '0'); |
| 157 | const seconds = d.getSeconds().toString().padStart(2, '0'); | 169 | const seconds = d.getSeconds().toString().padStart(2, '0'); |
| 170 | + const milliseconds= d.getMilliseconds().toString().padStart(3, '0'); | ||
| 158 | 171 | ||
| 159 | // 格式化为 YYYY-MM-DD HH:mm:ss | 172 | // 格式化为 YYYY-MM-DD HH:mm:ss |
| 160 | - return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; | 173 | + return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}:${milliseconds}`; |
| 161 | }, | 174 | }, |
| 162 | searchLogInfo() { | 175 | searchLogInfo() { |
| 163 | selectAllByPage(this.queryInfo.sendLog,this.queryInfo).then(response => { | 176 | selectAllByPage(this.queryInfo.sendLog,this.queryInfo).then(response => { |
-
请 注册 或 登录 后发表评论