diff --git a/src/api/wisdom/record.js b/src/api/wisdom/record.js index 231c47c..eb3d212 100644 --- a/src/api/wisdom/record.js +++ b/src/api/wisdom/record.js @@ -1,44 +1,26 @@ import request from '@/utils/request' - -// 查询出入库记录列表 -export function listRecord(query) { +export function listStock(data) { return request({ - url: '/wisdom/record/list', - method: 'get', - params: query + // url: '/wisdom/stock/page', + // url: '/wisdom/stock/pageStatistics', + // url: '/wisdom/stock/pageList', + url: '/wisdom/record/list', + method: 'get', + params: data }) } - -// 查询出入库记录详细 -export function getRecord(id) { +export function listSearch(data) { return request({ - url: '/wisdom/record/' + id, - method: 'get' + // url: '/wisdom/stock/page', + url: '/wisdom/stock/pageStatistics', + method: 'post', + data: data }) } - -// 新增出入库记录 -export function addRecord(data) { +export function getSumInfoI(data) { return request({ - url: '/wisdom/record', - method: 'post', - data: data - }) -} - -// 修改出入库记录 -export function updateRecord(data) { - return request({ - url: '/wisdom/record', - method: 'put', - data: data - }) -} - -// 删除出入库记录 -export function delRecord(id) { - return request({ - url: '/wisdom/record/' + id, - method: 'delete' + url: '/stat/statistics', + method: 'post', + data: data }) } diff --git a/src/api/wisdom/stockSearch.js b/src/api/wisdom/stockSearch.js deleted file mode 100644 index cfccc00..0000000 --- a/src/api/wisdom/stockSearch.js +++ /dev/null @@ -1,25 +0,0 @@ -import request from '@/utils/request' -export function listStock(data) { - return request({ - // url: '/wisdom/stock/page', - // url: '/wisdom/stock/pageStatistics', - url: '/wisdom/stock/pageList', - method: 'post', - data: data - }) -} -export function listSearch(data) { - return request({ - // url: '/wisdom/stock/page', - url: '/wisdom/stock/pageStatistics', - method: 'post', - data: data - }) -} -export function getSumInfoI(data) { - return request({ - url: '/stat/statistics', - method: 'post', - data: data - }) -} diff --git a/src/views/wisdom/record/index.vue b/src/views/wisdom/record/index.vue index ca656a3..0de2d28 100644 --- a/src/views/wisdom/record/index.vue +++ b/src/views/wisdom/record/index.vue @@ -2,20 +2,7 @@
- - - - - - - + - + - - + + - - - + + + - - - - - - - - + - + - - + - - - + + + - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + - + + + + + + + + + + + 搜索 + 重置 + + - - 导出 - - - 搜索 - 重置 - - - + - - + + @@ -215,423 +171,115 @@ + + - - - - - - - - + + + + - - - + @pagination="getList" + /> Preview Image - -
+ \ No newline at end of file