|
@@ -37,7 +37,7 @@ class DepotGoods extends Controller
|
|
|
{
|
|
|
$lid = input('id');
|
|
|
$search_name = input('search_name','');
|
|
|
- $this->title = Db::name('Depot')->where('id',$lid)->value('name');
|
|
|
+ $this->title = '商品盘点' ;Db::name('Depot')->where('id',$lid)->value('name');
|
|
|
$this->lid = $lid;
|
|
|
$where = [];
|
|
|
$where[]= ['v.depot_id','=',$lid];
|
|
@@ -165,6 +165,7 @@ class DepotGoods extends Controller
|
|
|
$id = $this->request->get('id');
|
|
|
$depot_goods = Db::name('DepotGoods')->where(['id' => $id])->find();
|
|
|
$list = Db::name('DepotGoodsItem')->where(['goods_id' => $depot_goods['goods_id'],'depot_id'=>$depot_goods['depot_id']])->select();
|
|
|
+ var_dump($list);
|
|
|
$this->fetch('', ['list' => $list,'depot_id'=>$depot_goods['depot_id'],'goods_id'=>$depot_goods['goods_id']]);
|
|
|
} else {
|
|
|
list($post, $data) = [$this->request->post(), []];
|