From 4b1bbd4a7e8b3ad1a5cfdc0534d998d7070b7846 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 28 二月 2024 14:38:33 +0800 Subject: [PATCH] 报价单模块 销售机会带出对应的产品信息,切换销售机会或者清除操作的时候清空产品管理列表 --- src/api/sales/generatePlan.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/api/sales/generatePlan.js b/src/api/sales/generatePlan.js index cf4fbbc..9a262da 100644 --- a/src/api/sales/generatePlan.js +++ b/src/api/sales/generatePlan.js @@ -1,10 +1,11 @@ import request from "@/common/untils/request.js" // 鐢熸垚璁″垝鍒楄〃 -export function getPlanList() { +export function getPlanList(data) { return request({ url: "/api/plan/list", - method: "get" + method: "post", + data }) } // 娣诲姞鐢熸垚璁″垝 @@ -18,8 +19,9 @@ // 鍒犻櫎鐢熸垚璁″垝 export function getDelPlan(data) { return request({ - url: "/api/plan/delete/" + data.id, - method: "delete" + url: "/api/plan/delete", + method: "delete", + data }) } // 鏇存柊鐢熸垚璁″垝 -- Gitblit v1.8.0