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
7156eb8a
Commit
7156eb8a
authored
Jul 25, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
54f49384
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
27 deletions
+70
-27
costCheck.html
application/index/view/cost/costCheck.html
+2
-2
costDetails.html
application/index/view/cost/costDetails.html
+1
-1
publicCostDetails.html
application/index/view/cost/publicCostDetails.html
+6
-1
costCheck.js
public/resource/js/costCheck.js
+24
-21
public.js
public/resource/js/public.js
+1
-1
publicCostDetails.js
public/resource/js/publicCostDetails.js
+36
-1
No files found.
application/index/view/cost/costCheck.html
View file @
7156eb8a
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
<option
value=
""
>
费用类型
</option>
<option
value=
""
>
费用类型
</option>
<option
value=
"1"
>
办公室成本
</option>
<option
value=
"1"
>
办公室成本
</option>
<option
value=
"2"
>
总部成本
</option>
<option
value=
"2"
>
总部成本
</option>
<option
value=
"3"
>
分
部
成本
</option>
<option
value=
"3"
>
分
公司
成本
</option>
<option
value=
"5"
>
门店独有成本
</option>
<option
value=
"5"
>
门店独有成本
</option>
</select>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"fee_item"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"fee_item"
>
...
@@ -262,7 +262,7 @@
...
@@ -262,7 +262,7 @@
<option
value=
"-1"
>
费用类型
</option>
<option
value=
"-1"
>
费用类型
</option>
<option
value=
"1"
>
办公室成本
</option>
<option
value=
"1"
>
办公室成本
</option>
<option
value=
"2"
>
总部成本
</option>
<option
value=
"2"
>
总部成本
</option>
<option
value=
"3"
>
分
部
成本
</option>
<option
value=
"3"
>
分
公司
成本
</option>
<option
value=
"5"
>
门店独有成本
</option>
<option
value=
"5"
>
门店独有成本
</option>
</select>
</select>
</div>
</div>
...
...
application/index/view/cost/costDetails.html
View file @
7156eb8a
...
@@ -323,7 +323,7 @@
...
@@ -323,7 +323,7 @@
<option
value=
""
>
费用类型
</option>
<option
value=
""
>
费用类型
</option>
<option
value=
"0"
>
办公室成本
</option>
<option
value=
"0"
>
办公室成本
</option>
<option
value=
"1"
>
总部成本
</option>
<option
value=
"1"
>
总部成本
</option>
<option
value=
"2"
>
分
部
成本
</option>
<option
value=
"2"
>
分
公司
成本
</option>
<option
value=
"3"
>
门店独有成本
</option>
<option
value=
"3"
>
门店独有成本
</option>
</select>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"fee_item"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"fee_item"
>
...
...
application/index/view/cost/publicCostDetails.html
View file @
7156eb8a
...
@@ -285,7 +285,12 @@
...
@@ -285,7 +285,12 @@
</div>
</div>
<!--详情 审核记录-->
<!--详情 审核记录-->
<div
class=
"detail_jilu"
>
<div
class=
"detail_jilu"
>
<div
style=
"font-size: 16px;margin-bottom: 20px;font-weight: 600;"
>
核对记录:
</div>
<div
style=
"margin-bottom: 10px;"
>
门店考勤:
<span
class=
"kaoqin1"
></span></div>
<div
style=
"margin-bottom: 10px;"
>
社保报销:
<span
class=
"kaoqin2"
></span></div>
<div
style=
"margin-bottom: 10px;"
>
门店手续费:
<span
class=
"kaoqin3"
></span>
</div>
<div
style=
"margin-bottom: 10px;"
>
总部成本+发展基金+总经理基薪:
<span
class=
"kaoqin4"
></span></div>
<div
style=
"margin-bottom: 10px;"
>
办公室房租+当月办公门店:
<span
class=
"kaoqin5"
></span></div>
</div>
</div>
<!--转账截图-->
<!--转账截图-->
...
...
public/resource/js/costCheck.js
View file @
7156eb8a
...
@@ -15,43 +15,43 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -15,43 +15,43 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
//判断权限 总监
//判断权限 总监
财务一审
if
(
check_auth
(
'index/
getCostListTwo/1
'
)){
if
(
check_auth
(
'index/
checkCostThree/2
'
)){
$
(
'.choose_btn1'
).
show
();
$
(
'.choose_btn1'
).
show
();
}
else
{
}
else
{
$
(
'.choose_btn1'
).
hide
();
$
(
'.choose_btn1'
).
hide
();
};
};
//判断权限 财务一级
//判断权限 财务一级
财务二审
if
(
check_auth
(
'index/
getCostListThree/2
'
)){
if
(
check_auth
(
'index/
checkCostFour/3
'
)){
$
(
'.choose_btn2'
).
show
();
$
(
'.choose_btn2'
).
show
();
}
else
{
}
else
{
$
(
'.choose_btn2'
).
hide
();
$
(
'.choose_btn2'
).
hide
();
};
};
//判断权限 财务二级
//判断权限 财务二级
财务三审
if
(
check_auth
(
'index/
getCostListFour/3
'
)){
if
(
check_auth
(
'index/
checkCostFive/4
'
)){
$
(
'.choose_btn3'
).
show
();
$
(
'.choose_btn3'
).
show
();
}
else
{
}
else
{
$
(
'.choose_btn3'
).
hide
();
$
(
'.choose_btn3'
).
hide
();
};
};
//判断权限 财务三级
//判断权限 财务三级
if
(
check_auth
(
'index/getCostListFive/4'
)){
//
if(check_auth('index/getCostListFive/4')){
$
(
'.choose_btn4'
).
show
();
//
$('.choose_btn4').show();
}
else
{
//
}else{
$
(
'.choose_btn4'
).
hide
();
//
$('.choose_btn4').hide();
};
//
};
//判断权限 未审核
//判断权限 未审核
总监审核
if
(
check_auth
(
'index/
getCostListOne/0
'
)){
if
(
check_auth
(
'index/
checkCostTwo/1
'
)){
$
(
'.choose_btn5'
).
show
();
$
(
'.choose_btn5'
).
show
();
}
else
{
}
else
{
$
(
'.choose_btn5'
).
hide
();
$
(
'.choose_btn5'
).
hide
();
};
};
//判断权限 全部
//判断权限 全部
if
(
check_auth
(
'index/getCostList'
)){
//
if(check_auth('index/getCostList')){
$
(
'.choose_btn6'
).
show
();
//
$('.choose_btn6').show();
}
else
{
//
}else{
$
(
'.choose_btn6'
).
hide
();
//
$('.choose_btn6').hide();
};
//
};
cost
.
url
=
$
(
'.btn-group .choose_btn:nth-of-type(1)'
).
attr
(
'data-value'
);
cost
.
url
=
$
(
'.btn-group .choose_btn:nth-of-type(1)'
).
attr
(
'data-value'
);
cost
.
getList
(
1
);
cost
.
getList
(
1
);
cost
.
event
();
cost
.
event
();
...
@@ -64,10 +64,13 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -64,10 +64,13 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
_doc
.
on
(
'click'
,
'.choose_btn'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.choose_btn'
,
function
(
e
){
$
(
this
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
$
(
this
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
cost
.
url
=
e
.
target
.
dataset
.
value
;
cost
.
url
=
e
.
target
.
dataset
.
value
;
cost
.
main_index
=
$
(
this
).
index
();
//
cost.main_index = $(this).index();
cost
.
getList
(
1
);
cost
.
getList
(
1
);
});
});
//点击全部
$
(
document
).
on
(
'click'
,
'.all_btn'
,
function
(
e
){
cost
.
main_index
=
5
;
});
//搜索
//搜索
$
(
document
).
on
(
'click'
,
'#search'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'#search'
,
function
(
e
){
that
.
getList
(
1
);
that
.
getList
(
1
);
...
...
public/resource/js/public.js
View file @
7156eb8a
...
@@ -368,7 +368,7 @@ function switchFeeItem(str){
...
@@ -368,7 +368,7 @@ function switchFeeItem(str){
return
'同联发展基金'
;
return
'同联发展基金'
;
case
'501'
:
case
'501'
:
return
'家庭基金报销'
;
return
'家庭基金报销'
;
case
'
80
'
:
case
'
502
'
:
return
'社保报销'
;
return
'社保报销'
;
case
'503'
:
case
'503'
:
return
'总经理基薪'
;
return
'总经理基薪'
;
...
...
public/resource/js/publicCostDetails.js
View file @
7156eb8a
...
@@ -251,11 +251,45 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -251,11 +251,45 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
var
doTtmpl
=
doT
.
template
(
temp
);
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#mingxi_list"
).
html
(
doTtmpl
(
data
.
data
.
store_cost_data
));
$
(
"#mingxi_list"
).
html
(
doTtmpl
(
data
.
data
.
store_cost_data
));
//审核记录显示
//审核记录显示
费用报销
var
temp2
=
document
.
getElementById
(
'check_template_tpl'
).
innerHTML
;
var
temp2
=
document
.
getElementById
(
'check_template_tpl'
).
innerHTML
;
var
doTtmpl2
=
doT
.
template
(
temp2
);
var
doTtmpl2
=
doT
.
template
(
temp2
);
$
(
"#check_list"
).
html
(
doTtmpl2
(
data
.
data
.
check_log
));
$
(
"#check_list"
).
html
(
doTtmpl2
(
data
.
data
.
check_log
));
//审核记录显示 门店明细
var
str1
=
''
;
var
str2
=
''
;
var
str3
=
''
;
var
str4
=
''
;
var
str5
=
''
;
// 审核类型, 1考勤审核 2社保审核 3手续费审核 4办公室房租+当月办公门店审核 5费用参数审核
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
if
(
data
.
data
[
i
].
type
==
1
){
str1
+=
data
.
data
[
i
].
operator_name
+
'、'
;
}
else
if
(
data
.
data
[
i
].
type
==
2
){
str2
+=
data
.
data
[
i
].
operator_name
+
'、'
;
}
else
if
(
data
.
data
[
i
].
type
==
3
){
str3
+=
data
.
data
[
i
].
operator_name
+
'、'
;
}
else
if
(
data
.
data
[
i
].
type
==
5
){
str4
+=
data
.
data
[
i
].
operator_name
+
'、'
;
}
else
if
(
data
.
data
[
i
].
type
==
4
){
str5
+=
data
.
data
[
i
].
operator_name
+
'、'
;
}
});
$
(
".kaoqin1"
).
html
(
str1
);
$
(
".kaoqin2"
).
html
(
str2
);
$
(
".kaoqin3"
).
html
(
str3
);
$
(
".kaoqin4"
).
html
(
str4
);
$
(
".kaoqin5"
).
html
(
str5
);
//审核图片显示
//审核图片显示
var
temp3
=
document
.
getElementById
(
'checkPic_template_tpl'
).
innerHTML
;
var
temp3
=
document
.
getElementById
(
'checkPic_template_tpl'
).
innerHTML
;
var
doTtmpl3
=
doT
.
template
(
temp3
);
var
doTtmpl3
=
doT
.
template
(
temp3
);
...
@@ -356,6 +390,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -356,6 +390,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
$
(
'.is_hide_costID'
).
show
();
//费用id
$
(
'.is_hide_costID'
).
show
();
//费用id
}
}
}
else
{
//报销详情
}
else
{
//报销详情
$
(
'.pic_jilu'
).
show
();
//转账图片
$
(
'.pic_jilu'
).
show
();
//转账图片
$
(
'.check_jilu'
).
show
();
//报销审核记录
$
(
'.check_jilu'
).
show
();
//报销审核记录
...
...
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