Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
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
hlcm
leaf-hlcm
Commits
d614bfdb
Commit
d614bfdb
authored
Apr 08, 2024
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
佣金政策报表开发
parent
a2b52f64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
bp_agent_bounty_create.lview
...in/webapp/modules/hls/HLS303/bp_agent_bounty_create.lview
+2
-0
bp_agent_bounty_detail.lview
...in/webapp/modules/hls/HLS303/bp_agent_bounty_detail.lview
+19
-7
No files found.
src/main/webapp/modules/hls/HLS303/bp_agent_bounty_create.lview
View file @
d614bfdb
...
...
@@ -46,9 +46,11 @@
if(wflStatus=='NEW' || wflStatus=='APPROVED_RETURN'){
param['function_code'] = 'HLS303_BD';
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'MODIFY';
param['url_title'] = '佣金政策维护';
param['policy_hd_id'] = policy_hd_id;
param['bp_id'] = bpId;
param['extra_nam'] = record.get('extra_nam');
}
if(wflStatus=='APPROVING' || wflStatus=='APPROVED'){
param['function_code'] = 'HLS303_BD';
...
...
src/main/webapp/modules/hls/HLS303/bp_agent_bounty_detail.lview
View file @
d614bfdb
...
...
@@ -76,6 +76,18 @@
}
}
};
/*
时间戳转换为时间
*/
function
RetimestampToTime(timestamp)
{
timestamp =
timestamp
?
timestamp
:
null;
var
date =
new
Date(timestamp);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
var
Y =
date.getFullYear()
+
'-';
var
M =
(date.getMonth()
+
1
<
10
?
'0'
+
(date.getMonth()
+
1)
:
String(date.getMonth()
+
1))
+
'-';
var
D =
(date.getDate()
<
10
?
'0'
+
date.getDate()
:
String(date.getDate()));
//
var
h =
(date.getHours()
<
10
?
'0'
+
date.getHours()
:
date.getHours())
+
':';
//
var
m =
(date.getMinutes()
<
10
?
'0'
+
date.getMinutes()
:
date.getMinutes())
+
':';
//
var
s =
date.getSeconds()
<
10
?
'0'
+
date.getSeconds()
:
date.getSeconds();
return
Y
+
M
+
D;
};
//提交审批
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click']
=
function()
{
debugger;
...
...
@@ -86,8 +98,8 @@
var
policyHdId=
record.get('policy_hd_id');
var
bpId=
record.get('bp_id');
var
division=
record.get('division');
var
calcStartDate =
timestampToTime(Date.parse(record.get('calc_start_date')));
var
calcEndDate =
timestampToTime(Date.parse(record.get('calc_end_date')));
var
calcStartDate =
Re
timestampToTime(Date.parse(record.get('calc_start_date')));
var
calcEndDate =
Re
timestampToTime(Date.parse(record.get('calc_end_date')));
if(
record.dirty=
=true){
Leaf.showMessage('${l:PROMPT}','${l:HLS.EXECUTE_AFTER_SAVE}');
return;
...
...
@@ -113,16 +125,16 @@
success:
function(res)
{
if(res.result.record
!=undefined){
if(
res.result.record.length =
=undefined){
var
resStartDate=
timestampToTime(Date.parse(res.result.record.calc_start_date));
var
resEndDate=
timestampToTime(Date.parse(res.result.record.calc_end_date));
var
resStartDate=
Re
timestampToTime(Date.parse(res.result.record.calc_start_date));
var
resEndDate=
Re
timestampToTime(Date.parse(res.result.record.calc_end_date));
if(resStartDate<calcStartDate<resEndDate
||
resStartDate<calcEndDate<resEndDate){
$L.showErrorMessage('提示','该代理店项下存在重叠的政策时间,请先检查!');
return;
}
}else
{
for(var
i=
0;i<res.result.record.length;i++){
var
resStartDate=
timestampToTime(Date.parse(res.result.record[i].calc_start_date));
var
resEndDate=
timestampToTime(Date.parse(res.result.record[i].calc_end_date));
var
resStartDate=
Re
timestampToTime(Date.parse(res.result.record[i].calc_start_date));
var
resEndDate=
Re
timestampToTime(Date.parse(res.result.record[i].calc_end_date));
if(resStartDate<calcStartDate<resEndDate
||
resStartDate<calcEndDate<resEndDate){
$L.showErrorMessage('提示','该代理店项下存在重叠的政策时间,请先检查!');
return;
...
...
@@ -196,7 +208,7 @@
}
}
var
division =
record.get('division_n');
if(
record.
isNew=
=true
&&
record.get('wfl_status')
!='APPROVING'
&&
record.get('policy_name')
==
undefined
){
if(record.
get('wfl_status')
!='APPROVING'
){
var
calcStartDate =
timestampToTime(Date.parse(record.get('calc_start_date')));
var
calcEndDate =
timestampToTime(Date.parse(record.get('calc_end_date')));
record.set('policy_name','${/parameter/@extra_nam}'+'-'+division+calcStartDate+'-'+calcEndDate);
...
...
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