...
|
...
|
@@ -51,9 +51,15 @@ |
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<tree-table v-loading="listLoading" :data="arriveData" stripe fit highlight-current-row
|
|
|
style="font-size: 12px" border @selection-change="handleSelectionChange">
|
|
|
<el-table-column label="航班号" width="60" align="center">
|
|
|
<el-table v-loading="listLoading" :data="arriveData" stripe
|
|
|
style="font-size: 12px" border @selection-change="handleSelectionChange"
|
|
|
default-expand-all
|
|
|
row-key="uuid"
|
|
|
border
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}">
|
|
|
<el-table-column type="selection" width="55">
|
|
|
</el-table-column>
|
|
|
<el-table-column label="航班号" width="100" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{scope.row.carrier}}{{scope.row.flightno}}</span>
|
|
|
</template>
|
...
|
...
|
@@ -130,12 +136,15 @@ |
|
|
<el-button size="mini" type="warning" @click="handleAwbStatus(scope.row)"
|
|
|
:disabled="scope.row.status ==='22'">更改状态
|
|
|
</el-button>
|
|
|
<el-button size="mini" type="primary" v-if="scope.row.awbh ===''"
|
|
|
@click="handleAddAwbh(scope.row)">新增分单
|
|
|
</el-button>
|
|
|
<el-button size="mini" type="danger" @click="handleSendDelete(scope.row)"
|
|
|
:disabled="scope.row.status ==='24'">发删除报
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</tree-table>
|
|
|
</el-table>
|
|
|
<div class="btnFoot">
|
|
|
<el-row>
|
|
|
<el-button type="primary" size="mini" v-if="arriveQuery.flightno !==undefined || arriveData.length>0"
|
...
|
...
|
@@ -161,7 +170,7 @@ |
|
|
<el-input v-model="arriveModel.awba"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="7.5">
|
|
|
<el-col :span="7.5" v-if="fenStatus === 'addAwbh'">
|
|
|
<el-form-item label="分单号" prop="awbh">
|
|
|
<el-input v-model="awbh"></el-input>
|
|
|
</el-form-item>
|
...
|
...
|
@@ -300,6 +309,11 @@ |
|
|
{{scope.row.cusrestext}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作类型" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.opertype}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作人" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.operusername}}
|
...
|
...
|
@@ -415,6 +429,7 @@ |
|
|
airportCode: [],
|
|
|
dialogStatus: undefined,
|
|
|
awbhStatus: false,
|
|
|
fenStatus: undefined,
|
|
|
dialogFormVisible: false,
|
|
|
dialogDeleteVisible: false,
|
|
|
listLoading: false,
|
...
|
...
|
@@ -549,7 +564,7 @@ |
|
|
getMt3201ListForParam(this.arriveQuery).then(res => {
|
|
|
this.arriveData = res.data.dataList
|
|
|
this.total = res.data.count
|
|
|
if (res.data.count > 0) {
|
|
|
if (res.data.dataList.length > 0){
|
|
|
this.arriveQuery.carrier = this.arriveData[0].carrier
|
|
|
this.arriveQuery.flightno = this.arriveData[0].flightno
|
|
|
this.arriveQuery.flightdate = this.arriveData[0].flightdate
|
...
|
...
|
@@ -599,6 +614,24 @@ |
|
|
this.$refs.arriveFormData.clearValidate()
|
|
|
})
|
|
|
},
|
|
|
// 新增出港运抵分单
|
|
|
handleAddAwbh(row){
|
|
|
this.restModel()
|
|
|
// 给model赋值,所使用数据是以单独单号查询数据所得
|
|
|
this.arriveModel.carrier = row.carrier
|
|
|
this.arriveModel.awba = row.awba
|
|
|
this.arriveModel.flightdate = row.flightdate
|
|
|
this.arriveModel.flightno = row.flightno
|
|
|
this.arriveModel.originstation = row.originstation
|
|
|
this.arriveModel.destinationstation = row.destinationstation
|
|
|
this.arriveModel.customcode = row.customcode
|
|
|
this.dialogStatus = 'create'
|
|
|
this.fenStatus = 'addAwbh'
|
|
|
this.dialogFormVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.arriveFormData.clearValidate()
|
|
|
})
|
|
|
},
|
|
|
createData() {
|
|
|
this.$refs.arriveFormData.validate(valid => {
|
|
|
if (valid) {
|
...
|
...
|
@@ -636,6 +669,13 @@ |
|
|
// 编辑
|
|
|
handleEdit(row) {
|
|
|
this.arriveModel = Object.assign({}, row) // copy obj
|
|
|
|
|
|
if (row.awbh === ''){
|
|
|
this.fenStatus = undefined
|
|
|
}else {
|
|
|
this.fenStatus = 'addAwbh'
|
|
|
}
|
|
|
|
|
|
this.dialogStatus = 'update'
|
|
|
this.dialogFormVisible = true
|
|
|
this.$nextTick(() => {
|
...
|
...
|
@@ -734,6 +774,7 @@ |
|
|
carrier: row.carrier,
|
|
|
flightNo: row.flightno,
|
|
|
flightDate: row.flightdate,
|
|
|
opertype:row.opertype,
|
|
|
awba: row.awba,
|
|
|
awbh: row.awbh,
|
|
|
messageType: 'MT3201'
|
...
|
...
|
|