...
|
...
|
@@ -32,7 +32,7 @@ |
|
|
<el-table-column prop="headGuid" label="报头ID/批次ID"></el-table-column>
|
|
|
<el-table-column prop="decNum" label="申报序号"></el-table-column>
|
|
|
<el-table-column prop="recDate" label="回执时间" :formatter="formatDate"></el-table-column>
|
|
|
<el-table-column prop="recStatus" label="回执状态"></el-table-column>
|
|
|
<el-table-column prop="recStatus" label="回执状态" :formatter="formatReturnStatus"></el-table-column>
|
|
|
<el-table-column prop="recDescription" label="回执说明"></el-table-column>
|
|
|
<!-- <el-table-column fixed="right" label="操作">-->
|
|
|
<!-- <template slot-scope="scope">-->
|
...
|
...
|
@@ -138,7 +138,6 @@ export default { |
|
|
},
|
|
|
formatDecType: function (row, column,cellValue, index) {
|
|
|
cellValue = ''+ cellValue;
|
|
|
console.log(row, column,cellValue, index);
|
|
|
const map={
|
|
|
"1": "新增",
|
|
|
"2": "变更",
|
...
|
...
|
@@ -146,7 +145,20 @@ export default { |
|
|
}
|
|
|
return map[cellValue];
|
|
|
},
|
|
|
formatDate(date) {
|
|
|
formatReturnStatus: function (row, column,cellValue, index) {
|
|
|
cellValue = ''+ cellValue;
|
|
|
const map={
|
|
|
"1": "电子口岸已暂存",
|
|
|
"2": "电子口岸申报中",
|
|
|
"3": "发送海关成功",
|
|
|
"4": "发送海关失败",
|
|
|
"100":"海关退单",
|
|
|
"120":"海关入库",
|
|
|
"399": "海关审结"
|
|
|
}
|
|
|
return map[cellValue];
|
|
|
},
|
|
|
formatDate(row, column,date, index) {
|
|
|
if (!date) return '';
|
|
|
const d = new Date(date);
|
|
|
const year = d.getFullYear();
|
...
|
...
|
@@ -155,9 +167,10 @@ export default { |
|
|
const hours = d.getHours().toString().padStart(2, '0');
|
|
|
const minutes = d.getMinutes().toString().padStart(2, '0');
|
|
|
const seconds = d.getSeconds().toString().padStart(2, '0');
|
|
|
const milliseconds= d.getMilliseconds().toString().padStart(3, '0');
|
|
|
|
|
|
// 格式化为 YYYY-MM-DD HH:mm:ss
|
|
|
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
|
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}:${milliseconds}`;
|
|
|
},
|
|
|
searchLogInfo() {
|
|
|
selectAllByPage(this.queryInfo.sendLog,this.queryInfo).then(response => {
|
...
|
...
|
|