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
2bc53f73
Commit
2bc53f73
authored
Dec 19, 2018
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/1210-v3.0.2' into 1210-v3.0.2
parents
89725e66
4690515c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
25 deletions
+36
-25
Finance.php
application/index/controller/Finance.php
+23
-13
daily_details.html
application/index/view/finance/daily_details.html
+6
-10
financial_manager_daily_list.js
public/resource/js/financial_manager_daily_list.js
+6
-1
financial_manager_daily_list_template_tpl.html
...e/template/financial_manager_daily_list_template_tpl.html
+1
-1
No files found.
application/index/controller/Finance.php
View file @
2bc53f73
...
...
@@ -26,6 +26,7 @@ use app\model\OMarchInModel;
use
app\model\OPayLogAdjustment
;
use
app\model\OrderModel
;
use
app\model\ORealIncome
;
use
app\model\OReportModel
;
use
app\model\OTaxes
;
use
app\model\OFinancialAudit
;
use
app\model\OPartialCommission
;
...
...
@@ -2416,14 +2417,14 @@ class Finance extends Basic
}
if
(
empty
(
$this
->
params
[
'excel'
]))
{
$field
=
'a.id,a.create_time,a.order_id,a.father_id,a.money,a.real_money,a.pay_type,a.type,a.source,a.transaction_fee,a.source,'
;
$field
=
'a.id,a.create_time,a.order_id,a.father_id,a.money,a.real_money,a.pay_type,a.type,a.source,a.transaction_fee,a.source,
b.f_id,
'
;
$field
.=
'e.name,a.income_time,e.store_id,b.house_id,b.order_no,a.report_id,a.house_number,a.is_dividend,a.last_transfer_time,a.industry_type,a.agent_id'
;
$list
=
$order
->
getAddPayLogOrderListLimit
(
$pageNo
,
$pageSize
,
$order_
=
'a.id desc'
,
$field
,
$where
);
$data
[
'total'
]
=
$order
->
getAddPayLogOrderListLimitTotal
(
$where
);
$m_store
=
new
AStore
();
$m_pay_adjustment
=
new
OPayLogAdjustment
();
$m_
march
=
new
OMarchIn
Model
();
$m_
report
=
new
OReport
Model
();
$m_agent_house
=
new
GHousesToAgents
();
$m_agent
=
new
AAgents
();
foreach
(
$list
as
$k
=>
$v
)
{
...
...
@@ -2444,12 +2445,12 @@ class Finance extends Basic
if
(
$v
[
'type'
]
==
10
||
$v
[
'type'
]
==
30
||
$v
[
'type'
]
==
91
)
{
//意向金/保管金 10/30 对应业务员:约带看的人 即 反签方
//中介费 对应业务员:约带看的人 即 反签方
$current_agent_name
=
$m_
march
->
getInfo
(
'reception_name,reception_id'
,
[
'order_id'
=>
$v
[
'order
_id'
]]);
if
(
!
empty
(
$current_agent_name
[
'reception
_id'
]))
{
$store_name
=
$m_
agent
->
getAgentByIdV2
(
'b.store_name'
,
[
'a.id'
=>
$current_agent_name
[
'reception
_id'
]]);
$current_agent_name
=
$m_
report
->
selectReportById
(
'report_agent_name,report_store_id'
,
[
'id'
=>
$v
[
'f
_id'
]]);
if
(
!
empty
(
$current_agent_name
[
0
][
'report_store
_id'
]))
{
$store_name
=
$m_
store
->
getStoreKeyById
(
'store_name'
,
[
'id'
=>
$current_agent_name
[
0
][
'report_store
_id'
]]);
$list
[
$k
][
'store_name'
]
=
empty
(
$store_name
)
?
''
:
$store_name
;
}
$list
[
$k
][
'current_agent_name'
]
=
empty
(
$current_agent_name
[
'reception_name'
])
?
''
:
$current_agent_name
[
'reception
_name'
];
$list
[
$k
][
'current_agent_name'
]
=
empty
(
$current_agent_name
[
0
][
'report_agent_name'
])
?
''
:
$current_agent_name
[
0
][
'report_agent
_name'
];
}
if
(
!
empty
(
$v
[
'income_time'
]))
{
...
...
@@ -2734,6 +2735,7 @@ class Finance extends Basic
$pay_data
=
$m_pay
->
selectReceiptImgList
(
$pay_fields
,
[
'id'
=>
$this
->
params
[
'pay_id'
]]);
$pay_data
=
$pay_data
[
0
];
//成交报告id
if
(
empty
(
$pay_data
[
'order_id'
]))
{
$pay_data
[
'bargain_id'
]
=
""
;
$pay_data
[
'is_open'
]
=
0
;
...
...
@@ -2745,7 +2747,8 @@ class Finance extends Basic
$pay_data
[
'price'
]
=
empty
(
$bargain_data
[
'price'
])
?
0
:
$bargain_data
[
'price'
];
$m_order
=
new
OrderModel
();
$house_data
=
$m_order
->
selectOrderByOrderId
(
'b.id,b.internal_address'
,
[
'order_id'
=>
$pay_data
[
'order_id'
]]);
$house_data
=
$m_order
->
selectOrderByOrderId
(
'b.id,b.internal_address,a.f_id'
,
[
'order_id'
=>
$pay_data
[
'order_id'
]]);
$pay_data
[
'house_id'
]
=
empty
(
$house_data
[
0
][
'id'
])
?
''
:
$house_data
[
0
][
'id'
];
$pay_data
[
'address'
]
=
empty
(
$house_data
[
0
][
'internal_address'
])
?
''
:
$house_data
[
0
][
'internal_address'
];
}
...
...
@@ -2757,7 +2760,7 @@ class Finance extends Basic
$m_agent
=
new
AAgents
();
$m_agent_house
=
new
GHousesToAgents
();
$m_store
=
new
AStore
();
$m_
march
=
new
OMarchIn
Model
();
$m_
report
=
new
OReport
Model
();
$pay_data
[
'current_agent_name'
]
=
$pay_data
[
'store_name'
]
=
""
;
if
(
$pay_data
[
'type'
]
==
92
)
{
//案场费 对应业务员:盘方
...
...
@@ -2769,16 +2772,23 @@ class Finance extends Basic
if
(
$pay_data
[
'type'
]
==
10
||
$pay_data
[
'type'
]
==
30
||
$pay_data
[
'type'
]
==
91
)
{
//意向金/保管金 10/30 对应业务员:约带看的人 即 反签方
//中介费 对应业务员:约带看的人 即 反签方
$current_agent_name
=
$m_march
->
getInfo
(
'reception_name,reception_id'
,
[
'order_id'
=>
$pay_data
[
'order_id'
]]);
if
(
!
empty
(
$current_agent_name
[
'reception_id'
]))
{
$pay_data
[
'store_name'
]
=
$m_agent
->
getAgentByIdV2
(
'b.store_name'
,
[
'a.id'
=>
$current_agent_name
[
'reception_id'
]]);
if
(
isset
(
$house_data
[
0
][
'f_id'
]))
{
$current_agent_name
=
$m_report
->
selectReportById
(
'report_agent_name,report_store_id'
,
[
'id'
=>
$house_data
[
0
][
'f_id'
]]);
if
(
!
empty
(
$current_agent_name
[
0
][
'report_store_id'
]))
{
$pay_data
[
'store_name'
]
=
$m_store
->
getStoreKeyById
(
'store_name'
,
[
'id'
=>
$current_agent_name
[
0
][
'report_store_id'
]]);
}
$pay_data
[
'current_agent_name'
]
=
empty
(
$current_agent_name
[
0
][
'report_agent_name'
])
?
""
:
$current_agent_name
[
0
][
'report_agent_name'
];
}
else
{
$pay_data
[
'store_name'
]
=
''
;
$pay_data
[
'current_agent_name'
]
=
''
;
}
$pay_data
[
'current_agent_name'
]
=
empty
(
$current_agent_name
[
'reception_name'
])
?
""
:
$current_agent_name
[
'reception_name'
];
}
}
catch
(
\Exception
$e
)
{
$msg
=
'内部错误:'
.
$e
->
getMessage
();
}
return
$this
->
response
(
101
,
$msg
,
$pay_data
);
return
$this
->
response
(
200
,
$msg
,
$pay_data
);
}
/**
...
...
application/index/view/finance/daily_details.html
View file @
2bc53f73
...
...
@@ -177,11 +177,11 @@
font-size
:
15px
;
text-align
:
center
;
cursor
:
pointer
;
float
:
left
;
}
.is-print
{
width
:
80px
;
display
:
none
;
float
:
left
;
}
.tip-con
{
margin-top
:
5px
;
...
...
@@ -200,11 +200,6 @@
<span
class=
"manager-title ld-Marheight"
>
杭州同联- 九部一组周小雨
</span>
<input
class=
"btn4-pk ld-Marheight input-pk-style"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date1"
type=
"date"
>
<span
class=
"is-print ld-Marheight"
>
打印
</span>
<div
class=
"clear"
>
</div>
</li>
</div>
<div
class=
"panel-body manager-daily-detail"
>
...
...
@@ -465,10 +460,11 @@
</div>
</div>
<div
class=
"is-submit-div"
>
<div
class=
"is-submit"
>
提交
</div>
<div
class=
"is-submit-div text-center"
>
<!--<div class="is-submit">提交</div>-->
<a
class=
"btn btn-primary is-submit"
>
提交
</a>
<a
class=
"btn btn-primary is-submit-pass-btn"
href=
"#modal_financialremark"
data-toggle=
"modal"
>
审核通过
</a>
<a
class=
"btn btn-primary is-submit-passed"
>
转到已审核
</a>
<a
class=
"btn btn-primary is-submit-passed"
style=
"margin-left: 20px;"
>
转到已审核
</a>
</div>
<div
class=
"tips-dian text-danger text-center"
style=
"font-size: 16px; font-weight: 600;"
>
...
...
@@ -485,7 +481,7 @@
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
</div>
<!--
状态记录
-->
<!--
收款图片
-->
<div
class=
"modal fade"
id=
"modal_financial"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
...
...
public/resource/js/financial_manager_daily_list.js
View file @
2bc53f73
...
...
@@ -39,7 +39,12 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
$
(
'.is-submit-pass-btn'
).
hide
();
bargain
.
isFinancial
=
0
;
bargain
.
financialTime
=
$
(
'#create_time_start'
).
val
();
$
(
'.manager-title'
).
html
(
user_info_obj
.
store_name
);
if
(
$
.
trim
(
user_info_obj
.
store_name
)){
$
(
'.manager-title'
).
html
(
user_info_obj
.
store_name
);
}
else
{
$
(
'.manager-title'
).
html
(
'您还不是店长'
);
}
}
$
(
document
.
body
).
append
(
template
);
...
...
public/resource/template/financial_manager_daily_list_template_tpl.html
View file @
2bc53f73
...
...
@@ -36,7 +36,7 @@
<
td
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'price'
]
%
]
<
/td
>
<
td
>
[
%=
(
it
[
item
][
'price'
]
*
0.8
).
toFixed
(
2
)
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
sw
(
it
[
item
][
'pay_type'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'transfer_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
...
...
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