From d17c089f1d7ff3be848b05161917346e7f664a1d Mon Sep 17 00:00:00 2001
From: mrzhssss <pro6@qq.com>
Date: 星期二, 26 四月 2022 15:17:53 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/quality/quality.js |   61 ++++++++++++++++--------------
 1 files changed, 32 insertions(+), 29 deletions(-)

diff --git a/src/main/webapp/static/js/quality/quality.js b/src/main/webapp/static/js/quality/quality.js
index e1ac6c5..c8bef69 100644
--- a/src/main/webapp/static/js/quality/quality.js
+++ b/src/main/webapp/static/js/quality/quality.js
@@ -24,6 +24,7 @@
             {type: 'checkbox'}
             //,{field: 'id', align: 'center',title: 'ID'}
             ,{field: 'billNo', align: 'center',title: '妫�楠岀紪鍙�'}
+            ,{field: 'uuid', align: 'center',title: '鍏ュ簱鍗曞彿'}
             ,{field: 'auditStatus$', align: 'center',title: '瀹℃牳鐘舵��'}
             ,{field: 'memo', align: 'center',title: '澶囨敞', hide:true}
             ,{align: 'center', title: '鏄庣粏', toolbar: '#tbLook'}
@@ -78,6 +79,7 @@
         switch(obj.event) {
             case 'addData':
                 showEditModel();
+                initOrderNo1();
                 break;
             case 'deleteData':
                if (checkStatus.length === 0) {
@@ -152,7 +154,7 @@
                 layer.open({
                     type: 1,
                     title: false,
-                    area: '1000px',
+                    area: '1200px',
                     offset: [offset.top + 'px', (offset.left - 530 + $a.outerWidth()) + 'px'],
                     shade: .01,
                     shadeClose: true,
@@ -172,15 +174,15 @@
                             cols: [[
                                 // {type: 'numbers'},
                                 // {field: 'billNo', title: '妫�楠岀紪鍙�', align: 'center'},
-                                {field: 'seqNo', title: '鍗曟嵁琛屽彿', align: 'center'},
-                                {field: 'orderNo', title: '鍏ュ簱鍗曞彿', align: 'center'},
-                                {field: 'anfme', title: '寰呭叆搴撴暟閲�', align: 'center'},
-                                {field: 'matnr', title: '浜у搧ID', align: 'center'},
-                                {field: 'maktx', title: '浜у搧鍚嶇О', align: 'center'},
+                                {field: 'seqNo', title: '琛屽彿', align: 'center', width:60},
+                                {field: 'orderNo', title: '鍏ュ簱鍗曞彿', align: 'center', width:175},
+                                {field: 'anfme', title: '寰呭叆鏁伴噺', align: 'center', width:90},
+                                {field: 'matnr', title: '浜у搧缂栫爜', align: 'center', width:175},
+                                {field: 'maktx', title: '浜у搧鍚嶇О', align: 'center', width:175},
                                 // {field: 'maktx', title: '浜у搧鍚嶇О', align: 'center'},
                                 {field: 'prodDate$', title: '鐢熶骇鏃ユ湡', align: 'center'},
-                                {field: 'quaStatus$', title: '妫�楠岀姸鎬�', align: 'center'},
-                                {field: 'rejectQty', title: '涓嶅悎鏍兼暟閲�', align: 'center'},
+                                {field: 'quaStatus$', title: '妫�楠岀姸鎬�', align: 'center', width:90},
+                                {field: 'rejectQty', title: '涓嶅悎鏍兼暟閲�', align: 'center', width:100},
                                 {field: 'rejectReason', title: '涓嶅悎鏍煎師鍥�', align: 'center'},
 
                             ]],
@@ -233,12 +235,13 @@
                                 layer.close(dIndex);
                                 layer.msg(res.msg, {icon: 1});
                                 tableReload();
+                                location.reload();
                             } else if (res.code === 403){
                                 top.location.href = baseUrl+"/";
                             }else {
                                 layer.msg(res.msg, {icon: 2});
                             }
-                            location.reload();
+                            // location.reload();
                         }
                     })
                     return false;
@@ -341,23 +344,23 @@
     return billNO;
 }
 
-// function initOrderNo1() {
-//     $.ajax({
-//         url: baseUrl+"/work/orderNo/init1",
-//         headers: {'token': localStorage.getItem('token')},
-//         async: false,
-//         method: 'GET',
-//         success: function (res) {
-//             if (res.code === 200){
-//                 $('#billNo').val(res.data)
-//             } else if (res.code === 403){
-//                 top.location.href = baseUrl+"/";
-//             } else {
-//                 notice.error({
-//                     title: '娑堟伅閫氱煡',
-//                     message: res.msg
-//                 });
-//             }
-//         }
-//     });
-// }
\ No newline at end of file
+function initOrderNo1() {
+    $.ajax({
+        url: baseUrl+"/quality/orderNo/init1",
+        headers: {'token': localStorage.getItem('token')},
+        async: false,
+        method: 'GET',
+        success: function (res) {
+            if (res.code === 200){
+                $('#billNo').val(res.data)
+            } else if (res.code === 403){
+                top.location.href = baseUrl+"/";
+            } else {
+                notice.error({
+                    title: '娑堟伅閫氱煡',
+                    message: res.msg
+                });
+            }
+        }
+    });
+}
\ No newline at end of file

--
Gitblit v1.9.1