| 
...
 | 
...
 | 
@@ -51,15 +51,15 @@ | 
| 
 | 
 | 
                 </el-col>
 | 
| 
 | 
 | 
             </el-row>
 | 
| 
 | 
 | 
         </div>
 | 
| 
 | 
 | 
         <el-table v-loading="listLoading" :data="arriveData" stripe fit highlight-current-row
 | 
| 
 | 
 | 
         <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="70" align="center">
 | 
| 
 | 
 | 
             <el-table-column label="航班号" width="60" align="center">
 | 
| 
 | 
 | 
                 <template slot-scope="scope">
 | 
| 
 | 
 | 
                     <span>{{scope.row.carrier}}{{scope.row.flightno}}</span>
 | 
| 
 | 
 | 
                 </template>
 | 
| 
 | 
 | 
             </el-table-column>
 | 
| 
 | 
 | 
             <el-table-column label="运单号" width="120" align="center">
 | 
| 
 | 
 | 
             <el-table-column label="运单号" width="110" align="center">
 | 
| 
 | 
 | 
                 <template slot-scope="scope">
 | 
| 
 | 
 | 
                     <span>{{scope.row.awba}}</span>
 | 
| 
 | 
 | 
                 </template>
 | 
| 
...
 | 
...
 | 
@@ -79,7 +79,7 @@ | 
| 
 | 
 | 
                     <span>{{scope.row.weight}}</span>
 | 
| 
 | 
 | 
                 </template>
 | 
| 
 | 
 | 
             </el-table-column>
 | 
| 
 | 
 | 
             <el-table-column label="货物描述" width="100" align="center">
 | 
| 
 | 
 | 
             <el-table-column label="货物描述" width="120" align="center">
 | 
| 
 | 
 | 
                 <template slot-scope="scope">
 | 
| 
 | 
 | 
                     <span>{{scope.row.goodsname}}</span>
 | 
| 
 | 
 | 
                 </template>
 | 
| 
...
 | 
...
 | 
@@ -113,24 +113,30 @@ | 
| 
 | 
 | 
                     <span v-if="scope.row.status ==='25'">已发送修改报</span>
 | 
| 
 | 
 | 
                 </template>
 | 
| 
 | 
 | 
             </el-table-column>
 | 
| 
 | 
 | 
             <el-table-column prop="receipt" label="回执信息" width="180" align="center">
 | 
| 
 | 
 | 
             <el-table-column prop="receipt" label="回执信息"  align="center">
 | 
| 
 | 
 | 
                 <template slot-scope="scope">
 | 
| 
 | 
 | 
                     <span>{{scope.row.ext5}}</span>
 | 
| 
 | 
 | 
                 </template>
 | 
| 
 | 
 | 
             </el-table-column>
 | 
| 
 | 
 | 
             <el-table-column prop="operation" label="操作" align="center">
 | 
| 
 | 
 | 
             <el-table-column prop="operation" label="操作" align="center" width="400">
 | 
| 
 | 
 | 
                 <template slot-scope="scope">
 | 
| 
 | 
 | 
                     <el-button size="mini" @click="handleSendDesc(scope.row)">收发明细</el-button>
 | 
| 
 | 
 | 
                     <el-button size="mini" type="success" @click="handleEdit(scope.row)" :disabled="scope.row.status !=='22'">编辑</el-button>
 | 
| 
 | 
 | 
                     <el-button size="mini" type="success" @click="handleEdit(scope.row)">编辑</el-button>
 | 
| 
 | 
 | 
                     <el-button size="mini" type="primary" @click="handleSendAwb(scope.row)"
 | 
| 
 | 
 | 
                                :disabled="scope.row.status !=='22'">发送舱单报</el-button>
 | 
| 
 | 
 | 
                     <el-button size="mini" type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button>
 | 
| 
 | 
 | 
                                :disabled="scope.row.status ==='23'">发送舱单报
 | 
| 
 | 
 | 
                     </el-button>
 | 
| 
 | 
 | 
                     <p></p>
 | 
| 
 | 
 | 
                     <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)">发删除报</el-button>
 | 
| 
 | 
 | 
                                :disabled="scope.row.status ==='22'">更改状态
 | 
| 
 | 
 | 
                     </el-button>
 | 
| 
 | 
 | 
                     <el-button size="mini" type="danger" @click="handleSendDelete(scope.row)"
 | 
| 
 | 
 | 
                                :disabled="scope.row.status ==='24'">发删除报
 | 
| 
 | 
 | 
                     </el-button>
 | 
| 
 | 
 | 
                 </template>
 | 
| 
 | 
 | 
             </el-table-column>
 | 
| 
 | 
 | 
         </el-table>
 | 
| 
 | 
 | 
         </tree-table>
 | 
| 
 | 
 | 
         <div class="btnFoot">
 | 
| 
 | 
 | 
             <el-row>
 | 
| 
 | 
 | 
                 <el-button type="primary" size="mini" v-if="arriveQuery.flightno !==undefined || arriveData.length>0"
 | 
| 
...
 | 
...
 | 
@@ -247,7 +253,8 @@ | 
| 
 | 
 | 
                             <el-select v-model="arriveModel.customcode" placeholder="请选择关区代码" :loading="customLoading"
 | 
| 
 | 
 | 
                                        filterable clearable remote :remote-method="remoteMethodCustomCode"
 | 
| 
 | 
 | 
                                        :disabled="dialogStatus === 'addAwbh'">
 | 
| 
 | 
 | 
                                 <el-option v-for="item in customCodeList" :key="item.customcode" :label="item.customcode"
 | 
| 
 | 
 | 
                                 <el-option v-for="item in customCodeList" :key="item.customcode"
 | 
| 
 | 
 | 
                                            :label="item.customcode"
 | 
| 
 | 
 | 
                                            :value="item.customcode">
 | 
| 
 | 
 | 
                                     <span style="float: left">{{ item.customcode }}</span>
 | 
| 
 | 
 | 
                                     <span style="float: right; color: #8492a6; font-size: 13px">{{ item.customname }}</span>
 | 
| 
...
 | 
...
 | 
@@ -264,7 +271,7 @@ | 
| 
 | 
 | 
         </el-dialog>
 | 
| 
 | 
 | 
         <el-dialog title="收发明细" :visible.sync="dialogTableVisible">
 | 
| 
 | 
 | 
             <el-table :data="detailData" border>
 | 
| 
 | 
 | 
                 <el-table-column label="操作时间" width="150">
 | 
| 
 | 
 | 
                 <el-table-column label="操作时间" width="180">
 | 
| 
 | 
 | 
                     <template slot-scope="scope">
 | 
| 
 | 
 | 
                         {{scope.row.busdate}}
 | 
| 
 | 
 | 
                     </template>
 | 
| 
...
 | 
...
 | 
@@ -328,7 +335,7 @@ | 
| 
 | 
 | 
     import treeTable from '@/components/TreeTable'
 | 
| 
 | 
 | 
     import treeToArray from '@/utils/customEval'
 | 
| 
 | 
 | 
     import Pagination from '@/components/Pagination'
 | 
| 
 | 
 | 
     import {getCustomCode,getAirportCode} from "@/api/country";
 | 
| 
 | 
 | 
     import {getCustomCode, getAirportCode} from "@/api/country";
 | 
| 
 | 
 | 
     import {
 | 
| 
 | 
 | 
         getMt3201ListForParam,
 | 
| 
 | 
 | 
         deleteByIsDelete,
 | 
| 
...
 | 
...
 | 
@@ -406,7 +413,7 @@ | 
| 
 | 
 | 
                 dialogTableVisible: false,
 | 
| 
 | 
 | 
                 multipleSelection: [],
 | 
| 
 | 
 | 
                 customCodeList: [],
 | 
| 
 | 
 | 
                 airportCode:[],
 | 
| 
 | 
 | 
                 airportCode: [],
 | 
| 
 | 
 | 
                 dialogStatus: undefined,
 | 
| 
 | 
 | 
                 awbhStatus: false,
 | 
| 
 | 
 | 
                 dialogFormVisible: false,
 | 
| 
...
 | 
...
 | 
@@ -659,9 +666,11 @@ | 
| 
 | 
 | 
                     confirmButtonText: '发送',
 | 
| 
 | 
 | 
                     cancelButtonText: '取消'
 | 
| 
 | 
 | 
                 }).then(() => {
 | 
| 
 | 
 | 
                      if(row.awbh ===null){
 | 
| 
 | 
 | 
                     if (row.awbh === null) {
 | 
| 
 | 
 | 
                         row.awbh = ''
 | 
| 
 | 
 | 
                     }
 | 
| 
 | 
 | 
                     delete row.parent
 | 
| 
 | 
 | 
                     delete row.children
 | 
| 
 | 
 | 
                     sendCreateMt3201(row).then(res => {
 | 
| 
 | 
 | 
                         if (res.data.count > 0) {
 | 
| 
 | 
 | 
                             Message.success(res.data.respMessage)
 | 
| 
...
 | 
...
 | 
@@ -678,7 +687,7 @@ | 
| 
 | 
 | 
             // 发送删除报
 | 
| 
 | 
 | 
             handleSendDelete(row) {
 | 
| 
 | 
 | 
                 this.respModel = {
 | 
| 
 | 
 | 
                     uuid: undefined,
 | 
| 
 | 
 | 
                     carrier: undefined,
 | 
| 
 | 
 | 
                     reason: undefined,
 | 
| 
 | 
 | 
                     contactName: undefined,
 | 
| 
 | 
 | 
                     contactTel: undefined,
 | 
| 
...
 | 
...
 | 
@@ -690,12 +699,12 @@ | 
| 
 | 
 | 
                     awbh: undefined
 | 
| 
 | 
 | 
                 }
 | 
| 
 | 
 | 
                 this.dialogDeleteVisible = true
 | 
| 
 | 
 | 
                 this.respModel.flightNo = row.carrier + row.flightno
 | 
| 
 | 
 | 
                 this.respModel.flightNo = row.flightno
 | 
| 
 | 
 | 
                 this.respModel.awba = row.awba
 | 
| 
 | 
 | 
                 this.respModel.uuid = row.uuid
 | 
| 
 | 
 | 
                 if(row.awbh ===null){
 | 
| 
 | 
 | 
                 this.respModel.carrier = row.carrier
 | 
| 
 | 
 | 
                 if (row.awbh === null) {
 | 
| 
 | 
 | 
                     this.respModel.awbh = ''
 | 
| 
 | 
 | 
                 }else {
 | 
| 
 | 
 | 
                 } else {
 | 
| 
 | 
 | 
                     this.respModel.awbh = row.awbh
 | 
| 
 | 
 | 
                 }
 | 
| 
 | 
 | 
                 this.respModel.customCode = row.customcode
 | 
| 
...
 | 
...
 | 
@@ -767,25 +776,29 @@ | 
| 
 | 
 | 
             },
 | 
| 
 | 
 | 
             //更改状态
 | 
| 
 | 
 | 
             handleAwbStatus(row) {
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
                 this.$confirm("是否发送更改状态", "确认消息", {
 | 
| 
 | 
 | 
                     distinguishCancelAndClose: true,
 | 
| 
 | 
 | 
                     confirmButtonText: '确认更改',
 | 
| 
 | 
 | 
                     cancelButtonText: '取消更改'
 | 
| 
 | 
 | 
                 }).then(() => {
 | 
| 
 | 
 | 
                     updateStatus(row).then(res => {
 | 
| 
 | 
 | 
                         if (res.data.count > 0) {
 | 
| 
 | 
 | 
                             this.$message({
 | 
| 
 | 
 | 
                                 type: 'success',
 | 
| 
 | 
 | 
                                 message: '当前运单状态已更改'
 | 
| 
 | 
 | 
                             })
 | 
| 
 | 
 | 
                             this.getList()
 | 
| 
 | 
 | 
                         } else {
 | 
| 
 | 
 | 
                             this.$message({
 | 
| 
 | 
 | 
                                 type: 'error',
 | 
| 
 | 
 | 
                                 message: '状态更改失败,请稍后重试'
 | 
| 
 | 
 | 
                             })
 | 
| 
 | 
 | 
                         }
 | 
| 
 | 
 | 
                     })
 | 
| 
 | 
 | 
                     if (row.status!==22){
 | 
| 
 | 
 | 
                         row.status =22;
 | 
| 
 | 
 | 
                     }
 | 
| 
 | 
 | 
                     // updateStatus(row).then(res => {
 | 
| 
 | 
 | 
                     //     if (res.data.count > 0) {
 | 
| 
 | 
 | 
                     //         this.$message({
 | 
| 
 | 
 | 
                     //             type: 'success',
 | 
| 
 | 
 | 
                     //             message: '当前运单状态已更改'
 | 
| 
 | 
 | 
                     //         })
 | 
| 
 | 
 | 
                     //         this.getList()
 | 
| 
 | 
 | 
                     //     } else {
 | 
| 
 | 
 | 
                     //         this.$message({
 | 
| 
 | 
 | 
                     //             type: 'error',
 | 
| 
 | 
 | 
                     //             message: '状态更改失败,请稍后重试'
 | 
| 
 | 
 | 
                     //         })
 | 
| 
 | 
 | 
                     //     }
 | 
| 
 | 
 | 
                     // })
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
                 }).catch(action => {
 | 
| 
 | 
 | 
                     this.$message({
 | 
| 
...
 | 
...
 | 
@@ -797,12 +810,12 @@ | 
| 
 | 
 | 
                 })
 | 
| 
 | 
 | 
             },
 | 
| 
 | 
 | 
             //获取机场三字码
 | 
| 
 | 
 | 
             remoteMethodAirport(query){
 | 
| 
 | 
 | 
             remoteMethodAirport(query) {
 | 
| 
 | 
 | 
                 this.airportCode = []
 | 
| 
 | 
 | 
                 if (query !== '') {
 | 
| 
 | 
 | 
                     this.listLoading = true
 | 
| 
 | 
 | 
                     getAirportCode({airportid: query}).then(res => {
 | 
| 
 | 
 | 
                         if(res !== null){
 | 
| 
 | 
 | 
                         if (res !== null) {
 | 
| 
 | 
 | 
                             setTimeout(() => {
 | 
| 
 | 
 | 
                                 this.listLoading = false
 | 
| 
 | 
 | 
                                 this.airportCode = res.data.data
 | 
| 
...
 | 
...
 | 
@@ -814,12 +827,12 @@ | 
| 
 | 
 | 
                 }
 | 
| 
 | 
 | 
             },
 | 
| 
 | 
 | 
             //关区代码
 | 
| 
 | 
 | 
             remoteMethodCustomCode(query){
 | 
| 
 | 
 | 
             remoteMethodCustomCode(query) {
 | 
| 
 | 
 | 
                 this.customCodeList = []
 | 
| 
 | 
 | 
                 if (query !== '') {
 | 
| 
 | 
 | 
                     this.customLoading = true
 | 
| 
 | 
 | 
                     getCustomCode({customcode: query}).then(res => {
 | 
| 
 | 
 | 
                         if(res !== null){
 | 
| 
 | 
 | 
                         if (res !== null) {
 | 
| 
 | 
 | 
                             setTimeout(() => {
 | 
| 
 | 
 | 
                                 this.customLoading = false
 | 
| 
 | 
 | 
                                 this.customCodeList = res.data.data
 | 
...
 | 
...
 | 
 |