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
4fc4e23a
Commit
4fc4e23a
authored
Mar 24, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4ce926c7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1232 additions
and
13 deletions
+1232
-13
daily_details.html
application/index/view/finance/daily_details.html
+358
-4
reportList.html
application/index/view/report/reportList.html
+181
-3
financial_manager_daily_list.js
public/resource/js/financial_manager_daily_list.js
+606
-3
inspectionRecordAll.js
public/resource/js/inspectionRecordAll.js
+53
-1
financial_manager_daily_list_template_tpl.html
...e/template/financial_manager_daily_list_template_tpl.html
+10
-0
inspectionRecordAll_list_template_tpl.html
...ource/template/inspectionRecordAll_list_template_tpl.html
+24
-2
No files found.
application/index/view/finance/daily_details.html
View file @
4fc4e23a
...
@@ -105,6 +105,26 @@
...
@@ -105,6 +105,26 @@
color
:
red
;
color
:
red
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
#file_input
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
80px
;
}
#file_input3
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
100px
;
}
.delet-pic-btn
,
.span-del3
{
color
:
red
;
}
/*图片*/
/*图片*/
.clear
{
.clear
{
...
@@ -128,10 +148,7 @@
...
@@ -128,10 +148,7 @@
margin
:
0
;
margin
:
0
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
/*.manager-daily-detail{
height: 800px;
overflow-y: scroll;
}*/
.manager-title
{
.manager-title
{
float
:
left
;
float
:
left
;
font-size
:
16px
;
font-size
:
16px
;
...
@@ -254,6 +271,49 @@
...
@@ -254,6 +271,49 @@
.form-group
{
.form-group
{
margin
:
10px
;
margin
:
10px
;
}
}
.reportArea
{
float
:
left
;
position
:
relative
;
overflow-y
:
scroll
;
height
:
100px
;
left
:
0px
;
width
:
100%
;
line-height
:
30px
;
}
.reportArea
li
{
list-style
:
none
;
line-height
:
20px
;
}
.intoIdArea
{
float
:
left
;
position
:
relative
;
overflow-y
:
scroll
;
height
:
100px
;
left
:
0px
;
width
:
100%
;
line-height
:
30px
;
}
.intoIdArea
li
{
list-style
:
none
;
line-height
:
20px
;
}
.user-ul
{
text-align
:
center
;
float
:
left
;
position
:
relative
;
overflow-y
:
scroll
;
height
:
100px
;
left
:
0px
;
width
:
100%
;
line-height
:
30px
;
}
.user-ul
li
{
list-style
:
none
;
line-height
:
20px
;
}
ul
{
-webkit-padding-start
:
0px
!important
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -1336,4 +1396,297 @@
...
@@ -1336,4 +1396,297 @@
<!-- /.modal-content -->
<!-- /.modal-content -->
</div>
</div>
<!-- /.modal -->
<!-- /.modal -->
</div>
<!--退款-->
<div
class=
"modal fade"
id=
"modal-back"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
退款
</h4>
</div>
<div
class=
"modal-body modal-body-height"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
退款最大金额:
</span></strong>
<span
id=
"could_price_back"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款类型:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"back_type"
>
<option
class=
""
value=
"-1"
>
请选择退款类型
</option>
<option
class=
"type_yixiang"
value=
"0"
>
退意向金
</option>
<option
class=
"type_yixiang"
value=
"1"
>
意向金转定
</option>
<option
class=
"type_baoguan"
value=
"2"
>
退保管金
</option>
<option
class=
"type_baoguan"
value=
"3"
>
保管金转定
</option>
<option
class=
"type_zhongjie"
value=
"4"
>
退中介费
</option>
<option
class=
"type_anchang"
value=
"5"
>
退案场费
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款金额(元):
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"0"
id=
"back_price"
/></div>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款凭证编号:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"back_no"
/></div>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-12 rep"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
退款原因:
</span></strong>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"back_reason"
data-status=
"200"
autocomplete=
"off"
/>
<!--<ul class="reportArea" style="display:none" data-status="100" ></ul>-->
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
入账类型:
</span></strong>
<span
id=
"back_into_type"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
商铺地址:
</span></strong>
<span
id=
"back_shop_addr"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款方式:
</span></strong>
<span
id=
"back_price_type"
class=
"col-xs-6 ld-Marheight"
>
银行卡
</span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款账户:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"back_price_user"
/></div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
开户行:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"back_bank"
/></div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
户名:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"back_bank_name"
/></div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
收款人手机:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"back_phone"
/></div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
其他说明:
</span></strong>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"back_others"
data-status=
"200"
autocomplete=
"off"
/>
<!--<ul class="reportArea" style="display:none" data-status="100" ></ul>-->
</div>
</div>
</div>
<!--上传图片-->
<div
class=
"col-xs-12"
style=
"margin-top:20px;"
>
<div
class=
"col-xs-12"
style=
"padding-left:30px;"
>
<label>
上传资料图片:
</label>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"file-upload-area p-a-0 "
>
<ul
class=
"img-pre-ul"
id=
"fujian_ul"
></ul>
<div
class=
"btn-area"
>
<input
class=
"btn btn-default"
type=
"file"
id=
"file_input3"
data-limittop=
"10"
/>
<!--修改上传文件的最大数字-->
<button
class=
"btn btn-default"
style=
"margin-left : 144px;"
>
选择图片
</button>
</div>
<div
class=
"col-xs-12 p-t-10"
id=
"container_body_img_area3"
>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-12"
style=
"padding:10px;"
>
<strong><span
style=
"margin-left:1rem;"
>
退意向金:收款人身份证、收款人银行卡、意向金收条、转账截图。
</span></strong>
</div>
<div
class=
"col-xs-12"
style=
"padding:10px;"
>
<strong><span
style=
"margin-left:1rem;"
>
意向金转定:收款人身份证、收款人银行卡、意向金收条、转账截图、居间协议、客户的授权委托书。
</span></strong>
</div>
<div
class=
"col-xs-12"
style=
"padding:10px;"
>
<strong><span
style=
"margin-left:1rem;"
>
退保管金:收款人身份证、收款人银行卡、转账截图、客户授权委托书。
</span></strong>
</div>
<div
class=
"col-xs-12"
style=
"padding:10px;"
>
<strong><span
style=
"margin-left:1rem;"
>
保管金转定:收款人身份证、收款人银行卡、转账截图、居间协议、客户授权委托书、房东授权委托书。
</span></strong>
</div>
<div
class=
"col-xs-12"
style=
"padding:10px;"
>
<strong><span
style=
"margin-left:1rem;"
>
退佣金:分部老总给施总申请截图、分红已退回公司的转账截图、收款人身份证、收款人银行卡。
</span></strong>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
id=
"back_saveChangeBtn"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--调整-->
<div
class=
"modal fade"
id=
"modal-linetime"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
调整
</h4>
</div>
<div
class=
"modal-body modal-body-height"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<span>
该笔收款可调整/退款金额:
<strong><span
id=
"could_price"
>
1000
</span></strong>
元
</span>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
调整为:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"change_type"
>
<option
class=
"yixiangjin"
value=
"91"
>
中介费
</option>
<option
class=
"yixiangjin"
value=
"92"
>
案场费
</option>
<option
class=
"yixiangjin"
value=
"10"
>
意向金
</option>
<option
class=
"yixiangjin"
value=
"30"
>
保管金
</option>
<option
class=
"baoguanjin"
value=
"91"
>
中介费
</option>
<option
class=
"baoguanjin"
value=
"92"
>
案场费
</option>
<option
class=
"baoguanjin"
value=
"30"
>
保管金
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
调整金额(元):
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"0"
id=
"change_price"
/></div>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<!--新增中介费 类型 之前已收佣-->
<div
class=
"col-xs-6"
id=
"agency_fees_type_div"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
中介费类型:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"agency_fees_type"
>
<option
class=
""
value=
"0"
>
正常
</option>
<option
class=
""
value=
"1"
>
多收
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6"
id=
"before_commission_div"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
之前已收佣(元):
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
"0"
id=
"before_commission"
/></div>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-12 rep"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
成交报告ID:
</span></strong>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"report_id_change"
data-status=
"200"
autocomplete=
"off"
/>
<ul
class=
"reportArea"
style=
"display:none"
data-status=
"100"
></ul></div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-2 ld-Marheight"
id=
"order_title"
>
调整后带看ID:
</span></strong>
<div
class=
"col-xs-9"
style=
"padding:0px 10px 0px 5px;"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"into_id_change"
data-status=
"100"
autocomplete=
"off"
placeholder=
"搜索请输入商铺ID"
/>
<ul
class=
"intoIdArea"
style=
"display:none"
data-status=
"100"
></ul></div>
<!--<div class="col-xs-6"><input class="form-control" type="text" value="" id="into_id_change" readonly="true"/></div>-->
<!--<span id="into_id_change" class="col-xs-6 ld-Marheight"></span>-->
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
调整后商铺ID:
</span></strong>
<span
id=
"shop_id_change"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
调整后商铺地址:
</span></strong>
<span
id=
"shop_addr_change"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6 choose_topic_1"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
是否分红:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control "
id=
"change_fenhong"
>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
否
</option>
<option
value=
"0"
>
是
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6 choose_topic_2"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
商铺号:
</span></strong>
<!--<span id="shop_id_change_shop" class="col-xs-6 ld-Marheight"></span>-->
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"shop_id_change_shop"
/></div>
</div>
</div>
<div
class=
"col-xs-6 choose_topic_2"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
最后转定时间:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"change_time"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'comit_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readonly'})"
/></div>
</div>
</div>
<!--上传图片-->
<div
class=
"col-xs-12"
style=
"margin-top:20px;"
>
<div
class=
"col-xs-12"
style=
"padding-left:30px;"
>
<label>
上传资料图片:
</label>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"file-upload-area p-a-0 "
>
<ul
class=
"img-pre-ul"
id=
"fujian_ul"
></ul>
<div
class=
"btn-area"
>
<input
class=
"btn btn-default"
type=
"file"
id=
"file_input"
data-limittop=
"10"
/>
<!--修改上传文件的最大数字-->
<button
class=
"btn btn-default"
style=
"margin-left : 144px;"
>
选择图片
</button>
</div>
<div
class=
"col-xs-12 img_area p-t-10"
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
id=
"saveChangeBtn"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
</div>
\ No newline at end of file
application/index/view/report/reportList.html
View file @
4fc4e23a
...
@@ -254,7 +254,8 @@
...
@@ -254,7 +254,8 @@
<table
width=
"100%"
>
<table
width=
"100%"
>
<tr>
<tr>
<td>
<td>
<span
class=
"span-width-90"
>
入账金额:
</span><input
type=
"number"
placeholder=
"请输入"
>
<span
class=
"span-width-90"
>
入账金额:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</td>
<td></td>
<td></td>
</tr>
</tr>
...
@@ -351,7 +352,7 @@
...
@@ -351,7 +352,7 @@
</div>
</div>
<!-- /.modal -->
<!-- /.modal -->
</div>
</div>
<!--收佣金-->
<!--收佣金
成交报告列表
-->
<div
class=
"modal fade modal-iframe-750"
id=
"modal-commission"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade modal-iframe-750"
id=
"modal-commission"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-report"
>
<div
class=
"modal-dialog modal-body-report"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content"
>
...
@@ -364,7 +365,184 @@
...
@@ -364,7 +365,184 @@
</h4>
</h4>
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
佣金
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
成交报告ID
</th>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
商铺地址
</th>
<th
class=
"text-center"
>
商铺号
</th>
<th
class=
"text-center"
>
成交价(元)
</th>
<th
class=
"text-center"
>
应收佣金(佣金)
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"report_list"
></tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--收佣金-->
<div
class=
"modal fade modal-iframe-750"
id=
"modal-commissionConfirm"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-intention"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收佣金
</h4>
</div>
<div
class=
"modal-body"
>
<table
width=
"100%"
>
<tr>
<td>
<span
class=
"span-width-90"
>
对应成交报告ID:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
入账金额:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
<span
class=
"span-width-90"
>
对应业务员:
</span>
<span>
101周小雨(反签40%),203洛可可(独家50%),203王小兔(合作方20%)
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
支付方式:
</span>
<select>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</td>
<td>
<span
class=
"span-width-90"
>
转账户名:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
入账类型:
</span>
<select>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</td>
<td>
<span
class=
"span-width-90"
>
入账日期:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
是否开业:
</span>
<span>
是
</span>
</td>
<td>
<span
class=
"span-width-90"
>
是否分红:
</span>
<span>
是
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
之前已收佣:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
成交价:
</span>
<span>
66666元
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
中介费类型:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
应收金额:
</span>
<span>
66666元
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
多收金额:
</span>
<span>
66666元
</span>
</td>
<td>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
商铺号:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
业态/品牌:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
来源:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
状态:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
手续费:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
实付金额:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
备注:
</span>
<input
type=
"text"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
最后转定时间:
</span>
<input
type=
"text"
placeholder=
"请输入"
>
</td>
</tr>
</table>
<div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body_du"
>
<label>
请选择一个图像文件:
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic"
/>
<div
id=
"container_body_img_area_du"
></div>
</div>
</div>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
>
</ul>
</div>
<div
class=
"tip-liu"
>
<p>
图片上传规则:
</p>
<p>
意向金:意向金收条,居间协议,客户身份证正反面,转账记录,佣金确认书,现场图(须两位业务员在场)(共6项)
</p>
<p>
转定:定金收条,意向金收条,居间协议,房东身份证正反面,佣金确认书,现场图(须两位业务员在场)(共6项)
</p>
<p>
签约:居间协议,佣金确认书,租赁合同(只传首页和尾页),转账记录,收据,现场图(须两位业务员在场)(共6项)
</p>
</div>
</div>
</div>
</div>
</div>
<!-- /.modal-content -->
<!-- /.modal-content -->
...
...
public/resource/js/financial_manager_daily_list.js
View file @
4fc4e23a
...
@@ -63,6 +63,8 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -63,6 +63,8 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
bargain
.
event
();
bargain
.
event
();
},
},
event
:
function
()
{
event
:
function
()
{
var
that
=
bargain
;
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
//店长日报 时间搜索
//店长日报 时间搜索
_doc
.
on
(
'input'
,
'#create_time_start'
,
function
()
{
_doc
.
on
(
'input'
,
'#create_time_start'
,
function
()
{
...
@@ -288,6 +290,223 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -288,6 +290,223 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
window
.
print
();
window
.
print
();
});
//操作---调整
$
(
document
).
on
(
'click'
,
'.money_change'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
var
type
=
e
.
target
.
dataset
.
type
;
var
order_id
=
e
.
target
.
dataset
.
order_id
;
that
.
type_num
=
e
.
target
.
dataset
.
type_num
;
that
.
transfer_name
=
e
.
target
.
dataset
.
transfer_name
that
.
pay_id
=
id
;
that
.
house_number
=
e
.
target
.
dataset
.
house_number
;
that
.
receipt_number
=
e
.
target
.
dataset
.
receipt_number
;
that
.
pay_type
=
e
.
target
.
dataset
.
pay_type
;
that
.
income_time
=
e
.
target
.
dataset
.
income_time
;
that
.
getAllPrice
(
id
);
if
(
type
==
"意向金"
){
$
(
'#change_type'
).
val
(
91
);
$
(
'.baoguanjin'
).
hide
();
$
(
'.yixiangjin'
).
show
();
}
else
{
$
(
'#change_type'
).
val
(
91
);
$
(
'.yixiangjin'
).
hide
();
$
(
'.baoguanjin'
).
show
();
}
that
.
yetai
=
""
;
//点击调整的时候 初始化调整页面的 中介费类型 之前已收佣
//中介费类型显示 隐藏 中介费
if
(
$
(
'#change_type'
).
val
()
==
91
){
$
(
'#agency_fees_type_div'
).
show
();
}
else
{
$
(
'#agency_fees_type_div'
).
hide
();
};
//之前收佣 显示隐藏 中介费 案场费
if
(
$
(
'#change_type'
).
val
()
==
91
||
$
(
'#change_type'
).
val
()
==
92
){
$
(
'#before_commission_div'
).
show
();
}
else
{
$
(
'#before_commission_div'
).
hide
();
};
});
$
(
'#saveChangeBtn'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
//保存调整
that
.
saveChange
();
});
$
(
'#back_saveChangeBtn'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
//保存退款
that
.
saveBack
();
});
$
(
"#modal-back"
).
on
(
"hidden.bs.modal"
,
function
(
event
){
$
(
'#before_commission'
).
val
(
"0"
);
//调整页面 之前已收佣 0
$
(
'#agency_fees_type'
).
val
(
"0"
);
//调整页面 中介费 0
$
(
'#change_price'
).
val
(
"0"
);
$
(
'#report_id_change'
).
val
(
""
);
$
(
'#into_id_change'
).
val
(
""
);
$
(
'#shop_id_change'
).
text
(
""
);
$
(
'#shop_addr_change'
).
text
(
""
);
$
(
'#shop_id_change_shop'
).
val
(
""
);
$
(
'#change_fenhong'
).
val
(
""
);
$
(
'#change_time'
).
val
(
""
);
$
(
'.img_area'
).
empty
();
$
(
'#reportArea'
).
hide
();
$
(
'#intoIdArea'
).
hide
();
$
(
"#into_id_change"
).
removeAttr
(
"readOnly"
)
});
$
(
"#modal-linetime"
).
on
(
"hidden.bs.modal"
,
function
(
event
){
//清空 调整 页面内容
// that.initBackData();
$
(
'#could_price'
).
text
(
"0"
);
$
(
'#change_type'
).
val
(
""
);
$
(
'#change_price'
).
val
(
""
);
$
(
'#report_id_change'
).
val
(
""
);
$
(
'#into_id_change'
).
val
(
""
);
$
(
'#shop_id_change'
).
text
(
""
);
$
(
'#shop_addr_change'
).
text
(
""
);
$
(
'#change_fenhong'
).
val
(
""
);
$
(
'#shop_id_change_shop'
).
val
(
""
);
$
(
'#change_time'
).
val
(
""
);
$
(
'.img_area'
).
empty
();
});
//调整
$
(
"#modal-linetime"
).
on
(
"shown.bs.modal"
,
function
(
event
){
//initMoadalData
that
.
change_show_hide
(
$
(
'#change_type option:selected'
).
text
());
});
$
(
"#modal-back"
).
on
(
"hide.bs.modal"
,
function
(
event
){
//清空 退款 页面内容
$
(
'#back_type'
).
val
(
''
);
$
(
'#back_price'
).
val
(
''
);
$
(
'#back_no'
).
val
(
''
);
$
(
'#back_reason'
).
val
(
''
);
$
(
'#back_price_user'
).
val
(
''
);
$
(
'#back_bank'
).
val
(
''
);
$
(
'#back_bank_name'
).
val
(
''
);
$
(
'#back_phone'
).
val
(
''
);
$
(
'#back_others'
).
val
(
''
);
$
(
'#could_price_back'
).
text
(
""
);
$
(
'#back_into_type'
).
text
(
""
);
$
(
'#back_shop_addr'
).
text
(
""
);
// $('#back_price_type').text("");
$
(
'#container_body_img_area3'
).
empty
();
});
//成交报告ID搜索 中介费/案场费
$
(
document
).
on
(
"input"
,
"#report_id_change"
,
function
()
{
//手机号新增搜索客方
var
val
=
$
(
'#report_id_change'
).
val
()
var
data
=
that
.
getReportDataByDetail
(
val
);
if
(
$
(
"#report_id_change"
).
val
()
==
''
)
{
var
tag
=
""
;
$
(
'#reportArea'
).
append
(
tag
);
}
else
{
that
.
search_phone
();
}
});
//带看id搜索 意向金/保管金
$
(
document
).
on
(
"input"
,
"#into_id_change"
,
function
()
{
var
val
=
$
(
'#into_id_change'
).
val
()
var
data
=
that
.
getReportDataByDetail
(
val
);
if
(
$
(
"#into_id_change"
).
val
()
==
''
)
{
var
tag
=
""
;
// tag += '<li class="hideLI" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + status + '</li>';
$
(
'#intoIdArea'
).
append
(
tag
);
}
else
{
that
.
search_into
();
}
});
//点击li 列表消失 成交报告id 列表
$
(
document
).
delegate
(
".reportIdBuild"
,
"click"
,
function
()
{
that
.
reportIdBuild
(
this
);
});
//点击li 列表消失 带看id 列表
$
(
document
).
delegate
(
".intoIdBuild"
,
"click"
,
function
()
{
that
.
intoIdBuild
(
this
);
});
$
(
'#file_input3'
).
on
(
'change'
,
function
(){
//退款图片上传
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_area3'
).
append
(
'<div class="result"><img id="{0}" src="{1}" alt=""/> <span class="span-del3">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
$
(
"#file_input"
).
change
(
function
()
{
//调整 上传图片
var
_this
=
$
(
this
);
var
_spFile
=
_this
.
data
(
'spfile'
);
var
_limitTop
=
_this
.
data
(
'limittop'
);
var
_fileNum
=
_this
.
parent
().
next
().
find
(
'.delet-pic-btn'
).
length
;
//根据删除按钮的个数,确定文件的个数
if
(
_limitTop
&&
(
_fileNum
<
_limitTop
))
{
that
.
uploadImg
(
_this
);
}
else
{
alert
(
'上传上限为 '
+
_limitTop
);
return
false
;
};
});
//图片删除,已有的则调用接口删除
_doc
.
on
(
'click'
,
'.span-del2'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
that
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
//图片删除,已有的则调用接口删除
_doc
.
on
(
'click'
,
'.span-del3'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
that
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
//收款列表 调整页面 加中介费类型
$
(
"#change_type"
).
change
(
function
()
{
//中介费类型显示 隐藏 中介费
if
(
$
(
'#change_type'
).
val
()
==
91
){
$
(
'#agency_fees_type_div'
).
show
();
}
else
{
$
(
'#agency_fees_type_div'
).
hide
();
};
//之前收佣 显示隐藏 中介费 案场费
if
(
$
(
'#change_type'
).
val
()
==
91
||
$
(
'#change_type'
).
val
()
==
92
){
$
(
'#before_commission_div'
).
show
();
}
else
{
$
(
'#before_commission_div'
).
hide
();
}
});
});
//搜索的重置
//搜索的重置
$
(
"#maintable_reset"
).
click
(
function
()
{
$
(
"#maintable_reset"
).
click
(
function
()
{
...
@@ -970,7 +1189,6 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -970,7 +1189,6 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
$
(
"#comes"
).
text
(
'调整'
);
$
(
"#comes"
).
text
(
'调整'
);
doc
.
find
(
"#status"
).
text
(
"被调整"
);
doc
.
find
(
"#status"
).
text
(
"被调整"
);
}
}
// doc.find("#status").text(data.source_id);
doc
.
find
(
"#lastTime"
).
val
(
data
.
last_transfer_time
);
doc
.
find
(
"#lastTime"
).
val
(
data
.
last_transfer_time
);
doc
.
find
(
"#shoutiao"
).
val
(
data
.
receipt_number
);
doc
.
find
(
"#shoutiao"
).
val
(
data
.
receipt_number
);
if
(
data
.
type
==
91
||
data
.
type
==
92
)
{
if
(
data
.
type
==
91
||
data
.
type
==
92
)
{
...
@@ -1004,8 +1222,6 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -1004,8 +1222,6 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
//渲染已经有的列表
//渲染已经有的列表
// <img src='[%= it[item]["agent_img"] %]' class="diagram-image J_preview"
// data-bimg='[%= it[item]["agent_img"] %]'>
for
(
i
=
0
;
i
<
data
.
data
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
data
.
data
.
length
;
i
++
)
{
$
(
'#container_body_img_area_du'
).
append
(
'<div class="result2-du"><img data-imgid="{0}" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2-du">删除</span></div>'
.
stringFormatObj
({
$
(
'#container_body_img_area_du'
).
append
(
'<div class="result2-du"><img data-imgid="{0}" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2-du">删除</span></div>'
.
stringFormatObj
({
'0'
:
data
.
data
[
i
].
id
,
'0'
:
data
.
data
[
i
].
id
,
...
@@ -1113,6 +1329,393 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -1113,6 +1329,393 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}
}
},
'json'
);
},
'json'
);
},
},
//保存调整
saveChange
:
function
(
no
){
var
that
=
receiv
;
if
(
that
.
pay_id
-
0
<
1
){
alert
(
"参数错误!"
);
}
var
params
=
{
'order_id'
:
that
.
order_id
,
'order_no'
:
that
.
order_no
,
// 'agent_id' : that.agent_id,
'agent_id'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
id
,
'report_id'
:
that
.
report_id
,
'industry_type'
:
that
.
yetai
?
that
.
yetai
:
''
,
'income_time'
:
that
.
income_time
,
'pay_id'
:
that
.
pay_id
,
'transfer_name'
:
that
.
transfer_name
,
};
//调整类型 选择为中介费 案场费 要提交成交报告id
if
(
$
(
'#change_type'
).
val
()
==
91
||
$
(
'#change_type'
).
val
()
==
92
){
if
(
$
.
trim
(
$
(
"#report_id_change"
).
val
())){
params
.
bargain_id
=
$
.
trim
(
$
(
"#report_id_change"
).
val
());
}
else
{
alert
(
'请选择成交报告ID'
)
return
;
}
}
else
{
params
.
bargain_id
=
0
;
}
var
obj
=
{
'pay_type'
:
that
.
pay_type
};
if
(
$
(
'#change_type'
).
val
()){
//调整类型
obj
.
type
=
$
(
'#change_type'
).
val
();
//that.type_num;
};
//提交调整 案场费 中介费 之前已收佣 中介费类型
if
(
$
(
'#change_type'
).
val
()
==
91
||
$
(
'#change_type'
).
val
()
==
92
){
params
.
received_money
=
$
(
'#before_commission'
).
val
();
params
.
type_ext
=
$
(
'#agency_fees_type'
).
val
();
};
if
(
$
(
'#change_type'
).
val
()
==
91
){
params
.
type_ext
=
$
(
'#agency_fees_type'
).
val
();
}
//拼接jsonArray to jsonObject
if
(
$
(
'#change_price'
).
val
()){
//调整金额
if
(
$
(
'#change_price'
).
val
()
>
0
){
if
(
$
(
'#change_price'
).
val
()
-
$
(
'#could_price'
).
text
()
>
0
){
alert
(
"超出最大限额"
);
return
false
;
}
else
{
obj
.
money
=
$
(
'#change_price'
).
val
();}
}
else
{
alert
(
'请选择调整金额'
);
return
false
;
}
};
var
jsonArray
=
[]
;
jsonArray
.
push
(
obj
);
params
.
collecting_bill
=
JSON
.
stringify
(
jsonArray
)
;
params
.
house_number
=
$
(
'#shop_id_change_shop'
).
val
()
if
(
$
(
'#change_type'
).
val
()
==
10
||
$
(
'#change_type'
).
val
()
==
30
){
if
(
$
(
'#change_time'
).
val
()){
//最后转定时间
params
.
last_transfer_time
=
$
(
'#change_time'
).
val
()
};
}
else
{
if
(
$
(
'#change_fenhong'
).
text
()){
//分红
params
.
is_dividend
=
$
(
'#change_fenhong'
).
val
()
};
}
params
.
receipt_number
=
that
.
receipt_number
;
if
(
$
(
'#into_id_change'
).
val
()){
//带看id
params
.
into_id_change
=
$
(
'#into_id_change'
).
val
()
};
//图片数据处理
var
pictures
=
$
(
'.img_area'
).
find
(
'.pictures'
);
var
picName
=
""
;
pictures
.
each
(
function
(
i
,
event
){
picName
+=
$
(
this
).
attr
(
"id"
)
+
","
})
if
(
!
(
pictures
.
length
-
0
>
0
)
){
alert
(
"请选择图片"
);
return
false
;
}
else
{
params
.
transfer_img
=
JSON
.
stringify
(
picName
.
substr
(
0
,
picName
.
length
-
1
).
split
(
","
));
}
//上传数据
$
.
post
(
'/index/collectingBill'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#modal-linetime'
).
modal
(
'hide'
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
);
},
//保存退款
getBackParams
:
function
(){
var
that
=
receiv
;
var
sysans
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
console
.
log
(
sysans
);
var
params
=
{}
;
var
back_type
=
$
(
'#back_type'
).
val
();
var
back_price
=
$
(
'#back_price'
).
val
();
var
back_no
=
$
(
'#back_no'
).
val
();
var
back_reason
=
$
(
'#back_reason'
).
val
();
var
back_price_user
=
$
(
'#back_price_user'
).
val
();
var
back_bank
=
$
(
'#back_bank'
).
val
();
var
back_bank_name
=
$
(
'#back_bank_name'
).
val
();
var
back_phone
=
$
(
'#back_phone'
).
val
();
var
back_others
=
$
(
'#back_others'
).
val
();
params
.
refund_way
=
0
;
params
.
pay_log_id
=
that
.
back_id
;
params
.
order_id
=
that
.
back_order_id
;
params
.
order_no
=
that
.
back_order_no
;
params
.
report_id
=
that
.
back_report_id
;
params
.
agent_id
=
sysans
.
id
;
params
.
agent_name
=
sysans
.
name
;
// params.agent_id = that.back_agent_id;
if
(
back_type
-
0
>
-
1
){
params
.
type
=
back_type
;
}
else
{
alert
(
"请输入退款类型"
);
return
false
;
};
var
max
=
$
(
'#could_price_back'
).
text
()
if
(
back_price
){
if
(
back_price
>
0
){
console
.
log
(
max
);
console
.
log
(
back_price
)
if
(
max
-
back_price
>
-
1
)
{
params
.
refund_money
=
back_price
;
}
else
{
alert
(
"请输入正确的金额"
);
return
false
;
}
}
else
{
alert
(
"请输入正确的金额"
);
return
false
;
}
}
if
(
back_no
){
params
.
receipt_number
=
back_no
;
}
else
{
alert
(
"请输入退款凭证编号"
);
return
false
;
}
if
(
back_reason
){
params
.
refund_cause
=
back_reason
;
}
else
{
alert
(
"请输入退款原因"
);
return
false
;
}
if
(
back_price_user
){
params
.
card_no
=
back_price_user
;
}
else
{
alert
(
"请输入退款账户"
);
return
false
;
}
if
(
back_bank
){
params
.
bank
=
back_bank
;
}
else
{
alert
(
"请输入开户行"
);
return
false
;
}
if
(
back_bank_name
){
params
.
name
=
back_bank_name
;
}
else
{
alert
(
"请输入户名"
);
return
false
;
}
if
(
back_phone
)
{
if
(
back_phone
[
0
]
==
"1"
&&
back_phone
.
length
==
11
&&
back_phone
-
0
>-
1
)
{
params
.
phone
=
back_phone
;
}
else
{
alert
(
"请输入正确的手机号码"
)
return
false
;
}
}
else
{
lert
(
"请输入正确的手机号码"
)
return
false
;
}
if
(
back_others
){
params
.
remark
=
back_others
;
}
else
{
alert
(
"请输入其他原因"
);
return
false
;
}
//图片数据处理
var
pictures
=
$
(
'#container_body_img_area3'
).
find
(
'.result'
);
var
picName
=
[];
pictures
.
each
(
function
(
i
,
event
){
picName
[
i
]
=
$
(
this
).
find
(
"img"
).
attr
(
"id"
)
})
console
.
log
(
picName
);
if
(
!
(
pictures
.
length
-
0
>
0
)
){
alert
(
"请选择图片"
);
return
false
;
}
else
{
params
.
remark_img
=
picName
;
//JSON.stringify(picName.substr(0,picName.length-1).split(","));
}
console
.
log
(
typeof
(
params
.
remark_img
))
return
params
;
},
getReportDataByDetail
:
function
(
val
){
//调整页面 搜索成交报告id相关
$
.
post
(
'/index/getCollection'
,{
'val'
:
val
},
function
(
data
){
if
(
data
.
code
==
200
)
{
return
data
;
}
else
{
alert
(
data
.
msg
);
}
})
},
search_phone
:
function
(){
//成交报告id 下拉列表
var
that
=
bargain
;
$
.
ajax
({
url
:
'/broker/bargainMain'
,
type
:
'GET'
,
async
:
true
,
data
:
{
// "keyword": $("#report_id_change").val(),
"bargain_id"
:
$
(
"#report_id_change"
).
val
(),
'status'
:
0
,
'is_my_correlation'
:
0
,
'page_no'
:
1
,
'page_size'
:
20
,
'AuthToken'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
AuthToken
,
'submit_agent_id'
:
0
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
result
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="reportIdBuild" data-house_id="'
+
item
.
house_id
+
'" data-house_number="'
+
item
.
house_number
+
'"data-order_id="'
+
item
.
order_id
+
'" data-agent_id="'
+
item
.
agent_id
+
'" data-order_no="'
+
item
.
order_no
+
'" data-agent_id="'
+
item
.
agent_id
+
'" data-agent_id="'
+
item
.
agent_id
+
'" data-report_id="'
+
item
.
report_id
+
'" data-addr="'
+
item
.
internal_address
+
'" data-id="'
+
item
.
id
+
'">'
+
item
.
internal_address
+
',商铺ID:'
+
item
.
house_id
+
',成交报告ID'
+
item
.
id
+
',成交价:'
+
item
.
price
+
',佣金'
+
item
.
commission
+
'</li>'
;
});
$
(
'.reportArea'
).
show
();
$
(
".reportArea"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
search_into
:
function
(){
//带看id 下拉列表
var
that
=
bargain
;
$
.
ajax
({
url
:
'/broker/searchOrder'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"type"
:
7
,
"search_keyword"
:
$
(
"#into_id_change"
).
val
(),
"is_all"
:
1
,
'page_no'
:
1
,
'page_size'
:
20
,
'AuthToken'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
AuthToken
,
'agent_id'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="intoIdBuild" data-house_number="'
+
item
.
house_number
+
'"data-order_id="'
+
item
.
id
+
'" data-addr="'
+
item
.
house_address
+
'" data-id="'
+
item
.
id
+
'" data-house_id="'
+
item
.
house_id
+
'" data-agent_id="'
+
item
.
report_agent_id
+
'" data-agent_name="'
+
item
.
report_agent_name
+
'" data-order_no="'
+
item
.
order_no
+
'">'
+
item
.
house_address
+
',商铺ID:'
+
item
.
house_id
+
',带看ID:'
+
item
.
id
+
',客户编号:'
+
item
.
user_id
+
'</li>'
;
});
$
(
'.intoIdArea'
).
show
();
$
(
".intoIdArea"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
getAllPrice
:
function
(
id
){
$
.
get
(
'/index/getAdjustment'
,{
'pay_id'
:
id
},
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#could_price'
).
text
(
data
.
data
.
residue_money
);
}
else
{
alert
(
data
.
msg
);
}
})
},
change_show_hide
:
function
(
val
){
if
(
val
==
"意向金"
)
{
$
(
'.choose_topic_1'
).
hide
();
$
(
'.choose_topic_2'
).
show
();
$
(
'.rep'
).
hide
();
$
(
"#into_id_change"
).
removeAttr
(
"readOnly"
)
}
else
if
(
val
==
'保管金'
)
{
$
(
'.choose_topic_1'
).
hide
();
$
(
'.choose_topic_2'
).
show
();
$
(
'.rep'
).
hide
();
$
(
"#into_id_change"
).
removeAttr
(
"readOnly"
)
}
else
{
$
(
'.choose_topic_2'
).
hide
();
$
(
'.choose_topic_1'
).
show
();
$
(
'.rep'
).
show
();
$
(
'#into_id_change'
).
attr
(
"readonly"
,
"readonly"
);
}
},
//将li里的值 赋给input(分佣方姓名)
intoIdBuild
:
function
(
obj
)
{
//新增客户 input赋值
var
that
=
bargain
;
$
(
"#into_id_change"
).
val
(
$
(
obj
).
attr
(
"data-id"
));
$
(
".intoIdArea"
).
html
(
''
);
$
(
'.intoIdArea'
).
hide
();
$
(
'#shop_addr_change'
).
text
(
$
(
obj
).
attr
(
"data-addr"
));
$
(
'#shop_id_change'
).
text
(
$
(
obj
).
attr
(
"data-house_id"
));
that
.
houseNmuber
=
$
(
obj
).
attr
(
"data-house_number"
)
!=
"undefined"
?
$
(
obj
).
attr
(
"data-house_number"
):
''
;
that
.
order_id
=
$
(
obj
).
attr
(
"data-order_id"
)
;
that
.
order_no
=
$
(
obj
).
attr
(
"data-order_no"
)
;
that
.
report_id
=
$
(
obj
).
attr
(
"data-id"
);
that
.
agent_id
=
$
(
obj
).
attr
(
"data-agent_id"
);
that
.
agent_name
=
$
(
obj
).
attr
(
"data-agent_name"
);
that
.
changeType
(
that
.
order_id
);
},
//将li里的值 赋给input(分佣方姓名)
reportIdBuild
:
function
(
obj
)
{
//新增客户 input赋值
var
that
=
bargain
;
$
(
"#report_id_change"
).
val
(
$
(
obj
).
attr
(
"data-id"
));
$
(
".reportArea"
).
html
(
''
);
$
(
'.reportArea'
).
hide
();
$
(
'#shop_addr_change'
).
text
(
$
(
obj
).
attr
(
"data-addr"
));
$
(
'#shop_id_change_shop'
).
val
(
$
(
obj
).
attr
(
"data-house_number"
));
$
(
'#shop_id_change'
).
text
(
$
(
obj
).
attr
(
"data-house_id"
));
that
.
houseNmuber
=
$
(
obj
).
attr
(
"data-house_number"
);
$
(
'#into_id_change'
).
attr
(
"readonly"
,
"readonly"
);
$
(
'#into_id_change'
).
val
(
$
(
obj
).
attr
(
"data-order_id"
));
$
(
'#order_id_report'
).
val
(
$
(
obj
).
attr
(
"data-order_id"
));
that
.
order_id
=
$
(
obj
).
attr
(
"data-order_id"
)
;
that
.
order_no
=
$
(
obj
).
attr
(
"data-order_no"
)
;
that
.
report_id
=
$
(
obj
).
attr
(
"data-report_id"
);
that
.
agent_id
=
$
(
obj
).
attr
(
"data-agent_id"
);
that
.
agent_name
=
$
(
obj
).
attr
(
"data-agent_name"
);
},
//上传图片 调整
uploadImg
:
function
(
_this
){
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
'https://images.tonglianjituan.com/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
var
_url
=
_data
.
data
.
internet_img_name
;
var
tag
=
''
;
tag
+=
'<div class="col-xs-3 pictures" id='
+
_data
.
data
.
img_path
+
'>'
;
if
(
_data
.
data
.
type
==
"shop_image_depot"
)
{
tag
+=
' <img src="/'
+
_url
+
'" class="" id="" width="90%">'
;
}
else
{
tag
+=
' <img src="'
+
_url
+
'" class="" id="" width="90%">'
;
}
tag
+=
' <div style="text-align:center" id="'
+
_data
.
data
.
img_path
+
'"><a href="javascript:;" class="delet-pic-btn">删除</a></div>'
;
tag
+=
'</div>'
;
$
(
'.img_area'
).
append
(
tag
)
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
},
setValue
:
function
(
data
){
setValue
:
function
(
data
){
var
that
=
bargain
;
var
that
=
bargain
;
$
(
'#change_id'
).
text
(
data
.
id
);
$
(
'#change_id'
).
text
(
data
.
id
);
...
...
public/resource/js/inspectionRecordAll.js
View file @
4fc4e23a
...
@@ -146,9 +146,17 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
...
@@ -146,9 +146,17 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
e
.
stopPropagation
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
_this
.
parent
().
remove
();
bargain
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
record
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
};
});
});
//点击收佣金 获取成交报告id
_doc
.
on
(
'click'
,
'.submit-commission'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
record
.
getListReport
();
});
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
...
@@ -256,6 +264,50 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
...
@@ -256,6 +264,50 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
}
}
});
});
},
},
//收佣金 获取成交报告列表
getListReport
:
function
()
{
var
params
=
{};
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
type
=
1
;
params
.
agent_id
=
user_info_obj
.
id
;
params
.
pageNo
=
1
;
params
.
pageSize
=
record
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
record
.
url
,
//约带看记录 对接接口(2.9.6 有权限的人 才能看到)
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'report_list_tpl'
).
innerHTML
);
if
(
data
.
data
.
list
)
{
$
(
"#report_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
}
else
{
$
(
"#report_list"
).
html
(
doTtmpl
(
data
.
data
));
}
/*分页代码*/
// add_page(data.data.total, pageNo, record.pageSize, record.getList);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//调用部门 和 门店的接口
//调用部门 和 门店的接口
getDistrict
:
function
(
fn
)
{
getDistrict
:
function
(
fn
)
{
$
.
ajax
({
$
.
ajax
({
...
...
public/resource/template/financial_manager_daily_list_template_tpl.html
View file @
4fc4e23a
...
@@ -34,6 +34,13 @@
...
@@ -34,6 +34,13 @@
<
td
>
<
td
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info money_change"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
type
=
'[%= it[item]['
type
'] %]'
data
-
id
=
'[%= it[item]["id"]%]'
data
-
receipt_number
=
'[%= it[item]['
receipt_number
'] %]'
data
-
house_number
=
'[%= it[item]['
house_number
'] %]'
data
-
transfer_name
=
'[%= it[item]['
transfer_name
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
type_num
=
'[%= it[item]['
type_num
'] %]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
pay_type
=
'[%= it[item]['
pay_type_num
'] %]'
>
调整
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
agent_name
'] %]'
data
-
type
=
'[%= it[item]['
type
'] %]'
>
退款
<
/a
>
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
删除
<
/a
>
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
%
]
...
@@ -101,6 +108,9 @@
...
@@ -101,6 +108,9 @@
<
td
>
<
td
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info record-pic"
href
=
"#modal_financial"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
资料
<
/a
>
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info add-pic"
href
=
"#modal-addPic"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info money_change"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
type
=
'意向金'
data
-
id
=
'[%= it[item]["id"]%]'
data
-
receipt_number
=
'[%= it[item]['
receipt_number
'] %]'
data
-
house_number
=
'[%= it[item]['
house_number
'] %]'
data
-
transfer_name
=
'[%= it[item]['
transfer_name
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
type_num
=
'[%= it[item]['
type_num
'] %]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
pay_type
=
'[%= it[item]['
pay_type_num
'] %]'
>
调整
<
/a
>
<
a
class
=
"btn1 btn-info money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
agent_name
'] %]'
data
-
type
=
'[%= it[item]['
type
'] %]'
>
退款
<
/a
>
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
删除
<
/a
>
<
a
class
=
"btn1 btn-info del-details"
href
=
"#modal-delete"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
%
]
...
...
public/resource/template/inspectionRecordAll_list_template_tpl.html
View file @
4fc4e23a
...
@@ -16,9 +16,31 @@
...
@@ -16,9 +16,31 @@
<
a
class
=
"btn1 btn-success submit-report"
href
=
"#modal-report"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
提交成交报告
<
/a
>
<
a
class
=
"btn1 btn-success submit-report"
href
=
"#modal-report"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
提交成交报告
<
/a
>
[
%
}
%
]
[
%
}
%
]
&
nbsp
;
&
nbsp
;
<
a
class
=
"btn1 btn-success submit-
report
"
href
=
"#modal-intention"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
收意向金
/
保管金
<
/a
>
<
a
class
=
"btn1 btn-success submit-
intention
"
href
=
"#modal-intention"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
收意向金
/
保管金
<
/a
>
&
nbsp
;
&
nbsp
;
<
a
class
=
"btn1 btn-success submit-report"
href
=
"#modal-commission"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
收佣金
<
/a
>
<
a
class
=
"btn1 btn-success submit-commission"
href
=
"#modal-commission"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
收佣金
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--收佣金 选择成交报告-->
<script
id=
"report_list_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
data
-
data
=
"[%= encodeURIComponent(JSON.stringify(it[item])) %]"
>
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
>
[
%=
hideTel
(
it
[
item
][
'user_phone'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_title'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success commissionConfirm"
href
=
"#modal-commissionConfirm"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
选择
<
/a
>
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
...
...
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