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
cede883a
Commit
cede883a
authored
May 30, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款
parent
b25b96ff
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
7669 additions
and
100 deletions
+7669
-100
office_detail_pc.html
application/app_broker/view/index/office_detail_pc.html
+34
-94
OfficeBuilding.php
application/index/controller/OfficeBuilding.php
+25
-0
getCollection.html
application/index/view/finance/getCollection.html
+3
-3
getCollectionOffice.html
...cation/index/view/officeBuilding/getCollectionOffice.html
+1314
-0
getCollectionTotal.html
...ication/index/view/officeBuilding/getCollectionTotal.html
+344
-0
myCollectionOfficeList.html
...ion/index/view/officeBuilding/myCollectionOfficeList.html
+147
-0
officeBuildingList.html
...ication/index/view/officeBuilding/officeBuildingList.html
+2
-2
remarkFollowOffice.html
...ication/index/view/officeBuilding/remarkFollowOffice.html
+703
-0
remark_follow_index.html
application/index/view/remark/remark_follow_index.html
+1
-1
route.php
application/route.php
+13
-0
getCollectionOffice.js
public/resource/js/getCollectionOffice.js
+1970
-0
getCollectionTotal.js
public/resource/js/getCollectionTotal.js
+32
-0
myCollectionOfficeList.js
public/resource/js/myCollectionOfficeList.js
+390
-0
remarkFollowOffice.js
public/resource/js/remarkFollowOffice.js
+2304
-0
get_collection_office_template_tpl.html
...resource/template/get_collection_office_template_tpl.html
+45
-0
my_collection_office_template_tpl.html
.../resource/template/my_collection_office_template_tpl.html
+70
-0
office_receivables_template_tpl.html
...ic/resource/template/office_receivables_template_tpl.html
+211
-0
remark_follow_office_template_tpl.html
.../resource/template/remark_follow_office_template_tpl.html
+61
-0
No files found.
application/app_broker/view/index/office_detail_pc.html
View file @
cede883a
...
@@ -20,94 +20,54 @@
...
@@ -20,94 +20,54 @@
<table>
<table>
<tbody>
<tbody>
<tr>
<tr>
<td>
商铺编号:{{d.id}}
</td>
<td>
所属楼盘:{{d.id}}
</td>
<td>
商铺类型:{{(d.shop_type==1)?'街铺':'商场'}}
</td>
<td>
楼盘地址:{{(d.shop_type==1)?'街铺':'商场'}}
</td>
<td>
是否对客户展示:{{(d.is_show==1)?'否':'是'}}
</td>
<td>
所属商圈:{{(d.is_show==1)?'否':'是'}}
</td>
<td>
是否独家:{{(d.is_exclusive_type==1)?'是':'否'}}
</td>
<td>
总层数:{{(d.is_exclusive_type==1)?'是':'否'}}
</td>
</tr>
<tr>
<td>
{{dealPrice}}
</td>
<td>
{{(d.shop_type==1)?'对内转让费':'进场费'}}:{{d.slotting_fee}}元
</td>
<td>
物业管理费:{{d.management_fee}}元/月
</td>
<td>
来源:{{switchSource(d.source)}}
</td>
</tr>
<tr>
<td>
{{(d.shop_type==1)?'建筑面积':'商铺面积'}}:{{dealArea}}
</td>
<td>
{{(d.shop_type==1)?'使用面积':'项目总面积'}}:{{d.market_area}}m²
</td>
<td>
剩余铺数:{{d.residue_num}}
</td>
<td>
总铺数:{{d.total}}
</td>
</tr>
<tr>
<td>
适合经营范围:{{d.industry_type}}
</td>
<!--<td>{{(d.shop_type==1)?'当前经营':'已入驻'}}:{{d.enter_num}}</td>-->
<td></td>
<td>
楼层:{{d.floor}}
</td>
<td></td>
</tr>
<tr>
<td
colspan=
"4"
>
理想经营业态:{{d.fit_industry_type}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"2"
>
对内商铺名称:{{d.internal_title
}}
</td>
<td
>
类型:{{d.id
}}
</td>
<
!--<td colspan="2">对内商铺地址:{{d.province}}{{d.city+d.disc+d.internal_address}}</td>--
>
<
td>
交通:{{(d.shop_type==1)?'街铺':'商场'}}
</td
>
<td
colspan=
"2"
>
对内商铺地址:{{d.address
}}
</td>
<td
>
简介:{{(d.is_show==1)?'否':'是'
}}
</td>
<td>
楼盘图片:{{(d.is_exclusive_type==1)?'是':'否'}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"2"
>
交通:{{d.traffic}}
</td>
<td>
所在楼层:{{d.id}}
</td>
<td
colspan=
"2"
>
商务条款:{{signRule()}}
</td>
<td>
房号:{{(d.shop_type==1)?'街铺':'商场'}}
</td>
<td>
房源状态:{{(d.is_show==1)?'否':'是'}}
</td>
<td>
是否独家:{{(d.is_exclusive_type==1)?'是':'否'}}
</td>
</tr>
</tr>
<tr>
<tr>
<!--<td colspan="2">对内项目优势:{{d.internal_item_advantage}}</td>-->
<td>
租金总价:{{d.id}}
</td>
<td
colspan=
"2"
>
标签:{{d.shop_sign}}
</td>
<td>
租金单价:{{(d.shop_type==1)?'街铺':'商场'}}
</td>
</tr>
<td>
转让费:{{(d.is_show==1)?'否':'是'}}
</td>
<tr
class=
"border-bottom"
>
<td>
物业管理费:{{(d.is_exclusive_type==1)?'是':'否'}}
</td>
<td>
营业时间:{{d.do_business_date}}
</td>
<td
v-if=
"d.shop_type == 0"
>
招商时间:{{d.opening_date}}
</td>
<td
v-if=
"d.shop_type == 0"
>
开业时间:{{d.start_business_date}}
</td>
<td
v-if=
"d.shop_type == 0"
>
项目(大厦)名称:{{d.project_name}}
</td>
</tr>
<tr
class=
"tr-seat"
>
<td
colspan=
"4"
></td>
</tr>
<tr
class=
"tr-bold"
>
<td
colspan=
"4"
>
经纪人对本铺的评价
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"4"
>
周边配套:{{d.rim_mating}}
</td>
<td>
可容纳工位:{{d.id}}
</td>
<td>
面积:{{(d.shop_type==1)?'街铺':'商场'}}
</td>
<td>
所属楼层:{{(d.is_show==1)?'否':'是'}}
</td>
<td>
入驻时间:{{(d.is_exclusive_type==1)?'是':'否'}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"4"
>
所处地段:{{d.section}}
</td>
<td>
付款规则:{{d.id}}
</td>
<td>
签约年限:{{(d.shop_type==1)?'街铺':'商场'}}
</td>
<td>
可注册公司:{{(d.is_show==1)?'否':'是'}}
</td>
<td>
是否可分割:{{(d.is_exclusive_type==1)?'是':'否'}}
</td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"4"
>
附近人流:{{d.crowd}}
</td>
<td>
车位情况:{{d.id}}
</td>
</tr>
<td>
免租时间:{{(d.shop_type==1)?'街铺':'商场'}}
</td>
<tr
class=
"border-bottom"
>
<td>
来源:{{(d.is_show==1)?'否':'是'}}
</td>
<td
colspan=
"4"
>
其他补充:{{d.other}}
</td>
<td>
是否对客户展示:{{(d.is_exclusive_type==1)?'是':'否'}}
</td>
</tr>
<tr
class=
"tr-seat"
>
<td
colspan=
"4"
></td>
</tr>
</tr>
<tr>
<tr>
<td>
面宽:{{d.area_width}}米
</td>
<td>
交付装修:{{d.id}}
</td>
<td>
进深:{{d.depth}}米
</td>
<td>
办公楼标签:{{(d.shop_type==1)?'街铺':'商场'}}
</td>
<td>
电量:{{d.electric_quantity}}KW
</td>
<td></td>
<td>
电压:{{d.voltage}}V
</td>
<td></td>
</tr>
<tr>
<td>
燃气:{{(d.is_has_gas == 1)?'无':'有'}}
</td>
<td>
烟管道:{{(d.exhaust_fume == 1)?'有':'无'}}
</td>
<td>
上水:{{(d.running_water == 1)?'有':'无'}}
</td>
<td>
下水:{{(d.downriver == 1)?'有':'无'}}
</td>
</tr>
<tr
class=
"border-bottom"
>
<td
colspan=
"2"
>
目前证照经营范围:{{d.business_scope}}
</td>
<td
colspan=
"2"
>
交付装修:{{switchDecoration(d.decoration)}}
</td>
</tr>
<tr
class=
"tr-seat"
>
<td
colspan=
"4"
></td>
</tr>
</tr>
<tr>
<tr>
<td
colspan=
"4"
class=
"oh"
>
<td
colspan=
"4"
class=
"oh"
>
<div
class=
"fl"
>
详情页面轮播图:
</div>
<div
class=
"fl"
>
详情页面轮播图:
</div>
...
@@ -118,27 +78,7 @@
...
@@ -118,27 +78,7 @@
</div>
</div>
</td>
</td>
</tr>
</tr>
<tr
class=
"tr-seat"
>
<td
colspan=
"4"
></td>
</tr>
<tr>
<td
colspan=
"2"
v-if=
"!(d.is_show==1)"
>
对外商铺名称:{{d.external_title}}
</td>
<td
colspan=
"2"
v-if=
"!(d.is_show==1)"
>
对外商铺地址:{{d.external_address}}
</td>
</tr>
<tr>
<td
v-if=
"d.shop_type == 1"
colspan=
"2"
>
对外转让费:{{(d.external_slotting_fee == '-1')?'面议':(d.external_slotting_fee+'元')}}
</td>
<td
v-else
colspan=
"3"
></td>
</tr>
<tr
v-if=
"!(d.is_show==1) && d.cover_plan"
>
<td
colspan=
"4"
class=
"oh"
>
<div
class=
"fl"
>
对外封面图:
</div>
<div
class=
"fl"
>
<ul
class=
"oh img-list"
>
<li
class=
"fl oh"
><img
class=
"fl"
:src=
"d.api_path+d.cover_plan.img_name"
/></li>
</ul>
</div>
</td>
</tr>
<tr
class=
"tr-seat"
>
<tr
class=
"tr-seat"
>
<td
colspan=
"4"
></td>
<td
colspan=
"4"
></td>
</tr>
</tr>
...
...
application/index/controller/OfficeBuilding.php
View file @
cede883a
...
@@ -33,4 +33,28 @@ class OfficeBuilding extends Basic
...
@@ -33,4 +33,28 @@ class OfficeBuilding extends Basic
return
view
(
'officeBuilding/buildingDictionary'
);
return
view
(
'officeBuilding/buildingDictionary'
);
}
}
}
}
public
function
myCollectionOfficeList
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'officeBuilding/myCollectionOfficeList'
);
}
}
public
function
remarkFollowOffice
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'officeBuilding/remarkFollowOffice'
);
}
}
public
function
getCollectionTotal
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'officeBuilding/getCollectionTotal'
);
}
}
public
function
getCollectionOffice
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'officeBuilding/getCollectionOffice'
);
}
}
}
}
\ No newline at end of file
application/index/view/finance/getCollection.html
View file @
cede883a
...
@@ -332,9 +332,9 @@
...
@@ -332,9 +332,9 @@
<div
class=
""
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<
!--<
li>
<a href="javascript:;">收款记录</a>
<a href="javascript:;">收款记录</a>
</li>
</li>
-->
</div>
</div>
<div
class=
"panel-body"
style=
"overflow:hidden;"
>
<div
class=
"panel-body"
style=
"overflow:hidden;"
>
<div
class=
"table-responsive"
>
<div
class=
"table-responsive"
>
...
@@ -343,7 +343,7 @@
...
@@ -343,7 +343,7 @@
<tr>
<tr>
<td
colspan=
"15"
>
<td
colspan=
"15"
>
<form
id=
"form_search"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
提交时间:
</span>
<span
class=
"fore-span ld-Marheight"
>
1
提交时间:
</span>
<input
id=
"comit_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
<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'})"
>
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>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
...
...
application/index/view/officeBuilding/getCollectionOffice.html
0 → 100644
View file @
cede883a
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"getCollection"
/>
<style>
.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
{
width
:
130px
;
height
:
auto
;
float
:
left
;
text-align
:
center
;
color
:
red
;
}
.result
>
img
,
.result2
>
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"
>
2提交时间:
</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-3"
>
<div
class=
"form-group"
>
<strong><span>
入账ID:
</span></strong>
<span
id=
"ruzhangId"
>
45122
</span>
</div>
</div>
<div
class=
"col-xs-3"
>
<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>
成交报告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
class=
"col-xs-3"
>
<div
class=
"form-group"
>
<strong><span>
房源ID:
</span></strong>
<span
id=
"fangyuanId"
>
45122
</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=
"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>
application/index/view/officeBuilding/getCollectionTotal.html
0 → 100644
View file @
cede883a
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"getCollectionTotal"
/>
<style>
.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
{
width
:
130px
;
height
:
auto
;
float
:
left
;
text-align
:
center
;
color
:
red
;
}
.result
>
img
,
.result2
>
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
style=
"width: 100%;background: #fff;"
>
<div>
<a
href=
"javascript:;"
>
收款记录
</a>
</div>
<h4
class=
"modal-title detail-modal-header-tab"
>
<span
class=
"shop-detail btn btn-info"
>
商铺
</span>
<span
class=
"office-detail btn btn-default"
>
办公楼
</span>
</h4>
<div
class=
"detail-modal-body-sec1"
>
<iframe
src=
"/index/getCollection"
style=
"width: 100%;height: 1200px;border: 0;"
></iframe>
</div>
<div
class=
"detail-modal-body-sec2"
style=
"display: none;"
>
<iframe
src=
"/index/getCollectionOffice"
style=
"width: 100%;height: 1200px;border: 0;"
></iframe>
</div>
</div>
application/index/view/officeBuilding/myCollectionOfficeList.html
0 → 100644
View file @
cede883a
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"myCollectionOfficeList"
/>
<style>
.modal-body
{
/*height: 600px;*/
overflow-y
:
auto
;
padding-bottom
:
60px
;
}
.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
;
}
#search
{
float
:
left
;
}
#reset
{
float
:
left
;
}
#district_id
{
width
:
16%
!important
;
}
#follow_up_con
{
width
:
32%
!important
;
}
.clear
{
clear
:
both
;
}
.btn-top-house
{
margin-top
:
20px
;
text-align
:
center
;
}
</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>
<li>
<span
class=
"btn btn-info btn3 "
id=
"fresh_btn"
>
刷新
</span></li>
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<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>
<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=
"follow_list"
>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- #查看-->
<div
class=
"modal fade modal_followup"
id=
"modal_shop_detail"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-one"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title detail-modal-header-tab"
>
<a
href=
"javascript:;"
class=
"btn btn-default"
>
商铺跟进
</a>
<a
href=
"javascript:;"
class=
"btn btn-info"
>
查看商铺
</a>
</h4>
</div>
<div
class=
"modal-body modal-body-one"
>
<div
class=
"detail-modal-body-sec"
>
<div
class=
"followup-modal-list-area"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
""
id=
"modal_followup_table_list"
>
<tr>
<td>
电话跟进:测试测试测试测试测试测试测试测试测试测试测试测试
</td>
<td>
刘丹丹
</td>
<td>
2017-09-05 15:22:33
</td>
</tr>
<tr>
<td
colspan=
"3"
>
2017-09-05 15:22:33
</td>
</tr>
</tbody>
</table>
</div>
<div
class=
"followup-modal-comment-area"
>
<textarea></textarea>
</div>
<div
class=
"btn-top-house"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"modal_followup_submit_btn"
>
提交
</button>
</div>
</div>
<div
class=
"detail-modal-body-sec"
>
<iframe
class=
"iframe-shop-detail"
></iframe>
</div>
</div>
</div>
</div>
</div>
application/index/view/officeBuilding/officeBuildingList.html
View file @
cede883a
...
@@ -621,9 +621,9 @@
...
@@ -621,9 +621,9 @@
<span
class=
"btn-info-liu"
>
查看商铺
</span>
<span
class=
"btn-info-liu"
>
查看商铺
</span>
<span
class=
"btn-default-liu"
>
商铺跟进
</span>
<span
class=
"btn-default-liu"
>
商铺跟进
</span>
<span
class=
"btn-default-liu"
>
盘方记录
</span>
<span
class=
"btn-default-liu"
>
盘方记录
</span>
<span
class=
"btn-default-liu"
>
查看日志
</span>
<
!--<
span class="btn-default-liu">查看日志</span>
<span class="btn-default-liu">编辑日志</span>
<span class="btn-default-liu">编辑日志</span>
<span
class=
"btn-default-liu"
>
商铺视频
</span>
<span class="btn-default-liu">商铺视频</span>
-->
</h4>
</h4>
</div>
</div>
...
...
application/index/view/officeBuilding/remarkFollowOffice.html
0 → 100644
View file @
cede883a
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"remarkFollowOffice"
/>
<style>
#pagediv
{
box-sizing
:
border-box
;
padding-right
:
60px
;
/*margin-right: 68px;*/
}
.prev
{
margin-right
:
10px
;
}
.next
{
margin-left
:
10px
;
}
.follow-up-modal-list-area
{
height
:
258px
;
overflow-y
:
scroll
;
}
.modal-body1
{
height
:
716px
;
overflow-y
:
auto
;
padding-bottom
:
60px
;
}
.modal-body-details
{
width
:
850px
;
}
.user-ul
{
width
:
100%
;
height
:
auto
;
float
:
left
;
position
:
relative
;
left
:
-40px
;
}
.user-ul
li
,
.user-ul-edit-introduce
li
{
list-style
:
none
;
line-height
:
30px
;
}
.user-ul2
,
.look-shop-ul
,
.user-ul-edit-introduce
{
width
:
100%
;
height
:
auto
;
padding-bottom
:
6px
;
float
:
left
;
position
:
relative
;
left
:
-40px
;
}
.user-ul2
li
,
.look-shop-ul
li
{
list-style
:
none
;
line-height
:
30px
;
}
.input
{
width
:
16%
!important
;
}
.text-right
{
float
:
right
;
display
:
inline-block
;
}
#batch
{
float
:
left
;
height
:
34px
;
line-height
:
34px
;
}
.ld-Marheight
{
margin-top
:
15px
;
}
.phone_list
{
margin-top
:
32px
;
width
:
182px
;
margin-left
:
-182px
;
}
.phone_jia
{
width
:
182px
;
}
.phone_list
li
{
height
:
22px
;
line-height
:
22px
;
}
.phone_list
li
:nth-of-type
(
even
)
{
display
:
none
;
}
.modal-dialog-one
{
width
:
668px
;
}
.clear
{
clear
:
both
;
}
.left
{
float
:
left
;
font-size
:
12px
;
}
.bottom
{
margin-top
:
30px
;
}
/*客户列表商 约带看*/
.detail-modal-bargaininfo-main-left
{
float
:
left
;
width
:
340px
;
line-height
:
36px
;
}
#bargaininfo_is_open
,
#bargaininfo_type
{
width
:
100px
!important
;
display
:
inline-block
;
}
#bargaininfo_expect_payback_time
{
height
:
32px
;
}
.detail-modal-bargaininfo-main-right
{
line-height
:
36px
;
width
:
700px
;
}
#bargaininfo_yetai
{
width
:
150px
;
display
:
inline-block
;
height
:
26px
;
padding
:
3px
6px
}
#bargaininfo_chengjiao_price
,
#bargaininfo_total_commission
{
width
:
120px
;
display
:
inline-block
;
height
:
26px
;
padding
:
3px
6px
}
.detail-modal-bargaininfo-form
{
line-height
:
48px
;
width
:
620px
;
margin
:
0
auto
;
}
.detail-modal-bargaininfo-commission-inputpar
{
width
:
100%
;
overflow
:
hidden
;
clear
:
both
;
}
.detail-modal-bargaininfo-commission-sec
,
.addtax-modal-tax-commission-sec
{
overflow
:
hidden
;
}
.detail-modal-bargaininfo-commission-sec
>
label
,
.addtax-modal-tax-commission-sec
>
label
{
float
:
left
;
}
.detail-modal-bargaininfo-commission-sec
>
label
:nth-of-type
(
2
),
.addtax-modal-tax-commission-sec
>
label
:nth-of-type
(
2
)
{
margin-left
:
50px
;
}
.detail-modal-bargaininfo-commission-sec
>
div
,
.addtax-modal-tax-commission-sec
>
div
{
float
:
left
;
width
:
380px
;
}
.detail-modal-bargaininfo-commission-sec
>
mark
,
.addtax-modal-tax-commission-sec
>
mark
{
float
:
left
;
overflow
:
hidden
;
background-color
:
transparent
;
padding-top
:
5px
;
padding-left
:
10px
;
}
.detail-modal-bargaininfo-commission-sec
>
mark
>
img
,
.addtax-modal-tax-commission-sec
>
mark
>
img
{
float
:
left
;
width
:
20px
;
}
#bargaininfo_commission_add_btn
{
width
:
70%
;
margin-bottom
:
20px
;
}
#note_look
{
margin-left
:
67px
;
}
#bargaininfo_commission_add_btn
>
img
{
display
:
block
;
margin
:
0
auto
;
}
.opacity-0
{
opacity
:
0
;
}
.user_call
{
height
:
20px
;
width
:
30px
;
border-radius
:
3px
;
line-height
:
20px
;
margin-top
:
7px
;
font-size
:
10px
;
text-align
:
center
;
cursor
:
pointer
}
/*客户动态*/
.followup-modal-list-area
{
height
:
258px
;
overflow-y
:
scroll
;
}
/*客户详情 头像*/
.user_pic
{
width
:
30px
;
height
:
30px
;
border-radius
:
15px
;
}
/*拨打电话样式*/
.modal-body-width
{
width
:
460px
;
}
#phone_title2
{
width
:
100%
;
height
:
186px
;
line-height
:
186px
;
text-align
:
center
;
font-weight
:
600
;
font-size
:
43px
;
}
#phone_title
{
font-weight
:
600
;
}
/*控制放大镜的*/
#preview
{
z-index
:
9999
!important
;
}
.modal-title-genjing
{
height
:
36px
;
line-height
:
36px
;
font-weight
:
600
;
font-size
:
16px
;
}
.modal-title-genjing
span
{
cursor
:
pointer
;
margin-right
:
20px
;
}
.center-btn
{
margin-top
:
10px
;
text-align
:
center
;
}
#caozuo_table_scroll
{
height
:
188px
;
overflow-y
:
scroll
;
}
/*查看过的 客户详情 按钮变色*/
.btn-user-details
{
background-color
:
orange
;
}
/*上一条 下一条 样式*/
#user_up
,
#user_down
{
color
:
#337ab7
;
cursor
:
pointer
;
}
.detail-modal-header-tab
{
width
:
220px
;
float
:
left
;
}
.user_up_con
{
float
:
left
;
margin-top
:
5px
;
font-size
:
16px
;
}
#user_area_add
{
margin-left
:
5px
;
}
.call-user-five
{
color
:
red
;
font-size
:
20px
;
font-weight
:
700
;
}
/*查看详情 样式优化*/
.modal-header
{
padding
:
8px
;
}
.modal-body
{
padding
:
10px
;
}
.input-border-0
{
border
:
0
;
}
.ld-Marheight-city
{
margin-top
:
8px
;
}
.form-control
[
disabled
]
{
background-color
:
#fff
;
}
.btn6-yuedaikan
{
width
:
46%
!important
;
cursor
:
pointer
;
}
.btn-guanbi
{
margin-left
:
20px
;
}
.left
{
float
:
left
;
}
/*加载图标*/
#main_loading_pic
{
position
:
fixed
;
top
:
50%
;
left
:
50%
;
width
:
100px
;
height
:
100px
;
margin-left
:
50px
;
margin-top
:
-150px
;
;
overflow
:
hidden
;
display
:
none
;
}
.ld-Marheight-tags
{
margin-top
:
12px
;
}
/*收藏样式*/
#user_is_collect
{
margin-left
:
30px
;
font-weight
:
600
;
cursor
:
pointer
;
}
/*下拉式*/
.user-ul-liu
{
height
:
auto
;
float
:
left
;
position
:
relative
;
left
:
-40px
;
}
.user-ul-liu
li
{
list-style
:
none
;
line-height
:
30px
;
}
.left-phone-liu
{
float
:
left
;
margin-top
:
5px
;
margin-left
:
10px
;
}
/*改变搜索条件的 margain*/
.ld-Marheight
{
margin-top
:
5px
!important
;
}
</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"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<td
colspan=
"9"
>
<form
id=
"form_search"
>
<select
class=
"form-control btn2-city ld-Marheight user_city_choose_site_list"
></select>
<!--<select class="form-control btn2 ld-Marheight" id="user_area_choose">
<option value="" selected="selected">区域筛选</option>
</select>-->
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"is_taday"
style=
"float: left;"
>
今天
</span>
<span
class=
"fore-span ld-Marheight text-danger"
>
(点击今天,再点击搜索)
</span>
<span
class=
"fore-span ld-Marheight"
>
跟进时间:
</span>
<span
class=
"fore-span ld-Marheight follow-up-time-tip text-danger"
></span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date"
name=
"start_date"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"customer_name_id"
placeholder=
"客户编号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"follow_content"
placeholder=
"跟进内容"
type=
"text"
value=
""
>
<div
class=
"left-phone-liu"
>
<input
class=
"form-control"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"partical_name"
placeholder=
"跟进人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul-liu"
></ul>
</div>
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="remark_name" placeholder="跟进人姓名" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="remark_phone" placeholder="跟进人手机号" type="text" value="">-->
<div
class=
"clear"
>
</div>
<!--<select class="form-control btn4 ld-Marheight input" name="" id="district_id">
<option value="">跟进人所在部门</option>
</select>
<select class="form-control btn4 ld-Marheight input" name="" id="guest_stores" value="">
</select>-->
<!--<span class="fore-span ld-Marheight">
客户去重:
</span>
<select class="form-control btn2 ld-Marheight" id="to_heavy">
<option value="1" selected="selected">是</option>
<option value="0">否</option>
</select>-->
<div
class=
"clear "
></div>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
<!--<span class="btn btn-info btn3 ld-Marheight" id="is_today">今天跟进</span>-->
</form>
</td>
</tr>
<tr>
<th
class=
"text-center"
>
跟进时间
</th>
<th
class=
"text-center"
>
客户姓名
</th>
<th
class=
"text-center"
>
客户ID
</th>
<th
class=
"text-center"
>
跟进内容/跟进标签
</th>
<th
class=
"text-center"
>
跟进人
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"follow_list"
>
</table>
</div>
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--客户详情 客户跟进 不可编辑-->
<div
class=
"modal fade"
id=
"modal-record"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-details"
>
<div
class=
"modal-content"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
style=
"display: none;"
>
×
</button>
<iframe
style=
"width: 100%;height: 756px;display: block;border: none;border-radius: 6px;"
></iframe>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div
id=
"genjin_modal"
>
<div
class=
"genjin-modal-main"
>
<div
class=
"call-hide-area"
>
<p>
请使用
<span></span>
的手机拨打该虚拟号:
</p>
<p>
(使用其他手机号拨打是打不通的)
</p>
<p></p>
</div>
<div
class=
"genjin-content-area"
><textarea
placeholder=
"请输入跟进信息"
id=
"content"
></textarea></div>
<div
class=
"genjin-mark-area"
>
<div
class=
"genjin-mark-area-putong"
>
<div
class=
"genjin-mark-area-title"
>
普通标签:(必选)
</div>
<div
class=
"genjin-mark-area-alink"
></div>
</div>
<div
class=
"genjin-mark-area-zhuangtai"
>
<div
class=
"genjin-mark-area-title"
>
状态标签:(必选)
</div>
<div
class=
"genjin-mark-area-alink"
>
<!--<a data-markid="-1">无效</a>-->
<a
data-markid=
"1"
>
已租
</a>
<a
data-markid=
"0"
>
求租
</a>
</div>
</div>
</div>
<div
class=
"genjin-submit-area"
>
<a
href=
"javascript:;"
id=
"btn_save"
>
提交
</a>
<a
href=
"javascript:;"
id=
"btn_save_temp"
>
正在保存...
</a>
</div>
</div>
<div
id=
"close_btn"
><img
src=
"/app/images/ic_cha.png"
/></div>
</div>
<!--客户编辑-->
<div
class=
"modal fade"
id=
"modal-record-edit"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-details"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title text-info"
>
客户编辑
</h4>
</div>
<div
class=
"modal-body modal-body1"
>
<table
class=
""
id=
"caozuo_hide"
border=
'0'
>
<thead>
<tr>
<td
width=
"40%"
>
<span
class=
"fore-span"
>
产生类型:
</span>
<span
class=
"fore-span source_type"
></span>
</td>
<td>
<span
class=
"fore-span"
>
VIP客户:
</span>
<select
class=
"form-control btn6 user_vip2 user_vip2_1"
>
<option
value=
''
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</td>
<td>
<span
class=
"fore-span"
>
客户编号:
</span>
<span
class=
"fore-span cus_id"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"fore-span ld-Marheight"
>
姓名:
</span>
<input
class=
"form-control btn6 ld-Marheight cus_name cus_name_1"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"name"
type=
"text"
>
</td>
<td>
<span
class=
"fore-span ld-Marheight"
>
性别:
</span>
<select
class=
"form-control btn6 ld-Marheight sex sex_1"
>
<option
value=
"0"
class=
"successModel"
>
性别
</option>
<option
value=
"1"
>
男
</option>
<option
value=
"2"
>
女
</option>
</select>
</td>
<td>
<span
class=
"fore-span ld-Marheight"
>
电话:
</span>
<span
class=
"fore-span ld-Marheight cus_phone"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"fore-span ld-Marheight"
>
业态:
</span>
<select
class=
"form-control btn6 ld-Marheight industry_type_two_1"
name=
"industry_type_two"
>
<option>
轻餐饮
</option>
<option>
重餐饮
</option>
<option>
百货零售
</option>
<option>
服装
</option>
<option>
亲子教育
</option>
<option>
休闲娱乐
</option>
</select>
</td>
<td>
<span
class=
"fore-span ld-Marheight"
>
价格:
</span>
<input
class=
"form-control btn6 ld-Marheight price_demand_1"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
""
name=
"price_demand"
type=
"number"
><span
class=
"fore-span ld-Marheight"
>
元/月
</span>
</td>
<td>
<span
class=
"fore-span ld-Marheight"
>
面积:
</span>
<input
class=
"form-control btn6 ld-Marheight area_demand_1"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
""
name=
"area_demand"
type=
"number"
><span
class=
"fore-span ld-Marheight"
>
m²
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"fore-span ld-Marheight"
>
注册时间:
</span>
<span
class=
"fore-span ld-Marheight registration_time"
></span>
</td>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户来源:
</span>
<select
class=
"form-control btn6 fore-span ld-Marheight"
id=
"user_source_edit"
>
<option
value=
''
>
请选择
</option>
<option
value=
"1"
>
网络
</option>
<option
value=
"2"
>
客户介绍
</option>
<option
value=
"3"
>
朋友介绍
</option>
<option
value=
"4"
>
上门挂牌
</option>
<option
value=
"5"
>
打跟进
</option>
<option
value=
"6"
>
驻守
</option>
<option
value=
"7"
>
其他
</option>
</select>
</td>
<td>
<span
class=
"fore-span ld-Marheight"
>
昵称:
</span>
<img
src=
""
alt=
""
class=
"fore-span ld-Marheight diagram-image J_preview user_pic"
data-bimg=
''
/>
<span
class=
"fore-span ld-Marheight cus_nick"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"fore-span ld-Marheight"
>
创建时间:
</span>
<span
class=
"fore-span ld-Marheight cus_date"
></span>
</td>
<!--<td>
</td>-->
<td>
<span
class=
"fore-span ld-Marheight"
>
下载登录时间:
</span>
<span
class=
"fore-span ld-Marheight firstlogin_time"
></span>
</td>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户标签(选填):
</span>
<select
class=
"form-control btn6 fore-span ld-Marheight"
id=
"user_label_edit"
>
<option
value=
''
>
请选择
</option>
<option
value=
"1"
>
是租客也是房东
</option>
<option
value=
"2"
>
纯房东
</option>
</select>
</td>
</tr>
<tr>
<td
colspan=
"3"
>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<div
class=
"col-sm-9 shangpu_tags_area_edit ld-Marheight-tags"
>
</div>
<!--<select class="form-control btn4 ld-Marheight" id="user_city_edit">
<option value="">请选择城市</option>
<option value="310100">上海市</option>
<option value="330100">杭州市</option>
</select>
<select class="form-control btn4 ld-Marheight" id="user_area_edit">
<option value="">请选择区域</option>
</select>-->
</td>
</tr>
<tr>
<td>
<div
class=
"form-group"
>
<span
class=
"fore-span ld-Marheight"
>
客方:
</span>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6-1 ld-Marheight cus_fang"
name=
"pwd"
autocomplete=
"off"
>
<ul
class=
"user-ul2"
></ul>
</div>
</div>
</td>
<td
colspan=
"2"
>
<div
class=
"form-group"
>
<span
class=
"fore-span ld-Marheight"
>
邀请人(介绍人):
</span>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6-1 ld-Marheight"
name=
"pwd"
autocomplete=
"off"
id=
"introduce_edit_user"
>
<ul
class=
"user-ul-edit-introduce"
></ul>
</div>
</div>
</td>
</tr>
<tr
class=
"ld-Marheight"
>
<td
class=
"text-left"
><label>
客方修改记录:
</label></td>
</tr>
</thead>
</table>
<div
id=
"caozuo_table_scroll"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"caozuo_table_edit"
></tbody>
</table>
</div>
<div><label>
邀请人(介绍人)修改记录:
</label></div>
<div
id=
"caozuo_table_scroll"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"caozuo_table_edit_introduce"
></tbody>
</table>
</div>
<!--客户详情保存-->
<div
class=
"center-btn"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default btn-guanbi"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
</div>
application/index/view/remark/remark_follow_index.html
View file @
cede883a
...
@@ -386,7 +386,7 @@
...
@@ -386,7 +386,7 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<li>
<a
href=
"javascript:;"
>
客户跟进列表
</a>
<a
href=
"javascript:;"
>
客户跟进列表
(商铺)
</a>
</li>
</li>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
...
...
application/route.php
View file @
cede883a
...
@@ -367,8 +367,21 @@ Route::group('index', [
...
@@ -367,8 +367,21 @@ Route::group('index', [
'officeBuildingList'
=>
[
'index/OfficeBuilding/officeBuildingList'
,
[
'method'
=>
'POST|GET'
]],
//办公楼liu
'officeBuildingList'
=>
[
'index/OfficeBuilding/officeBuildingList'
,
[
'method'
=>
'POST|GET'
]],
//办公楼liu
'officeEdit'
=>
[
'index/OfficeBuilding/officeEdit'
,
[
'method'
=>
'POST|GET'
]],
//办公楼新增编辑liu
'officeEdit'
=>
[
'index/OfficeBuilding/officeEdit'
,
[
'method'
=>
'POST|GET'
]],
//办公楼新增编辑liu
'buildingDictionary'
=>
[
'index/OfficeBuilding/buildingDictionary'
,
[
'method'
=>
'POST|GET'
]],
//楼盘字典liu
'buildingDictionary'
=>
[
'index/OfficeBuilding/buildingDictionary'
,
[
'method'
=>
'POST|GET'
]],
//楼盘字典liu
<<<<<<<
HEAD
=======
'myCollectionOfficeList'
=>
[
'index/OfficeBuilding/myCollectionOfficeList'
,
[
'method'
=>
'POST|GET'
]],
//办公楼收藏liu
'remarkFollowOffice'
=>
[
'index/OfficeBuilding/remarkFollowOffice'
,
[
'method'
=>
'POST|GET'
]],
//办公-客跟进liu
'getCollectionTotal'
=>
[
'index/OfficeBuilding/getCollectionTotal'
,
[
'method'
=>
'POST|GET'
]],
//收款记录总liu
'getCollectionOffice'
=>
[
'index/OfficeBuilding/getCollectionOffice'
,
[
'method'
=>
'POST|GET'
]],
//收款记录总liu
>>>>>>>
收款
//‘页面的地址’ =》 index/控制器名称/使用的方法
//‘页面的地址’ =》 index/控制器名称/使用的方法
'inviteStatistics'
=>
[
'index/InviteStatistics/inviteStatisticsList'
,
[
'method'
=>
'POST|GET'
]],
//邀请注册liu
'inviteStatistics'
=>
[
'index/InviteStatistics/inviteStatisticsList'
,
[
'method'
=>
'POST|GET'
]],
//邀请注册liu
'operationalData'
=>
[
'index/OperationalData/operationalDataList'
,
[
'method'
=>
'POST|GET'
]],
//运营数据统计liu
'operationalData'
=>
[
'index/OperationalData/operationalDataList'
,
[
'method'
=>
'POST|GET'
]],
//运营数据统计liu
...
...
public/resource/js/getCollectionOffice.js
0 → 100644
View file @
cede883a
define
([
'doT'
,
'text!temp/receivables_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
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
:
''
,
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
(
'请求超时,请重试'
);
};
}
});
});
//图片删除事件
_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
()
{
//中介费类型显示 隐藏 中介费
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"
));
},
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 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 changed_type = $('#changed_type').val();
// var changed_id = $('#changed_id').val();
// var back_id_money = $('#back_id_money').val();
// var shoped_id = $('#shoped_id').val();
// var shoped_addr = $('#shoped_addr').val();
// var commit_home = $('#commit_home').val();
// var commit_shop = $('#commit_shop').val();
// var comit_name = refund.agent_id_phone;
// var comit_phone = $('#comit_phone').val();
// var choose_type = $('.btn-group').find('.btn-info').html();
// var is_selt = $('#is_type').val();
// var get_id = $('#get_id').val();
// var status = refund.check_status;
// receiv.buildSearchParams();
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
);
//开业确定时间
//判断收款详情的类型
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/js/getCollectionTotal.js
0 → 100644
View file @
cede883a
define
([
'doT'
,
'text!temp/receivables_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
receiv
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
receiv
.
event
();
},
event
:
function
()
{
var
that
=
receiv
;
var
_doc
=
$
(
document
);
//点击按钮 显示隐藏iframe
$
(
document
).
on
(
'click'
,
'.shop-detail'
,
function
(
e
){
$
(
".detail-modal-body-sec1"
).
show
();
$
(
".detail-modal-body-sec2"
).
hide
();
});
$
(
document
).
on
(
'click'
,
'.office-detail'
,
function
(
e
){
console
.
log
(
555
)
$
(
".detail-modal-body-sec1"
).
hide
();
$
(
".detail-modal-body-sec2"
).
show
();
});
},
};
return
receiv
;
});
\ No newline at end of file
public/resource/js/myCollectionOfficeList.js
0 → 100644
View file @
cede883a
define
([
'doT'
,
'text!temp/my_collection_office_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
house
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
AuthToken
:
''
,
agent_id
:
0
,
agent_phone
:
''
,
agent_name
:
''
,
isFollowupSaving
:
false
,
/*每页显示多少条*/
id
:
''
,
house_id
:
''
,
type
:
''
,
valueCurrent
:
''
,
ajaxObj
:
''
,
stopstatus
:
true
,
boxphoto
:
''
,
detailTabIndex
:
0
,
//查看 弹出框 tab切换 初始化
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
// house.getList(0);
house
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
house
.
AuthToken
=
user_info_obj
.
AuthToken
;
house
.
agent_id
=
user_info_obj
.
id
;
house
.
phone
=
user_info_obj
.
phone
;
house
.
name
=
user_info_obj
.
name
;
function
getPreMonth
(
date
)
{
var
arr
=
date
.
split
(
'-'
);
var
year
=
arr
[
0
];
var
month
=
arr
[
1
];
var
day
=
arr
[
2
];
var
days
=
new
Date
(
year
,
month
,
0
);
days
=
days
.
getDate
();
var
year2
=
year
;
var
month2
=
parseInt
(
month
)
-
1
;
if
(
month2
==
0
)
{
year2
=
parseInt
(
year2
)
-
1
;
month2
=
12
;
}
var
day2
=
day
;
var
days2
=
new
Date
(
year2
,
month2
,
0
);
days2
=
days2
.
getDate
();
if
(
day2
>
days2
)
{
day2
=
days2
;
}
if
(
month2
<
10
)
{
month2
=
'0'
+
month2
;
}
var
t2
=
year2
+
'-'
+
month2
+
'-'
+
day2
;
return
t2
;
}
//初始化时间
var
myDate
=
new
Date
();
var
y
=
myDate
.
getFullYear
();
var
m
=
myDate
.
getMonth
()
+
1
;
var
d
=
myDate
.
getDate
();
var
day_end
=
y
+
'-'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'-'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
var
day_start
=
getPreMonth
(
day_end
);
$
(
'#create_time_start'
).
val
(
day_start
);
$
(
'#create_time_end'
).
val
(
day_end
);
//商铺跟进 添加 默认时间 一个月
house
.
getList
(
0
);
//商铺跟进列表
//收藏 取消收藏
$
(
document
).
delegate
(
".is_show_shoucang"
,
"click"
,
function
()
{
//点击禁用
if
(
!
confirm
(
'是否继续?'
))
{
return
;
}
house
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
var
params
=
{
};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
==
"收藏"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-default is_show_shoucang'
);
params
.
type
=
1
;
$
(
this
).
html
(
'取消收藏'
);
}
else
if
(
str
==
"取消收藏"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-info is_show_shoucang'
);
params
.
type
=
2
;
$
(
this
).
html
(
'收藏'
);
}
else
{
params
.
type
=
3
;
}
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
'url'
:
'/broker/addCollectHouse'
,
//商铺收藏 取消收藏
data
:
{
"agents_id"
:
user_info_obj
.
id
,
"status"
:
params
.
type
,
"house_id"
:
house
.
house_id
,
"AuthToken"
:
user_info_obj
.
AuthToken
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
alert
(
"禁用失败!"
)
}
}
});
});
_doc
.
on
(
'click'
,
'#fresh_btn'
,
function
(
e
)
{
house
.
pageNo
=
1
;
house
.
getList
(
1
);
});
// 部门 门店 二级联动
house
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
record
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="0">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
});
$
(
"#search"
).
click
(
function
()
{
//搜索
house
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#guest_stores'
).
html
(
''
);
});
//查看弹出框里的tab点击事件,查看商铺,商铺跟进
_doc
.
on
(
'click'
,
'.detail-modal-header-tab>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
house
.
detailTabIndex
=
_this
.
index
();
$
(
'.detail-modal-body-sec:nth-of-type('
+
(
house
.
detailTabIndex
+
1
)
+
')'
).
show
().
siblings
().
hide
();
if
(
house
.
detailTabIndex
==
1
){
$
(
'.iframe-shop-detail'
).
attr
(
'src'
,
'/app_broker/shop_detail_pc?shop_id='
+
house
.
id
);
}
else
if
(
house
.
detailTabIndex
==
0
){
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
house
.
getFollowupList
();
}
});
//点击查看,触发定位事件
_doc
.
on
(
'click'
,
'[href="#modal_detail"]'
,
function
(){
var
_this
=
$
(
this
);
if
(
_this
.
hasClass
(
'btn-success'
)){
_this
.
removeClass
(
'btn-success'
).
addClass
(
'btn-warning'
);
};
});
//点击跟进,获取商铺跟进动态的接口
_doc
.
on
(
'click'
,
'[href="#modal_followup"]'
,
function
(){
house
.
id
=
$
(
this
).
attr
(
"data-id"
);
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
house
.
getFollowupList
();
});
//点击商铺跟进保存按钮,保存数据的接口
_doc
.
on
(
'click'
,
'#modal_followup_submit_btn'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
house
.
followupAdd
();
});
//城市 区域 筛选
_doc
.
on
(
'input'
,
'#shop_city_id'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
//新增 编辑
var
_objTemp
=
_this
.
parent
().
next
().
find
(
'select'
);
_objTemp
.
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
house
.
getCityAreaList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
fullName
+
'">'
+
item
.
fullName
+
'</option>'
;
});
_objTemp
.
html
(
_str
);
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
//查看点击事件
_doc
.
on
(
'click'
,
'a[href="#modal_shop_detail"]'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-success'
).
addClass
(
'btn-warning'
);
var
_id
=
_this
.
attr
(
'data-id'
);
house
.
id
=
_id
;
console
.
log
(
_id
);
$
(
'.detail-modal-header-tab>a:nth-of-type(1)'
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
house
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
house
.
getFollowupList
();
// $('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+_id);
});
},
getList
:
function
(
pageNo
)
{
//商铺跟进列表
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
.
AuthToken
);
house
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
house
.
pageNo
;
params
.
pageSize
=
house
.
pageSize
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
agents_id
=
user_info_obj
.
id
;
params
.
from
=
1
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/broker/getCollectHouseList'
,
//商铺跟进 对接接口
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'my_collection_office_list'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
data
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
house
.
pageSize
,
house
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
getFollowupList
:
function
(){
$
.
ajax
({
'type'
:
'get'
,
'url'
:
'/broker/getListByHouseId'
,
data
:
{
'house_id'
:
house
.
id
,
'AuthToken'
:
house
.
AuthToken
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
&&
Array
.
isArray
(
data
.
data
)
&&
data
.
data
.
length
>
0
)
{
var
_htmlTemp
=
''
;
$
.
each
(
data
.
data
,
function
(
i
,
v
)
{
_htmlTemp
+=
'<tr><td>{0}</td><td>{1}</td><td>{2}</td></tr>'
.
stringFormatObj
({
'0'
:
dealPunctuation
(
v
.
step
),
'1'
:
v
.
agent_name
,
'2'
:
v
.
create_time
})
});
$
(
'#modal_followup_table_list'
).
html
(
_htmlTemp
);
}
else
{
$
(
'#modal_followup_table_list'
).
html
(
'<tr><td>暂无数据</td></tr>'
);
}
//判断用户是否有权限跟进
if
(
check_auth
(
'broker/addShopFollowUp'
)){
$
(
'#modal_followup_submit_btn'
).
show
();
}
else
{
$
(
'#modal_followup_submit_btn'
).
hide
();
}
}
else
{
alert
(
'请登录!'
);
}
}
});
},
followupAdd
:
function
(){
var
_tareaObjVal
=
$
(
'.followup-modal-comment-area>textarea'
).
val
();
if
(
_tareaObjVal
==
''
){
alert
(
'内容不能为空'
);
return
false
;
};
if
(
!
house
.
isFollowupSaving
){
house
.
isFollowupSaving
=
true
;
$
.
ajax
({
'type'
:
'post'
,
'url'
:
'/broker/addShopFollowUp'
,
data
:
{
'house_id'
:
house
.
id
,
'AuthToken'
:
house
.
AuthToken
,
'agent_id'
:
house
.
agent_id
,
'agent_phone'
:
house
.
agent_phone
,
'agent_name'
:
house
.
agent_name
,
'follow_up_info'
:
_tareaObjVal
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'添加成功'
);
house
.
isFollowupSaving
=
false
;
$
(
".modal_followup"
).
modal
(
'hide'
);
}
else
{
alert
(
'请登录!'
);
}
}
});
}
},
//调用部门 和 门店的接口
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>'
;
});
$
(
"#district_id"
).
append
(
str
);
$
(
"#district_id2"
).
append
(
str
);
fn
&&
fn
();
}
}
});
},
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
);
}
}
});
},
//城市 区域 筛选
getCityAreaList
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/regions'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'parent_code'
:
id
,
"pageSize"
:
1000
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
}
});
},
};
return
house
;
});
\ No newline at end of file
public/resource/js/remarkFollowOffice.js
0 → 100644
View file @
cede883a
if
(
window
===
window
.
parent
){
//没有菜单 给提醒
alert
(
'请清除缓存重新登录'
);
location
.
replace
(
location
.
origin
);
};
define
([
'doT'
,
'text!temp/remark_follow_office_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'bootstrapJs'
,
'blow-up'
,
'PaginationLiu'
,
'paginationStartLiu'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
);
var
_doc
=
$
(
document
),
_token
=
user_info_obj
.
AuthToken
;
var
_genjinModal
=
$
(
'#genjin_modal'
),
//跟进模态框dom
_callModal
=
$
(
'#call_modal'
),
//拨打电话模态框dom
_markAreaObj
=
$
(
'.genjin-mark-area-zhuangtai>.genjin-mark-area-alink'
),
//跟进标签列表状态标签区域dom
_markAreaObj2
=
$
(
'.genjin-mark-area-putong>.genjin-mark-area-alink'
),
//跟进标签列表普通标签区域dom
_beizhuObj
=
$
(
'#content'
),
//跟进的备注内容
_genjinCloseBtn
=
$
(
'#close_btn'
),
//跟进模态框关闭按钮
_btnSave
=
$
(
'#btn_save'
),
//跟进的保存按钮
_btnSaveTemp
=
$
(
'#btn_save_temp'
),
//跟进保存按钮临时
_userId
=
Number
(
user_info_obj
.
id
),
//当前用户id
isCallFlag
=
true
,
//是否是电话跟进,默认不是
_addPhoneBtn
=
$
(
'#add_phone_btn'
),
//添加电话按钮
_addPhoneListObj
=
$
(
'#call_modal_phone_list'
),
//添加电话列表对象dom
_userPhone
=
user_info_obj
.
phone
,
//当前用户的手机号
_selectPhone
=
''
,
//拨号列表里选择的号码,也是当前用户对应的手机号,可能和_userPhone是一样的
_customerPhone
=
''
,
//当前客户的手机号
_backPhone
=
''
,
//绑定之后返回的号码
_temp_follow_id
=
''
,
//临时的跟进id
is_outpace_call_num
=
1
;
//拨打电话0:未超过限制 1:超过限制
var
user
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
15
,
/*每页显示多少条*/
user_id
:
0
,
user_id_var
:
''
,
user_type
:
''
,
user_phone
:
''
,
urls
:
''
,
agent_id_two
:
''
,
agent_id2
:
0
,
agent_id_infor
:
0
,
baohu
:
''
,
agentbaohu
:
''
,
remark_id
:
''
,
user_id_edit_introduce
:
''
,
isAjaxSaving
:
false
,
customerInfo
:
{},
agent_id_call
:
""
,
//拨打电话 相关
agent_id_call_vip
:
""
,
agent_id_phone
:
''
,
pageNoUser
:
1
,
//客户详情 客户动态初始化分页
moreUser
:
0
,
//标识点击加载更多 还有没有数据
isTaday
:
1
,
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
//初始化时间
var
myDate
=
new
Date
();
var
y
=
myDate
.
getFullYear
();
var
m
=
myDate
.
getMonth
()
+
1
;
var
d
=
myDate
.
getDate
();
var
day_end
=
y
+
'-'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'-'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
$
(
'.follow-up-time-tip'
).
html
(
'('
+
'请选择小于或等于'
+
getBeforeDate
(
1
)
+
'的时间!!!'
+
')'
);
// $('#start_date').val(day_end);
// $('#end_date').val(day_end);//客户跟进 添加 默认时间一天
//初始化城市 区域筛选
user
.
initializationCityFunction
();
user
.
event
();
//时间控件初始化
//bootstrap 时间控件选择
//汉化实现
;(
function
(
$
){
$
.
fn
.
datetimepicker
.
dates
[
'zh-CN'
]
=
{
days
:
[
"星期日"
,
"星期一"
,
"星期二"
,
"星期三"
,
"星期四"
,
"星期五"
,
"星期六"
,
"星期日"
],
daysShort
:
[
"周日"
,
"周一"
,
"周二"
,
"周三"
,
"周四"
,
"周五"
,
"周六"
,
"周日"
],
daysMin
:
[
"日"
,
"一"
,
"二"
,
"三"
,
"四"
,
"五"
,
"六"
,
"日"
],
months
:
[
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
,
"10"
,
"11"
,
"12"
],
monthsShort
:
[
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
,
"10"
,
"11"
,
"12"
],
today
:
"今日"
,
suffix
:
[],
meridiem
:
[
"am"
,
"pm"
],
weekStart
:
1
,
};
}(
jQuery
));
$
(
".form_datetime"
).
datetimepicker
({
//format: 'yyyy-mm-dd hh:ii:ss',
format
:
'yyyy-mm-dd hh:ii:00'
,
autoclose
:
true
,
language
:
'zh-CN'
,
minView
:
0
,
minuteStep
:
30
//hourStep: 1
});
$
(
'.datetimepicker'
).
hide
();
//初始化隐藏时间控件
//显示 隐藏城市 默认显示 当前账号 所在城市
$
.
ajax
({
url
:
'/index/getAgentGroupSite'
,
type
:
'GET'
,
async
:
true
,
data
:
{
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
.
length
!=
0
)
{
var
str
=
'<option value="">选择城市</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".user_city_choose_site_list"
).
append
(
str
);
}
else
{
var
_str1
=
'<option value="">选择城市</option>'
;
var
_city
=
user_info_obj
.
city
;
var
_siteID
=
user_info_obj
.
site_id
;
var
_str
=
_str1
+
'<option value="'
+
_siteID
+
'">'
+
_city
+
'</option>'
;
$
(
".user_city_choose_site_list"
).
append
(
_str
);
};
// $(".user_city_choose_site_list").val(user_info_obj.site_id);//给默认值
}
});
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//约带看列表 点击新增商铺
var
_iYJAAObj
=
$
(
'.detail-modal-bargaininfo-commission-addarea'
);
_doc
.
on
(
'click'
,
'#bargaininfo_commission_add_btn>img'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
// checkLogin();
if
(
$
(
'.detail-modal-bargaininfo-commission-addarea>div'
).
length
>=
5
)
{
alert
(
'最多添加5条'
);
return
false
;
}
else
{
_iYJAAObj
.
append
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><span class="fore-span ld-Marheight opacity-0">约带看商铺:</span><div class=" "><input type="text" class="form-control ld-Marheight look-shop" name=" " autocomplete="off" placeholder="请输入商铺名称、商铺编号关键词"><ul class="look-shop-ul"></ul></div><mark href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic ld-Marheight"><img src="/resource/image/search_gb.png"/></mark></div>'
);
};
});
//详情弹出框,成交信息里的实收佣金相关的事件,点击x删除这条
_doc
.
on
(
'click'
,
'.detail-modal-bargaininfo-commission-cancel-pic'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
// checkLogin();
$
(
this
).
parent
().
remove
();
});
//城市 区域 二级联动 筛选
_doc
.
on
(
'input'
,
'#user_city_choose'
,
function
()
{
$
(
'#user_area_choose'
).
val
(
''
);
user
.
getList
(
1
);
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
user
.
setUpCityFunction
(
_id
);
$
(
'#user_area_choose'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
user
.
getCityAreaList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="">区域</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
fullName
+
'">'
+
item
.
fullName
+
'</option>'
;
});
$
(
'#user_area_choose'
).
html
(
_str
);
});
}
else
{};
});
//自动筛选 区域
_doc
.
on
(
'input'
,
'#user_area_choose'
,
function
()
{
user
.
getList
(
1
);
});
_doc
.
on
(
'click'
,
'#is_taday'
,
function
()
{
$
(
'#start_date'
).
val
(
''
);
$
(
'#end_date'
).
val
(
''
);
user
.
isTaday
=
1
;
$
(
this
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
);
// user.getList(1);
});
_doc
.
on
(
'input'
,
'#end_date'
,
function
()
{
$
(
'#is_taday'
).
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
user
.
isTaday
=
0
;
});
//客户详情跟进 取消收藏
_doc
.
on
(
'click'
,
'#user_is_collect'
,
function
()
{
if
(
!
confirm
(
'是否继续?'
))
{
return
;
}
var
params
=
{
};
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
==
"收藏"
)
{
params
.
type
=
1
;
$
(
this
).
html
(
'取消收藏'
);
}
else
if
(
str
==
"取消收藏"
)
{
params
.
type
=
2
;
$
(
this
).
html
(
'收藏'
);
}
else
{
params
.
type
=
3
;
};
// checkLogin();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
'url'
:
'/broker/addCollectUser'
,
//客户收藏 取消收藏
data
:
{
"agents_id"
:
user_info_obj
.
id
,
"status"
:
params
.
type
,
"user_id"
:
user
.
user_id
,
"AuthToken"
:
user_info_obj
.
AuthToken
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
alert
(
"禁用失败!"
)
}
else
{
alert
(
data
.
msg
)
}
}
});
});
//城市 区域 筛选
_doc
.
on
(
'input'
,
'#user_city_add,#user_city_edit'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
user
.
setUpCityFunction
(
_id
);
_this
.
next
().
html
(
''
);
//先清空
//新增 编辑
if
(
_id
&&
_id
!=
'0'
)
{
user
.
getCityAreaList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">区域</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
fullName
+
'">'
+
item
.
fullName
+
'</option>'
;
});
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
//点击input 出现时间控件
_doc
.
on
(
'click'
,
'#look_shop_date'
,
function
()
{
$
(
'.datetimepicker'
).
show
();
});
//上一页 获取客户详情
_doc
.
on
(
'click'
,
'#user_up'
,
function
()
{
user_type
=
'last'
;
//点击客户详情 初始化客户动态 带看动态
$
(
'.modal-title-genjing-con>span:nth-of-type(1)'
).
addClass
(
'text-info'
).
siblings
().
removeClass
(
'text-info'
);
//初始化客户动态 带看动态两个表格切换
$
(
'.follow-up-modal-list-area:nth-of-type(1)'
).
show
().
siblings
().
hide
();
user
.
getInforNew
();
});
//下一页 获取客户详情
_doc
.
on
(
'click'
,
'#user_down'
,
function
()
{
user_type
=
'next'
;
//点击客户详情 初始化客户动态 带看动态
$
(
'.modal-title-genjing-con>span:nth-of-type(1)'
).
addClass
(
'text-info'
).
siblings
().
removeClass
(
'text-info'
);
//初始化客户动态 带看动态两个表格切换
$
(
'.follow-up-modal-list-area:nth-of-type(1)'
).
show
().
siblings
().
hide
();
user
.
getInforNew
();
});
//客户列表 收藏夹
_doc
.
on
(
'click'
,
'.user-favorites'
,
function
()
{
user
.
getUserFavorites
();
});
//二级联动
user
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
user
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="0">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
});
$
(
".Bannertu"
).
click
(
function
()
{
BrowseServer
(
'cover_image'
);
});
$
(
"#search"
).
click
(
function
()
{
user
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
document
.
getElementById
(
"form_search"
).
reset
();
user
.
agent_id_phone
=
''
;
//重置搜索
$
(
'#guest_stores'
).
html
(
''
);
$
(
'#guest_stores2'
).
html
(
''
);
user
.
isTaday
=
0
;
$
(
"#is_taday"
).
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
});
//新增 客户 重置信息
$
(
"#confirm_delete"
).
click
(
function
()
{
var
params
=
{};
params
.
id
=
$
(
"#delete_id"
).
val
();
params
.
status
=
1
;
if
(
!
params
.
id
||
params
.
id
==
null
)
{
alert
(
"要删除的id不能为空"
);
return
false
;
}
user
.
delete_user
(
params
);
});
$
(
document
).
delegate
(
".add_alert"
,
"click"
,
function
()
{
document
.
getElementById
(
"add_user_form"
).
reset
();
});
//新增客户
$
(
document
).
delegate
(
"#add_user"
,
"click"
,
function
()
{
//新增客户
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
add_user
();
});
//点击新增客户 清除id
$
(
document
).
delegate
(
".add-user-new"
,
"click"
,
function
()
{
//新增客户
user
.
agent_id
=
''
;
});
// 跟进的提交按钮 点击
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
// checkLogin();
user
.
edit_add
();
});
// 批量修改客方
$
(
document
).
delegate
(
"#modify_add"
,
"click"
,
function
()
{
// checkLogin();
user
.
modify_add
();
});
// 客户编辑 修改记录
$
(
document
).
delegate
(
".cao-zuo-record"
,
"click"
,
function
()
{
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
// user.Caozuorecord();
});
$
(
document
).
delegate
(
".caozuo-yue"
,
"click"
,
function
()
{
//约带看初始化
$
(
'#look_shop_date'
).
val
(
''
);
$
(
'#note_look'
).
val
(
''
);
$
(
'.look-shop'
).
val
(
''
);
$
(
'.look-shop'
).
removeAttr
(
'data-id'
);
// checkLogin();
user
.
Caozuo
();
});
//客户列表操作
$
(
document
).
delegate
(
".cao-zuo-record"
,
"click"
,
function
()
{
//点击操作跟进详情
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_phone
=
$
(
this
).
attr
(
"data-phone"
);
user
.
agent_id_infor
=
$
(
this
).
attr
(
"data-agentId"
);
user
.
baohu
=
$
(
this
).
attr
(
"data-baohu"
);
user
.
agentbaohu
=
$
(
this
).
attr
(
"data-agent"
);
//隐藏拨打电话 相关
user
.
agent_id_call
=
$
(
this
).
attr
(
"data-agent"
);
user
.
agent_id_call_current
=
$
(
this
).
attr
(
"data-current"
);
user
.
agent_id_call_vip
=
$
(
this
).
attr
(
"data-vip"
);
$
(
'.call-user-five'
).
html
(
''
);
$
(
'.detail-modal-body-sec-2'
).
show
();
$
(
'#take_look_name'
).
html
(
$
(
this
).
attr
(
"data-name"
));
$
(
'#take_look_phone'
).
html
(
$
(
this
).
attr
(
"data-phone"
));
$
(
'#take_look_id'
).
html
(
$
(
this
).
attr
(
"data-id"
));
$
(
'#look_shop_date'
).
val
(
''
);
$
(
'#note_look'
).
val
(
''
);
$
(
'.look-shop'
).
val
(
''
);
$
(
'.look-shop'
).
removeAttr
(
'data-id'
);
$
(
'.detail-modal-header-tab>a:nth-of-type(1)'
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
//点击客户详情 初始化客户动态 带看动态
$
(
'.modal-title-genjing-con>span:nth-of-type(1)'
).
addClass
(
'text-info'
).
siblings
().
removeClass
(
'text-info'
);
user
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
//初始化客户动态 带看动态两个表格切换
$
(
'.follow-up-modal-list-area:nth-of-type(1)'
).
show
().
siblings
().
hide
();
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
user
.
getSiteTagsEdit
();
user
.
getUserLogNew
();
//客户详情获取最近一条带看动态
$
(
'.user-log-more'
).
show
();
//显示加载更多
});
//客户列表操作
$
(
document
).
delegate
(
".genj_ure"
,
"click"
,
function
()
{
//点击操作跟进详情
var
_$this
=
$
(
this
);
$
(
'#modal-record iframe'
).
attr
(
'src'
,
'/index/userModalList?data='
+
$
.
trim
(
_$this
.
next
().
html
().
replace
(
/
[
&
\|\\\*
^%$#@
\-]
/g
,
""
))
+
'&idindex='
+
_$this
.
attr
(
'data-index'
)
+
'&id='
+
_$this
.
attr
(
'data-id'
));
});
//查看弹出框里的tab点击事件,客户动态 带看动态
_doc
.
on
(
'click'
,
'.modal-title-genjing-con>span'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
addClass
(
'text-info'
).
siblings
().
removeClass
(
'text-info'
);
user
.
detailTabIndexFollow
=
_this
.
index
();
$
(
'.follow-up-modal-list-area:nth-of-type('
+
(
user
.
detailTabIndexFollow
+
1
)
+
')'
).
show
().
siblings
().
hide
();
if
(
user
.
detailTabIndexFollow
){
$
(
'.user-log-more'
).
hide
();
user
.
getUserLog
(
2
)
//获取带看记录
}
else
{
$
(
'.user-log-more'
).
show
();
user
.
pageNoUser
=
1
;
$
(
'#caozuo_table2'
).
html
(
''
);
user
.
getGenjincon
()
//获取客户动态
}
});
//客户动态 加载更多
_doc
.
on
(
'click'
,
'.user-log-more'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
user
.
moreUser
=
1
;
user
.
getGenjincon
(
user
.
pageNoUser
++
)
});
//点击缓存
$
(
document
).
delegate
(
".caozuo-add-color"
,
"click"
,
function
()
{
//点击操作跟进详情
user
.
remark_id
=
$
(
this
).
attr
(
"data-remark"
);
$
(
this
).
removeClass
(
'btn-success'
);
$
(
this
).
addClass
(
'btn-warning'
);
//数组去重 的方法
function
unique1
(
arr
){
var
hash
=
[];
for
(
var
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
if
(
hash
.
indexOf
(
arr
[
i
])
==-
1
){
hash
.
push
(
arr
[
i
]);
}
}
return
hash
;
}
if
(
JSON
.
parse
(
localStorage
.
getItem
(
'id_details_str_remark'
))
==
null
){
var
id_details_arr
=
[];
id_details_arr
.
push
(
user
.
remark_id
);
localStorage
.
setItem
(
'id_details_str_remark'
,
JSON
.
stringify
(
id_details_arr
));
}
else
{
var
id_details_arr
=
JSON
.
parse
(
localStorage
.
getItem
(
'id_details_str_remark'
));
id_details_arr
.
push
(
user
.
remark_id
);
localStorage
.
setItem
(
'id_details_str_remark'
,
JSON
.
stringify
(
unique1
(
id_details_arr
)));
}
});
$
(
document
).
on
(
"input"
,
"#set_father_id3"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#set_father_id3"
).
val
()
==
''
)
{
user
.
agent_id
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
// checkLogin();
user
.
search_phone
();
}
});
$
(
document
).
on
(
"input"
,
"#introduce_edit_user"
,
function
()
{
//编辑客户 转介绍人 搜索客户
if
(
$
(
"#introduce_edit_user"
).
val
()
==
''
)
{
user
.
user_id_edit_introduce
=
''
;
$
(
".user-ul-edit-introduce"
).
html
(
''
);
}
else
{
// checkLogin();
user
.
introduce_userIdEdit
();
}
});
//拨打手机号
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
if
(
is_outpace_call_num
==
'0'
){
// checkLogin();
user
.
user_Call
();
}
else
{
layerTipsX
(
'该客户今日已达拨打上限,请明日再来'
);
}
});
//没打通手机号
$
(
document
).
on
(
"click"
,
"#unbind_call"
,
function
()
{
user
.
unbind_Call
();
// checkLogin();
});
//约带看 保存
$
(
document
).
on
(
"click"
,
".save-look"
,
function
()
{
//手机号搜索客方
user
.
save_look
();
// checkLogin();
});
//约带看 商铺选择
$
(
document
).
on
(
"input"
,
".look-shop"
,
function
()
{
//手机号搜索客方
if
(
$
(
this
).
val
()
==
''
)
{
$
(
this
).
next
(
'.look-shop-ul'
).
html
(
''
);
$
(
this
).
removeAttr
(
"data-id"
);
}
else
{
user
.
search_phone_look
(
this
);
}
});
//查看弹出框里的tab点击事件,查看商铺,商铺跟进
_doc
.
on
(
'click'
,
'.detail-modal-header-tab>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
user
.
detailTabIndex
=
_this
.
index
();
$
(
'.detail-modal-body-sec:nth-of-type('
+
(
user
.
detailTabIndex
+
1
)
+
')'
).
show
().
siblings
().
hide
();
if
(
user
.
detailTabIndex
==
1
){
}
else
if
(
user
.
detailTabIndex
==
0
){
user
.
Caozuo
();
user
.
pageNoUser
=
1
;
$
(
'#caozuo_table2'
).
html
(
''
);
user
.
getGenjincon
();
}
});
//跟进姓名 下拉式搜索
$
(
document
).
on
(
"input"
,
"#partical_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#partical_name"
).
val
()
==
''
)
{
user
.
agent_id_phone
=
''
;
$
(
".user-ul-liu"
).
html
(
''
);
}
else
{
user
.
search_phone_liu
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphoneliu"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
user
.
addphoneliu
(
this
);
});
//跟进姓名 下拉式搜索
$
(
document
).
on
(
"input"
,
".cus_fang"
,
function
()
{
//手机号搜索客方2 编辑
if
(
$
(
".cus_fang"
).
val
()
==
''
)
{
user
.
agent_id2
=
''
;
$
(
".user-ul2"
).
html
(
''
);
}
else
{
user
.
search_phone2
();
}
});
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
user
.
addphone
(
this
);
});
$
(
document
).
delegate
(
".add-user-edit-li"
,
"click"
,
function
()
{
//list消失编辑客户 点击li事件 获取客户id ul消失
user
.
addUserEditLi
(
this
);
});
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
user
.
addphone2
(
this
);
});
//点击列表 获取input的值
$
(
document
).
delegate
(
".addphone3"
,
"click"
,
function
()
{
//list3消失
user
.
addphone3
(
this
);
});
// =============================下拉列表===================
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
(
e
)
{
//提交
e
.
preventDefault
();
e
.
stopPropagation
();
// checkLogin();
user
.
Submit_follow
();
});
// =============下拉列表========================
var
_ajaxObjTel
=
null
;
_doc
.
on
(
'input'
,
'.phone_jia'
,
function
()
{
var
_this
=
$
(
this
),
_thisVal
=
$
.
trim
(
_this
.
val
());
_this
.
removeAttr
(
'data-id'
);
//移除之前携带的信息
if
(
_thisVal
!=
''
)
{
_ajaxObjTel
&&
_ajaxObjTel
.
abort
();
_ajaxObjTel
=
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getBroker_new'
,
data
:
{
'phone'
:
$
.
trim
(
_this
.
val
())
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
[
'data'
].
length
>
0
)
{
var
_htmlTemp
=
''
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
_htmlTemp
+=
'<li data-id="{3}">{2}{0}-{1}<li>'
.
stringFormatObj
({
'0'
:
item
[
'name'
],
'1'
:
item
[
'phone'
],
'2'
:
_this
.
parent
().
nextAll
(
'.input-add-tel'
).
data
(
'hideid'
)
?
''
:
(
item
[
'id'
]
+
'-'
),
'3'
:
item
[
'id'
]
});
});
// 输出trim
_this
.
next
().
show
().
html
(
_htmlTemp
);
}
else
{
_this
.
next
().
html
(
''
);
};
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
//alert('error');
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
};
});
_doc
.
on
(
'click'
,
'.jian_class>ul>li'
,
function
()
{
var
_this
=
$
(
this
);
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
html
(
''
).
hide
();
});
//跟进模态框,列表标签的点击事件
_doc
.
on
(
'click'
,
'.genjin-mark-area-alink>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
if
(
!
_this
.
hasClass
(
'genjin-mark-active'
)){
_this
.
addClass
(
'genjin-mark-active'
).
siblings
().
removeClass
(
'genjin-mark-active'
);
};
if
(
_this
.
attr
(
'data-markid'
)
==
'1'
){
//如果选择了未打通,则直接关闭
if
(
_this
.
parent
().
parent
().
index
()
===
0
){
//只有在.genjin-mark-area-putong,电话跟进特有,下的标签才会隐藏
genjinSave
(
'sp1'
);
return
false
;
}
};
});
//跟进的提交按钮点击事件
_btnSave
.
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
// checkLogin();
genjinSave
();
});
function
genjinSave
(
type
){
var
_genjinMarkOBj
=
$
(
'.genjin-mark-area-zhuangtai .genjin-mark-active'
),
_genjinMarkOBj2
=
$
(
'.genjin-mark-area-putong .genjin-mark-active'
),
_beizhuObjVal
=
$
.
trim
(
_beizhuObj
.
val
()),
_isFreeFlag
=
true
;
//是否释放
//取消自动关闭
// if((_genjinMarkOBj2.attr('data-markid') == '1') || (_genjinMarkOBj2.attr('data-markid') == '4')){
// //如果选择了未打通,或取消拨打,则直接关闭
// if(isCallFlag&&_isFreeFlag){
// //释放
// freePhone();
// };
// _genjinModal.hide();//跟进模态框关闭
// return false;
// };
if
((
_genjinMarkOBj2
.
attr
(
'data-markid'
)
==
'1'
)
||
(
_genjinMarkOBj2
.
attr
(
'data-markid'
)
==
'4'
)){
}
else
{
if
(
_genjinMarkOBj
.
length
==
0
){
layerTipsX
(
'请选择状态跟进标签'
);
return
false
;
};
};
var
_data
=
{
'AuthToken'
:
_token
,
'content'
:
_beizhuObjVal
,
'user_id'
:
user
.
user_id
,
'agent_id'
:
_userId
,
'user_status'
:
_genjinMarkOBj
.
attr
(
'data-markid'
)
};
if
(
type
===
'sp1'
){
if
(
_beizhuObjVal
){
}
else
{
_data
[
'content'
]
=
'未打通'
;
};
if
(
_genjinMarkOBj
.
length
==
0
){
_data
[
'user_status'
]
=
user
.
customerInfo
.
user_status
;
};
};
if
(
isCallFlag
){
//电话跟进
if
(
_genjinMarkOBj2
.
length
==
0
){
layerTipsX
(
'请选择普通跟进标签'
);
return
false
;
}
else
{
_data
[
'labels_id'
]
=
_genjinMarkOBj2
.
attr
(
'data-markid'
);
_data
[
'type'
]
=
0
;
_data
[
'follow_id'
]
=
_temp_follow_id
;
//跟进id
(
_genjinMarkOBj2
.
attr
(
'data-free'
)
==
0
)
&&
(
_isFreeFlag
=
false
);
}
}
else
{
//普通跟进
if
(
_beizhuObjVal
==
''
){
layerTipsX
(
'请填写跟进信息'
);
return
false
;
}
else
{
_data
[
'type'
]
=
1
;
}
};
$
.
ajax
({
type
:
'POST'
,
url
:
ServerHostTempC
+
'/broker/add_phone_follow_up'
,
data
:
_data
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{
_btnSave
.
hide
();
_btnSaveTemp
.
css
(
'display'
,
'block'
);
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
isCallFlag
&&
_isFreeFlag
){
//释放
freePhone
();
}
else
{
alert
(
'提交成功'
);
_genjinModal
.
hide
();
_btnSaveTemp
.
hide
();
_btnSave
.
css
(
'display'
,
'block'
);
user
.
pageNoUser
=
1
;
$
(
'#caozuo_table2'
).
html
(
''
);
user
.
getGenjincon
();
};
}
else
{
_btnSaveTemp
.
hide
();
_btnSave
.
css
(
'display'
,
'block'
);
layerTipsX
(
data
[
'msg'
]);
};
}
else
{
_btnSaveTemp
.
hide
();
_btnSave
.
css
(
'display'
,
'block'
);
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
_btnSaveTemp
.
hide
();
_btnSave
.
css
(
'display'
,
'block'
);
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
}
function
freePhone
(
obj
){
$
.
ajax
({
type
:
'POST'
,
url
:
ServerHostTempC
+
'/broker/agentsUnBind'
,
data
:
{
'AuthToken'
:
_token
,
'phone_x'
:
_backPhone
,
'phone_a'
:
_selectPhone
,
'user_id'
:
user
.
user_id
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
console
.
log
(
'释放成功'
);
alert
(
'提交成功'
);
_genjinModal
.
hide
();
user
.
pageNoUser
=
1
;
$
(
'#caozuo_table2'
).
html
(
''
);
user
.
getGenjincon
();
}
else
{
layerTipsX
(
data
[
'msg'
]);
};
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
_btnSaveTemp
.
hide
();
_btnSave
.
css
(
'display'
,
'block'
);
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
};
//获取跟进标签列表信息
console
.
log
(
_userId
);
_userId
&&
$
.
ajax
({
type
:
'GET'
,
url
:
ServerHostTempC
+
'/broker/getULabelsListApp'
,
data
:
{
'AuthToken'
:
_token
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
_htmlTemp
=
''
;
$
.
each
(
data
[
'data'
][
'list'
],
function
(
i
,
item
)
{
_htmlTemp
+=
'<a data-markid="{1}" data-free="{2}">{0}</a>'
.
stringFormatObj
({
'0'
:
item
[
'name'
],
'1'
:
item
[
'id'
],
'2'
:
item
[
'free'
]
});
});
_markAreaObj2
.
html
(
_htmlTemp
);
}
else
{
layerTipsX
(
data
[
'msg'
]);
};
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
//拨打电话模态框,获取电话列表
_userId
&&
$
.
ajax
({
type
:
'GET'
,
url
:
ServerHostTempC
+
'/broker/agentsPhone'
,
data
:
{
'AuthToken'
:
_token
,
'agents_id'
:
_userId
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
_htmlTemp
=
''
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
_htmlTemp
+=
'<li class="{0}"><input placeholder="请输入本机手机号" maxlength="11" type="tel" value="{1}" {2} /><div class="call-edit-icon">完成</div><div class="call-submit-ing-icon">提交中ing</div><div class="call-select-icon"><img src="/app/images/ic_duigou_gre.png" /></div><div class="call-delete-icon"><img src="/app/images/search_gb.png" /></div></li>'
.
stringFormatObj
({
'0'
:
''
,
'1'
:
item
[
'phone'
],
'2'
:
'readonly'
,
});
});
$
(
'.call-modal-main>ol'
).
append
(
_htmlTemp
);
}
else
{
layerTipsX
(
data
[
'msg'
]);
};
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
//拨打电话模态框,取消按钮点击事件
_doc
.
on
(
'click'
,
'#call_btn_cancel'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
_callModal
.
hide
();
});
_doc
.
on
(
'click'
,
'#call_list_open_btn'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
_callModal
.
show
();
});
_doc
.
on
(
'click'
,
'#call_modal_phone_list>li'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
if
(
_this
.
find
(
'input'
)[
0
].
readOnly
){
if
(
!
_this
.
hasClass
(
'call-select'
)){
_this
.
addClass
(
'call-select'
).
siblings
().
removeClass
(
'call-select'
);
};
};
});
//删除手机号按钮,点击事件
_doc
.
on
(
'click'
,
'.call-delete-icon'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
layer
.
open
({
content
:
'确认删除此号码吗?'
,
btn
:
[
'确定'
,
'取消'
],
yes
:
function
(
_index
){
var
_phoneTemp
=
_this
.
parent
().
find
(
'input'
).
val
();
_this
.
parent
().
remove
();
console
.
log
(
_phoneTemp
);
$
.
ajax
({
type
:
'POST'
,
url
:
ServerHostTempC
+
'/broker/agentsPhone'
,
data
:
{
'AuthToken'
:
_token
,
'agents_id'
:
_userId
,
'phone'
:
_phoneTemp
,
'type'
:
'delete'
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
},
error
:
function
()
{
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
layer
.
close
(
_index
);
}
});
});
_addPhoneBtn
.
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
_addPhoneListObj
.
find
(
'li'
).
length
>=
3
){
layerTipsX
(
'可添加的号码最多为3'
);
return
false
;
}
else
{
_addPhoneBtn
.
hide
();
_addPhoneListObj
.
append
(
'<li class="call-add"><input placeholder="请输入本机手机号" maxlength="11" type="tel" /><div class="call-edit-icon">完成</div><div class="call-submit-ing-icon">提交中ing</div><div class="call-select-icon"><img src="/app/images/ic_duigou_gre.png" /></div><div class="call-delete-icon"><img src="/app/images/search_gb.png" /></div></li>'
).
find
(
'.call-add>input'
).
focus
();
};
});
_doc
.
on
(
'click'
,
'#call_modal_phone_list>li>.call-edit-icon'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
),
_phoneTemp
=
$
.
trim
(
_this
.
prev
().
val
());
if
(
!
is_mobile
(
_phoneTemp
)){
layerTipsX
(
'请输入正确的手机号码'
);
return
false
;
};
$
.
ajax
({
type
:
'POST'
,
url
:
ServerHostTempC
+
'/broker/agentsPhone'
,
data
:
{
'AuthToken'
:
_token
,
'agents_id'
:
_userId
,
'phone'
:
_phoneTemp
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{
_this
.
hide
();
_this
.
next
().
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
_this
.
prev
().
attr
(
'readonly'
,
'readonly'
).
parent
().
removeClass
(
'call-add'
).
addClass
(
'call-select'
).
siblings
().
removeClass
(
'call-select'
);
_addPhoneBtn
.
show
();
}
else
{
layerTipsX
(
data
[
'msg'
]);
};
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
_this
.
next
().
hide
();
_this
.
parent
().
hasClass
(
'call-add'
)
&&
_this
.
show
();
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
});
var
_callFlag
=
true
;
_doc
.
on
(
'click'
,
'#call_btn_ok'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
!
_callFlag
){
return
false
;
};
var
_selectObj
=
$
(
'.call-select'
);
if
(
_selectObj
.
length
!=
1
){
layerTipsX
(
'选择出错'
);
return
false
;
}
else
{
_selectPhone
=
$
.
trim
(
_selectObj
.
find
(
'input'
).
val
());
};
if
(
_selectPhone
&&
user
.
customerInfo
.
user_phone
){
$
.
ajax
({
type
:
'POST'
,
url
:
'/broker/bindAXB'
,
data
:
{
'AuthToken'
:
_token
,
'phone_a'
:
_selectPhone
,
'user_id'
:
user
.
user_id
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{
_callFlag
=
false
;
$
(
'#call_btn_ok'
).
hide
();
$
(
'#call_btn_ok_temp'
).
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
_backPhone
=
data
[
'data'
][
'phone'
];
_temp_follow_id
=
data
[
'data'
][
'follow_id'
];
//临时的跟进id
console
.
log
(
_backPhone
);
$
(
'.call-hide-area>p:nth-of-type(1)>span'
).
html
(
_selectPhone
);
$
(
'.call-hide-area>p:nth-of-type(3)'
).
html
(
_backPhone
);
_beizhuObj
.
val
(
''
);
//清空跟进输入框内容
_markAreaObj
.
find
(
'a'
).
removeClass
(
'genjin-mark-active'
);
//清空状态跟进标签选择数据
_markAreaObj2
.
find
(
'a'
).
removeClass
(
'genjin-mark-active'
);
//清空普通跟进标签选择数据
_callModal
.
hide
();
_genjinModal
.
show
();
//跟进模态框打开
}
else
{
layerTipsX
(
data
[
'msg'
]);
};
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
$
(
'#call_btn_ok_temp'
).
hide
();
$
(
'#call_btn_ok'
).
show
();
_callFlag
=
true
;
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
};
});
//拨打电话相关
},
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
();
$
(
"#set_father_id3"
).
val
(
user_ht
);
$
(
".user-ul"
).
html
(
''
);
user
.
agent_id
=
$
(
obj
).
attr
(
"data-id"
);
},
addphone2
:
function
(
obj
)
{
var
user_ht
=
$
(
obj
).
html
();
$
(
".cus_fang"
).
val
(
user_ht
);
$
(
".user-ul2"
).
html
(
''
);
user
.
agent_id2
=
$
(
obj
).
attr
(
"data-id"
);
},
addUserEditLi
:
function
(
obj
)
{
//编辑客户 input赋值 搜索客户id
var
user_ht
=
$
(
obj
).
html
();
$
(
"#introduce_edit_user"
).
val
(
user_ht
);
$
(
".user-ul-edit-introduce"
).
html
(
''
);
user
.
user_id_edit_introduce
=
$
(
obj
).
attr
(
"data-id"
);
},
//约带看 商铺名称搜索
addphone3
:
function
(
obj
)
{
var
_obj
=
$
(
obj
);
var
user_ht
=
_obj
.
html
();
_obj
.
parent
().
html
(
''
).
prev
().
val
(
user_ht
).
attr
(
'data-id'
,
_obj
.
attr
(
'data-id'
));
},
save_look
:
function
()
{
//约带看 点击保存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
);
var
arr_look
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.look-shop'
).
length
;
i
++
){
if
(
$
(
'.look-shop'
).
eq
(
i
).
attr
(
'data-id'
)){
//如果id为空 不提交空的数据
arr_look
[
i
]
=
$
(
'.look-shop'
).
eq
(
i
).
attr
(
'data-id'
);
}
}
// if(user_info_obj.id==1){
// alert('当前用户没有权限提交约带看');
// return false;
// }
if
(
arr_look
.
length
<
0
||
arr_look
.
length
==
0
){
alert
(
'请选择约带看商铺'
);
return
false
;
}
var
look_shop_date_val
=
$
(
"#look_shop_date"
).
val
();
if
(
look_shop_date_val
==
''
){
alert
(
'请选择预计到场时间'
);
return
false
;
}
var
_temp_date
=
new
Date
(
look_shop_date_val
+
':000'
);
//格式为2018-07-14 10:30:05:000
console
.
log
(
_temp_date
);
var
start_time
=
_temp_date
.
getTime
()
*
0.001
;
console
.
log
(
start_time
);
if
(
!
user
.
isAjaxSaving
){
user
.
isAjaxSaving
=
true
;
$
.
ajax
({
url
:
'/broker/report'
,
type
:
'POST'
,
async
:
true
,
timeout
:
30000
,
data
:
{
"AuthToken"
:
user_info_obj
.
AuthToken
,
"report_agent_id"
:
user_info_obj
.
id
,
"report_store_id"
:
user_info_obj
.
store_id
,
"vehicle"
:
10
,
"intro"
:
$
(
"#note_look"
).
val
(),
"predict_see_time"
:
start_time
,
"user_id"
:
$
(
"#take_look_id"
).
html
(),
"house_ids"
:
arr_look
.
join
(
','
),
"report_agent_phone"
:
user_info_obj
.
phone
},
beforeSend
:
function
()
{},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功'
);
$
(
'#look_shop_date'
).
val
(
''
);
$
(
'#note_look'
).
val
(
''
);
$
(
'.look-shop'
).
val
(
''
);
$
(
'.look-shop'
).
removeAttr
(
'data-id'
);
$
(
"#modal-takeLook"
).
modal
(
'hide'
);
//提交成功后 关闭弹窗
}
else
{
alert
(
data
.
msg
);
}
},
complete
:
function
(
xhr
,
textStatus
){
user
.
isAjaxSaving
=
false
;
//请求结束,再改为初始状态
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
}
},
search_phone
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#set_father_id3"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
introduce_userIdEdit
:
function
()
{
//编辑客户 转介绍 客户id搜索
$
.
ajax
({
url
:
'/broker/searchUser'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'AuthToken'
:
_token
,
"id"
:
$
(
"#introduce_edit_user"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
user_date
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="add-user-edit-li" data-id="'
+
item
.
user_id
+
'">'
+
item
.
user_name
+
'-'
+
item
.
user_phone
+
'-'
+
item
.
user_id
+
'</li>'
;
});
$
(
".user-ul-edit-introduce"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
search_phone2
:
function
()
{
//手机号 编辑是 客方搜索
// console.log($(".cus_fang").val());
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
".cus_fang"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul2
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul2
+=
'<li class="addphone2" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul2"
).
html
(
user_ul2
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
search_phone_look
:
function
(
n
)
{
//商铺名选择
$
.
ajax
({
url
:
'/broker/getShopListByReport'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'AuthToken'
:
user_info_obj
.
AuthToken
,
"pageNo"
:
1
,
"pageSize"
:
20
,
"keyword"
:
$
(
n
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul2
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul2
+=
'<li class="addphone3" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
title
+
'</li>'
;
});
$
(
n
).
next
(
'.look-shop-ul'
).
html
(
user_ul2
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
user_Call
:
function
()
{
//客户详情 点击拨打按钮
$
(
'#call_modal_phone_self'
).
val
(
user_info_obj
.
phone
);
_callModal
.
show
();
},
unbind_Call
:
function
()
{
//客户详情 点击拨打按钮 弹出框 没打通
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
);
var
params
=
{};
params
.
user_id
=
user
.
user_id
;
params
.
phone_a
=
user_info_obj
.
phone
;
$
(
'#phone_title'
).
html
(
user_info_obj
.
phone
);
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
phone_x
=
$
(
'#phone_title2'
).
html
()
*
1
;
console
.
log
(
params
);
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/broker/agentsUnBind'
,
data
:
params
,
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
// alert(data.msg);
// $("#modal-record").modal('hide');
}
else
{
alert
(
data
.
msg
)
}
}
});
},
Submit_follow
:
function
()
{
//提交
var
params
=
{};
//站点标签验证(编辑客户)
var
_siteTagArr
=
[];
$
.
each
(
$
(
'.roomTagEdit'
),
function
(
i
,
item
)
{
item
.
checked
&&
_siteTagArr
.
push
(
item
.
getAttribute
(
'data-id'
));
});
params
.
site_id
=
_siteTagArr
.
join
(
','
),
params
.
id
=
user
.
user_id
;
params
.
user_name
=
$
(
".cus_name_1"
).
val
();
params
.
agents_id
=
user
.
agent_id2
;
params
.
sex
=
$
(
".sex_1"
).
val
();
params
.
vip
=
$
(
".user_vip2_1"
).
val
();
params
.
industry_type
=
$
(
".industry_type_two_1"
).
val
();
params
.
price_demand
=
$
(
".price_demand_1"
).
val
();
params
.
area_demand
=
$
(
".area_demand_1"
).
val
();
params
.
source_intro
=
$
(
"#user_source_edit"
).
val
();
params
.
referrer_id
=
user
.
user_id_edit_introduce
?
user
.
user_id_edit_introduce
:
0
;
params
.
referrer_source
=
10
;
// params.source = $("#user_label_edit").val();
params
.
user_label
=
$
(
"#user_label_edit"
).
val
();
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
data
:
params
,
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'修改成功'
);
$
(
"#modal-record-edit"
).
modal
(
'hide'
);
}
else
{
alert
(
data
.
msg
)
}
}
});
},
edit_add
:
function
()
{
//提交跟进
var
user_status
=
$
(
"input[name = 'user_status']:checked"
).
val
();
console
.
log
(
user_status
);
var
genj_text
=
$
(
"#genj_text"
).
val
();
if
(
genj_text
==
''
)
{
alert
(
'请填写内容'
);
return
false
;
}
if
(
user_status
==
undefined
)
{
alert
(
'状态标签未选中'
);
return
false
;
}
if
(
!
user
.
isAjaxSaving
){
user
.
isAjaxSaving
=
true
;
$
.
ajax
({
url
:
'/index/pcAddFollow'
,
type
:
'POST'
,
async
:
true
,
timeout
:
30000
,
data
:
{
"user_id"
:
user
.
user_id
,
"content"
:
genj_text
,
"user_status"
:
user_status
},
beforeSend
:
function
()
{},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'修改成功'
);
user
.
pageNoUser
=
1
;
$
(
'#caozuo_table2'
).
html
(
''
);
user
.
getGenjincon
();
$
(
'#genj_text'
).
val
(
''
);
// $("#modal-record").modal('hide');
}
else
{
alert
(
data
.
msg
);
}
},
complete
:
function
(
xhr
,
textStatus
){
user
.
isAjaxSaving
=
false
;
//请求结束,再改为初始状态
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
}
},
//
// 批量修改客方
//
modify_add
:
function
()
{
//modify_add批量修改客方
var
old_agents_text
=
$
(
'.old_agents'
).
val
();
var
new_agents_text
=
$
(
'.new_agents'
).
val
();
console
.
log
(
$
(
'.phone_jia:eq(0)'
).
attr
(
'data-id'
));
console
.
log
(
$
(
'.phone_jia:eq(1)'
).
attr
(
'data-id'
));
// console.log($('.old_agents').attr('name'));
if
(
old_agents_text
==
''
)
{
alert
(
'请输入经纪人内容为空'
);
return
false
;
}
if
(
new_agents_text
==
''
)
{
alert
(
'请输入经纪人内容为空'
);
return
false
;
}
$
.
ajax
({
url
:
'/index/batchEditCustomer'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"old_agents_id"
:
$
(
'.phone_jia:eq(0)'
).
attr
(
'data-id'
),
"agents_id"
:
$
(
'.phone_jia:eq(1)'
).
attr
(
'data-id'
),
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
console
.
log
(
666
);
}
else
{
alert
(
data
.
msg
)
}
}
});
},
// 客户详情页面 编辑和客户详情共用
Caozuo
:
function
()
{
//获取跟进详情的数据
//隐藏拨打电话 如果客户在保护期 并且客户不是我的
if
((
user_info_obj
.
id
*
1
==
user
.
agent_id_infor
*
1
)
||
user
.
baohu
*
1
){
$
(
'.user_call'
).
show
();
}
else
{
$
(
'.user_call'
).
hide
();
};
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/userDetail'
,
data
:
{
"AuthToken"
:
user_info_obj
.
AuthToken
,
"user_id"
:
user
.
user_id
,
'agent_id'
:
user_info_obj
.
id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
$
(
".cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
".cus_name"
).
val
(
data
.
data
.
user_info
.
user_name
);
//姓名
$
(
".cus_nick"
).
html
(
data
.
data
.
user_info
.
user_nick
);
//昵称
$
(
".user_pic"
).
attr
(
'src'
,
data
.
data
.
user_info
.
user_pic
);
//头像
$
(
".user_pic"
).
attr
(
'data-bimg'
,
data
.
data
.
user_info
.
user_pic
);
//鼠标放上去放大头像
$
(
".registration_time"
).
html
(
data
.
data
.
user_info
.
registration_time
);
$
(
".firstlogin_time"
).
html
(
data
.
data
.
user_info
.
first_login_time
);
//第一次登陆时间
$
(
".sex"
).
val
(
data
.
data
.
user_info
.
sex
);
//性别
$
(
".user_vip2"
).
val
(
data
.
data
.
user_info
.
vip
);
//是否vip
$
(
".cus_phone"
).
html
(
hideTel
(
data
.
data
.
user_info
.
user_phone
));
//电话
$
(
".cus_date"
).
html
(
data
.
data
.
user_info
.
create_time
);
//创建时间
$
(
".cus_fang_edit"
).
val
(
data
.
data
.
user_info
.
agent_info
);
//客方详情
$
(
".cus_fang"
).
val
(
data
.
data
.
user_info
.
agent_info
);
//客方编辑
$
(
"select[name=industry_type_two]"
).
val
(
data
.
data
.
user_info
.
industry_type
);
$
(
"input[name=price_demand]"
).
val
(
data
.
data
.
user_info
.
price_demand
*
1
);
$
(
"input[name=area_demand]"
).
val
(
data
.
data
.
user_info
.
area_demand
*
1
);
$
(
"#take_look_name"
).
html
(
data
.
data
.
user_info
.
user_name
);
//约带看姓名
$
(
"#take_look_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//约带看手机号
$
(
"#take_look_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//约带看id
//收藏客户 取消收藏
if
(
data
.
data
.
is_collect
==
2
){
$
(
'#user_is_collect'
).
html
(
'收藏'
);
}
else
{
$
(
'#user_is_collect'
).
html
(
'取消收藏'
);
};
//vip客户 查看权限
if
(
user
.
agent_id_call_vip
*
1
==
1
){
if
(
check_auth
(
'auth_vip'
)
||
(
user
.
agent_id_call
*
1
==
user
.
agent_id_call_current
*
1
)
||
(
data
.
data
.
user_info
.
is_can_look
==
0
)){
$
(
'.user_call'
).
show
();
}
else
{
$
(
'.user_call'
).
hide
();
};
};
//获取 站点城市(编辑)
data
.
data
.
user_info
[
'site_ids'
]
&&
$
.
each
(
$
(
'.roomTagEdit'
),
function
(
i
,
item
)
{
~
data
.
data
.
user_info
[
'site_ids'
].
indexOf
(
item
.
getAttribute
(
'data-id'
))
&&
(
item
.
checked
=
'checked'
);
});
//获取 站点城市(详情)
$
(
'.shangpu_tags_area_detail'
).
show
();
var
site_detail
=
data
.
data
.
user_info
.
site_name
.
join
(
','
);
$
(
'.shangpu_tags_area_detail'
).
html
(
site_detail
);
var
sw
=
function
(
s
){
switch
(
Number
(
s
))
{
case
0
:
return
""
;
case
1
:
return
"网络"
;
case
2
:
return
"客户介绍"
;
case
3
:
return
"朋友介绍"
;
case
4
:
return
"上门挂牌"
;
case
5
:
return
"打跟进"
;
case
6
:
return
"驻守"
;
case
7
:
return
"其他"
;
default
:
return
s
}
};
$
(
"#user_source_edit"
).
val
(
data
.
data
.
user_info
.
source_intro
);
$
(
".user-source-details"
).
html
(
sw
(
data
.
data
.
user_info
.
source_intro
));
user
.
agent_id2
=
data
.
data
.
user_info
.
agent_id
;
user
.
agent_id_two
=
data
.
data
.
user_info
.
agent_id
;
if
(
data
.
data
.
user_info
.
source
==
10
)
{
$
(
".source_type"
).
html
(
'APP注册'
);
//客方
}
if
(
data
.
data
.
user_info
.
source
==
20
)
{
$
(
".source_type"
).
html
(
'经纪人新增'
);
}
if
(
data
.
data
.
user_info
.
source
==
30
)
{
$
(
".source_type"
).
html
(
'老数据报备客户'
);
}
if
(
data
.
data
.
user_info
.
user_label
==
1
)
{
$
(
".user_details_label"
).
html
(
'是租客也是房东'
);
$
(
"#user_label_edit"
).
val
(
1
);
}
if
(
data
.
data
.
user_info
.
user_label
==
2
)
{
$
(
".user_details_label"
).
html
(
'纯房东'
);
$
(
"#user_label_edit"
).
val
(
2
);
}
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍编辑
if
(
data
.
data
.
referrer_source
==
10
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
}
else
{
$
(
".user-details-introduce"
).
html
(
'否'
);
//转介绍详情
}
//客方修改记录
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
][
'user_history'
],
function
(
i
,
item
)
{
caozuo_table
+=
'<tr><td>'
+
item
.
remark
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
});
if
(
caozuo_table
){
$
(
"#caozuo_table_edit"
).
html
(
caozuo_table
);
}
else
{
$
(
"#caozuo_table_edit"
).
html
(
'暂无数据(*^_^*)'
);
};
//邀请人修改记录
var
caozuo_table_introduce
=
""
;
$
.
each
(
data
[
'data'
][
'user_invite_history'
],
function
(
i
,
item
)
{
caozuo_table_introduce
+=
'<tr><td>'
+
item
.
remark
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
});
if
(
caozuo_table_introduce
){
$
(
"#caozuo_table_edit_introduce"
).
html
(
caozuo_table_introduce
);
}
else
{
$
(
"#caozuo_table_edit_introduce"
).
html
(
'暂无数据(*^_^*)'
);
}
//拨打电话
user
.
customerInfo
=
data
.
data
.
user_info
;
is_outpace_call_num
=
data
.
data
.
is_outpace_call_num
;
}
}
else
{
alert
(
'获取客户信息失败!'
);
}
}
});
},
//客户编辑 修改记录
Caozuorecord
:
function
()
{
//获取客户动态
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
// checkLogin();
$
.
ajax
({
url
:
'/broker/useraction_search'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"AuthToken"
:
user_info_obj
.
AuthToken
,
"user_id"
:
user
.
user_id
,
"agent_id"
:
user_info_obj
.
id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
//转介绍人 记录
var
caozuo_table_introduce
=
""
;
$
.
each
(
data
[
'data'
][
'user_invite_history'
],
function
(
i
,
item
)
{
caozuo_table_introduce
+=
'<tr><td>'
+
item
.
remark
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
});
if
(
caozuo_table_introduce
){
$
(
"#caozuo_table_edit_introduce"
).
html
(
caozuo_table_introduce
);
}
else
{
$
(
"#caozuo_table_edit_introduce"
).
html
(
'暂无数据(*^_^*)'
);
}
}
}
});
},
//筛选
getList
:
function
(
pageNo
)
{
// checkLogin();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
user
.
pageNo
=
pageNo
;
var
params
=
{
'pageNo'
:
user
.
pageNo
,
'pageSize'
:
user
.
pageSize
,
'agent_id'
:
user_info_obj
.
id
};
params
.
content
=
$
(
"#follow_content"
).
val
();
params
.
user_id
=
$
(
"#customer_name_id"
).
val
();
//区域
params
.
agent_id
=
user
.
agent_id_phone
;
//跟进人 下拉式搜索
params
.
site_id
=
$
(
'.user_city_choose_site_list'
).
val
();
localStorage
.
setItem
(
'key_words_liu'
,
params
.
content
);
if
(
$
(
'#user_city_choose'
).
val
()
==
310100
){
//城市
// params.city = '上海市';
}
if
(
$
(
'#user_city_choose'
).
val
()
==
330100
){
// params.city = '杭州市';
}
if
(
user
.
isTaday
){
var
myDate
=
new
Date
();
var
y
=
myDate
.
getFullYear
();
var
m
=
myDate
.
getMonth
()
+
1
;
var
d
=
myDate
.
getDate
();
var
day_end
=
y
+
'-'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'-'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
params
.
start_date
=
day_end
;
params
.
end_date
=
day_end
;
}
else
{
params
.
start_date
=
$
(
'#start_date'
).
val
();
params
.
end_date
=
$
(
'#end_date'
).
val
();
var
time_
=
getTimeStamp
(
getBeforeDate
(
1
));
if
(
getTimeStamp
(
params
.
end_date
)
>
time_
){
alert
(
'选择的时间不能大于等于今天!!!'
);
return
;
}
};
if
(
!
params
.
start_date
||
!
params
.
end_date
){
console
.
log
(
params
.
start_date
);
alert
(
'请您选择跟进时间!'
);
return
;
};
//开始时间
var
start_
=
params
.
start_date
+
" 00:00:00"
;
date_start
=
new
Date
(
Date
.
parse
(
start_
.
replace
(
/-/g
,
"/"
)));
var
start_time
=
date_start
.
getTime
();
//结束时间
var
end_
=
params
.
end_date
+
" 00:00:00"
;
date_end
=
new
Date
(
Date
.
parse
(
end_
.
replace
(
/-/g
,
"/"
)));
var
end_time
=
date_end
.
getTime
();
//时间差
var
cha_time
=
end_time
-
start_time
;
if
(
cha_time
>
777600000
*
3
){
alert
(
"跟进时间搜索控制在30天以内"
);
return
;
}
//客户跟进列表 搜索时 防重复提交
if
(
!
user
.
isAjaxSaving
){
user
.
isAjaxSaving
=
true
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/RemarkFollowList'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{
$
(
'#main_loading_pic'
).
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
temp
=
document
.
getElementById
(
'remark_follow_office'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
data
.
list
));
$
(
'[href="#modal-record"]'
).
each
(
function
(
i
,
v
){
$
(
v
).
attr
(
'data-index'
,
i
);
});
localStorage
.
setItem
(
'pc_user_current_list'
,
JSON
.
stringify
(
data
.
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
data
.
total
,
pageNo
,
user
.
pageSize
,
user
.
getList
);
$
(
'.hide-total-info-liu'
).
hide
();
if
(
data
.
data
.
data
.
list
.
length
<
15
){
$
(
'.next'
).
hide
();
}
else
{
$
(
'.next'
).
show
();
}
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'网络慢,请稍后重试!!!'
);
},
complete
:
function
(){
user
.
isAjaxSaving
=
false
;
//请求结束,再改为初始状态
$
(
'#main_loading_pic'
).
hide
();
}
});
}
//防重复
},
//获取站点 标签 (编辑)
getSiteTagsEdit
:
function
()
{
$
(
'.shangpu_tags_area_edit '
).
html
(
''
);
$
(
'.shangpu_tags_area_detail'
).
html
(
''
);
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getSiteList'
,
data
:
{},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
var
_htmlTemp
=
''
;
$
.
each
(
_data
.
data
.
list
,
function
(
i
,
item
)
{
_htmlTemp
+=
'<label class="checkbox-inline"><input type="checkbox" class="roomTagEdit" id="" value="{0}" data-id="{1}" name="shangpu_tags[]">{0}</label>'
.
stringFormatObj
({
'0'
:
item
.
city
,
'1'
:
item
.
id
});
});
$
(
'.shangpu_tags_area_detail'
).
hide
();
var
_htmlTempDetail
=
''
;
$
.
each
(
_data
.
data
.
list
,
function
(
i
,
item
)
{
_htmlTempDetail
+=
'<label class="checkbox-inline"><input type="checkbox" class="roomTagDetail" id="" value="{0}" data-id="{1}" name="shangpu_tags[]">{0}</label>'
.
stringFormatObj
({
'0'
:
item
.
city
,
'1'
:
item
.
id
});
});
$
(
'.shangpu_tags_area_edit'
).
append
(
_htmlTemp
);
$
(
'.shangpu_tags_area_detail'
).
append
(
_htmlTempDetail
);
user
.
Caozuo
();
}
else
{
alert
(
_data
[
'msg'
]);
}
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
},
//城市 区域 筛选
getCityAreaList
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/regions'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'parent_code'
:
id
,
"pageSize"
:
1000
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
}
});
},
add_user
:
function
()
{
var
params
=
{};
params
.
id
=
0
;
params
.
user_name
=
$
(
"#add_user_form input[name='user_name']"
).
val
();
params
.
user_phone
=
$
(
"#add_user_form input[name='user_phone']"
).
val
();
params
.
agents_id
=
user
.
agent_id
;
//客方
params
.
sex
=
$
(
"#user_sex"
).
val
();
params
.
price_demand
=
$
(
"#price_type2"
).
val
();
params
.
area_demand
=
$
(
"#area_type2"
).
val
();
params
.
industry_type
=
$
(
"#industry_type2"
).
val
();
params
.
vip
=
$
(
"#user_vip"
).
val
();
params
.
type
=
'add'
;
if
(
$
(
'#user_city_add'
).
val
()
==
310100
){
params
.
city
=
'上海市'
;
}
if
(
$
(
'#user_city_add'
).
val
()
==
330100
){
params
.
city
=
'杭州市'
;
}
params
.
disc
=
$
(
"#user_area_add"
).
val
();
params
.
source
=
$
(
"#user_label_add"
).
val
();
if
(
params
.
user_name
==
''
)
{
alert
(
'姓名不能为空'
);
$
(
"input[name='user_name']"
).
focus
();
return
;
}
if
(
params
.
sex
==
''
)
{
alert
(
'请选择性别'
);
$
(
"#user_sex"
).
focus
();
return
;
}
if
(
params
.
user_phone
==
''
)
{
alert
(
'手机号不能为空'
);
$
(
"input[name='user_phone']"
).
focus
();
return
;
}
if
(
params
.
pwd
==
''
)
{
alert
(
'密码不能为空'
);
$
(
"input[name='pwd']"
).
focus
();
return
;
}
if
(
params
.
user_phone
.
length
!=
11
)
{
alert
(
'手机号错误'
);
$
(
"input[name='user_phone']"
).
focus
();
return
;
}
if
(
params
.
industry_type
==
''
)
{
alert
(
'请选择业态'
);
$
(
"#industry_type2"
).
focus
();
return
;
}
if
(
params
.
price_demand
==
''
)
{
alert
(
'请选择价格'
);
$
(
"#price_type2"
).
focus
();
return
;
}
if
(
params
.
area_demand
==
''
)
{
alert
(
'请选择面积'
);
$
(
"#area_type2"
).
focus
();
return
;
}
if
(
$
(
'#set_father_id3'
).
val
()
==
''
)
{
alert
(
'请选择客方'
);
$
(
"#set_father_id3"
).
focus
();
return
;
}
if
(
params
.
vip
==
''
)
{
alert
(
'请选择vip'
);
$
(
"#user_vip"
).
focus
();
return
;
}
$
.
ajax
({
url
:
'/index/pcEditClient'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功'
);
user
.
getList
(
1
);
$
(
"#modal_add_user"
).
modal
(
'hide'
);
// document.getElementById("add_user_form").reset();
}
else
{
alert
(
data
.
msg
);
}
}
});
},
delete_user
:
function
(
params
)
{
$
.
ajax
({
url
:
'/index/del_user'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
$
(
"#modal-delete"
).
modal
(
'hide'
);
if
(
data
.
code
==
"101"
)
{
alert
(
data
.
msg
);
return
false
;
}
user
.
getList
(
user
.
pageNo
);
}
});
},
getUserFavorites
:
function
(
params
)
{
//客户 收藏夹
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
url
:
'/broker/getLastOrNextUserIDPhoneFollowPu'
,
//上一页 下一页 调用接口
type
:
'GET'
,
async
:
true
,
data
:
{
"id"
:
user
.
remark_id
,
"agent_id"
:
user_info_obj
.
id
,
"type"
:
user_type
,
"AuthToken"
:
user_info_obj
.
AuthToken
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
)
{
user
.
user_id
=
data
.
data
.
user_id
;
user
.
Caozuo
();
user
.
pageNoUser
=
1
;
$
(
'#caozuo_table2'
).
html
(
''
);
user
.
getGenjincon
();
}
else
{
alert
(
data
.
msg
)
}
}
});
},
//初始化 城市
initializationCityFunction
:
function
(
params
)
{
$
.
ajax
({
url
:
'/index/getCurrentCity'
,
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
data
.
city
==
'上海市'
){
$
(
"#user_city_choose"
).
val
(
'310100'
);
};
if
(
data
.
data
.
city
==
'杭州市'
){
$
(
"#user_city_choose"
).
val
(
'330100'
);
};
var
city_id
=
$
(
"#user_city_choose"
).
val
();
if
(
1
)
{
user
.
getCityAreaList
(
city_id
,
function
(
_data
)
{
var
_str
=
'<option value="">区域</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
fullName
+
'">'
+
item
.
fullName
+
'</option>'
;
});
$
(
"#user_area_choose"
).
html
(
_str
);
});
}
else
{};
user
.
getList
(
1
);
}
});
},
//设置 城市
setUpCityFunction
:
function
(
city
)
{
if
(
city
==
310100
){
city
=
'上海市'
;
};
if
(
city
==
330100
){
city
=
'杭州市'
;
};
$
.
ajax
({
url
:
'/index/settingCity'
,
type
:
'POST'
,
async
:
true
,
data
:
{
'city'
:
city
},
dataType
:
'json'
,
success
:
function
(
data
)
{
}
});
},
getInforNew
:
function
()
{
console
.
log
(
user_type
);
},
getInfor
:
function
(
params
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
params
=
{};
params
.
remark_name
=
$
.
trim
(
$
(
"#remark_name"
).
val
());
params
.
remark_phone
=
$
.
trim
(
$
(
"#remark_phone"
).
val
());
params
.
remark_store_id
=
$
.
trim
(
$
(
"#guest_stores"
).
val
());
params
.
remark_district_id
=
$
.
trim
(
$
(
"#district_id"
).
val
());
params
.
content
=
$
.
trim
(
$
(
"#follow_content"
).
val
());
if
(
$
(
'#user_city_choose'
).
val
()
==
310100
){
//城市
params
.
city
=
'上海市'
;
}
if
(
$
(
'#user_city_choose'
).
val
()
==
330100
){
params
.
city
=
'杭州市'
;
}
params
.
start_date
=
$
(
'#start_date'
).
val
();
params
.
end_date
=
$
(
'#end_date'
).
val
();
params
.
user_id
=
$
.
trim
(
$
(
"#customer_name_id"
).
val
());
//客户编号
params
.
disc
=
$
.
trim
(
$
(
"#user_area_choose"
).
val
());
//区域
// params.user_id = user.user_id;
params
.
id
=
user
.
remark_id
;
params
.
agent_id
=
user_info_obj
.
id
;
params
.
type
=
user_type
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
$
.
ajax
({
url
:
'/broker/getLastOrNextUserIDPhoneFollowPu'
,
//上一页 下一页 调用接口
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
||
data
.
code
==
201
)
{
user
.
remark_id
=
data
.
data
.
id
;
user
.
user_id
=
data
.
data
.
user_id
;
if
(
data
.
code
==
200
){
//点击 上一条 下一条 有数据的时候 则显示客户的信息 没有则显示 接口返回的异常信息
$
(
'.call-user-five'
).
html
(
''
);
$
(
'.detail-modal-body-sec-2'
).
show
();
user
.
Caozuo
();
user
.
getUserLogNew
();
//点击上一条 下一条初始化页面
user
.
pageNoUser
=
1
;
$
(
'#caozuo_table2'
).
html
(
''
);
user
.
getGenjincon
();
}
else
{
$
(
'.call-user-five'
).
html
(
data
.
msg
);
$
(
'.detail-modal-body-sec-2'
).
hide
();
}
// if(data.data.user_id==data.data.max_user_id){
// user.user_id=data.data.max_user_id-1;
// };
// if(data.data.user_id==data.data.min_user_id){
// user.user_id=data.data.min_user_id+1;
// }
}
else
{
alert
(
data
.
msg
)
}
}
});
},
getGenjinLabel
:
function
()
{
$
(
'#genj_text'
).
val
(
''
);
$
.
ajax
({
url
:
'/index/getUserLabel'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"user_id"
:
user
.
user_id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
// $("input[type='radio'][name='user_status'][value=" + data.data + "]").prop("checked", "checked");
$
(
'#caozuo_table2'
).
html
(
''
);
user
.
pageNoUser
=
1
;
user
.
getGenjincon
();
}
}
});
},
getGenjincon
:
function
()
{
//获取客户动态
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
url
:
'/index/followUpLog'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"AuthToken"
:
user_info_obj
.
AuthToken
,
"user_id"
:
user
.
user_id
,
"page_no"
:
user
.
pageNoUser
,
"page_size"
:
30
,
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
if
(
data
.
data
.
length
==
30
){
$
(
'.is-show-more-followlog'
).
show
();
}
else
{
$
(
'.is-show-more-followlog'
).
hide
();
};
//客户动态 即跟进
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
if
(
item
.
user_status
*
1
){
var
user_status
=
'【已租】'
}
else
{
var
user_status
=
'【求租】'
};
if
(
item
.
type
*
1
){
var
follow_status
=
'跟进:'
}
else
{
var
follow_status
=
'电话跟进:'
};
caozuo_table
+=
'<tr><td class="text-left follow-up-home" width="70%">'
+
follow_status
+
dealPunctuation
(
item
.
content
)
+
user_status
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
});
if
(
caozuo_table
){
$
(
"#caozuo_table2"
).
append
(
caozuo_table
);
}
else
{
$
(
"#caozuo_table2"
).
html
(
'暂无跟进信息'
);
}
//滚动条 回到顶部
// $('.follow-up-modal-list-area').scrollTop(0);
}
else
{
if
(
user
.
pageNoUser
==
1
){
$
(
"#caozuo_table2"
).
html
(
'暂无跟进信息'
);
$
(
'.is-show-more-followlog'
).
hide
();
};
if
(
user
.
moreUser
){
alert
(
'暂无跟进信息!!!'
);
user
.
moreUser
=
0
;
};
}
},
});
},
//调用带看记录
getUserLog
:
function
(
type
)
{
$
.
ajax
({
url
:
'/index/userLog'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"user_id"
:
user
.
user_id
,
"type"
:
type
},
dataType
:
'json'
,
success
:
function
(
data
)
{
var
caozuo_table
=
''
;
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
//带看动态
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
if
(
item
.
step_name
==
'report'
){
caozuo_table
+=
'<tr><td class="text-left follow-up-home" width="70%">'
+
dealPunctuation
(
item
.
step
)
+
'到场时间:'
+
item
.
predict_see_time
+
'备注:'
+
item
.
intro
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
}
else
if
(
item
.
step_name
==
'follow_up_log'
){
caozuo_table
+=
'<tr><td class="text-left follow-up-home" width="70%">报备'
+
item
.
step
+
';属于哪类客户:'
+
item
.
user_type
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
}
else
{
caozuo_table
+=
'<tr><td class="text-left follow-up-home" width="70%">'
+
dealPunctuation
(
item
.
step
)
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
}
});
$
(
"#caozuo_table_log"
).
html
(
caozuo_table
);
//滚动条 回到顶部
$
(
'.follow-up-modal-list-area'
).
scrollTop
(
0
);
}
else
{
$
(
"#caozuo_table_log"
).
html
(
'暂无带看信息'
);
}
}
});
},
getUserLogNew
:
function
(
type
)
{
$
.
ajax
({
url
:
'/index/userLog'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"user_id"
:
user
.
user_id
,
"type"
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
var
caozuo_table
=
''
;
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
//带看动态
var
caozuo_table
=
""
;
if
(
data
.
data
.
step_name
==
'report'
){
caozuo_table
+=
'<tr><td class="text-left follow-up-home" width="70%">'
+
data
.
data
.
step
+
'到场时间:'
+
data
.
data
.
predict_see_time
+
'备注:'
+
data
.
data
.
intro
+
'</td><td>'
+
data
.
data
.
name
+
'</td><td>'
+
data
.
data
.
create_time
+
'</td></tr>'
;
}
else
{
caozuo_table
+=
'<tr><td class="text-left follow-up-home" width="70%">'
+
data
.
data
.
step
+
'</td><td>'
+
data
.
data
.
name
+
'</td><td>'
+
data
.
data
.
create_time
+
'</td></tr>'
;
}
$
(
".user-log-detail"
).
html
(
caozuo_table
);
}
else
{
$
(
".user-log-detail"
).
html
(
'暂无带看信息'
);
}
}
});
},
//调用部门 和 门店的接口
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>'
;
});
$
(
"#district_id"
).
append
(
str
);
$
(
"#district_id2"
).
append
(
str
);
fn
&&
fn
();
}
}
});
},
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
);
}
}
});
},
//跟进人 姓名搜索
search_phone_liu
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#partical_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
){
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
};
if
(
item
.
status
==
4
){
var
status
=
'-黑名单'
;
}
user_ul
+=
'<li class="addphoneliu" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
$
(
".user-ul-liu"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphoneliu
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
()
+
''
;
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#partical_name"
).
val
(
user_ht_str
);
$
(
".user-ul-liu"
).
html
(
''
);
user
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
};
return
user
;
});
function
delete_user
(
obj
)
{
$
(
"#delete_id"
).
val
(
$
(
obj
).
attr
(
"data-id"
));
}
function
edit
(
obj
)
{
var
params
=
{}
params
.
id
=
$
(
obj
).
attr
(
"data-id"
)
$
.
ajax
({
url
:
'/index/usersList'
,
type
:
'get'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
$
(
"#edit_user_form input[name='phone']"
).
val
(
data
.
data
.
list
[
0
].
user_phone
);
$
(
"#edit_user_form input[name='password']"
).
val
(
data
.
data
.
list
[
0
].
user_pswd
);
$
(
"#invite_name"
).
html
(
data
.
data
.
list
[
0
].
realname
);
$
(
"#invite_phone"
).
html
(
data
.
data
.
list
[
0
].
phone
);
}
});
$
(
"#edit_id"
).
val
(
$
(
obj
).
attr
(
"data-id"
));
}
\ No newline at end of file
public/resource/template/get_collection_office_template_tpl.html
0 → 100644
View file @
cede883a
<script
id=
"get_collection_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
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
-
[
%=
it
[
item
][
'report_agent_phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'pay_type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_number'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success add-pic"
href
=
"#modal-addPic"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
father
-
id
=
'[%= it[item]["father_id"] %]'
>
收款图片
<
/a
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
a
class
=
"btn1 btn-success submit_edit2"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
fee
=
'[%= it[item]["transaction_fee"]%]'
data
-
money
=
'[%= it[item]["real_money"] %]'
data
-
time
=
'[%= it[item]["income_time"] %]'
>
实付金额
<
/a
>
[
%
if
(
check_auth
(
'index/updatePayLog'
))
{
%
]
<
a
class
=
"btn1 btn-danger collection-del"
href
=
"#modal-delete"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
删除
<
/a
>
[
%
}
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"13"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
public/resource/template/my_collection_office_template_tpl.html
0 → 100644
View file @
cede883a
<script
id=
"my_collection_office_list"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"shop_type"
]
==
0
)
{
%
]
商场
[
%
}
else
{
%
]
街铺
[
%
}
%
]
<
/td
>
<
td
>
[
%=
hideStr
(
it
[
item
][
'disc'
])
%
]
<
/td
>
<
td
>
[
%=
hideStr
(
it
[
item
][
'title'
])
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
'rent_type'
]
==
1
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
%
]
元
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
2
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
%
]
%
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
3
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
%
]
元
/
天
/
㎡
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
4
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
%
]
元
/
年
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"shop_type"
]
==
0
)
{
%
]
[
%=
it
[
item
][
"shop_area_start"
]
+
'-'
+
it
[
item
][
"shop_area_end"
]
%
]
㎡
[
%
}
else
{
%
]
[
%=
it
[
item
][
"shop_area_start"
]
%
]
㎡
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'industry_type'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 [%= (it[item]['is_look'] && it[item]['auth_edit_house'] == 0)?'btn-warning':'btn-success' %]"
href
=
"#modal_shop_detail"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
toggle
=
"modal"
>
跟进
/
查看
<
/a
>
<
a
class
=
"btn1 btn-default is_show_shoucang"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
取消收藏
<
/a
>
<
/td
>
<!--<
td
>
<
a
class
=
"btn1 btn-info"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["report_id"] %]'
>
查看商铺
<
/a
>
<
a
class
=
"btn1 btn-info"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["report_id"] %]'
>
商铺跟进
<
/a
>
<
/td>--
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--<td>[% if(it[item]["label_name"] != null) { %]
[%= it[item]["label_name"] %]
[% } %]
</td>-->
public/resource/template/office_receivables_template_tpl.html
0 → 100644
View file @
cede883a
<script
id=
"office_receivables_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
(
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>
public/resource/template/remark_follow_office_template_tpl.html
0 → 100644
View file @
cede883a
<script
id=
"remark_follow_office"
type=
"text/template"
>
[
%
var
sw
=
function
(
s
){
switch
(
Number
(
s
)){
case
2
:
return
"btn-info"
;
case
1
:
return
"btn-default"
}};
%
]
[
%
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
%
]
[
%
var
delName
=
function
(
s
){
delete
s
.
user_name
;
delete
s
.
user_nick
;
return
s
};
%
]
[
%
if
(
it
[
0
])
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
'user_name'
])
{
%
]
[
%=
it
[
item
][
'user_name'
]
%
]
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_outstrip_twenty_four_hours"
]
==
0
)
{
%
]
<
span
class
=
"btn1 btn-warning btn-xs"
>
保护期内
<
/span
>
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_outpace_call_num"
]
==
1
)
{
%
]
<
span
class
=
"btn1 btn-warning btn-xs"
>
达到上限
<
/span
>
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_id'
]
%
]
<
/td
>
<
td
width
=
"46%"
class
=
"text-left follow-up-home"
>
[
%
if
(
it
[
item
][
'label_name'
])
{
%
]
【
[
%=
it
[
item
][
'label_name'
]
%
]
】
[
%
}
%
]
[
%
if
(
it
[
item
][
'user_status'
]
==
0
)
{
%
]
【求租】
[
%
}
else
if
(
it
[
item
][
'user_status'
]
==
1
)
{
%
]
【已租】
[
%
}
else
{
%
]
【无效】
[
%
}
%
]
[
%=
labelKeyWords
(
dealPunctuation
(
it
[
item
][
'content'
]))
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'admin'
]
%
]
<
/td
>
<
td
width
=
"16%"
>
[
%
if
((
it
[
item
][
'agent_id'
]
*
1
==
0
)
||
(
check_auth
(
'index/useraction_search'
)))
{
%
]
<
a
class
=
"btn1 caozuo genj_ure caozuo-add-color [%= getLoaclRemarkId(it[item]['id']) %]"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["user_id"] %]'
data
-
agentId
=
'[%= it[item]["agent_id"] %]'
data
-
name
=
'[%= it[item]["user_name"] %]'
data
-
baohu
=
'[%= it[item]["is_outstrip_twenty_four_hours"] %]'
data
-
remark
=
'[%= it[item]["id"] %]'
data
-
vip
=
'[%= it[item]["vip"] %]'
>
详情
/
跟进
<
/a><p style="display: none;">
[
%= JSON.stringify(delName(it[item
]))
%]</
p
>&
nbsp
;
[
%
if
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
]
||
check_auth
(
'index/pcEditClient'
))
{
%
]
<
a
class
=
"btn1 btn-success caozuo cao-zuo-record"
href
=
"#modal-record-edit"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["user_id"] %]'
>
客户编辑
<
/a> 
;
[
%
}
%
]
[
%
}
%
]
<!--<
a
class
=
"btn1 btn-danger "
href
=
"#modal-delete"
data
-
toggle
=
"modal"
onclick
=
"delete_user(this)"
data
-
id
=
'[%= it[item]["id"] %]'
>-->
<!--
删除
-->
<!--<
/a>--
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
\ No newline at end of file
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