...
|
...
|
@@ -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>
|
...
|
...
|
@@ -52,29 +52,35 @@ |
|
|
</el-row>
|
|
|
</div>
|
|
|
|
|
|
<tree-table :data="preData" stripe style="font-size: 12px" :eval-func="func" :expand-all="true" border
|
|
|
@selection-change="handleSelectionChange" v-loading="listLoading">
|
|
|
<el-table-column label="航班信息" width="90" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<p class="tableInline">{{scope.row.carrier}}{{scope.row.flightno}}</p>
|
|
|
<p class="tableInline">{{scope.row.flightdate}}</p>
|
|
|
<p class="tableInline">{{scope.row.originstation}}-{{scope.row.destinationstation}}</p>
|
|
|
</template>
|
|
|
<el-table :data="preData" stripe style="font-size: 12px" stripe
|
|
|
@selection-change="handleSelectionChange" v-loading="listLoading"
|
|
|
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="120" align="center">
|
|
|
<!-- <el-table-column label="航班信息" width="90" align="center">-->
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
<!-- <p class="tableInline">{{scope.row.carrier}}{{scope.row.flightno}}</p>-->
|
|
|
<!-- <p class="tableInline">{{scope.row.flightdate}}</p>-->
|
|
|
<!-- <p class="tableInline">{{scope.row.originstation}}-{{scope.row.destinationstation}}</p>-->
|
|
|
<!-- </template>-->
|
|
|
<!-- </el-table-column>-->
|
|
|
<el-table-column label="运单号" width="200" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<p class="tableInline">{{scope.row.awba}}</p>
|
|
|
<p class="tableInline" v-if="scope.row.awbh !==null">{{scope.row.awbh}}</p>
|
|
|
<span class="tableInline" v-if="scope.row.awbh !==''">{{scope.row.awbh}}</span>
|
|
|
<span class="tableInline" v-else>{{scope.row.awba}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="运单件数/重量" width="100" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.piece}}
|
|
|
{{scope.row.awbinfo.pcs}}/{{scope.row.awbinfo.weight}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="预配件数/重量" width="100" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.weight}}
|
|
|
{{scope.row.piece}}/{{scope.row.weight}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="货物描述" width="120" align="center">
|
...
|
...
|
@@ -87,67 +93,75 @@ |
|
|
{{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 ==='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="回执信息" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
{{scope.row.ext5}}
|
|
|
<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" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="success" @click="handleEdit(scope.row)">编辑运单</el-button>
|
|
|
<el-button size="mini" type="success" v-if="scope.row.awbh ===null"
|
|
|
<el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button>
|
|
|
<el-button size="mini" type="success" @click="handleEdit(scope.row)" >编辑</el-button>
|
|
|
<el-button size="mini" type="success" v-if="scope.row.awbh ===''"
|
|
|
@click="handleAddAwbh(scope.row)">新增分单
|
|
|
</el-button>
|
|
|
<el-button size="mini" type="primary" @click="handleAwbSend(scope.row)"
|
|
|
:disabled="scope.row.status !== '01'">发舱单报
|
|
|
:disabled="addStatus(scope.row.status)">发送预配舱单报
|
|
|
</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="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>-->
|
|
|
<el-button size="mini" type="warning" @click="handleAwbStatus(scope.row)"
|
|
|
:disabled="scope.row.status === '01'">更改状态
|
|
|
:disabled="scope.row.status === '22'">更改状态
|
|
|
</el-button>
|
|
|
<el-button size="mini" type="danger" @click="handleSendDelete(scope.row)"
|
|
|
:disabled="deleteStatus(scope.row.status)">发送预配删除报</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</tree-table>
|
|
|
</el-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-dialog :title="dialogMap[dialogStatus]" :visible.sync="dialogFormVisible" width="85%">
|
|
|
<el-form ref="preFormData" :model="preModel" :rules="preRoles" label-position="right"
|
|
|
label-width="120px" class="el-dialog-div">
|
|
|
<div class="grid-content content">
|
...
|
...
|
@@ -159,7 +173,7 @@ |
|
|
<el-input :disabled="dialogStatus !== 'create'" v-model="awba" clearable/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="7.5" v-if="dialogStatus === 'addAwbh'">
|
|
|
<el-col :span="7.5" v-if="fenStatus === 'addAwbh'">
|
|
|
<el-form-item label="分单号" prop="awbh">
|
|
|
<el-input v-model="awbh" clearable/>
|
|
|
</el-form-item>
|
...
|
...
|
@@ -171,17 +185,17 @@ |
|
|
<el-row>
|
|
|
<el-col :span="7.5">
|
|
|
<el-form-item label="承运人" prop="carrier">
|
|
|
<el-input v-model="carrier" :disabled="dialogStatus === 'addAwbh'" clearable/>
|
|
|
<el-input v-model="carrier" :disabled="fenStatus === 'addAwbh'" clearable/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="7.5">
|
|
|
<el-form-item label="航班号" prop="flightno">
|
|
|
<el-input v-model="flightno" :disabled="dialogStatus === 'addAwbh'" clearable/>
|
|
|
<el-input v-model="flightno" :disabled="fenStatus === 'addAwbh'" clearable/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="7.5">
|
|
|
<el-form-item label="航班日期" prop="flightdate">
|
|
|
<el-date-picker :disabled="dialogStatus === 'addAwbh'"
|
|
|
<el-date-picker :disabled="fenStatus === 'addAwbh'"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
v-model="preModel.flightdate" align="right"
|
|
|
type="date" placeholder="请输入航班日期" clearable/>
|
...
|
...
|
@@ -192,12 +206,34 @@ |
|
|
<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="请选择起始站"
|
|
|
:remote-method="remoteMethodAirport"
|
|
|
allow-create remote
|
|
|
v-model="originstation"
|
|
|
:loading="airportLoading">
|
|
|
<el-option v-for="item in airportCode"
|
|
|
:key="item.airportid" :label="item.airportid"
|
|
|
:value="item.airportid" :disabled="fenStatus === '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-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 remote
|
|
|
v-model="destinationstation" :remote-method="remoteMethodAirport">
|
|
|
<el-option v-for="item in airportCode"
|
|
|
:key="item.airportid" :label="item.airportid"
|
|
|
:value="item.airportid" :disabled="fenStatus === '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>
|
...
|
...
|
@@ -264,13 +300,13 @@ |
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="7.5" v-if="dialogStatus !=='addAwbh'">
|
|
|
<el-col :span="7.5" v-if="fenStatus !=='addAwbh'">
|
|
|
<el-form-item label="预配件数" prop="piece">
|
|
|
<el-input v-model="preModel.piece" clearable/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8" v-if="dialogStatus ==='addAwbh'">
|
|
|
<el-col :span="13">
|
|
|
<el-col :span="8" v-if="fenStatus ==='addAwbh'">
|
|
|
<el-col :span="14">
|
|
|
<el-form-item label="预配件数" prop="piece">
|
|
|
<el-input v-model="preModel.piece" clearable/>
|
|
|
</el-form-item>
|
...
|
...
|
@@ -279,13 +315,14 @@ |
|
|
<span>剩余件数:{{awbPiece}}</span>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="7.5" v-if="dialogStatus !=='addAwbh'">
|
|
|
|
|
|
<el-col :span="7.5" v-if="fenStatus !=='addAwbh'">
|
|
|
<el-form-item label="预配重量" prop="weight">
|
|
|
<el-input v-model="preModel.weight" clearable/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8" v-if="dialogStatus ==='addAwbh'">
|
|
|
<el-col :span="13">
|
|
|
<el-col :span="8" v-if="fenStatus ==='addAwbh'">
|
|
|
<el-col :span="14">
|
|
|
<el-form-item label="预配重量" prop="weight">
|
|
|
<el-input v-model="preModel.weight" clearable/>
|
|
|
</el-form-item>
|
...
|
...
|
@@ -306,24 +343,28 @@ |
|
|
<el-row>
|
|
|
<el-col :span="7.5">
|
|
|
<el-form-item label="关区代码" prop="customcode">
|
|
|
<el-select v-model="preModel.customcode" class="filter-item" placeholder="请选择关区代码"
|
|
|
:disabled="dialogStatus === 'addAwbh'">
|
|
|
<el-option v-for="item in customcodeList" :key="item.value" :label="item.label"
|
|
|
:value="item.value"></el-option>
|
|
|
<el-select v-model="preModel.customcode" placeholder="请选择关区代码"
|
|
|
filterable clearable :remote-method="remoteMethodCustomCode" :loading="customLoading" remote
|
|
|
:disabled="fenStatus === 'addAwbh'">
|
|
|
<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>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="7.5">
|
|
|
<el-form-item label="付费方式" prop="awbinfo.collected">
|
|
|
<el-select v-model="preModel.awbinfo.collected" class="filter-item" placeholder="付费方式">
|
|
|
<el-form-item label="付费方式" prop="awbinfo.paymodel">
|
|
|
<el-select v-model="preModel.awbinfo.paymodel" class="filter-item" placeholder="付费方式">
|
|
|
<el-option
|
|
|
v-for="item in payTypes"
|
|
|
:key="item.value"
|
...
|
...
|
@@ -399,8 +440,9 @@ |
|
|
:loading="listLoading"
|
|
|
v-model="shprcountyr"
|
|
|
filterable
|
|
|
allow-create
|
|
|
remote
|
|
|
placeholder="请选择" clearable>
|
|
|
placeholder="请选择" clearable>目的站
|
|
|
<el-option
|
|
|
v-for="item in countryOption"
|
|
|
:key="item.value"
|
...
|
...
|
@@ -477,6 +519,7 @@ |
|
|
:listLoading="listLoading"
|
|
|
v-model="cnscountyr"
|
|
|
filterable
|
|
|
allow-create
|
|
|
remote
|
|
|
placeholder="请选择" clearable>
|
|
|
<el-option
|
...
|
...
|
@@ -520,16 +563,40 @@ |
|
|
<!--</el-form-item>-->
|
|
|
<!--</el-col>-->
|
|
|
</el-row>
|
|
|
<div v-if="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">
|
|
|
<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>
|
...
|
...
|
@@ -559,6 +626,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}}
|
...
|
...
|
@@ -566,15 +638,45 @@ |
|
|
</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>
|
|
|
import treeTable from '@/components/TreeTable'
|
|
|
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 util from '@/common/js/util'
|
|
|
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 +725,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,10 +750,15 @@ |
|
|
{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,
|
|
|
fenStatus:undefined,
|
|
|
dialogTableVisible: false,
|
|
|
dialogDeleteVisble: false,
|
|
|
listLoading: false,
|
|
|
customLoading:false,
|
|
|
airportLoading:false,
|
|
|
disabledStatus: false,
|
|
|
dialogFormVisible: false,
|
|
|
countryOption: [],
|
...
|
...
|
@@ -670,9 +778,12 @@ |
|
|
customcode: [{required: true, message: '关区代码必须选择', trigger: 'change'}],
|
|
|
awba: [{required: true, trigger: 'blur', validator: validatorAwb}],
|
|
|
awbh: [{required: true, trigger: 'blur', validator: validatorAwbh}],
|
|
|
'awbinfo.collected': [{required: true, message: '付款方式必选', trigger: 'change'}],
|
|
|
'awbinfo.paymodel': [{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'}],
|
...
|
...
|
@@ -686,6 +797,7 @@ |
|
|
'awbinfo.pcs': [{required: true, trigger: 'change', validator: validatorNums}],
|
|
|
},
|
|
|
preModel: {
|
|
|
uuid: undefined,
|
|
|
awba: undefined,
|
|
|
awbh: undefined,
|
|
|
customcode: undefined,
|
...
|
...
|
@@ -703,6 +815,9 @@ |
|
|
uldNo: undefined,
|
|
|
status: undefined,
|
|
|
ex5: undefined,
|
|
|
reason: undefined,
|
|
|
contactName: undefined,
|
|
|
contactTel: undefined,
|
|
|
awbinfo: {
|
|
|
pcs: undefined,
|
|
|
weight: undefined,
|
...
|
...
|
@@ -731,7 +846,7 @@ |
|
|
cargonm: undefined,
|
|
|
sairportid: undefined,
|
|
|
dest1city: undefined,
|
|
|
by1: undefined,
|
|
|
by1: '',
|
|
|
dest1: undefined,
|
|
|
by2: undefined,
|
|
|
dest2: undefined,
|
...
|
...
|
@@ -739,12 +854,30 @@ |
|
|
dest3: undefined,
|
|
|
eairportid: undefined,
|
|
|
csgcustomerid: undefined,
|
|
|
collected: '0',
|
|
|
paymodel: '0',
|
|
|
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: []
|
|
|
detailData: [],
|
|
|
rows:[]
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
...
|
...
|
@@ -757,20 +890,24 @@ |
|
|
},
|
|
|
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()
|
|
|
let username = JSON.parse(sessionStorage.getItem('user')).username
|
|
|
if(username === 'admin'){
|
|
|
if (username === 'admin') {
|
|
|
this.isAdmin = true
|
|
|
}
|
|
|
},
|
|
|
|
|
|
// 验证
|
|
|
computed: {
|
|
|
awba: {
|
|
|
get: function () {
|
...
|
...
|
@@ -930,10 +1067,10 @@ |
|
|
},
|
|
|
by1: {
|
|
|
get: function () {
|
|
|
return this.preModel.awbinfo.by1
|
|
|
return util.checkNull(this.preModel.awbinfo.by1)?this.preModel.awbinfo.by1:''
|
|
|
},
|
|
|
set: function (val) {
|
|
|
this.preModel.awbinfo.by1 = val.toUpperCase().trim()
|
|
|
this.preModel.awbinfo.by1 = util.checkNull(val)?val.toUpperCase().trim():''
|
|
|
}
|
|
|
},
|
|
|
dest1: {
|
...
|
...
|
@@ -981,24 +1118,26 @@ |
|
|
// >>>>>>>>>>>>>>>>获取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
|
|
|
console.log("主单号不为空时打印")
|
|
|
console.log(res.data)
|
|
|
if (res.data.dataList.length > 0) {
|
|
|
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(() => {
|
...
|
...
|
@@ -1006,7 +1145,6 @@ |
|
|
}, 1500)
|
|
|
})
|
|
|
}
|
|
|
|
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>重置实体<<<<<<<<<<<<<<<<<<
|
|
|
restModel() {
|
...
|
...
|
@@ -1065,19 +1203,19 @@ |
|
|
dest3: undefined,
|
|
|
eairportid: undefined,
|
|
|
csgcustomerid: undefined,
|
|
|
collected: '0',
|
|
|
paymodel: '0',
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>新增主单<<<<<<<<<<<<<<<<<<
|
|
|
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.destinationstation
|
|
|
this.preModel.customcode = this.preQuery.customcode
|
|
|
this.dialogStatus = 'create'
|
|
|
this.dialogFormVisible = true
|
|
|
this.$nextTick(() => {
|
...
|
...
|
@@ -1105,19 +1243,20 @@ |
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>搜索<<<<<<<<<<<<<<<<<<
|
|
|
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,
|
|
|
orpertype: row.orpertype,
|
|
|
awba: row.awba,
|
|
|
awbh: row.awbh,
|
|
|
messageType: 'MT2201'
|
...
|
...
|
@@ -1128,13 +1267,46 @@ |
|
|
})
|
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>发送舱单报<<<<<<<<<<<<<<<<<<
|
|
|
handleAwbSend() {
|
|
|
|
|
|
handleAwbSend(row) {
|
|
|
delete row.parent
|
|
|
delete row.children
|
|
|
this.rows = row;
|
|
|
this.$confirm("是否发送", "确认消息", {
|
|
|
distinguishCancelAndClose: true,
|
|
|
confirmButtonText: '发送',
|
|
|
cancelButtonText: '取消'
|
|
|
}).then(() => {
|
|
|
if (row.awbh === null) {
|
|
|
row.awbh = ''
|
|
|
}
|
|
|
sendCreateMt2201(row).then(res => {
|
|
|
if (res.data.count > 0) {
|
|
|
Message.success(res.data.respMessage)
|
|
|
this.rows.status="23";
|
|
|
this.rows.ext5="新增报发送成功";
|
|
|
} else {
|
|
|
Message.error(res.data.respMessage)
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
// 发送舱单报 按钮自灰
|
|
|
addStatus(status){
|
|
|
if(status=='23' || status=='24'||status=='25'){
|
|
|
return true;
|
|
|
}else if(status=='22' ) {
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>更新运单数据<<<<<<<<<<<<<<<<<<
|
|
|
handleEdit(row) {
|
|
|
console.log(row)
|
|
|
this.preModel = Object.assign({}, row)
|
|
|
this.dialogStatus = 'update'
|
|
|
if (row.awbh !== undefined && row.awbh !== ""){
|
|
|
this.fenStatus = 'addAwbh'
|
|
|
}
|
|
|
|
|
|
this.dialogFormVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.preFormData.clearValidate()
|
...
|
...
|
@@ -1158,14 +1330,116 @@ |
|
|
})
|
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>发送修改报<<<<<<<<<<<<<<<<<<
|
|
|
handleAwbEdit() {
|
|
|
|
|
|
handleAwbEdit(row) {
|
|
|
delete row.parent
|
|
|
delete row.children
|
|
|
this.rows = row;
|
|
|
this.preModel = Object.assign({}, row)
|
|
|
this.dialogStatus = 'sendUpdate'
|
|
|
this.dialogFormVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.preFormData.clearValidate()
|
|
|
})
|
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>保存并发送<<<<<<<<<<<<<<<<<<
|
|
|
handleSaveAndSend() {
|
|
|
// 发送修改报自灰
|
|
|
editStatus(status){
|
|
|
if(status=='23' || status=='24'||status=='25'){
|
|
|
return true;
|
|
|
}else if(status=='25' ) {
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
sendUpdate(){
|
|
|
this.respModel.reason = this.preModel.reason
|
|
|
this.respModel.contactName = this.preModel.contactName
|
|
|
this.respModel.contactTel = this.preModel.contactTel
|
|
|
//
|
|
|
delete this.preModel._expanded
|
|
|
delete this.preModel._level
|
|
|
delete this.preModel._marginLeft
|
|
|
delete this.preModel._show
|
|
|
delete this.preModel._width
|
|
|
|
|
|
const reason = this.preModel.reason
|
|
|
const contactName = this.preModel.contactName
|
|
|
const contactTel = this.preModel.contactTel
|
|
|
|
|
|
this.$refs.preFormData.validate(valid =>{
|
|
|
if(valid){
|
|
|
delete this.preModel.reason
|
|
|
delete this.preModel.contactName
|
|
|
delete this.preModel.contactTel
|
|
|
const map = {
|
|
|
'mt2201': this.preModel,
|
|
|
'reason' : reason,
|
|
|
'contactName': contactName,
|
|
|
'contactTel': contactTel,
|
|
|
}
|
|
|
sendUpdateMt2201(map).then(res =>{
|
|
|
if(res.data.count >0){
|
|
|
Message.success(res.data.respMessage)
|
|
|
this.rows.status="25";
|
|
|
this.rows.ext5="修改报发送成功";
|
|
|
this.dialogFormVisible = false
|
|
|
}else {
|
|
|
Message.error(res.data.respMessage)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
// >>>>>>>>>>>>>>>>发送删除报<<<<<<<<<<<<<<<<<<
|
|
|
handleSendDelete(row) {
|
|
|
this.respModel = {
|
|
|
carrier: undefined,
|
|
|
reason: undefined,
|
|
|
contactName: undefined,
|
|
|
contactTel: undefined,
|
|
|
content: '',
|
|
|
flightNo: undefined,
|
|
|
awba: undefined,
|
|
|
customCode: undefined,
|
|
|
flightDate: undefined,
|
|
|
awbh: ''
|
|
|
}
|
|
|
this.rows = row;
|
|
|
this.dialogDeleteVisble = true
|
|
|
this.respModel.awba = row.awba
|
|
|
this.respModel.flightNo = row.flightno
|
|
|
this.respModel.customCode = row.customcode
|
|
|
this.respModel.awbh = row.awbh
|
|
|
this.respModel.flightDate = row.flightdate
|
|
|
this.respModel.carrier = row.carrier
|
|
|
this.$nextTick(()=>{
|
|
|
this.$refs.sendDeleteForm.clearValidate()
|
|
|
})
|
|
|
},
|
|
|
// 发送删除报按钮自灰
|
|
|
deleteStatus(status){
|
|
|
if(status=='23' || status=='24'||status=='25'){
|
|
|
return true;
|
|
|
}else if(status=='24' ) {
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
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.rows.status="24";
|
|
|
this.rows.ext5="删除报发送成功";
|
|
|
}else {
|
|
|
Message.error(res.data.respMessage)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//>>>>>>>>>>>>>>>>删除运单<<<<<<<<<<<<<<<<<<
|
|
|
handleAwbDelete(row) {
|
|
|
delete row.parent
|
|
|
delete row.children
|
...
|
...
|
@@ -1199,27 +1473,28 @@ |
|
|
},
|
|
|
// >>>>>>>>>>>>>>>>更改运单状态<<<<<<<<<<<<<<<<<<
|
|
|
handleAwbStatus(row) {
|
|
|
delete row.parent
|
|
|
delete row.children
|
|
|
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({
|
...
|
...
|
@@ -1234,6 +1509,7 @@ |
|
|
handleAddAwbh(row) {
|
|
|
this.restModel()
|
|
|
const template = Object.assign({}, row) // copy obj
|
|
|
this.preModel.uuid = template.uuid
|
|
|
this.preModel.awba = template.awba
|
|
|
this.preModel.flightdate = template.flightdate
|
|
|
this.preModel.flightno = template.flightno
|
...
|
...
|
@@ -1242,18 +1518,18 @@ |
|
|
this.preModel.carrier = template.carrier
|
|
|
this.preModel.awbinfo.shprcountyr = template.awbinfo.shprcountyr
|
|
|
this.preModel.originstation = template.originstation
|
|
|
this.preModel.awbinfo.collected = template.awbinfo.collected
|
|
|
this.preModel.awbinfo.paymodel = template.awbinfo.paymodel
|
|
|
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
|
...
|
...
|
@@ -1271,14 +1547,14 @@ |
|
|
this.awbWeight = res.data.dataList[0].weight - residueWeight
|
|
|
}
|
|
|
})
|
|
|
this.dialogStatus = 'addAwbh'
|
|
|
this.dialogStatus = 'create'
|
|
|
this.fenStatus = 'addAwbh'
|
|
|
this.dialogFormVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.preFormData.clearValidate()
|
|
|
})
|
|
|
},
|
|
|
|
|
|
//获取城市列表
|
|
|
//获取国家列表
|
|
|
getCountryList() {
|
|
|
getCountry().then(res => {
|
|
|
this.countryList = res.data.dataList
|
...
|
...
|
@@ -1294,22 +1570,44 @@ |
|
|
.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 = []
|
|
|
}
|
|
|
},
|
|
|
remoteMethodAirport(query){
|
|
|
this.airportCode = []
|
|
|
if (query !== '') {
|
|
|
this.airportLoading = true
|
|
|
getAirportCode({airportid: query}).then(res => {
|
|
|
if(res !== null){
|
|
|
setTimeout(() => {
|
|
|
this.airportLoading = false
|
|
|
this.airportCode = res.data.data
|
|
|
}, 200)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
this.airportCode = []
|
|
|
}
|
|
|
},
|
|
|
|
|
|
|
|
|
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 = []
|
|
|
}
|
|
|
},
|
|
|
|
|
|
handleAddpre() {
|
|
|
const row = {
|
|
|
'messageType': 'MT2201'
|
...
|
...
|
@@ -1318,7 +1616,8 @@ |
|
|
},
|
|
|
|
|
|
handelBackStep() {
|
|
|
this.$router.push({name: '出港航班信息', params: {scopeRow: this.preModel}})
|
|
|
this.preQuery.messageType = 'MT2201'
|
|
|
this.$router.push({name: '出港航班信息', params: {scopeRow: this.preQuery}})
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|