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
a1d9647a
Commit
a1d9647a
authored
Oct 10, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行政审核
parent
5014c8af
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
6 deletions
+34
-6
Refund.php
application/index/controller/Refund.php
+16
-3
refundListShop.html
application/index/view/officeBuilding/refundListShop.html
+2
-1
refundList.html
application/index/view/refund/refundList.html
+0
-0
refundListShop.js
public/resource/js/refundListShop.js
+16
-2
No files found.
application/index/controller/Refund.php
View file @
a1d9647a
...
@@ -74,7 +74,7 @@ class Refund extends Basic
...
@@ -74,7 +74,7 @@ class Refund extends Basic
// 0申请 1审核中 2退款成功 3已审核4驳回
// 0申请 1审核中 2退款成功 3已审核4驳回
switch
(
$this
->
params
[
'status'
])
{
switch
(
$this
->
params
[
'status'
])
{
case
1
:
case
1
:
$refund_where
[
'status'
]
=
[
'in'
,
'0,1,4'
];
$refund_where
[
'status'
]
=
[
'in'
,
'0,1,4
,5
'
];
break
;
break
;
case
2
:
case
2
:
$refund_where
[
'status'
]
=
3
;
$refund_where
[
'status'
]
=
3
;
...
@@ -117,12 +117,14 @@ class Refund extends Basic
...
@@ -117,12 +117,14 @@ class Refund extends Basic
foreach
(
$check_agent_id
as
$v
)
{
foreach
(
$check_agent_id
as
$v
)
{
if
(
$v
[
'operation_id'
]
==
$this
->
userId
)
{
if
(
$v
[
'operation_id'
]
==
$this
->
userId
)
{
return
$this
->
response
(
101
,
'你已审核过'
);
//
return $this->response(101, '你已审核过');
}
}
}
}
if
(
count
(
$check_agent_id
)
>=
2
)
{
if
(
count
(
$check_agent_id
)
>=
1
)
{
$status
=
3
;
//已审核
$status
=
3
;
//已审核
}
}
$save_data
[
'status'
]
=
1
;
$save_data
[
'status'
]
=
1
;
$num
=
$m_refund_log
->
insertData
(
$save_data
);
$num
=
$m_refund_log
->
insertData
(
$save_data
);
break
;
break
;
...
@@ -161,6 +163,17 @@ class Refund extends Basic
...
@@ -161,6 +163,17 @@ class Refund extends Basic
$record_data
[
'house_id'
]
=
$house_title
[
'house_id'
];
$record_data
[
'house_id'
]
=
$house_title
[
'house_id'
];
$record_data
[
'title'
]
=
'退款驳回-商铺'
;
$record_data
[
'title'
]
=
'退款驳回-商铺'
;
$push
->
recordCheck
(
1
,
[
$refund_data
[
0
][
'agent_id'
]],
$this
->
userId
,
$record_data
);
$push
->
recordCheck
(
1
,
[
$refund_data
[
0
][
'agent_id'
]],
$this
->
userId
,
$record_data
);
break
;
case
5
:
$log_where
[
'status'
]
=
0
;
$check_agent_id
=
$m_refund_log
->
getListAll
(
'operation_id'
,
$log_where
);
foreach
(
$check_agent_id
as
$v
)
{
if
(
$v
[
'operation_id'
]
==
$this
->
userId
)
{
return
$this
->
response
(
101
,
'你已审核过'
);
}
}
$save_data
[
'status'
]
=
$status
=
5
;
$num
=
$m_refund_log
->
insertData
(
$save_data
);
}
}
if
(
$num
)
{
if
(
$num
)
{
...
...
application/index/view/officeBuilding/refundListShop.html
View file @
a1d9647a
...
@@ -300,7 +300,8 @@
...
@@ -300,7 +300,8 @@
<a href="javascript:;">退款出账</a>
<a href="javascript:;">退款出账</a>
</li>-->
</li>-->
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"choose_btn btn btn-info"
data-value=
"1"
style=
"margin-left: 20px;"
>
审核中
</button>
<button
type=
"button"
class=
"choose_btn btn btn-info"
data-value=
"0"
style=
"margin-left: 20px;"
>
行政审核
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"5"
>
财务审核
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"3"
>
已审核
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"3"
>
已审核
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"2"
>
已退款
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"2"
>
已退款
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"4"
>
已驳回
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"4"
>
已驳回
</button>
...
...
application/index/view/
finance
/refundList.html
→
application/index/view/
refund
/refundList.html
View file @
a1d9647a
File moved
public/resource/js/refundListShop.js
View file @
a1d9647a
...
@@ -11,7 +11,7 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css',
...
@@ -11,7 +11,7 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css',
listData
:
""
,
listData
:
""
,
moneyTotal
:
""
,
moneyTotal
:
""
,
agent_id_phone
:
''
,
agent_id_phone
:
''
,
check_status
:
1
,
check_status
:
0
,
deleteRefundId
:
''
,
deleteRefundId
:
''
,
check_id
:
''
,
check_id
:
''
,
init
:
function
()
{
init
:
function
()
{
...
@@ -111,7 +111,21 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css',
...
@@ -111,7 +111,21 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css',
//审核通过
//审核通过
$
(
document
).
on
(
'click'
,
'#check_yes'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'#check_yes'
,
function
(
e
){
var
text
=
$
(
'#check_past'
).
val
();
var
text
=
$
(
'#check_past'
).
val
();
that
.
checkRefund
(
1
,
text
);
var
type
=
0
;
switch
(
parseInt
(
that
.
check_status
))
{
case
0
:
type
=
5
;
break
;
case
1
:
type
=
2
;
break
;
case
5
:
type
=
1
;
break
;
default
:
alert
(
"参数错误"
);
return
false
;
}
that
.
checkRefund
(
type
,
text
);
});
});
//驳回
//驳回
$
(
document
).
on
(
'click'
,
'#check_no'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'#check_no'
,
function
(
e
){
...
...
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