Commit 3502f660 authored by hujun's avatar hujun

新增报销申请图片

parent 19ddd6f1
......@@ -134,6 +134,12 @@ class StoreFee extends Basic
return $this->response($code, $msg);
}
/**
* 新增报销申请图片
*
* @document http://showdoc.tonglianjituan.com/index.php?s=/1&page_id=901
* @return \think\Response
*/
public function addFeeImage()
{
$code = 101;
......
......@@ -443,4 +443,30 @@ class StoreFee extends Basic
return $this->response($code, $msg);
}
/**
* 新增报销申请图片
*
* @document http://showdoc.tonglianjituan.com/index.php?s=/1&page_id=902
* @return \think\Response
*/
public function addFeeImage()
{
$code = 101;
$img_arr = json_decode($this->params["img_arr"], true);
if (!is_array($img_arr)) {
return $this->response($code, '参数错误');
}
$service_ = new StoreFeeService();
$num = $service_->saveImageData($img_arr, $this->params['id']);
if ($num > 0) {
$code = 200;
$msg = '上传成功';
} else {
$msg = '上传失败';
}
return $this->response($code, $msg);
}
}
\ 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']],//获取费用承担办公室
'addFeeImage' => ['index/StoreFee/addFeeImage', ['method' => 'POST']],//新增报销申请图片
'getStoreOffice' => ['index/Store/getStoreOffice', ['method' => 'GET']],//获取费用承担办公室
'getStoreCostParameterList' => ['index/CostParameter/getStoreCostParameterList', ['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