From d4a6d65f5e449c3e5464aa18ae97bf8953987217 Mon Sep 17 00:00:00 2001 From: LR-20210131IOQH\Administrator <jackcold@163.com> Date: 星期二, 10 八月 2021 15:44:14 +0800 Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/zhengcaioa --- zhengcaioa/zhengcaioa/Views/SalaryCheck/Edit.cshtml | 38 +++++++++++++++++++++++++------------- 1 files changed, 25 insertions(+), 13 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Edit.cshtml index 3296d4c..9b5d903 100644 --- a/zhengcaioa/zhengcaioa/Views/SalaryCheck/Edit.cshtml +++ b/zhengcaioa/zhengcaioa/Views/SalaryCheck/Edit.cshtml @@ -50,47 +50,47 @@ <body class="gray-bg" style="overflow:auto"> <form id="fm" method="post"> - <div class="wrapper wrapper-content" id="ibox-content" style="padding:5px;"> + <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> <div class="row"> <div class="col-sm-6 col-md-6"> @*<div class="ibox float-e-margins"></div>*@ <div id="div_content" class="ibox-content" style="background-color:white;"> <div class="row"> - <div class="clearfix layer-area" style="padding-bottom:10px;"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-3 col-md-3 control-label">鍛樺伐濮撳悕</label> <div class="col-sm-9 col-md-9"> <input class="form-control" labtype="txt" addvisible="true" readonly="readonly" type="text" value="@Model.UserName"> <input type="hidden" name="Id" value="@Model.Id" /> </div> </div> - <div class="clearfix layer-area" style="padding-bottom: 10px;"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-3 col-md-3 control-label">宸ヤ綔閮ㄩ棬</label> <div class="col-sm-9 col-md-9"> <input class="form-control" labtype="txt" addvisible="true" readonly="readonly" type="text" value="@Model.DeptName"> </div> </div> - <div class="clearfix layer-area" style="padding-bottom:10px;"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-3 col-md-3 control-label">濂栭噾</label> <div class="col-sm-9 col-md-9"> <input class="form-control" id="Jiangjin" name="Jiangjin" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Jiangjin" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> </div> </div> - <div class="clearfix layer-area" style="padding-bottom:10px;"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-3 col-md-3 control-label">琛ュ彂宸ヨ祫</label> <div class="col-sm-9 col-md-9"> <input class="form-control" id="Bufagongzi" name="Bufagongzi" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Bufagongzi" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> </div> </div> - <div class="clearfix layer-area" style="padding-bottom:10px;"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-3 col-md-3 control-label">璧斿伩</label> <div class="col-sm-9 col-md-9"> <input class="form-control" id="Peichang" name="Peichang" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Peichang" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> </div> </div> - <div class="clearfix layer-area" style="padding-bottom:10px;"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-3 col-md-3 control-label">绾犻敊</label> <div class="col-sm-9 col-md-9"> - <input class="form-control" id="Jiucuo" name="Jiucuo" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.Jiucuo" onkeyup="value=value.toString().match(/^-?\d+(?:\.\d{0,2})?/)"> + <input class="form-control" id="Jiucuo" name="Jiucuo" labtype="txt" addvisible="true" maxlength="500" editvisible="true" reg="" ismust="true" type="text" value="@Model.Jiucuo" oninput="if(value.length>10)value=value.slice(0,10)" onkeyup="CheckNum(this);"> </div> </div> @@ -104,19 +104,19 @@ </div> <div class="panel-body"> <div class="row"> - <div class="clearfix layer-area" style="padding-bottom:10px;"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-3 col-md-3 control-label">鐢宠瘔鐞嗙敱<i class="red">*</i></label> <div class="col-sm-9 col-md-9"> <textarea class="form-control bt" readonly="readonly" style="resize:none;overflow-y:hidden; height:150px;">@Model.reason</textarea> </div> </div> - <div class="clearfix layer-area" style="padding-bottom:10px;"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-3 col-md-3 control-label">浜夎閲戦<i class="red">*</i></label> <div class="col-sm-9 col-md-9"> <input class="form-control" type="text" value="@Model.amount" readonly="readonly"> </div> </div> - <div class="clearfix layer-area" style="padding-bottom:10px;"> + <div class="clearfix layer-area" style="padding-bottom:15px;"> <label class="text-right col-sm-3 col-md-3 control-label">鍒跺害渚濇嵁<i class="red">*</i></label> <div class="col-sm-9 col-md-9"> <input class="form-control" labtype="txt" type="text" readonly="readonly" value="@Model.basis"> @@ -153,8 +153,8 @@ }); - //var hh = document.body.clientHeight - 200; - //$("#div_content").height(hh); + var hh = document.body.clientHeight - $("#top").height() * 2 - 75; + $("#div_content").height(hh); toastr.options = { "closeButton": true, @@ -226,6 +226,18 @@ parent.layer.close(index); return false; } + + //鐢ㄦ埛鍙兘杈撳叆姝h礋鏁颁笌灏忔暟 + function CheckNum(obj) { + + if (isNaN(obj.value) && !/^-$/.test(obj.value)) { + obj.value = ""; + } + if (!/^[+-]?\d*\.{0,1}\d{0,1}$/.test(obj.value)) { + obj.value = obj.value.replace(/\.\d{2,}$/, obj.value.substr(obj.value.indexOf('.'), 3)); + } + + } </script> </body> </html> \ No newline at end of file -- Gitblit v1.9.1