From 72f6f5abb7d6a90c9edfb69db63907ef3e17ef03 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期三, 22 十一月 2023 11:31:27 +0800 Subject: [PATCH] 销售明细单添加确认订单前确认是否选择项目 --- src/api/sales/salesDetails.js | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 52 insertions(+), 4 deletions(-) diff --git a/src/api/sales/salesDetails.js b/src/api/sales/salesDetails.js index fddd77d..5857dd7 100644 --- a/src/api/sales/salesDetails.js +++ b/src/api/sales/salesDetails.js @@ -1,10 +1,11 @@ import request from "@/common/untils/request.js" // 閿�鍞槑缁嗗垪琛� -export function getSalesDetailsList() { +export function getSalesDetailsList(data) { return request({ url: "/api/salesDetails/list", - method: "get" + method: "post", + data }) } // 娣诲姞閿�鍞槑缁� @@ -18,8 +19,17 @@ // 鍒犻櫎閿�鍞槑缁� export function getDelSalesDetails(data) { return request({ - url: "/api/salesDetails/delete/" + data.id, - method: "delete" + url: "/api/salesDetails/delete", + method: "delete", + data + }) +} +// 淇敼閿�鍞槑缁嗙姸鎬� +export function updateStatus(data) { + return request({ + url: "/api/salesDetails/updateStatus", + method: "post", + data }) } // 鏇存柊閿�鍞槑缁� @@ -30,3 +40,41 @@ data }) } +// 鑾峰彇浜у搧/搴撳瓨淇℃伅 +export function getProductInventoryInfo(number) { + return request({ + url: `/api/salesDetails/getProductInventoryInfo/${number}`, + method: "get" + }) +} +// 鑾峰彇鍒堕�犱俊鎭� +export function getProductOrderInfo(number) { + return request({ + url: `/api/product/getProductOrderInfo/${number}`, + method: "get" + }) +} +// 鍒涘缓浜у搧鍑哄簱淇℃伅 +export function createOperation(data) { + return request({ + url: "/api/salesDetails/createOperation", + method: "post", + data + }) +} +// 娣诲姞閿�鍞槑缁� +export function getProjectList(data) { + return request({ + url: "/api/salesDetails/getApsProjectList", + method: "get", + data + }) +} +// 鎺ㄩ�侀攢鍞槑缁嗕俊鎭埌aps椤圭洰妯″潡 +export function sendSalesDetailsToApsProject(data) { + return request({ + url: "/api/salesDetails/sendSalesDetailsToApsProject", + method: "post", + data + }) +} -- Gitblit v1.8.0