正在显示
2 个修改的文件
包含
23 行增加
和
11 行删除
@@ -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,15 +337,26 @@ | @@ -336,15 +337,26 @@ | ||
336 | }, | 337 | }, |
337 | //条件查询方法 | 338 | //条件查询方法 |
338 | QueryData(){ | 339 | QueryData(){ |
339 | - 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}; | ||
341 | - this.tableloading=true; | ||
342 | - QueryData(params).then(res =>{ | ||
343 | - let response=res.data.data; | ||
344 | - this.tableData=response.list; | ||
345 | - this.total=response.total; | ||
346 | - this.tableloading = false; | ||
347 | - }); | 340 | + if(jsutil.checkNull(this.defaultQuery.awba)||jsutil.checkNull(this.defaultQuery.flightdate)){ |
341 | + let params={currentPage:this.currentPage,pageSize:this.pageSize,awba:this.defaultQuery.awba,carrier:this.defaultQuery.carrier, | ||
342 | + flightno:this.defaultQuery.flightno,flightdate:this.defaultQuery.flightdate,status:this.defaultQuery.status,messageType:this.defaultQuery.messageType,departmentid:loginedUserInfo().companyInfo.departmentid}; | ||
343 | + this.tableloading=true; | ||
344 | + QueryData(params).then(res =>{ | ||
345 | + let response=res.data.data; | ||
346 | + this.tableData=response.list; | ||
347 | + this.total=response.total; | ||
348 | + this.tableloading = false; | ||
349 | + }).catch(err => { | ||
350 | + this.tableloading = false; | ||
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){ |
-
请 注册 或 登录 后发表评论