Commit 561e2e76 authored by zhuwei's avatar zhuwei

搜索门店

parent 16cf8a6f
......@@ -1095,4 +1095,5 @@ class Broker extends Basic
return $this->response($result['code'], $result['msg']);
}
}
\ No newline at end of file
......@@ -283,6 +283,31 @@ class StoreFee extends Basic
}
/**
* 搜索门店
* @return \think\Response
*/
public function selectStore()
{
$params = $this->params;
/*$params = array(
"store_name" => '测试'
);*/
$conditions = [];
if (!empty($params['store_name'])) {
$conditions['store_name'] = ['LIKE', '%'.$params['store_name'].'%'];
}
$m_store = new AStore();
$store_field = 'id,store_name';
$store_result = $m_store->getStore($conditions, $store_field);
if($store_result)
return $this->response("101", "成功",[]);
return $this->response("200", "成功",$store_result);
}
}
\ No newline at end of file
......@@ -525,6 +525,7 @@ Route::group('index', [
'editOffice' => [ 'index/StoreFee/editOffice', [ 'method' => 'POST|GET' ] ],
'getStoreList' => [ 'index/StoreFee/getStoreList', [ 'method' => 'POST|GET' ] ],
'bindStore' => [ 'index/StoreFee/bindStore', [ 'method' => 'POST|GET' ] ],
'selectStore' => [ 'index/StoreFee/selectStore', [ 'method' => 'POST|GET' ] ],
'getCostList' => ['index/Cost/getCostList', ['method' => 'GET']], //费用报销审核全部
'getCostListOne/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 0]], //费用报销未审核
'getCostListTwo/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 1]], //费用报销审核总监
......
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 to comment