正在显示
2 个修改的文件
包含
14 行增加
和
2 行删除
@@ -234,7 +234,7 @@ | @@ -234,7 +234,7 @@ | ||
234 | <style scoped> | 234 | <style scoped> |
235 | .ip{ | 235 | .ip{ |
236 | max-width: 100px; | 236 | max-width: 100px; |
237 | - margin-right: -4px; | 237 | + margin-right: -5px; |
238 | display: inline-block; | 238 | display: inline-block; |
239 | background-color: #6F8294; | 239 | background-color: #6F8294; |
240 | color: #ffffff; | 240 | color: #ffffff; |
@@ -269,6 +269,7 @@ | @@ -269,6 +269,7 @@ | ||
269 | import { QueryData } from '../../api/wayDeclaration' | 269 | import { QueryData } from '../../api/wayDeclaration' |
270 | import {mapActions, mapGetters} from 'vuex' | 270 | import {mapActions, mapGetters} from 'vuex' |
271 | import {loginedUserInfo} from "../../api/user"; | 271 | import {loginedUserInfo} from "../../api/user"; |
272 | + import jsutil from "@/common/js/util"; | ||
272 | export default { | 273 | export default { |
273 | name:'Waybill', | 274 | name:'Waybill', |
274 | data() { | 275 | data() { |
@@ -336,6 +337,7 @@ | @@ -336,6 +337,7 @@ | ||
336 | }, | 337 | }, |
337 | //条件查询方法 | 338 | //条件查询方法 |
338 | QueryData(){ | 339 | QueryData(){ |
340 | + if(jsutil.checkNull(this.defaultQuery.awba)||jsutil.checkNull(this.defaultQuery.flightdate)){ | ||
339 | let params={currentPage:this.currentPage,pageSize:this.pageSize,awba:this.defaultQuery.awba,carrier:this.defaultQuery.carrier, | 341 | let params={currentPage:this.currentPage,pageSize:this.pageSize,awba:this.defaultQuery.awba,carrier:this.defaultQuery.carrier, |
340 | flightno:this.defaultQuery.flightno,flightdate:this.defaultQuery.flightdate,status:this.defaultQuery.status,messageType:this.defaultQuery.messageType,departmentid:loginedUserInfo().companyInfo.departmentid}; | 342 | flightno:this.defaultQuery.flightno,flightdate:this.defaultQuery.flightdate,status:this.defaultQuery.status,messageType:this.defaultQuery.messageType,departmentid:loginedUserInfo().companyInfo.departmentid}; |
341 | this.tableloading=true; | 343 | this.tableloading=true; |
@@ -344,7 +346,17 @@ | @@ -344,7 +346,17 @@ | ||
344 | this.tableData=response.list; | 346 | this.tableData=response.list; |
345 | this.total=response.total; | 347 | this.total=response.total; |
346 | this.tableloading = false; | 348 | this.tableloading = false; |
349 | + }).catch(err => { | ||
350 | + this.tableloading = false; | ||
347 | }); | 351 | }); |
352 | + } | ||
353 | + else { | ||
354 | + this.$confirm('主单号和航班日期至少选填一项!', '提示', { | ||
355 | + confirmButtonText: '确定', | ||
356 | + cancelButtonText: '取消', | ||
357 | + type: 'warning' | ||
358 | + }) | ||
359 | + } | ||
348 | }, | 360 | }, |
349 | //点击进入原始页面 | 361 | //点击进入原始页面 |
350 | handleClick(row){ | 362 | handleClick(row){ |
-
请 注册 或 登录 后发表评论