From 6be74fae87a57996e8cf1b8778ad16ddbb1f870b Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 27 二月 2024 16:57:10 +0800
Subject: [PATCH] 如果销售机会,客户名称为空查询所有销售报价单列表,否则查对应报价单,如果客户名称为空查所有销售机会列表

---
 src/api/sales/quotation.js |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/api/sales/quotation.js b/src/api/sales/quotation.js
index 9caf191..9fa409f 100644
--- a/src/api/sales/quotation.js
+++ b/src/api/sales/quotation.js
@@ -1,10 +1,11 @@
 import request from "@/common/untils/request.js"
 
 // 鎶ヤ环鍗曞垪琛�
-export function getQuotationList() {
+export function getQuotationList(data) {
   return request({
     url: "/api/quotation/list",
-    method: "get"
+    method: "post",
+    data
   })
 }
 // 娣诲姞鎶ヤ环鍗�
@@ -18,8 +19,9 @@
 // 鍒犻櫎鎶ヤ环鍗�
 export function getDelQuotation(data) {
   return request({
-    url: "/api/quotation/delete/" + data.id,
-    method: "delete"
+    url: "/api/quotation/delete",
+    method: "delete",
+    data
   })
 }
 // 鏇存柊鎶ヤ环鍗�
@@ -30,3 +32,11 @@
     data
   })
 }
+// 鎶ヤ环鍗曠粺璁�
+export function getQuotationStatistics(data) {
+  return request({
+    url: "/api/quotation/statistics",
+    method: "get",
+    data
+  })
+}

--
Gitblit v1.8.0