From aaf5ee94d7a0ca8336b214b629208c8f91c06f6e Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Tue, 1 Jul 2025 14:43:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/foodManage/supplierManage.js | 91 +++++++++++++ .../supplierManage/supplierList/index.vue | 123 +++++++++--------- 2 files changed, 156 insertions(+), 58 deletions(-) diff --git a/src/api/foodManage/supplierManage.js b/src/api/foodManage/supplierManage.js index e69de29b..6af20815 100644 --- a/src/api/foodManage/supplierManage.js +++ b/src/api/foodManage/supplierManage.js @@ -0,0 +1,91 @@ +import request from '@/utils/request' + +// 分页查询 列表 +export function supplierPageApi(data) { + return request({ + url: '/smart-canteen/ims_supplier/list', + method: 'get', + headers: { + //"merchant-id":"378915229716713472", + }, + params:data + }) +} + +// 新增 +export function addSupplierApi(data) { + return request({ + url: '/smart-canteen/ims_supplier/add', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 修改 +export function editSupplierApi(data) { + return request({ + url: '/smart-canteen/ims_supplier/edit', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 删除 +export function removeSupplierApi(data) { + return request({ + url: '/smart-canteen/ims_supplier/remove', + method: 'post', + data: data + }) +} + +// 变更供应商状态 +export function editStatusSupplierApi(data) { + return request({ + url: '/smart-canteen/ims_supplier/edit/status', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data: data + }) +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/foodManage/supplierManage/supplierList/index.vue b/src/views/foodManage/supplierManage/supplierList/index.vue index 93f3767e..48b9e00a 100644 --- a/src/views/foodManage/supplierManage/supplierList/index.vue +++ b/src/views/foodManage/supplierManage/supplierList/index.vue @@ -84,12 +84,12 @@ - +