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
3502f660
Commit
3502f660
authored
Jul 23, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增报销申请图片
parent
19ddd6f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
+34
-0
StoreFee.php
application/api_broker/controller/StoreFee.php
+6
-0
StoreFee.php
application/index/controller/StoreFee.php
+27
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/StoreFee.php
View file @
3502f660
...
@@ -134,6 +134,12 @@ class StoreFee extends Basic
...
@@ -134,6 +134,12 @@ class StoreFee extends Basic
return
$this
->
response
(
$code
,
$msg
);
return
$this
->
response
(
$code
,
$msg
);
}
}
/**
* 新增报销申请图片
*
* @document http://showdoc.tonglianjituan.com/index.php?s=/1&page_id=901
* @return \think\Response
*/
public
function
addFeeImage
()
public
function
addFeeImage
()
{
{
$code
=
101
;
$code
=
101
;
...
...
application/index/controller/StoreFee.php
View file @
3502f660
...
@@ -443,4 +443,30 @@ class StoreFee extends Basic
...
@@ -443,4 +443,30 @@ class StoreFee extends Basic
return
$this
->
response
(
$code
,
$msg
);
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
application/route.php
View file @
3502f660
...
@@ -545,6 +545,7 @@ Route::group('index', [
...
@@ -545,6 +545,7 @@ Route::group('index', [
'addApplyFor'
=>
[
'index/StoreFee/addApplyFor'
,
[
'method'
=>
'POST'
]],
//新增报销申请
'addApplyFor'
=>
[
'index/StoreFee/addApplyFor'
,
[
'method'
=>
'POST'
]],
//新增报销申请
'editApplyFor'
=>
[
'index/StoreFee/addApplyFor'
,
[
'method'
=>
'POST'
]],
//修改报销申请
'editApplyFor'
=>
[
'index/StoreFee/addApplyFor'
,
[
'method'
=>
'POST'
]],
//修改报销申请
'getApplyForFeeStore'
=>
[
'index/StoreFee/getApplyForFeeStore'
,
[
'method'
=>
'GET'
]],
//获取费用承担办公室
'getApplyForFeeStore'
=>
[
'index/StoreFee/getApplyForFeeStore'
,
[
'method'
=>
'GET'
]],
//获取费用承担办公室
'addFeeImage'
=>
[
'index/StoreFee/addFeeImage'
,
[
'method'
=>
'POST'
]],
//新增报销申请图片
'getStoreOffice'
=>
[
'index/Store/getStoreOffice'
,
[
'method'
=>
'GET'
]],
//获取费用承担办公室
'getStoreOffice'
=>
[
'index/Store/getStoreOffice'
,
[
'method'
=>
'GET'
]],
//获取费用承担办公室
'getStoreCostParameterList'
=>
[
'index/CostParameter/getStoreCostParameterList'
,
[
'method'
=>
'POST|GET'
]],
'getStoreCostParameterList'
=>
[
'index/CostParameter/getStoreCostParameterList'
,
[
'method'
=>
'POST|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