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
d697f1a2
Commit
d697f1a2
authored
Jul 29, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提醒
parent
786a5aea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
quicklyGenerate.js
public/resource/js/quicklyGenerate.js
+27
-1
No files found.
public/resource/js/quicklyGenerate.js
View file @
d697f1a2
...
@@ -48,7 +48,9 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
...
@@ -48,7 +48,9 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
//点击一键生成
//点击一键生成
$
(
document
).
on
(
'click'
,
'#key'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'#key'
,
function
(
e
){
that
.
totalFee
();
// 判断有没有产生数据
that
.
getCost
();
// that.totalFee();
});
});
//点击考勤
//点击考勤
$
(
document
).
on
(
'click'
,
'#kaoqin'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'#kaoqin'
,
function
(
e
){
...
@@ -80,6 +82,30 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
...
@@ -80,6 +82,30 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
});
});
},
//判断有没有产生数据
getCost
:
function
(){
var
that
=
cost
;
var
params
=
{};
params
.
setting_date
=
$
(
'#comit_time_start'
).
val
()
+
'-01'
;
$
.
get
(
'/index/getCost'
,
params
,
function
(
data
){
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
//确定再次生成数据 弹框
if
(
!
confirm
(
data
.
msg
))
{
return
;
}
else
{
that
.
totalFee
();
//一键生成
}
}
else
{
that
.
totalFee
();
//一键生成
};
}
else
{
alert
(
'数据错误'
);
};
},
'json'
);
},
},
totalFee
:
function
()
{
//一键生成
totalFee
:
function
()
{
//一键生成
if
(
!
cost
.
isAjaxSaving
){
if
(
!
cost
.
isAjaxSaving
){
...
...
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