From 9ff5e64187837a3bbd78370c1cfaadf2329f97f0 Mon Sep 17 00:00:00 2001
From: 18516761980 <4761516tqsxp>
Date: 星期六, 19 三月 2022 12:47:13 +0800
Subject: [PATCH] .

---
 src/main/webapp/static/js/receiveDetl/receiveDetl.js |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/receiveDetl/receiveDetl.js b/src/main/webapp/static/js/receiveDetl/receiveDetl.js
index 8bae838..0efd159 100644
--- a/src/main/webapp/static/js/receiveDetl/receiveDetl.js
+++ b/src/main/webapp/static/js/receiveDetl/receiveDetl.js
@@ -25,7 +25,7 @@
             {type: 'checkbox'}
             ,{field: 'id', align: 'center',title: 'ID', hide:true}
             ,{field: 'hostId', align: 'center',title: '', hide:true}
-            ,{field: 'orderId$', align: 'center',title: '璁㈠崟鍐呯爜', width: 100}
+            ,{field: 'orderId$', align: 'center',title: '璁㈠崟', width: 185}
             ,{field: 'anfme', align: 'center',title: '搴斿叆搴撻噺', width: 100}
             ,{field: 'inQty', align: 'center',title: '宸插叆搴撻噺', width: 100}
             ,{field: 'matnr', align: 'center',title: '鍟嗗搧缂栫爜'}
@@ -192,6 +192,9 @@
                 // showEditModel(data);
                 startIn(data);
                 break;
+            case "renew":
+                renew(data);
+                break;
         }
     });
     function startIn(data) {
@@ -325,6 +328,35 @@
         });
     }
 
+    function renew(data) {
+        console.log(data)
+        layer.confirm('纭畾瑕佹挙鍥炲叏閮ㄤ笂鏋舵暟鎹悧锛�', {
+            skin: 'layui-layer-admin',
+            shade: .1
+        }, function (i) {
+            layer.close(i);
+            var loadIndex = layer.load(2);
+            $.ajax({
+                url: baseUrl+"/receiveDetl/renew/auth",
+                headers: {'token': localStorage.getItem('token')},
+                data: JSON.stringify(data),
+                contentType:'application/json;charset=UTF-8',
+                method: 'POST',
+                success: function (res) {
+                    layer.close(loadIndex);
+                    if (res.code === 200){
+                        layer.msg(res.msg, {icon: 1});
+                        tableReload();
+                    } else if (res.code === 403){
+                        top.location.href = baseUrl+"/";
+                    } else {
+                        layer.msg(res.msg, {icon: 2});
+                    }
+                }
+            })
+        });
+    }
+
     // 鎼滅储
     form.on('submit(search)', function (data) {
         pageCurr = 1;

--
Gitblit v1.9.1