...
|
...
|
@@ -92,7 +92,7 @@ |
|
|
fixed="right"
|
|
|
prop=""
|
|
|
label="报文操作"
|
|
|
width="200">
|
|
|
width="280">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
...
|
...
|
@@ -100,6 +100,10 @@ |
|
|
@click="selectDetail(scope.$index,scope.row)">查看回执</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="warning"
|
|
|
@click="trans_cancle(scope.row)">取消申报</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="danger"
|
|
|
@click="handleDel(scope.$index, scope.row)">删除</el-button>
|
|
|
</template>
|
...
|
...
|
@@ -122,13 +126,30 @@ |
|
|
<!--查看回执弹框-->
|
|
|
<el-dialog title="回执明细" :visible.sync="dialogTableVisible">
|
|
|
<el-table :data="gridData">
|
|
|
<el-table-column property="sendtime" label="操作时间" ></el-table-column>
|
|
|
<el-table-column property="sendtime" label="操作时间"></el-table-column>
|
|
|
<el-table-column property="createBy" label="操作人" ></el-table-column>
|
|
|
<el-table-column property="flightNo" label="航班号"></el-table-column>
|
|
|
<el-table-column property="flightDate" label="航班日期" ></el-table-column>
|
|
|
<el-table-column property="receiptContent" label="回执内容" ></el-table-column>
|
|
|
<el-table-column property="flightDate" label="航班日期"></el-table-column>
|
|
|
<el-table-column property="receiptContent" label="回执内容"></el-table-column>
|
|
|
</el-table>
|
|
|
</el-dialog>
|
|
|
<!-- 取消申报弹框-->
|
|
|
<el-dialog title="取消申报" :visible.sync="dialogFormVisible">
|
|
|
<el-form :model="form">
|
|
|
<el-form-item label="取消原因" prop="content" >
|
|
|
<el-input
|
|
|
v-model="form.content"
|
|
|
type="textarea"
|
|
|
:rows="2" required="required"
|
|
|
placeholder="取消原因必填"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="trans_add('form')">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</el-main>
|
|
|
</el-container>
|
|
|
</template>
|
...
|
...
|
@@ -151,7 +172,7 @@ |
|
|
|
|
|
</style>
|
|
|
<script>
|
|
|
import {editPrediction, selectPrediction, selectReturnMsg} from "../../api/transport";
|
|
|
import {addAircraftStaying, editPrediction, selectPrediction, selectReturnMsg, cancelPrediction} from "../../api/transport";
|
|
|
|
|
|
export default {
|
|
|
data(){
|
...
|
...
|
@@ -169,6 +190,13 @@ |
|
|
tableloading:false,
|
|
|
gridData:[],
|
|
|
dialogTableVisible: false,
|
|
|
form:{
|
|
|
content:''
|
|
|
},
|
|
|
dialogFormVisible: false,
|
|
|
textarea: '',
|
|
|
row2:undefined
|
|
|
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
...
|
...
|
@@ -183,6 +211,38 @@ |
|
|
this.gridData=response;
|
|
|
});
|
|
|
},
|
|
|
//取消申报
|
|
|
trans_cancle(row){
|
|
|
this.dialogFormVisible=true;
|
|
|
this.row2=row;
|
|
|
},
|
|
|
trans_add(form) {
|
|
|
this.dialogFormVisible=true;
|
|
|
this.row2.content=this.form.content;
|
|
|
console.log(this.row2);
|
|
|
// 进行表单的预验证
|
|
|
// this.$refs.form.validate(valid => {
|
|
|
// // 未通过,表单预校验
|
|
|
// if (!valid) return
|
|
|
|
|
|
cancelPrediction(this.row2).then((response) => {
|
|
|
const res = response.data
|
|
|
// 添加失败
|
|
|
if (res.code !== '200') {
|
|
|
// 关闭加载
|
|
|
return this.$message.error(res.msg)
|
|
|
}
|
|
|
// 添加,成功
|
|
|
this.$message.success(res.msg)
|
|
|
// 隐藏对话框
|
|
|
this.dialogFormVisible = false
|
|
|
// 刷新列表
|
|
|
this.submitForm()
|
|
|
}).catch(error => {
|
|
|
this.$message.error(error.toString())
|
|
|
})
|
|
|
// })
|
|
|
},
|
|
|
//分页
|
|
|
handleSizeChange(val) {
|
|
|
this.pageSize=val;
|
...
|
...
|
|