Commit fb1cbeaa authored by hujun's avatar hujun

查询门店办公室

parent 7eacf78c
......@@ -158,4 +158,19 @@ class Store extends Basic
return $this->response($this->code, $this->msg, $this->data);
}
/**
* 查询门店办公室
*
* @return \think\Response
*/
public function getStoreOffice() {
if (empty($this->params['store_name'])) {
return $this->response(101, '参数错误');
}
$store = new AStore();
$where['a.store_name'] = ['LIKE', '%'.$this->params['store_name'].'%'];
$list = $store->getStoreCostAll('a.id,a.store_name', $where);
return $this->response(200, '', $list);
}
}
\ No newline at end of file
......@@ -545,6 +545,7 @@ Route::group('index', [
'addApplyFor' => ['index/StoreFee/addApplyFor', ['method' => 'POST']],//新增报销申请
'editApplyFor' => ['index/StoreFee/addApplyFor', ['method' => 'POST']],//修改报销申请
'getApplyForFeeStore' => ['index/StoreFee/getApplyForFeeStore', ['method' => 'GET']],//获取费用承担办公室
'getStoreOffice' => ['index/Store/getStoreOffice', ['method' => 'GET']],//获取费用承担办公室
'getStoreCostParameterList' => ['index/CostParameter/getStoreCostParameterList', ['method' => 'POST|GET']],
'editCostParameter' => ['index/CostParameter/editCostParameter', ['method' => 'POST|GET']],
......
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