| | |
| | | }) |
| | | } |
| | | |
| | | export function getDLPersonDetailListData(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'Authorization': getToken() |
| | | }, |
| | | url: process.env.BASE_API+ '/order/getDanLingPurchaseDetailInUnit ', |
| | | method: 'post', |
| | | data:data |
| | | }) |
| | | } |
| | | |
| | | export function getProductListData(data) { |
| | | return request({ |
| | | headers:{ |
| | |
| | | }) |
| | | } |
| | | |
| | | export function exportDLPerson(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'Authorization': getToken() |
| | | }, |
| | | url: process.env.BASE_API+ '/order/export/danLingSaleRecord4', |
| | | method: 'post', |
| | | data:data |
| | | }) |
| | | } |
| | | |
| | | export function exportArea(data) { |
| | | return request({ |
| | | headers:{ |
| | |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column label="序号" type="index" align="center" width="60"/> |
| | | <el-table-column label="地区" prop="city" align="center" width="150"> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="地区" prop="city" align="center" width="150">--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column label="公司名称" prop="enterprisename" align="center" width="200"> |
| | | </el-table-column> |
| | | <el-table-column label="公司编号" prop="companynumber" align="center"> |
| | |
| | | <script> |
| | | import personPurchaseDetail from './personPurchaseDetail/index' |
| | | import { computePageCount } from "../../utils"; |
| | | import {exportPerson, getDLPersonListData, getPersonListData} from "../../api/productPurchaseSearch"; |
| | | import {exportDLPerson, exportPerson, getDLPersonListData, getPersonListData} from "../../api/productPurchaseSearch"; |
| | | import {getCityListData, getProvinceListData , } from "../../api/area"; |
| | | import uploadDialog from "./customerPhoto/index"; |
| | | import Cookies from "js-cookie"; |
| | |
| | | } |
| | | let res = await getDLPersonListData(this.listQuery) |
| | | let data = JSON.parse(Base64.decode(res.data)) |
| | | console.log(data,'data') |
| | | if(data.code === "200"){ |
| | | this.recordTotal = data.result.total |
| | | this.pageSize = data.result.size |
| | |
| | | }, |
| | | |
| | | 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,2) |
| | | }, |
| | | showUploadDialogHandler(idCard) { |
| | | this.$refs.upload.showDialog(idCard) |
| | |
| | | this.listQuery.filter.starttime = '' |
| | | this.listQuery.filter.endtime = '' |
| | | } |
| | | let res = await exportPerson(this.listQuery) |
| | | let res = await exportDLPerson(this.listQuery) |
| | | if(res.data.code === '200'){ |
| | | this.reClickTip = false |
| | | if(res.data.result === null ||res.data.result === [] || res.data.result.length === 0){ |
| | |
| | | }, |
| | | |
| | | 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) |
| | |
| | | <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 |
| | | 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() |