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
7f5cca2c
Commit
7f5cca2c
authored
Dec 17, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
70b783b0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
31 deletions
+103
-31
daily_list.html
application/index/view/finance/daily_list.html
+27
-8
financial_daily_list.js
public/resource/js/financial_daily_list.js
+73
-20
financial_daily_list_template_tpl.html
.../resource/template/financial_daily_list_template_tpl.html
+3
-3
No files found.
application/index/view/finance/daily_list.html
View file @
7f5cca2c
...
@@ -27,6 +27,21 @@
...
@@ -27,6 +27,21 @@
height
:
760px
;
height
:
760px
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
}
}
.user-ul
{
height
:
auto
;
float
:
left
;
position
:
relative
;
left
:
-40px
;
}
.user-ul
li
{
list-style
:
none
;
line-height
:
30px
;
}
.left-phone
{
float
:
left
;
margin-top
:
10px
;
margin-left
:
10px
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -44,9 +59,9 @@
...
@@ -44,9 +59,9 @@
<thead>
<thead>
<tr>
<tr>
<td
colspan=
"14"
class=
"maintable-top-sub-tr"
>
<td
colspan=
"14"
class=
"maintable-top-sub-tr"
>
<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"
>
审核中
</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>
</td>
</td>
</tr>
</tr>
<!--三级审核的搜索功能-->
<!--三级审核的搜索功能-->
...
@@ -58,19 +73,23 @@
...
@@ -58,19 +73,23 @@
<span
class=
"fore-span margin-left-10"
>
至
</span>
<span
class=
"fore-span margin-left-10"
>
至
</span>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_end_time"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_end_time"
name=
"end_date"
type=
"date"
>
<span
class=
"fore-span margin-left-10"
>
财务日报日期:
</span>
<span
class=
"fore-span margin-left-10"
>
财务日报日期:
</span>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
maintable_
create_time"
name=
"start_date"
type=
"date"
>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time"
name=
"start_date"
type=
"date"
>
<span
class=
"fore-span margin-left-10"
>
至
</span>
<span
class=
"fore-span margin-left-10"
>
至
</span>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
maintable_
end_time"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_time"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
agent_phone
"
placeholder=
"财务日报ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
financial_id
"
placeholder=
"财务日报ID"
type=
"text"
value=
""
>
<select
name=
"district_id"
class=
"form-control btn4"
>
<select
name=
"district_id"
class=
"form-control btn4"
>
<option
value=
""
>
提交人所在部门
</option>
<option
value=
""
>
提交人所在部门
</option>
</select>
</select>
<select
name=
"store_id"
class=
"form-control btn4"
>
<select
name=
"store_id"
class=
"form-control btn4"
>
<option
value=
""
>
提交人所在门店
</option>
<option
value=
""
>
提交人所在门店
</option>
</select>
</select>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"agent_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<div
class=
"left-phone"
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"agent_phone"
placeholder=
"提交人手机号"
type=
"text"
value=
""
>
<input
class=
"form-control"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"partical_name"
placeholder=
"分佣方姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"bargain_id"
placeholder=
"成交报告ID"
type=
"text"
value=
""
>
<ul
class=
"user-ul"
></ul>
</div>
<!--<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="agent_name" placeholder="提交人姓名" type="text" value="">-->
<!--<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="agent_phone" placeholder="提交人手机号" type="text" value="">-->
<!--<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="bargain_id" placeholder="成交报告ID" type="text" value="">-->
<div
style=
"float: left;margin-top: 10px;"
>
<div
style=
"float: left;margin-top: 10px;"
>
<span
class=
"btn btn-info btn3 search"
id=
"maintable_search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 search"
id=
"maintable_search"
>
搜索
</span>
<span
class=
"btn btn-info btn3"
id=
"maintable_reset"
>
重置
</span>
<span
class=
"btn btn-info btn3"
id=
"maintable_reset"
>
重置
</span>
...
...
public/resource/js/financial_daily_list.js
View file @
7f5cca2c
...
@@ -8,6 +8,7 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
...
@@ -8,6 +8,7 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
detailTabIndex
:
0
,
detailTabIndex
:
0
,
bargain_id
:
''
,
bargain_id
:
''
,
order_id
:
0
,
//订单id
order_id
:
0
,
//订单id
agent_id_phone
:
''
,
//分佣方 姓名搜索
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -32,6 +33,19 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
...
@@ -32,6 +33,19 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
e
.
stopPropagation
();
e
.
stopPropagation
();
bargain
.
getList
(
1
);
//一级审核搜索
bargain
.
getList
(
1
);
//一级审核搜索
});
});
//分佣方 姓名下拉式
$
(
document
).
on
(
"input"
,
"#partical_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#partical_name"
).
val
()
==
''
)
{
bargain
.
agent_id_phone
=
''
;
$
(
".user-ul"
).
html
(
''
);
}
else
{
bargain
.
search_phone
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
bargain
.
addphone
(
this
);
});
//搜索的重置
//搜索的重置
$
(
"#maintable_reset"
).
click
(
function
()
{
$
(
"#maintable_reset"
).
click
(
function
()
{
document
.
getElementById
(
"maintable_form_search"
).
reset
();
document
.
getElementById
(
"maintable_form_search"
).
reset
();
...
@@ -49,7 +63,7 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
...
@@ -49,7 +63,7 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
if
(
_id
&&
_id
!=
'0'
)
{
if
(
_id
&&
_id
!=
'0'
)
{
bargain
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
bargain
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
// var _str = '';
// var _str = '';
var
_str
=
'<option value="
0
">全部</option>'
;
var
_str
=
'<option value="">全部</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
});
...
@@ -62,18 +76,14 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
...
@@ -62,18 +76,14 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
});
});
},
},
//获取一级审核,二级审核,三级审核不同的ajax请求url
//获取一级审核,二级审核,三级审核不同的ajax请求url
switch
Url
:
function
(){
switch
Status
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
case
0
:
return
'/index/reportListAll/10'
;
return
1
;
case
1
:
case
1
:
return
'/index/reportListOne/1'
;
return
2
;
case
2
:
case
2
:
return
'/index/reportListTwo/2'
;
return
-
1
;
case
3
:
return
'/index/reportListThree/3'
;
case
4
:
return
'/index/reportListStatement/4'
;
default
:
default
:
return
''
;
return
''
;
}
}
...
@@ -84,24 +94,20 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
...
@@ -84,24 +94,20 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
var
params
=
{
var
params
=
{
'pageNo'
:
pageNo
,
'pageNo'
:
pageNo
,
'pageSize'
:
bargain
.
pageSize
,
'pageSize'
:
bargain
.
pageSize
,
'shop_type'
:
$
(
'#maintable_shop_type'
).
val
(),
'start_time'
:
$
.
trim
(
$
(
'#maintable_create_time'
).
val
()),
'create_time'
:
$
.
trim
(
$
(
'#maintable_create_time'
).
val
()),
'end_time'
:
$
.
trim
(
$
(
'#maintable_end_time'
).
val
()),
'end_time'
:
$
.
trim
(
$
(
'#maintable_end_time'
).
val
()),
'internal_address'
:
$
.
trim
(
$
(
'#maintable_internal_address'
).
val
()),
'daily_start_time'
:
$
.
trim
(
$
(
'#create_time'
).
val
()),
'user_phone'
:
$
.
trim
(
$
(
'#maintable_user_phone'
).
val
()),
'daily_end_time'
:
$
.
trim
(
$
(
'#end_time'
).
val
()),
'house_number'
:
$
.
trim
(
$
(
'#maintable_shop_num'
).
val
()),
'district_id'
:
$
(
"select[name='district_id'] option:selected"
).
val
(),
'district_id'
:
$
(
"select[name='district_id'] option:selected"
).
val
(),
'store_id'
:
$
(
"select[name='store_id'] option:selected"
).
val
(),
'store_id'
:
$
(
"select[name='store_id'] option:selected"
).
val
(),
'agent_name'
:
$
.
trim
(
$
(
'#agent_name'
).
val
()),
'agent_id'
:
bargain
.
agent_id_phone
,
'agent_phone'
:
$
.
trim
(
$
(
'#agent_phone'
).
val
()),
'id'
:
$
(
'#financial_id'
).
val
(),
'bargain_id'
:
$
.
trim
(
$
(
'#bargain_id'
).
val
()),
'status'
:
bargain
.
switchStatus
(),
'partial_id'
:
bargain
.
agent_id_phone
,
'user_id'
:
$
(
'#maintable_user_ID'
).
val
(),
};
};
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
bargain
.
switchUrl
()
,
url
:
'/index/dailyList'
,
data
:
params
,
data
:
params
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -173,6 +179,53 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
...
@@ -173,6 +179,53 @@ define(['doT', 'text!temp/financial_daily_list_template_tpl.html', 'css!style/ho
}
}
}
}
});
});
},
//分佣方 姓名搜索
search_phone
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#partical_name"
).
val
(),
'all'
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
if
(
item
.
status
==
0
||
item
.
status
==
4
){
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
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
()
+
''
;
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
(
''
);
bargain
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
},
};
};
return
bargain
;
return
bargain
;
...
...
public/resource/template/financial_daily_list_template_tpl.html
View file @
7f5cca2c
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
[
%
if
(
it
.
length
)
{
%
]
[
%
if
(
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
tr
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'daily_date'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-info"
href
=
"/index/dailyDetails"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
审核
<
/a
>
<
a
class
=
"btn1 btn-info"
href
=
"/index/dailyDetails"
data
-
recordid
=
"[%= it[item]['id'] %]"
data
-
toggle
=
"modal"
>
审核
<
/a
>
...
...
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