作者 shenhailong

整套出港业务以及收发货人 样式优化

修改 跳转页面数据 不刷新问题
... ... @@ -4,13 +4,15 @@
<el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
<el-form :inline="true" :model="filters">
<el-form-item>
<el-input size="small" v-model="filters.companyName" placeholder="公司名称"></el-input>
<el-input size="small" v-model="filters.companyName" placeholder="公司名称">
<template slot="prepend">公司名称</template>
</el-input>
</el-form-item>
<el-form-item>
<el-button type="warning" style="width:150px" size="small" icon="el-icon-plus" v-on:click="getConsignee()">查询</el-button>
<el-button type="warning" style="width:150px" icon="el-icon-plus" v-on:click="getConsignee()">查&emsp;&emsp;询</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" style="width:150px" size="small" icon="el-icon-plus" @click="companyAdd">新增</el-button>
<el-button type="primary" style="width:150px" icon="el-icon-plus" @click="companyAdd">新&emsp;&emsp;增</el-button>
</el-form-item>
</el-form>
</el-col>
... ... @@ -35,8 +37,8 @@
<!-- </el-table-column>-->
<el-table-column label="操作" min-width="150">
<template slot-scope="scope">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDel(scope.$index, scope.row)">删除</el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(scope.$index, scope.row)">编&emsp;&emsp;辑</el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDel(scope.$index, scope.row)">删&emsp;&emsp;除</el-button>
</template>
</el-table-column>
</el-table>
... ... @@ -135,7 +137,8 @@
<script>
import { getList, remove, add, edit} from '../../api/consigner/consignee';
import loginUserInfo from '../../api/base';
import {loginedUserInfo} from "../../api/user";
export default {
data() {
... ... @@ -231,7 +234,7 @@
pageSize: this.pageSize,
limitSize: this.limitSize,
companyName: this.filters.companyName,
enterpriseId: loginUserInfo.companyId
enterpriseId: loginedUserInfo().companyId
};
this.listLoading = true;
getList(para).then((res) => {
... ... @@ -402,8 +405,8 @@
},
//设置 用户id 企业id
userId(){
this.coneeForm.userId = loginUserInfo.userId;
this.coneeForm.enterpriseId = loginUserInfo.companyId;
this.coneeForm.userId = loginedUserInfo().userId;
this.coneeForm.enterpriseId = loginedUserInfo().companyId;
}
},
... ...
... ... @@ -4,13 +4,15 @@
<el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
<el-form :inline="true" :model="filters">
<el-form-item>
<el-input size="small" v-model="filters.companyName" placeholder="公司名称"></el-input>
<el-input size="small" v-model="filters.companyName" placeholder="公司名称">
<template slot="prepend">公司名称</template>
</el-input>
</el-form-item>
<el-form-item>
<el-button type="warning" style="width:150px" size="small" icon="el-icon-plus" v-on:click="getConsignee()">查询</el-button>
<el-button type="warning" style="width:150px" icon="el-icon-plus" v-on:click="getConsignee()">查&emsp;&emsp;询</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" style="width:150px" size="small" icon="el-icon-plus" @click="companyAdd">新增</el-button>
<el-button type="primary" style="width:150px" icon="el-icon-plus" @click="companyAdd">新&emsp;&emsp;增</el-button>
</el-form-item>
</el-form>
</el-col>
... ... @@ -35,8 +37,8 @@
<!-- </el-table-column>-->
<el-table-column label="操作" min-width="150">
<template slot-scope="scope">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDel(scope.$index, scope.row)">删除</el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleEdit(scope.$index, scope.row)">编&emsp;&emsp;辑</el-button>
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDel(scope.$index, scope.row)">删&emsp;&emsp;除</el-button>
</template>
</el-table-column>
</el-table>
... ... @@ -135,7 +137,7 @@
<script>
import { getList, remove, add, edit} from '../../api/consigner/consigner';
import loginUserInfo from '../../api/base';
import {loginedUserInfo} from "../../api/user";
export default {
data() {
... ... @@ -231,7 +233,7 @@
pageSize: this.pageSize,
limitSize: this.limitSize,
companyName: this.filters.companyName,
enterpriseId: loginUserInfo.companyId
enterpriseId: loginedUserInfo().companyId
};
this.listLoading = true;
getList(para).then((res) => {
... ... @@ -402,8 +404,8 @@
},
//设置 用户id 企业id
userId(){
this.conerForm.userId = loginUserInfo.userId;
this.conerForm.enterpriseId = loginUserInfo.companyId;
this.conerForm.userId = loginedUserInfo().userId;
this.conerForm.enterpriseId = loginedUserInfo().companyId;
}
},
... ...
... ... @@ -138,24 +138,24 @@
</el-tag>
</template>
</el-table-column>
<el-table-column prop="operation" fixed="right" label="操作" align="center" width="285">
<el-table-column prop="operation" fixed="right" label="操作" align="center" width="350">
<template slot-scope="scope">
<el-row type="flex" justify="space-between">
<!-- <el-button type="success" @click="handleEdit(scope.row)">编辑运单</el-button>-->
<el-button @click="handleSendDesc(scope.row)">收发明细</el-button>
<el-button type="success" v-if="scope.row.awbh ===''"
<el-button icon="el-icon-view" @click="handleSendDesc(scope.row)">收发明细</el-button>
<el-button type="success" icon="el-icon-plus" v-if="scope.row.awbh ===''"
@click="handleAddAwbh(scope.row)">新增分单
</el-button>
<el-button type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button>
<el-button type="danger" icon="el-icon-delete" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button>
</el-row>
<el-row type="flex" justify="space-between">
<el-button type="primary" @click="handleSendAwb(scope.row)"
<el-button type="primary" icon="el-icon-plus" @click="handleSendAwb(scope.row)"
:disabled="scope.row.status ==='23'">运抵申报
</el-button>
<el-button type="warning" @click="handleAwbStatus(scope.row)"
<el-button type="warning" icon="el-icon-edit" @click="handleAwbStatus(scope.row)"
:disabled="scope.row.status ==='22'">更改状态
</el-button>
<el-button type="danger" @click="handleSendDelete(scope.row)"
<el-button type="danger" icon="el-icon-delete" @click="handleSendDelete(scope.row)"
:disabled="scope.row.status ==='24'">删除申报
</el-button>
</el-row>
... ... @@ -164,11 +164,11 @@
</el-table>
<div class="btnFoot">
<el-row>
<el-button icon="el-icon-document" type="success" v-if="arriveQuery.flightno !==undefined || arriveData.length>0"
@click="handelAddArriveInfo">新增出港运抵
<el-button icon="el-icon-plus" type="success" v-if="arriveQuery.flightno !==undefined || arriveData.length>0"
@click="handelAddArriveInfo">新增运抵
</el-button>
<el-button icon="el-icon-back" type="primary" v-if="arriveQuery.flightno !== undefined || arriveData.length>0"
@click="handelBackStep">返回
@click="handelBackStep">返&emsp;&emsp;
</el-button>
</el-row>
</div>
... ... @@ -531,6 +531,19 @@
this.arriveQuery.originstation = this.$route.params.flightData.originstation
this.arriveQuery.destinationstation = this.$route.params.flightData.destinationstation
this.getList()
}else {
this.arriveQuery= {
pageSize: 1,
limitSize: 10,
awba: undefined,
carrier: undefined,
flightno: undefined,
flightdate: undefined,
originstation: undefined,
destinationstation: undefined,
customcode: undefined,
messageType: undefined,
}
}
let username = loginedUserInfo().username
if (username === 'admin') {
... ...
... ... @@ -7,7 +7,7 @@
<el-date-picker v-model="listQuery.flightDate" clearable type="date" style="width: 270px;margin-right: 50px"
placeholder="航班日期"
class="filter-item" value-format="yyyy-MM-dd"></el-date-picker>
<el-button type="warning" style="width:150px" size="medium" icon="el-icon-search" @click="handleSearch">查询</el-button>
<el-button type="warning" style="width:150px" icon="el-icon-search" @click="handleSearch">查&emsp;&emsp;询</el-button>
</div>
<el-table :data="flightData" v-loading="listLoading" stripe
style="border-radius: 10px 10px 0px 0px;line-height: 25px;" stripe
... ...
... ... @@ -106,7 +106,7 @@
airportCode: [],
};
},
created() {
activated() {
if (this.$route.params.scopeRow !== undefined) {
if (this.$route.params.scopeRow.carrier === undefined) {
this.flight.flightno = this.$route.params.scopeRow.flightno
... ... @@ -185,7 +185,7 @@
} else {
this.flight.awba = undefined
}
console.log("-----------"+this.flight.messageType);
if (this.flight.messageType === "MT5202") {
this.$router.push({name: '出港理货', params: {flightData: this.flight}});
}
... ...
... ... @@ -38,9 +38,9 @@
</div>
</el-col>
<div class="el-btn">
<el-button type="primary" size="mini" @click="handleSearch">查询</el-button>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleSearch">查&emsp;&emsp;询</el-button>
<el-button v-if="loadingQuery.flightno === undefined && loadingData.length <1"
type="primary" size="mini" @click="handleAddLoading">新增装载
type="success" icon="el-icon-plus" size="mini" @click="handleAddLoading">新增装载
</el-button>
</div>
</div>
... ... @@ -59,6 +59,16 @@
<a type="text" style="color: #409eff;text-decoration: underline" class="tableInline" @click="handleEdit(scope.row)">{{scope.row.awba}}</a>
</template>
</el-table-column>
<el-table-column label="航班号" width="100" align="center">
<template slot-scope="scope">
<span>{{scope.row.carrier}}{{scope.row.flightno}}</span>
</template>
</el-table-column>
<el-table-column label="航班日期" width="130" align="center">
<template slot-scope="scope">
<span>{{scope.row.flightdate}}</span>
</template>
</el-table-column>
<el-table-column label="运载件数" width="70" align="center">
<template slot-scope="scope">
<span>{{scope.row.lodingpiece}}</span>
... ... @@ -69,7 +79,7 @@
<span>{{scope.row.lodingweight}}</span>
</template>
</el-table-column>
<el-table-column label="货物描述" width="120" align="center">
<el-table-column label="货物描述" width="120" align="center" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{scope.row.goodsname}}</span>
</template>
... ... @@ -103,46 +113,52 @@
<span v-if="scope.row.status ==='25'">已发送修改报</span>
</template>
</el-table-column>
<el-table-column label="回执信息" width="270" align="center">
<el-table-column label="回执信息" width="220" align="center" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{scope.row.ext5}}</span>
<el-tag v-if="scope.row.status=='01' || scope.row.status=='11'" type="success">
{{scope.row.ext5}}
</el-tag>
<el-tag v-else-if="scope.row.status=='02' || scope.row.status=='03'" type="warning">
{{scope.row.ext5}}
</el-tag>
<el-tag v-else-if="scope.row.status=='12' || scope.row.status=='13'" type="danger">
{{scope.row.ext5}}
</el-tag>
<el-tag v-else>
{{scope.row.ext5}}
</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" align="center" fixed="right">
<el-table-column label="操作" align="center" width="330px" fixed="right">
<template slot-scope="scope">
<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="primary" @click="handleSendAwb(scope.row)"
:disabled="scope.row.status ==='23'">发送出港装载报
<el-row type="flex" justify="space-between">
<el-button size="mini" icon="el-icon-view" @click="handleSend(scope.row)">收发明细</el-button>
<el-button size="mini" icon="el-icon-edit" type="warning" @click="handleAwbStatus(scope.row)"
:disabled="scope.row.status ==='22'">更改状态
</el-button>
<br><br>
<el-button size="mini" type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单
<el-button size="mini" icon="el-icon-delete" 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-row>
<el-row type="flex" justify="space-between">
<el-button size="mini" type="primary" icon="el-icon-plus" @click="handleSendAwb(scope.row)"
:disabled="scope.row.status ==='23'">装载申报
</el-button>
<el-button size="mini" type="danger" @click="handleSendDelete(scope.row)"
:disabled="scope.row.status ==='24'">发送删除报
<el-button size="mini" icon="el-icon-delete" type="danger" @click="handleSendDelete(scope.row)"
:disabled="scope.row.status ==='24'">删除申报
</el-button>
</el-row>
</template>
</el-table-column>
</el-table>
<div class="btnFoot">
<el-row>
<el-button type="primary" size="mini"
<el-button type="success" icon="el-icon-plus" size="mini"
v-if="loadingQuery.flightno !== undefined || loadingData.length >0"
@click="handelAddLoadingInfo">新增出港装载
@click="handelAddLoadingInfo">新增装载
</el-button>
<el-button type="primary" size="mini"
<el-button type="primary" icon="el-icon-back" size="mini"
v-if="loadingQuery.flightno !== undefined || loadingData.length>0"
@click="handelBackStep">返回
@click="handelBackStep">返&emsp;&emsp;
</el-button>
</el-row>
</div>
... ... @@ -541,6 +557,19 @@
this.loadingQuery.originstation = this.$route.params.flightData.originstation
this.loadingQuery.destinationstation = this.$route.params.flightData.destinationstation
this.getList()
}else {
this.loadingQuery= {
pageSize: 1,
limitSize: 10,
awba: undefined,
carrier: undefined,
flightno: undefined,
flightdate: undefined,
originstation: undefined,
destinationstation: undefined,
customcode: undefined,
messageType: undefined
}
}
let username = loginedUserInfo().username
if (username === 'admin') {
... ...
... ... @@ -18,8 +18,8 @@
<el-select v-model="listQuery.customStatus" clearable class="filter-item" placeholder="请选择海关状态" style="width: 200px;margin-right: 10px">
<el-option v-for="item in customStatusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
<el-button type="warning" style="width:150px" size="medium" icon="el-icon-search" @click="handleSearch">查询</el-button>
<el-button type="primary" style="width:150px" size="medium" icon="el-icon-search"
<el-button type="warning" style="width:150px" icon="el-icon-search" @click="handleSearch">查&emsp;&emsp;询</el-button>
<el-button type="primary" style="width:150px" icon="el-icon-search"
@click="handleUpdateStatus">批量修改状态</el-button>
</div>
<div class="midSpan">
... ... @@ -116,10 +116,18 @@
</el-table-column>
<el-table-column label="回执内容" align="center" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{ scope.row.customText }}</span>
<!--<div>-->
<!--<el-progress :percentage="scope.row.customComplate" :status="scope.row.status | statusFilter"/>-->
<!--</div>-->
<el-tag v-if="scope.row.status=='01' || scope.row.status=='11'" type="success">
{{scope.row.customText}}
</el-tag>
<el-tag v-else-if="scope.row.status=='02' || scope.row.status=='03'" type="warning">
{{scope.row.customText}}
</el-tag>
<el-tag v-else-if="scope.row.status=='12' || scope.row.status=='13'" type="danger">
{{scope.row.customText}}
</el-tag>
<el-tag v-else>
{{scope.row.customText}}
</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" width="180px" align="center">
... ... @@ -220,7 +228,6 @@
},
handleUpdate(row){
console.log(row.messageType )
if(row.messageType === 'MT2201'){
this.$router.push({name: '出港航班信息', params: {scopeRow: row}})
}
... ...
... ... @@ -15,7 +15,7 @@
<div class="grid-content">
<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>-->
<span class="titleSpan">航段:{{this.preQuery.originstation}}-{{this.preQuery.destinationstation}}</span>
</div>
</el-col>
</div>
... ... @@ -38,21 +38,21 @@
</div>
</el-col>
<div class="grid-content el-btn">
<el-button type="warning" style="width:150px" icon="el-icon-search" @click="handleSerach">查询</el-button>
<el-button v-if="preQuery.flightno === undefined && preData.length<1" type="primary"
<el-button type="warning" style="width:150px" icon="el-icon-search" @click="handleSerach">查&emsp;&emsp;询</el-button>
<el-button v-if="preQuery.flightno === undefined && preData.length<1" type="success"
style="width:150px" icon="el-icon-plus"
@click="handleAddpre">新增预配舱单
</el-button>
<el-button @click="handleAwbSend('')" v-if="batchChooseFlag" style="width:150px" type="primary">
批量发送申报
<el-button icon="el-icon-plus" @click="handleAwbSend('')" v-if="batchChooseFlag" style="width:150px" type="primary">
批量申报
</el-button>
<el-button @click="handleAwbEdit('')" v-if="batchChooseFlag" style="width:150px" type="success">
批量发送修改申报
<el-button icon="el-icon-edit" @click="handleAwbEdit('')" v-if="batchChooseFlag" style="width:150px" type="success">
批量修改申报
</el-button>
<el-button @click="handleSendDelete('')" v-if="batchChooseFlag" style="width:150px" type="danger">
批量发送删除申报
<el-button icon="el-icon-delete" @click="handleSendDelete('')" v-if="batchChooseFlag" style="width:150px" type="danger">
批量删除申报
</el-button>
<el-button @click="download" style="width:150px" type="success">
<el-button icon="el-icon-download" @click="download" style="width:150px" type="success">
模板下载
</el-button>
<el-upload
... ... @@ -117,7 +117,7 @@
{{scope.row.weight}}
</template>
</el-table-column>
<el-table-column label="货物描述" width="120" align="center">
<el-table-column label="货物描述" width="120" align="center" show-overflow-tooltip>
<template slot-scope="scope">
{{scope.row.goodsname}}
</template>
... ... @@ -156,58 +156,55 @@
<span v-if="scope.row.status ==='25'">已发送修改报</span>
</template>
</el-table-column>
<el-table-column prop="receipt" label="回执信息" align="center">
<el-table-column prop="receipt" label="回执信息" align="center" show-overflow-tooltip>
<template slot-scope="scope">
<el-tag v-if="scope.row.status=='01' || scope.row.status=='11'" type="success">
{{scope.row.ext5}}
</el-tag>
<el-tag v-else-if="scope.row.status=='02' || scope.row.status=='03'" type="warning">
{{scope.row.ext5}}
</el-tag>
<el-tag v-else-if="scope.row.status=='12' || scope.row.status=='13'" type="danger">
{{scope.row.ext5}}
</el-tag>
<el-tag v-else>
{{scope.row.ext5}}
</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" width="450px" fixed="right" align="center">
<template slot-scope="scope" >
<el-row>
<el-col :span="5" style="margin-right: 10px">
<el-button type="danger" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button>
</el-col>
<el-col :span="5" style="margin-right: 10px">
<el-button type="warning" icon="el-icon-view" @click="handleSend(scope.row)">收发明细</el-button>
</el-col>
<el-col :span="5" style="margin-right: 10px">
<el-button type="info" icon="el-icon-edit" @click="handleAwbStatus(scope.row)"
:disabled="scope.row.status === '22'">更改状态
</el-button>
</el-col>
<el-col :span="5" style="margin-right: 10px">
<el-button type="primary" icon="el-icon-plus" v-if="scope.row.awbh ===''"
<el-row type="flex" justify="space-between">
<el-button icon="el-icon-view" @click="handleSend(scope.row)">收发明细</el-button>
<el-button type="success" icon="el-icon-plus" v-if="scope.row.awbh ===''"
@click="handleAddAwbh(scope.row)">新增分单
</el-button>
</el-col>
<el-button type="warning" icon="el-icon-edit" @click="handleAwbStatus(scope.row)"
:disabled="scope.row.status === '22'">更改状态
</el-button>
<el-button type="danger" icon="el-icon-delete" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button>
</el-row>
<el-row>
<el-col :span="7" style="margin-right: 10px">
<el-button type="primary" icon="el-icon-plus" style="width: 130px" @click="handleAwbSend(scope.row.uuid)"
:disabled="addStatus(scope.row.status)">发送预配舱单报
<el-row type="flex" justify="space-between">
<el-button type="primary" icon="el-icon-plus" @click="handleAwbSend(scope.row.uuid)"
:disabled="addStatus(scope.row.status)">预配申报
</el-button>
</el-col>
<el-col :span="7" style="margin-right: 10px">
<el-button type="success" icon="el-icon-plus" style="width: 130px" @click="handleAwbEdit(scope.row.uuid)"
:disabled="editStatus(scope.row.status)">发送预配修改报</el-button>
</el-col>
<el-col :span="7">
<el-button type="danger" icon="el-icon-delete" style="width: 130px;margin-bottom: 10px" @click="handleSendDelete(scope.row.uuid)"
:disabled="deleteStatus(scope.row.status)">发送预配删除报</el-button>
</el-col>
<el-button type="success" icon="el-icon-edit" @click="handleAwbEdit(scope.row.uuid)"
:disabled="editStatus(scope.row.status)">修改申报</el-button>
<el-button type="danger" icon="el-icon-delete" @click="handleSendDelete(scope.row.uuid)"
:disabled="deleteStatus(scope.row.status)">删除申报</el-button>
</el-row>
</template>
</el-table-column>
</el-table>
<div class="btnFoot">
<el-row>
<el-button type="primary" v-if="preQuery.flightno !== undefined || preData.length >0"
<el-button type="success" icon="el-icon-plus" v-if="preQuery.flightno !== undefined || preData.length >0"
@click="handleAddpreInfo">新增预配舱单
</el-button>
<el-button type="primary" @click="handelBackStep"
v-if="preQuery.flightno !== undefined || preData.length >0">返回
<el-button type="primary" icon="el-icon-back" @click="handelBackStep"
v-if="preQuery.flightno !== undefined || preData.length >0">返&emsp;&emsp;回
</el-button>
</el-row>
</div>
... ... @@ -728,10 +725,12 @@
<el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
<el-form :inline="true" :model="consignerQuery">
<el-form-item>
<el-input v-model="consignerQuery.companyName" placeholder="关键字查询" size="small"></el-input>
<el-input v-model="consignerQuery.companyName" placeholder="公司名称" size="small">
<template slot="prepend">公司名称</template>
</el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" size="small" v-on:click="consignerSelect()">查询</el-button>
<el-button type="primary" icon="el-icon-plus" size="small" v-on:click="consignerSelect()">查&emsp;&emsp;询</el-button>
</el-form-item>
</el-form>
</el-col>
... ... @@ -753,7 +752,7 @@
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button type="success" size="mini" @click="consignerClick(scope.row)">选择</el-button>
<el-button type="success" size="mini" icon="el-icon-thumb" @click="consignerClick(scope.row)">选&emsp;&emsp;择</el-button>
</template>
</el-table-column>
</el-table>
... ... @@ -765,10 +764,12 @@
<el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
<el-form :inline="true" :model="consignerQuery">
<el-form-item>
<el-input v-model="consigneeQuery.companyName" placeholder="关键字查询" size="small"></el-input>
<el-input v-model="consigneeQuery.companyName" placeholder="公司名称" size="small">
<template slot="prepend">公司名称</template>
</el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" v-on:click="consigneeSelect()" size="small">查询</el-button>
<el-button type="primary" icon="el-icon-plus" v-on:click="consigneeSelect()" size="small">查&emsp;&emsp;询</el-button>
</el-form-item>
</el-form>
</el-col>
... ... @@ -790,7 +791,7 @@
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button type="success" @click="consigneeClick(scope.row)" size="small">选择</el-button>
<el-button type="success" icon="el-icon-thumb" @click="consigneeClick(scope.row)" size="small">选&emsp;&emsp;择</el-button>
</template>
</el-table-column>
</el-table>
... ... @@ -1127,6 +1128,21 @@
this.preQuery.awba = this.$route.params.flightData.awba.substring(0, 3) + "-" + this.$route.params.flightData.awba.substring(3)
}
this.getList()
}else {
this.preQuery= {
pageSize: 1,
limitSize: 30,
awba: '',
carrier: '',
flightno: '',
flightdate: '',
originstation: '',
destinationstation: '',
userId:loginedUserInfo().userId,
customCode:'',
enterpriseId:loginedUserInfo().companyId,
messageType: ''
}
}
this.getCountryList()
let username = JSON.parse(sessionStorage.getItem('user')).username
... ... @@ -1551,7 +1567,6 @@
},
// 收货人信息赋值
consigneeClick(val){
console.log(val);
this.preModel.awbinfo.cnsnname=val.conName;
this.preModel.awbinfo.cnsnaddress=val.conAddress;
this.preModel.awbinfo.ecityid=val.conCity;
... ...
... ... @@ -38,9 +38,9 @@
</div>
</el-col>
<div class="grid-content el-btn">
<el-button type="primary" size="mini" @click="handleSerach">查询</el-button>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleSerach">查&emsp;&emsp;询</el-button>
<el-button v-if="tidyQuery.flightno === undefined && tidyData.length <1"
type="primary" size="mini"
type="success" size="mini" icon="el-icon-plus"
@click="handleAddTidy">新增理货
</el-button>
</div>
... ... @@ -68,16 +68,6 @@
<a type="text" style="color: #409eff;text-decoration: underline" class="tableInline" @click="handleEdit(scope.row)" v-else>{{scope.row.awba}}</a>
</template>
</el-table-column>
<!-- <el-table-column label="分单号" width="120" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{scope.row.awbh}}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="运单件数/重量" width="100" align="center">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{scope.row.awbpiece}} / {{scope.row.awbweight}}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="理货件数" width="100" align="center">
<template slot-scope="scope">
<span>{{scope.row.piece}}</span>
... ... @@ -122,36 +112,46 @@
<span v-if="scope.row.status ==='25'">已发送修改报</span>
</template>
</el-table-column>
<el-table-column label="回执信息" show-overflow-tooltip width="230" align="center">
<el-table-column label="回执信息" show-overflow-tooltip width="230" align="center" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{scope.row.ext5}}</span>
<el-tag v-if="scope.row.status=='01' || scope.row.status=='11'" type="success">
{{scope.row.ext5}}
</el-tag>
<el-tag v-else-if="scope.row.status=='02' || scope.row.status=='03'" type="warning">
{{scope.row.ext5}}
</el-tag>
<el-tag v-else-if="scope.row.status=='12' || scope.row.status=='13'" type="danger">
{{scope.row.ext5}}
</el-tag>
<el-tag v-else>
{{scope.row.ext5}}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="operation" label="操作" width="420px" 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)">编辑</el-button>-->
<el-button size="mini" type="primary" @click="handleAwbSend(scope.row)"
:disabled="addStatus(scope.row.status)">发送出港理货报</el-button>
<el-button size="mini" icon="el-icon-view" @click="handleSend(scope.row)">收发明细</el-button>
<el-button size="mini" inco="el-icon-s-promotion" type="primary" @click="handleAwbSend(scope.row)"
:disabled="addStatus(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="danger" icon="el-icon-plus" v-if="isAdmin" @click="handleAwbDelete(scope.row)">删除运单</el-button>
<p></p>
<el-button size="mini" type="warning" @click="handleAwbStatus(scope.row)"
:disabled="scope.row.status ==='22'">更改状态</el-button>
<el-button size="mini" type="primary" v-if="scope.row.awbh ===''"
<el-button size="mini" type="success" icon="el-icon-plus" v-if="scope.row.awbh ===''"
@click="handleAddAwbh(scope.row)">新增分单</el-button>
<el-button size="mini" type="danger" @click="handleSendDelete(scope.row)"
:disabled="deleteStatus(scope.row.status)">发出港理货删除报</el-button>
<el-button size="mini" type="danger" icon="el-icon-delete" @click="handleSendDelete(scope.row)"
:disabled="deleteStatus(scope.row.status)">删除申报</el-button>
</template>
</el-table-column>
</el-table>
<div class="btnFoot">
<el-row>
<el-button type="primary" size="mini" v-if="tidyQuery.flightno !== undefined || tidyData.length> 0"
@click="handelAddTidyInfo">新增出港理货
<el-button type="success" icon="el-icon-plus" size="mini" v-if="tidyQuery.flightno !== undefined || tidyData.length> 0"
@click="handelAddTidyInfo">新增理货
</el-button>
<el-button type="primary" size="mini" v-if="tidyQuery.flightno !== undefined || tidyData.length> 0"
@click="handelBackStep">返回
<el-button type="primary" icon="el-icon-back" size="mini" v-if="tidyQuery.flightno !== undefined || tidyData.length> 0"
@click="handelBackStep">返&emsp;&emsp;回
</el-button>
</el-row>
</div>
... ... @@ -484,7 +484,7 @@
awbweight: undefined,
rcfdep: 'MT5202',
userinfo: {
username : JSON.parse(sessionStorage.getItem('user')).username
username : loginedUserInfo().username
}
},
respModel : {
... ... @@ -520,7 +520,7 @@
rows:{},
}
},
created() {
activated() {
if (this.$route.params.flightData !== undefined) {
this.tidyQuery.carrier = this.$route.params.flightData.flightno.substring(0, 2)
this.tidyQuery.flightno = this.$route.params.flightData.flightno.substring(2)
... ... @@ -531,8 +531,21 @@
this.tidyQuery.awba = this.$route.params.flightData.awba.substring(0, 3) + "-" + this.$route.params.flightData.awba.substring(3)
}
this.getList()
}else {
this.tidyQuery = {
pageSize: 1,
limitSize: 10,
awba: undefined,
carrier: undefined,
flightno: undefined,
flightdate: undefined,
originstation: undefined,
destinationstation: undefined,
customcode: undefined,
rcfdep: "5202"
}
let username = JSON.parse(sessionStorage.getItem('user')).username
}
let username = loginedUserInfo().username
if(username === 'admin'){
this.isAdmin = true
}
... ... @@ -677,7 +690,7 @@
cancelButtonText: '取消'
}).then(() => {
row.userinfo = {
username : JSON.parse(sessionStorage.getItem('user')).username
username : loginedUserInfo().username
}
sendCreateMt5202(row).then(res => {
if (res.data.count > 0) {
... ... @@ -739,7 +752,7 @@
flightDate: undefined,
awbh: undefined,
rcfdep: 'MT5202',
username: JSON.parse(sessionStorage.getItem('user')).username,
username: loginedUserInfo().username
}
this.dialogDeleteVisible = true
this.respModel.carrier = row.carrier
... ... @@ -861,7 +874,7 @@
awbweight: undefined,
rcfdep: 'MT5202',
userinfo: {
username: JSON.parse(sessionStorage.getItem('user')).username
username: loginedUserInfo().username
}
}
},
... ... @@ -921,10 +934,10 @@
delete this.tidyModel.children
_this.tidyModel.user= {
username : JSON.parse(sessionStorage.getItem('user')).username
username : loginedUserInfo().username
}
this.tidyModel.userinfo = {
username : loginUserInfo().username
username : loginedUserInfo().username
}
updateMt520X(this.tidyModel).then(res => {
... ...