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
25ddd87d
Commit
25ddd87d
authored
Apr 30, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计条件判断
parent
63603a60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
26 deletions
+69
-26
daily_total.js
public/resource/js/daily_total.js
+69
-26
No files found.
public/resource/js/daily_total.js
View file @
25ddd87d
...
...
@@ -32,51 +32,94 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
});
},
buildParams
:
function
()
{
buildParams
:
function
(
is_string
)
{
var
start_time
=
$
(
'#comit_time_start'
).
val
();
var
end_time
=
$
(
'#comit_time_end'
).
val
();
var
create_start_time
=
$
(
'#create_start_time'
).
val
();
var
create_end_time
=
$
(
'#create_end_time'
).
val
();
var
params_string
=
""
;
var
params
=
{};
if
(
start_time
)
{
params_string
+=
"start_time="
+
start_time
+
"&"
;
params
.
start_time
=
start_time
;
}
if
(
end_time
)
{
params_string
+=
"end_time="
+
end_time
+
"&"
;
params
.
end_time
=
end_time
;
}
if
(
create_start_time
)
{
params_string
+=
"create_start_time="
+
create_start_time
+
"&"
;
params
.
create_start_time
=
create_start_time
;
}
if
(
create_end_time
)
{
params_string
+=
"create_end_time="
+
create_end_time
+
"&"
;
params
.
create_end_time
=
create_end_time
;
}
return
params_string
;
if
(
is_string
)
{
return
params_string
;
}
else
{
return
params
;
}
},
getList
:
function
(){
$
.
ajax
({
url
:
'/index/getPaylogTotalPrice?'
+
adjustment
.
buildParams
(),
type
:
'GET'
,
async
:
true
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
$
(
'.total_commission'
).
html
(
data
.
data
.
total_commission
);
$
(
'.not_open_commission'
).
html
(
data
.
data
.
not_open_commission
);
$
(
'.open_commission'
).
html
(
data
.
data
.
open_commission
);
$
(
'.total_intention_recorded'
).
html
(
data
.
data
.
total_intention_recorded
);
$
(
'.intention_recorded'
).
html
(
data
.
data
.
intention_recorded
);
$
(
'.intention_adjustment'
).
html
(
data
.
data
.
intention_adjustment
);
$
(
'.intention_refund'
).
html
(
data
.
data
.
intention_refund
);
$
(
'.total_custody_recorded'
).
html
(
data
.
data
.
total_custody_recorded
);
$
(
'.custody_recorded'
).
html
(
data
.
data
.
custody_recorded
);
$
(
'.custody_adjustment'
).
html
(
data
.
data
.
custody_adjustment
);
$
(
'.custody_refund'
).
html
(
data
.
data
.
custody_refund
);
$
(
'.wait_total_fee'
).
html
(
data
.
data
.
wait_total_fee
);
}
else
{
alert
(
data
.
msg
);
}
}
});
var
params
=
adjustment
.
buildParams
(
0
);
if
((
params
.
start_time
==
undefined
&&
params
.
end_time
==
undefined
)
&&
(
params
.
create_start_time
==
undefined
&&
params
.
create_end_time
==
undefined
))
{
alert
(
"请选择时间条件"
);
return
false
;
}
if
(
params
.
start_time
&&
params
.
end_time
==
undefined
)
{
alert
(
"请选择入账日期结束时间"
);
return
false
;
}
if
(
params
.
end_time
&&
params
.
start_time
==
undefined
)
{
alert
(
"请选择入账日期开始时间"
);
return
false
;
}
if
(
params
.
create_start_time
&&
params
.
create_end_time
==
undefined
)
{
alert
(
"请选择收款结束时间"
);
return
false
;
}
if
(
params
.
create_end_time
&&
params
.
create_start_time
==
undefined
)
{
alert
(
"请选择收款开始时间"
);
return
false
;
}
if
(
params
.
start_time
&&
params
.
end_time
&&
params
.
create_start_time
&&
params
.
create_end_time
)
{
alert
(
"两个时间段不能同时查询"
);
return
false
;
}
$
.
ajax
({
url
:
'/index/getPaylogTotalPrice?'
+
adjustment
.
buildParams
(
1
),
type
:
'GET'
,
async
:
true
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
$
(
'.total_commission'
).
html
(
data
.
data
.
total_commission
);
$
(
'.not_open_commission'
).
html
(
data
.
data
.
not_open_commission
);
$
(
'.open_commission'
).
html
(
data
.
data
.
open_commission
);
$
(
'.total_intention_recorded'
).
html
(
data
.
data
.
total_intention_recorded
);
$
(
'.intention_recorded'
).
html
(
data
.
data
.
intention_recorded
);
$
(
'.intention_adjustment'
).
html
(
data
.
data
.
intention_adjustment
);
$
(
'.intention_refund'
).
html
(
data
.
data
.
intention_refund
);
$
(
'.total_custody_recorded'
).
html
(
data
.
data
.
total_custody_recorded
);
$
(
'.custody_recorded'
).
html
(
data
.
data
.
custody_recorded
);
$
(
'.custody_adjustment'
).
html
(
data
.
data
.
custody_adjustment
);
$
(
'.custody_refund'
).
html
(
data
.
data
.
custody_refund
);
$
(
'.wait_total_fee'
).
html
(
data
.
data
.
wait_total_fee
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
};
return
adjustment
;
...
...
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