The overtime time of the oa process form of the PWC is greater than the rest time code block

<script src="/zhzy/js/weaver_bj.js"></script>
<script >
jQuery(document).ready(function(){
    
    
	var sqr = "field8416";//申请人表单id
	var sysj = "field8427";//加班剩余时间表单id
	var txsj = "field8426"; //调休时间表单id
	var userid = jQuery('#'+sqr).val();
	jQuery.ajax({
    
    
		url : "/zhzy/custompage/AjaxData_wf166.jsp?userid="+userid,
		type : 'post',
		dataType : 'text',
		async : false,
		success : function(data){
    
    
			var str = data.replace(/\s+/g,"");
			jQuery('#'+sysj).val(str); 
jQuery('#'+sysj).hide();
			jQuery('#'+sysj+"span").html(str); 
		}
	});
	
	jsAOP(window,{
    
    'doSubmitNoBack':{
    
    before:beforeSubmit}});
	jsAOP(window,{
    
    'doSubmitBack':{
    
    before:beforeSubmit}});
	
	function beforeSubmit(){
    
    
		var tx = jQuery('#'+txsj).val();
		var sy = jQuery('#'+sysj).val();
		if(tx/0.5*4 > sy) {
    
    
			alert("调休时间大于加班剩余时间!");
			return false;
		}
		return true;
	}
});
</script>

Please leave a message in the comment area and discuss together~~~

If necessary, please contact WeChat: hdygzh2019 At the same time, please explain your intention and make progress together! ! !

Guess you like

Origin blog.csdn.net/Y_6155/article/details/109019018