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 @@ - +