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
a7223339
Commit
a7223339
authored
Apr 19, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表修改
parent
5903982f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
174 additions
and
192 deletions
+174
-192
index.html
application/index/view/finance/index.html
+4
-121
users_list.html
application/index/view/member/users_list.html
+0
-0
reportList.js
public/resource/js/reportList.js
+161
-71
user.js
public/resource/js/user.js
+9
-0
No files found.
application/index/view/finance/index.html
View file @
a7223339
...
@@ -6,10 +6,8 @@
...
@@ -6,10 +6,8 @@
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<div
class=
"panel-heading breadcrumb"
>
<li><a
href=
"#"
>
成交报告
</a></li>
<li><a
href=
"#"
>
成交报告-未接单
</a></li>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
...
@@ -17,7 +15,7 @@
...
@@ -17,7 +15,7 @@
<tr>
<tr>
<td
colspan=
"9"
>
<td
colspan=
"9"
>
<a
class=
"btn btn-info liudan_pic_btn"
>
专员审核
</a>
<a
class=
"btn btn-info liudan_pic_btn"
>
专员审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
href=
"1"
>
经理审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
>
经理审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
>
总监审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
>
总监审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
>
出纳审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
>
出纳审核
</a>
...
@@ -50,7 +48,7 @@
...
@@ -50,7 +48,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 弹出框 -->
<div
class=
"modal fade"
id=
"modal-delete"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal-delete"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content"
>
...
@@ -77,119 +75,5 @@
...
@@ -77,119 +75,5 @@
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /.modal -->
</div>
</div>
<!--设置案场权限人,修改盘方-->
<div
class=
"modal fade"
id=
"modal-anch"
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"
id=
"myModalLabel"
>
设置案场权限人
</h4>
</div>
<div
class=
"modal-body"
>
<form
id=
"submit_agent"
>
<div
class=
"jian_class"
>
<input
name=
"ues_id"
placeholder=
"请输入"
type=
"tel"
value=
""
class=
"phone_jia"
>
<!--号码匹配名字-->
<ul
class=
"phone_list"
></ul>
</div>
<img
src=
"/resource/image/jia2@2x.png"
class=
"jia"
>
<input
type=
"hidden"
name=
"ues_id"
class=
"houseinfos_id"
>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary submit_follow"
data-dismiss=
"modal"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--操作记录-->
<div
class=
"modal fade"
id=
"modal-record"
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"
>
<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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"caozuo_table"
>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--是否独家-->
<div
class=
"modal fade"
id=
"modal-dujia"
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"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
是否独家:
</label>
<select
class=
"form-control btn6"
id=
"sel_dujia"
>
<option
value=
"null"
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
独家合同上传(小于10张):
</label>
<span
id=
"liudan_pic_pre"
></span>
<input
readonly=
"readonly"
type=
"hidden"
name=
"liudan_pic_pre"
class=
"form-control btn6"
placeholder=
"请选择图片"
>
<button
class=
"btn btn-default liudan_pic_btn"
id=
"liudan_pic_btn"
type=
"button"
>
选择图片
</button>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
独家代理有效期:
</label>
<input
class=
"form-control btn5 "
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date_dujia"
name=
"start_date_dujia"
type=
"date"
>
<span
class=
"fore-span"
>
-
</span>
<input
class=
"form-control btn5 "
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date_dujia"
name=
"end_date_dujia"
type=
"date"
>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
独家方:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"exclusive"
placeholder=
"请输入姓名或手机号码"
type=
"text"
value=
""
id=
"exclusive"
>
</div>
</form>
<!-- -->
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary submit_follow2"
data-dismiss=
"modal"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
application/index/view/member/users_list.html
View file @
a7223339
This diff is collapsed.
Click to expand it.
public/resource/js/reportList.js
View file @
a7223339
/**
* Created by 刘丹 on 2017/12/11.
*/
define
([
'axios'
,
'doT'
,
'text!temp/reportList_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
],
function
(
axios
,
doT
,
template
)
{
define
([
'doT'
,
'text!temp/reportList_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
console
.
log
(
axios
);
follow
=
{
reportList
=
{
pageNo
:
1
,
pageNo
:
1
,
/*第几页*/
/*第几页*/
pageSize
:
10
,
pageSize
:
10
,
...
@@ -16,83 +11,177 @@ define(['axios', 'doT', 'text!temp/reportList_template_tpl.html', 'css!style/hom
...
@@ -16,83 +11,177 @@ define(['axios', 'doT', 'text!temp/reportList_template_tpl.html', 'css!style/hom
valueCurrent
:
''
,
valueCurrent
:
''
,
ajaxObj
:
''
,
ajaxObj
:
''
,
stopstatus
:
true
,
stopstatus
:
true
,
ldHtml
:
$
(
'.phone_list'
),
boxphoto
:
''
,
boxphoto
:
''
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
"body"
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
reportList
.
getList
(
1
);
follow
.
getList
(
0
);
reportList
.
event
();
follow
.
event
();
},
},
event
:
function
()
{
event
:
function
()
{
$
(
"#search"
).
click
(
function
()
{
follow
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Caozuo
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Submit_follow
();
});
$
(
document
).
on
(
"input"
,
"#cus_fang"
,
function
()
{
//手机号搜索客方2
if
(
$
(
"#cus_fang"
).
val
()
==
''
){
$
(
".user-ul2"
).
html
(
''
);
}
else
{
follow
.
search_phone2
();
}
});
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
follow
.
addphone2
(
this
);
});
},
},
addphone2
:
function
(
obj
){
var
user_ht
=
$
(
obj
).
html
();
$
(
"#cus_fang"
).
val
(
user_ht
);
$
(
".user-ul2"
).
html
(
''
);
follow
.
agent_id
=
$
(
obj
).
attr
(
"data-id"
);
getList
:
function
(
pageNo
)
{
},
reportList
.
pageNo
=
pageNo
;
search_phone2
:
function
(){
//手机号
var
params
=
{};
$
.
ajax
({
params
.
pageNo
=
reportList
.
pageNo
;
url
:
'/index/select_by_phone'
,
params
.
pageSize
=
reportList
.
pageSize
;
type
:
'POST'
,
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
.
realname
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul2"
).
html
(
user_ul2
);
axios
({
}
else
{
method
:
'get'
,
alert
(
data
.
msg
);
url
:
'/index/reportListAttache/0'
,
}
responseType
:
'json'
,
params
:
params
,
headers
:
{
'Content-Type'
:
'application/json'
,
'X-Requested-With'
:
'XMLHttpRequest'
}
})
.
then
(
function
(
response
)
{
console
.
log
(
response
);
var
temp
=
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#reportList_list"
).
html
(
doTtmpl
(
response
.
data
.
data
.
list
));
/*分页代码*/
}
// PaginationX({
});
// 'dom': $("#pagediv")
},
// });
Caozuo
:
function
(){
//获取跟进详情的数据
$
(
"#pagediv"
).
pagination
({
$
.
ajax
({
length
:
response
.
data
.
data
.
total
,
'type'
:
'GET'
,
current
:
pageNo
,
'url'
:
'/index/reportListAttache/0'
,
every
:
reportList
.
pageSize
,
data
:
{
"user_id"
:
follow
.
house_id
},
onClick
:
function
(
el
)
{
dataType
:
"json"
,
console
.
log
(
el
);
success
:
function
(
data
){
reportList
.
getList
(
el
.
num
.
current
);
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
$
(
"#cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
"#cus_name"
).
val
(
data
.
data
.
user_info
.
user_nick
);
//姓名
$
(
"#sex"
).
val
(
data
.
data
.
user_info
.
sex
);
//性别
$
(
"#cus_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//电话
$
(
"#cus_date"
).
html
(
data
.
data
.
user_info
.
create_time
);
//上传时间
$
(
"#cus_fang"
).
val
(
data
.
data
.
user_info
.
agentinfo
);
//客方
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
][
'user_date'
],
function
(
i
,
item
)
{
console
.
log
(
item
)
caozuo_table
+=
'<tr><td>'
+
item
.
content
+
'</td><td>'
+
item
.
agentinfo
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
});
$
(
"#caozuo_table"
).
html
(
caozuo_table
);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
}
})
.
catch
(
function
(
error
)
{
console
.
log
(
error
);
});
});
},
// $.ajax({
Submit_follow
:
function
()
{
//提交
// url: '/index/reportListAttache/0', //获取列表
$
.
ajax
({
// type: 'GET',
'type'
:
'POST'
,
// async: true,
'url'
:
'/index/pcEditClient'
,
// data: params,
data
:
{
// dataType: 'json',
"id"
:
follow
.
house_id
,
// success: function(data) {
"user_nick"
:
$
(
"#cus_name"
).
val
(),
// var temp = document.getElementById('reportList_list_tpl').innerHTML;
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
// var doTtmpl = doT.template(temp);
"agent_id"
:
follow
.
agent_id
,
//客方
// $("#reportList_list").html(doTtmpl(data.data.list));
"sex"
:
$
(
"#sex"
).
val
()
//
},
// /*分页代码*/
dataType
:
"json"
,
// $("#pagediv").pagination({
success
:
function
(
data
)
{
// length: data.data.total,
if
(
data
.
code
==
200
)
{
// current: pageNo,
if
(
data
.
data
)
{
// every: reportList.pageSize,
}
// onClick: function(el) {
}
else
{
// reportList.getList(el.num.current);
}
// }
}
// });
});
// }
},
// });
getList
:
function
(
pageNo
)
{
}
console
.
log
(
$
(
'#customer_name'
).
val
());
follow
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
user_name
=
$
(
'#customer_name'
).
val
();
params
.
start_time
=
$
(
'#start_date'
).
val
();
params
.
end_time
=
$
(
'#end_date'
).
val
();
params
.
internal_title
=
$
(
'#shop_name'
).
val
();
params
.
user_phone
=
$
(
'#customer_phone'
).
val
();
params
.
id
=
$
(
'#shop_num'
).
val
()
*
1
;
params
.
store_name
=
$
(
'#store_name'
).
val
();
params
.
report_phone
=
$
(
'#applicant_phone'
).
val
();
params
.
report_name
=
$
(
'#applicant_name'
).
val
();
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/reportListAttache/0'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
console
.
log
(
data
,
666
)
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
$
(
"#pagediv"
).
pagination
({
length
:
data
.
data
.
total
,
current
:
pageNo
,
every
:
follow
.
pageSize
,
onClick
:
function
(
el
)
{
follow
.
getList
(
el
.
num
.
current
);
}
});
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
}
};
};
return
reportList
;
return
follow
;
});
});
\ No newline at end of file
public/resource/js/user.js
View file @
a7223339
...
@@ -53,10 +53,12 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -53,10 +53,12 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
$
(
"input[name = 'user_status']:checked"
).
attr
(
"checked"
,
true
);
$
(
"input[name = 'user_status']:checked"
).
attr
(
"checked"
,
true
);
user
.
getGenjinLabel
();
user
.
getGenjinLabel
();
});
});
// ===========================新增客户====================
$
(
document
).
delegate
(
"#add_user"
,
"click"
,
function
()
{
//新增客户
$
(
document
).
delegate
(
"#add_user"
,
"click"
,
function
()
{
//新增客户
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
add_user
();
user
.
add_user
();
});
});
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
()
{
user
.
edit_add
();
user
.
edit_add
();
});
});
...
@@ -202,6 +204,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -202,6 +204,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
}
}
});
});
},
},
// ====================新增客户页面==================
Caozuo
:
function
(){
//获取跟进详情的数据
Caozuo
:
function
(){
//获取跟进详情的数据
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
...
@@ -264,6 +267,12 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -264,6 +267,12 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
user
.
getList
(
el
.
num
.
current
);
user
.
getList
(
el
.
num
.
current
);
}
}
});
});
$
(
"#total_page"
).
html
(
data
.
data
.
total
);
console
.
log
(
data
.
data
.
total
);
console
.
log
(
user
.
pageSize
);
console
.
log
(
pageNo
);
}
}
});
});
},
},
...
...
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