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
343b9c9b
Commit
343b9c9b
authored
Aug 29, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
意向金预警
parent
b73cd6a6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3775 additions
and
0 deletions
+3775
-0
RealTimePerformance.php
application/index/controller/RealTimePerformance.php
+22
-0
delFinanceReport.html
application/index/view/finance/delFinanceReport.html
+2
-0
fineMoney.html
application/index/view/finance/fineMoney.html
+2
-0
noRansferEarnest.html
application/index/view/finance/noRansferEarnest.html
+1380
-0
noRansferEarnest.js
public/resource/js/noRansferEarnest.js
+2138
-0
noRansferEarnest_template_tpl.html
public/resource/template/noRansferEarnest_template_tpl.html
+231
-0
No files found.
application/index/controller/RealTimePerformance.php
View file @
343b9c9b
...
...
@@ -109,5 +109,26 @@ class RealTimePerformance extends Basic
return
view
(
'finance/forgetSubmitFinancial'
);
}
}
//意向金未转定列表
public
function
noRansferEarnest
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'finance/noRansferEarnest'
);
}
}
//删除收款列表
public
function
delFinanceReport
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'finance/delFinanceReport'
);
}
}
//罚款列表
public
function
fineMoney
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'finance/fineMoney'
);
}
}
}
\ No newline at end of file
application/index/view/finance/delFinanceReport.html
0 → 100644
View file @
343b9c9b
删除收款
\ No newline at end of file
application/index/view/finance/fineMoney.html
0 → 100644
View file @
343b9c9b
罚款
\ No newline at end of file
application/index/view/finance/noRansferEarnest.html
0 → 100644
View file @
343b9c9b
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"noRansferEarnest"
/>
<style>
#file_input_pic_open
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
0
;
height
:
35px
;
width
:
80px
;
}
.reportAreaLiu
{
list-style
:
none
;
}
.col-xs-3
{
padding-left
:
8px
;
padding-right
:
8px
;
}
.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
;
}
.modal-body-height
{
overflow-y
:
auto
;
height
:
551px
;
}
#container_body_img_area
>
div
{
float
:
left
;
width
:
216px
;
}
.user-ul2
{
width
:
100%
;
height
:
auto
;
padding-bottom
:
15px
;
float
:
left
;
}
.user-ul2
li
{
list-style
:
none
;
line-height
:
30px
;
}
.money_total_two
{
font-weight
:
bold
;
font-size
:
15px
;
line-height
:
34px
;
display
:
inline-block
;
}
.img-pre-ul
{
padding-left
:
0
;
overflow
:
hidden
;
}
/*图片上传相关样式*/
.img-pre-ul
>
li
{
list-style
:
no
;
float
:
left
;
width
:
210px
;
height
:
170px
;
overflow
:
hidden
;
margin-right
:
10px
;
margin-top
:
10px
;
}
.img-pre-ul
>
li
.pdf-pre-li
{
height
:
70px
;
}
.img-pre-ul
>
li
>
img
{
float
:
left
;
width
:
210px
;
height
:
140px
;
object-fit
:
contain
;
cursor
:
pointer
;
}
.img-pre-ul
>
li
>
a
{
float
:
left
;
width
:
210px
;
text-align
:
center
;
line-height
:
30px
;
}
.img-pre-ul
>
li
>
a
.pdf-pre-a
{
line-height
:
20px
;
word-break
:
break-all
;
}
/*图片点击放大预览区域的样式*/
#img_mask_area
{
position
:
fixed
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
z-index
:
1999
;
background-color
:
rgba
(
0
,
0
,
0
,
.3
);
display
:
none
;
}
#img_mask_area
>
img
{
width
:
900px
;
height
:
700px
;
object-fit
:
contain
;
position
:
absolute
;
left
:
50%
;
top
:
50%
;
margin-left
:
-450px
;
margin-top
:
-350px
;
}
/*上传图片列表 样式*/
.form-group
{
margin
:
10px
;
}
.input-100-width
{
width
:
100px
!important
;
}
.input-360-width
{
width
:
360px
!important
;
}
.textarea-500-width
{
width
:
500px
!important
;
}
.list-group-item
>
.full-width-100
+
.full-width-100
{
padding-top
:
10px
;
}
.list-group-item
>
.full-width-100
>
label
{
width
:
60px
;
}
.list-group-item
>
.full-pic-area
>
label
{
width
:
120px
;
}
.delet-pic-btn
{
color
:
red
;
}
/*css样式*/
.img-cont
{
width
:
1000px
;
height
:
570px
;
border
:
2px
solid
#317ef3
;
margin
:
50px
auto
;
}
.img-cont
>
div
{
width
:
300px
;
height
:
260px
;
border
:
1px
solid
#777
;
float
:
left
;
margin
:
20px
0
0
20px
;
}
.img-cont
>
div
>
div
{
width
:
300px
;
height
:
220px
;
border
:
1px
solid
red
;
}
.img-cont
>
div
>
a
{
width
:
60px
;
height
:
30px
;
border-radius
:
4px
;
line-height
:
30px
;
text-align
:
center
;
color
:
#fff
;
display
:
block
;
background
:
#317ef3
;
margin
:
5px
0
0
0px
;
cursor
:
pointer
;
}
.hide
{
display
:
none
!important
;
}
.result
,
.result-du-open
{
width
:
130px
;
height
:
auto
;
float
:
left
;
text-align
:
center
;
color
:
red
;
}
.result
>
img
,
.result2
>
img
,
.result-du-open
>
img
{
width
:
120px
;
height
:
120px
;
margin-top
:
8px
;
}
#container_body
{
position
:
relative
;
overflow
:
hidden
;
}
#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
;
}
.out-style
{
position
:
absolute
;
top
:
0
;
left
:
60px
;
}
.span-del2
,
.span-del
{
color
:
red
;
}
/*控制放大镜的 收款图片显示*/
#preview
{
z-index
:
9999
!important
;
}
#preview
img
{
width
:
600px
;
}
.clear
{
clear
:
both
;
}
/*css样式*/
#real_money2
{
margin-top
:
20px
;
}
.modal-body-width
{
width
:
970px
;
}
input
{
width
:
50%
;
}
.col-xs-12
{
overflow
:
hidden
;
}
.p-a-0
{
padding
:
0px
;
}
.p-l-15
{
padding-left
:
15px
!important
;
}
.p-t-10
{
padding-top
:
10px
!important
;
}
.no-border
{
border
:
none
;
}
#preview
img
{
height
:
300px
!important
;
width
:
500px
!important
;
}
#preview
{
height
:
300px
!important
;
width
:
500px
!important
;
}
#file_input
{
top
:
0
!important
;
height
:
41px
!important
;
width
:
102px
!important
;
}
.active
{
color
:
dodgerblue
;
}
#file_input_pic
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
80px
;
}
.rep
{
/*disabled:disabled;*/
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<a
href=
"javascript:;"
>
意向金预警
</a>
</li>
</div>
<div
class=
"panel-body"
style=
"overflow:hidden;"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<td
colspan=
"15"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
提交时间:
</span>
<input
id=
"comit_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'comit_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly'})"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
id=
"comit_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'comit_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readonly'})"
>
<span
class=
"fore-span ld-Marheight"
>
入账日期:
</span>
<input
id=
"into_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'into_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly'})"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
id=
"into_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'into_time_start\')}',maxDate:'%y-%M-%d',readOnly:'readonly'})"
>
<span
class=
"fore-span ld-Marheight"
>
开业确定时间:
</span>
<input
id=
"open_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'into_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly'})"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
id=
"open_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'into_time_start\')}',maxDate:'%y-%M-%d',readOnly:'readonly'})"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"maintable_deal_type"
>
<option
value=
""
>
入账类型
</option>
<option
value=
"10"
>
意向金
</option>
<!--<option value="20">定金</option>-->
<option
value=
"30"
>
保管金
</option>
<!--<option value="40">押金</option>
<option value="50">租金</option>
<option value="60">进场费</option>
<option value="70">转让费</option>
<option value="80">其他</option>
<option value="90">佣金</option>-->
<option
value=
"91"
>
中介费
</option>
<option
value=
"92"
>
案场费
</option>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"is_open"
>
<option
value=
"-1"
>
是否开业
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"maintable_pay_type"
>
<option
value=
""
>
入账方式
</option>
<option
value=
"10"
>
施总支付宝
</option>
<option
value=
"11"
>
林老师支付宝
</option>
<option
value=
"12"
>
筠姐支付宝
</option>
<option
value=
"13"
>
陈志杰支付宝
</option>
<option
value=
"20"
>
施总微信
</option>
<option
value=
"21"
>
林老师微信
</option>
<option
value=
"22"
>
筠姐微信
</option>
<option
value=
"23"
>
陈志杰微信
</option>
<option
value=
"30"
>
POS机器
</option>
<option
value=
"40"
>
地产转账
</option>
<option
value=
"41"
>
世家公账
</option>
<option
value=
"42"
>
3000账号
</option>
<option
value=
"50"
>
现金
</option>
<option
value=
"70"
>
银满谷银行卡
</option>
<option
value=
"71"
>
筠姐上海银行卡
</option>
<option
value=
"72"
>
林老师建行卡
</option>
<option
value=
"73"
>
新同联福居银行卡
</option>
<option
value=
"74"
>
陈志杰招商银行卡
</option>
<option
value=
"60"
>
其他
</option>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"come_from"
>
<option
value=
"-1"
>
来源
</option>
<option
value=
"1"
>
正常入账
</option>
<option
value=
"2"
>
调整入账
</option>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"order_id"
placeholder=
"带看ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"get_id"
placeholder=
"收款ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"report_id"
placeholder=
"成交报告ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"shop_id"
placeholder=
"商铺ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"shop_addr"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"commit_home"
>
<option
value=
""
>
提交人所在部门
</option>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"commit_shop"
>
<option
value=
""
>
提交人所在门店
</option>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul"
style=
"display:none"
></ul>
<select
class=
"form-control btn2 ld-Marheight"
id=
"is_normality"
>
<option
value=
"0"
>
全部状态
</option>
<option
value=
"1"
>
正常
</option>
</select>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
style=
"float:left"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
style=
"float:left"
>
重置
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"export"
style=
"float: left;"
>
导出报表
</span>
<!--<span class="money_total_two fore-span ld-Marheight ">实付总额:</span><span id="money_total" class="money_total_two_shifu fore-span ld-Marheight">1268</span>元-->
<!--<span class="btn btn-info btn3 ld-Marheight" id="export" style="float:left">导出报表</span>-->
<!--<span class="btn btn-info btn3 ld-Marheight" id="count" style="float:left">统计</span>-->
<br
/>
<span
style=
"float: left;margin-left: 6px;font-size: 16px;margin-top: 6px;font-weight: 600;margin-bottom: 10px;"
>
收款总计:
<span
class=
"receiving-total-money"
></span>
(正常入账:
<span
class=
"receiving-total-normal"
></span>
元,调整入账
<span
class=
"receiving-total-adjusment"
></span>
元 ),
实付总计:
<span
class=
"real-pay-total"
></span>
(正常入账:
<span
class=
"real-pay-normal"
></span>
元,调整入账
<span
class=
"real-pay-adjusment"
></span>
元 )
</span>
<!--收款总计:45123元(正常入账:4512元,调整入账4512元)
实付总计:45123元(正常入账:4512元,调整入账4512元)-->
</form>
</td>
</tr>
<tr>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
收款ID
</th>
<th
class=
"text-center"
>
带看ID
</th>
<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>
<th
class=
"text-center"
>
状态
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"order_list"
>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--时间轴-->
<div
class=
"modal fade"
id=
"modal-time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<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"
class=
"iframe-div-parent"
>
<iframe
class=
"iframe-time-line"
></iframe>
</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"
placeholder=
"请输入成交报告ID或商铺地址"
/>
<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_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_kaiye"
>
<option
value=
"3"
>
请选择
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</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
class=
"modal fade"
id=
"modal-addPic"
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 tit_con active shoukuanxiangqing"
style=
"width:auto!important;float:left"
>
收款详情
</h4>
<h4
class=
"modal-title tit_con"
style=
"width:auto!important;float:left;margin-left:20px;"
>
收款图片
</h4>
</div>
<div
class=
"modal-body modal-body-height pic-con1"
>
<ul
class=
"list-group "
>
<li
class=
"list-group-item"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body"
>
<label>
请选择一个图像文件:
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic"
/>
<div
id=
"container_body_img_area"
></div>
</div>
</div>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
>
</ul>
</li>
</ul>
</div>
<div
class=
"modal-footer pic-con1"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtn"
data-dismiss=
"modal"
>
保存
</button>
</div>
<div
class=
"modal-body modal-body-height pic-con2"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-2"
>
<div
class=
"form-group"
>
<strong><span>
入账ID:
</span></strong>
<span
id=
"ruzhangId"
>
45122
</span>
</div>
</div>
<div
class=
"col-xs-2"
>
<div
class=
"form-group"
>
<strong><span>
带看ID:
</span></strong>
<span
id=
"dingdanId"
>
45122
</span>
</div>
</div>
<div
class=
"col-xs-3"
>
<div
class=
"form-group"
>
<strong><span>
所属门店:
</span></strong>
<span
id=
"store_name"
></span>
</div>
</div>
<div
class=
"col-xs-2"
>
<div
class=
"form-group"
>
<strong><span>
房源ID:
</span></strong>
<span
id=
"fangyuanId"
>
45122
</span>
</div>
</div>
<div
class=
"col-xs-3"
>
<div
class=
"form-group"
style=
"margin-top: 3px;"
>
<strong><span>
成交报告ID:
</span></strong>
<span
id=
"chengjiaobaogaoId"
>
45122
</span>
<a
class=
"btn btn-info btn-small modifyReport"
href=
"#modifyReport_modal"
data-toggle=
"modal"
>
修改
</a>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
提交人:
</span></strong>
<span
id=
"tijiaoren"
class=
"col-xs-6 ld-Marheight"
>
forgina
</span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
房源地址:
</span></strong>
<span
id=
"address"
class=
"col-xs-6 ld-Marheight"
>
上海市南京东路123号
</span>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
提交时间:
</span></strong>
<span
id=
"comit_time"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
入账类型:
</span></strong>
<!--<span id="intoType" class="col-xs-6 ld-Marheight">中介费</span>-->
<span
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"intoType"
>
<option
value=
"10"
class=
"intention-gold-liu"
>
意向金
</option>
<option
value=
"30"
class=
"intention-gold-liu"
>
保管金
</option>
<option
value=
"91"
class=
"agency-fees-liu"
>
中介费
</option>
<option
value=
"92"
class=
"agency-fees-liu"
>
案场费
</option>
</select>
</span>
</div>
</div>
<!--收款详情 加中介费类型 之前已收佣-->
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6 agency_fees_type_hide"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
style=
"margin-left: -7px;"
>
中介费类型:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"agency_fees_type_text"
>
<option
class=
""
value=
"0"
>
正常
</option>
<option
class=
""
value=
"1"
>
多收
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6 before_commission_hide"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
之前已收佣:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
"0"
id=
"before_commission_text"
>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
商铺号:
</span></strong>
<!--<input class="form-control" type="text" value="2018" id="shopNo" />-->
<span
id=
"shopNo"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
成交价:
</span></strong>
<!--<input class="form-control" type="text" value="2018" id="salePrice" />-->
<span
id=
"salePrice"
class=
"col-xs-6 ld-Marheight"
></span>
<!--<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-3 ld-Marheight"
>
入账日期:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"intoDate"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d',readOnly:true})"
/>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
入账金额:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"intoPrice"
/></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-3 ld-Marheight"
>
手续费:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"shouxu"
/></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-3 ld-Marheight"
>
实付金额:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"realPrice"
/></div>
<strong><span
class=
"col-xs-2 ld-Marheight"
>
元
</span></strong>
</div>
</div>
<div
class=
"col-xs-6 zjcon"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
应收金额:
</span></strong>
<!--<div class="col-xs-6"><input class="form-control" type="text" value="" id="getPrice" /></div>-->
<span
id=
"getPrice"
class=
" col-xs-6 ld-Marheight"
></span>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
<div
class=
"col-xs-6 zjcon"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
多收金额:
</span></strong>
<!--<div class="col-xs-6"><input class="form-control" type="text" value="" id="morePrice" /></div>-->
<span
id=
"morePrice"
class=
" col-xs-6 ld-Marheight"
></span>
<!--<strong><span class="col-xs-2 ld-Marheight">元</span></strong>-->
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
对应业务员:
</span></strong>
<span
id=
"person"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<!--<div class="col-xs-6">
<div class="form-group">
<strong><span class="col-xs-3 ld-Marheight">所属门店:</span></strong>
<span id="belongT" class=" col-xs-6 ld-Marheight"></span>
</div>
</div>-->
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6 zhzd"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
最后转定时间:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"lastTime"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d',readOnly:true})"
/>
</div>
</div>
</div>
<div
class=
"col-xs-6 shout"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
收条编号:
</span></strong>
<div
class=
"col-xs-6"
>
<input
class=
"form-control"
type=
"text"
value=
""
id=
"shoutiao"
/>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
支付方式:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"payType"
>
<option
value=
"10"
class=
"shanghai"
>
施总支付宝
</option>
<option
value=
"11"
class=
"shanghai"
>
林老师支付宝
</option>
<option
value=
"13"
class=
"shanghai"
>
陈志杰支付宝
</option>
<option
value=
"20"
class=
"shanghai"
>
施总微信
</option>
<option
value=
"21"
class=
"shanghai"
>
林老师微信
</option>
<option
value=
"23"
class=
"shanghai"
>
陈志杰微信
</option>
<option
value=
"72"
class=
"shanghai"
>
林老师建行卡
</option>
<option
value=
"30"
class=
"shanghai"
>
pos机器
</option>
<!--<option value="40" class="shanghai">地产转账</option>-->
<option
value=
"42"
class=
"shanghai"
>
3000账号
</option>
<option
value=
"70"
class=
"shanghai"
>
银满谷银行卡
</option>
<option
value=
"73"
class=
"shanghai"
>
新同联福居银行卡
</option>
<option
value=
"74"
class=
"shanghai"
>
陈志杰招商银行卡
</option>
<option
value=
"41"
class=
"shanghai"
>
世家公账
</option>
<option
value=
"11"
class=
"hangzhou"
>
林老师支付宝
</option>
<option
value=
"13"
class=
"hangzhou"
>
陈志杰支付宝
</option>
<option
value=
"21"
class=
"hangzhou"
>
林老师微信
</option>
<option
value=
"23"
class=
"hangzhou"
>
陈志杰微信
</option>
<option
value=
"30"
class=
"hangzhou"
>
pos机器
</option>
<option
value=
"70"
class=
"hangzhou"
>
银满谷银行卡
</option>
<option
value=
"72"
class=
"hangzhou"
>
林老师建行卡
</option>
<option
value=
"74"
class=
"hangzhou"
>
陈志杰招商银行卡
</option>
<option
value=
"12"
class=
"shenzheng"
>
筠姐支付宝
</option>
<option
value=
"13"
class=
"shenzheng"
>
陈志杰支付宝
</option>
<option
value=
"22"
class=
"shenzheng"
>
筠姐微信
</option>
<option
value=
"23"
class=
"shenzheng"
>
陈志杰微信
</option>
<option
value=
"71"
class=
"shenzheng"
>
筠姐上海银行卡
</option>
<option
value=
"74"
class=
"shenzheng"
>
陈志杰招商银行卡
</option>
<option
value=
"41"
class=
"shenzheng"
>
世家公账
</option>
<option
value=
"30"
class=
"shenzheng"
>
pos机器
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
转账户名:
</span></strong>
<div
class=
"col-xs-6"
><input
class=
"form-control"
type=
"text"
value=
""
id=
"payNo"
/></div>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
业态/品牌:
</span></strong>
<span
id=
"pinpai"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6 ky"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
是否开业:
</span></strong>
<div
class=
"col-xs-6"
>
<!--<span id="running" class="col-xs-6 ld-Marheight"></span>-->
<select
class=
"form-control"
id=
"running"
disabled=
"disabled"
>
<option
value=
"3"
>
请选择
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
</select>
</div>
</div>
</div>
<div
class=
"col-xs-6 xqac"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
是否分红:
</span></strong>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"fenhong"
>
<option
value=
""
>
请选择
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
</select>
</div>
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6 ky"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
开业确定时间:
</span></strong>
<!--<div class="col-xs-6">-->
<span
id=
"open_time"
class=
"col-xs-6 ld-Marheight"
></span>
<!--</div>-->
</div>
</div>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
来源:
</span></strong>
<span
id=
"comes"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-3 ld-Marheight"
>
状态:
</span></strong>
<span
id=
"status"
class=
" col-xs-6 ld-Marheight"
>
正常
</span>
</div>
</div>
</div>
</div>
<div
class=
"modal-footer pic-con2"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"savePayBtn"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div
id=
"img_mask_area"
title=
"点击任意位置可关闭"
>
<img
/>
</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-status"
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"
>
<p>
调整入账
</p>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
收款ID
</th>
<th
class=
"text-center"
>
带看ID
</th>
<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>
<!--<th class="text-center">实付金额</th>-->
<th
class=
"text-center"
>
来源
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"statusBody1"
>
</table>
<p>
调整出账
</p>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
调整ID
</th>
<th
class=
"text-center"
>
调整前带看ID
</th>
<th
class=
"text-center"
>
调整前商铺ID
</th>
<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"
>
调整后收款ID
</th>
<th
class=
"text-center"
>
提交人
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"statusBody2"
>
</table>
<p>
退款出账
</p>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
退款ID
</th>
<th
class=
"text-center"
>
状态
</th>
<th
class=
"text-center"
>
带看(订单)ID
</th>
<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"
>
商铺ID
</th>
<th
class=
"text-center"
>
商铺地址
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"statusBody3"
>
</table>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
data-dismiss=
"modal"
aria-hidden=
"true"
>
确定
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /#删除模态框 -->
<div
class=
"modal fade"
id=
"modal-delete"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<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"
>
<div
class=
"modal-body"
>
<input
type=
"hidden"
value=
""
id=
"delete_id"
/>
确认删除吗?
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete"
data-dismiss=
"modal"
>
删除
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /#修改成交报告id -->
<div
class=
"modal fade"
id=
"modifyReport_modal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
style=
"width: 800px;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
修改成交报告ID
</h4>
</div>
<div
class=
"modal-body"
style=
"overflow: hidden;"
>
<div
class=
"col-xs-12"
>
<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_liu"
data-status=
"200"
autocomplete=
"off"
placeholder=
"请输入成交报告ID或商铺地址"
/>
<ul
class=
"reportAreaLiu"
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:
</span></strong>
<span
id=
"into_id_change_liu"
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_liu"
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_liu"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"modify_report_id"
data-dismiss=
"modal"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--申请开业-->
<div
class=
"modal fade"
id=
"modal_open"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<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"
>
<ul
class=
"list-group"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<span
style=
"position: relative;top: 0px;"
>
申请类型
<span
class=
"text-danger"
>
(必填)
</span>
:
</span><select
style=
"height: 30px;"
class=
"type-financial-open"
>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
该笔收款单独开业
</option>
<option
value=
"2"
>
该商铺的收款全部开业
</option>
</select>
</div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<span
style=
"position: relative;top: -50px;"
>
开业说明
<span
class=
"text-danger"
>
(必填)
</span>
:
</span><textarea
name=
""
rows=
""
cols=
""
style=
"width: 380px;height: 100px;"
class=
"remark-financial-open"
></textarea>
</div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div>
图片至少1张,最多三张:
<span
class=
"text-danger"
>
(必填)
</span></div>
<div
id=
"container_body"
>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic_open"
multiple=
"multiple"
/>
<div
id=
"container_body_img_open"
></div>
</div>
</div>
</li>
</ul>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
"saveBtnOpen"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
public/resource/js/noRansferEarnest.js
0 → 100644
View file @
343b9c9b
define
([
'doT'
,
'text!temp/noRansferEarnest_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
receiv
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
house_fatherid
:
''
,
house_id
:
''
,
house_fatherid
:
''
,
collection_del_id
:
''
,
change_max
:
''
,
listData
:
''
,
agent_id
:
""
,
order_id
:
''
,
order_no
:
''
,
report_id
:
''
,
pay_type
:
''
,
type_num
:
''
,
houseNmuber
:
''
,
pay_id
:
''
,
transfer_name
:
''
,
totalCount
:
0
,
receipt_number
:
''
,
agent_id_phone
:
''
,
houseNumber_new
:
''
,
buildSearchParamsLiu
:
''
,
receivedMoneyLiu
:
''
,
payment_details_price
:
''
,
payment_details_money
:
''
,
receivedMoneyLiu
:
''
,
bargain_id_liu
:
''
,
collection_id_liu
:
''
,
is_baocun_bargainID
:
0
,
liu_order_id
:
''
,
liu_report_id
:
''
,
pay_log_id_open
:
''
,
//开业审核
report_id_open
:
''
,
bargain_id_open
:
''
,
order_id_open
:
''
,
house_id_open
:
''
,
house_address_open
:
''
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
receiv
.
getList
(
1
);
receiv
.
event
();
},
event
:
function
()
{
var
that
=
receiv
;
var
_doc
=
$
(
document
);
//绑定全部点击事件,判断当前点击的位置是否为制定模块 ,作用为调整功能
$
(
document
).
bind
(
"click"
,
function
(
e
){
//id为menu的是菜单,id为open的是打开菜单的按钮
if
(
e
.
target
.
dataset
.
status
==
100
){
$
(
'.reportArea'
).
hide
();
$
(
'#report_id_change'
).
val
(
""
);
}
else
if
(
e
.
target
.
dataset
.
status
==
200
){
$
(
'.intoIdArea'
).
hide
();
$
(
'#into_id_change'
).
val
(
""
);
}
else
{
$
(
'.intoIdArea'
).
hide
();
$
(
'.reportArea'
).
hide
();
}
});
// 初始化界面
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
/*
* 收款图片功能
*/
$
(
'.tit_con'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
$
(
this
).
parent
(
'div'
).
find
(
'h4.active'
).
removeClass
(
"active"
);
$
(
this
).
addClass
(
"active"
);
if
(
e
.
currentTarget
.
innerHTML
==
"收款图片"
){
$
(
'.pic-con1'
).
show
();
$
(
'.pic-con2'
).
hide
();
}
else
{
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
}
});
//导出报表
$
(
document
).
on
(
'click'
,
'#export'
,
function
(
e
){
that
.
exportExcel
();
});
$
(
'#file_input_pic'
).
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_area'
).
append
(
'<div class="result"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del">删除</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_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_pic_open'
).
on
(
'change'
,
function
(
e
){
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
// formData.append('image', _this[0].files[0]);
var
imgFiles
=
_this
[
0
].
files
;
for
(
i
=
0
;
i
<
imgFiles
.
length
;
i
++
){
formData
.
append
(
'image['
+
i
+
']'
,
imgFiles
[
i
]);
}
$
.
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
)
{
//图片上传 多张上传
var
str_
=
''
;
$
.
each
(
_data
.
data
,
function
(
i
,
item
)
{
str_
+=
'<div class="result-du-open"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del-open">删除</span></div>'
.
stringFormatObj
({
'0'
:
item
.
img_path
,
'1'
:
item
.
internet_img_name
?
urlDeal
(
item
.
internet_img_name
):
item
.
internet_img_name
});
});
$
(
'#container_body_img_open'
).
append
(
str_
);
//渲染图片
e
.
target
.
value
=
''
;
//置空input值 可以上传重复图片
//一次上传一张图片
// $('#container_body_img_open').append('<div class="result-du-open"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del-open">删除</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
(
'请求超时,请重试'
);
};
}
});
});
//删除申请开业图片
_doc
.
on
(
'click'
,
'.span-del-open'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//点击开业申请 显示图片
_doc
.
on
(
'click'
,
'.apply-open'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
receiv
.
pay_log_id_open
=
$
(
this
).
attr
(
"data-pay_log_id"
);
receiv
.
report_id_open
=
$
(
this
).
attr
(
"data-report_id"
);
receiv
.
bargain_id_open
=
$
(
this
).
attr
(
"data-bargain_id"
);
receiv
.
order_id_open
=
$
(
this
).
attr
(
"data-order_id"
);
receiv
.
house_id_open
=
$
(
this
).
attr
(
"data-house_id"
);
receiv
.
house_address_open
=
$
(
this
).
attr
(
"data-address"
);
$
(
'.remark-financial-open'
).
val
(
''
);
//置空还有备注
$
(
'.result-du-open'
).
remove
();
//置空开业图片
$
(
'.type-financial-open'
).
val
(
''
);
//置空开业类型
});
//提交申请开业
_doc
.
on
(
'click'
,
'#saveBtnOpen'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.result-du-open'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result-du-open>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
var
_data
=
{
pay_log_id
:
receiv
.
pay_log_id_open
,
report_id
:
receiv
.
report_id_open
,
bargain_id
:
receiv
.
bargain_id_open
,
order_id
:
receiv
.
order_id_open
,
house_id
:
receiv
.
house_id_open
,
house_address
:
receiv
.
house_address_open
,
agent_id
:
user_info_obj
.
id
,
intro
:
$
(
".remark-financial-open"
).
val
(),
type
:
$
(
".type-financial-open"
).
val
()
};
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'open_img'
]
=
JSON
.
stringify
(
imgname
);;
}
if
(
!
(
$
(
".type-financial-open"
).
val
())){
alert
(
'请选择申请开业类型'
);
return
;
}
if
(
!
(
$
(
".remark-financial-open"
).
val
())){
alert
(
'请填写开业说明'
);
return
;
}
if
(
!
(
$
(
'.result-du-open'
).
length
>=
1
&&
$
(
'.result-du-open'
).
length
<=
3
)){
alert
(
'图片至少一张,最多三张'
);
return
;
}
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/openPayLog'
,
data
:
_data
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
$
(
"#modal_open"
).
modal
(
'hide'
);
bargain
.
getList
();
}
else
{
alert
(
data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//图片删除事件
_doc
.
on
(
'click'
,
'.span-del'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//收款列表 调整页面 加中介费类型
$
(
"#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
();
}
});
//中介费 类型切换 多收 正常
$
(
"#agency_fees_type_text"
).
change
(
function
()
{
//之前已收佣
receiv
.
receivedMoneyLiu
=
$
(
'#before_commission_text'
).
val
()
*
1
;
//入账金额
receiv
.
payment_details_money
=
$
(
'#intoPrice'
).
val
()
*
1
;
if
(
$
(
this
).
val
()
*
1
==
1
){
var
persent_liu
=
0
;
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
0
;
}
else
{
var
persent_liu
=
0.7
;
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
1
;
};
$
(
"#getPrice"
).
text
((
Math
.
floor
(((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
$
(
"#morePrice"
).
text
((
Math
.
floor
((
receiv
.
payment_details_money
-
((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
+
receiv
.
receivedMoneyLiu
)
*
100
)
/
100
).
toFixed
(
2
));
if
(
$
(
"#morePrice"
).
html
()
*
1
<
0
){
$
(
"#morePrice"
).
html
(
0
)
}
});
//入账金额 类型切换 多收 正常
$
(
"#intoPrice"
).
on
(
'input'
,
function
()
{
//之前已收佣
receiv
.
receivedMoneyLiu
=
$
(
'#before_commission_text'
).
val
()
*
1
;
//入账金额
receiv
.
payment_details_money
=
$
(
'#intoPrice'
).
val
()
*
1
;
if
(
$
(
this
).
val
()
*
1
==
1
){
var
persent_liu
=
0
;
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
0
;
}
else
{
var
persent_liu
=
0.7
;
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
1
;
};
$
(
"#getPrice"
).
text
((
Math
.
floor
(((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
$
(
"#morePrice"
).
text
((
Math
.
floor
((
receiv
.
payment_details_money
-
((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
+
receiv
.
receivedMoneyLiu
)
*
100
)
/
100
).
toFixed
(
2
));
if
(
$
(
"#morePrice"
).
html
()
*
1
<
0
){
$
(
"#morePrice"
).
html
(
0
)
}
});
//之前已收佣 类型切换 多收 正常
$
(
"#before_commission_text"
).
on
(
'input'
,
function
()
{
//之前已收佣
receiv
.
receivedMoneyLiu
=
$
(
'#before_commission_text'
).
val
()
*
1
;
//入账金额
receiv
.
payment_details_money
=
$
(
'#intoPrice'
).
val
()
*
1
;
if
(
$
(
this
).
val
()
*
1
==
1
){
var
persent_liu
=
0
;
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
0
;
}
else
{
var
persent_liu
=
0.7
;
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
1
;
};
$
(
"#getPrice"
).
text
((
Math
.
floor
(((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
$
(
"#morePrice"
).
text
((
Math
.
floor
((
receiv
.
payment_details_money
-
((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
+
receiv
.
receivedMoneyLiu
)
*
100
)
/
100
).
toFixed
(
2
));
if
(
$
(
"#morePrice"
).
html
()
*
1
<
0
){
$
(
"#morePrice"
).
html
(
0
)
}
});
//图片删除,已有的则调用接口删除
_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'
));
};
});
//保存上传的图片
_doc
.
on
(
'click'
,
'#saveBtn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.result'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
var
id_pic
=
that
.
house_fatherid
>
0
?
that
.
house_fatherid
:
that
.
house_id
;
var
_data
=
{
img_id
:
id_pic
};
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'img_name'
]
=
imgname
.
join
(
','
);
}
else
{
return
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/addReceiptImg'
,
data
:
_data
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
$
(
'#container_body_img_area'
).
html
(
""
);
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
$
(
'.active'
).
removeClass
(
"active"
);
$
(
'.shoukuanxiangqing'
).
addClass
(
"active"
);
that
.
getList
(
1
);
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//操作----时间轴
$
(
document
).
on
(
'click'
,
'.timeline'
,
function
(
e
){
var
house_id
=
e
.
target
.
dataset
.
id
;;
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
house_id
);
});
//操作----退款
$
(
document
).
on
(
'click'
,
'.money_back'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
var
address
=
e
.
target
.
dataset
.
addr
;
var
comity_time
=
e
.
target
.
dataset
.
comity_tim
;
var
real_money
=
e
.
target
.
dataset
.
real_money
;
var
order_no
=
e
.
target
.
dataset
.
order_no
;
var
order_id
=
e
.
target
.
dataset
.
order_id
;
var
report_id
=
e
.
target
.
dataset
.
report_id
;
var
agent_id
=
e
.
target
.
dataset
.
agent_id
;
var
agent_name
=
e
.
target
.
dataset
.
agent_name
;
var
type
=
e
.
target
.
dataset
.
type
;
that
.
back_id
=
id
;
that
.
back_addr
=
address
;
that
.
back_time
=
comity_time
;
that
.
back_money
=
real_money
;
that
.
back_order_id
=
order_id
;
that
.
back_order_no
=
order_no
;
that
.
back_report_id
=
report_id
;
that
.
back_agent_name
=
agent_name
;
that
.
back_agent_id
=
agent_id
;
$
(
'#back_into_type'
).
text
(
type
);
$
(
'#back_shop_addr'
).
text
(
address
);
if
(
type
==
"意向金"
){
$
(
'.type_baoguan'
).
hide
();
$
(
'.type_zhongjie'
).
hide
();
$
(
'.type_anchang'
).
hide
();
$
(
'.type_yixiang'
).
show
();
}
else
if
(
type
==
"保管金"
){
$
(
'.type_yixiang'
).
hide
();
$
(
'.type_zhongjie'
).
hide
();
$
(
'.type_anchang'
).
hide
();
$
(
'.type_baoguan'
).
show
();
}
else
if
(
type
==
"中介费"
){
$
(
'.type_yixiang'
).
hide
();
$
(
'.type_baoguan'
).
hide
();
$
(
'.type_anchang'
).
hide
();
$
(
'.type_zhongjie'
).
show
();
}
else
if
(
type
==
"案场费"
){
$
(
'.type_yixiang'
).
hide
();
$
(
'.type_baoguan'
).
hide
();
$
(
'.type_zhongjie'
).
hide
();
$
(
'.type_anchang'
).
show
();
}
else
{
}
that
.
getMaxBackPrice
(
id
)
// that.getBack(id);
});
//操作----收款详情
$
(
document
).
on
(
'click'
,
'.add-pic'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
//获取收款详情单条数据
receiv
.
collection_id_liu
=
id
;
receiv
.
liu_order_id
=
$
(
this
).
attr
(
'data-order'
);
receiv
.
liu_report_id
=
$
(
this
).
attr
(
'data-report'
);
that
.
getMoneyDetail
(
id
);
that
.
house_fatherid
=
id
;
//获取图片
that
.
getaddPicList
(
id
);
});
//操作---调整
$
(
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.order_id = order_id ;
// that.order_no = e.target.dataset.order_no ;
// that.report_id = e.target.dataset.report_id;
// that.agent_id = e.target.dataset.agent_id;
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
();
};
// that.changeType(order_id);
});
//操作----详情
$
(
document
).
on
(
'click'
,
'.add-status'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
var
orderId
=
$
(
this
).
attr
(
"data-orderId"
);
// that.deleteId = id ;
that
.
getStatusList
(
id
,
orderId
);
});
//操作----删除
$
(
document
).
on
(
'click'
,
'.list_delete'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
that
.
deleteId
=
id
;
});
$
(
document
).
on
(
'click'
,
'#confirm_delete'
,
function
(
e
){
var
id
=
that
.
deleteId
;
that
.
deleteTableRow
(
id
);
});
//搜索
$
(
document
).
on
(
'click'
,
'#search'
,
function
(
e
){
that
.
getList
(
1
);
});
//重置搜索条件
$
(
document
).
on
(
'click'
,
'#reset'
,
function
(
e
){
that
.
resetAll
();
});
//统计
$
(
document
).
on
(
'click'
,
'#count'
,
function
(
e
){
//that.countValue();
});
//收款详情
$
(
"#modal-addPic"
).
on
(
"shown.bs.modal"
,
function
(
event
){
});
$
(
"#modal-status"
).
on
(
"shown.bs.modal"
,
function
(
event
){
});
$
(
'#savePayBtn'
).
click
(
function
(){
receiv
.
is_baocun_bargainID
=
0
;
that
.
saveRecervables
();
});
//保存成交报告id
$
(
'#modify_report_id'
).
click
(
function
(){
receiv
.
is_baocun_bargainID
=
1
;
that
.
saveRecervables
();
})
$
(
"#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
(
""
);
$
(
'#change_kaiye'
).
val
(
3
);
$
(
'#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
();
});
$
(
'#saveChangeBtn'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
that
.
saveChange
();
});
$
(
'#back_saveChangeBtn'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(
e
){
that
.
saveBack
();
})
//附件上传处理事件
$
(
"#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
;
};
});
$
(
'#change_type'
).
change
(
function
(
e
){
var
val
=
$
(
'#change_type option:selected'
).
text
();
that
.
change_show_hide
(
val
);
});
//成交报告搜索
$
(
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
=
""
;
// tag += '<li class="hideLI" data-id="' + item.id + '">' + item.id + '-' + item.name + '-' + item.phone + status + '</li>';
$
(
'#reportArea'
).
append
(
tag
);
}
else
{
that
.
search_phone
();
}
});
//成交报告搜索 收款详情
$
(
document
).
on
(
"input"
,
"#report_id_change_liu"
,
function
()
{
// receiv.bargain_id_liu = $("#report_id_change_liu").val();
if
(
$
(
"#report_id_change_liu"
).
val
()
==
''
)
{
var
tag
=
""
;
$
(
'#reportArea'
).
append
(
tag
);
}
else
{
that
.
search_phone_liu
();
}
});
//成交报告搜索 收款详情 置空
$
(
document
).
on
(
"click"
,
".modifyReport"
,
function
()
{
$
(
'#report_id_change_liu'
).
val
(
''
);
$
(
'#into_id_change_liu'
).
html
(
''
);
$
(
'#shop_id_change_liu'
).
html
(
''
);
$
(
'#shop_addr_change_liu'
).
html
(
''
);
});
//带看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 列表消失
$
(
document
).
delegate
(
".reportIdBuild"
,
"click"
,
function
()
{
that
.
reportIdBuild
(
this
);
});
$
(
document
).
delegate
(
".intoIdBuild"
,
"click"
,
function
()
{
that
.
intoIdBuild
(
this
);
});
//收款详情 点击li 列表消失
$
(
document
).
delegate
(
".reportIdBuildLiu"
,
"click"
,
function
()
{
that
.
reportIdBuildLiu
(
this
);
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
that
.
addphone
(
this
);
});
//图片,附件上传删除键事件
$
(
document
).
on
(
'click'
,
'.delet-pic-btn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
parent
().
remove
();
});
//二级联动
that
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'#commit_home'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
$
(
'#commit_home'
).
val
();
$
(
'#commit_shop'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
that
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="0">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
$
(
'#commit_shop'
).
append
(
_str
)
});
}
else
{};
});
});
//分佣方 姓名下拉式
$
(
document
).
on
(
"input"
,
"#comit_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#comit_name"
).
val
()
==
''
)
{
that
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
that
.
search_person
();
}
});
$
(
"#maintable_deal_type"
).
click
(
function
()
{
var
type
=
$
(
this
).
val
();
if
(
type
==
91
||
type
==
92
)
{
$
(
"#is_open"
).
removeAttr
(
"disabled"
);
}
else
{
$
(
"#is_open"
).
attr
(
"disabled"
,
"disabled"
);
$
(
"#is_open"
).
val
(
-
1
);
}
});
},
getMaxBackPrice
:
function
(
id
){
var
autgtoken
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
AuthToken
;
$
.
get
(
'/broker/adjustment'
,{
'pay_id'
:
id
,
'AuthToken'
:
autgtoken
},
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#could_price_back'
).
text
(
data
.
data
.
residue_money
);
}
else
{
alert
(
data
.
msg
);
}
})
},
search_person
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#comit_name"
).
val
(),
'all'
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
if
(
item
.
status
==
0
||
item
.
status
==
4
){
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
}
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
$
(
".user-ul"
).
html
(
user_ul
);
$
(
".user-ul"
).
show
();
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
that
=
receiv
;
var
user_ht
=
$
(
obj
).
html
()
+
''
;
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#comit_name"
).
val
(
user_ht_str
);
$
(
".user-ul"
).
html
(
''
);
$
(
".user-ul"
).
hide
();
that
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
spandelList
:
function
(
n
)
{
//删除已经保存的图片都调用
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/deleteReceiptImg'
,
data
:
{
id
:
n
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
}
else
{
alert
(
data
.
msg
)
}
}
});
},
getaddPicList
:
function
(
id
)
{
//获取收款图片
$
(
'#container_body_img_area'
).
html
(
''
);
//每回先清空所有图片
var
id_pic
=
id
;
//follow.house_fatherid > 0?follow.house_fatherid:follow.house_id;
$
(
'.result2,.result'
).
remove
();
//删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/receiptImgList'
,
data
:
{
"id"
:
id_pic
,
},
dataType
:
"json"
,
success
:
function
(
data
)
{
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
++
)
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result2"><img data-imgid="{0}" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2">删除</span></div>'
.
stringFormatObj
({
'0'
:
data
.
data
[
i
].
id
,
'1'
:
data
.
data
[
i
].
img_name
?
urlDeal
(
data
.
data
[
i
].
img_name
):
data
.
data
[
i
].
img_name
}));
};
}
else
{
alert
(
data
.
msg
)
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
intoIdBuild
:
function
(
obj
)
{
//新增客户 input赋值
var
that
=
receiv
;
$
(
"#into_id_change"
).
val
(
$
(
obj
).
attr
(
"data-id"
));
$
(
".intoIdArea"
).
html
(
''
);
$
(
'.intoIdArea'
).
hide
();
$
(
'#shop_addr_change'
).
text
(
$
(
obj
).
attr
(
"data-addr"
));
// $('#shop_id_change_shop').text($(obj).attr("data-house_number")?$(obj).attr("data-house_number"):'');
$
(
'#shop_id_change'
).
text
(
$
(
obj
).
attr
(
"data-house_id"
));
// $('#shop_id_change_shop').val(that.houseNumber_new);
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
=
receiv
;
// that.report_id_a = $(obj).attr("data-id");
$
(
"#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"
);
},
//将li里的值 赋给input(分佣方姓名)(收款详情)
reportIdBuildLiu
:
function
(
obj
)
{
//新增客户 input赋值
$
(
".reportAreaLiu"
).
html
(
''
);
$
(
'.reportAreaLiu'
).
hide
();
//更新reportid orderid
receiv
.
liu_report_id
=
$
(
obj
).
attr
(
"data-report_id"
);
receiv
.
liu_order_id
=
$
(
obj
).
attr
(
"data-order_id"
);
$
(
'#into_id_change_liu'
).
html
(
$
(
obj
).
attr
(
"data-order_id"
));
$
(
'#shop_id_change_liu'
).
html
(
$
(
obj
).
attr
(
"data-house_id"
));
$
(
'#shop_addr_change_liu'
).
html
(
$
(
obj
).
attr
(
"data-addr"
));
$
(
'#report_id_change_liu'
).
val
(
$
(
obj
).
attr
(
"data-id"
));
receiv
.
bargain_id_liu
=
$
(
obj
).
attr
(
"data-id"
);
//更新成交报告id
},
search_phone
:
function
(){
var
that
=
receiv
;
$
.
ajax
({
url
:
'/index/bargainListSearchBargainId'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"keyword"
:
$
(
"#report_id_change"
).
val
(),
"type"
:
3
,
'status'
:
5
,
'is_my_correlation'
:
0
,
'page_no'
:
1
,
'page_size'
:
20
,
'submit_agent_id'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
id
//'AuthToken' : JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))).AuthToken,
//"bargain_id": $("#report_id_change").val(),
//'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_phone_liu
:
function
(){
var
that
=
receiv
;
$
.
ajax
({
url
:
'/index/bargainListSearchBargainId'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"keyword"
:
$
(
"#report_id_change_liu"
).
val
(),
"type"
:
3
,
'status'
:
5
,
'is_my_correlation'
:
0
,
'page_no'
:
1
,
'page_size'
:
20
,
'submit_agent_id'
:
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
))).
id
// '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="reportIdBuildLiu" 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>'
;
});
$
(
'.reportAreaLiu'
).
show
();
$
(
".reportAreaLiu"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
search_into
:
function
(){
var
that
=
receiv
;
$
.
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
);
}
}
});
},
getDistrict
:
function
(
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrict'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"pageSize"
:
1000
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
''
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
'#commit_home'
).
append
(
str
);
fn
&&
fn
();
}
else
{
alert
(
data
.
msg
);
}
}
});
},
getDistrictStoreList
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrictStoreList'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'id'
:
id
,
"pageSize"
:
1000
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
countValue
:
function
(){
var
that
=
receiv
;
var
data
=
that
.
listData
;
var
value
=
0
;
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
value
=
value
+
(
data
[
i
].
money
-
0
);
}
$
(
'#money_total'
).
text
(
value
+
"元"
);
},
getReportDataByDetail
:
function
(
val
){
// $.post('',{'val':val},function(data){
// if(data.code == 200) {
// return data ;
// } 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"
)
// $("#order_title").text("调整商铺ID")
}
else
if
(
val
==
'保管金'
)
{
$
(
'.choose_topic_1'
).
hide
();
$
(
'.choose_topic_2'
).
show
();
$
(
'.rep'
).
hide
();
$
(
"#into_id_change"
).
removeAttr
(
"readOnly"
)
// $("#order_title").text("调整商铺ID")
}
else
{
$
(
'.choose_topic_2'
).
hide
();
$
(
'.choose_topic_1'
).
show
();
$
(
'.rep'
).
show
();
$
(
'#into_id_change'
).
attr
(
"readonly"
,
"readonly"
);
// $("#order_title").text("调整后带看ID");
}
},
//上传图片
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
(
'请求超时,请重试'
);
};
}
});
},
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;
//$('#change_type').val()
};
//提交调整 案场费 中介费 之前已收佣 中介费类型
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
)
;
// if ( $('#change_type').val() == 10 || $('#change_type').val() == 30)
//条件验证
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
()
};
if
(
$
(
'#change_kaiye'
).
val
()
==
3
){
//中介费 案场费
alert
(
'请选择是否开业'
);
return
;
}
else
{
params
.
is_open
=
$
(
'#change_kaiye'
).
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
(
","
));
// params.picName = 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'
);
},
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
);
}
})
},
saveRecervables
:
function
(){
var
that
=
receiv
;
var
params
=
that
.
recervablesParams
();
if
(
$
(
'#intoType'
).
val
()
==
92
||
$
(
'#intoType'
).
val
()
==
91
){
if
(
params
.
is_open
==
3
){
alert
(
'请选择是否开业'
);
return
;
};
};
$
.
post
(
'/index/getCollectionEdit'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'#modal-addPic'
).
modal
(
'hide'
);
//操作成功后 在隐藏弹窗
if
(
receiv
.
is_baocun_bargainID
*
1
==
0
){
//判断点击的是哪个 保存详情的按钮
that
.
getList
(
that
.
pageNo
);
}
else
{
that
.
getMoneyDetail
(
receiv
.
collection_id_liu
);
that
.
getaddPicList
(
receiv
.
collection_id_liu
);
}
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
recervablesParams
:
function
(){
var
params
=
{}
;
if
(
receiv
.
liu_report_id
){
params
.
report_id
=
receiv
.
liu_report_id
;
};
if
(
receiv
.
liu_order_id
){
params
.
order_id
=
receiv
.
liu_order_id
;
};
if
(
receiv
.
bargain_id_liu
){
//收款详情 成交报告id
params
.
bargain_id
=
receiv
.
bargain_id_liu
;
};
// params.bargain_id = receiv.bargain_id_liu;
if
(
$
(
'#intoType'
).
val
()){
//入账类型
params
.
type
=
$
(
'#intoType'
).
val
()
};
if
(
$
(
'#ruzhangId'
).
text
()){
//入账ID
params
.
pay_id
=
$
(
'#ruzhangId'
).
text
()
};
if
(
$
(
'#intoDate'
).
val
()){
//入账日期
params
.
income_time
=
$
(
'#intoDate'
).
val
()
};
if
(
$
(
'#intoPrice'
).
val
()){
//入账金额
params
.
money
=
$
(
'#intoPrice'
).
val
()
};
if
(
$
(
'#shouxu'
).
val
()){
//手续费
params
.
transaction_fee
=
$
(
'#shouxu'
).
val
()
};
if
(
$
(
'#realPrice'
).
val
()){
//实付金额
params
.
real_money
=
$
(
'#realPrice'
).
val
()
};
if
(
$
(
'#payType'
).
val
()){
//支付方式
params
.
pay_type
=
$
(
'#payType'
).
val
()
};
if
(
$
(
'#payNo'
).
val
()){
//支付户名
params
.
transfer_name
=
$
(
'#payNo'
).
val
()
};
params
.
is_open
=
$
(
'#running'
).
val
()
if
(
$
(
'#fenhong'
).
val
()){
//分红
params
.
is_dividend
=
$
(
'#fenhong'
).
val
()
};
if
(
$
(
'#lastTime'
).
val
()){
//最后转定时间
params
.
last_transfer_time
=
$
(
'#lastTime'
).
val
()
};
if
(
$
(
'#intoType'
).
val
()
==
10
||
$
(
'#intoType'
).
val
()
==
30
)
{
if
(
$
(
'#shoutiao'
).
val
()){
params
.
receipt_number
=
$
(
'#shoutiao'
).
val
()
}
}
//判断是否是 案场费
if
(
$
(
'#intoType'
).
val
()
==
91
){
params
.
type_ext
=
$
(
'#agency_fees_type_text'
).
val
()
};
//判断是否是 案场费 中介费
if
(
$
(
'#intoType'
).
val
()
==
92
||
$
(
'#intoType'
).
val
()
==
91
){
if
(
$
(
'#before_commission_text'
).
val
()){
params
.
received_money
=
$
(
'#before_commission_text'
).
val
();
}
params
.
type_ext
=
$
(
'#agency_fees_type_text'
).
val
()
};
return
params
;
},
/**
* 重置查询条件
*/
resetAll
:
function
(){
var
that
=
receiv
;
that
.
agent_id_phone
=
""
;
var
commite_time_start
=
$
(
'#comit_time_start'
).
val
(
""
);
var
commite_time_end
=
$
(
'#comit_time_end'
).
val
(
""
);
var
into_time_start
=
$
(
'#into_time_start'
).
val
(
""
);
var
into_time_end
=
$
(
'#into_time_end'
).
val
(
""
);
var
maintable_deal_type
=
$
(
'#maintable_deal_type'
).
val
(
""
);
var
maintable_pay_type
=
$
(
'#maintable_pay_type'
).
val
(
""
);
var
come_from
=
$
(
'#come_from'
).
val
(
""
);
var
order_id
=
$
(
'#order_id'
).
val
(
""
);
var
get_id
=
$
(
'#get_id'
).
val
(
""
);
var
report_id
=
$
(
'#report_id'
).
val
(
""
);
var
shop_id
=
$
(
'#shop_id'
).
val
(
""
);
var
shop_addr
=
$
(
'#shop_addr'
).
val
(
""
);
var
commit_home
=
$
(
'#commit_home'
).
val
(
""
);
var
commit_shop
=
$
(
'#commit_shop'
).
val
(
""
);
var
comit_name
=
$
(
'#comit_name'
).
val
(
""
);
var
is_open
=
$
(
'#is_open'
).
val
(
"-1"
);
var
is_normality
=
$
(
'#is_normality'
).
val
(
"0"
);
$
(
'#open_time_start'
).
val
(
""
);
$
(
'#open_time_end'
).
val
(
""
);
},
//收款记录 导出
exportExcel
:
function
()
{
var
_url
=
'/index/getCollectionExcel?'
;
window
.
open
(
_url
+
receiv
.
buildSearchParamsLiu
);
},
/**
* 获取查询参数
*/
buildSearchParams
:
function
(
excel
){
var
that
=
receiv
;
var
commite_time_start
=
$
(
'#comit_time_start'
).
val
();
var
commite_time_end
=
$
(
'#comit_time_end'
).
val
();
var
into_time_start
=
$
(
'#into_time_start'
).
val
();
var
into_time_end
=
$
(
'#into_time_end'
).
val
();
var
maintable_deal_type
=
$
(
'#maintable_deal_type'
).
val
();
var
maintable_pay_type
=
$
(
'#maintable_pay_type'
).
val
();
var
come_from
=
$
(
'#come_from'
).
val
();
var
order_id
=
$
(
'#order_id'
).
val
();
var
get_id
=
$
(
'#get_id'
).
val
();
var
report_id
=
$
(
'#report_id'
).
val
();
var
shop_id
=
$
(
'#shop_id'
).
val
();
var
shop_addr
=
$
(
'#shop_addr'
).
val
();
var
commit_home
=
$
(
'#commit_home'
).
val
();
var
commit_shop
=
$
(
'#commit_shop'
).
val
();
var
comit_name
=
that
.
agent_id_phone
;
//$('#comit_name').val();
var
params
=
{};
var
paramsStr
=
""
;
var
is_open
=
$
(
'#is_open'
).
val
();
var
is_normality
=
$
(
'#is_normality'
).
val
();
var
open_time_start
=
$
(
'#open_time_start'
).
val
();
var
open_time_end
=
$
(
'#open_time_end'
).
val
();
if
(
open_time_start
)
{
params
.
open_time_start
=
open_time_start
;
paramsStr
+=
"open_time_start="
+
open_time_start
+
"&"
}
if
(
open_time_end
)
{
params
.
open_time_end
=
open_time_end
;
paramsStr
+=
"open_time_end="
+
open_time_end
+
"&"
}
if
(
commite_time_start
)
{
params
.
start_time
=
commite_time_start
;
paramsStr
+=
"start_time="
+
commite_time_start
+
"&"
}
if
(
commite_time_end
)
{
params
.
end_time
=
commite_time_end
;
paramsStr
+=
"end_time="
+
commite_time_end
+
"&"
}
if
(
into_time_start
)
{
params
.
income_start_time
=
into_time_start
;
paramsStr
+=
"income_start_time="
+
into_time_start
+
"&"
}
if
(
into_time_end
)
{
params
.
income_end_time
=
into_time_end
;
paramsStr
+=
"income_end_time="
+
into_time_end
+
"&"
}
if
(
maintable_deal_type
)
{
params
.
type
=
maintable_deal_type
;
paramsStr
+=
"type="
+
maintable_deal_type
+
"&"
}
if
(
maintable_pay_type
)
{
params
.
pay_type
=
maintable_pay_type
;
paramsStr
+=
"pay_type="
+
maintable_pay_type
+
"&"
}
if
(
come_from
)
{
params
.
source
=
come_from
;
paramsStr
+=
"source="
+
come_from
+
"&"
}
if
(
order_id
)
{
params
.
order_id
=
order_id
;
paramsStr
+=
"order_id="
+
order_id
+
"&"
}
if
(
get_id
)
{
params
.
pay_id
=
get_id
;
paramsStr
+=
"pay_id="
+
get_id
+
"&"
}
if
(
report_id
)
{
params
.
bargain_id
=
report_id
;
paramsStr
+=
"bargain_id="
+
report_id
+
"&"
}
if
(
shop_addr
)
{
params
.
internal_address
=
shop_addr
;
paramsStr
+=
"internal_address="
+
shop_addr
+
"&"
}
if
(
shop_id
)
{
params
.
house_id
=
shop_id
;
paramsStr
+=
"house_id ="
+
shop_id
+
"&"
}
if
(
commit_home
)
{
params
.
district_id
=
commit_home
;
paramsStr
+=
"district_id="
+
commit_home
+
"&"
}
if
(
commit_shop
)
{
params
.
store_id
=
commit_shop
;
paramsStr
+=
"store_id="
+
commit_shop
+
"&"
}
if
(
comit_name
)
{
params
.
agent_id
=
comit_name
;
paramsStr
+=
"agent_id="
+
comit_name
+
"&"
}
if
(
is_open
>
-
1
)
{
params
.
is_open
=
is_open
;
paramsStr
+=
"is_open="
+
is_open
+
"&"
;
}
if
(
is_normality
>
-
1
)
{
params
.
is_normality
=
is_normality
;
paramsStr
+=
"is_normality="
+
is_normality
+
"&"
;
}
receiv
.
buildSearchParamsLiu
=
paramsStr
.
substr
(
0
,
paramsStr
.
length
-
1
);
if
(
excel
)
{
return
paramsStr
.
substr
(
0
,
paramsStr
.
length
-
1
)
}
else
{
return
params
;
}
},
/**
* 获取表格数据
* @param {Object} no
*/
getList
:
function
(
no
){
var
that
=
receiv
;
that
.
pageNo
=
no
;
var
params
=
that
.
buildSearchParams
(
false
);
params
.
pageNo
=
that
.
pageNo
;
params
.
pageSize
=
that
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getCollection'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
// that.totalCount = data.data.money_total;
that
.
listData
=
data
.
data
.
list
;
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'receivables_template_tpl'
).
innerHTML
);
$
(
"#order_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
// $('#money_total').text((data.data.money_total-0 > 0) ? (data.data.money_total+"元"): "0元" )
$
(
'.receiving-total-money'
).
html
((
data
.
data
.
money_total
*
1
+
data
.
data
.
money_change_total
*
1
).
toFixed
(
2
));
//
$
(
'.receiving-total-normal'
).
html
(
data
.
data
.
money_total
*
1
);
$
(
'.receiving-total-adjusment'
).
html
(
data
.
data
.
money_change_total
*
1
);
$
(
'.real-pay-total'
).
html
((
data
.
data
.
real_money_total
*
1
+
data
.
data
.
real_money_change_total
*
1
).
toFixed
(
2
));
$
(
'.real-pay-normal'
).
html
(
data
.
data
.
real_money_total
*
1
);
$
(
'.real-pay-adjusment'
).
html
(
data
.
data
.
real_money_change_total
*
1
);
/*分页代码*/
add_page
(
data
.
data
.
total
,
no
,
that
.
pageSize
,
that
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
/**
* 收款详情
* @param {Object} id
*/
getMoneyDetail
:
function
(
id
){
var
that
=
receiv
;
var
params
=
{
'pay_id'
:
id
};
$
.
post
(
'/index/getCollectionDetail'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
that
.
getValueFunction
(
data
.
data
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
getValueFunction
:
function
(
data
){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
if
(
data
.
site_id
==
10001
){
//根据收款详情的 site_id判断
$
(
'.shanghai'
).
show
();
$
(
'.hangzhou'
).
hide
();
$
(
'.shenzheng'
).
hide
();
}
else
if
(
data
.
site_id
==
10002
){
$
(
'.shanghai'
).
hide
();
$
(
'.hangzhou'
).
show
();
$
(
'.shenzheng'
).
hide
();
}
else
if
(
data
.
site_id
==
10003
){
$
(
'.shanghai'
).
hide
();
$
(
'.hangzhou'
).
hide
();
$
(
'.shenzheng'
).
show
();
}
else
{
//北京 广州
$
(
'.shanghai'
).
show
();
$
(
'.hangzhou'
).
hide
();
$
(
'.shenzheng'
).
hide
();
}
//切换 中介费类型 多收金额 应收金额相应的改变
receiv
.
payment_details_price
=
data
.
price
;
receiv
.
payment_details_money
=
data
.
money
;
receiv
.
receivedMoneyLiu
=
data
.
received_money
*
1
;
var
persent
=
0.7
;
$
(
'.zhzd'
).
show
();
$
(
'.zjcon'
).
hide
();
var
doc
=
$
(
'#modal-addPic'
);
doc
.
find
(
"#ruzhangId"
).
text
(
data
.
id
);
doc
.
find
(
"#dingdanId"
).
text
(
data
.
order_id
);
doc
.
find
(
"#chengjiaobaogaoId"
).
text
(
data
.
bargain_id
);
receiv
.
bargain_id_liu
=
data
.
bargain_id
;
doc
.
find
(
"#fangyuanId"
).
text
(
data
.
house_id
);
doc
.
find
(
"#tijiaoren"
).
text
(
data
.
agent_name
);
doc
.
find
(
"#address"
).
text
(
data
.
address
);
doc
.
find
(
"#comit_time"
).
text
(
data
.
create_time
);
doc
.
find
(
"#open_time"
).
text
(
data
.
open_time
);
//开业确定时间
doc
.
find
(
"#store_name"
).
text
(
data
.
reckon_in_store_name
);
//所属门店
//判断收款详情的类型
if
(
data
.
type
==
91
){
$
(
'.agency_fees_type_hide'
).
show
();
}
else
{
$
(
'.agency_fees_type_hide'
).
hide
();
};
if
(
data
.
type
==
91
||
data
.
type
==
92
){
$
(
'.before_commission_hide'
).
show
();
}
else
{
$
(
'.before_commission_hide'
).
hide
();
}
doc
.
find
(
"#intoType"
).
val
(
data
.
type
);
//收款详情 收款类型变成下拉框
if
(
data
.
type
==
10
){
//意向金
$
(
'.intention-gold-liu'
).
show
();
$
(
'.agency-fees-liu'
).
hide
();
}
else
if
(
data
.
type
==
20
)
{
// doc.find("#intoType").text('定金');
}
else
if
(
data
.
type
==
30
)
{
//保管金
$
(
'.intention-gold-liu'
).
show
();
$
(
'.agency-fees-liu'
).
hide
();
}
else
if
(
data
.
type
==
40
)
{
// doc.find("#intoType").text('押金');
}
else
if
(
data
.
type
==
50
)
{
// doc.find("#intoType").text('租金');
}
else
if
(
data
.
type
==
60
)
{
// doc.find("#intoType").text('进场费 ');
}
else
if
(
data
.
type
==
70
)
{
// doc.find("#intoType").text('转让费');
}
else
if
(
data
.
type
==
80
)
{
// doc.find("#intoType").text('其他');
}
else
if
(
data
.
type
==
90
)
{
// doc.find("#intoType").text('佣金');
}
else
if
(
data
.
type
==
91
)
{
//中介费
$
(
'.intention-gold-liu'
).
hide
();
$
(
'.agency-fees-liu'
).
show
();
if
(
data
.
type_ext
==
1
){
persent
=
0
;
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
0
;
};
$
(
'.zhzd'
).
hide
();
}
else
if
(
data
.
type
==
92
)
{
//案场费
$
(
'.intention-gold-liu'
).
hide
();
$
(
'.agency-fees-liu'
).
show
();
$
(
'.zhzd'
).
hide
();
}
else
{
doc
.
find
(
"#intoType"
).
text
(
'佣金'
);
}
//收款详情 获取中介费类型 之前已收佣
doc
.
find
(
"#agency_fees_type_text"
).
val
(
data
.
type_ext
);
doc
.
find
(
"#before_commission_text"
).
val
(
data
.
received_money
);
doc
.
find
(
"#shopNo"
).
text
(
data
.
house_number
);
doc
.
find
(
"#intoDate"
).
val
(
data
.
income_time
);
doc
.
find
(
"#salePrice"
).
text
(
data
.
price
+
"元"
);
doc
.
find
(
"#intoPrice"
).
val
(
data
.
money
);
doc
.
find
(
"#shouxu"
).
val
(
data
.
transaction_fee
);
doc
.
find
(
"#realPrice"
).
val
(
data
.
real_money
);
//保留两位小数
doc
.
find
(
"#getPrice"
).
text
((
Math
.
floor
(((
data
.
price
-
0
)
*
persent
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
doc
.
find
(
"#morePrice"
).
text
((
Math
.
floor
((
data
.
money
-
((
data
.
price
-
0
)
*
persent
)
+
receiv
.
receivedMoneyLiu
)
*
100
)
/
100
).
toFixed
(
2
));
if
(
$
(
"#morePrice"
).
html
()
*
1
<
0
){
$
(
"#morePrice"
).
html
(
0
)
}
$
(
"#person"
).
text
(
data
.
current_agent_name
);
$
(
"#belongT"
).
text
(
data
.
store_name
);
doc
.
find
(
"#payType"
).
val
(
data
.
pay_type
);
doc
.
find
(
"#payNo"
).
val
(
data
.
transfer_name
);
// doc.find("#running").text(data.is_open == 1 ? "是":"否");//收款页面 是否开业变成可编辑的
doc
.
find
(
"#running"
).
val
(
data
.
is_open
);
//收款页面 是否开业变成可编辑的
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
(
'正常收款'
);
// doc.find("#status").text("正常");
$
(
'#intoPrice'
).
removeAttr
(
"readonly"
);
$
(
'#shoutiao'
).
removeAttr
(
"readonly"
);
// $('#payType').removeAttr("readonly");
$
(
"#payType"
).
removeAttr
(
"disabled"
)
$
(
'#payNo'
).
removeAttr
(
"readonly"
);
}
else
if
(
data
.
source
==
1
){
$
(
"#comes"
).
text
(
'正常收款'
);
$
(
'#intoPrice'
).
removeAttr
(
"readonly"
);
$
(
'#shoutiao'
).
removeAttr
(
"readonly"
);
// $('#payType').removeAttr("readonly");
$
(
"#payType"
).
removeAttr
(
"disabled"
)
$
(
'#payNo'
).
removeAttr
(
"readonly"
);
// doc.find("#status").text("正常");
}
else
{
$
(
"#comes"
).
text
(
'调整'
);
$
(
'#intoPrice'
).
attr
(
"readonly"
,
"readonly"
);
$
(
'#shoutiao'
).
attr
(
"readonly"
,
"readonly"
);
// $('#payType').attr("readonly" , "readonly");
$
(
"#payType"
).
attr
(
"disabled"
,
"disabled"
).
css
(
"background-color"
,
"#EEEEEE;"
);
$
(
'#payNo'
).
attr
(
"readonly"
,
"readonly"
);
}
if
(
source_id
&&
is_refund
)
{
doc
.
find
(
"#status"
).
text
(
"被调整+被退款"
);
$
(
'#intoType'
).
attr
(
"disabled"
,
"disabled"
);
$
(
'#intoPrice'
).
attr
(
"readonly"
,
"readonly"
);
}
else
if
(
source_id
){
doc
.
find
(
"#status"
).
text
(
"被调整"
);
$
(
'#intoType'
).
attr
(
"disabled"
,
"disabled"
);
$
(
'#intoPrice'
).
attr
(
"readonly"
,
"readonly"
);
}
else
if
(
is_refund
){
doc
.
find
(
"#status"
).
text
(
"被退款"
);
$
(
'#intoType'
).
attr
(
"disabled"
,
"disabled"
);
$
(
'#intoPrice'
).
attr
(
"readonly"
,
"readonly"
);
}
else
{
$
(
'#intoType'
).
removeAttr
(
"disabled"
);
$
(
'#intoPrice'
).
removeAttr
(
"readonly"
);
doc
.
find
(
"#status"
).
text
(
"正常"
);
}
// doc.find("#status").text(data.source_id);
doc
.
find
(
"#lastTime"
).
val
(
data
.
last_transfer_time
);
doc
.
find
(
"#shoutiao"
).
val
(
data
.
receipt_number
);
if
(
data
.
type
==
91
||
data
.
type
==
92
)
{
$
(
'.xqac'
).
show
();
}
else
{
$
(
'.xqac'
).
hide
();
}
if
(
data
.
type
==
10
||
data
.
type
==
30
)
{
$
(
'.ky'
).
hide
();
$
(
'.shout'
).
show
();
}
else
{
$
(
'.ky'
).
show
();
$
(
'.shout'
).
hide
();
}
if
(
data
.
type
==
91
){
$
(
'.zjcon'
).
show
();
}
},
/**
* 调整
* @param {Object} id
*/
changeType
:
function
(
order_id
){
var
that
=
receiv
;
that
.
getShopId
(
order_id
);
},
getShopId
:
function
(
id
){
var
that
=
receiv
;
$
.
get
(
'/index/getBeForNum'
,{
'order_id'
:
id
},
function
(
data
){
//$('#shop_id_change').text(data.data.house_number);
if
(
data
.
code
==
200
)
{
$
(
'#shop_id_change_shop'
).
val
(
data
.
data
.
house_number
);
that
.
yetai
=
data
.
data
.
industry_type
;
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
/**
* 删除收款记录
* @param {Object} id
*/
deleteTableRow
:
function
(
id
){
var
that
=
receiv
;
var
params
=
{
'pay_id'
:
id
};
$
.
post
(
'/index/delPayLog'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
that
.
getList
(
1
);
}
else
{
alert
(
data
.
msg
);
}
},
'json'
)
},
getBack
:
function
(
id
){
var
that
=
receiv
;
var
params
=
{
'id'
:
id
};
$
.
post
(
''
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
console
.
log
(
data
);
that
.
initBackData
(
data
);
}
else
{
alert
(
data
.
msg
);
}
})
},
initBackData
:
function
(){
var
that
=
receiv
;
$
(
'#back_type'
).
val
(
30
);
$
(
'#back_price'
).
val
(
100
);
$
(
'#back_no'
).
val
(
100
);
$
(
'#back_reason'
).
val
(
100
);
$
(
'#back_into_type'
).
text
(
100
);
$
(
'#back_shop_addr'
).
text
(
100
);
$
(
'#back_price_type'
).
text
(
100
);
$
(
'#back_price_user'
).
val
(
100
);
$
(
'#back_bank'
).
val
(
100
);
$
(
'#back_bank_name'
).
val
(
100
);
$
(
'#back_phone'
).
val
(
100
);
$
(
'#back_others'
).
val
(
100
);
$
(
'#container_body_img_area3'
).
empty
();
},
clearBackData
:
function
(){
var
that
=
receiv
;
$
(
'#back_type'
).
val
(
""
);
$
(
'#back_price'
).
val
(
""
);
$
(
'#back_no'
).
val
(
""
);
$
(
'#back_reason'
).
val
(
""
);
$
(
'#back_into_type'
).
text
(
""
);
$
(
'#back_shop_addr'
).
text
(
""
);
// $('#back_price_type').text("");
$
(
'#back_price_user'
).
val
(
""
);
$
(
'#back_bank'
).
val
(
""
);
$
(
'#back_bank_name'
).
val
(
""
);
$
(
'#back_phone'
).
val
(
""
);
$
(
'#back_others'
).
val
(
""
);
},
saveBack
:
function
(){
var
that
=
receiv
;
var
params
=
that
.
getBackParams
();
if
(
!
params
)
{
return
false
;
}
$
.
post
(
'/index/refundPayLog'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
console
.
log
(
data
)
$
(
'#modal-back'
).
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 ){
// params.phone = back_phone ;
// }
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 += $(this).find("img").attr("id") + ","
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
;
},
/**
* 获取表格数据
* @param {Object} no
*/
getStatusList
:
function
(
id
,
orderId
){
var
that
=
receiv
;
// that.pageNo = no;
var
params
=
{
'pay_id'
:
id
,
'order_id'
:
orderId
}
// params.pageNo = that.pageNo;
// params.pageSize = that.pageSize ;
// params.pay_id = id ;
// var testDatas = [
// {
// 'aaa' : 000 ,
// 'bbb' : 111,
// 'ccc' : 222,
// 'ddd' : 333,
// 'eee' :444,
// 'fff' : 555,
// 'ggg' : 666,
// 'hhh' : 777 ,
// 'iii' : 888 ,
// 'jjj' : 999 ,
// 'kkk' :'---',
// 'lll' : 'kkk'
// },
// ]
//
//
// var doTtmpl1 = doT.template(document.getElementById('status_body_1').innerHTML);
// $("#statusBody1").html(doTtmpl1(testDatas));
//
// var doTtmpl2 = doT.template(document.getElementById('status_body_2').innerHTML);
// $("#statusBody2").html(doTtmpl2(testDatas));
//
// var doTtmpl3 = doT.template(document.getElementById('status_body_3').innerHTML);
// $("#statusBody3").html(doTtmpl3(testDatas));
//
//
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getPayLogData'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
// that.listData = data.data;
console
.
log
(
"123123123-----------------------------------------"
);
console
.
log
(
data
.
data
.
list
);
var
doTtmpl1
=
doT
.
template
(
document
.
getElementById
(
'status_body_1'
).
innerHTML
);
$
(
"#statusBody1"
).
html
(
doTtmpl1
(
data
.
data
.
pay_log
));
var
doTtmpl2
=
doT
.
template
(
document
.
getElementById
(
'status_body_2'
).
innerHTML
);
$
(
"#statusBody2"
).
html
(
doTtmpl2
(
data
.
data
.
pay_log_adjustment
));
var
doTtmpl3
=
doT
.
template
(
document
.
getElementById
(
'status_body_3'
).
innerHTML
);
$
(
"#statusBody3"
).
html
(
doTtmpl3
(
data
.
data
.
pay_log_refund
));
/*分页代码*/
// add_page(data.data.total, no, that.pageSize, that.getList);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
};
return
receiv
;
});
\ No newline at end of file
public/resource/template/noRansferEarnest_template_tpl.html
0 → 100644
View file @
343b9c9b
<script
id=
"noRansferEarnest_template_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
'source'
]
==
2
){
%
]
调整入账
(
调整
ID
:[
%=
it
[
item
][
'source_id'
]
%
])
[
%
}
else
{
%
]
正常入账
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
'is_refund'
]
!=
1
&&
!
it
[
item
][
'is_adjustment'
]){
%
]
正常
[
%
}
else
if
(
it
[
item
][
'is_refund'
]
==
1
&&
it
[
item
][
'is_adjustment'
]){
%
]
被调整
+
被退款
<
a
class
=
"btn1 btn-success add-status"
href
=
"#modal-status"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
orderId
=
'[%= it[item]["order_id"] %]'
>
详情
<
/a
>
[
%
}
else
if
(
it
[
item
][
'is_refund'
]
==
1
)
{
%
]
被退款
<
a
class
=
"btn1 btn-success add-status"
href
=
"#modal-status"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
orderId
=
'[%= it[item]["order_id"] %]'
>
详情
<
/a
>
[
%
}
else
{
%
]
被调整
<
a
class
=
"btn1 btn-success add-status"
href
=
"#modal-status"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
orderId
=
'[%= it[item]["order_id"] %]'
>
详情
<
/a
>
[
%
}
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'source_id'
]
%
]
<
/td>--
>
<
td
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
[
%
if
(
it
[
item
][
"is_open"
]
==
0
&&
check_auth
(
'index/openPayLog'
)){
%
]
[
%
if
(
it
[
item
][
"type_num"
]
==
92
||
it
[
item
][
"type_num"
]
==
91
)
{
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
0
)
{
%
]
<
a
class
=
"btn1 btn-success apply-open is-show-open"
href
=
"#modal_open"
data
-
pay_log_id
=
"[%= it[item]['id'] %]"
data
-
report_id
=
"[%= it[item]['report_id'] %]"
data
-
bargain_id
=
"[%= it[item]['bargain_id'] %]"
data
-
order_id
=
"[%= it[item]['order_id'] %]"
data
-
house_id
=
"[%= it[item]['house_id'] %]"
data
-
address
=
"[%= it[item]['address'] %]"
data
-
toggle
=
"modal"
>
申请开业
<
/a>
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_check"
]
==
1
)
{
%
]
<
a
class
=
"btn1 btn-default is-show-open"
data
-
pay_log_id
=
"[%= it[item]['id'] %]"
data
-
report_id
=
"[%= it[item]['report_id'] %]"
data
-
bargain_id
=
"[%= it[item]['bargain_id'] %]"
data
-
order_id
=
"[%= it[item]['order_id'] %]"
data
-
house_id
=
"[%= it[item]['house_id'] %]"
data
-
house_address
=
"[%= it[item]['address'] %]"
>
开业审核中
<
/a>
[
%
}
%
]
[
%
}
%
]
[
%
}
%
]
[
%
if
(
check_auth
(
'index/getCollectionDetail'
))
{
%
]
<
a
class
=
"btn1 btn-success add-pic"
href
=
"#modal-addPic"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
report
=
'[%= it[item]["report_id"] %]'
data
-
order
=
'[%= it[item]["order_id"] %]'
>
收款详情
<
/a>
[
%
}
%
]
[
%
if
(
check_auth
(
'index/getAdjustment'
))
{
%
]
[
%
if
(
it
[
item
][
'type_num'
]
==
10
||
it
[
item
][
'type_num'
]
==
30
)
{
%
]
<
a
class
=
"btn1 btn-success 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-success 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'
))
{
%
]
<
a
class
=
"btn1 btn-success list_delete"
href
=
"#modal-delete"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
>
删除
<
/a
>
[
%
}
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"14"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<script
id=
"status_body_1"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td>--
>
<
td
>
[
%=
switchRzType
(
it
[
item
][
'type'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td>--
>
[
%
if
(
it
[
item
][
'is_refund'
]
==
1
){
%
]
[
%
if
(
it
[
item
][
'source'
]
==
0
)
{
%
]
<
td
>
正常收款
,
被退款
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
1
)
{
%
]
<
td
>
正常收款
,
被退款
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
2
)
{
%
]
<
td
>
被调整收款
(
调整
ID
:[
%=
it
[
item
][
'source_id'
]
%
],
被退款
)
<
/td
>
[
%
}
else
{
%
]
<
td
>
被退款
<
/td
>
[
%
}
%
]
[
%
}
else
{
%
]
[
%
if
(
it
[
item
][
'source'
]
==
0
)
{
%
]
<
td
>
正常收款
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
1
)
{
%
]
<
td
>
正常收款
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
2
)
{
%
]
<
td
>
被调整收款
(
调整
ID
:[
%=
it
[
item
][
'source_id'
]
%
])
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
[
%
}
%
]
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"14"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<script
id=
"status_body_2"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'paylog_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
<
td
>
意向金转中介费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
<
td
>
意向金转案场费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
3
)
{
%
]
<
td
>
意向金转意向金
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
4
)
{
%
]
<
td
>
保管金转中介费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
5
)
{
%
]
<
td
>
保管金转案场费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
7
){
%
]
<
td
>
意向金转保管金
<
/td
>
[
%
}
else
{
%
]
<
td
>
保管金转保管金
<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'new_paylog_id '
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"14"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<script
id=
"status_body_3"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'status'
]
==
0
)
{
%
]
<
td
>
审核中
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
1
)
{
%
]
<
td
>
审核中
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
2
)
{
%
]
<
td
>
退款成功
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
3
)
{
%
]
<
td
>
已审核
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
4
)
{
%
]
<
td
>
驳回
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'pay_log_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'refund_money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td>--
>
[
%
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
<
td
>
意向金转定
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
<
td
>
退保管金
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
3
)
{
%
]
<
td
>
保管金转定
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
4
)
{
%
]
<
td
>
退中介费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
5
)
{
%
]
<
td
>
退案场费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
0
)
{
%
]
<
td
>
退意向金
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
<!--<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td>--
>
<
td
>
[
%=
it
[
item
][
'house_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'address'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"14"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
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