| ... | ... | @@ -13,9 +13,9 @@ | 
|  |  | </el-col> | 
|  |  | <el-col :span="20"> | 
|  |  | <div class="grid-content"> | 
|  |  | <span class="titleSpan">航班号:{{this.listQuery.carrier}}{{this.listQuery.flightNo}}</span> | 
|  |  | <span class="titleSpan">航班日期:{{this.listQuery.flightDate}}</span> | 
|  |  | <span class="titleSpan">航段:{{this.listQuery.originStation}}-{{this.listQuery.destinationStation}}</span> | 
|  |  | <span class="titleSpan">航班号:{{this.preQuery.carrier}}{{this.preQuery.flightno}}</span> | 
|  |  | <span class="titleSpan">航班日期:{{this.preQuery.flightdate}}</span> | 
|  |  | <span class="titleSpan">航段:{{this.preQuery.originstation}}-{{this.preQuery.destinationstation}}</span> | 
|  |  | </div> | 
|  |  | </el-col> | 
|  |  | </div> | 
| ... | ... | @@ -32,12 +32,12 @@ | 
|  |  | <div class="grid-content"> | 
|  |  | <el-col :span="4"> | 
|  |  | <div class="grid-content"> | 
|  |  | <el-input v-model="listQuery.awba" placeholder="请输入主单号" clearable></el-input> | 
|  |  | <el-input v-model="preQuery.awba" placeholder="请输入主单号" clearable></el-input> | 
|  |  | </div> | 
|  |  | </el-col> | 
|  |  | <div class="grid-content el-btn"> | 
|  |  | <el-button type="primary" size="mini" @click="handleSerach">查询</el-button> | 
|  |  | <el-button v-if="preModel.flightno === undefined && preData.length<1" type="primary" | 
|  |  | <el-button v-if="preQuery.flightno === undefined && preData.length<1" type="primary" | 
|  |  | size="mini" | 
|  |  | @click="handleAddpre">新增预配舱单 | 
|  |  | </el-button> | 
| ... | ... | @@ -87,15 +87,16 @@ | 
|  |  | {{scope.row.actime}} | 
|  |  | </template> | 
|  |  | </el-table-column> | 
|  |  | <el-table-column label="代理人代码" width="120" align="center"> | 
|  |  | <template slot-scope="scope"> | 
|  |  | {{scope.row.status}} | 
|  |  | </template> | 
|  |  | </el-table-column> | 
|  |  | <!--<el-table-column label="代理人代码" width="120" align="center">--> | 
|  |  | <!--<template slot-scope="scope">--> | 
|  |  | <!--{{scope.row.status}}--> | 
|  |  | <!--</template>--> | 
|  |  | <!--</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 ==='04'">已发送</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> | 
| ... | ... | @@ -116,9 +117,9 @@ | 
|  |  | <el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button> | 
|  |  | </template> | 
|  |  | </el-table-column> | 
|  |  | <el-table-column label="操作" width="300"> | 
|  |  | <el-table-column label="操作" width="450"> | 
|  |  | <template slot-scope="scope"> | 
|  |  | <el-button size="mini" type="success" @click="handleEdit(scope.row)">编辑运单</el-button> | 
|  |  | <el-button size="mini" type="success" @click="handleEdit(scope.row)" :disabled="scope.row.status !=='01'">编辑</el-button> | 
|  |  | <el-button size="mini" type="success" v-if="scope.row.awbh ===null" | 
|  |  | @click="handleAddAwbh(scope.row)">新增分单 | 
|  |  | </el-button> | 
| ... | ... | @@ -127,25 +128,26 @@ | 
|  |  | </el-button> | 
|  |  | <p></p> | 
|  |  | <el-button size="mini" type="primary" @click="handleAwbEdit(scope.row)">发修改报</el-button> | 
|  |  |  | 
|  |  | <el-button size="mini" type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</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 === '01'">更改状态 | 
|  |  | </el-button> | 
|  |  | <el-button size="mini" type="danger" @click="handleSendDelete(scope.row)">发删除报</el-button> | 
|  |  | </template> | 
|  |  | </el-table-column> | 
|  |  | </tree-table> | 
|  |  | <div class="btnFoot"> | 
|  |  | <el-row> | 
|  |  | <el-button type="primary" size="mini" v-if="preData.flightno !== undefined || preData.length> 0" | 
|  |  | <el-button type="primary" size="mini" v-if="preQuery.flightno !== undefined | preData.length > 0" | 
|  |  | @click="handleAddpreInfo">新增预配舱单 | 
|  |  | </el-button> | 
|  |  | <el-button type="primary" size="mini" @click="handelBackStep" | 
|  |  | v-if="preModel.flightno !== undefined || preData.length >0">返回 | 
|  |  | v-if="preQuery.flightno !== undefined || preData.length >0">返回 | 
|  |  | </el-button> | 
|  |  | </el-row> | 
|  |  | </div> | 
|  |  | <pagination v-show="total>0" :total="total" :page.sync="listQuery.pageSize" :limit.sync="listQuery.limitSize" | 
|  |  | <pagination v-show="total>0" :total="total" :page.sync="preQuery.pageSize" :limit.sync="preQuery.limitSize" | 
|  |  | @pagination="getList"/> | 
|  |  | <el-dialog :title="dialogMap[dialogStatus]" :visible.sync="dialogFormVisible" width="60%"> | 
|  |  | <el-form ref="preFormData" :model="preModel" :rules="preRoles" label-position="right" | 
| ... | ... | @@ -192,12 +194,27 @@ | 
|  |  | <el-row> | 
|  |  | <el-col :span="7.5"> | 
|  |  | <el-form-item label="起始站" prop="originstation"> | 
|  |  | <el-input v-model="originstation" :disabled="dialogStatus === 'addAwbh'" clearable/> | 
|  |  | <el-select filterable clearable placeholder="请选择起始站" allow-create v-model="preModel.originstation"> | 
|  |  | <el-option v-for="item in airportCode" | 
|  |  | :key="item.airportid" :label="item.airportid" | 
|  |  | :value="item.airportid" :disabled="dialogStatus === 'addAwbh'"> | 
|  |  | <span style="float: left">{{ item.airportdescchn }}</span> | 
|  |  | <span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportid }}</span> | 
|  |  | </el-option> | 
|  |  | </el-select> | 
|  |  | <!--<el-input v-model="preModel.originstation" :disabled="dialogStatus === 'addAwbh'" clearable/>--> | 
|  |  | </el-form-item> | 
|  |  | </el-col> | 
|  |  | <el-col :span="7.5"> | 
|  |  | <el-form-item label="目的站" prop="destinationstation"> | 
|  |  | <el-input v-model="destinationstation" :disabled="dialogStatus === 'addAwbh'" clearable/> | 
|  |  | <el-select filterable clearable placeholder="请选择目的站" allow-create v-model="preModel.destinationstation"> | 
|  |  | <el-option v-for="item in airportCode" | 
|  |  | :key="item.airportid" :label="item.airportid" | 
|  |  | :value="item.airportid" :disabled="dialogStatus === 'addAwbh'" > | 
|  |  | <span style="float: left">{{ item.airportdescchn }}</span> | 
|  |  | <span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportid }}</span> | 
|  |  | </el-option> | 
|  |  | </el-select> | 
|  |  | </el-form-item> | 
|  |  | </el-col> | 
|  |  | </el-row> | 
| ... | ... | @@ -306,16 +323,19 @@ | 
|  |  | <el-row> | 
|  |  | <el-col :span="7.5"> | 
|  |  | <el-form-item label="关区代码" prop="customcode"> | 
|  |  | <el-select v-model="preModel.customcode" class="filter-item" placeholder="请选择关区代码" | 
|  |  | <el-select v-model="preModel.customcode"  placeholder="请选择关区代码" filterable clearable | 
|  |  | :disabled="dialogStatus === 'addAwbh'"> | 
|  |  | <el-option v-for="item in customcodeList" :key="item.value" :label="item.label" | 
|  |  | :value="item.value"></el-option> | 
|  |  | <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> | 
|  |  | </el-option> | 
|  |  | </el-select> | 
|  |  | </el-form-item> | 
|  |  | </el-col> | 
|  |  | <el-col :span="7.5"> | 
|  |  | <el-form-item label="海关状态"> | 
|  |  | <el-select v-model="preModel.awbtype" class="filter-item" placeholder="请录入货物类型"> | 
|  |  | <el-select v-model="preModel.awbinfo.awbtype" class="filter-item" placeholder="请录入货物类型"> | 
|  |  | <el-option v-for="item in customTypes" :key="item.value" :label="item.label" | 
|  |  | :value="item.value"/> | 
|  |  | </el-select> | 
| ... | ... | @@ -520,11 +540,35 @@ | 
|  |  | <!--</el-form-item>--> | 
|  |  | <!--</el-col>--> | 
|  |  | </el-row> | 
|  |  | <div v-show="dialogStatus === 'sendUpdate'"> | 
|  |  | <div class="grid-content content"> | 
|  |  | 运单信息 | 
|  |  | </div> | 
|  |  | <el-row> | 
|  |  | <el-col :span="7.5"> | 
|  |  | <el-form-item label="修改原因" prop="reason"> | 
|  |  | <el-input v-model="preModel.reason" clearable/> | 
|  |  | </el-form-item> | 
|  |  | </el-col> | 
|  |  | <el-col :span="7.5"> | 
|  |  | <el-form-item label="修改人" prop="contactName"> | 
|  |  | <el-input v-model="preModel.contactName" clearable/> | 
|  |  | </el-form-item> | 
|  |  | </el-col> | 
|  |  | <el-col :span="7.5"> | 
|  |  | <el-form-item label="修改人Tel" prop="contactTel"> | 
|  |  | <el-input v-model="preModel.contactTel" clearable maxlength="5"/> | 
|  |  | </el-form-item> | 
|  |  | </el-col> | 
|  |  | </el-row> | 
|  |  | </div> | 
|  |  |  | 
|  |  | </el-form> | 
|  |  | <div slot="footer" class="dialog-footer"> | 
|  |  | <el-button @click="dialogFormVisible = false">取消</el-button> | 
|  |  | <el-button type="primary" @click="dialogStatus !=='create'? createData():updateData()">保存</el-button> | 
|  |  | <el-button type="success" @click="handleSaveAndSend">保存并发送</el-button> | 
|  |  | <el-button type="primary" v-show="dialogStatus!=='sendUpdate'" | 
|  |  | @click="dialogStatus ==='create'? createData():updateData()">保存</el-button> | 
|  |  | <el-button type="primary" v-show="dialogStatus==='sendUpdate'" @click="sendUpdate()">发送</el-button> | 
|  |  | </div> | 
|  |  | </el-dialog> | 
|  |  | <el-dialog title="收发明细" :visible.sync="dialogTableVisible"> | 
| ... | ... | @@ -566,6 +610,27 @@ | 
|  |  | </el-table-column> | 
|  |  | </el-table> | 
|  |  | </el-dialog> | 
|  |  | <el-dialog title="删除原因" :visible.sync="dialogDeleteVisble" width="30%"> | 
|  |  | <el-form ref="sendDeleteForm" :model="respModel" :rules="sendDeleteRules" label-width="120px" | 
|  |  | style="margin-right:50px;"> | 
|  |  | <el-form-item label="删除原因" prop="reason"> | 
|  |  | <el-input v-model="respModel.reason" placeholder="删除原因"></el-input> | 
|  |  | </el-form-item> | 
|  |  | <el-form-item label="删除操作人" prop="contactName"> | 
|  |  | <el-input v-model="respModel.contactName" placeholder="操作人姓名"></el-input> | 
|  |  | </el-form-item> | 
|  |  | <el-form-item label="操作人Tel" prop="contactTel"> | 
|  |  | <el-input v-model="respModel.contactTel" placeholder="删除操作人联系方式"></el-input> | 
|  |  | </el-form-item> | 
|  |  | <el-form-item label="备注"> | 
|  |  | <el-input v-model="respModel.content" type="textarea"></el-input> | 
|  |  | </el-form-item> | 
|  |  | </el-form> | 
|  |  | <div slot="footer" class="dialog-footer"> | 
|  |  | <el-button @click="dialogDeleteVisble = false">取消</el-button> | 
|  |  | <el-button type="primary" @click="sendDelete()">发送</el-button> | 
|  |  | </div> | 
|  |  | </el-dialog> | 
|  |  | </div> | 
|  |  | </template> | 
|  |  | <script> | 
| ... | ... | @@ -573,8 +638,17 @@ | 
|  |  | import treeToArray from '@/utils/customEval' | 
|  |  | import Pagination from '@/components/Pagination' | 
|  |  |  | 
|  |  | import {getCountry, getByCountryCode, getByCountryCodeForName} from "@/api/country"; | 
|  |  | import {getMt2201ListForParam, deleteByIsDelete, updateStatus, updateMT2201, addMt2201} from '@/api/exitPre' | 
|  |  | import {getCountry, getByCountryCode, getByCountryCodeForName,getCustomCode,getAirportCode} from "@/api/country"; | 
|  |  | import { | 
|  |  | getMt2201ListForParam, | 
|  |  | deleteByIsDelete, | 
|  |  | updateStatus, | 
|  |  | updateMT2201, | 
|  |  | addMt2201, | 
|  |  | sendCreateMt2201, | 
|  |  | sendDeleteMt2201, | 
|  |  | sendUpdateMt2201 | 
|  |  | } from '@/api/exitPre' | 
|  |  | import {Message} from "element-ui"; | 
|  |  | import {getResponseForParam} from '@/api/responseDetail' | 
|  |  | import { | 
| ... | ... | @@ -623,16 +697,17 @@ | 
|  |  | return { | 
|  |  | func: treeToArray, | 
|  |  | total: 1, | 
|  |  | isAdmin:false, | 
|  |  | listQuery: { | 
|  |  | isAdmin: false, | 
|  |  | preQuery: { | 
|  |  | pageSize: 1, | 
|  |  | limitSize: 100, | 
|  |  | awba: undefined, | 
|  |  | carrier: undefined, | 
|  |  | flightNo: undefined, | 
|  |  | flightDate: undefined, | 
|  |  | originStation: undefined, | 
|  |  | destinationStation: undefined | 
|  |  | flightno: undefined, | 
|  |  | flightdate: undefined, | 
|  |  | originstation: undefined, | 
|  |  | destinationstation: undefined, | 
|  |  | messageType: undefined | 
|  |  | }, | 
|  |  | dialogMap: { | 
|  |  | update: '编辑预配舱单', | 
| ... | ... | @@ -647,9 +722,11 @@ | 
|  |  | {label: '快件', value: '005'}], | 
|  |  | payTypes: [{label: '预付', value: '0'}, {label: '到付', value: '1'}], | 
|  |  | splitcodes: [{label: '是', value: 'T'}, {label: '否', value: 'P'}], | 
|  |  | customcodeList: [{label: '4604', value: '4604'}, {label: '4620', value: '4620'}], | 
|  |  | customCodeList: [], | 
|  |  | airportCode:[], | 
|  |  | dialogStatus: undefined, | 
|  |  | dialogTableVisible: false, | 
|  |  | dialogDeleteVisble: false, | 
|  |  | listLoading: false, | 
|  |  | disabledStatus: false, | 
|  |  | dialogFormVisible: false, | 
| ... | ... | @@ -673,6 +750,9 @@ | 
|  |  | 'awbinfo.collected': [{required: true, message: '付款方式必选', trigger: 'change'}], | 
|  |  | goodsname: [{required: true, trigger: 'change', validator: validAlphabetsSpanceKey}], | 
|  |  | ex5: [{required: true, message: '货物描述不能为空', trigger: 'blur'}], | 
|  |  | reason:[{required: true, message: '修改原因不能为空', trigger: 'blur'}], | 
|  |  | contactName:[{required: true, message: '修改操作人不能为空', trigger: 'blur'}], | 
|  |  | contactTel:[{required: true, message: '修改操作人联系方式不能为空', trigger: 'blur'}], | 
|  |  | 'awbinfo.sairportid': [{required: true, message: '起始航站不能为空', trigger: 'change'}], | 
|  |  | 'awbinfo.shprname': [{required: true, message: '发货人不能为空', trigger: 'change'}], | 
|  |  | 'awbinfo.shprtel': [{required: true, message: '发货电话不能为空', trigger: 'change'}], | 
| ... | ... | @@ -703,6 +783,9 @@ | 
|  |  | uldNo: undefined, | 
|  |  | status: undefined, | 
|  |  | ex5: undefined, | 
|  |  | reason: undefined, | 
|  |  | contactName: undefined, | 
|  |  | contactTel: undefined, | 
|  |  | awbinfo: { | 
|  |  | pcs: undefined, | 
|  |  | weight: undefined, | 
| ... | ... | @@ -743,6 +826,23 @@ | 
|  |  | awbtype: undefined | 
|  |  | } | 
|  |  | }, | 
|  |  | respModel: { | 
|  |  | uuid: undefined, | 
|  |  | reason: undefined, | 
|  |  | contactName: undefined, | 
|  |  | contactTel: undefined, | 
|  |  | content: '', | 
|  |  | flightNo: undefined, | 
|  |  | awba: undefined, | 
|  |  | customCode: undefined, | 
|  |  | flightDate: undefined, | 
|  |  | awbh: '' | 
|  |  | }, | 
|  |  | sendDeleteRules:{ | 
|  |  | reason:[{required:true,message:'删除原因不能为空',trigger:'blur'}], | 
|  |  | contactName:[{required:true,message:'删除操作人不能为空',trigger:'blur'}], | 
|  |  | contactTel:[{required:true,message:'操作人联系方式不能为空',trigger:'blur'}] | 
|  |  | }, | 
|  |  | preData: [], | 
|  |  | detailData: [] | 
|  |  | } | 
| ... | ... | @@ -757,17 +857,21 @@ | 
|  |  | }, | 
|  |  | created() { | 
|  |  | if (this.$route.params.flightData !== undefined) { | 
|  |  | this.listQuery.carrier = this.$route.params.flightData.flightno.substring(0, 2) | 
|  |  | this.listQuery.flightNo = this.$route.params.flightData.flightno.substring(2) | 
|  |  | this.listQuery.flightDate = this.$route.params.flightData.flightdate | 
|  |  | this.listQuery.originStation = this.$route.params.flightData.originstation | 
|  |  | this.listQuery.destinationStation = this.$route.params.flightData.destinationstation | 
|  |  | this.listQuery.awba = this.$route.params.flightData.awba | 
|  |  | this.preQuery.carrier = this.$route.params.flightData.flightno.substring(0, 2) | 
|  |  | this.preQuery.flightno = this.$route.params.flightData.flightno.substring(2) | 
|  |  | this.preQuery.flightdate = this.$route.params.flightData.flightdate | 
|  |  | this.preQuery.originstation = this.$route.params.flightData.originstation | 
|  |  | this.preQuery.destinationstation = this.$route.params.flightData.destinationstation | 
|  |  | if (this.$route.params.flightData.awba !== undefined && this.$route.params.flightData.awba !== '') { | 
|  |  | this.preQuery.awba = this.$route.params.flightData.awba.substring(0, 3) + "-" + this.$route.params.flightData.awba.substring(3) | 
|  |  | } | 
|  |  | this.getList() | 
|  |  | } | 
|  |  | this.getCountryList() | 
|  |  | this.getAirportCode() | 
|  |  | this.getCustomCode() | 
|  |  | let username = JSON.parse(sessionStorage.getItem('user')).username | 
|  |  | if(username === 'admin'){ | 
|  |  | if (username === 'admin') { | 
|  |  | this.isAdmin = true | 
|  |  | } | 
|  |  | }, | 
| ... | ... | @@ -981,24 +1085,24 @@ | 
|  |  | // >>>>>>>>>>>>>>>>获取list集合<<<<<<<<<<<<<<<<<< | 
|  |  | getList() { | 
|  |  | this.listLoading = true | 
|  |  | if (this.listQuery.awba !== undefined && this.listQuery.awba !== '') { | 
|  |  | getMt2201ListForParam(this.listQuery).then(res => { | 
|  |  | if (this.preQuery.awba !== undefined && this.preQuery.awba !== '') { | 
|  |  | getMt2201ListForParam(this.preQuery).then(res => { | 
|  |  | this.preData = res.data.dataList | 
|  |  | this.total = res.data.count | 
|  |  | if (res.data.count > 0) { | 
|  |  | this.listQuery.carrier = this.preData[0].carrier | 
|  |  | this.listQuery.flightNo = this.preData[0].flightno | 
|  |  | this.listQuery.flightDate = this.preData[0].flightdate | 
|  |  | this.listQuery.originStation = this.preData[0].originstation | 
|  |  | this.listQuery.destinationStation = this.preData[0].destinationstation | 
|  |  | this.listQuery.customcode = this.preData[0].customcode | 
|  |  | this.preQuery.carrier = this.preData[0].carrier | 
|  |  | this.preQuery.flightno = this.preData[0].flightno | 
|  |  | this.preQuery.flightdate = this.preData[0].flightdate | 
|  |  | this.preQuery.originstation = this.preData[0].originstation | 
|  |  | this.preQuery.destinationstation = this.preData[0].destinationstation | 
|  |  | this.preQuery.customcode = this.preData[0].customcode | 
|  |  | } | 
|  |  | setTimeout(() => { | 
|  |  | this.listLoading = false | 
|  |  | }, 1500) | 
|  |  | }) | 
|  |  | } else { | 
|  |  | getMt2201ListForParam(this.listQuery).then(res => { | 
|  |  | getMt2201ListForParam(this.preQuery).then(res => { | 
|  |  | this.preData = res.data.dataList | 
|  |  | this.total = res.data.count | 
|  |  | setTimeout(() => { | 
| ... | ... | @@ -1072,12 +1176,12 @@ | 
|  |  | // >>>>>>>>>>>>>>>>新增主单<<<<<<<<<<<<<<<<<< | 
|  |  | handleAddpreInfo() { | 
|  |  | this.restModel() | 
|  |  | this.preModel.carrier = this.listQuery.carrier | 
|  |  | this.preModel.flightno = this.listQuery.flightno | 
|  |  | this.preModel.flightdate = this.listQuery.flightdate | 
|  |  | this.preModel.originstation = this.listQuery.originstation | 
|  |  | this.preModel.destinationstation = this.listQuery.carrier | 
|  |  | this.preModel.customcode = this.listQuery.customcode | 
|  |  | this.preModel.carrier = this.preQuery.carrier | 
|  |  | this.preModel.flightno = this.preQuery.flightno | 
|  |  | this.preModel.flightdate = this.preQuery.flightdate | 
|  |  | this.preModel.originstation = this.preQuery.originstation | 
|  |  | this.preModel.destinationstation = this.preQuery.carrier | 
|  |  | this.preModel.customcode = this.preQuery.customcode | 
|  |  | this.dialogStatus = 'create' | 
|  |  | this.dialogFormVisible = true | 
|  |  | this.$nextTick(() => { | 
| ... | ... | @@ -1105,19 +1209,19 @@ | 
|  |  | }, | 
|  |  | // >>>>>>>>>>>>>>>>搜索<<<<<<<<<<<<<<<<<< | 
|  |  | handleSerach() { | 
|  |  | this.listQuery.carrier = undefined | 
|  |  | this.listQuery.flightno = undefined | 
|  |  | this.listQuery.originstation = undefined | 
|  |  | this.listQuery.flightdate = undefined | 
|  |  | this.listQuery.destinationstation = undefined | 
|  |  | this.preQuery.flightno = undefined | 
|  |  | this.preQuery.carrier = undefined | 
|  |  | this.preQuery.originstation = undefined | 
|  |  | this.preQuery.flightdate = undefined | 
|  |  | this.preQuery.destinationstation = undefined | 
|  |  | this.getList() | 
|  |  | }, | 
|  |  | // >>>>>>>>>>>>>>>>收发明细<<<<<<<<<<<<<<<<<< | 
|  |  | handleSend(row) { | 
|  |  | const resQuery = { | 
|  |  | carrier: row.carrier, | 
|  |  | flightNo: row.flightno, | 
|  |  | flightDate: row.flightdate, | 
|  |  | flightno: row.flightno, | 
|  |  | flightdate: row.flightdate, | 
|  |  | awba: row.awba, | 
|  |  | awbh: row.awbh, | 
|  |  | messageType: 'MT2201' | 
| ... | ... | @@ -1128,8 +1232,24 @@ | 
|  |  | }) | 
|  |  | }, | 
|  |  | // >>>>>>>>>>>>>>>>发送舱单报<<<<<<<<<<<<<<<<<< | 
|  |  | handleAwbSend() { | 
|  |  |  | 
|  |  | handleAwbSend(row) { | 
|  |  | delete row.parent | 
|  |  | delete row.children | 
|  |  | this.$confirm("是否发送", "确认消息", { | 
|  |  | distinguishCancelAndClose: true, | 
|  |  | confirmButtonText: '发送', | 
|  |  | cancelButtonText: '取消' | 
|  |  | }).then(() => { | 
|  |  | sendCreateMt2201(row).then(res => { | 
|  |  | console.log(res) | 
|  |  | if (res.data.count > 0) { | 
|  |  | Message.success(res.data.respMessage) | 
|  |  | this.getList() | 
|  |  | } else { | 
|  |  | Message.error(res.data.respMessage) | 
|  |  | } | 
|  |  | }) | 
|  |  | }) | 
|  |  | }, | 
|  |  | // >>>>>>>>>>>>>>>>更新运单数据<<<<<<<<<<<<<<<<<< | 
|  |  | handleEdit(row) { | 
| ... | ... | @@ -1158,14 +1278,82 @@ | 
|  |  | }) | 
|  |  | }, | 
|  |  | // >>>>>>>>>>>>>>>>发送修改报<<<<<<<<<<<<<<<<<< | 
|  |  | handleAwbEdit() { | 
|  |  |  | 
|  |  | handleAwbEdit(row) { | 
|  |  | delete row.parent | 
|  |  | delete row.children | 
|  |  | this.preModel = Object.assign({}, row) | 
|  |  | this.dialogStatus = 'sendUpdate' | 
|  |  | this.dialogFormVisible = true | 
|  |  | this.$nextTick(() => { | 
|  |  | this.$refs.preFormData.clearValidate() | 
|  |  | }) | 
|  |  | }, | 
|  |  | // >>>>>>>>>>>>>>>>保存并发送<<<<<<<<<<<<<<<<<< | 
|  |  | handleSaveAndSend() { | 
|  |  |  | 
|  |  | sendUpdate(){ | 
|  |  | this.respModel.reason = this.preModel.reason | 
|  |  | this.respModel.contactName = this.preModel.contactName | 
|  |  | this.respModel.contactTel = this.preModel.contactTel | 
|  |  | const map = { | 
|  |  | 'mt2201': this.preModel, | 
|  |  | 'reason' : this.preModel.reason, | 
|  |  | 'contactName':this.preModel.contactName, | 
|  |  | 'contactTel': this.preModel.contactTel, | 
|  |  | } | 
|  |  | this.$refs.preFormData.validate(valid =>{ | 
|  |  | if(valid){ | 
|  |  | sendUpdateMt2201(map).then(res =>{ | 
|  |  | if(res.data.count >0){ | 
|  |  | Message.success(res.data.respMessage) | 
|  |  | this.getList() | 
|  |  | this.dialogFormVisible = false | 
|  |  | }else { | 
|  |  | Message.error(res.data.respMessage) | 
|  |  | } | 
|  |  | }) | 
|  |  | } | 
|  |  | }) | 
|  |  | }, | 
|  |  |  | 
|  |  | // >>>>>>>>>>>>>>>>发送删除报<<<<<<<<<<<<<<<<<< | 
|  |  | handleSendDelete(row) { | 
|  |  | this.respModel = { | 
|  |  | uuid: undefined, | 
|  |  | reason: undefined, | 
|  |  | contactName: undefined, | 
|  |  | contactTel: undefined, | 
|  |  | content: '', | 
|  |  | flightNo: undefined, | 
|  |  | awba: undefined, | 
|  |  | customCode: undefined, | 
|  |  | flightDate: undefined, | 
|  |  | awbh: '' | 
|  |  | } | 
|  |  | this.dialogDeleteVisble = true | 
|  |  | this.respModel.awba = row.awba | 
|  |  | this.respModel.flightNo = row.carrier + row.flightno | 
|  |  | this.respModel.customCode = row.customcode | 
|  |  | this.respModel.awbh = row.awbh | 
|  |  | this.respModel.flightDate = row.flightdate | 
|  |  | this.respModel.uuid = row.uuid | 
|  |  | this.$nextTick(()=>{ | 
|  |  | this.$refs.sendDeleteForm.clearValidate() | 
|  |  | }) | 
|  |  | }, | 
|  |  | sendDelete() { | 
|  |  | this.$refs.sendDeleteForm.validate(valid =>{ | 
|  |  | if(valid){ | 
|  |  | sendDeleteMt2201(this.respModel).then(res => { | 
|  |  | if(res.data.count>0){ | 
|  |  | Message.success(res.data.respMessage) | 
|  |  | this.dialogDeleteVisble = false | 
|  |  | this.getList() | 
|  |  | }else { | 
|  |  | Message.error(res.data.respMessage) | 
|  |  | } | 
|  |  | }) | 
|  |  | } | 
|  |  | }) | 
|  |  | }, | 
|  |  | //>>>>>>>>>>>>>>>>删除运单<<<<<<<<<<<<<<<<<< | 
|  |  | handleAwbDelete(row) { | 
|  |  | delete row.parent | 
|  |  | delete row.children | 
| ... | ... | @@ -1246,14 +1434,14 @@ | 
|  |  | this.preModel.awbinfo.sairportid = template.awbinfo.sairportid | 
|  |  | this.preModel.awbinfo.eairportid = template.awbinfo.eairportid | 
|  |  | this.preModel.awbinfo.ex5 = template.awbinfo.ex5 | 
|  |  | this.listQuery.awba = template.awba | 
|  |  | this.listQuery.flightDate = template.flightdate | 
|  |  | this.listQuery.flightNo = template.flightno | 
|  |  | this.listQuery.originStation = template.originstation | 
|  |  | this.listQuery.destinationStation = template.destinationstation | 
|  |  | this.listQuery.customcode = template.customcode | 
|  |  | this.listQuery.carrier = template.carrier | 
|  |  | getMt2201ListForParam(this.listQuery).then(res => { | 
|  |  | this.preQuery.awba = template.awba | 
|  |  | this.preQuery.flightdate = template.flightdate | 
|  |  | this.preQuery.flightno = template.flightno | 
|  |  | this.preQuery.originstation = template.originstation | 
|  |  | this.preQuery.destinationstation = template.destinationstation | 
|  |  | this.preQuery.customcode = template.customcode | 
|  |  | this.preQuery.carrier = template.carrier | 
|  |  | getMt2201ListForParam(this.preQuery).then(res => { | 
|  |  | this.awbPiece = 0 | 
|  |  | this.awbWeight = 0 | 
|  |  | let residuePiece = 0 | 
| ... | ... | @@ -1294,21 +1482,20 @@ | 
|  |  | .indexOf(query.toUpperCase()) > -1 | 
|  |  | }) | 
|  |  | }, 200) | 
|  |  | // if (query.length > 1) { | 
|  |  | //     this.selectCountry.countryCode = query | 
|  |  | //     getByCountryCode(this.selectCountry).then(res => { | 
|  |  | //         this.shpCompnyList = res.data.dataList | 
|  |  | //         this.shpCompnyTypeOption = this.shpCompnyList.map(item => { | 
|  |  | //             console.log(item) | 
|  |  | //             return {value: item.enterpriseCode, label: item.enterpriseCode} | 
|  |  | //         }) | 
|  |  | //     }) | 
|  |  | // } | 
|  |  | } else { | 
|  |  | this.countryOption = [] | 
|  |  | } | 
|  |  | }, | 
|  |  |  | 
|  |  |  | 
|  |  | getAirportCode(){ | 
|  |  | getAirportCode().then(res=>{ | 
|  |  | this.airportCode = res.data.data | 
|  |  | }) | 
|  |  | }, | 
|  |  | getCustomCode(){ | 
|  |  | getCustomCode().then(res =>{ | 
|  |  | this.customCodeList = res.data.data | 
|  |  | }) | 
|  |  | }, | 
|  |  | handleAddpre() { | 
|  |  | const row = { | 
| ... | ... | @@ -1318,7 +1505,8 @@ | 
|  |  | }, | 
|  |  |  | 
|  |  | handelBackStep() { | 
|  |  | this.$router.push({name: '出港航班信息', params: {scopeRow: this.preModel}}) | 
|  |  | this.preQuery.messageType = 'MT2201' | 
|  |  | this.$router.push({name: '出港航班信息', params: {scopeRow: this.preQuery}}) | 
|  |  | } | 
|  |  | } | 
|  |  | } | 
... | ... |  |