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
573f109d
Commit
573f109d
authored
Jan 24, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺跟进 联动
parent
c76a3e15
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
33 deletions
+40
-33
HouseFollowUp.html
application/index/view/houses/HouseFollowUp.html
+2
-13
users_list.html
application/index/view/member/users_list.html
+1
-0
houseFollowUp.js
public/resource/js/houseFollowUp.js
+37
-20
No files found.
application/index/view/houses/HouseFollowUp.html
View file @
573f109d
...
...
@@ -104,30 +104,19 @@
<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=
"houseID"
placeholder=
"商铺ID"
type=
"text"
value=
""
>
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="house_title" placeholder="商铺名称" type="text" value="">-->
<input
class=
"form-control btn4 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"follow_up_con"
placeholder=
"跟进内容"
type=
"text"
value=
""
>
<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>
<
!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_name" placeholder="跟进人姓名" type="text" value="">--
>
<
!--<input class="form-control btn4 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_phone" placeholder="跟进人姓名/电话" type="text" value="">--
>
<
select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"guest_stores_agent"
value=
""
>
<
/select
>
<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>
<!--<div class="clear"></div>-->
<!--<select class="form-control btn2 ld-Marheight" id="shop_city_id">
<option value="" selected="selected">城市筛选</option>
<option value="310100">上海市</option>
<option value="330100">杭州市</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>
...
...
application/index/view/member/users_list.html
View file @
573f109d
...
...
@@ -486,6 +486,7 @@
<option
value=
"0"
>
否
</option>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"user"
placeholder=
"客户姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"userNick"
placeholder=
"客户昵称"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight input"
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"invite_phone"
placeholder=
"邀请人(客户)手机号"
type=
"text"
value=
""
>
<select
class=
"form-control btn2 ld-Marheight"
name=
"login_status"
>
<option
value=
""
>
下载登录app
</option>
...
...
public/resource/js/houseFollowUp.js
View file @
573f109d
...
...
@@ -77,7 +77,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
house
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">
全部
</option>'
;
var
_str
=
'<option value="">
跟进人所在门店
</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
...
...
@@ -86,12 +86,29 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
}
else
{};
});
});
//门店 经纪人联动
_doc
.
on
(
'input'
,
'#guest_stores'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
house
.
getStoreAgentList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">选择跟进人</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</option>'
;
});
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
$
(
"#search"
).
click
(
function
()
{
//搜索
house
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#guest_stores'
).
html
(
''
);
$
(
'#guest_stores'
).
html
(
''
);
//重置门店
$
(
'#guest_stores_agent'
).
html
(
''
);
//重置经纪人
house
.
agent_id_phone
=
''
;
//重置经纪人id
});
//查看弹出框里的tab点击事件,查看商铺,商铺跟进
...
...
@@ -188,47 +205,30 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
},
getList
:
function
(
pageNo
)
{
//商铺跟进列表
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
.
AuthToken
);
house
.
pageNo
=
pageNo
;
var
params
=
{};
var
start_
=
$
(
'#create_time_start'
).
val
()
+
" 00:00:00"
;
date_start
=
new
Date
(
Date
.
parse
(
start_
.
replace
(
/-/g
,
"/"
)));
params
.
start_time
=
date_start
.
getTime
()
*
0.001
;
console
.
log
(
params
.
start_time
);
//结束时间
var
end_
=
$
(
'#create_time_end'
).
val
()
+
" 23:59:59"
;
date_end
=
new
Date
(
Date
.
parse
(
end_
.
replace
(
/-/g
,
"/"
)));
console
.
log
(
date_end
);
params
.
end_time
=
date_end
.
getTime
()
*
0.001
;
//时间转化为时间戳
//var date="2014-05-08 00:22:11";
// date = new Date(Date.parse(date.replace(/-/g, "/")));
// date = date.getTime();
params
.
district_id
=
$
(
'#district_id'
).
val
();
//部门
params
.
store_id
=
$
(
'#guest_stores'
).
val
();
//门店
params
.
house_id
=
$
(
'#houseID'
).
val
();
//商铺 id
// params.user_name = $('#user_name').val();
params
.
name_or_phone
=
$
(
'#user_phone'
).
val
();
params
.
agent_id
=
house
.
agent_id_phone
;
//下拉搜索 跟进人id
// params.report_agent_phone = $('#report_agent_phone').val();
params
.
agent_id
=
house
.
agent_id_phone
?
house
.
agent_id_phone
:
$
(
'#guest_stores_agent'
).
val
();
//下拉搜索 跟进人id
params
.
search_content
=
$
(
'#follow_up_con'
).
val
();
params
.
pageNo
=
house
.
pageNo
;
params
.
pageSize
=
house
.
pageSize
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
if
(
$
(
'#user_city_choose'
).
val
()
==
310100
){
// params.city = '上海市' ;
}
if
(
$
(
'#user_city_choose'
).
val
()
==
330100
){
// params.city = '杭州市' ;
}
params
.
disc
=
$
(
'#shop_area_id'
).
val
();
//区域筛选
if
(
!
(
params
.
end_time
&&
params
.
start_time
)){
alert
(
'请选择时间'
)
return
;
}
var
cha_time
=
params
.
end_time
*
1000
-
params
.
start_time
*
1000
;
if
(
cha_time
>
2764800000
){
alert
(
"跟进时间搜索控制在30天以内"
);
...
...
@@ -375,6 +375,23 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
}
});
},
//获取门店的 经纪人
getStoreAgentList
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'store_id'
:
id
,
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
}
});
},
//初始化 城市
initializationCityFunction
:
function
(
params
)
{
$
.
ajax
({
...
...
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