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
454782b9
Commit
454782b9
authored
Apr 19, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
49c6efe9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
742 additions
and
8 deletions
+742
-8
UserEntrusted.php
application/index/controller/UserEntrusted.php
+22
-0
getCollection.html
application/index/view/finance/getCollection.html
+6
-5
userEntrusted.html
application/index/view/report/userEntrusted.html
+552
-0
route.php
application/route.php
+1
-0
getCollection.js
public/resource/js/getCollection.js
+6
-3
userEntrusted.js
public/resource/js/userEntrusted.js
+131
-0
userEntrusted_list_template_tpl.html
...ic/resource/template/userEntrusted_list_template_tpl.html
+24
-0
No files found.
application/index/controller/UserEntrusted.php
0 → 100644
View file @
454782b9
<?php
namespace
app\index\controller
;
/**
* Created by PhpStorm.
* User: liu yin ping
* Date: 2018/3/13
* Time: 15:48
*/
use
app\index\extend\Basic
;
class
UserEntrusted
extends
Basic
{
public
function
userEntrustedList
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'report/userEntrusted'
);
}
}
}
application/index/view/finance/getCollection.html
View file @
454782b9
...
...
@@ -888,11 +888,12 @@
<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">
<option value="0">是</option>
<option value="1">否</option>
</select>-->
<!--<span id="running" class="col-xs-6 ld-Marheight"></span>-->
<select
class=
"form-control"
id=
"running"
>
<option
value=
"3"
>
请选择
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
</select>
<!--</div>-->
</div>
</div>
...
...
application/index/view/report/userEntrusted.html
0 → 100644
View file @
454782b9
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"userEntrusted"
/>
<style>
.modal-body
{
/*height: 600px;*/
overflow-y
:
auto
;
}
.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
;
}
.clear
{
clear
:
both
;
}
.modal-body-intention
{
width
:
900px
!important
;
}
.modal-body-intention
tr
{
height
:
36px
;
}
.modal-body-intention
input
,
.modal-body-intention
select
{
height
:
28px
;
border
:
1px
solid
#e0e0e0
;
outline-style
:
none
;
width
:
200px
;
}
.span-width-90
{
width
:
90px
;
display
:
inline-block
;
}
.tip-liu
{
font-size
:
15px
;
}
/*上传图片相关*/
.span-del2-du
,
.span-del-du
{
color
:
red
;
cursor
:
pointer
;
}
.modal-body-height
{
overflow-y
:
auto
;
height
:
432px
;
}
#container_body_img_area
>
div
{
float
:
left
;
width
:
172px
;
}
.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
>
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
;
}
#container_body_du
{
position
:
relative
;
overflow
:
hidden
;
}
#file_input_pic
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
80px
;
}
.result-du
{
text-align
:
center
;
width
:
150px
;
float
:
left
;
margin-right
:
10px
;
}
.result-du
img
{
width
:
150px
;
height
:
150px
;
}
/*上传图片相关*/
</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>
<!--同步app-->
<tr>
<td
colspan=
"14"
class=
"maintable-top-sub-tr"
>
<a
class=
"btn btn-info liudan_pic_btn"
id=
"our"
>
我的
</a>
<!--<a class="btn btn-default liudan_pic_btn" id="is_show_store">门店</a>
<a class="btn btn-default liudan_pic_btn" id="is_show_district">部门</a>-->
<a
class=
"btn btn-default liudan_pic_btn"
id=
"is_show_all"
>
全部
</a>
</td>
</tr>
<tr>
<td
colspan=
"10"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
提交时间:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date1"
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=
"create_time_end"
name=
"end_date1"
type=
"date"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_ID"
placeholder=
"客户ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"客户手机号"
type=
"text"
value=
""
>
<select
name=
""
id=
""
class=
"form-control btn2 ld-Marheight"
>
<option
value=
""
>
是否有客方
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
</select>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
</form>
</td>
</tr>
<tr>
<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>
<th
class=
"text-center"
>
计划经营
</th>
<th
class=
"text-center"
>
面积要求(m²)
</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"
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"
>
<iframe
class=
"iframe-time-line"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--提交成交 报告-->
<div
class=
"modal fade modal-iframe-750"
id=
"modal-report"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-report"
>
<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"
>
<iframe
class=
"iframe-submit-report"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--收意向金/保管金-->
<div
class=
"modal fade modal-iframe-750"
id=
"modal-intention"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-intention"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收意向金/保管金
</h4>
</div>
<div
class=
"modal-body"
>
<table
width=
"100%"
>
<tr>
<td>
<span
class=
"span-width-90"
>
入账金额:
</span>
<input
type=
"number"
placeholder=
"请输入"
class=
"intention-money"
>
元
</td>
<td>
<span
class=
"span-width-90"
>
收条编号:
</span>
<input
type=
"text"
placeholder=
"请输入"
class=
"intention-num"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
支付方式:
</span>
<select
class=
"intention-pay-type"
>
<option
value=
""
>
入账方式
</option>
<option
value=
"10"
>
施总支付宝
</option>
<option
value=
"11"
>
林老师支付宝
</option>
<option
value=
"12"
>
筠姐支付宝
</option>
<option
value=
"20"
>
施总微信
</option>
<option
value=
"21"
>
林老师微信
</option>
<option
value=
"22"
>
筠姐微信
</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=
"60"
>
其他
</option>
</select>
</td>
<td>
<span
class=
"span-width-90"
>
转账户名:
</span>
<input
type=
"text"
placeholder=
"请输入"
class=
"intention-name"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
入账类型:
</span>
<select
class=
"booked-type"
>
<option
value=
""
>
请选择
</option>
<option
value=
"10"
>
意向金
</option>
<option
value=
"30"
>
保管金
</option>
</select>
</td>
<td>
<span
class=
"span-width-90"
>
入账日期:
</span>
<!--<input type="date" placeholder="请输入" class="booked-date">-->
<input
class=
"input-width-m input-width"
type=
"text"
value=
""
id=
"booked-date"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})"
/>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
商铺号:
</span>
<input
type=
"text"
placeholder=
"请输入"
class=
"shop-num"
>
</td>
<td>
<span
class=
"span-width-90"
>
业态/品牌:
</span>
<input
type=
"text"
placeholder=
"请输入"
class=
"yetai"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
备注:
</span>
<input
type=
"text"
placeholder=
"请输入"
class=
"beizhu"
>
</td>
<td>
<span
class=
"span-width-90"
>
最后转定时间:
</span>
<!--<input type="date" placeholder="请输入" class="zhuanding">-->
<input
class=
"input-width-m input-width"
type=
"text"
value=
""
id=
"zhuanding"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})"
/>
</td>
</tr>
</table>
<div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body_du"
>
<label>
请选择一个图像文件:
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic"
/>
<div
id=
"container_body_img_area_du"
></div>
</div>
</div>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
>
</ul>
</div>
<div
class=
"tip-liu"
>
<p>
图片上传规则:
</p>
<p>
意向金:意向金收条,居间协议,客户身份证正反面,转账记录,佣金确认书,现场图(须两位业务员在场)(共6项)
</p>
<p>
转定:定金收条,意向金收条,居间协议,房东身份证正反面,佣金确认书,现场图(须两位业务员在场)(共6项)
</p>
<p>
签约:居间协议,佣金确认书,租赁合同(只传首页和尾页),转账记录,收据,现场图(须两位业务员在场)(共6项)
</p>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"save_intention"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--收佣金 成交报告列表-->
<div
class=
"modal fade modal-iframe-750"
id=
"modal-commission"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-report"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收佣金
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<th
class=
"text-center"
>
成交报告ID
</th>
<th
class=
"text-center"
>
提交时间
</th>
<th
class=
"text-center"
>
商铺地址
</th>
<th
class=
"text-center"
>
商铺号
</th>
<th
class=
"text-center"
>
成交价(元)
</th>
<th
class=
"text-center"
>
应收佣金(佣金)
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"report_list"
></tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--收佣金-->
<div
class=
"modal fade modal-iframe-750"
id=
"modal-commissionConfirm"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-intention"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收佣金
</h4>
</div>
<div
class=
"modal-body"
>
<table
width=
"100%"
>
<tr>
<td>
<span
class=
"span-width-90"
>
对应成交报告ID:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
入账金额:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td
colspan=
"2"
>
<span
class=
"span-width-90"
>
对应业务员:
</span>
<span
class=
"duiyingrole"
>
101周小雨(反签40%),203洛可可(独家50%),203王小兔(合作方20%)
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
支付方式:
</span>
<select>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</td>
<td>
<span
class=
"span-width-90"
>
转账户名:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
入账类型:
</span>
<select>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</td>
<td>
<span
class=
"span-width-90"
>
入账日期:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
是否开业:
</span>
<span>
是
</span>
</td>
<td>
<span
class=
"span-width-90"
>
是否分红:
</span>
<span>
是
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
之前已收佣:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
成交价:
</span>
<span>
66666元
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
中介费类型:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
应收金额:
</span>
<span>
66666元
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
多收金额:
</span>
<span>
66666元
</span>
</td>
<td>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
商铺号:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
业态/品牌:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
来源:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
状态:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
手续费:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
实付金额:
</span>
<input
type=
"number"
placeholder=
"请输入"
>
</td>
</tr>
<tr>
<td>
<span
class=
"span-width-90"
>
备注:
</span>
<input
type=
"text"
placeholder=
"请输入"
>
</td>
<td>
<span
class=
"span-width-90"
>
最后转定时间:
</span>
<input
type=
"text"
placeholder=
"请输入"
>
</td>
</tr>
</table>
<div>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body_du"
>
<label>
请选择一个图像文件:
</label>
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic"
/>
<div
id=
"container_body_img_area_du"
></div>
</div>
</div>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
>
</ul>
</div>
<div
class=
"tip-liu"
>
<p>
图片上传规则:
</p>
<p>
意向金:意向金收条,居间协议,客户身份证正反面,转账记录,佣金确认书,现场图(须两位业务员在场)(共6项)
</p>
<p>
转定:定金收条,意向金收条,居间协议,房东身份证正反面,佣金确认书,现场图(须两位业务员在场)(共6项)
</p>
<p>
签约:居间协议,佣金确认书,租赁合同(只传首页和尾页),转账记录,收据,现场图(须两位业务员在场)(共6项)
</p>
</div>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
application/route.php
View file @
454782b9
...
...
@@ -333,6 +333,7 @@ Route::group('index', [
'uploadImg'
=>
[
'index/UploadImg/uploadImg'
,
[
'method'
=>
'POST'
]
],
//全局图片上传
'uploadEditor'
=>
[
'index/UploadImg/uploadEditor'
,
[
'method'
=>
'POST'
]
],
//全局图片上传
'followUpList'
=>
[
'index/HouseFollowUp/followUpList'
,
[
'method'
=>
'GET'
]
],
//商铺跟进liu
'userEntrustedList'
=>
[
'index/UserEntrusted/userEntrustedList'
,
[
'method'
=>
'GET'
]
],
//客户委托找铺liu
'userModalList'
=>
[
'index/Member/userDetail'
,
[
'method'
=>
'GET'
]
],
//客户跟进模态框,公用
'inspectionRecordList'
=>
[
'index/InspectionRecord/inspectionRecordList'
,
[
'method'
=>
'GET'
]
],
//约带看记录liu
'realtimePerformance'
=>
[
'index/RealTimePerformance/realtimePerformanceList'
,
[
'method'
=>
'GET'
]
],
//实时业绩liu
...
...
public/resource/js/getCollection.js
View file @
454782b9
...
...
@@ -1186,9 +1186,12 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
if
(
$
(
'#payNo'
).
val
()){
//支付户名
params
.
transfer_name
=
$
(
'#payNo'
).
val
()
};
if
(
$
(
'#running'
).
val
()){
//是否开业 1是 0否
if
(
$
(
'#running'
).
val
()
==
3
){
//是否开业 1是 0否
alert
(
"请选择是否开业"
);
return
;
}
else
{
params
.
is_open
=
$
(
'#running'
).
val
()
};
};
if
(
$
(
'#fenhong'
).
val
()){
//分红
params
.
is_dividend
=
$
(
'#fenhong'
).
val
()
};
...
...
@@ -1526,7 +1529,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
(
"#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").text(data.is_open == 1 ? "是":"否");//收款页面 是否开业变成可编辑的
doc
.
find
(
"#fenhong"
).
val
(
data
.
is_dividend
);
doc
.
find
(
'#pinpai'
).
text
(
data
.
industry_type
);
var
source_id
=
data
.
source_id
;
...
...
public/resource/js/userEntrusted.js
0 → 100644
View file @
454782b9
define
([
'doT'
,
'text!temp/userEntrusted_list_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
record
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
record_id
:
''
,
type
:
''
,
valueCurrent
:
''
,
ajaxObj
:
''
,
stopstatus
:
true
,
boxphoto
:
''
,
mainTabIndex
:
0
,
url
:
'/broker/reportListForPc'
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
record
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
record
.
getList
(
1
);
_doc
.
on
(
'click'
,
'a[href="#modal-time"]'
,
function
(
e
)
{
//获取时间轴
record
.
record_id
=
$
(
this
).
attr
(
"data-id"
);
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
record
.
record_id
);
});
$
(
"#search"
).
click
(
function
()
{
//搜索
record
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#guest_stores'
).
html
(
''
);
});
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
record
.
mainTabIndex
=
_this
.
index
();
record
.
getList
(
1
);
});
if
(
!
check_auth
(
'index/inspectionRecordStore/1'
))
{
$
(
"#is_show_store"
).
hide
();
}
if
(
!
check_auth
(
'index/inspectionRecordDistrict/2'
))
{
$
(
"#is_show_district"
).
hide
();
}
if
(
!
check_auth
(
'index/inspectionRecordAll/3'
))
{
$
(
"#is_show_all"
).
hide
();
}
$
(
"#our"
).
click
(
function
()
{
record
.
url
=
"/broker/reportListForPc"
;
});
$
(
"#is_show_store"
).
click
(
function
()
{
record
.
url
=
"/index/inspectionRecordStore/1"
;
});
$
(
"#is_show_district"
).
click
(
function
()
{
record
.
url
=
"/index/inspectionRecordDistrict/2"
;
});
$
(
"#is_show_all"
).
click
(
function
()
{
record
.
url
=
"/index/inspectionRecordAll/3"
;
});
},
getList
:
function
(
pageNo
)
{
//获取约带看记录列表
record
.
pageNo
=
pageNo
;
//接收参数
var
params
=
{};
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
params
.
start_time
=
$
(
'#create_time_start'
).
val
();
params
.
end_time
=
$
(
'#create_time_end'
).
val
();
params
.
report_agent_name
=
$
(
'#user_name'
).
val
();
params
.
report_agent_phone
=
$
(
'#user_phone'
).
val
();
params
.
internal_title
=
$
(
'#house_title'
).
val
();
params
.
user_phone
=
$
(
'#report_agent_phone'
).
val
();
params
.
order_id
=
$
(
'#report_id'
).
val
();
//全部约带看记录 订单id搜索
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
params
.
type
=
1
;
params
.
agent_id
=
user_info_obj
.
id
;
//新加城市相关 筛选
params
.
city
=
$
(
'#city-choose'
).
val
();
params
.
shop_id
=
$
(
'#shop_id'
).
val
();
params
.
internal_address
=
$
(
'#shop_address'
).
val
();
params
.
user_id
=
$
(
'#user_id'
).
val
();
params
.
pageNo
=
record
.
pageNo
;
params
.
pageSize
=
record
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
record
.
url
,
//约带看记录 对接接口(2.9.6 有权限的人 才能看到)
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'userEntrusted_list_tpl'
).
innerHTML
);
if
(
data
.
data
.
list
)
{
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
}
else
{
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
));
}
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
record
.
pageSize
,
record
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
};
return
record
;
});
\ No newline at end of file
public/resource/template/userEntrusted_list_template_tpl.html
0 → 100644
View file @
454782b9
<script
id=
"userEntrusted_list_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
data
-
data
=
"[%= encodeURIComponent(JSON.stringify(it[item])) %]"
>
<!--
对接接口
-->
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
>
[
%=
hideTel
(
it
[
item
][
'user_phone'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'predict_see_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'predict_see_time'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
客户
/
跟进
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment