浏览代码

1.新增企业客户联系人来单与评估收入查询

GouGengquan 12 小时之前
父节点
当前提交
34146b3ff9
共有 2 个文件被更改,包括 12 次插入4 次删除
  1. 8 0
      src/api/modules/customerLinkman.js
  2. 4 4
      src/views/customer/customerLinkman.vue

+ 8 - 0
src/api/modules/customerLinkman.js

@@ -37,4 +37,12 @@ export default {
   getCustomerLinkmanPage(params) {
     return request.get(`customerLinkman/getCustomerLinkmanPage`, { params: params })
   },
+  // 分页查询企业客户联系人来单列表
+  getCustomerLinkmanOrderPage(params) {
+    return request.get(`customerLinkman/getCustomerLinkmanOrderPage`, { params: params })
+  },
+  // 分页查询企业客户联系人评估收入列表
+  getCustomerLinkmanIncomePage(params) {
+    return request.get(`customerLinkman/getCustomerLinkmanIncomePage`, { params: params })
+  },
 }

+ 4 - 4
src/views/customer/customerLinkman.vue

@@ -74,13 +74,13 @@
         </el-table-column>
         <el-table-column label="来单量" align="center" prop="orderVolume">
           <template slot-scope="{row}">
-            <el-link v-if="row.orderVolume > 0">{{ row.orderVolume }}</el-link>
+            <el-link v-if="row.orderVolume > 0" @click="openOrderDialog(row.id)">{{ row.orderVolume }}</el-link>
             <span v-else>{{ row.orderVolume }}</span>
           </template>
         </el-table-column>
         <el-table-column label="评估收入" align="center" prop="estimatedRevenue">
           <template slot-scope="{row}">
-            <el-link v-if="row.estimatedRevenue > 0">{{ row.estimatedRevenue }}</el-link>
+            <el-link v-if="row.estimatedRevenue > 0" @click="openIncomeDialog(row.id)">{{ row.estimatedRevenue }}</el-link>
             <span v-else>{{ row.estimatedRevenue }}</span>
           </template>
         </el-table-column>
@@ -688,7 +688,7 @@ export default {
         this.orderListQuery.createdStartTime = this.selectDateOrder[0] + ' 00:00:00';
         this.orderListQuery.createdEndTime = this.selectDateOrder[1] + ' 23:59:59';
       }
-      this.$api.customerLinkman.getCustomerPersonalOrderPage(this.orderListQuery).then((res) => {
+      this.$api.customerLinkman.getCustomerLinkmanOrderPage(this.orderListQuery).then((res) => {
         if (res.code === 200) {
           this.orderData = res.data;
         }
@@ -736,7 +736,7 @@ export default {
         this.incomeListQuery.collectionStartTime = this.selectDateIncome[0] + ' 00:00:00';
         this.incomeListQuery.collectionEndTime = this.selectDateIncome[1] + ' 23:59:59';
       }
-      this.$api.customerLinkman.getCustomerPersonalIncomePage(this.incomeListQuery).then((res) => {
+      this.$api.customerLinkman.getCustomerLinkmanIncomePage(this.incomeListQuery).then((res) => {
         if (res.code === 200) {
           this.incomeData = res.data;
         }