diff --git a/src/api/product/stock.js b/src/api/product/stock.js new file mode 100644 index 0000000..3346c97 --- /dev/null +++ b/src/api/product/stock.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询商品库存录入记录列表 +export function listStock(query) { + return request({ + url: '/product/stock/list', + method: 'get', + params: query + }) +} + +// 查询商品库存录入记录详细 +export function getStock(id) { + return request({ + url: '/product/stock/' + id, + method: 'get' + }) +} + +// 新增商品库存录入记录 +export function addStock(data) { + return request({ + url: '/product/stock', + method: 'post', + data: data + }) +} + +// 修改商品库存录入记录 +export function updateStock(data) { + return request({ + url: '/product/stock', + method: 'put', + data: data + }) +} + +// 删除商品库存录入记录 +export function delStock(id) { + return request({ + url: '/product/stock/' + id, + method: 'delete' + }) +} diff --git a/src/views/product/evaluate/index.vue b/src/views/product/evaluate/index.vue index 271adbe..a71196c 100644 --- a/src/views/product/evaluate/index.vue +++ b/src/views/product/evaluate/index.vue @@ -105,9 +105,11 @@ - - - + + + @@ -122,8 +124,9 @@