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
e5aaae72
Commit
e5aaae72
authored
Aug 14, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
价值观考核
parent
d4b616a1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1141 additions
and
6 deletions
+1141
-6
methodOfAnalysis.html
application/index/view/work_learning/methodOfAnalysis.html
+144
-2
qualityAssessment.html
application/index/view/work_learning/qualityAssessment.html
+144
-2
valueAssessment.html
application/index/view/work_learning/valueAssessment.html
+144
-2
methodOfAnalysis.js
public/resource/js/methodOfAnalysis.js
+216
-0
qualityAssessment.js
public/resource/js/qualityAssessment.js
+216
-0
valueAssessment.js
public/resource/js/valueAssessment.js
+216
-0
work_learn_template_tpl.html
public/resource/template/work_learn_template_tpl.html
+61
-0
No files found.
application/index/view/work_learning/methodOfAnalysis.html
View file @
e5aaae72
{layout name="global/frame_two_tpl" /}
方法分析
\ No newline at end of file
<input
type=
"hidden"
class=
"page-load"
id=
"methodOfAnalysis"
/>
<style>
.modal-body
{
overflow-y
:
auto
;
padding-bottom
:
60px
;
}
.modal-body-img
{
height
:
666px
;
overflow-y
:
auto
;
padding-bottom
:
60px
;
text-align
:
center
;
}
.modal-body-img
img
{
width
:
466px
;
}
.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
;
}
.del-font
{
font-size
:
16px
;
font-weight
:
600
;
}
/*经纪人 姓名 下拉式列表*/
.user-ul
{
height
:
auto
;
float
:
left
;
position
:
absolute
;
width
:
230px
;
background
:
#fff
;
border
:
1px
solid
#ccc
;
border-top
:
0
;
left
:
3px
;
}
.user-ul
li
{
list-style
:
none
;
line-height
:
30px
;
margin-left
:
-20px
;
}
.left-phone
{
width
:
236px
;
float
:
left
;
margin-top
:
7px
;
margin-left
:
10px
;
position
:
relative
;
}
</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=
"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"
>
<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=
"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"
>
上传人
</th>
<th
class=
"text-center"
>
业绩图片
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"report_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-report-img"
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-img"
>
<img
src=
""
alt=
""
class=
"review-images2"
/>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
application/index/view/work_learning/qualityAssessment.html
View file @
e5aaae72
{layout name="global/frame_two_tpl" /}
素质测评
\ No newline at end of file
<input
type=
"hidden"
class=
"page-load"
id=
"qualityAssessment"
/>
<style>
.modal-body
{
overflow-y
:
auto
;
padding-bottom
:
60px
;
}
.modal-body-img
{
height
:
666px
;
overflow-y
:
auto
;
padding-bottom
:
60px
;
text-align
:
center
;
}
.modal-body-img
img
{
width
:
466px
;
}
.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
;
}
.del-font
{
font-size
:
16px
;
font-weight
:
600
;
}
/*经纪人 姓名 下拉式列表*/
.user-ul
{
height
:
auto
;
float
:
left
;
position
:
absolute
;
width
:
230px
;
background
:
#fff
;
border
:
1px
solid
#ccc
;
border-top
:
0
;
left
:
3px
;
}
.user-ul
li
{
list-style
:
none
;
line-height
:
30px
;
margin-left
:
-20px
;
}
.left-phone
{
width
:
236px
;
float
:
left
;
margin-top
:
7px
;
margin-left
:
10px
;
position
:
relative
;
}
</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=
"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"
>
<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=
"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"
>
上传人
</th>
<th
class=
"text-center"
>
业绩图片
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"report_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-report-img"
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-img"
>
<img
src=
""
alt=
""
class=
"review-images2"
/>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
application/index/view/work_learning/valueAssessment.html
View file @
e5aaae72
{layout name="global/frame_two_tpl" /}
价值观考核
\ No newline at end of file
<input
type=
"hidden"
class=
"page-load"
id=
"valueAssessment"
/>
<style>
.modal-body
{
overflow-y
:
auto
;
padding-bottom
:
60px
;
}
.modal-body-img
{
height
:
666px
;
overflow-y
:
auto
;
padding-bottom
:
60px
;
text-align
:
center
;
}
.modal-body-img
img
{
width
:
466px
;
}
.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
;
}
.del-font
{
font-size
:
16px
;
font-weight
:
600
;
}
/*经纪人 姓名 下拉式列表*/
.user-ul
{
height
:
auto
;
float
:
left
;
position
:
absolute
;
width
:
230px
;
background
:
#fff
;
border
:
1px
solid
#ccc
;
border-top
:
0
;
left
:
3px
;
}
.user-ul
li
{
list-style
:
none
;
line-height
:
30px
;
margin-left
:
-20px
;
}
.left-phone
{
width
:
236px
;
float
:
left
;
margin-top
:
7px
;
margin-left
:
10px
;
position
:
relative
;
}
</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=
"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"
>
<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=
"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"
>
上传人
</th>
<th
class=
"text-center"
>
业绩图片
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"report_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-report-img"
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-img"
>
<img
src=
""
alt=
""
class=
"review-images2"
/>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
public/resource/js/methodOfAnalysis.js
0 → 100644
View file @
e5aaae72
define
([
'doT'
,
'text!temp/work_learn_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
report
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
15
,
/*每页显示多少条*/
id
:
''
,
type
:
''
,
ajaxObj
:
''
,
report_id
:
''
,
agent_id_phone
:
''
,
//经纪人 姓名搜索
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
report
.
getList
(
1
);
report
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//二级联动
report
.
getDistrict
(
function
(){
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
(){
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
){
report
.
getDistrictStoreList
(
_id
,
function
(
_data
){
var
_str
=
'<option value="">选择门店</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_this
.
next
().
html
(
_str
);
});
}
else
{
};
});
});
//业绩图片 显示
$
(
document
).
delegate
(
".review-images"
,
"click"
,
function
()
{
//提交
$
(
'.review-images2'
).
attr
(
'src'
,
$
(
this
).
attr
(
"data-img"
));
});
//经纪人 姓名下拉式
$
(
document
).
on
(
"input"
,
"#partical_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#partical_name"
).
val
()
==
''
)
{
report
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
report
.
search_phone
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
report
.
addphone
(
this
);
});
//删除
$
(
"#confirm_delete"
).
click
(
function
(){
var
params
=
{};
params
.
id
=
report
.
report_id
;
if
(
!
params
.
id
||
params
.
id
==
null
){
alert
(
"要删除的id不能为空"
);
return
false
;
}
report
.
delete_report
(
params
);
});
$
(
document
).
delegate
(
".report-del"
,
"click"
,
function
()
{
report
.
report_id
=
$
(
this
).
attr
(
"data-id"
);
});
$
(
"#search"
).
click
(
function
()
{
//搜索
report
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#guest_stores'
).
html
(
''
);
report
.
agent_id_phone
=
''
;
});
},
//经纪人 姓名搜索
search_phone
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"district_id"
:
$
(
"#district_id"
).
val
(),
//部门
"store_id"
:
$
(
"#guest_stores"
).
val
(),
//门店
"phone"
:
$
(
"#partical_name"
).
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
);
}
}
});
},
//将li里的值 赋给input(经纪人 姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
();
$
(
"#partical_name"
).
val
(
user_ht
);
$
(
".user-ul"
).
html
(
''
);
report
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
getList
:
function
(
pageNo
)
{
report
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
start_date
=
$
(
'#create_time_start'
).
val
();
params
.
end_date
=
$
(
'#create_time_end'
).
val
();
params
.
district_id
=
$
(
'#district_id'
).
val
();
params
.
store_id
=
$
(
'#guest_stores'
).
val
();
params
.
type
=
1
;
//日报
params
.
agent_id
=
report
.
agent_id_phone
;
//经纪人 姓名
params
.
pageNo
=
report
.
pageNo
;
params
.
pageSize
=
report
.
pageSize
;
params
.
level
=
$
(
'#shop_type'
).
val
();
//日报类型
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getPerformanceReportList'
,
//日报
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
(
'methodOfAnalysis_list_tpl'
).
innerHTML
);
$
(
"#report_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
report
.
pageSize
,
report
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
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
);
}
}
});
},
delete_report
:
function
(
params
)
{
//删除 周报
$
.
ajax
({
url
:
'/index/delPerformanceReport'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
){
alert
(
'删除成功'
);
}
$
(
"#modal-delete"
).
modal
(
'hide'
);
if
(
data
.
code
==
"101"
)
{
alert
(
data
.
msg
);
return
false
;
}
report
.
getList
(
report
.
pageNo
);
}
});
},
};
return
report
;
});
\ No newline at end of file
public/resource/js/qualityAssessment.js
0 → 100644
View file @
e5aaae72
define
([
'doT'
,
'text!temp/work_learn_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
report
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
15
,
/*每页显示多少条*/
id
:
''
,
type
:
''
,
ajaxObj
:
''
,
report_id
:
''
,
agent_id_phone
:
''
,
//经纪人 姓名搜索
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
report
.
getList
(
1
);
report
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//二级联动
report
.
getDistrict
(
function
(){
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
(){
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
){
report
.
getDistrictStoreList
(
_id
,
function
(
_data
){
var
_str
=
'<option value="">选择门店</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_this
.
next
().
html
(
_str
);
});
}
else
{
};
});
});
//业绩图片 显示
$
(
document
).
delegate
(
".review-images"
,
"click"
,
function
()
{
//提交
$
(
'.review-images2'
).
attr
(
'src'
,
$
(
this
).
attr
(
"data-img"
));
});
//经纪人 姓名下拉式
$
(
document
).
on
(
"input"
,
"#partical_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#partical_name"
).
val
()
==
''
)
{
report
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
report
.
search_phone
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
report
.
addphone
(
this
);
});
//删除
$
(
"#confirm_delete"
).
click
(
function
(){
var
params
=
{};
params
.
id
=
report
.
report_id
;
if
(
!
params
.
id
||
params
.
id
==
null
){
alert
(
"要删除的id不能为空"
);
return
false
;
}
report
.
delete_report
(
params
);
});
$
(
document
).
delegate
(
".report-del"
,
"click"
,
function
()
{
report
.
report_id
=
$
(
this
).
attr
(
"data-id"
);
});
$
(
"#search"
).
click
(
function
()
{
//搜索
report
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#guest_stores'
).
html
(
''
);
report
.
agent_id_phone
=
''
;
});
},
//经纪人 姓名搜索
search_phone
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"district_id"
:
$
(
"#district_id"
).
val
(),
//部门
"store_id"
:
$
(
"#guest_stores"
).
val
(),
//门店
"phone"
:
$
(
"#partical_name"
).
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
);
}
}
});
},
//将li里的值 赋给input(经纪人 姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
();
$
(
"#partical_name"
).
val
(
user_ht
);
$
(
".user-ul"
).
html
(
''
);
report
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
getList
:
function
(
pageNo
)
{
report
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
start_date
=
$
(
'#create_time_start'
).
val
();
params
.
end_date
=
$
(
'#create_time_end'
).
val
();
params
.
district_id
=
$
(
'#district_id'
).
val
();
params
.
store_id
=
$
(
'#guest_stores'
).
val
();
params
.
type
=
1
;
//日报
params
.
agent_id
=
report
.
agent_id_phone
;
//经纪人 姓名
params
.
pageNo
=
report
.
pageNo
;
params
.
pageSize
=
report
.
pageSize
;
params
.
level
=
$
(
'#shop_type'
).
val
();
//日报类型
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getPerformanceReportList'
,
//日报
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
(
'qualityAssessment_list_tpl'
).
innerHTML
);
$
(
"#report_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
report
.
pageSize
,
report
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
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
);
}
}
});
},
delete_report
:
function
(
params
)
{
//删除 周报
$
.
ajax
({
url
:
'/index/delPerformanceReport'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
){
alert
(
'删除成功'
);
}
$
(
"#modal-delete"
).
modal
(
'hide'
);
if
(
data
.
code
==
"101"
)
{
alert
(
data
.
msg
);
return
false
;
}
report
.
getList
(
report
.
pageNo
);
}
});
},
};
return
report
;
});
\ No newline at end of file
public/resource/js/valueAssessment.js
0 → 100644
View file @
e5aaae72
define
([
'doT'
,
'text!temp/work_learn_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
report
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
15
,
/*每页显示多少条*/
id
:
''
,
type
:
''
,
ajaxObj
:
''
,
report_id
:
''
,
agent_id_phone
:
''
,
//经纪人 姓名搜索
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
report
.
getList
(
1
);
report
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//二级联动
report
.
getDistrict
(
function
(){
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
(){
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
){
report
.
getDistrictStoreList
(
_id
,
function
(
_data
){
var
_str
=
'<option value="">选择门店</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_this
.
next
().
html
(
_str
);
});
}
else
{
};
});
});
//业绩图片 显示
$
(
document
).
delegate
(
".review-images"
,
"click"
,
function
()
{
//提交
$
(
'.review-images2'
).
attr
(
'src'
,
$
(
this
).
attr
(
"data-img"
));
});
//经纪人 姓名下拉式
$
(
document
).
on
(
"input"
,
"#partical_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#partical_name"
).
val
()
==
''
)
{
report
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
report
.
search_phone
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
report
.
addphone
(
this
);
});
//删除
$
(
"#confirm_delete"
).
click
(
function
(){
var
params
=
{};
params
.
id
=
report
.
report_id
;
if
(
!
params
.
id
||
params
.
id
==
null
){
alert
(
"要删除的id不能为空"
);
return
false
;
}
report
.
delete_report
(
params
);
});
$
(
document
).
delegate
(
".report-del"
,
"click"
,
function
()
{
report
.
report_id
=
$
(
this
).
attr
(
"data-id"
);
});
$
(
"#search"
).
click
(
function
()
{
//搜索
report
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#guest_stores'
).
html
(
''
);
report
.
agent_id_phone
=
''
;
});
},
//经纪人 姓名搜索
search_phone
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"district_id"
:
$
(
"#district_id"
).
val
(),
//部门
"store_id"
:
$
(
"#guest_stores"
).
val
(),
//门店
"phone"
:
$
(
"#partical_name"
).
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
);
}
}
});
},
//将li里的值 赋给input(经纪人 姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
();
$
(
"#partical_name"
).
val
(
user_ht
);
$
(
".user-ul"
).
html
(
''
);
report
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
getList
:
function
(
pageNo
)
{
report
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
start_date
=
$
(
'#create_time_start'
).
val
();
params
.
end_date
=
$
(
'#create_time_end'
).
val
();
params
.
district_id
=
$
(
'#district_id'
).
val
();
params
.
store_id
=
$
(
'#guest_stores'
).
val
();
params
.
type
=
1
;
//日报
params
.
agent_id
=
report
.
agent_id_phone
;
//经纪人 姓名
params
.
pageNo
=
report
.
pageNo
;
params
.
pageSize
=
report
.
pageSize
;
params
.
level
=
$
(
'#shop_type'
).
val
();
//日报类型
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getPerformanceReportList'
,
//日报
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
(
'valueAssessment_list_tpl'
).
innerHTML
);
$
(
"#report_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
report
.
pageSize
,
report
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
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
);
}
}
});
},
delete_report
:
function
(
params
)
{
//删除 周报
$
.
ajax
({
url
:
'/index/delPerformanceReport'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
){
alert
(
'删除成功'
);
}
$
(
"#modal-delete"
).
modal
(
'hide'
);
if
(
data
.
code
==
"101"
)
{
alert
(
data
.
msg
);
return
false
;
}
report
.
getList
(
report
.
pageNo
);
}
});
},
};
return
report
;
});
\ No newline at end of file
public/resource/template/work_learn_template_tpl.html
0 → 100644
View file @
e5aaae72
<!--方法分析-->
<script
id=
"methodOfAnalysis_list_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
>
[
%
if
(
it
[
item
][
"name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
<
a
class
=
"review-images"
href
=
"#modal-report-img"
data
-
toggle
=
"modal"
data
-
img
=
'[%= it[item]["img_file_path"] %]'
>
查看
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--素质测评-->
<script
id=
"qualityAssessment_list_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
>
[
%
if
(
it
[
item
][
"name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
<
a
class
=
"review-images"
href
=
"#modal-report-img"
data
-
toggle
=
"modal"
data
-
img
=
'[%= it[item]["img_file_path"] %]'
>
查看
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--价值观考核-->
<script
id=
"valueAssessment_list_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
>
[
%
if
(
it
[
item
][
"name"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"name"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
<
a
class
=
"review-images"
href
=
"#modal-report-img"
data
-
toggle
=
"modal"
data
-
img
=
'[%= it[item]["img_file_path"] %]'
>
查看
<
/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