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
ae31c006
Commit
ae31c006
authored
Jul 22, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app总监审核
parent
7b2cc458
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
ApplyForCost.php
application/api_broker/controller/ApplyForCost.php
+21
-0
CostService.php
application/index/service/CostService.php
+1
-1
FApplyForFee.php
application/model/FApplyForFee.php
+1
-1
route.php
application/route.php
+1
-1
No files found.
application/api_broker/controller/ApplyForCost.php
View file @
ae31c006
...
@@ -108,4 +108,24 @@ class ApplyForCost extends Basic
...
@@ -108,4 +108,24 @@ class ApplyForCost extends Basic
return
$this
->
response
(
200
,
''
,
$list
);
return
$this
->
response
(
200
,
''
,
$list
);
}
}
/**
* 审核
*
* @return \think\Response
*/
public
function
check
()
{
if
(
empty
(
$this
->
params
[
'id'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$service
=
new
CostService
();
$this
->
params
[
'status'
]
=
1
;
//总监审核
$result
=
$service
->
check
(
$this
->
params
,
$this
->
agentId
);
$code
=
200
;
if
(
$result
[
'status'
]
==
'fail'
)
{
$code
=
101
;
}
return
$this
->
response
(
$code
,
$result
[
'msg'
]);
}
}
}
\ No newline at end of file
application/index/service/CostService.php
View file @
ae31c006
...
@@ -32,7 +32,7 @@ class CostService
...
@@ -32,7 +32,7 @@ class CostService
public
function
check
(
$params
,
$agent_id
)
public
function
check
(
$params
,
$agent_id
)
{
{
$result
[
'status'
]
=
'fail'
;
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
''
;
$where
[
'id'
]
=
$params
[
'id'
];
$where
[
'id'
]
=
$params
[
'id'
];
$where
[
'is_del'
]
=
$id
=
0
;
$where
[
'is_del'
]
=
$id
=
0
;
$cost_data
=
$this
->
apply_model
->
findByOne
(
'id,status'
,
$where
);
$cost_data
=
$this
->
apply_model
->
findByOne
(
'id,status'
,
$where
);
...
...
application/model/FApplyForFee.php
View file @
ae31c006
...
@@ -36,7 +36,7 @@ class FApplyForFee extends BaseModel
...
@@ -36,7 +36,7 @@ class FApplyForFee extends BaseModel
public
function
updateData
(
$data
,
$where
)
public
function
updateData
(
$data
,
$where
)
{
{
$data
[
'update_time'
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$data
[
'update_time'
]
=
date
(
"Y-m-d H:i:s"
,
time
());
return
$this
->
db_
->
update
(
$data
);
return
$this
->
db_
->
where
(
$where
)
->
update
(
$data
);
}
}
/**
/**
...
...
application/route.php
View file @
ae31c006
...
@@ -996,7 +996,7 @@ Route::group('broker', [
...
@@ -996,7 +996,7 @@ Route::group('broker', [
'moveHouseAgent'
=>
[
'api_broker/User/moveHouseAgent'
,
[
'method'
=>
'GET|POST'
]],
//客方同步到新表
'moveHouseAgent'
=>
[
'api_broker/User/moveHouseAgent'
,
[
'method'
=>
'GET|POST'
]],
//客方同步到新表
'moveHouseSiteId'
=>
[
'api_broker/User/moveHouseSiteId'
,
[
'method'
=>
'GET|POST'
]],
//站点同步到新表
'moveHouseSiteId'
=>
[
'api_broker/User/moveHouseSiteId'
,
[
'method'
=>
'GET|POST'
]],
//站点同步到新表
'getFindShopListIsMy'
=>
[
'api_broker/FindShop/getFindShopList'
,
[
'method'
=>
'GET'
]],
//委托找铺
'getFindShopListIsMy'
=>
[
'api_broker/FindShop/getFindShopList'
,
[
'method'
=>
'GET'
]],
//委托找铺
'checkCost'
=>
[
'api_broker/ApplyForCost/check'
,
[
'method'
=>
'POST'
]],
//费用报销审核总监
'addApplyFor'
=>
[
'api_broker/StoreFee/addApplyFor'
,
[
'method'
=>
'GET'
]],
//新增报销申请
'addApplyFor'
=>
[
'api_broker/StoreFee/addApplyFor'
,
[
'method'
=>
'GET'
]],
//新增报销申请
]);
]);
...
...
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