diff --git a/src/api/wisdom/bill.js b/src/api/wisdom/bill.js new file mode 100644 index 0000000..6a38e02 --- /dev/null +++ b/src/api/wisdom/bill.js @@ -0,0 +1,93 @@ +import request from '@/utils/request' + +// 查询库存单据列表 +export function listBill(query) { + return request({ + url: '/wisdom/bill/list', + method: 'get', + params: query + }) +} + +// 查询库存单据详细 +export function getBill(id) { + return request({ + url: '/wisdom/bill/' + id, + method: 'get' + }) +} + +// 新增库存单据 +export function addBill(data) { + return request({ + url: '/wisdom/bill/add', + method: 'post', + data: data + }) +} + +// 修改库存单据 +export function updateBill(data) { + return request({ + url: '/wisdom/bill', + method: 'put', + data: data + }) +} + +// 删除库存单据 +export function delBill(id) { + return request({ + url: '/wisdom/bill/' + id, + method: 'delete' + }) +} + + + + + + + + +// 查询库存单据明细列表 +export function listStock(id) { + return request({ + url: '/wisdom/record/listByBillNo/' + id, + method: 'get' + }) +} + +// 查询库存单据明细详细 +export function getStock(id) { + return request({ + url: '/wisdom/stock/' + id, + method: 'get' + }) +} + +// 新增库存单据明细 +export function addStock(data) { + return request({ + url: '/wisdom/stock', + method: 'post', + data: data + }) +} + +// 修改库存单据明细 +export function updateStock(data) { + return request({ + url: '/wisdom/stock', + method: 'put', + data: data + }) +} + +// 删除库存单据明细 +export function delStock(id) { + return request({ + url: '/wisdom/stock/' + id, + method: 'delete' + }) +} diff --git a/src/views/wisdom/bill/index copy.vue b/src/views/wisdom/bill/index copy.vue deleted file mode 100644 index 940596a..0000000 --- a/src/views/wisdom/bill/index copy.vue +++ /dev/null @@ -1,1520 +0,0 @@ - - - - diff --git a/src/views/wisdom/bill/index.vue b/src/views/wisdom/bill/index.vue index e442211..30f7258 100644 --- a/src/views/wisdom/bill/index.vue +++ b/src/views/wisdom/bill/index.vue @@ -32,8 +32,8 @@ - - + + @@ -48,13 +48,13 @@ /> --> - + @@ -65,7 +65,7 @@ plain @click="handleAdd(false)" - v-hasPermi="['wisdom:stock:add']" + v-hasPermi="['wisdom:bill:add']" >新增入库 @@ -74,7 +74,7 @@ plain @click="handleExport" - v-hasPermi="['wisdom:stock:export']" + v-hasPermi="['wisdom:bill:export']" >导出 @@ -102,41 +102,35 @@ - - - - - + + + - - - - - + + + + + - + - + @@ -174,7 +168,7 @@ icon="Printer" @click="handlePrint" v-print="printViewInfo" - v-hasPermi="['wisdom:stock:print']" + v-hasPermi="['wisdom:bill:print']" >打印单据 @@ -198,7 +192,7 @@ plain icon="Switch" @click="handleSwitch" - v-hasPermi="['wisdom:stock:move']" + v-hasPermi="['wisdom:bill:move']" >移库 @@ -222,11 +216,11 @@ - + @@ -244,22 +238,22 @@ - - + + - + + - +