| | |
| | | }, |
| | | |
| | | showPurchaseDetail(val){ |
| | | this.$refs.person.openPersonPurchaseDetail(this.listQuery.filter.starttime,this.listQuery.filter.endtime,val.identify,val.companynumber,this.listQuery.filter.directioncode) |
| | | this.$refs.person.openPersonPurchaseDetail(this.listQuery.filter.starttime,this.listQuery.filter.endtime,val.identify,val.companynumber,this.listQuery.filter.directioncode,1) |
| | | }, |
| | | showUploadDialogHandler(idCard) { |
| | | this.$refs.upload.showDialog(idCard) |
| | |
| | | |
| | | searchProductSearch(){ |
| | | this.listQuery.pageIndex = 1 |
| | | const date1 = new Date(this.validTime[0]); |
| | | const date2 = new Date(this.validTime[1]); |
| | | const differenceInMs = Math.abs(date2 - date1); |
| | | const differenceInDays = differenceInMs / (1000 * 60 * 60 * 24) |
| | | if(differenceInDays > 32){ |
| | | this.$message({ |
| | | type: 'warning', |
| | | message: '时间跨度超过一个月的,请联系管理员查询数据' |
| | | }) |
| | | return |
| | | } |
| | | // const date1 = new Date(this.validTime[0]); |
| | | // const date2 = new Date(this.validTime[1]); |
| | | // const differenceInMs = Math.abs(date2 - date1); |
| | | // const differenceInDays = differenceInMs / (1000 * 60 * 60 * 24) |
| | | // if(differenceInDays > 32){ |
| | | // this.$message({ |
| | | // type: 'warning', |
| | | // message: '时间跨度超过一个月的,请联系管理员查询数据' |
| | | // }) |
| | | // return |
| | | // } |
| | | this.getPersonProductList() |
| | | }, |
| | | |