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
76f2c9b7
Commit
76f2c9b7
authored
Jul 19, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分部区分
parent
ef483be5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
45 deletions
+109
-45
costCheck.html
application/index/view/cost/costCheck.html
+31
-35
costCheck.js
public/resource/js/costCheck.js
+75
-7
cost_check_template_tpl.html
public/resource/template/cost_check_template_tpl.html
+3
-3
No files found.
application/index/view/cost/costCheck.html
View file @
76f2c9b7
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"costCheck"
/>
<style>
.user-ul2
{
.choose_total
,
.choose_siteID
,
.choose_store
{
display
:
none
;
}
.user-ul2
{
width
:
100%
;
height
:
auto
;
padding-bottom
:
15px
;
...
...
@@ -139,31 +142,44 @@
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'create_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
id=
"create_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'create_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'read
O
nly'})"
>
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'create_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'read
o
nly'})"
>
<span
class=
"fore-span ld-Marheight"
>
财务三审通过时间:
</span>
<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(\'pass_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly'})"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<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(\'pass_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=
"cost_type"
>
<option
value=
""
>
费用类型
</option>
<option
value=
"0"
>
退意向金
</option>
<option
value=
"1"
>
意向金转定
</option>
<option
value=
"2"
>
退保管金
</option>
<option
value=
"3"
>
保管金转定
</option>
<option
value=
"4"
>
退中介费
</option>
<option
value=
"5"
>
退案场费
</option>
<option
value=
"0"
>
办公室成本
</option>
<option
value=
"1"
>
总部成本
</option>
<option
value=
"2"
>
分部成本
</option>
<option
value=
"3"
>
门店独有成本
</option>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"fee_item"
>
<option
value=
""
>
费用项目
</option>
<option
value=
"0"
>
退意向金
</option>
<option
value=
"1"
>
意向金转定
</option>
<option
value=
"2"
>
退保管金
</option>
<option
value=
"3"
>
保管金转定
</option>
<option
value=
"4"
>
退中介费
</option>
<option
value=
"5"
>
退案场费
</option>
<!--办公室类型-->
<option
value=
"101"
class=
"choose_office"
>
水电费
</option>
<option
value=
"102"
class=
"choose_office"
>
其他费用
</option>
<!--总部成本类型-->
<option
value=
"102"
class=
"choose_total"
>
其他费用
</option>
<!--分部成本类型-->
<option
value=
"10002"
class=
"choose_siteID"
>
杭州
</option>
<option
value=
"10003"
class=
"choose_siteID"
>
深圳
</option>
<option
value=
"10004"
class=
"choose_siteID"
>
广州
</option>
<option
value=
"10005"
class=
"choose_siteID"
>
北京
</option>
<!--门店独有成本类型-->
<option
value=
"506"
class=
"choose_store"
>
区域经理基本工资
</option>
<option
value=
"504"
class=
"choose_store"
>
区域秘书基薪
</option>
<option
value=
"505"
class=
"choose_store"
>
招聘成本
</option>
<option
value=
"507"
class=
"choose_store"
>
宿舍成本
</option>
<option
value=
"508"
class=
"choose_store"
>
宿舍亏损
</option>
<option
value=
"510"
class=
"choose_store"
>
员工工资成本
</option>
<option
value=
"511"
class=
"choose_store"
>
网络报销
</option>
<option
value=
"512"
class=
"choose_store"
>
离职员工网络
</option>
</select>
<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=
"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=
""
>
...
...
@@ -210,26 +226,6 @@
</div>
</div>
</div>
<!--时间轴-->
<div
class=
"modal fade"
id=
"modal-time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
时间轴
</h4>
</div>
<div
class=
"modal-body"
class=
"iframe-div-parent"
>
<iframe
class=
"iframe-time-line"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 新增报销 -->
<div
class=
"modal fade"
id=
"modal-check"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
style=
"font-size: 16px;"
>
<div
class=
"modal-dialog"
style=
"width: 900px;font-size: 14px;"
>
...
...
public/resource/js/costCheck.js
View file @
76f2c9b7
...
...
@@ -56,18 +56,56 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
//点击不同审核按钮
_doc
.
on
(
'click'
,
'.choose_btn'
,
function
(
e
){
$
(
this
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
refund
.
url
=
e
.
target
.
dataset
.
value
;
refund
.
getList
(
1
);
cost
.
url
=
e
.
target
.
dataset
.
value
;
cost
.
getList
(
1
);
});
//搜索
$
(
document
).
on
(
'click'
,
'#search'
,
function
(
e
){
that
.
getList
(
1
);
});
//重置搜索条件
$
(
document
).
on
(
'click'
,
'#reset'
,
function
(
e
){
that
.
resetAll
();
});
//费用类型切换
$
(
"#cost_type"
).
change
(
function
()
{
if
(
$
(
'#cost_type'
).
val
()
==
0
){
$
(
'.choose_office'
).
show
();
$
(
'.choose_total'
).
hide
();
$
(
'.choose_siteID'
).
hide
();
$
(
'.choose_store'
).
hide
();
}
else
if
(
$
(
'#cost_type'
).
val
()
==
1
){
$
(
'.choose_office'
).
hide
();
$
(
'.choose_total'
).
show
();
$
(
'.choose_siteID'
).
hide
();
$
(
'.choose_store'
).
hide
();
}
else
if
(
$
(
'#cost_type'
).
val
()
==
2
){
$
(
'.choose_office'
).
hide
();
$
(
'.choose_total'
).
hide
();
$
(
'.choose_siteID'
).
show
();
$
(
'.choose_store'
).
hide
();
}
else
if
(
$
(
'#cost_type'
).
val
()
==
3
){
$
(
'.choose_office'
).
hide
();
$
(
'.choose_total'
).
hide
();
$
(
'.choose_siteID'
).
hide
();
$
(
'.choose_store'
).
show
();
};
});
//获取报销id
$
(
document
).
on
(
'click'
,
'.is_del'
,
function
(
e
){
cost
.
id
=
$
(
this
).
attr
(
'data-id'
);
});
//删除报销
$
(
document
).
on
(
'click'
,
'#confirm_delete'
,
function
(
e
){
that
.
delCost
();
});
//导出报表
$
(
document
).
on
(
'click'
,
'#export'
,
function
(
e
){
that
.
exportExcel
();
...
...
@@ -216,7 +254,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
}
});
},
getDistrictStoreList
:
function
(
id
,
fn
)
{
getDistrictStoreList
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/getDistrictStoreList'
,
type
:
'GET'
,
...
...
@@ -235,6 +273,26 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
}
});
},
//删除列表
delCost
:
function
()
{
$
.
ajax
({
url
:
'/index/delCost'
,
type
:
'POST'
,
async
:
true
,
data
:
{
'id'
:
cost
.
id
,
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
alert
(
data
.
msg
)
cost
.
getList
(
cost
.
pageNo
);
//重新获取列表
}
else
{
alert
(
data
.
msg
)
}
}
});
},
//获取列表
getList
:
function
(
no
){
var
that
=
cost
;
...
...
@@ -307,6 +365,10 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
var
comit_name
=
that
.
agent_id_phone
;
//$('#comit_name').val();
var
params
=
{};
var
paramsStr
=
""
;
if
(
count_time
)
{
params
.
count_time
=
count_time
;
paramsStr
+=
"count_time="
+
count_time
+
'&'
;
}
if
(
create_time_start
)
{
params
.
create_time_start
=
create_time_start
;
paramsStr
+=
"create_time_start="
+
create_time_start
+
'&'
;
...
...
@@ -335,9 +397,15 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
params
.
purpose
=
purpose
;
paramsStr
+=
"purpose="
+
purpose
+
'&'
;
}
if
(
fee_item
)
{
params
.
fee_item
=
fee_item
;
paramsStr
+=
"fee_item="
+
fee_item
+
'&'
;
if
(
fee_item
)
{
//区分分部
if
(
cost_type
==
2
){
params
.
site_id
=
fee_item
;
paramsStr
+=
"site_id="
+
fee_item
+
'&'
;
}
else
{
params
.
fee_item
=
fee_item
;
paramsStr
+=
"fee_item="
+
fee_item
+
'&'
;
}
}
if
(
commit_home
)
{
params
.
district_id
=
commit_home
;
...
...
public/resource/template/cost_check_template_tpl.html
View file @
76f2c9b7
<script
id=
"cost_check_template_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
&&
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
...
...
@@ -57,14 +57,14 @@
<
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 is_del"
href
=
"#modal-del"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
删除
<
/a
>
<
a
class
=
"btn1 btn-success is_del"
href
=
"#modal-del
ete
"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
删除
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"
8
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
td
colspan
=
"
15
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
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