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
4cfe4cc0
Commit
4cfe4cc0
authored
Jul 23, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增报销申请图片
parent
3a2b52d1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
2 deletions
+33
-2
StoreFeeService.php
application/api_broker/service/StoreFeeService.php
+28
-0
Store.php
application/index/controller/Store.php
+2
-1
StoreFee.php
application/index/controller/StoreFee.php
+1
-1
CostService.php
application/index/service/CostService.php
+1
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/service/StoreFeeService.php
View file @
4cfe4cc0
...
@@ -169,4 +169,31 @@ class StoreFeeService
...
@@ -169,4 +169,31 @@ class StoreFeeService
}
}
return
$result
;
return
$result
;
}
}
/**
* 新增费用审核
*
* @param $data
* @param $img_id
* @return int|string
*/
public
function
saveImageData
(
$data
,
$img_id
)
{
$num
=
0
;
foreach
(
$data
as
$k
=>
$v
)
{
if
(
empty
(
$v
))
{
continue
;
}
$save_data
[
$k
][
'img_id'
]
=
$img_id
;
$save_data
[
$k
][
'img_name'
]
=
$v
;
$save_data
[
$k
][
'img_type'
]
=
1
;
}
if
(
isset
(
$save_data
))
{
$num
=
$this
->
imgModel
->
insertDataAll
(
$save_data
);
}
return
$num
;
}
}
}
\ No newline at end of file
application/index/controller/Store.php
View file @
4cfe4cc0
...
@@ -170,7 +170,7 @@ class Store extends Basic
...
@@ -170,7 +170,7 @@ class Store extends Basic
}
}
$store
=
new
AStore
();
$store
=
new
AStore
();
$where
[
'a.store_name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'store_name'
]
.
'%'
];
$where
[
'a.store_name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'store_name'
]
.
'%'
];
$list
=
$store
->
getStoreCostAll
(
'a.id,a.store_name'
,
$where
);
$list
=
$store
->
getStoreCostAll
(
'a.id,a.store_name
,a.site_id
'
,
$where
);
return
$this
->
response
(
200
,
''
,
$list
);
return
$this
->
response
(
200
,
''
,
$list
);
}
}
}
}
\ No newline at end of file
application/index/controller/StoreFee.php
View file @
4cfe4cc0
...
@@ -141,7 +141,7 @@ class StoreFee extends Basic
...
@@ -141,7 +141,7 @@ class StoreFee extends Basic
if
(
!
empty
(
$params
[
'office_address'
]))
{
if
(
!
empty
(
$params
[
'office_address'
]))
{
$conditions
[
'office_address'
]
=
[
'LIKE'
,
'%'
.
$params
[
'office_address'
]
.
'%'
];
$conditions
[
'office_address'
]
=
[
'LIKE'
,
'%'
.
$params
[
'office_address'
]
.
'%'
];
}
}
$field
=
'id,rent,office_name,office_address,create_time'
;
$field
=
'id,rent,office_name,office_address,create_time
,site_id
'
;
$result
=
$this
->
f_office
->
getOffice
(
$field
,
$conditions
,
$pageNo
,
$pageSize
);
$result
=
$this
->
f_office
->
getOffice
(
$field
,
$conditions
,
$pageNo
,
$pageSize
);
if
(
!
$result
)
if
(
!
$result
)
return
$this
->
response
(
"200"
,
"成功"
,
[]);
return
$this
->
response
(
"200"
,
"成功"
,
[]);
...
...
application/index/service/CostService.php
View file @
4cfe4cc0
...
@@ -107,6 +107,7 @@ class CostService
...
@@ -107,6 +107,7 @@ class CostService
101
=>
'水电费'
,
101
=>
'水电费'
,
102
=>
'其他费用'
,
102
=>
'其他费用'
,
201
=>
'总部固定成本'
,
201
=>
'总部固定成本'
,
202
=>
'总部其他成本'
,
301
=>
'分部固定成本'
,
301
=>
'分部固定成本'
,
401
=>
'同联发展基金'
,
401
=>
'同联发展基金'
,
501
=>
'家庭基金报销'
,
501
=>
'家庭基金报销'
,
...
...
application/route.php
View file @
4cfe4cc0
...
@@ -1003,6 +1003,7 @@ Route::group('broker', [
...
@@ -1003,6 +1003,7 @@ Route::group('broker', [
'checkCost'
=>
[
'api_broker/ApplyForCost/check'
,
[
'method'
=>
'POST'
]],
//费用报销审核总监
'checkCost'
=>
[
'api_broker/ApplyForCost/check'
,
[
'method'
=>
'POST'
]],
//费用报销审核总监
'addApplyFor'
=>
[
'api_broker/StoreFee/addApplyFor'
,
[
'method'
=>
'GET|POST'
]],
//新增报销申请
'addApplyFor'
=>
[
'api_broker/StoreFee/addApplyFor'
,
[
'method'
=>
'GET|POST'
]],
//新增报销申请
'addFeeImage'
=>
[
'api_broker/StoreFee/addFeeImage'
,
[
'method'
=>
'POST'
]],
//新增报销申请图片
'getApplyForFeeStore'
=>
[
'api_broker/StoreFee/getApplyForFeeStore'
,
[
'method'
=>
'GET'
]],
//获取门店地址
'getApplyForFeeStore'
=>
[
'api_broker/StoreFee/getApplyForFeeStore'
,
[
'method'
=>
'GET'
]],
//获取门店地址
'deviceList'
=>
[
'api_broker/Broker/deviceList'
,
[
'method'
=>
'GET'
]],
//设备列表
'deviceList'
=>
[
'api_broker/Broker/deviceList'
,
[
'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