付款单加备注
This commit is contained in:
parent
702ddaf6a9
commit
adc378a86d
|
|
@ -101,6 +101,7 @@ body {
|
|||
font-size: 15px;
|
||||
color: #262626;
|
||||
letter-spacing: 1px;
|
||||
height: 55px;
|
||||
}
|
||||
|
||||
.layui-table thead tr {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ function submitApply(data) {
|
|||
|
||||
});
|
||||
} else {
|
||||
layer.msg(result.data, {icon: 2});
|
||||
layer.msg(result.msg, {icon: 2});
|
||||
}
|
||||
}, function (xhr, status, error) {
|
||||
layer.close(loadingMsg); // 关闭提示层
|
||||
|
|
|
|||
|
|
@ -285,7 +285,7 @@ function formatToTwoDecimals(num){ return isNaN(Number(num))? '0.00': Number(num
|
|||
$(document).on('input','.actual-gls,.actual-money,.actual-dc-money',function(){
|
||||
this.value=this.value.replace(/[^0-9.]/g,'').replace(/\.{2,}/g,'.').replace(/^0+(?=\d)/,'');
|
||||
if(this.value.indexOf('.')!==-1){ const parts=this.value.split('.'); this.value=parts[0]+'.'+parts[1].substring(0,2);}
|
||||
const numValue=Number(this.value||0); if(numValue>100000000) this.value=(100000000).toFixed(2);
|
||||
const numValue=Number(this.value||0); if(numValue>100000) this.value=(100000).toFixed(2);
|
||||
});
|
||||
$(document).on('blur','.actual-gls,.actual-money,.actual-dc-money',function(){ this.value=formatToTwoDecimals(this.value); });
|
||||
|
||||
|
|
|
|||
|
|
@ -453,7 +453,7 @@ $(document).on('input', '.actual-gls, .actual-money, .actual-dc-money', function
|
|||
}
|
||||
|
||||
const numValue = Number(this.value || 0);
|
||||
const maxAmount = 100000000;
|
||||
const maxAmount = 100000;
|
||||
if (numValue > maxAmount) {
|
||||
this.value = maxAmount.toFixed(2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue