Commit 4cfe4cc0 authored by hujun's avatar hujun

新增报销申请图片

parent 3a2b52d1
...@@ -169,4 +169,31 @@ class StoreFeeService ...@@ -169,4 +169,31 @@ class StoreFeeService
} }
return $result; return $result;
} }
/**
* 新增费用审核
*
* @param $data
* @param $img_id
* @return int|string
*/
public function saveImageData($data, $img_id)
{
$num = 0;
foreach($data as $k => $v) {
if (empty($v)) {
continue;
}
$save_data[$k]['img_id'] = $img_id;
$save_data[$k]['img_name'] = $v;
$save_data[$k]['img_type'] = 1;
}
if (isset($save_data)) {
$num = $this->imgModel->insertDataAll($save_data);
}
return $num;
}
} }
\ No newline at end of file
...@@ -170,7 +170,7 @@ class Store extends Basic ...@@ -170,7 +170,7 @@ class Store extends Basic
} }
$store = new AStore(); $store = new AStore();
$where['a.store_name'] = ['LIKE', '%'.$this->params['store_name'].'%']; $where['a.store_name'] = ['LIKE', '%'.$this->params['store_name'].'%'];
$list = $store->getStoreCostAll('a.id,a.store_name', $where); $list = $store->getStoreCostAll('a.id,a.store_name,a.site_id', $where);
return $this->response(200, '', $list); return $this->response(200, '', $list);
} }
} }
\ No newline at end of file
...@@ -141,7 +141,7 @@ class StoreFee extends Basic ...@@ -141,7 +141,7 @@ class StoreFee extends Basic
if (!empty($params['office_address'])) { if (!empty($params['office_address'])) {
$conditions['office_address'] = ['LIKE', '%'.$params['office_address'].'%']; $conditions['office_address'] = ['LIKE', '%'.$params['office_address'].'%'];
} }
$field = 'id,rent,office_name,office_address,create_time'; $field = 'id,rent,office_name,office_address,create_time,site_id';
$result = $this->f_office->getOffice($field, $conditions,$pageNo, $pageSize); $result = $this->f_office->getOffice($field, $conditions,$pageNo, $pageSize);
if(!$result) if(!$result)
return $this->response("200", "成功", []); return $this->response("200", "成功", []);
......
...@@ -107,6 +107,7 @@ class CostService ...@@ -107,6 +107,7 @@ class CostService
101=>'水电费', 101=>'水电费',
102=>'其他费用', 102=>'其他费用',
201=>'总部固定成本', 201=>'总部固定成本',
202=>'总部其他成本',
301=>'分部固定成本', 301=>'分部固定成本',
401=>'同联发展基金', 401=>'同联发展基金',
501=>'家庭基金报销', 501=>'家庭基金报销',
......
...@@ -1003,6 +1003,7 @@ Route::group('broker', [ ...@@ -1003,6 +1003,7 @@ Route::group('broker', [
'checkCost' => ['api_broker/ApplyForCost/check', ['method' => 'POST']], //费用报销审核总监 'checkCost' => ['api_broker/ApplyForCost/check', ['method' => 'POST']], //费用报销审核总监
'addApplyFor' => ['api_broker/StoreFee/addApplyFor', ['method' => 'GET|POST']],//新增报销申请 'addApplyFor' => ['api_broker/StoreFee/addApplyFor', ['method' => 'GET|POST']],//新增报销申请
'addFeeImage' => ['api_broker/StoreFee/addFeeImage', ['method' => 'POST']],//新增报销申请图片
'getApplyForFeeStore' => ['api_broker/StoreFee/getApplyForFeeStore', ['method' => 'GET']],//获取门店地址 'getApplyForFeeStore' => ['api_broker/StoreFee/getApplyForFeeStore', ['method' => 'GET']],//获取门店地址
'deviceList' => ['api_broker/Broker/deviceList', ['method' => 'GET']],//设备列表 'deviceList' => ['api_broker/Broker/deviceList', ['method' => '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