From 8f6a8545c3cf50ff0feac85f7b3c57db8fc3a0b4 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Thu, 12 Mar 2026 09:35:13 +0800
Subject: [PATCH] 修改

---
 src/views/purchase/danlingPerson.vue |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/src/views/purchase/danlingPerson.vue b/src/views/purchase/danlingPerson.vue
index b05ba4e..42990fc 100644
--- a/src/views/purchase/danlingPerson.vue
+++ b/src/views/purchase/danlingPerson.vue
@@ -133,8 +133,8 @@
                 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">
@@ -206,7 +206,7 @@
 <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";
@@ -287,6 +287,7 @@
             }
             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
@@ -305,7 +306,7 @@
         },
 
         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)
@@ -323,7 +324,7 @@
                 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){
@@ -407,17 +408,17 @@
 
         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()
         },
 

--
Gitblit v1.9.2