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
cf1e5ece
Commit
cf1e5ece
authored
Jun 14, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评价列表修改
parent
1e35aa7e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
169 additions
and
23 deletions
+169
-23
evaluation_list.html
application/index/view/evaluation/evaluation_list.html
+10
-2
marchin_list.html
application/index/view/marchin/marchin_list.html
+16
-8
evaluationList.js
public/resource/js/evaluationList.js
+62
-4
marchinList.js
public/resource/js/marchinList.js
+81
-9
No files found.
application/index/view/evaluation/evaluation_list.html
View file @
cf1e5ece
...
...
@@ -53,8 +53,16 @@
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time_start"
name=
"start_date2"
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_date2"
type=
"date"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"district_id"
placeholder=
"部门名称"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"store_id"
placeholder=
"门店名称"
type=
"text"
value=
""
>
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="district_id" placeholder="部门名称" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="store_id" 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_phone"
placeholder=
"手机号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_name"
placeholder=
"姓名"
type=
"text"
value=
""
>
<span
class=
"fore-span ld-Marheight"
>
进场平均分数:
</span><span
class=
"fore-span ld-Marheight"
id=
'average_score'
>
空
</span>
...
...
application/index/view/marchin/marchin_list.html
View file @
cf1e5ece
...
...
@@ -50,19 +50,27 @@
<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=
"district_id"
placeholder=
"报备人所属部门"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"district_id"
placeholder=
"所属门店"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"store_id"
placeholder=
"客户姓名"
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=
""
>
<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 btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_name"
placeholder=
"报备人姓名"
type=
"text"
value=
""
>
<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 btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="district_id" placeholder="报备人所属部门" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="district_id" 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 btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"客户手机号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"report_agent_name"
placeholder=
"报备人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"report_agent_phone"
placeholder=
"报备人手机号"
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=
""
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"shop_type"
>
<option
value=
"-1"
>
商铺类型
</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>
...
...
public/resource/js/evaluationList.js
View file @
cf1e5ece
...
...
@@ -20,11 +20,30 @@ define(['doT', 'text!temp/evaluation_list_template_tpl.html', 'css!style/home.cs
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//二级联动
follow
.
getDistrict
(
function
(){
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
(){
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
){
follow
.
getDistrictStoreList
(
_id
,
function
(
_data
){
var
_str
=
''
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_this
.
next
().
html
(
_str
);
});
}
else
{
};
});
});
$
(
"#search"
).
click
(
function
()
{
follow
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#guest_stores'
).
html
(
''
);
});
$
(
document
).
delegate
(
".review-images"
,
"click"
,
function
()
{
//提交
...
...
@@ -115,15 +134,15 @@ define(['doT', 'text!temp/evaluation_list_template_tpl.html', 'css!style/home.cs
params
.
create_time_end
=
$
(
'#end_date'
).
val
();
params
.
march_in_time_start
=
$
(
'#create_time_start'
).
val
();
params
.
march_in_time_end
=
$
(
'#create_time_end'
).
val
();
params
.
district_id
=
$
(
'#district_id'
).
val
();
params
.
store_id
=
$
(
'#
store_id'
).
val
()
;
params
.
district_id
=
$
(
'#district_id'
).
val
()
*
1
;
params
.
store_id
=
$
(
'#
guest_stores'
).
val
()
*
1
;
params
.
user_name
=
$
(
'#user_name'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/evaluationList'
,
//
拜访
列表
url
:
'/index/evaluationList'
,
//
评价
列表
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
...
...
@@ -154,7 +173,45 @@ define(['doT', 'text!temp/evaluation_list_template_tpl.html', 'css!style/home.cs
};
}
});
}
},
//调用部门 和 门店的接口
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
);
}
}
});
}
};
return
follow
;
});
\ No newline at end of file
public/resource/js/marchinList.js
View file @
cf1e5ece
...
...
@@ -20,6 +20,24 @@ define(['doT', 'text!temp/marchin_list_template_tpl.html', 'css!style/home.css',
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//二级联动
follow
.
getDistrict
(
function
(){
_doc
.
on
(
'input'
,
'#district_id, #district_id2'
,
function
(){
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
){
follow
.
getDistrictStoreList
(
_id
,
function
(
_data
){
var
_str
=
''
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_this
.
next
().
html
(
_str
);
});
}
else
{
};
});
});
_doc
.
on
(
'click'
,
'a[href="#modal-time"]'
,
function
(
e
){
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
e
.
preventDefault
();
...
...
@@ -32,6 +50,8 @@ define(['doT', 'text!temp/marchin_list_template_tpl.html', 'css!style/home.css',
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#guest_stores'
).
html
(
''
);
});
$
(
document
).
delegate
(
".review-images"
,
"click"
,
function
()
{
//提交
...
...
@@ -118,14 +138,27 @@ define(['doT', 'text!temp/marchin_list_template_tpl.html', 'css!style/home.css',
console
.
log
(
$
(
'#shop_name'
).
val
());
follow
.
pageNo
=
pageNo
;
var
params
=
{};
// params.start_time =$('#start_date').val();
// params.end_time =$('#end_date').val();
// params.create_time_start =$('#create_time_start').val();
// params.create_time_end =$('#create_time_start').val();
// params.district_id =$('#district_id').val();
// params.store_id =$('#store_id').val();
// params.user_name =$('#user_name').val();
// params.user_phone =$('#user_phone').val();
params
.
create_time_start
=
$
(
'#create_time_start'
).
val
();
params
.
create_time_end
=
$
(
'#create_time_end'
).
val
();
params
.
district_id
=
$
(
'#district_id'
).
val
()
*
1
;
params
.
store_id
=
$
(
'#guest_stores'
).
val
()
*
1
;
params
.
user_name
=
$
(
'#user_name'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
//跟进搜索
params
.
report_agent_phone
=
$
(
'#report_agent_phone'
).
val
();
params
.
report_agent_name
=
$
(
'#report_agent_name'
).
val
();
params
.
house_title
=
$
(
'#house_title'
).
val
();
params
.
shop_type
=
$
(
'#shop_type'
).
val
()
*
1
;
//跟进搜索
// create_time_start false string 进场时间开始时间
//create_time_end false string 进场时间结束时间
//district_id false int 部门(传ID)
//store_id false int 门店名称(传ID)
//user_name false sting 客户姓名
//user_phone false string 客户手机号
//report_agent_phone false string 报备人手机号
//report_agent_name false sting 报备人姓名
//house_title false sting 商铺名
//shop_type false int 商铺类型(0商场,1街铺)
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
$
.
ajax
({
...
...
@@ -163,7 +196,45 @@ define(['doT', 'text!temp/marchin_list_template_tpl.html', 'css!style/home.css',
};
}
});
}
},
//调用部门 和 门店的接口
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
);
}
}
});
}
};
return
follow
;
});
\ No newline at end of file
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