From 5d055b6505add5aef665578775566c3f1bad67bf Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 19 六月 2020 16:20:33 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/basDevp/basDevp.js |    2 
 src/main/webapp/static/js/wrkMast/wrkMast.js |   88 +++++++++++++++++++-------------------------
 2 files changed, 39 insertions(+), 51 deletions(-)

diff --git a/src/main/webapp/static/js/basDevp/basDevp.js b/src/main/webapp/static/js/basDevp/basDevp.js
index 45c56b5..abfca61 100644
--- a/src/main/webapp/static/js/basDevp/basDevp.js
+++ b/src/main/webapp/static/js/basDevp/basDevp.js
@@ -75,7 +75,7 @@
                     html += ">";
                     return html;
                 }}
-            ,{field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�', edit: true, style:'color: blue;font-weight: bold'}
+            ,{field: 'wrkNo', align: 'center',title: '宸ヤ綔鍙�',  style:'color: blue;font-weight: bold'}
             // ,{field: 'wrkNo1', align: 'center',title: ''}
             ,{field: 'ctnType', align: 'center',title: '瀹瑰櫒绫诲瀷'}
             ,{field: 'barcode', align: 'center',title: '鏉″舰鐮�'}
diff --git a/src/main/webapp/static/js/wrkMast/wrkMast.js b/src/main/webapp/static/js/wrkMast/wrkMast.js
index 17e4cca..9cff5c9 100644
--- a/src/main/webapp/static/js/wrkMast/wrkMast.js
+++ b/src/main/webapp/static/js/wrkMast/wrkMast.js
@@ -135,31 +135,25 @@
                         ioPri: track.ioPri
                     });
                 });
-                if (list.length === 0){
-                    layer.msg('璇烽�夋嫨鏁版嵁');
-                } else {
-                    layer.confirm('纭畾澧炲姞'+(list.length===1?'姝�':list.length)+'鏉℃暟鎹殑浼樺厛绾у悧', function(){
-                        $.ajax({
-                            url: baseUrl+"/wrkMast/add/pri/auth",
-                            headers: {'token': localStorage.getItem('token')},
-                            contentType:'application/json;charset=UTF-8',
-                            data: JSON.stringify(list),
-                            method: 'POST',
-                            traditional:true,
-                            success: function (res) {
-                                layer.closeAll();
-                                if (res.code === 200){
-                                    $(".layui-laypage-btn")[0].click();
-                                    layer.msg(res.msg);
-                                } else if (res.code === 403){
-                                    top.location.href = baseUrl+"/";
-                                } else {
-                                    layer.msg(res.msg)
-                                }
-                            }
-                        })
-                    });
-                }
+                $.ajax({
+                    url: baseUrl+"/wrkMast/add/pri/auth",
+                    headers: {'token': localStorage.getItem('token')},
+                    contentType:'application/json;charset=UTF-8',
+                    data: JSON.stringify(list),
+                    method: 'POST',
+                    traditional:true,
+                    success: function (res) {
+                        layer.closeAll();
+                        if (res.code === 200){
+                            $(".layui-laypage-btn")[0].click();
+                            layer.msg(res.msg);
+                        } else if (res.code === 403){
+                            top.location.href = baseUrl+"/";
+                        } else {
+                            layer.msg(res.msg)
+                        }
+                    }
+                })
                 break;
             // 闄嶄綆浼樺厛绾�
             case 'priRed':
@@ -171,31 +165,25 @@
                         ioPri: track.ioPri
                     });
                 });
-                if (list.length === 0){
-                    layer.msg('璇烽�夋嫨鏁版嵁');
-                } else {
-                    layer.confirm('纭畾闄嶄綆'+(list.length===1?'姝�':list.length)+'鏉℃暟鎹殑浼樺厛绾у悧', function(){
-                        $.ajax({
-                            url: baseUrl+"/wrkMast/red/pri/auth",
-                            headers: {'token': localStorage.getItem('token')},
-                            contentType:'application/json;charset=UTF-8',
-                            data: JSON.stringify(list),
-                            method: 'POST',
-                            traditional:true,
-                            success: function (res) {
-                                layer.closeAll();
-                                if (res.code === 200){
-                                    $(".layui-laypage-btn")[0].click();
-                                    layer.msg(res.msg);
-                                } else if (res.code === 403){
-                                    top.location.href = baseUrl+"/";
-                                } else {
-                                    layer.msg(res.msg)
-                                }
-                            }
-                        })
-                    });
-                }
+                $.ajax({
+                    url: baseUrl+"/wrkMast/red/pri/auth",
+                    headers: {'token': localStorage.getItem('token')},
+                    contentType:'application/json;charset=UTF-8',
+                    data: JSON.stringify(list),
+                    method: 'POST',
+                    traditional:true,
+                    success: function (res) {
+                        layer.closeAll();
+                        if (res.code === 200){
+                            $(".layui-laypage-btn")[0].click();
+                            layer.msg(res.msg);
+                        } else if (res.code === 403){
+                            top.location.href = baseUrl+"/";
+                        } else {
+                            layer.msg(res.msg)
+                        }
+                    }
+                })
                 break;
             case 'addData':
                 layer.open({

--
Gitblit v1.9.1