| | |
| | | <script> |
| | | import {getPersonDetailListData} from "@/api/productPurchaseSearch"; |
| | | import {computePageCount} from "../../../utils"; |
| | | import {getDLPersonDetailListData} from "../../../api/productPurchaseSearch"; |
| | | |
| | | export default { |
| | | name: "index", |
| | |
| | | |
| | | }, |
| | | methods:{ |
| | | openPersonPurchaseDetail(startTime,endTime,identify,enterpriseNumber,directionCode){ |
| | | openPersonPurchaseDetail(startTime,endTime,identify,enterpriseNumber,directionCode,type){ |
| | | this.listQuery.filter.starttime = startTime |
| | | this.listQuery.filter.endtime = endTime |
| | | this.listQuery.filter.identify = identify |
| | |
| | | this.listQuery.pageIndex = 1; |
| | | this.listQuery.pageSize = 10; |
| | | this.personPurchaseDetailVisible = true |
| | | this.getPersonProductDetailList() |
| | | if(type == 1){ |
| | | this.getPersonProductDetailList() |
| | | }else{ |
| | | this.getDLPersonProductDetailList() |
| | | } |
| | | }, |
| | | async getPersonProductDetailList(){ |
| | | this.listLoading = true |
| | |
| | | } |
| | | this.listLoading = false |
| | | }, |
| | | async getDLPersonProductDetailList(){ |
| | | this.listLoading = true |
| | | let res = await getDLPersonDetailListData(this.listQuery) |
| | | if(res.data.code === "200"){ |
| | | this.recordTotal = res.data.result.total |
| | | this.pageSize = res.data.result.size |
| | | this.pageTotal = computePageCount(res.data.result.total, res.data.result.size) |
| | | this.currentPage = res.data.result.current |
| | | this.personPurchaseDetailData = res.data.result.records |
| | | }else{ |
| | | this.$message({ |
| | | type:'warning', |
| | | message:res.data.message |
| | | }) |
| | | } |
| | | this.listLoading = false |
| | | }, |
| | | handleSizeChange(val) { |
| | | this.listQuery.pageSize = val |
| | | this.getPersonProductDetailList() |