jinhui.wang

删除无用代码,航班迁转报错提示增加

......@@ -614,7 +614,6 @@ export default {
this.infoForm.fltDate = res.data.list.ruleDate
this.infoForm.route = res.data.list.flightRoute
this.infoForm.list.push(this.dataHandle(res.data.list))
console.log(this.infoForm)
} else {
this.isEmpty = true
}
......
......@@ -522,7 +522,6 @@ export default {
.catch(() => {
this.tableLoading = false;
});
console.log(this.$refs.newTables)
this.$refs.newTables.clearTable();
this.cargoTotal();
},
......
......@@ -159,6 +159,18 @@ export default {
this.msgSuccess(res.msg)
} else {
this.msgWarning(res.msg)
if (res.data != null && res.data.length > 0) {
let arr = []
res.data.forEach(item => {
let obj = {
waybillNo: item.split(':')[0],
errorMessage: item.split(':')[1]
}
arr.push(obj)
})
this.$router.push({ name: 'UpDateResult', params: { data: arr, from: 'queryCargo' } })
this.dialogBeforeClose()
}
}
});
this.cleaerForm();
......@@ -176,6 +188,18 @@ export default {
} else {
this.loading = false;
this.msgWarning(res.msg)
if (res.data != null && res.data.length > 0) {
let arr = []
res.data.forEach(item => {
let obj = {
waybillNo: item.split(':')[0],
errorMessage: item.split(':')[1]
}
arr.push(obj)
})
this.$router.push({ name: 'UpDateResult', params: { data: arr, from: 'queryCargo' } })
this.dialogBeforeClose()
}
}
}).catch(() => {
this.loading = false;
......
......@@ -4,9 +4,11 @@
<!-- <el-table-column label="行号" prop="line" width="50" align="center">
</el-table-column> -->
<el-table-column label="序号" type="index" width="70" align="center" />
<el-table-column label="运单号" prop="waybillNo" width="150" v-if="fromRoute == 'queryCargo'" />
<el-table-column label="错误信息" prop="errorMessage">
<template slot-scope="scope">
{{scope.row}}
<span v-if="fromRoute == 'queryCargo'">{{ scope.row.errorMessage }}</span>
<span v-else> {{ scope.row }}</span>
<!-- <div v-for="(m, key) in scope.row.errorMessage" :key="key">
{{ m }}
</div> -->
......