作者 shenhailong

完善前端细节问题

... ... @@ -53,7 +53,6 @@
</div>
<tree-table v-loading="listLoading" :data="arriveData" stripe fit highlight-current-row
style="font-size: 12px" border @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"></el-table-column>
<el-table-column label="航班号" width="60" align="center">
<template slot-scope="scope">
<span>{{scope.row.carrier}}{{scope.row.flightno}}</span>
... ...
... ... @@ -131,17 +131,17 @@
@click="handleAddAwbh(scope.row)">新增分单
</el-button>
<el-button size="mini" type="primary" @click="handleAwbSend(scope.row)"
:disabled="addStatus(scope.row.status)">发舱单报
:disabled="addStatus(scope.row.status)">发送预配舱单报
</el-button>
<p></p>
<el-button size="mini" type="primary" @click="handleAwbEdit(scope.row)"
:disabled="editStatus(scope.row.status)">发修改报</el-button>
<el-button size="mini" type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button>
:disabled="editStatus(scope.row.status)">发送预配修改报</el-button>
<!-- <el-button size="mini" type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button>-->
<el-button size="mini" type="warning" @click="handleAwbStatus(scope.row)"
:disabled="scope.row.status === '22'">更改状态
</el-button>
<el-button size="mini" type="danger" @click="handleSendDelete(scope.row)"
:disabled="deleteStatus(scope.row.status)">发删除报</el-button>
:disabled="deleteStatus(scope.row.status)">发送预配删除报</el-button>
</template>
</el-table-column>
</tree-table>
... ... @@ -866,7 +866,8 @@
contactTel:[{required:true,message:'操作人联系方式不能为空',trigger:'blur'}]
},
preData: [],
detailData: []
detailData: [],
rows:[]
}
},
mounted() {
... ... @@ -895,6 +896,8 @@
this.isAdmin = true
}
},
// 验证
computed: {
awba: {
get: function () {
... ... @@ -1255,6 +1258,7 @@
handleAwbSend(row) {
delete row.parent
delete row.children
this.rows = row;
this.$confirm("是否发送", "确认消息", {
distinguishCancelAndClose: true,
confirmButtonText: '发送',
... ... @@ -1266,7 +1270,8 @@
sendCreateMt2201(row).then(res => {
if (res.data.count > 0) {
Message.success(res.data.respMessage)
this.getList()
this.rows.status="23";
this.rows.ext5="新增报发送成功";
} else {
Message.error(res.data.respMessage)
}
... ... @@ -1281,11 +1286,11 @@
return false;
}
},
// >>>>>>>>>>>>>>>>更新运单数据<<<<<<<<<<<<<<<<<<
handleEdit(row) {
this.preModel = Object.assign({}, row)
this.dialogStatus = 'update'
this.fenStatus = 'addAwbh'
this.dialogFormVisible = true
this.$nextTick(() => {
this.$refs.preFormData.clearValidate()
... ... @@ -1312,6 +1317,7 @@
handleAwbEdit(row) {
delete row.parent
delete row.children
this.rows = row;
this.preModel = Object.assign({}, row)
this.dialogStatus = 'sendUpdate'
this.dialogFormVisible = true
... ... @@ -1319,7 +1325,6 @@
this.$refs.preFormData.clearValidate()
})
},
// 发送修改报自灰
editStatus(status){
if(status=='23' || status=='24'||status=='25'){
... ... @@ -1328,7 +1333,6 @@
return false;
}
},
sendUpdate(){
this.respModel.reason = this.preModel.reason
this.respModel.contactName = this.preModel.contactName
... ... @@ -1358,7 +1362,8 @@
sendUpdateMt2201(map).then(res =>{
if(res.data.count >0){
Message.success(res.data.respMessage)
this.getList()
this.rows.status="25";
this.rows.ext5="修改报发送成功";
this.dialogFormVisible = false
}else {
Message.error(res.data.respMessage)
... ... @@ -1382,6 +1387,7 @@
flightDate: undefined,
awbh: ''
}
this.rows = row;
this.dialogDeleteVisble = true
this.respModel.awba = row.awba
this.respModel.flightNo = row.flightno
... ... @@ -1393,7 +1399,6 @@
this.$refs.sendDeleteForm.clearValidate()
})
},
// 发送删除报按钮自灰
deleteStatus(status){
if(status=='23' || status=='24'||status=='25'){
... ... @@ -1409,7 +1414,8 @@
if(res.data.count>0){
Message.success(res.data.respMessage)
this.dialogDeleteVisble = false
this.getList()
this.rows.status="24";
this.rows.ext5="删除报发送成功";
}else {
Message.error(res.data.respMessage)
}
... ... @@ -1532,7 +1538,6 @@
this.$refs.preFormData.clearValidate()
})
},
//获取国家列表
getCountryList() {
getCountry().then(res => {
... ...
... ... @@ -118,7 +118,7 @@
<el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button>
<el-button size="mini" type="success" @click="handleEdit(scope.row)">编辑</el-button>
<el-button size="mini" type="primary" @click="handleAwbSend(scope.row)"
:disabled="addStatus(scope.row.status)">发舱单报</el-button>
:disabled="addStatus(scope.row.status)">发送出港理货报</el-button>
<!-- :disabled="scope.row.status ==='23'">发舱单报</el-button>-->
<el-button size="mini" type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button>
<p></p>
... ... @@ -127,7 +127,7 @@
<el-button size="mini" type="primary" v-if="scope.row.awbh ===null"
@click="handleAddAwbh(scope.row)">新增分单</el-button>
<el-button size="mini" type="danger" @click="handleSendDelete(scope.row)"
:disabled="deleteStatus(scope.row.status)">发删除报</el-button>
:disabled="deleteStatus(scope.row.status)">发出港理货删除报</el-button>
<!-- :disabled="scope.row.status ==='24'">发删除报</el-button>-->
</template>
</el-table-column>
... ... @@ -629,7 +629,6 @@
this.detailData = res.data
})
},
//发送舱单报
handleAwbSend(row) {
delete row.children
... ... @@ -741,7 +740,6 @@
}
})
},
// 删除当前运单
handleAwbDelete(row) {
delete row.parent
... ... @@ -880,7 +878,7 @@
}
})
},
//获取机场三字码
// 获取机场三字码
remoteMethodAirport(query){
this.airportCode = []
if (query !== '') {
... ... @@ -897,7 +895,7 @@
this.airportCode = []
}
},
//关区代码
// 关区代码
remoteMethodCustomCode(query){
this.customCodeList = []
if (query !== '') {
... ...