| | |
| | | <div class="basic_search" > |
| | | <el-button style="margin-left: 10px;" type="primary" @click="reset()" size="small">重置</el-button> |
| | | <el-button style="margin-left: 10px;" type="primary" icon="el-icon-search" @click="searchProductSearch('查询','')" size="small">查询</el-button> |
| | | <el-button style="margin-left: 10px;" type="primary" icon="el-icon-download" @click="exportToExcel" size="small">导出</el-button> |
| | | <el-button style="margin-left: 10px;" type="primary" icon="el-icon-download" @click="exportToExcel" v-long-re-click size="small">导出</el-button> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | <el-table-column label="退货数量(挂、个)" prop="returnnum" align="center" width="100"> |
| | | </el-table-column> |
| | | <el-table-column label="最近购买时间" prop="saletime" align="center" width="200"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.row.saletime | formatDate}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="证件照" align="center"> |
| | | <template slot-scope="scope"> |
| | |
| | | /> |
| | | <br> |
| | | </div> |
| | | <el-dialog |
| | | title="提示" |
| | | center |
| | | :visible.sync="reClickTip" |
| | | width="50%"> |
| | | <span style="color: red">由于导出数据量大,请各监管单位导出数据时不要连续点击,导出按钮已限制30s内只允许点击一次。</span> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="reClickTip = false">取 消</el-button> |
| | | <el-button type="primary" @click="reClickTip = false">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <personPurchaseDetail ref="person"></personPurchaseDetail> |
| | | <upload-dialog ref="upload" @refresh="refresh"></upload-dialog> |
| | | </div> |
| | |
| | | import {getCityListData, getProvinceListData , } from "../../api/area"; |
| | | import uploadDialog from "./customerPhoto/index"; |
| | | import Cookies from "js-cookie"; |
| | | |
| | | export default { |
| | | name: "addSelfExam", |
| | | name: "person", |
| | | data(){ |
| | | return{ |
| | | tableKey:'', |
| | | validTime:['',''], |
| | | reClickTip: false, |
| | | listQuery: { |
| | | pageSize:10, |
| | | pageIndex:1, |
| | |
| | | uploadDialog |
| | | }, |
| | | created() { |
| | | console.log('Component created:', this.$options.name); |
| | | this.initValidTime() |
| | | this.getPersonProductList() |
| | | this.getProvince() |
| | |
| | | this.listQuery.filter.endtime = '' |
| | | } |
| | | let res = await getPersonListData(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 |
| | | res.data.result.records.map(item => item.path = (item.path === undefined ? null : process.env.IMG_API + item.path)) |
| | | this.previewList = res.data.result.records.map(item => item.path).filter(item=>item !== null) |
| | | this.personPurchaseData = res.data.result.records |
| | | let data = JSON.parse(Base64.decode(res.data)) |
| | | if(data.code === "200"){ |
| | | this.recordTotal = data.result.total |
| | | this.pageSize = data.result.size |
| | | this.pageTotal = computePageCount(data.result.total, data.result.size) |
| | | this.currentPage = data.result.current |
| | | data.result.records.map(item => item.path = (item.path === undefined ? null : process.env.IMG_API + item.path)) |
| | | this.previewList = data.result.records.map(item => item.path).filter(item=>item !== null) |
| | | this.personPurchaseData = data.result.records |
| | | }else{ |
| | | this.$message({ |
| | | type:'warning', |
| | |
| | | } |
| | | this.listLoading = false |
| | | }, |
| | | |
| | | |
| | | showPurchaseDetail(val){ |
| | | this.$refs.person.openPersonPurchaseDetail(this.listQuery.filter.starttime,this.listQuery.filter.endtime,val.identify,val.companynumber,this.listQuery.filter.directioncode) |
| | |
| | | }, |
| | | |
| | | async exportToExcel(){ |
| | | this.reClickTip = true |
| | | let res = await exportPerson(this.listQuery) |
| | | if(res.data.code === '200'){ |
| | | this.reClickTip = false |
| | | if(res.data.result === null ||res.data.result === [] || res.data.result.length === 0){ |
| | | this.$message({ |
| | | type:'warning', |