收银台
This commit is contained in:
parent
79cded741a
commit
62f5e61959
@ -1,9 +1,10 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询商品列表
|
||||
export function listTrack(stockId) {
|
||||
export function listTrack(query) {
|
||||
return request({
|
||||
url: '/business/convenience/stockTrack/list/'+stockId,
|
||||
url: '/business/convenience/stockTrack/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
@ -200,8 +200,8 @@
|
||||
<pagination
|
||||
v-show="total1>0"
|
||||
:total="total1"
|
||||
:page.sync="queryParams.page"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
:page.sync="queryParam.page"
|
||||
:limit.sync="queryParam.pageSize"
|
||||
@pagination="getTrackList"
|
||||
/>
|
||||
</el-card>
|
||||
@ -261,7 +261,7 @@ export default {
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
id: '',
|
||||
name: '',
|
||||
stockId:'',
|
||||
},
|
||||
// 商品分类列表
|
||||
cvsGoodList:[],
|
||||
@ -303,9 +303,9 @@ export default {
|
||||
this.dialogVisible = false
|
||||
},
|
||||
// 获取库存跟踪信息
|
||||
getTrackList(stockId){
|
||||
getTrackList(){
|
||||
this.loading = true;
|
||||
listTrack(stockId).then(response => {
|
||||
listTrack(this.queryParam).then(response => {
|
||||
this.trackList = response.data.records;
|
||||
this.total1 = response.data.total;
|
||||
this.loading = false;
|
||||
@ -317,7 +317,8 @@ export default {
|
||||
getStock(data.id).then(response => {
|
||||
this.form = response.data
|
||||
})
|
||||
this.getTrackList(data.id);
|
||||
this.queryParam.stockId = data.id;
|
||||
this.getTrackList();
|
||||
},
|
||||
// 查询列表
|
||||
getList() {
|
||||
|
@ -25,10 +25,10 @@ public class StockTrackController extends BaseController {
|
||||
* @param pageSize
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/list/{stockId}")
|
||||
@GetMapping("/list")
|
||||
public ResponseObject list(@RequestParam(value = "page",defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize,
|
||||
@PathVariable Integer stockId){
|
||||
Integer stockId){
|
||||
Page page =new Page(pageNo,pageSize);
|
||||
IPage<StockTrack> list = trackService.selectStockTrackList(page,stockId);
|
||||
return getSuccessResult(list);
|
||||
|
Loading…
Reference in New Issue
Block a user