...
|
...
|
@@ -98,11 +98,11 @@ |
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="success"
|
|
|
@click="changeApply(scope.$index, scope.row)">变更申请</el-button>
|
|
|
@click="change(scope.$index, scope.row)">变更申请</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="warning"
|
|
|
@click="cancellApply(scope.$index, scope.row)">撤销申请</el-button>
|
|
|
@click="cancle(scope.$index, scope.row)">撤销申请</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="danger"
|
...
|
...
|
@@ -156,7 +156,7 @@ |
|
|
|
|
|
</style>
|
|
|
<script>
|
|
|
import {selectAircraft, editAircraft, selectReturnMsg} from "../../api/transport";
|
|
|
import {selectAircraft, editAircraft, selectReturnMsg, changeAircraft, cancleAircraft} from "../../api/transport";
|
|
|
|
|
|
export default {
|
|
|
data(){
|
...
|
...
|
@@ -239,6 +239,64 @@ |
|
|
});
|
|
|
});
|
|
|
},
|
|
|
//更改申请
|
|
|
change(index, row) {
|
|
|
this.$confirm('变更申请, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
changeAircraft(row).then(res => {
|
|
|
let response = res.data;
|
|
|
if (response.code == '200') {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: '变更申请成功'
|
|
|
});
|
|
|
this.submitForm();
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'info',
|
|
|
message: '变更申请失败'
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}).catch(() => {
|
|
|
this.$message({
|
|
|
type: 'info',
|
|
|
message: '已取消变更申请'
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
//撤销申请
|
|
|
cancle(index, row) {
|
|
|
this.$confirm('撤销申请, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
cancleAircraft(row).then(res => {
|
|
|
let response = res.data;
|
|
|
if (response.code == '200') {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: '撤销申请成功'
|
|
|
});
|
|
|
this.submitForm();
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'info',
|
|
|
message: '撤销申请失败'
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}).catch(() => {
|
|
|
this.$message({
|
|
|
type: 'info',
|
|
|
message: '已取消撤销申请'
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
//获取默认值
|
|
|
defaultData() {
|
|
|
Object.assign(this.queryAircraft, this.$route.query);
|
...
|
...
|
|