diff --git a/src/api/business/batch.js b/src/api/business/batch.js new file mode 100644 index 0000000..a907883 --- /dev/null +++ b/src/api/business/batch.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询批次管理列表 +export function listBatch(query) { + return request({ + url: '/business/batch/list', + method: 'get', + params: query + }) +} + +// 查询批次管理详细 +export function getBatch(batchId) { + return request({ + url: '/business/batch/' + batchId, + method: 'get' + }) +} + +// 新增批次管理 +export function addBatch(data) { + return request({ + url: '/business/batch', + method: 'post', + data: data + }) +} + +// 修改批次管理 +export function updateBatch(data) { + return request({ + url: '/business/batch', + method: 'put', + data: data + }) +} + +// 删除批次管理 +export function delBatch(batchId) { + return request({ + url: '/business/batch/' + batchId, + method: 'delete' + }) +} diff --git a/src/views/business/batch/index.vue b/src/views/business/batch/index.vue new file mode 100644 index 0000000..2fd6196 --- /dev/null +++ b/src/views/business/batch/index.vue @@ -0,0 +1,407 @@ + + +