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
b4fdadcc
Commit
b4fdadcc
authored
Jul 19, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用报销
parent
90089687
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
157 additions
and
47 deletions
+157
-47
costCheck.html
application/index/view/cost/costCheck.html
+52
-20
costCheck.js
public/resource/js/costCheck.js
+0
-0
public.js
public/resource/js/public.js
+62
-0
cost_check_template_tpl.html
public/resource/template/cost_check_template_tpl.html
+43
-27
No files found.
application/index/view/cost/costCheck.html
View file @
b4fdadcc
{layout name="global/frame_two_tpl" /}
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"costCheck"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"costCheck"
/>
<style>
<style>
.user-ul2
{
width
:
100%
;
height
:
auto
;
padding-bottom
:
15px
;
float
:
left
;
}
.user-ul2
li
{
list-style
:
none
;
line-height
:
30px
;
}
.user-ul
{
float
:
right
;
text-align
:
center
;
position
:
relative
;
overflow-y
:
scroll
;
height
:
100px
;
left
:
0px
;
width
:
100%
;
line-height
:
30px
;
}
.user-ul
li
{
list-style
:
none
;
line-height
:
20px
;
}
ul
{
-webkit-padding-start
:
0px
!important
;
}
.margain-10
{
.margain-10
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
...
@@ -76,12 +108,12 @@
...
@@ -76,12 +108,12 @@
<a
href=
"javascript:;"
>
费用报销审核
</a>
<a
href=
"javascript:;"
>
费用报销审核
</a>
</li>
</li>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"choose_btn btn btn-info
"
data-value=
"
1"
style=
"margin-left: 20px;"
>
总监通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-info
choose_btn1"
data-value=
"/index/getCostListTwo/
1"
style=
"margin-left: 20px;"
>
总监通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
"
data-value=
"3
"
>
财务一审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
choose_btn2"
data-value=
"/index/getCostListThree/2
"
>
财务一审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
"
data-value=
"2
"
>
财务二审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
choose_btn3"
data-value=
"/index/getCostListFour/3
"
>
财务二审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
"
data-value=
"
4"
>
财务三审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
choose_btn4"
data-value=
"/index/getCostListFive/
4"
>
财务三审通过
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
"
data-value=
"5
"
>
未审核
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
choose_btn5"
data-value=
"/index/getCostListOne/0
"
>
未审核
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
"
data-value=
"-1
"
>
全部
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default
choose_btn6"
data-value=
"/index/getCostList
"
>
全部
</button>
</div>
</div>
<div
class=
"pull-right"
>
<div
class=
"pull-right"
>
<ul
class=
"bread_btn"
>
<ul
class=
"bread_btn"
>
...
@@ -100,21 +132,21 @@
...
@@ -100,21 +132,21 @@
<td
colspan=
"15"
>
<td
colspan=
"15"
>
<form
id=
"form_search"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
计入月份:
</span>
<span
class=
"fore-span ld-Marheight"
>
计入月份:
</span>
<input
id=
"co
mit_time_start
"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"请选择"
<input
id=
"co
unt_time
"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"请选择"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM',
maxDate:'#F{ $dp.$D(\'comit_time_end\')||\'%y-%M-%d\'}',
readOnly:'readonly' })"
>
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM',readOnly:'readonly' })"
>
<span
class=
"fore-span ld-Marheight"
>
申请提交时间:
</span>
<span
class=
"fore-span ld-Marheight"
>
申请提交时间:
</span>
<input
id=
"c
omit
_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
<input
id=
"c
reate
_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'c
omit
_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })"
>
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'c
reate
_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
id=
"c
omit
_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
<input
id=
"c
reate
_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'c
omit
_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readOnly'})"
>
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'c
reate
_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readOnly'})"
>
<span
class=
"fore-span ld-Marheight"
>
财务三审通过时间:
</span>
<span
class=
"fore-span ld-Marheight"
>
财务三审通过时间:
</span>
<input
id=
"
into
_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
<input
id=
"
pass
_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'
into
_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly'})"
>
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'
pass
_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly'})"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
id=
"
into
_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
<input
id=
"
pass
_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'
into
_time_start\')}',maxDate:'%y-%M-%d',readOnly:'readonly'})"
>
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'
pass
_time_start\')}',maxDate:'%y-%M-%d',readOnly:'readonly'})"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"c
hanged
_type"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"c
ost
_type"
>
<option
value=
""
>
费用类型
</option>
<option
value=
""
>
费用类型
</option>
<option
value=
"0"
>
退意向金
</option>
<option
value=
"0"
>
退意向金
</option>
<option
value=
"1"
>
意向金转定
</option>
<option
value=
"1"
>
意向金转定
</option>
...
@@ -123,7 +155,7 @@
...
@@ -123,7 +155,7 @@
<option
value=
"4"
>
退中介费
</option>
<option
value=
"4"
>
退中介费
</option>
<option
value=
"5"
>
退案场费
</option>
<option
value=
"5"
>
退案场费
</option>
</select>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"
changed_type
"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"
fee_item
"
>
<option
value=
""
>
费用项目
</option>
<option
value=
""
>
费用项目
</option>
<option
value=
"0"
>
退意向金
</option>
<option
value=
"0"
>
退意向金
</option>
<option
value=
"1"
>
意向金转定
</option>
<option
value=
"1"
>
意向金转定
</option>
...
@@ -132,8 +164,8 @@
...
@@ -132,8 +164,8 @@
<option
value=
"4"
>
退中介费
</option>
<option
value=
"4"
>
退中介费
</option>
<option
value=
"5"
>
退案场费
</option>
<option
value=
"5"
>
退案场费
</option>
</select>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
changed_id
"
placeholder=
"费用用途"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
purpose
"
placeholder=
"费用用途"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
back_id_money
"
placeholder=
"费用报销ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
cost_id
"
placeholder=
"费用报销ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"comit_name"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul"
style=
"display:none"
></ul>
<ul
class=
"user-ul"
style=
"display:none"
></ul>
<select
class=
"form-control btn2 ld-Marheight"
id=
"commit_home"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"commit_home"
>
...
...
public/resource/js/costCheck.js
View file @
b4fdadcc
This diff is collapsed.
Click to expand it.
public/resource/js/public.js
View file @
b4fdadcc
...
@@ -332,6 +332,68 @@ function switchRzType(str){
...
@@ -332,6 +332,68 @@ function switchRzType(str){
return
'暂无数据'
;
return
'暂无数据'
;
}
}
};
};
function
switchFeeItem
(
str
){
//费用项目 100房租租金 101水电费 102其他费用 201总部固定成本 301分部固定成本 401同联发展基金 501家庭基金报销 502社保报销 503总经理基薪 504区域秘书基薪 505招聘成本 506区域经理基本工资平摊 507宿舍成本 508宿舍亏损 509手续费 510员工工资成本 511网络报销 512离职员工网络 513门店独有成本其他费用
switch
(
String
(
str
)){
case
'100'
:
return
'房租租金'
;
case
'101'
:
return
'水电费'
;
case
'102'
:
return
'其他费用'
;
case
'201'
:
return
'总部固定成本'
;
case
'301'
:
return
'分部固定成本'
;
case
'401'
:
return
'同联发展基金'
;
case
'501'
:
return
'家庭基金报销'
;
case
'80'
:
return
'502社保报销'
;
case
'503'
:
return
'总经理基薪'
;
case
'504'
:
return
'区域秘书基薪'
;
case
'505'
:
return
'招聘成本'
;
case
'506'
:
return
'区域经理基本工资平摊'
;
case
'507'
:
return
'宿舍成本'
;
case
'508'
:
return
'宿舍亏损'
;
case
'509'
:
return
'手续费'
;
case
'510'
:
return
'员工工资成本'
;
case
'511'
:
return
'网络报销'
;
case
'512'
:
return
'512离职员工网络'
;
case
'513'
:
return
'513门店独有成本其他费用'
;
default
:
return
'暂无数据'
;
}
};
function
switchFeeSiteId
(
str
){
//费用项目 100房租租金 101水电费 102其他费用 201总部固定成本 301分部固定成本 401同联发展基金 501家庭基金报销 502社保报销 503总经理基薪 504区域秘书基薪 505招聘成本 506区域经理基本工资平摊 507宿舍成本 508宿舍亏损 509手续费 510员工工资成本 511网络报销 512离职员工网络 513门店独有成本其他费用
switch
(
String
(
str
)){
case
'10001'
:
return
'上海市'
;
case
'10002'
:
return
'杭州市'
;
case
'10003'
:
return
'深圳市'
;
case
'10004'
:
return
'广州市'
;
case
'10005'
:
return
'北京市'
;
default
:
return
'暂无数据'
;
}
};
/**
/**
* 如果提示框存在任何问题,可以通过注释alert这个方法,使提示框恢复到之前的默认效果
* 如果提示框存在任何问题,可以通过注释alert这个方法,使提示框恢复到之前的默认效果
* 自定义提示框修改
* 自定义提示框修改
...
...
public/resource/template/cost_check_template_tpl.html
View file @
b4fdadcc
<script
id=
"cost_check_template_tpl"
type=
"text/template"
>
<script
id=
"cost_check_template_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'status'
]
==
0
)
{
%
]
<
td
>
[
%=
it
[
item
][
'count_time'
]
%
]
<
/td
>
<
td
>
审核中
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
1
)
{
%
]
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
<
td
>
审核中
<
/td
>
<
td
>
[
%=
it
[
item
][
'total_fee'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
<
td
>
总部成本
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
<
td
>
分部成本
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
3
)
{
%
]
<
td
>
门店独有成本
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
0
)
{
%
]
<
td
>
办公室成本
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
[
%
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
<
td
>
[
%=
switchFeeSiteId
(
it
[
item
][
'site_id'
])
%
]
<
/td
>
[
%
}
else
{
%
]
<
td
>
[
%=
switchFeeItem
(
it
[
item
][
'fee_item'
])
%
]
<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'purpose'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'status'
]
==
1
)
{
%
]
<
td
>
总监通过
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
2
)
{
%
]
[
%
}
else
if
(
it
[
item
][
'status'
]
==
2
)
{
%
]
<
td
>
退款成功
<
/td
>
<
td
>
一审通过
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
3
)
{
%
]
[
%
}
else
if
(
it
[
item
][
'status'
]
==
3
)
{
%
]
<
td
>
已审核
<
/td
>
<
td
>
二审通过
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
4
)
{
%
]
[
%
}
else
if
(
it
[
item
][
'status'
]
==
4
)
{
%
]
<
td
>
驳回
<
/td
>
<
td
>
三审通过
<
/td
>
[
%
}
else
if
(
it
[
item
][
'status'
]
==
0
)
{
%
]
<
td
>
申请中
<
/td
>
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
td
>--<
/td
>
<
td
>--<
/td
>
[
%
}
%
]
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'order_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'pay_log_id'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'source'
]
==
1
)
{
%
]
<
td
>
[
%=
it
[
item
][
'refund_money'
]
%
]
<
/td
>
<
td
>
excel
导入
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
2
)
{
%
]
<!--<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td>--
>
<
td
><
/td
>
[
%
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
[
%
}
else
if
(
it
[
item
][
'source'
]
==
3
)
{
%
]
<
td
>
意向金转定
<
/td
>
<
td
><
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
[
%
}
else
if
(
it
[
item
][
'source'
]
==
0
)
{
%
]
<
td
>
退保管金
<
/td
>
<
td
>
app
申请
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
3
)
{
%
]
<
td
>
保管金转定
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
4
)
{
%
]
<
td
>
退中介费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
5
)
{
%
]
<
td
>
退案场费
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
0
)
{
%
]
<
td
>
退意向金
<
/td
>
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
td
>--<
/td
>
<
td
>--<
/td
>
[
%
}
%
]
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-success add-pic"
href
=
"#modal-addPic"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
审核
<
/a
>
<
a
class
=
"btn1 btn-success add-pic"
href
=
"#modal-addPic"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
审核
<
/a
>
<
a
class
=
"btn1 btn-success is_del"
href
=
"#modal-del"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
删除
<
/a
>
<
a
class
=
"btn1 btn-success is_del"
href
=
"#modal-del"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
删除
<
/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