作者 王勇

出港理貨 搜索修改

預配艙單搜索修改
出港裝載 搜索修改
出港航班查詢搜索修改
出港運抵查詢修搜修改
@@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
32 <div class="grid-content"> 32 <div class="grid-content">
33 <el-col :span="4"> 33 <el-col :span="4">
34 <div class="grid-content"> 34 <div class="grid-content">
35 - <el-input v-model="awba" placeholder="请输入主单号"></el-input> 35 + <el-input v-model="awba" clearable placeholder="请输入主单号"></el-input>
36 </div> 36 </div>
37 </el-col> 37 </el-col>
38 <div class="grid-content el-btn"> 38 <div class="grid-content el-btn">
@@ -123,7 +123,7 @@ @@ -123,7 +123,7 @@
123 <span>{{scope.row.ext5}}</span> 123 <span>{{scope.row.ext5}}</span>
124 </template> 124 </template>
125 </el-table-column> 125 </el-table-column>
126 - <el-table-column prop="operation" label="操作" align="center" width="400"> 126 + <el-table-column prop="operation" fixed="right" label="操作" align="center" width="400">
127 <template slot-scope="scope"> 127 <template slot-scope="scope">
128 <el-button size="mini" @click="handleSendDesc(scope.row)">收发明细</el-button> 128 <el-button size="mini" @click="handleSendDesc(scope.row)">收发明细</el-button>
129 <el-button size="mini" type="success" @click="handleEdit(scope.row)">编辑</el-button> 129 <el-button size="mini" type="success" @click="handleEdit(scope.row)">编辑</el-button>
@@ -588,11 +588,11 @@ @@ -588,11 +588,11 @@
588 588
589 }, 589 },
590 handleSerach() { 590 handleSerach() {
591 - this.arriveQuery.carrier = undefined  
592 - this.arriveQuery.flightno = undefined  
593 - this.arriveQuery.originstation = undefined  
594 - this.arriveQuery.flightdate = undefined  
595 - this.arriveQuery.destinationstation = undefined 591 + // this.arriveQuery.carrier = undefined
  592 + // this.arriveQuery.flightno = undefined
  593 + // this.arriveQuery.originstation = undefined
  594 + // this.arriveQuery.flightdate = undefined
  595 + // this.arriveQuery.destinationstation = undefined
596 this.getList() 596 this.getList()
597 }, 597 },
598 handleSelectionChange(val) { 598 handleSelectionChange(val) {
1 <template> 1 <template>
2 <div class="app-content"> 2 <div class="app-content">
3 - <!--<div class="app-container">--> 3 + <!--<div class="app-container">-->
4 <div class="filter-container"> 4 <div class="filter-container">
5 <el-input v-model="listQuery.flightNo" clearable style="width: 270px;" class="filter-item" 5 <el-input v-model="listQuery.flightNo" clearable style="width: 270px;" class="filter-item"
6 placeholder="航班号"/> 6 placeholder="航班号"/>
@@ -10,28 +10,28 @@ @@ -10,28 +10,28 @@
10 <el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button> 10 <el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button>
11 </div> 11 </div>
12 <el-table :data="flightData" stripe style="font-size: 14px" border> 12 <el-table :data="flightData" stripe style="font-size: 14px" border>
13 - <el-table-column label="航班号" width="280px" align="center"> 13 + <el-table-column label="航班号" width="180px" align="center">
14 <template slot-scope="scope"> 14 <template slot-scope="scope">
15 <span>{{ scope.row.carrier }}{{ scope.row.flightNo }}</span> 15 <span>{{ scope.row.carrier }}{{ scope.row.flightNo }}</span>
16 </template> 16 </template>
17 </el-table-column> 17 </el-table-column>
18 - <el-table-column label="航班日期" width="280px" align="center"> 18 + <el-table-column label="航班日期" width="190px" align="center">
19 <template slot-scope="scope"> 19 <template slot-scope="scope">
20 <i class="el-icon-time"></i> 20 <i class="el-icon-time"></i>
21 <span>{{ scope.row.flightDate }}</span> 21 <span>{{ scope.row.flightDate }}</span>
22 </template> 22 </template>
23 </el-table-column> 23 </el-table-column>
24 - <el-table-column label="始发站" width="235px" align="center"> 24 + <el-table-column label="始发站" width="160px" align="center">
25 <template slot-scope="scope"> 25 <template slot-scope="scope">
26 <span>{{ scope.row.originstation }}</span> 26 <span>{{ scope.row.originstation }}</span>
27 </template> 27 </template>
28 </el-table-column> 28 </el-table-column>
29 - <el-table-column label="目的站" width="235px" align="center"> 29 + <el-table-column label="目的站" width="160px" align="center">
30 <template slot-scope="scope"> 30 <template slot-scope="scope">
31 <span>{{ scope.row.destinationstation }}</span> 31 <span>{{ scope.row.destinationstation }}</span>
32 </template> 32 </template>
33 </el-table-column> 33 </el-table-column>
34 - <el-table-column label="操作" width="400px" align="center"> 34 + <el-table-column label="操作" width="400px" align="center" fixed="right">
35 <template slot-scope="scope"> 35 <template slot-scope="scope">
36 <el-button type="primary" size="mini" @click="handlePre(scope.row)">预配舱单</el-button> 36 <el-button type="primary" size="mini" @click="handlePre(scope.row)">预配舱单</el-button>
37 <el-button type="primary" size="mini" @click="handleArrive(scope.row)">出港运抵</el-button> 37 <el-button type="primary" size="mini" @click="handleArrive(scope.row)">出港运抵</el-button>
@@ -48,6 +48,7 @@ @@ -48,6 +48,7 @@
48 <script> 48 <script>
49 import Pagination from '@/components/Pagination' 49 import Pagination from '@/components/Pagination'
50 import {getFlightListForParam} from '@/api/exitFlight' 50 import {getFlightListForParam} from '@/api/exitFlight'
  51 +
51 export default { 52 export default {
52 name: "ExitFlight", 53 name: "ExitFlight",
53 components: {Pagination}, 54 components: {Pagination},
@@ -58,18 +59,22 @@ @@ -58,18 +59,22 @@
58 listQuery: { 59 listQuery: {
59 pageSize: 1, 60 pageSize: 1,
60 limitSize: 10, 61 limitSize: 10,
61 - flightNo: undefined, 62 + flightNo: '',
62 flightDate: undefined 63 flightDate: undefined
63 }, 64 },
64 flightData: [], 65 flightData: [],
65 } 66 }
66 }, 67 },
67 - created(){  
68 - this.getList() 68 + created() {
  69 + this.getList()
69 }, 70 },
70 methods: { 71 methods: {
  72 + /*设置默认航班时间*/
  73 + getdatatime() {
  74 + this.listQuery.flightDate = new Date();
  75 + },
71 getList() { 76 getList() {
72 - getFlightListForParam(this.listQuery).then(res =>{ 77 + getFlightListForParam(this.listQuery).then(res => {
73 this.flightData = res.data.dataList 78 this.flightData = res.data.dataList
74 this.total = res.data.count 79 this.total = res.data.count
75 }) 80 })
@@ -101,12 +106,17 @@ @@ -101,12 +106,17 @@
101 row.flightno = row.flightNo 106 row.flightno = row.flightNo
102 this.$router.push({name: '出港航班信息', params: {scopeRow: row}}) 107 this.$router.push({name: '出港航班信息', params: {scopeRow: row}})
103 } 108 }
  109 + },
  110 + // 页面加载完毕后触发的事件
  111 + mounted() {
  112 + var vm = this;
  113 + vm.getdatatime();
104 } 114 }
105 } 115 }
106 116
107 </script> 117 </script>
108 <style scoped> 118 <style scoped>
109 - .app-content{ 119 + .app-content {
110 margin-top: 20px; 120 margin-top: 20px;
111 } 121 }
112 </style> 122 </style>
@@ -12,12 +12,12 @@ @@ -12,12 +12,12 @@
12 </el-col> 12 </el-col>
13 </el-row> 13 </el-row>
14 <el-row type="flex" class="row-bg" justify="center"> 14 <el-row type="flex" class="row-bg" justify="center">
15 - <el-col :span="4"> 15 + <el-col :span="4" >
16 <el-input placeholder="必填" v-model="flightno"> 16 <el-input placeholder="必填" v-model="flightno">
17 <template slot="prepend">航班号</template> 17 <template slot="prepend">航班号</template>
18 </el-input> 18 </el-input>
19 </el-col> 19 </el-col>
20 - <el-col :span="4"> 20 + <el-col :span="4" style="margin-left: 20px">
21 <el-date-picker 21 <el-date-picker
22 v-model="flight.flightdate" 22 v-model="flight.flightdate"
23 type="date" 23 type="date"
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 placeholder="选择日期"> 25 placeholder="选择日期">
26 </el-date-picker> 26 </el-date-picker>
27 </el-col> 27 </el-col>
28 - <el-col :span="4"> 28 + <el-col :span="4" style="margin-left: 55px">
29 <el-select 29 <el-select
30 :remote-method="remoteMethodAirport" 30 :remote-method="remoteMethodAirport"
31 :loading="listLoading" 31 :loading="listLoading"
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 <el-option 38 <el-option
39 v-for="item in airportCode" 39 v-for="item in airportCode"
40 :key="item.airportid" 40 :key="item.airportid"
41 - :label="item.airportdescchn" 41 + :label="item.airportid"
42 :value="item.airportid"> 42 :value="item.airportid">
43 <span style="float: left">{{ item.airportdescchn }}</span> 43 <span style="float: left">{{ item.airportdescchn }}</span>
44 <span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportid }}</span> 44 <span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportid }}</span>
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
58 <el-option 58 <el-option
59 v-for="item in airportCode" 59 v-for="item in airportCode"
60 :key="item.airportid" 60 :key="item.airportid"
61 - :label="item.airportdescchn" 61 + :label="item.airportid"
62 :value="item.airportid"> 62 :value="item.airportid">
63 <span style="float: left">{{ item.airportdescchn }}</span> 63 <span style="float: left">{{ item.airportdescchn }}</span>
64 <span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportid }}</span> 64 <span style="float: right; color: #8492a6; font-size: 13px">{{ item.airportid }}</span>
@@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
32 <div class="grid-content"> 32 <div class="grid-content">
33 <el-col :span="4"> 33 <el-col :span="4">
34 <div class="grid-content"> 34 <div class="grid-content">
35 - <el-input v-model="loadingQuery.awba" placeholder="请输入主单号"></el-input> 35 + <el-input clearable v-model="loadingQuery.awba" placeholder="请输入主单号"></el-input>
36 </div> 36 </div>
37 </el-col> 37 </el-col>
38 <div class="el-btn"> 38 <div class="el-btn">
@@ -106,7 +106,7 @@ @@ -106,7 +106,7 @@
106 <span>{{scope.row.ext5}}</span> 106 <span>{{scope.row.ext5}}</span>
107 </template> 107 </template>
108 </el-table-column> 108 </el-table-column>
109 - <el-table-column label="操作" align="center"> 109 + <el-table-column label="操作" align="center" fixed="right" width="245">
110 <template slot-scope="scope"> 110 <template slot-scope="scope">
111 <el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button> 111 <el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button>
112 112
@@ -581,11 +581,11 @@ @@ -581,11 +581,11 @@
581 }, 581 },
582 // 查询 582 // 查询
583 handleSearch() { 583 handleSearch() {
584 - this.loadingQuery.carrier = undefined  
585 - this.loadingQuery.flightno = undefined  
586 - this.loadingQuery.originstation = undefined  
587 - this.loadingQuery.flightdate = undefined  
588 - this.loadingQuery.destinationstation = undefined 584 + // this.loadingQuery.carrier = undefined
  585 + // this.loadingQuery.flightno = undefined
  586 + // this.loadingQuery.originstation = undefined
  587 + // this.loadingQuery.flightdate = undefined
  588 + // this.loadingQuery.destinationstation = undefined
589 this.getList() 589 this.getList()
590 }, 590 },
591 // 收发明细 591 // 收发明细
@@ -127,7 +127,7 @@ @@ -127,7 +127,7 @@
127 {{scope.row.ext5}} 127 {{scope.row.ext5}}
128 </template> 128 </template>
129 </el-table-column> 129 </el-table-column>
130 - <el-table-column label="操作" width="450"> 130 + <el-table-column label="操作" width="450" fixed="right">
131 <template slot-scope="scope"> 131 <template slot-scope="scope">
132 <el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button> 132 <el-button size="mini" @click="handleSend(scope.row)">收发明细</el-button>
133 <el-button size="mini" type="success" @click="handleEdit(scope.row)" >编辑</el-button> 133 <el-button size="mini" type="success" @click="handleEdit(scope.row)" >编辑</el-button>
@@ -161,7 +161,7 @@ @@ -161,7 +161,7 @@
161 </div> 161 </div>
162 <pagination v-show="total>0" :total="total" :page.sync="preQuery.pageSize" :limit.sync="preQuery.limitSize" 162 <pagination v-show="total>0" :total="total" :page.sync="preQuery.pageSize" :limit.sync="preQuery.limitSize"
163 @pagination="getList"/> 163 @pagination="getList"/>
164 - <el-dialog :title="dialogMap[dialogStatus]" :visible.sync="dialogFormVisible" width="60%"> 164 + <el-dialog :title="dialogMap[dialogStatus]" :visible.sync="dialogFormVisible" width="85%">
165 <el-form ref="preFormData" :model="preModel" :rules="preRoles" label-position="right" 165 <el-form ref="preFormData" :model="preModel" :rules="preRoles" label-position="right"
166 label-width="120px" class="el-dialog-div"> 166 label-width="120px" class="el-dialog-div">
167 <div class="grid-content content"> 167 <div class="grid-content content">
@@ -306,7 +306,7 @@ @@ -306,7 +306,7 @@
306 </el-form-item> 306 </el-form-item>
307 </el-col> 307 </el-col>
308 <el-col :span="8" v-if="fenStatus ==='addAwbh'"> 308 <el-col :span="8" v-if="fenStatus ==='addAwbh'">
309 - <el-col :span="13"> 309 + <el-col :span="14">
310 <el-form-item label="预配件数" prop="piece"> 310 <el-form-item label="预配件数" prop="piece">
311 <el-input v-model="preModel.piece" clearable/> 311 <el-input v-model="preModel.piece" clearable/>
312 </el-form-item> 312 </el-form-item>
@@ -315,13 +315,14 @@ @@ -315,13 +315,14 @@
315 <span>剩余件数:{{awbPiece}}</span> 315 <span>剩余件数:{{awbPiece}}</span>
316 </el-col> 316 </el-col>
317 </el-col> 317 </el-col>
  318 +
318 <el-col :span="7.5" v-if="fenStatus !=='addAwbh'"> 319 <el-col :span="7.5" v-if="fenStatus !=='addAwbh'">
319 <el-form-item label="预配重量" prop="weight"> 320 <el-form-item label="预配重量" prop="weight">
320 <el-input v-model="preModel.weight" clearable/> 321 <el-input v-model="preModel.weight" clearable/>
321 </el-form-item> 322 </el-form-item>
322 </el-col> 323 </el-col>
323 <el-col :span="8" v-if="fenStatus ==='addAwbh'"> 324 <el-col :span="8" v-if="fenStatus ==='addAwbh'">
324 - <el-col :span="13"> 325 + <el-col :span="14">
325 <el-form-item label="预配重量" prop="weight"> 326 <el-form-item label="预配重量" prop="weight">
326 <el-input v-model="preModel.weight" clearable/> 327 <el-input v-model="preModel.weight" clearable/>
327 </el-form-item> 328 </el-form-item>
@@ -1121,7 +1122,8 @@ @@ -1121,7 +1122,8 @@
1121 getMt2201ListForParam(this.preQuery).then(res => { 1122 getMt2201ListForParam(this.preQuery).then(res => {
1122 this.preData = res.data.dataList 1123 this.preData = res.data.dataList
1123 this.total = res.data.count 1124 this.total = res.data.count
1124 - 1125 + console.log("主单号不为空时打印")
  1126 + console.log(res.data)
1125 if (res.data.dataList.length > 0) { 1127 if (res.data.dataList.length > 0) {
1126 this.preQuery.carrier = this.preData[0].carrier 1128 this.preQuery.carrier = this.preData[0].carrier
1127 this.preQuery.flightno = this.preData[0].flightno 1129 this.preQuery.flightno = this.preData[0].flightno
@@ -1143,7 +1145,6 @@ @@ -1143,7 +1145,6 @@
1143 }, 1500) 1145 }, 1500)
1144 }) 1146 })
1145 } 1147 }
1146 -  
1147 }, 1148 },
1148 // >>>>>>>>>>>>>>>>重置实体<<<<<<<<<<<<<<<<<< 1149 // >>>>>>>>>>>>>>>>重置实体<<<<<<<<<<<<<<<<<<
1149 restModel() { 1150 restModel() {
@@ -1242,11 +1243,11 @@ @@ -1242,11 +1243,11 @@
1242 }, 1243 },
1243 // >>>>>>>>>>>>>>>>搜索<<<<<<<<<<<<<<<<<< 1244 // >>>>>>>>>>>>>>>>搜索<<<<<<<<<<<<<<<<<<
1244 handleSerach() { 1245 handleSerach() {
1245 - this.preQuery.flightno = undefined  
1246 - this.preQuery.carrier = undefined  
1247 - this.preQuery.originstation = undefined  
1248 - this.preQuery.flightdate = undefined  
1249 - this.preQuery.destinationstation = undefined 1246 + // this.preQuery.flightno = undefined
  1247 + // this.preQuery.carrier = undefined
  1248 + // this.preQuery.originstation = undefined
  1249 + // this.preQuery.flightdate = undefined
  1250 + // this.preQuery.destinationstation = undefined
1250 this.getList() 1251 this.getList()
1251 }, 1252 },
1252 // >>>>>>>>>>>>>>>>收发明细<<<<<<<<<<<<<<<<<< 1253 // >>>>>>>>>>>>>>>>收发明细<<<<<<<<<<<<<<<<<<
@@ -612,11 +612,11 @@ @@ -612,11 +612,11 @@
612 }, 612 },
613 // 搜索 613 // 搜索
614 handleSerach() { 614 handleSerach() {
615 - this.tidyQuery.carrier = undefined  
616 - this.tidyQuery.flightno = undefined  
617 - this.tidyQuery.originstation = undefined  
618 - this.tidyQuery.flightdate = undefined  
619 - this.tidyQuery.destinationstation = undefined 615 + // this.tidyQuery.carrier = undefined
  616 + // this.tidyQuery.flightno = undefined
  617 + // this.tidyQuery.originstation = undefined
  618 + // this.tidyQuery.flightdate = undefined
  619 + // this.tidyQuery.destinationstation = undefined
620 this.getList() 620 this.getList()
621 }, 621 },
622 // 收发明细 622 // 收发明细