鲁班七号
2023-01-28 9b788804691f2039dffe793e0db76bcb68d2bb26
src/views/purchase/person.vue
@@ -127,6 +127,7 @@
            </div>
            </div>
        </div>
        <p style="color:red">提示:2023年1月13日(08:00~18:00)系统服务器升级期间,销售数据可能产生个别偏差,1月13日销售数据请以线下手工台账为准。</p>
        <div class="table_content">
            <el-table
                v-loading="listLoading"
@@ -155,6 +156,9 @@
                <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">
@@ -201,6 +205,7 @@
import {getCityListData, getProvinceListData , } from "../../api/area";
import uploadDialog from "./customerPhoto/index";
import Cookies from "js-cookie";
export default {
    name: "addSelfExam",
    data(){
@@ -295,14 +300,15 @@
                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',
@@ -311,7 +317,6 @@
            }
            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)