From 9d831229b5a8c238ce55f4ee8de7433c56cbe3a8 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期五, 14 十一月 2025 08:30:35 +0800
Subject: [PATCH] *

---
 src/main/webapp/static/js/locDetl/locDetl.js |   80 +++++++++++++++++++++++++++++++++++++---
 1 files changed, 74 insertions(+), 6 deletions(-)

diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js
index 9072da6..26c9c1f 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -28,19 +28,22 @@
         ,{field: 'volume', align: 'center',title: '鍗曠姣涢噸', hide: false}
         ,{field: 'threeCode', align: 'center',title: '绠卞瓙灏哄', hide: true}
         ,{field: 'supp', align: 'center',title: '渚涘簲鍟�', hide: true}
-        ,{field: 'suppCode', align: 'center',title: '渚涘簲鍟嗙紪鐮�', hide: true}
-        ,{field: 'beBatch$', align: 'center',title: '鏄惁鎵规', hide: true}
-        ,{field: 'deadTime', align: 'center',title: '淇濊川鏈�', hide: true}
-        ,{field: 'deadWarn', align: 'center',title: '棰勮澶╂暟', hide: true}
-        ,{field: 'source$', align: 'center',title: '鍒惰喘', hide: true}
-        ,{field: 'check$', align: 'center',title: '瑕佹眰妫�楠�', hide: true}
+        // ,{field: 'suppCode', align: 'center',title: '渚涘簲鍟嗙紪鐮�', hide: true}
+        // ,{field: 'beBatch$', align: 'center',title: '鏄惁鎵规', hide: true}
+        // ,{field: 'deadTime', align: 'center',title: '淇濊川鏈�', hide: true}
+        // ,{field: 'deadWarn', align: 'center',title: '棰勮澶╂暟', hide: true}
+        // ,{field: 'source$', align: 'center',title: '鍒惰喘', hide: true}
+        // ,{field: 'check$', align: 'center',title: '瑕佹眰妫�楠�', hide: true}
         ,{field: 'danger$', align: 'center',title: '寰呭垽', hide: false}
+        ,{field: 'memo', align: 'center',title: '澶囨敞', hide: false}
 
     ];
 
     // cols.push.apply(cols, detlCols);
     cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',hide: true}
         ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'}
+        ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:160}
+
     )
     return cols;
 }
@@ -258,6 +261,40 @@
                     }
                 });
                 break;
+            case 'inspection':
+                var model = top.reObject(data).model;
+                if (model === undefined) {
+                    layer.msg("鏃犳暟鎹�");
+                }
+                layer.confirm('纭鍚慚ES鏍″噯鏄惁鍚堟牸', {
+                    shade: .1,
+                    skin: 'layui-layer-admin'
+                }, function (i) {
+                    $.ajax({
+                        url: baseUrl + "/actual/shipment/locDetl/report/auth",
+                        headers: {'token': localStorage.getItem('token')},
+                        data: {
+                            model: model // 浼犻�掔粍璐у崟鍙�
+                        },
+                        method: 'POST',
+                        success: function (res) {
+                            layer.closeAll('loading');
+                            if (res.code === 200){
+                                if (insTbCount === 0) {
+                                    insTb.reload({page: {curr: 1}});
+                                } else {
+                                    $(".layui-laypage-btn")[0].click();
+                                }
+                                layer.msg(res.msg, {icon: 1});
+                            } else if (res.code === 403){
+                                top.location.href = baseUrl+"/";
+                            }else {
+                                layer.msg(res.msg, {icon: 2});
+                            }
+                        }
+                    })
+                });
+                break;
             case 'locNo':
                 var param = top.reObject(data).locNo;
                 if (param === undefined) {
@@ -391,6 +428,8 @@
         var data = {
 //            id: $('#id').val(),
             locNo: $('#locNo').val(),
+            batch: $('#batch').val(),
+            danger: $('#danger').val(),
             matnr: $('#matnr').val(),
             lgnum: $('#lgnum').val(),
             tbnum: $('#tbnum').val(),
@@ -431,6 +470,35 @@
         })
     }
 
+    // 鍚屾搴撳瓨鑷矼ES
+    form.on('submit(synchronize)', function (data) {
+        layer.confirm('纭鍚慚ES鍚屾搴撳瓨锛�', {
+            shade: .1,
+            skin: 'layui-layer-admin'
+        }, function (i) {
+            $.ajax({
+                url: baseUrl + "/synchronize/mes/locDetl/report/auth",
+                headers: {'token': localStorage.getItem('token')},
+                method: 'POST',
+                success: function (res) {
+                    layer.closeAll('loading');
+                    if (res.code === 200){
+                        if (insTbCount === 0) {
+                            insTb.reload({page: {curr: 1}});
+                        } else {
+                            $(".layui-laypage-btn")[0].click();
+                        }
+                        layer.msg(res.msg, {icon: 1});
+                    } else if (res.code === 403){
+                        top.location.href = baseUrl+"/";
+                    }else {
+                        layer.msg(res.msg, {icon: 2});
+                    }
+                }
+            })
+        });
+    });
+
     // 澶嶉�夋浜嬩欢
     form.on('checkbox(detailCheckbox)', function (data) {
         var el = data.elem;

--
Gitblit v1.9.1