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
47765ed6
Commit
47765ed6
authored
Nov 19, 2018
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
57b8ed8d
6d82a647
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
81 additions
and
3 deletions
+81
-3
Broker.php
application/index/controller/Broker.php
+8
-0
professionalListCon.html
application/index/view/broker/professionalListCon.html
+6
-0
AAgents.php
application/model/AAgents.php
+2
-2
details_tl.css
public/app/css/details_tl.css
+1
-1
professionalList.js
public/resource/js/professionalList.js
+64
-0
No files found.
application/index/controller/Broker.php
View file @
47765ed6
...
...
@@ -789,6 +789,14 @@ class Broker extends Basic
$where
[
'site_id'
]
=
$this
->
params
[
'site_id'
];
}
if
(
!
empty
(
$this
->
params
[
'store_id'
]))
{
$where
[
'store_id'
]
=
$this
->
params
[
'store_id'
];
}
if
(
!
empty
(
$this
->
params
[
'district_id'
]))
{
$where
[
'district_id'
]
=
$this
->
params
[
'district_id'
];
}
try
{
$m_agent
=
new
AAgents
();
$m_store
=
new
AStore
();
...
...
application/index/view/broker/professionalListCon.html
View file @
47765ed6
...
...
@@ -118,6 +118,12 @@
<option
value=
"10001"
>
上海市
</option>
<option
value=
"10002"
>
杭州市
</option>
</select>
<select
class=
"form-control btn2 input ld-Marheight"
name=
""
id=
"district_id2"
>
<option
value=
""
>
部门
</option>
</select>
<select
class=
"form-control btn2 input ld-Marheight"
name=
""
id=
"guest_stores"
>
</select>
<div
class=
"left-phone"
>
<input
class=
"form-control margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_agent_name_text"
placeholder=
"经纪人姓名"
type=
"text"
value=
""
>
<!--<ul class="user-ul-agent"></ul>-->
...
...
application/model/AAgents.php
View file @
47765ed6
...
...
@@ -437,11 +437,11 @@ class AAgents extends BaseModel
$str_ids
=
" and a.id in (
$ids
)"
;
}
$sql
=
"select aa.id,aa.store_name,aa.name,aa.phone,aa.performance from
(select a.id,c.store_name,a.name,a.phone,0 as performance from a_agents a
(select a.id,c.store_name,a.name,a.phone,0
.00
as performance from a_agents a
left join a_store c on a.store_id=c.id
where a.position=
$position
and a.site_id=
$siteId
and a.status in (0,3)
$str_ids
)
as aa left join
(select a.id,c.store_name,a.name,a.phone,0 as performance from a_agents a
(select a.id,c.store_name,a.name,a.phone,0
.00
as performance from a_agents a
left join t_agent_total b on a.id=b.agent_id left join a_store c on a.store_id=c.id
where b.total_time BETWEEN '
$startTime
' and '
$endTime
'and a.status in (0,3)
$str_ids
GROUP BY b.agent_id )
as bb on aa.id = bb.id where bb.id is null"
;
...
...
public/app/css/details_tl.css
View file @
47765ed6
...
...
@@ -335,7 +335,7 @@
.supporting-facilities
{
width
:
100%
;
margin-bottom
:
2.3
rem
;
margin-bottom
:
3.5
rem
;
}
.supporting-facilities
>
li
{
...
...
public/resource/js/professionalList.js
View file @
47765ed6
...
...
@@ -21,6 +21,29 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//部门 门店
professional
.
getDistrict
(
function
()
{
_doc
.
on
(
'input'
,
'#district_id2'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
//新增 编辑
var
_objTemp
=
_this
.
parent
().
next
().
find
(
'select'
);
_objTemp
.
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
professional
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
// var _str = '';
var
_str
=
'<option value="">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_objTemp
.
html
(
_str
);
_this
.
next
().
html
(
_str
);
});
}
else
{};
});
});
_doc
.
on
(
"input"
,
"#user_agent_name"
,
function
()
{
//客户列表 客方员工姓名 下拉式搜索
if
(
$
(
"#user_agent_name"
).
val
()
==
''
)
{
professional
.
agent_id_choose
=
''
;
...
...
@@ -188,6 +211,9 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
'phone'
:
$
(
'#user_agent_phone'
).
val
(),
'position'
:
professional
.
mainTabIndex
,
'site_id'
:
$
(
'.p_city_choose_site'
).
val
(),
'district_id'
:
$
(
'#district_id2'
).
val
(),
'store_id'
:
$
(
'#guest_stores'
).
val
()
};
$
.
ajax
({
type
:
'GET'
,
...
...
@@ -224,6 +250,44 @@ define(['doT', 'text!temp/professional_list_template_tpl.html', 'text!temp/repor
};
}
});
},
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_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
);
}
}
});
},
search_phone_agent
:
function
()
{
//客户列表 客方员工 姓名的下拉式搜索
$
.
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