diff --git a/src/api/supplierManage/index.js b/src/api/supplierManage/index.js index 2436f2f0..0c041f87 100644 --- a/src/api/supplierManage/index.js +++ b/src/api/supplierManage/index.js @@ -1,12 +1,65 @@ import request from '@/utils/request' - - - - - - - +// 供应商列表 +export function supplierPageApi(data) { + return request({ + url: '/smart-canteen/supplier_manage/list', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} + + +// 新增供应商 +export function addSupplierApi(data) { + return request({ + url: '/smart-canteen/supplier_manage/add', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } + +// 修改供应商 +export function editSupplierApi(data) { + return request({ + url: '/smart-canteen/supplier_manage/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } + +// 删除供应商 +export function removeSupplierApi(data) { + return request({ + url: '/smart-canteen/supplier_manage/remove', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } + +// 变更供应商状态 +export function editStatusSupplierApi(data) { + return request({ + url: '/smart-canteen/supplier_manage/edit/status', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } diff --git a/src/views/supplierManage/supplierList/index.vue b/src/views/supplierManage/supplierList/index.vue index fa2161dc..b438d5a1 100644 --- a/src/views/supplierManage/supplierList/index.vue +++ b/src/views/supplierManage/supplierList/index.vue @@ -82,7 +82,13 @@ - + + + + \ No newline at end of file