lvhao 3 dias atrás
pai
commit
088643778d
1 arquivos alterados com 25 adições e 0 exclusões
  1. 25 0
      template/erp/fullordertt.html

+ 25 - 0
template/erp/fullordertt.html

@@ -363,6 +363,31 @@ function pljzzddata() {
         }
     });
 };
+
+$(".datatext").on('click',".create_label",function() {
+    layx.load('loadId','创建发货标签中。。。');
+    let id = $(this).data("id");
+    $.get({
+        url: dataurl+"/cbtlabel/"+id,
+        dataType: "json",
+        success: function(c) {
+            layx.destroy('loadId');
+            if (c && c.success) {
+                layx.alert('提示',c.msg,null,{dialogIcon:'success'});
+                setTimeout(function(){
+                    $(".search span").click();
+                }, 1000);
+            } else {
+                layx.alert('错误',c.msg,null,{dialogIcon:'error'});
+            }
+        },
+        error: function(xhr, status, error) {
+            layx.destroy('loadId');
+            layx.alert('错误',error,null,{dialogIcon:'error'});
+        }
+
+    })
+})
 </script>
 <script type="text/javascript" src="{$theme}js/laydate.js"></script>