更新
This commit is contained in:
parent
2a89236d41
commit
e18df5eff1
@ -116,7 +116,12 @@ class OpurchaseclassController extends BaseAdminController
|
|||||||
{
|
{
|
||||||
$id = $this->request->get('id');
|
$id = $this->request->get('id');
|
||||||
$page_no = $this->request->get('page_no', 1);
|
$page_no = $this->request->get('page_no', 1);
|
||||||
$res = Opurchaseinfo::where('pid', $id)->page($page_no, 25)->select()->each(function ($item) {
|
$is_push = $this->request->get('is_push');
|
||||||
|
$where=['pid'=> $id];
|
||||||
|
if($is_push){
|
||||||
|
$where['is_push'] = $is_push;
|
||||||
|
}
|
||||||
|
$res = Opurchaseinfo::where()->page($page_no, 25)->select()->each(function ($item) {
|
||||||
$find = Goods::where('id', $item['goods'])->with('unitName')->find();
|
$find = Goods::where('id', $item['goods'])->with('unitName')->find();
|
||||||
$item['goods_name'] = $find['name'];
|
$item['goods_name'] = $find['name'];
|
||||||
$item['unit_name'] = $find['unit_name'];
|
$item['unit_name'] = $find['unit_name'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user