ly 1 жил өмнө
parent
commit
1bf70e85be

+ 11 - 0
src/api/business/financial/collection.js

@@ -217,4 +217,15 @@ export function listTask() {
     url: '/business/collection/listTask',
     method: 'post',
   })
+}
+
+export function exportStatistics(query) {
+  request.defaults.baseURL = '/ezhizao-yzbh-financial'
+  download(
+    "/business/collection/exportStatistics",
+    {
+      ...query,
+    },
+    `收款统计报表导出_${new Date().getTime()}.xlsx`
+  )
 }

+ 8 - 6
src/views/business/collect/count/index.vue

@@ -70,7 +70,7 @@
             </el-table-column>
             <el-table-column label="申请人" align="center" prop="applierName">
                 <template #default="scope">
-                    {{scope.row.applierName}}
+                    <el-link type="primary" @click="openDetail()"> {{scope.row.applierName}}</el-link>
                 </template>
             </el-table-column>
             <el-table-column label="合同类型" align="center" prop="contractType">
@@ -81,14 +81,14 @@
             </el-table-column>
             <el-table-column label="实收" align="center" prop="reallyDetailAmount">
                 <template #default="scope">
-                  <span>{{scope.row.reallyDetailAmount}}</span>
+                    <el-link type="primary" @click="openDetail()"> {{scope.row.reallyDetailAmount}}</el-link>
                 </template>
             </el-table-column>
             <el-table-column label="待收" align="center" prop="waitDetailAmount">
             </el-table-column>
             <el-table-column label="支出" align="center" prop="outAmount">
                 <template #default="scope">
-                    <span> {{scope.row.outAmount}}</span>
+                    <el-link type="primary" @click="openDetail()"> {{scope.row.outAmount}}</el-link>
                 </template>
             </el-table-column>
             <el-table-column label="审核时间" align="center" prop="examineTime">
@@ -107,7 +107,7 @@
     //     statistics
     // } from "@/api/business/account";
     import {
-        statistics, listTask
+        statistics, listTask, exportStatistics
     } from "@/api/business/financial/collection";
     import { getToken, getTenant } from "@/utils/auth";
     const { proxy } = getCurrentInstance();
@@ -185,7 +185,9 @@
     }
 
 
-
+    function openDetail() {
+        console.log(111);
+    }
     /** 保存按钮操作 */
     function handleSave(row) {
         if (row.name == null || row.name == "") {
@@ -262,7 +264,7 @@
 
     /** 导出按钮操作 */
     function handleExport() {
-        exportAccount(queryParams.value);
+        exportStatistics(queryParams.value);
     }
 
     getList();

+ 1 - 1
src/views/business/crm/order/form.vue

@@ -242,7 +242,7 @@
                 <span >{{ selectedOptionLabel }}</span>
               </el-form-item>
             </el-col>
-            <el-col :span="5">
+            <el-col :span="6">
               <el-form-item label="甲方" prop="boss">
                 <el-input
                   v-if="editStatus"