From 10c3bce9528daaf45682efa8b163e63c5006a72f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 21 十二月 2023 18:36:05 +0800
Subject: [PATCH] 必填只能编辑数量,非必填编辑销售单价,成本单价,数量+成本单价不填写可以通过校验填写则需要校验大于0

---
 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