From c0ce01494d8709ae0154ae2951b0aef0bb29c37d Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Thu, 3 Jul 2025 09:36:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/foodManage/purchaseManage.js | 60 ++++++ .../accountCenter/account/consume/index.vue | 1 + src/views/dashboard/PanelGroup.vue | 4 +- .../purchaseManage/purchasePlan/edit.vue | 195 +++++------------- .../purchaseManage/purchasePlan/index.vue | 161 +++++++++------ src/views/index_v1.vue | 2 +- src/views/kitchen/staffManage/staff/index.vue | 18 +- src/views/system/notice/index.vue | 7 +- 8 files changed, 225 insertions(+), 223 deletions(-) diff --git a/src/api/foodManage/purchaseManage.js b/src/api/foodManage/purchaseManage.js index 2c2ba16f..72a2b8a0 100644 --- a/src/api/foodManage/purchaseManage.js +++ b/src/api/foodManage/purchaseManage.js @@ -88,4 +88,64 @@ export function delPurchaseContractApi(data) { //"merchant-id":"378915229716713472", } }) +} + + + +//获取采购计划分页列表 +export function purchasePlanPageApi(data) { + return request({ + url: '/smart-canteen/ims_purchase_plan/list', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data:data, + params:{ + pageNum:data.pageNum, + pageSize:data.pageSize + } + }) +} +//获取采购计划分页详情 +export function getPurchasePlanInfoApi(data) { + return request({ + url: '/smart-canteen/ims_purchase_plan/'+data.planId, + method: 'get', + headers: { + //"merchant-id":"378915229716713472", + } + }) +} +// 新增采购计划 +export function addPurchasePlanApi(data) { + return request({ + url: '/smart-canteen/ims_purchase_plan', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data: data + }) +} +// 修改采购计划 +export function editPurchasePlanApi(data) { + return request({ + url: '/smart-canteen/ims_purchase_plan/edit', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data: data + }) +} +// 删除采购计划 +export function delPurchasePlanApi(data) { + return request({ + url: '/smart-canteen/ims_purchase_plan/del/'+data.planIds, + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + } + }) } \ No newline at end of file diff --git a/src/views/canteen/accountCenter/account/consume/index.vue b/src/views/canteen/accountCenter/account/consume/index.vue index 17491900..6a1392ee 100644 --- a/src/views/canteen/accountCenter/account/consume/index.vue +++ b/src/views/canteen/accountCenter/account/consume/index.vue @@ -78,6 +78,7 @@ 消费退款 --> +