...
|
...
|
@@ -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 => {
|
...
|
...
|
|