Commit 90089687 authored by hujun's avatar hujun

删除费用报销审核

parent 9e31c11a
......@@ -131,4 +131,29 @@ class Cost extends Basic
}
return $where;
}
/**
* 删除费用报销申请
*
* @return \think\Response
*/
public function delCost()
{
$code = 101;
if (empty($this->params['id'])) {
return $this->response($code, '参数错误');
}
$fee_model = new FApplyForFee();
$is_ok = $fee_model->editData(['is_del'=>1], $this->params['id']);
if ($is_ok) {
$check_model = new FApplyForFeeCheck();
$check_model->editData(['is_del'=>1], $this->params['id'], 'apply_for_id');
$code = 200;
$msg = '删除成功';
} else {
$msg = '删除失败';
}
return $this->response($code, $msg);
}
}
\ No newline at end of file
......@@ -530,7 +530,8 @@ Route::group('index', [
'getCostListTwo/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 1]], //费用报销审核一审
'getCostListThree/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 2]], //费用报销审核二审
'getCostListFour/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 3]], //费用报销审核三审
'getCostListFive/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 3]], //费用报销审核四审
'getCostListFive/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 4]], //费用报销审核四审
'delCost' => ['index/Cost/delCost', ['method' => 'POST']], //删除费用报销审核
]);
......
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