解决新增页面 下拉框与lable 错位问题
预配主单查询框加宽 运单查询列表合并承运人与航班号
正在显示
3 个修改的文件
包含
50 行增加
和
10 行删除
@@ -2,9 +2,9 @@ | @@ -2,9 +2,9 @@ | ||
2 | <!--<div class="app-container">--> | 2 | <!--<div class="app-container">--> |
3 | <div class="app-content"> | 3 | <div class="app-content"> |
4 | <div class="filter-container" style="margin-top: 50px;padding-bottom: 5px"> | 4 | <div class="filter-container" style="margin-top: 50px;padding-bottom: 5px"> |
5 | - <el-input v-model="listQuery.awba" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="运单号"/> | ||
6 | - <el-input v-model="listQuery.carrier" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="承运人"/> | ||
7 | - <el-input v-model="listQuery.flightno" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="航班号"/> | 5 | + <el-input v-model="listQuery.awba" @blur="inputAwba" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="运单号"/> |
6 | +<!-- <el-input v-model="listQuery.carrier" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="承运人"/>--> | ||
7 | + <el-input v-model="flightComNo" clearable style="width: 200px;margin-right: 10px" class="filter-item" placeholder="航班号"/> | ||
8 | <el-date-picker v-model="listQuery.flightDate" type="date" placeholder="航班日期" | 8 | <el-date-picker v-model="listQuery.flightDate" type="date" placeholder="航班日期" |
9 | value-format="yyyy-MM-dd" class="filter-item"></el-date-picker> | 9 | value-format="yyyy-MM-dd" class="filter-item"></el-date-picker> |
10 | </div> | 10 | </div> |
@@ -153,6 +153,7 @@ | @@ -153,6 +153,7 @@ | ||
153 | import {getMt520XListForParam} from "@/api/exitTidy"; | 153 | import {getMt520XListForParam} from "@/api/exitTidy"; |
154 | import {getMt3201ListForParam} from "@/api/exitArrive"; | 154 | import {getMt3201ListForParam} from "@/api/exitArrive"; |
155 | import {getMt4201ListForParam} from "@/api/exitLoading"; | 155 | import {getMt4201ListForParam} from "@/api/exitLoading"; |
156 | + import {Message} from "element-ui"; | ||
156 | 157 | ||
157 | export default { | 158 | export default { |
158 | name: "ExitManifest", | 159 | name: "ExitManifest", |
@@ -167,8 +168,8 @@ | @@ -167,8 +168,8 @@ | ||
167 | pageSize: 1, | 168 | pageSize: 1, |
168 | limitSize: 100, | 169 | limitSize: 100, |
169 | awba:undefined, | 170 | awba:undefined, |
170 | - carrier: undefined, | ||
171 | - flightno:undefined, | 171 | + carrier: '', |
172 | + flightno:'', | ||
172 | flightDate: new Date(), | 173 | flightDate: new Date(), |
173 | messageType: undefined, | 174 | messageType: undefined, |
174 | messageStatus: undefined, | 175 | messageStatus: undefined, |
@@ -206,9 +207,37 @@ | @@ -206,9 +207,37 @@ | ||
206 | ] | 207 | ] |
207 | } | 208 | } |
208 | }, | 209 | }, |
210 | + computed: { | ||
211 | + flightComNo: { | ||
212 | + get: function () { | ||
213 | + return this.listQuery.carrier+this.listQuery.flightno; | ||
214 | + }, | ||
215 | + set: function (val) { | ||
216 | + this.listQuery.carrier=''; | ||
217 | + this.listQuery.flightno = val.toUpperCase(); | ||
218 | + } | ||
219 | + } | ||
220 | + }, | ||
209 | methods: { | 221 | methods: { |
210 | getList() { | 222 | getList() { |
223 | + // 主单为空 航班号 航班日期 不能为空 | ||
224 | + if (this.listQuery.awba == undefined | ||
225 | + && this.listQuery.flightno != ''){ | ||
226 | + this.listLoading = true | ||
227 | + if (this.listQuery.flightno != '' && this.listQuery.flightno.length > 0){ | ||
228 | + this.listQuery.carrier = this.listQuery.flightno.substring(0,2); | ||
229 | + this.listQuery.flightno = this.listQuery.flightno.substring(2); | ||
230 | + } | ||
231 | + getManifests(this.listQuery).then(res =>{ | ||
232 | + this.manifestData = res.data.data.list | ||
233 | + this.total = res.data.data.total | ||
234 | + setTimeout(() =>{ | ||
235 | + this.listLoading = false | ||
236 | + },1500) | ||
237 | + }) | ||
238 | + }else if (this.listQuery.awba != undefined){ | ||
211 | this.listLoading = true | 239 | this.listLoading = true |
240 | + this.listQuery.flightDate = undefined; | ||
212 | getManifests(this.listQuery).then(res =>{ | 241 | getManifests(this.listQuery).then(res =>{ |
213 | this.manifestData = res.data.data.list | 242 | this.manifestData = res.data.data.list |
214 | this.total = res.data.data.total | 243 | this.total = res.data.data.total |
@@ -216,6 +245,13 @@ | @@ -216,6 +245,13 @@ | ||
216 | this.listLoading = false | 245 | this.listLoading = false |
217 | },1500) | 246 | },1500) |
218 | }) | 247 | }) |
248 | + }else { | ||
249 | + Message.warning("请输入运单号或者航班号为查询条件"); | ||
250 | + } | ||
251 | + | ||
252 | + }, | ||
253 | + inputAwba(){ | ||
254 | + this.listQuery.flightDate = ''; | ||
219 | }, | 255 | }, |
220 | handleSelectionChange() { | 256 | handleSelectionChange() { |
221 | 257 |
@@ -30,7 +30,7 @@ | @@ -30,7 +30,7 @@ | ||
30 | </el-col> | 30 | </el-col> |
31 | <el-col :span="24"> | 31 | <el-col :span="24"> |
32 | <div class="grid-content"> | 32 | <div class="grid-content"> |
33 | - <el-col :span="3"> | 33 | + <el-col :span="4"> |
34 | <div class="grid-content"> | 34 | <div class="grid-content"> |
35 | <el-input v-model="preQuery.awba" placeholder="请输入主单号" clearable> | 35 | <el-input v-model="preQuery.awba" placeholder="请输入主单号" clearable> |
36 | <template slot="prepend">主单号</template> | 36 | <template slot="prepend">主单号</template> |
@@ -997,6 +997,7 @@ | @@ -997,6 +997,7 @@ | ||
997 | awba: [{required: true, trigger: 'blur', validator: validatorAwb}], | 997 | awba: [{required: true, trigger: 'blur', validator: validatorAwb}], |
998 | awbh: [{required: true, trigger: 'blur', validator: validatorAwbh}], | 998 | awbh: [{required: true, trigger: 'blur', validator: validatorAwbh}], |
999 | 'awbinfo.paymodel': [{required: true, message: '付款方式必选', trigger: 'change'}], | 999 | 'awbinfo.paymodel': [{required: true, message: '付款方式必选', trigger: 'change'}], |
1000 | + 'awbinfo.awbtype': [{required: true, message: '货物类型必须', trigger: 'change'}], | ||
1000 | goodsname: [{required: true, trigger: 'blur', validator: validAlphabetsSpanceKey}], | 1001 | goodsname: [{required: true, trigger: 'blur', validator: validAlphabetsSpanceKey}], |
1001 | ex5: [{required: true, message: '货物描述不能为空', trigger: 'blur'}], | 1002 | ex5: [{required: true, message: '货物描述不能为空', trigger: 'blur'}], |
1002 | 'awbinfo.sairportid': [{required: true, message: '起始航站不能为空', trigger: 'change'}], | 1003 | 'awbinfo.sairportid': [{required: true, message: '起始航站不能为空', trigger: 'change'}], |
@@ -1075,7 +1076,10 @@ | @@ -1075,7 +1076,10 @@ | ||
1075 | eairportid: undefined, | 1076 | eairportid: undefined, |
1076 | csgcustomerid: undefined, | 1077 | csgcustomerid: undefined, |
1077 | paymodel: 'PP', | 1078 | paymodel: 'PP', |
1078 | - awbtype: undefined | 1079 | + awbtype: undefined, |
1080 | + dest4:undefined, | ||
1081 | + dest4city:undefined | ||
1082 | + | ||
1079 | }, | 1083 | }, |
1080 | user: { | 1084 | user: { |
1081 | username: loginedUserInfo().username | 1085 | username: loginedUserInfo().username |
-
请 注册 或 登录 后发表评论