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
99058dda
Commit
99058dda
authored
Jul 24, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用申请删除处理
parent
0707d8ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
Cost.php
application/index/controller/Cost.php
+17
-0
No files found.
application/index/controller/Cost.php
View file @
99058dda
...
@@ -92,6 +92,7 @@ class Cost extends Basic
...
@@ -92,6 +92,7 @@ class Cost extends Basic
if
(
isset
(
$param
[
'check_status'
]))
{
if
(
isset
(
$param
[
'check_status'
]))
{
switch
(
$param
[
'check_status'
])
{
switch
(
$param
[
'check_status'
])
{
case
0
:
case
0
:
$where
[
'type'
]
=
5
;
//店长账号提交的 需要总监和财务的三级审核
$where
[
'a.status'
]
=
0
;
break
;
$where
[
'a.status'
]
=
0
;
break
;
case
1
:
case
1
:
$where
[
'a.status'
]
=
1
;
break
;
$where
[
'a.status'
]
=
1
;
break
;
...
@@ -202,6 +203,16 @@ class Cost extends Basic
...
@@ -202,6 +203,16 @@ class Cost extends Basic
return
$this
->
response
(
$code
,
'参数错误'
);
return
$this
->
response
(
$code
,
'参数错误'
);
}
}
$fee_model
=
new
FApplyForFee
();
$fee_model
=
new
FApplyForFee
();
$data
=
$fee_model
->
findByOne
(
'id,type,status'
,
[
'id'
=>
$this
->
params
[
'id'
],
'is_del'
=>
0
]);
if
(
empty
(
$data
))
{
return
$this
->
response
(
101
,
'没有该数据或已删除'
);
}
if
(
$data
[
'status'
]
==
4
&&
$data
[
'type'
]
==
5
)
{
return
$this
->
response
(
101
,
'已经财务三审,无法删除!'
);
}
$is_ok
=
$fee_model
->
editData
([
'is_del'
=>
1
],
$this
->
params
[
'id'
]);
$is_ok
=
$fee_model
->
editData
([
'is_del'
=>
1
],
$this
->
params
[
'id'
]);
if
(
$is_ok
)
{
if
(
$is_ok
)
{
...
@@ -313,8 +324,14 @@ class Cost extends Basic
...
@@ -313,8 +324,14 @@ class Cost extends Basic
break
;
break
;
}
}
//店长账号提交的 需要总监和财务的三级审核
if
(
$data
[
'type'
]
==
5
)
{
$check_field
=
'b.name,a.create_time,a.remark'
;
$check_field
=
'b.name,a.create_time,a.remark'
;
$data
[
'check_log'
]
=
$m_check
->
findByAll
(
$check_field
,
[
'apply_for_id'
=>
$data
[
'id'
]]);
$data
[
'check_log'
]
=
$m_check
->
findByAll
(
$check_field
,
[
'apply_for_id'
=>
$data
[
'id'
]]);
}
else
{
$data
[
'check_log'
]
=
[];
}
$data
[
'images_data'
]
=
$m_img
->
findByAll
(
'id,img_name,img_type'
,
[
'img_id'
=>
$data
[
'id'
]]);
$data
[
'images_data'
]
=
$m_img
->
findByAll
(
'id,img_name,img_type'
,
[
'img_id'
=>
$data
[
'id'
]]);
$data
[
'image_base_url'
]
=
'static/chat_image/'
;
$data
[
'image_base_url'
]
=
'static/chat_image/'
;
...
...
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