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
53c9f3fd
Commit
53c9f3fd
authored
Jul 25, 2019
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
费用参数列表完成
parent
ffd42aa9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
453 additions
and
23 deletions
+453
-23
attendanceList.html
application/index/view/cost/attendanceList.html
+3
-21
costParameters.html
application/index/view/cost/costParameters.html
+116
-2
costParamsmeters.js
public/resource/js/costParamsmeters.js
+252
-0
costParamsmeters_template_tpl.html
public/resource/template/costParamsmeters_template_tpl.html
+82
-0
No files found.
application/index/view/cost/attendanceList.html
View file @
53c9f3fd
...
...
@@ -71,27 +71,9 @@
<div
class=
"row"
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<!--<div class="panel-heading breadcrumb">
<li>
<a href="javascript:;">费用报销审核</a>
</li>
<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-default" data-value="3">财务一审通过</button>
<button type="button" class="choose_btn btn btn-default" data-value="2">财务二审通过</button>
<button type="button" class="choose_btn btn btn-default" data-value="4">财务三审通过</button>
<button type="button" class="choose_btn btn btn-default " data-value="5">未审核</button>
<button type="button" class="choose_btn btn btn-default " data-value="-1">全部</button>
</div>
<div class="pull-right">
<ul class="bread_btn">
<li>
<a href="#modal-check" data-toggle="modal" class="btn btn-info"><i class="icon-plus"></i> 新增费用报销
</a>
</li>
</ul>
</div>
</div>-->
<div
class=
"panel-heading breadcrumb"
>
<li><a
href=
"#"
>
门店费用列表
</a></li>
</div>
<div
class=
"panel-body"
style=
"overflow:hidden;"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
style=
"margin-top:15px"
>
...
...
application/index/view/cost/costParameters.html
View file @
53c9f3fd
成本参数
\ No newline at end of file
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"costParamsmeters"
/>
<style>
.margain-10
{
margin-bottom
:
10px
;
}
.top-5
{
position
:
relative
;
top
:
5px
;
}
#file_input_pic
,
#file_input_pic2
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
0px
;
height
:
35px
;
width
:
80px
;
}
#container_body_img_area
>
div
,
#container_body_img_area2
>
div
{
float
:
left
;
width
:
216px
;
}
.active
{
color
:
dodgerblue
;
}
ul
{
-webkit-padding-start
:
0px
!important
;
}
.img-pre-ul
>
li
{
list-style
:
no
;
float
:
left
;
width
:
210px
;
height
:
170px
;
overflow
:
hidden
;
margin-right
:
10px
;
margin-top
:
10px
;
}
.hide
{
display
:
none
!important
;
}
.result
>
img
,
.result2
>
img
{
width
:
120px
;
height
:
120px
;
margin-top
:
8px
;
}
#container_body
{
position
:
relative
;
overflow
:
hidden
;
}
.span-del2
,
.span-del
{
color
:
red
;
}
/*控制放大镜的 收款图片显示*/
#preview
{
z-index
:
9999
!important
;
}
#preview
img
{
width
:
600px
;
}
.clear
{
clear
:
both
;
}
input
{
width
:
50%
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li><a
href=
"#"
>
费用参数列表
</a></li>
</div>
<div
class=
"panel-body"
style=
"overflow:hidden;"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
style=
"margin-top:15px"
>
<thead>
<tr>
<td
colspan=
"15"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
style=
"font-size:700;font-size:16px;float:left;line-height:20px;margin-top:15px;"
id=
"dataStr"
>
2019-06
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"export"
style=
"float: right;margin-right:20px;"
>
审核无误
</span>
</form>
</td>
</tr>
<tr>
<th
class=
"text-center"
style=
"width:8%"
>
参数ID
</th>
<th
class=
"text-center"
style=
"width:10%"
>
费用类型/费用项目
</th>
<th
class=
"text-center"
style=
"width:10%"
>
当月固定成本(元)
</th>
<th
class=
"text-center"
style=
"width:10%"
>
当月其他费用(元)
</th>
<th
class=
"text-center"
style=
"width:10%"
>
当月总成本
</th>
<th
class=
"text-center"
style=
"width:10%"
>
活动减免比例
</th>
<th
class=
"text-center"
style=
"width:42%"
>
费用成本说明(点击修改)
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"order_list"
>
</table>
</div>
<div
class=
""
style=
"overflow:hidden;"
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"save"
style=
"float: right;margin-right:20px;"
>
保存
</span>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
public/resource/js/costParamsmeters.js
0 → 100644
View file @
53c9f3fd
define
([
'doT'
,
'text!temp/costParamsmeters_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
cost
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
house_id
:
''
,
house_fatherid
:
''
,
collection_del_id
:
''
,
listData
:
""
,
moneyTotal
:
""
,
agent_id_phone
:
''
,
check_status
:
1
,
deleteRefundId
:
''
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
cost
.
getList
(
1
);
cost
.
event
();
},
event
:
function
()
{
var
that
=
cost
;
var
_doc
=
$
(
document
);
$
(
'#save'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(){
that
.
getTableData
();
});
$
(
document
).
on
(
'input'
,
'.monthGD'
,
function
(
e
){
console
.
log
(
e
)
console
.
log
(
$
(
this
).
val
());
if
(
$
(
this
).
val
()
-
0
>
0
){
console
.
log
(
$
(
this
).
parent
().
next
().
text
())
let
otherPrice
=
$
(
this
).
parent
().
next
().
text
()
-
0
;
let
totalPrice
=
$
(
this
).
val
()
-
0
+
otherPrice
;
$
(
this
).
parent
().
next
().
next
().
text
(
totalPrice
);
}
else
{
alert
(
'请输入正确的金额'
)
}
});
$
(
document
).
on
(
'click'
,
'.checked'
,
function
(
e
){
that
.
checkFinish
(
5
)
})
},
checkFinish
:
function
(
index
){
let
that
=
this
;
let
params
=
{
setting_date
:
that
.
getDate
(),
type
:
index
}
$
.
post
(
'/index/checkCostParameter'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
alert
(
data
.
msg
)
}
})
},
getTableData
:
function
(){
let
that
=
this
;
let
arr
=
$
(
'.tureDara'
)
let
array
=
[]
;
console
.
log
(
typeof
(
arr
)
);
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
){
let
res
=
document
.
getElementsByClassName
(
'tureDara'
)[
i
];
let
obj
=
{};
console
.
log
(
res
.
children
[
0
].
childNodes
[
0
].
nodeValue
)
obj
.
type
=
res
.
children
[
0
].
childNodes
[
0
].
nodeValue
-
0
-
1
if
(
that
.
hasInput
(
res
.
children
[
2
].
childNodes
)
){
obj
.
fixed_fee
=
res
.
children
[
2
].
childNodes
[
1
].
value
;
console
.
log
}
if
(
that
.
hasInput
(
res
.
children
[
5
].
childNodes
)
){
obj
.
discounts
=
res
.
children
[
5
].
childNodes
[
1
].
value
}
if
(
that
.
hasInput
(
res
.
children
[
6
].
childNodes
)
){
// obj.desc = res.children[6].childNodes[1].value //费用成本说明参数获取
}
if
(
that
.
hasInput
(
res
.
children
[
4
].
childNodes
)
){
obj
.
monthGD3
=
res
.
children
[
4
].
childNodes
[
1
].
value
}
array
.
push
(
obj
);
}
console
.
log
(
array
)
that
.
editData
(
array
);
},
editData
:
function
(
array
){
let
that
=
this
;
let
params
=
{
setting_date
:
that
.
getDate
(),
save_json
:
JSON
.
stringify
(
array
)
}
$
.
post
(
'/index/editCompanyData'
,
params
,
function
(
res
){
if
(
res
.
code
==
200
){
alert
(
'数据保存成功'
)
}
else
{
alert
(
res
.
msg
)
}
})
},
hasInput
:
function
(
arr
){
let
that
=
this
;
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
){
if
(
arr
[
i
].
tagName
==
'INPUT'
||
arr
[
i
].
tagName
==
'TEXTAREA'
){
return
true
;
break
;
}
}
return
false
;
},
//获取列表
getList
:
function
(
no
){
var
that
=
cost
;
that
.
pageNo
=
no
;
var
params
=
{}
params
.
setting_date
=
that
.
getDate
();
$
.
get
(
'/index/getCompanyCostParameterList'
,
params
,
function
(
data
){
console
.
log
(
data
);
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
$
(
'.chooseAll'
).
prop
(
"checked"
,
""
);
that
.
listData
=
data
.
data
.
list
;
var
temp
=
document
.
getElementById
(
'costParamsmeters_template_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#order_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
// add_page(data.data.total, no, that.pageSize,that.getList);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
'json'
);
},
getDate
:
function
(){
let
that
=
this
;
let
str
=
$
(
'#dataStr'
).
text
();
let
str1
=
str
.
split
(
"-"
);
let
newStr
=
str1
[
0
]
+
'-'
+
(
str1
[
1
]
-
0
>
9
?
str1
[
1
]:
'0'
+
(
str1
[
1
]
-
0
)
)
+
'-'
+
"01"
return
newStr
;
},
/**
* 获取查询参数
*/
buildSearchParams
:
function
(
is_excel
){
var
that
=
cost
;
var
commite_time_start
=
$
(
'#comit_time_start'
).
val
();
var
commite_time_end
=
$
(
'#comit_time_end'
).
val
();
var
into_time_start
=
$
(
'#into_time_start'
).
val
();
var
into_time_end
=
$
(
'#into_time_end'
).
val
();
var
changed_type
=
$
(
'#changed_type'
).
val
();
var
changed_id
=
$
(
'#changed_id'
).
val
();
var
back_id_money
=
$
(
'#back_id_money'
).
val
();
var
shoped_id
=
$
(
'#shoped_id'
).
val
();
var
shoped_addr
=
$
(
'#shoped_addr'
).
val
();
var
commit_home
=
$
(
'#commit_home'
).
val
();
var
commit_shop
=
$
(
'#commit_shop'
).
val
();
var
comit_name
=
that
.
agent_id_phone
;
//$('#comit_name').val();
var
comit_phone
=
$
(
'#comit_phone'
).
val
();
// var choose_type = $('.btn-group').find('.btn-info').html();
var
is_selt
=
$
(
'#is_type'
).
val
();
var
get_id
=
$
(
'#get_id'
).
val
();
var
is_open
=
$
(
'#is_open'
).
val
();
var
params
=
{};
var
paramsStr
=
""
;
if
(
get_id
)
{
params
.
pay_log_id
=
get_id
;
paramsStr
+=
"pay_log_id="
+
get_id
+
'&'
;
}
if
(
commite_time_start
)
{
params
.
start_time
=
commite_time_start
;
paramsStr
+=
"start_time="
+
commite_time_start
+
'&'
;
}
if
(
commite_time_end
)
{
params
.
end_time
=
commite_time_end
;
paramsStr
+=
"end_time="
+
commite_time_end
+
'&'
;
}
if
(
into_time_start
)
{
params
.
income_start_time
=
into_time_start
;
paramsStr
+=
"income_start_time="
+
into_time_start
+
'&'
;
}
if
(
into_time_end
)
{
params
.
income_end_time
=
into_time_end
;
paramsStr
+=
"income_end_time="
+
into_time_end
+
'&'
;
}
if
(
changed_type
)
{
params
.
type
=
changed_type
;
paramsStr
+=
"type="
+
changed_type
+
'&'
;
}
if
(
changed_id
)
{
params
.
order_id
=
changed_id
;
paramsStr
+=
"order_id="
+
changed_id
+
'&'
;
}
if
(
back_id_money
)
{
params
.
id
=
back_id_money
;
paramsStr
+=
"id="
+
back_id_money
+
'&'
;
}
if
(
shoped_id
)
{
params
.
house_id
=
shoped_id
;
paramsStr
+=
"house_id="
+
shoped_id
+
'&'
;
}
if
(
shoped_addr
)
{
params
.
address
=
shoped_addr
;
paramsStr
+=
"address="
+
shoped_addr
+
'&'
;
}
if
(
commit_home
)
{
params
.
district_id
=
commit_home
;
paramsStr
+=
"district_id="
+
commit_home
+
'&'
;
}
if
(
commit_shop
)
{
params
.
store_id
=
commit_shop
;
paramsStr
+=
"store_id="
+
commit_shop
+
'&'
;
}
if
(
comit_name
)
{
params
.
agent_id
=
comit_name
;
paramsStr
+=
"agent_id="
+
comit_name
+
'&'
;
}
if
(
comit_phone
)
{
if
(
comit_phone
[
0
]
==
"1"
&&
comit_phone
.
length
==
11
)
{
params
.
phone
=
comit_phone
;
paramsStr
+=
"phone="
+
comit_phone
+
'&'
;
}
else
{
alert
(
"请输入正确的手机号码"
)
}
}
if
(
is_selt
){
params
.
is_self
=
is_selt
;
paramsStr
+=
"is_self="
+
is_selt
+
'&'
;
}
if
(
is_open
>
-
1
)
{
params
.
is_open
=
is_open
;
paramsStr
+=
"is_open="
+
is_open
+
'&'
;
}
params
.
status
=
that
.
check_status
;
paramsStr
+=
"status="
+
that
.
check_status
;
if
(
is_excel
)
{
return
paramsStr
;
}
else
{
return
params
;
}
},
};
return
cost
;
});
\ No newline at end of file
public/resource/template/costParamsmeters_template_tpl.html
0 → 100644
View file @
53c9f3fd
<script
id=
"costParamsmeters_template_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center tureDara"
>
<
td
>
[
%=
it
[
item
][
'type'
]
-
0
+
1
%
]
<
/td
>
[
%
if
(
it
[
item
][
'type'
]
==
0
)
{
%
]
<
td
>
上海总部成本
<
/td
>
<
td
>
<
input
class
=
"monthGD"
style
=
"width:65%;"
type
=
"num"
value
=
"[%= it[item]['fixed_fee'] %]"
>
<
/td
>
<
td
>
[
%=
it
[
item
][
'apply_for_fee'
]
%
]
<
/td
>
<
td
>
[
%=
(
it
[
item
][
'apply_for_fee'
]
-
0
)
+
(
it
[
item
][
'fixed_fee'
]
-
0
)
%
]
<
/td
>
<
td
>
<
input
class
=
"HDjm"
style
=
"width:65%;"
type
=
"num"
value
=
"[%= it[item]['discounts'] %]"
>%
<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
<
td
>
杭州总部成本
<
/td
>
<
td
>
<
input
class
=
"monthGD"
style
=
"width:65%;"
type
=
"num"
value
=
"[%= it[item]['fixed_fee'] %]"
>
<
/td
>
<
td
>
[
%=
it
[
item
][
'apply_for_fee'
]
%
]
<
/td
>
<
td
>
[
%=
(
it
[
item
][
'apply_for_fee'
]
-
0
)
+
(
it
[
item
][
'fixed_fee'
]
-
0
)
%
]
<
/td
>
<
td
>--<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
<
td
>
深圳总部成本
<
/td
>
<
td
>
<
input
class
=
"monthGD"
style
=
"width:65%;"
type
=
"num"
value
=
"[%= it[item]['fixed_fee'] %]"
>
<
/td
>
<
td
>
[
%=
it
[
item
][
'apply_for_fee'
]
%
]
<
/td
>
<
td
>
[
%=
(
it
[
item
][
'apply_for_fee'
]
-
0
)
+
(
it
[
item
][
'fixed_fee'
]
-
0
)
%
]
<
/td
>
<
td
>--<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
3
)
{
%
]
<
td
>
广州总部成本
<
/td
>
<
td
>
<
input
class
=
"monthGD"
style
=
"width:65%;"
type
=
"num"
value
=
"[%= it[item]['fixed_fee'] %]"
>
<
/td
>
<
td
>
[
%=
it
[
item
][
'apply_for_fee'
]
%
]
<
/td
>
<
td
>
[
%=
(
it
[
item
][
'apply_for_fee'
]
-
0
)
+
(
it
[
item
][
'fixed_fee'
]
-
0
)
%
]
<
/td
>
<
td
>--<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
4
)
{
%
]
<
td
>
北京总部成本
<
/td
>
<
td
>
<
input
class
=
"monthGD"
style
=
"width:65%"
type
=
"num"
value
=
"[%= it[item]['fixed_fee'] %]"
>
<
/td
>
<
td
>
[
%=
it
[
item
][
'apply_for_fee'
]
%
]
<
/td
>
<
td
>
[
%=
(
it
[
item
][
'apply_for_fee'
]
-
0
)
+
(
it
[
item
][
'fixed_fee'
]
-
0
)
%
]
<
/td
>
<
td
>--<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
5
)
{
%
]
<
td
>
同联发展基金
<
/td
>
<
td
>
<
input
class
=
"monthGD"
style
=
"width:65%"
type
=
"num"
value
=
"[%= it[item]['fixed_fee'] %]"
>
元
/
人
<
/td
>
<
td
>--<
/td
>
<
td
>--<
/td
>
<
td
>--<
/td
>
[
%
}
else
if
(
it
[
item
][
'type'
]
==
6
)
{
%
]
<
td
>
总经理基薪
<
/td
>
<
td
>
<
input
class
=
"monthGD"
style
=
"width:65%"
type
=
"num"
value
=
"[%= it[item]['fixed_fee'] %]"
>
元
/
门店
<
/td
>
<
td
>--<
/td
>
<
td
>--<
/td
>
<
td
>--<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
<
td
>--<
/td
>
<
td
>--<
/td
>
<
td
>--<
/td
>
<
td
>--<
/td
>
[
%
}
%
]
<
td
>
<
textarea
placeholder
=
"点击输入"
style
=
"width:100%;height:auto;border:none;background-color:rgba(0,0,0,0);overflow-x:hidden;resize:none;"
type
=
"num"
value
=
"[%= it[item]['id'] %]"
style
=
""
><
/textarea
>
<
/div>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
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