Commit 2554ddd5 by 杨树贤

供应商查询

parent afe0256a
...@@ -15,6 +15,7 @@ class SupplierMemoService ...@@ -15,6 +15,7 @@ class SupplierMemoService
$limit = $request->get('limit', 10); $limit = $request->get('limit', 10);
$filter = new SupplierMemoFilter(); $filter = new SupplierMemoFilter();
$query = $filter->listFilter($request); $query = $filter->listFilter($request);
$query->where('supplier_id',$request->input('supplier_id'));
$list = $query->paginate($limit)->toArray(); $list = $query->paginate($limit)->toArray();
$transformer = new SupplierMemoTransformer(); $transformer = new SupplierMemoTransformer();
$list['data'] = $transformer->transformList($list['data']); $list['data'] = $transformer->transformList($list['data']);
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
table.render({ table.render({
elem: '#memoList', elem: '#memoList',
url: '/api/supplier_memo/getSupplierMemoList', url: '/api/supplier_memo/getSupplierMemoList?supplier_id='+getQueryVariable('supplier_id'),
method: 'post', method: 'post',
size: 'sm', size: 'sm',
cellMinWidth: 80,//全局定义常规单元格的最小宽度 cellMinWidth: 80,//全局定义常规单元格的最小宽度
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment