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
51279e6c
Commit
51279e6c
authored
Jan 11, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进列表优化
parent
53696c78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
31 deletions
+12
-31
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+12
-31
No files found.
public/resource/js/RemarkFollowIndex.js
View file @
51279e6c
...
...
@@ -47,6 +47,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
agent_id_phone
:
''
,
pageNoUser
:
1
,
//客户详情 客户动态初始化分页
moreUser
:
0
,
//标识点击加载更多 还有没有数据
isTaday
:
1
,
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
...
...
@@ -264,6 +265,9 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
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
()
{
...
...
@@ -1542,35 +1546,21 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
// checkLogin();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
user
.
pageNo
=
pageNo
;
var
_startDateObj
=
$
(
'#start_date'
),
_endDateObj
=
$
(
'#end_date'
),
_customerNameObj
=
$
(
'#customer_name'
),
_customerPhoneObj
=
$
(
'#customer_phone'
),
_followContentObj
=
$
(
'#follow_content'
);
var
params
=
{
'pageNo'
:
user
.
pageNo
,
'pageSize'
:
user
.
pageSize
,
'agent_id'
:
user_info_obj
.
id
};
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
=
$
(
"#follow_content"
).
val
();
params
.
user_id
=
$
(
"#customer_name_id"
).
val
();
//区域
params
.
agent_id
=
user
.
agent_id_phone
;
//跟进人 下拉式搜索
if
(
params
.
remark_name
.
length
==
1
){
alert
(
'跟进人姓名的搜索必须2字及2字以上'
);
return
;
}
if
(
$
(
'#user_city_choose'
).
val
()
==
310100
){
//城市
// params.city = '上海市';
}
if
(
$
(
'#user_city_choose'
).
val
()
==
330100
){
// params.city = '杭州市';
}
params
.
user_id
=
$
.
trim
(
$
(
"#customer_name_id"
).
val
());
//区域
// params.disc = $.trim($("#user_area_choose").val());//区域
if
(
user
.
isTaday
){
var
myDate
=
new
Date
();
var
y
=
myDate
.
getFullYear
();
...
...
@@ -1580,30 +1570,21 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
params
.
start_date
=
day_end
;
params
.
end_date
=
day_end
;
}
else
{
params
.
start_date
=
_startDateObj
.
val
();
params
.
end_date
=
_endDateObj
.
val
();
}
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
;
}
};
params
.
customer
=
$
.
trim
(
_customerNameObj
.
val
());
params
.
phone
=
$
.
trim
(
_customerPhoneObj
.
val
());
params
.
content
=
$
.
trim
(
_followContentObj
.
val
());
if
(
!
params
.
start_date
||
!
params
.
end_date
){
console
.
log
(
params
.
start_date
);
alert
(
'请您选择跟进时间!'
);
return
;
};
$
.
trim
(
_customerNameObj
.
val
())
!=
''
&&
(
params
.
customer
=
$
.
trim
(
_customerNameObj
.
val
()));
$
.
trim
(
_customerPhoneObj
.
val
())
!=
''
&&
(
params
.
phone
=
$
.
trim
(
_customerPhoneObj
.
val
()));
$
.
trim
(
_followContentObj
.
val
())
!=
''
&&
(
params
.
content
=
$
.
trim
(
_followContentObj
.
val
()));
if
(
!
$
(
'#start_date'
).
val
()
||
!
$
(
'#end_date'
).
val
()){
alert
(
'请您选择跟进时间!'
);
return
;
};
//开始时间
var
start_
=
params
.
start_date
+
" 00:00:00"
;
date_start
=
new
Date
(
Date
.
parse
(
start_
.
replace
(
/-/g
,
"/"
)));
...
...
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