Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
90089687
Commit
90089687
authored
Jul 18, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除费用报销审核
parent
9e31c11a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
Cost.php
application/index/controller/Cost.php
+26
-0
route.php
application/route.php
+2
-1
No files found.
application/index/controller/Cost.php
View file @
90089687
...
...
@@ -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
application/route.php
View file @
90089687
...
...
@@ -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'
]],
//删除费用报销审核
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment