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
44c98351
Commit
44c98351
authored
Jul 24, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
54217539
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
5 deletions
+41
-5
publicCostDetails.html
application/index/view/cost/publicCostDetails.html
+9
-1
costCheck.js
public/resource/js/costCheck.js
+1
-1
publicCostDetails.js
public/resource/js/publicCostDetails.js
+12
-3
cost_check_template_tpl.html
public/resource/template/cost_check_template_tpl.html
+19
-0
No files found.
application/index/view/cost/publicCostDetails.html
View file @
44c98351
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
7月
门店所在办公室考勤:
</span></strong>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
门店所在办公室考勤:
</span></strong>
<span
id=
"kaoqin"
class=
"col-xs-6 ld-Marheight"
>
<span
id=
"kaoqin"
class=
"col-xs-6 ld-Marheight"
>
10
10
</span>
</span>
...
@@ -270,6 +270,14 @@
...
@@ -270,6 +270,14 @@
<table
class=
"table"
>
<table
class=
"table"
>
<tbody
class=
"text-left"
id=
"check_list"
>
<tbody
class=
"text-left"
id=
"check_list"
>
</tbody>
</table>
</div>
<p
style=
"font-size: 16px;font-weight: 600;"
>
转账截图
</p>
<div
class=
""
>
<table
class=
"table"
>
<tbody
class=
"text-left"
id=
"checkPic_list"
>
</tbody>
</tbody>
</table>
</table>
</div>
</div>
...
...
public/resource/js/costCheck.js
View file @
44c98351
...
@@ -502,7 +502,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -502,7 +502,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
alert
(
"请选择门店"
)
alert
(
"请选择门店"
)
}
}
}
else
if
(
$
(
'#cost_type_add'
).
val
()
==
1
){
//总部
}
else
if
(
$
(
'#cost_type_add'
).
val
()
==
2
){
//总部
params
.
site_id
=
10001
;
//默认上海
params
.
site_id
=
10001
;
//默认上海
}
}
...
...
public/resource/js/publicCostDetails.js
View file @
44c98351
...
@@ -243,18 +243,27 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
...
@@ -243,18 +243,27 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
var
temp
=
document
.
getElementById
(
'mingxi_template_tpl'
).
innerHTML
;
var
temp
=
document
.
getElementById
(
'mingxi_template_tpl'
).
innerHTML
;
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
temp3
=
document
.
getElementById
(
'checkPic_template_tpl'
).
innerHTML
;
var
doTtmpl3
=
doT
.
template
(
temp3
);
$
(
"#checkPic_list"
).
html
(
doTtmpl3
(
data
.
data
.
images_data
));
//报销图片显示
$
(
'#container_body_img_area'
).
html
(
''
);
//每回先清空所有图片
$
(
'#container_body_img_area'
).
html
(
''
);
//每回先清空所有图片
if
(
data
.
data
.
images_data
){
if
(
data
.
data
.
images_data
){
for
(
i
=
0
;
i
<
data
.
data
.
images_data
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
data
.
data
.
images_data
.
length
;
i
++
)
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result2"><img data-imgid="{0}" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2">删除</span></div>'
.
stringFormatObj
({
if
(
data
.
data
.
images_data
[
i
].
img_type
==
1
){
$
(
'#container_body_img_area'
).
append
(
'<div class="result2"><img data-imgid="{0}" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2">删除</span></div>'
.
stringFormatObj
({
'0'
:
data
.
data
.
images_data
[
i
].
id
,
'0'
:
data
.
data
.
images_data
[
i
].
id
,
'1'
:
ServerHostImageLiu
+
"/static/chat_image/"
+
data
.
data
.
images_data
[
i
].
img_name
'1'
:
ServerHostImageLiu
+
"/static/chat_image/"
+
data
.
data
.
images_data
[
i
].
img_name
}));
}));
}
};
};
}
}
//处理审核 状态
//处理审核 状态
...
...
public/resource/template/cost_check_template_tpl.html
View file @
44c98351
...
@@ -100,3 +100,22 @@
...
@@ -100,3 +100,22 @@
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
</script>
</script>
<!--详情 转账截图-->
<script
id=
"checkPic_template_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-left"
>
<
td
style
=
"border: 0;"
>
[
%
if
(
item
.
img_type
==
2
)
{
%
]
<
img
src
=
'[%= ServerHostImageLiu + "/static/chat_image/" + it[item]["img_name"] %]'
class
=
"diagram-image J_preview no-scroll-page-img"
>
[
%
}
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"15"
style
=
"text-align:left;border: 0;"
>
暂无数据
<
/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