| 
...
 | 
...
 | 
@@ -49,18 +49,14 @@ | 
| 
 | 
 | 
                     <div class="grid-content content" style="margin-top: 6px">出港装载明细</div>
 | 
| 
 | 
 | 
                 </el-col>
 | 
| 
 | 
 | 
             </el-row>
 | 
| 
 | 
 | 
             <tree-table v-loading="listLoading" :data="loadingData" :eval-func="func" :expand-all="true" stripe
 | 
| 
 | 
 | 
                         style="font-size: 12px" border @selection-change="handleSelectionChange">
 | 
| 
 | 
 | 
             <el-table v-loading="listLoading" :data="loadingData"stripe style="font-size: 12px"
 | 
| 
 | 
 | 
                       border @selection-change="handleSelectionChange">
 | 
| 
 | 
 | 
                 <el-table-column type="selection" width="60"></el-table-column>
 | 
| 
 | 
 | 
                 <el-table-column label="主单号" width="160" align="center">
 | 
| 
 | 
 | 
                     <template slot-scope="scope">
 | 
| 
 | 
 | 
                         <span>{{scope.row.awba}}</span>
 | 
| 
 | 
 | 
                     </template>
 | 
| 
 | 
 | 
                 </el-table-column>
 | 
| 
 | 
 | 
                 <!--<el-table-column label="分单号" width="160" align="center">-->
 | 
| 
 | 
 | 
                     <!--<template slot-scope="scope">-->
 | 
| 
 | 
 | 
                         <!--<span>{{scope.row.awbh}}</span>-->
 | 
| 
 | 
 | 
                     <!--</template>-->
 | 
| 
 | 
 | 
                 <!--</el-table-column>-->
 | 
| 
 | 
 | 
                 <el-table-column label="运载件数" width="70" align="center">
 | 
| 
 | 
 | 
                     <template slot-scope="scope">
 | 
| 
 | 
 | 
                         <span>{{scope.row.lodingpiece}}</span>
 | 
| 
...
 | 
...
 | 
@@ -83,44 +79,50 @@ | 
| 
 | 
 | 
                 </el-table-column>
 | 
| 
 | 
 | 
                 <el-table-column label="状态" width="100" align="center">
 | 
| 
 | 
 | 
                     <template slot-scope="scope">
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='01'">未发送</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='02'">已发舱单报</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='01'">接受申报</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='02'">待人工审核</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='03'">退单</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='05'">舱单报退单</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='06'">舱单转人工</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='07'">舱单报申报成功</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='08'">已发舱单删除报</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='09'">舱单删除报退单</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='10'">舱单删除报转人工</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='11'">舱单删除成功</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='12'">已发舱单修改报</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='13'">舱单修改报退单</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='11'">放行</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='12'">拒装</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='13'">禁卸</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='14'">舱单修改报转人工</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='15'">舱单修改报成功</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='16'">海关已存在</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='21'">可自动发送</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='22'">未发送</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='23'">已发送新增报</span>
 | 
| 
 | 
 | 
                         <span v-if="scope.row.status ==='24'">已发送删除报</span>
 | 
| 
 | 
 | 
                         <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 label="回执信息" width="180" 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 label="操作" align="center">
 | 
| 
 | 
 | 
                     <template slot-scope="scope">
 | 
| 
 | 
 | 
                         <el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button>
 | 
| 
 | 
 | 
                         <el-button size="mini" type="success" @click="handleEdit(scope.row)" :disabled="scope.row.status !=='01'">编辑
 | 
| 
 | 
 | 
                         <el-button size="mini" type="success" @click="handleEdit(scope.row)" :disabled="scope.row.status !=='22'">编辑
 | 
| 
 | 
 | 
                         </el-button>
 | 
| 
 | 
 | 
                         <el-button size="mini" type="primary" @click="handleSendAwb(scope.row)"
 | 
| 
 | 
 | 
                                    :disabled="scope.row.status !=='00'">发送舱单报
 | 
| 
 | 
 | 
                                    :disabled="scope.row.status !=='22'">发送舱单报
 | 
| 
 | 
 | 
                         </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 ==='00'">更改状态
 | 
| 
 | 
 | 
                                    :disabled="scope.row.status ==='22'">更改状态
 | 
| 
 | 
 | 
                         </el-button>
 | 
| 
 | 
 | 
                         <el-button size="mini" type="danger" @click="handleSendDelete(scope.row)">发删除报</el-button>
 | 
| 
 | 
 | 
                     </template>
 | 
| 
 | 
 | 
                 </el-table-column>
 | 
| 
 | 
 | 
             </tree-table>
 | 
| 
 | 
 | 
             </el-table>
 | 
| 
 | 
 | 
             <div class="btnFoot">
 | 
| 
 | 
 | 
                 <el-row>
 | 
| 
 | 
 | 
                     <el-button type="primary" size="mini"
 | 
| 
...
 | 
...
 | 
@@ -164,7 +166,8 @@ | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
                         <el-col :span="7.5">
 | 
| 
 | 
 | 
                             <el-form-item label="起始站" prop="originstation">
 | 
| 
 | 
 | 
                                 <el-select filterable clearable placeholder="请选择起始站" allow-create v-model="loadingModel.originstation">
 | 
| 
 | 
 | 
                                 <el-select filterable clearable placeholder="请选择起始站" :remote-method="remoteMethodAirport"
 | 
| 
 | 
 | 
                                            allow-create v-model="originstation" remote>
 | 
| 
 | 
 | 
                                     <el-option v-for="item in airportCode"
 | 
| 
 | 
 | 
                                                :key="item.airportid" :label="item.airportid"
 | 
| 
 | 
 | 
                                                :value="item.airportid" :disabled="dialogStatus === 'update'">
 | 
| 
...
 | 
...
 | 
@@ -176,7 +179,8 @@ | 
| 
 | 
 | 
                         </el-col>
 | 
| 
 | 
 | 
                         <el-col :span="7.5">
 | 
| 
 | 
 | 
                             <el-form-item label="目的站" prop="originstation">
 | 
| 
 | 
 | 
                                 <el-select filterable clearable placeholder="请选择起始站" allow-create v-model="loadingModel.destinationstation">
 | 
| 
 | 
 | 
                                 <el-select filterable clearable placeholder="请选择起始站" :remote-method="remoteMethodAirport"
 | 
| 
 | 
 | 
                                            allow-create v-model="destinationstation" remote>
 | 
| 
 | 
 | 
                                     <el-option v-for="item in airportCode"
 | 
| 
 | 
 | 
                                                :key="item.airportid" :label="item.airportid"
 | 
| 
 | 
 | 
                                                :value="item.airportid" :disabled="dialogStatus === 'update'">
 | 
| 
...
 | 
...
 | 
@@ -228,7 +232,8 @@ | 
| 
 | 
 | 
                         </el-col>
 | 
| 
 | 
 | 
                         <el-col :span="7.5">
 | 
| 
 | 
 | 
                             <el-form-item label="海关关区" prop="customcode">
 | 
| 
 | 
 | 
                                 <el-select v-model="loadingModel.customcode"  placeholder="请选择关区代码" filterable clearable
 | 
| 
 | 
 | 
                                 <el-select v-model="loadingModel.customcode"  placeholder="请选择关区代码"
 | 
| 
 | 
 | 
                                            filterable clearable remote :remote-method="remoteMethodCustomCode" :loading="customLoading"
 | 
| 
 | 
 | 
                                            :disabled="dialogStatus === 'addAwbh'">
 | 
| 
 | 
 | 
                                     <el-option v-for="item in customCodeList" :key="item.customcode" :label="item.customcode"
 | 
| 
 | 
 | 
                                                :value="item.customcode">
 | 
| 
...
 | 
...
 | 
@@ -321,8 +326,6 @@ | 
| 
 | 
 | 
     </div>
 | 
| 
 | 
 | 
 </template>
 | 
| 
 | 
 | 
 <script>
 | 
| 
 | 
 | 
     import treeTable from '@/components/TreeTable'
 | 
| 
 | 
 | 
     import treeToArray from '@/utils/customEval'
 | 
| 
 | 
 | 
     import Pagination from '@/components/Pagination'
 | 
| 
 | 
 | 
     import {getCustomCode,getAirportCode} from "@/api/country";
 | 
| 
 | 
 | 
     import {
 | 
| 
...
 | 
...
 | 
@@ -337,10 +340,10 @@ | 
| 
 | 
 | 
         validAlphabetsAndSpanceKey,
 | 
| 
 | 
 | 
         validatorNum
 | 
| 
 | 
 | 
     } from "@/utils/validate"
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
     import {getResponseForParam} from '@/api/responseDetail'
 | 
| 
 | 
 | 
     export default {
 | 
| 
 | 
 | 
         name: "ExitLoading",
 | 
| 
 | 
 | 
         components: {treeTable, Pagination},
 | 
| 
 | 
 | 
         components: { Pagination},
 | 
| 
 | 
 | 
         inject: ['reload'],
 | 
| 
 | 
 | 
         data() {
 | 
| 
 | 
 | 
             const validatorAwb = (rule, value, callback) => {
 | 
| 
...
 | 
...
 | 
@@ -374,7 +377,6 @@ | 
| 
 | 
 | 
                 callback()
 | 
| 
 | 
 | 
             }
 | 
| 
 | 
 | 
             return {
 | 
| 
 | 
 | 
                 func: treeToArray,
 | 
| 
 | 
 | 
                 total: 1,
 | 
| 
 | 
 | 
                 isAdmin: false,
 | 
| 
 | 
 | 
                 dialogMap: {
 | 
| 
...
 | 
...
 | 
@@ -387,6 +389,7 @@ | 
| 
 | 
 | 
                 dialogTableVisible: false,
 | 
| 
 | 
 | 
                 dialogFormVisible: false,
 | 
| 
 | 
 | 
                 dialogDeleteVisible: false,
 | 
| 
 | 
 | 
                 customLoading: false,
 | 
| 
 | 
 | 
                 listLoading: false,
 | 
| 
 | 
 | 
                 loadingQuery: {
 | 
| 
 | 
 | 
                     pageSize: 1,
 | 
| 
...
 | 
...
 | 
@@ -467,8 +470,6 @@ | 
| 
 | 
 | 
                 this.loadingQuery.destinationstation = this.$route.params.flightData.destinationstation
 | 
| 
 | 
 | 
                 this.getList()
 | 
| 
 | 
 | 
             }
 | 
| 
 | 
 | 
             this.getAirportCode()
 | 
| 
 | 
 | 
             this.getCustomCode()
 | 
| 
 | 
 | 
             let username = JSON.parse(sessionStorage.getItem('user')).username
 | 
| 
 | 
 | 
             if (username === 'admin') {
 | 
| 
 | 
 | 
                 this.isAdmin = true
 | 
| 
...
 | 
...
 | 
@@ -560,7 +561,7 @@ | 
| 
 | 
 | 
                 this.getList()
 | 
| 
 | 
 | 
             },
 | 
| 
 | 
 | 
             // 收发明细
 | 
| 
 | 
 | 
             handleSend() {
 | 
| 
 | 
 | 
             handleSend(row) {
 | 
| 
 | 
 | 
                 const resQuery = {
 | 
| 
 | 
 | 
                     carrier: row.carrier,
 | 
| 
 | 
 | 
                     flightNo: row.flightno,
 | 
| 
...
 | 
...
 | 
@@ -782,15 +783,39 @@ | 
| 
 | 
 | 
                     }
 | 
| 
 | 
 | 
                 })
 | 
| 
 | 
 | 
             },
 | 
| 
 | 
 | 
             getAirportCode(){
 | 
| 
 | 
 | 
                 getAirportCode().then(res=>{
 | 
| 
 | 
 | 
             //获取机场三字码
 | 
| 
 | 
 | 
             remoteMethodAirport(query){
 | 
| 
 | 
 | 
                 this.airportCode = []
 | 
| 
 | 
 | 
                 if (query !== '') {
 | 
| 
 | 
 | 
                     this.listLoading = true
 | 
| 
 | 
 | 
                     getAirportCode({airportid: query}).then(res => {
 | 
| 
 | 
 | 
                         if(res !== null){
 | 
| 
 | 
 | 
                             setTimeout(() => {
 | 
| 
 | 
 | 
                                 this.listLoading = false
 | 
| 
 | 
 | 
                                 this.airportCode = res.data.data
 | 
| 
 | 
 | 
                             }, 200)
 | 
| 
 | 
 | 
                         }
 | 
| 
 | 
 | 
                     })
 | 
| 
 | 
 | 
                 } else {
 | 
| 
 | 
 | 
                     this.airportCode = []
 | 
| 
 | 
 | 
                 }
 | 
| 
 | 
 | 
             },
 | 
| 
 | 
 | 
             getCustomCode(){
 | 
| 
 | 
 | 
                 getCustomCode().then(res =>{
 | 
| 
 | 
 | 
             //关区代码
 | 
| 
 | 
 | 
             remoteMethodCustomCode(query){
 | 
| 
 | 
 | 
                 this.customCodeList = []
 | 
| 
 | 
 | 
                 if (query !== '') {
 | 
| 
 | 
 | 
                     this.customLoading = true
 | 
| 
 | 
 | 
                     getCustomCode({customcode: query}).then(res => {
 | 
| 
 | 
 | 
                         if(res !== null){
 | 
| 
 | 
 | 
                             setTimeout(() => {
 | 
| 
 | 
 | 
                                 this.customLoading = false
 | 
| 
 | 
 | 
                                 this.customCodeList = res.data.data
 | 
| 
 | 
 | 
                             }, 200)
 | 
| 
 | 
 | 
                         }
 | 
| 
 | 
 | 
                     })
 | 
| 
 | 
 | 
                 } else {
 | 
| 
 | 
 | 
                     this.airportCode = []
 | 
| 
 | 
 | 
                 }
 | 
| 
 | 
 | 
             },
 | 
| 
 | 
 | 
             handleAddLoading() {
 | 
| 
 | 
 | 
                 const row = {
 | 
...
 | 
...
 | 
 |