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
c3352408
Commit
c3352408
authored
Feb 19, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款
parent
40e9a43b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
Finance.php
application/index/controller/Finance.php
+10
-1
getCollection.js
public/resource/js/getCollection.js
+8
-3
No files found.
application/index/controller/Finance.php
View file @
c3352408
...
...
@@ -2985,6 +2985,14 @@ class Finance extends Basic
$source_id
=
$m_pay_adjustment
->
getFieldColumn
(
'id'
,
[
'paylog_id'
=>
$pay_data
[
'id'
]]);
$pay_data
[
'source_id'
]
=
empty
(
$source_id
)
?
0
:
implode
(
','
,
$source_id
);
$m_refund
=
new
ORefundModel
();
$num
=
$m_refund
->
getFind
(
'id'
,[
'pay_log_id'
=>
$pay_data
[
'id'
],
'is_del'
=>
0
]);
if
(
$num
[
'id'
]
>
0
)
{
$pay_data
[
'is_refund'
]
=
1
;
}
else
{
$pay_data
[
'is_refund'
]
=
0
;
}
$m_agent_house
=
new
GHousesToAgents
();
$m_store
=
new
AStore
();
$m_report
=
new
OReportModel
();
...
...
@@ -4028,7 +4036,8 @@ class Finance extends Basic
$list
[
$k
][
'source_id'
]
=
empty
(
$source_id
)
?
0
:
implode
(
','
,
$source_id
);
}
else
{
$source_id
=
$m_pay_adjustment
->
getFieldColumn
(
'id'
,
[
'paylog_id'
=>
$v
[
'id'
]]);
$list
[
$k
][
'is_adjustment'
]
=
empty
(
$source_id
)
?
0
:
implode
(
','
,
$source_id
);
$list
[
$k
][
'source_id'
]
=
empty
(
$source_id
)
?
0
:
implode
(
','
,
$source_id
);
$list
[
$k
][
'is_adjustment'
]
=
$source_id
?
1
:
0
;
}
$num
=
$m_refund
->
getFind
(
'id'
,[
'pay_log_id'
=>
$v
[
'id'
],
'is_del'
=>
0
]);
...
...
public/resource/js/getCollection.js
View file @
c3352408
...
...
@@ -1353,6 +1353,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
doc
.
find
(
"#fenhong"
).
val
(
data
.
is_dividend
);
doc
.
find
(
'#pinpai'
).
text
(
data
.
industry_type
);
var
source_id
=
data
.
source_id
;
var
is_refund
=
data
.
is_refund
;
if
(
data
.
source
==
0
)
{
$
(
"#comes"
).
text
(
'APP'
);
// doc.find("#status").text("正常");
...
...
@@ -1378,9 +1379,13 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
(
"#payType"
).
attr
(
"disabled"
,
"disabled"
).
css
(
"background-color"
,
"#EEEEEE;"
);
$
(
'#payNo'
).
attr
(
"readonly"
,
"readonly"
);
}
if
(
source_id
)
{
doc
.
find
(
"#status"
).
text
(
"被调整"
);
}
else
{
if
(
source_id
&&
is_refund
)
{
doc
.
find
(
"#status"
).
text
(
"被调整+被退款"
);
}
else
if
(
source_id
){
doc
.
find
(
"#status"
).
text
(
"被调整"
);
}
else
if
(
is_refund
){
doc
.
find
(
"#status"
).
text
(
"被退款"
);
}
else
{
doc
.
find
(
"#status"
).
text
(
"正常"
);
}
// doc.find("#status").text(data.source_id);
...
...
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