From c4cad4c2bfaf93e872e2e2afdd71ea496a0546ba Mon Sep 17 00:00:00 2001 From: monanxiao Date: Tue, 15 Oct 2024 10:13:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=B8=8A=E4=BC=A0=E5=86=99?= =?UTF-8?q?=E4=B8=8D=E4=BA=86=EF=BC=8C=E6=97=A0=E6=B3=95=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/goods.js | 15 ++- src/views/goods/index.vue | 185 ++++++++++++++++++++++------------ src/views/goods/options.js | 6 +- src/views/system/homeSite.vue | 169 ++++++++++++++++++++----------- 4 files changed, 248 insertions(+), 127 deletions(-) diff --git a/src/api/modules/goods.js b/src/api/modules/goods.js index 1fb7207..5bebfb9 100644 --- a/src/api/modules/goods.js +++ b/src/api/modules/goods.js @@ -1,7 +1,7 @@ import service from "../request.js"; const API_BASE_URL = '/goods'; -// 客户列表 +// 服务项目列表 export function getGoodsList(query) { return service({ method: "get", @@ -9,6 +9,8 @@ export function getGoodsList(query) { data: query, }); } + +// 添加服务项目 export function addGoods(query) { return service({ method: "post", @@ -16,6 +18,8 @@ export function addGoods(query) { data: query, }); } + +// 更新服务项目 export function updateGoods(query) { return service({ method: "put", @@ -23,3 +27,12 @@ export function updateGoods(query) { data: query, }); } + +// 删除服务项目 +export function delGoods(query) { + return service({ + method: "delete", + url: `${API_BASE_URL}/${query}`, + data: query, + }); +} diff --git a/src/views/goods/index.vue b/src/views/goods/index.vue index 113c9df..6d83845 100644 --- a/src/views/goods/index.vue +++ b/src/views/goods/index.vue @@ -7,7 +7,7 @@ - + @@ -31,6 +31,16 @@ + + + + +
- 取消 + 取消 确认
@@ -72,10 +82,6 @@ - + +