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
305acadf
Commit
305acadf
authored
Jul 26, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
be0e4932
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
21 deletions
+28
-21
quicklyGenerate.js
public/resource/js/quicklyGenerate.js
+28
-21
No files found.
public/resource/js/quicklyGenerate.js
View file @
305acadf
...
...
@@ -7,6 +7,7 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
isAjaxSaving
:
false
,
//防重复提交
init
:
function
()
{
//初始化时间
var
myDate
=
new
Date
();
...
...
@@ -81,26 +82,33 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
},
totalFee
:
function
()
{
//一键生成
$
.
ajax
({
url
:
'/index/creationStoreFee'
,
type
:
'post'
,
async
:
true
,
data
:
{
"setting_date"
:
$
(
"#comit_time_start"
).
val
()
+
'-01'
,
"agent_id"
:
user_info_obj
.
id
,
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
data
.
msg
);
}
else
{
alert
(
data
.
msg
);
}
}
});
if
(
!
cost
.
isAjaxSaving
){
cost
.
isAjaxSaving
=
true
;
$
.
ajax
({
url
:
'/index/creationStoreFee'
,
type
:
'post'
,
async
:
true
,
data
:
{
"setting_date"
:
$
(
"#comit_time_start"
).
val
()
+
'-01'
,
"agent_id"
:
user_info_obj
.
id
,
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功'
);
}
else
{
alert
(
data
.
msg
);
}
},
complete
:
function
(
xhr
,
textStatus
){
cost
.
isAjaxSaving
=
false
;
//请求结束,再改为初始状态
if
(
textStatus
===
'timeout'
){
layerTipsX
(
'请求超时'
);
};
}
});
}
},
//获取审核记录
getList
:
function
(){
...
...
@@ -117,7 +125,6 @@ define(['doT', 'text!temp/cost_details_template_tpl.html', 'css!style/home.css',
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
+
'、'
;
...
...
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