Commit 4ab928e4 authored by panhong18943's avatar panhong18943

保证金时间价值页面补充优化

parent 7932723b
...@@ -131,10 +131,17 @@ ...@@ -131,10 +131,17 @@
var date = new Date(); var date = new Date();
var year = date.getFullYear(); //年 var year = date.getFullYear(); //年
var month = date.getMonth(); //当前月份前一个月 var month = date.getMonth(); //当前月份前一个月
if (month < 10) { if (month < 10 && month > 0) {
month = '0' + month; month = '0' + month;
}else if(month == 10) {
month = '10';
}else if(month == 11) {
month = '11';
}else if(month == 0) {
year = Number(year) - 1;
month = '12';
} }
month = year + month; month = year + '' + month;
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认赋值【' + month + '】保证金时间价值的重算标识', function () { Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认赋值【' + month + '】保证金时间价值的重算标识', function () {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}'); Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
...@@ -169,10 +176,17 @@ ...@@ -169,10 +176,17 @@
var date = new Date(); var date = new Date();
var year = date.getFullYear(); //年 var year = date.getFullYear(); //年
var month = date.getMonth(); //当前月份前一个月 var month = date.getMonth(); //当前月份前一个月
if (month < 10) { if (month < 10 && month > 0) {
month = '0' + month; month = '0' + month;
}else if(month == 10) {
month = '10';
}else if(month == 11) {
month = '11';
}else if(month == 0) {
year = Number(year) - 1;
month = '12';
} }
month = year + month; month = year + '' + month;
Leaf.showConfirm('${l:HLS.PROMPT}', '<font color="red">请确认是否计算【' + month + '】的保证金时间价值,该任务需执行约30分钟,请耐心等待!</font></br></br><font color="red">【特别注意】任务发起后30分钟内请勿重复点击</font>', function () { Leaf.showConfirm('${l:HLS.PROMPT}', '<font color="red">请确认是否计算【' + month + '】的保证金时间价值,该任务需执行约30分钟,请耐心等待!</font></br></br><font color="red">【特别注意】任务发起后30分钟内请勿重复点击</font>', function () {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}'); Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
...@@ -216,10 +230,17 @@ ...@@ -216,10 +230,17 @@
var date = new Date(); var date = new Date();
var year = date.getFullYear(); //年 var year = date.getFullYear(); //年
var month = date.getMonth(); //当前月份前一个月 var month = date.getMonth(); //当前月份前一个月
if (month < 10) { if (month < 10 && month > 0) {
month = '0' + month; month = '0' + month;
}else if(month == 10) {
month = '10';
}else if(month == 11) {
month = '11';
}else if(month == 0) {
year = Number(year) - 1;
month = '12';
} }
month = year + month; month = year + '' + month;
//month = 202407; //month = 202407;
if (records.length != 1) { if (records.length != 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment