lvhao 1 неделя назад
Родитель
Сommit
c62376be0d
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      template/erp/whlabel_typejs.html

+ 3 - 1
template/erp/whlabel_typejs.html

@@ -378,10 +378,12 @@ $(".dccrtype").click(function() {
         let url = "/whlabel/"+$("select[name=dccz]").find("option:selected").data("url")+"js?excel="+$("select[name=dccz]").find("option:selected").val()+"&"+f;
         let url = "/whlabel/"+$("select[name=dccz]").find("option:selected").data("url")+"js?excel="+$("select[name=dccz]").find("option:selected").val()+"&"+f;
         $("select[name=dccz] option:eq(0)").prop('selected','selected');
         $("select[name=dccz] option:eq(0)").prop('selected','selected');
         $.get(url,{},function(res){
         $.get(url,{},function(res){
+            layx.destroy('loadId');
             if(res.code == 1){
             if(res.code == 1){
                 importRukuData(res.data,res.title)
                 importRukuData(res.data,res.title)
             }else{
             }else{
-
+                layx.alert('错误',res.msg,function(id,button){
+                },{dialogIcon:'error'});
             }
             }
         },'json')
         },'json')