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
bd495dd9
Commit
bd495dd9
authored
May 06, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务日报截图
parent
eab758a4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
4 deletions
+48
-4
daily_details.html
application/index/view/finance/daily_details.html
+1
-1
financial_manager_daily_list.js
public/resource/js/financial_manager_daily_list.js
+43
-3
main.js
public/resource/js/main.js
+4
-0
html2canvas.min.js
public/resource/lib/js/html2canvas.min.js
+0
-0
No files found.
application/index/view/finance/daily_details.html
View file @
bd495dd9
...
@@ -324,7 +324,7 @@
...
@@ -324,7 +324,7 @@
}
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
id=
"screen_shot_area"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel panel-default"
>
...
...
public/resource/js/financial_manager_daily_list.js
View file @
bd495dd9
define
([
'doT'
,
'text!temp/financial_manager_daily_list_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
define
([
'doT'
,
'html2canvas'
,
'text!temp/financial_manager_daily_list_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
html2canvas
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
bargain
=
{
bargain
=
{
pageNo
:
1
,
pageNo
:
1
,
...
@@ -24,7 +24,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -24,7 +24,7 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
payment_details_money
:
''
,
payment_details_money
:
''
,
receivedMoneyLiu
:
''
,
receivedMoneyLiu
:
''
,
isAjaxSaving
:
false
,
//防重复提交 财务日报
isAjaxSaving
:
false
,
//防重复提交 财务日报
dataUrl
:
''
,
//文件流
init
:
function
()
{
init
:
function
()
{
//初始化时间
//初始化时间
var
myDate
=
new
Date
();
var
myDate
=
new
Date
();
...
@@ -79,7 +79,12 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -79,7 +79,12 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}
}
bargain
.
getList
(
1
);
bargain
.
getList
(
1
);
});
});
//测试 截图
// _doc.on('click', '.is-submit-pass-btn', function(e) {
// e.preventDefault();
// e.stopPropagation();
// bargain.saveHtml2Image();;
// });
//财务日报审核 点击关闭按钮
//财务日报审核 点击关闭按钮
_doc
.
on
(
'click'
,
'.is-close'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'.is-close'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -1057,6 +1062,38 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -1057,6 +1062,38 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
}
}
});
});
},
},
//截图
saveHtml2Image
:
function
(
fn
)
{
$
(
"body,html"
).
animate
({
scrollTop
:
0
},
0
);
//必须把页面滚动到最顶部,不然截图会不完整
var
obj
=
$
(
"#screen_shot_area"
);
var
width
=
obj
.
width
();
var
height
=
obj
.
height
();
html2canvas
(
$
(
"#screen_shot_area"
),{
width
:
width
+
20
,
height
:
height
,
background
:
"rgba(255,255,255,1)"
,
onrendered
:
function
(
canvas
)
{
var
dataUrl
=
canvas
.
toDataURL
(
'image/jpeg'
);
bargain
.
savePicLiu
(
dataUrl
);
}
});
},
savePicLiu
:
function
(
url
)
{
$
.
ajax
({
url
:
'/index/dailyBackImg'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"daily_id"
:
bargain
.
daily_id
,
//日报id
"img"
:
url
,
//文件流
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
}
}
});
},
getDistrictStoreList
:
function
(
id
,
fn
)
{
getDistrictStoreList
:
function
(
id
,
fn
)
{
$
.
ajax
({
$
.
ajax
({
url
:
'/index/getDistrictStoreList'
,
url
:
'/index/getDistrictStoreList'
,
...
@@ -1248,6 +1285,9 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
...
@@ -1248,6 +1285,9 @@ define(['doT', 'text!temp/financial_manager_daily_list_template_tpl.html', 'css!
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功'
);
alert
(
'提交成功'
);
if
(
bargain
.
operationStatus
==
1
){
bargain
.
saveHtml2Image
();
//截图 转为已审核
}
$
(
"#modal_financialremark"
).
modal
(
'hide'
);
//提交成功后 关闭弹窗
$
(
"#modal_financialremark"
).
modal
(
'hide'
);
//提交成功后 关闭弹窗
bargain
.
getList
();
bargain
.
getList
();
// location.href='/index/dailyList'
// location.href='/index/dailyList'
...
...
public/resource/js/main.js
View file @
bd495dd9
...
@@ -24,6 +24,7 @@ require.config ({
...
@@ -24,6 +24,7 @@ require.config ({
// 'datetimepicker': 'lib/js/bootstrap-datetimepicker.min',
// 'datetimepicker': 'lib/js/bootstrap-datetimepicker.min',
'datetimepicker'
:
'lib/js/bootstrap-datetimepicker'
,
'datetimepicker'
:
'lib/js/bootstrap-datetimepicker'
,
'PaginationLiu'
:
'lib/js/PaginationLiu'
,
'PaginationLiu'
:
'lib/js/PaginationLiu'
,
'html2canvas'
:
'lib/js/html2canvas.min'
,
'pagination'
:
'lib/js/Pagination'
,
'pagination'
:
'lib/js/Pagination'
,
'paginationStart'
:
'lib/js/zw.pagination'
,
'paginationStart'
:
'lib/js/zw.pagination'
,
'paginationStartLiu'
:
'lib/js/liu.pagination'
,
'paginationStartLiu'
:
'lib/js/liu.pagination'
,
...
@@ -78,6 +79,9 @@ require.config ({
...
@@ -78,6 +79,9 @@ require.config ({
'PaginationLiu'
:{
'PaginationLiu'
:{
'exports'
:
'PaginationLiu'
'exports'
:
'PaginationLiu'
},
},
'html2canvas'
:{
'exports'
:
'html2canvas'
},
'paginationStartLiu'
:{
'paginationStartLiu'
:{
'exports'
:
'paginationStartLiu'
'exports'
:
'paginationStartLiu'
},
},
...
...
public/resource/lib/js/html2canvas.min.js
0 → 100644
View file @
bd495dd9
This diff is collapsed.
Click to expand it.
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