From 82bcd0328dddbaad65933e2fada22bc68e82b3d5 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期六, 26 八月 2023 10:07:46 +0800
Subject: [PATCH] # 导入订单增加单据类型

---
 src/main/webapp/static/js/checkRecord/checkRecord.js |   35 +++++++++++++++++++++++++++++++----
 1 files changed, 31 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/static/js/checkRecord/checkRecord.js b/src/main/webapp/static/js/checkRecord/checkRecord.js
index 2f6344a..bd32afd 100644
--- a/src/main/webapp/static/js/checkRecord/checkRecord.js
+++ b/src/main/webapp/static/js/checkRecord/checkRecord.js
@@ -21,8 +21,8 @@
         cellMinWidth: 50,
         height: 'full-120',
         cols: [[
-            {type: 'checkbox'}
-            ,{field: 'locNo', align: 'center',title: '搴撲綅鍙�'}
+            //{type: 'checkbox'}
+            {field: 'locNo', align: 'center',title: '搴撲綅鍙�'}
             ,{field: 'barcode', align: 'center',title: '鎵樼洏鐮�'}
             ,{field: 'matnr', align: 'center',title: '鐗╂枡浠g爜'}
             ,{field: 'maktx', align: 'center',title: '鐗╂枡鍚嶇О'}
@@ -30,8 +30,9 @@
             ,{field: 'batch', align: 'center',title: '鎵瑰彿'}
             ,{field: 'anfme', align: 'center',title: '鐩樼偣鍓嶆暟閲�'}
             ,{field: 'confirmQty', align: 'center',title: '鐩樼偣纭閲�'}
-            ,{field: 'createTime$', align: 'center',title: '璁板綍鏃堕棿'}
-
+            ,{field: 'adjQty$', align: 'center',title: '鐩樼偣宸紓閲�'}
+            ,{field: 'createTime$', align: 'center',title: '璁板綍鏃堕棿', width: 180}
+            ,{field: 'type', align: 'center',title: '璐㈠姟瀹℃牳', templet: '#statusTpl', width: 100}
             ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:120}
         ]],
         request: {
@@ -139,6 +140,32 @@
             case "del":
                 del([data.locNo]);
                 break;
+            case "auditing":
+                layer.confirm('纭畾瀹℃牳閫氳繃锛�', {
+                    skin: 'layui-layer-admin',
+                    shade: .1
+                }, function (i) {
+                    layer.close(i);
+                    var loadIndex = layer.load(2);
+                    $.ajax({
+                        url: baseUrl+"/checkRecord/auditing/auth",
+                        headers: {'token': localStorage.getItem('token')},
+                        data: {id: data.id},
+                        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});
+                            }
+                        }
+                    })
+                });
+                break
         }
     });
 

--
Gitblit v1.9.1