运行中出现键盘backspace键不起作用的情况运行中出现键盘backspace键不起作用的情况

下面是我修改的代码:希望有知道答案的猿友给说一下

//修改
function uf_modify(policyid0){
    action='mod';
    policyid=policyid0;
    $("#pzcx").hide();
    $("#uf_queryPZ").val('');
    $("#common-popup").show();
    if(document.getElementById("iframe_form").contentWindow.uf_mod(policyid)){
        var arr_data=uf_datasetToArr(document.getElementById("iframe_form").contentWindow.hds_STIncenPol);
        var arr_data2=uf_datasetToArr(document.getElementById("iframe_form").contentWindow.hds_goodsDoc);
        if(arr_data[0].isall == 'Y'){
            radiobtn='';
            isall = 'Y';
            $("#afudiv1").hide();
            $("#check_btn1").prop("checked",true);
            $("#idydmc").hide();
            $("#idydzy1").hide();
            $("#idydzy2").hide();
            $(".common-popup-main").css({height:'215px'});
            $("#yaodian").removeClass('icon-danxuanxuanzhong');
            $("#dianyuan").removeClass('icon-danxuanxuanzhong');
            $("#all_goodsname0").empty();
            $("#all_business").empty();
            $("#all_contact").empty();
            $("#all_goodsname0").append("<option value='"+arr_data2[0].goodsid +"'>"+arr_data2[0].goodsname+"</option>");
        }else{
            isall = 'N';
            $("#afudiv1").show();
            $("#check_btn1").prop("checked",false);
            if(arr_data[0].contactid == '00000000000'){
                radiobtn='YD';
                $(".common-popup-main").css({height:'290px'});
                $("#idydmc").show();
                $("#idydzy1").hide();
                $("#idydzy2").hide();
                $("#dianyuan").removeClass('icon-danxuanxuanzhong');
                $("#yaodian").addClass('icon-danxuanxuanzhong checked');
                document.getElementById("radio_btn2").checked = true;
                $("#all_goodsname0").empty();
                $("#all_business").empty();
                $("#all_contact").empty();
                $("#all_goodsname0").append("<option value='"+arr_data2[0].goodsid +"'>"+arr_data2[0].goodsname+"</option>");
                if(document.getElementById("iframe_form").contentWindow.uf_business()){
                    var arr_business=uf_datasetToArr(document.getElementById("iframe_form").contentWindow.hds_businessdoc);        
                    $("#all_business").append("<option value='"+arr_data[0].businessid +"'>"+arr_data[0].businessname+"</option>");
                    for (var i = 0;i<arr_business.length; i++) {
                        $("#all_business").append("<option value='"+arr_business[i].businessid +"'>"+arr_business[i].businessname+"</option>");
                    }
                }            
            }
            if(arr_data[0].contactid != '00000000000'){
                radiobtn='DY';
                $(".common-popup-main").css({height:'370px'});
                $("#idydmc").show();
                $("#idydzy1").show();
                $("#idydzy2").show();
                $("#yaodian").removeClass('icon-danxuanxuanzhong');
                $("#dianyuan").addClass('icon-danxuanxuanzhong checked');
                document.getElementById("radio_btn3").checked = true;
                $("#all_goodsname0").empty();
                $("#all_business").empty();
                $("#all_contact").empty();
                $("#all_goodsname0").append("<option value='"+arr_data2[0].goodsid +"'>"+arr_data2[0].goodsname+"</option>");                
                $("#all_business").append("<option value='"+arr_data[0].businessid +"'>"+arr_data[0].businessname+"</option>");                
                if(document.getElementById("iframe_form").contentWindow.uf_business()){
                    var arr_business=uf_datasetToArr(document.getElementById("iframe_form").contentWindow.hds_businessdoc);        
                    for (var i = 0;i<arr_business.length; i++) {
                        $("#all_business").append("<option value='"+arr_business[i].businessid +"'>"+arr_business[i].businessname+"</option>");
                    }
                }    
                $("#all_contact").append("<option value='"+arr_data[0].contactid +"'>"+arr_data[0].contact+"</option>");
            }
        }        
        $("#gryj").val(arr_data[0].percomm);
         $("#gsfl").val(arr_data[0].comrebate);
    }
}

很是纠结,如果您知道答案,希望您不吝赐教;谢谢了

相关文章:

  • 2022-12-23
  • 2021-06-07
  • 2021-06-02
  • 2022-12-23
  • 2021-08-09
  • 2022-03-11
猜你喜欢
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-05-05
  • 2021-10-25
相关资源
相似解决方案