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
9e3bc72a
Commit
9e3bc72a
authored
Nov 02, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交报告 分佣方搜索 修改
parent
4e7dd112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
6 deletions
+37
-6
reportList.js
public/resource/js/reportList.js
+37
-6
No files found.
public/resource/js/reportList.js
View file @
9e3bc72a
...
@@ -448,7 +448,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -448,7 +448,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
_doc
.
on
(
'click'
,
'#addmaid_input_ywy+ul>li'
,
function
()
{
_doc
.
on
(
'click'
,
'#addmaid_input_ywy+ul>li'
,
function
()
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
_id
=
_this
.
attr
(
'data-id'
);
var
_id
=
_this
.
attr
(
'data-id'
);
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_id
);
var
_str
=
_this
.
html
()
+
''
;
_str
=
_str
.
substring
(
0
,
_str
.
length
-
3
);
_this
.
parent
().
prev
().
val
(
_str
).
attr
(
'data-id'
,
_id
);
bargain
.
getDepart
(
_id
,
function
(
obj
){
bargain
.
getDepart
(
_id
,
function
(
obj
){
$
(
'#addmaid_input_shop'
).
val
(
obj
.
district_name
+
'-'
+
obj
.
store_name
);
$
(
'#addmaid_input_shop'
).
val
(
obj
.
district_name
+
'-'
+
obj
.
store_name
);
});
});
...
@@ -482,10 +484,25 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -482,10 +484,25 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
if
(
data
[
'data'
].
length
>
0
)
{
if
(
data
[
'data'
].
length
>
0
)
{
var
_htmlTemp
=
''
;
var
_htmlTemp
=
''
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
_htmlTemp
+=
'<li data-id="{3}">{0}-{1}</li>'
.
stringFormatObj
({
var
_staus
=
''
;
if
(
item
.
status
==
0
){
_staus
=
' '
;
}
if
(
item
.
status
==
1
){
_staus
=
'-长假'
;
}
if
(
item
.
status
==
2
){
_staus
=
'-离职'
;
}
if
(
item
.
status
==
3
){
_staus
=
'-转勤'
;
}
_htmlTemp
+=
'<li data-id="{3}">{0}-{1}{6}</li>'
.
stringFormatObj
({
'0'
:
item
[
'name'
],
'0'
:
item
[
'name'
],
'1'
:
item
[
'phone'
],
'1'
:
item
[
'phone'
],
'3'
:
item
[
'id'
]
'3'
:
item
[
'id'
],
'6'
:
_staus
});
});
});
});
_this
.
next
().
show
().
html
(
_htmlTemp
);
_this
.
next
().
show
().
html
(
_htmlTemp
);
...
@@ -641,7 +658,19 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -641,7 +658,19 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
if
(
item
.
status
==
0
){
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
}
user_ul
+=
'<li class="addphone" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
});
$
(
".user-ul"
).
html
(
user_ul
);
$
(
".user-ul"
).
html
(
user_ul
);
...
@@ -654,8 +683,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -654,8 +683,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
},
},
//将li里的值 赋给input(分佣方姓名)
//将li里的值 赋给input(分佣方姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
();
var
user_ht
=
$
(
obj
).
html
()
+
''
;
$
(
"#partical_name"
).
val
(
user_ht
);
console
.
log
(
user_ht
.
length
);
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#partical_name"
).
val
(
user_ht_str
);
$
(
".user-ul"
).
html
(
''
);
$
(
".user-ul"
).
html
(
''
);
bargain
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
bargain
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
},
...
...
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