From 34abe3473f7e4deaac31a0ad38f855eeafbf9266 Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期一, 29 五月 2023 20:59:46 +0800
Subject: [PATCH] 出入库优化-登记1

---
 igds-web/src/main/resources/static/admin/inout/in-register.js |   73 +++---------------------------------
 1 files changed, 7 insertions(+), 66 deletions(-)

diff --git a/igds-web/src/main/resources/static/admin/inout/in-register.js b/igds-web/src/main/resources/static/admin/inout/in-register.js
index 58a76fd..db6dead 100644
--- a/igds-web/src/main/resources/static/admin/inout/in-register.js
+++ b/igds-web/src/main/resources/static/admin/inout/in-register.js
@@ -30,7 +30,7 @@
                         shadeClose: true,
                         shade: 0.3,
                         closeBtn: 2,
-                        offset: ['50px','50px'],
+                        offset: ['50px', '50px'],
                         area: ['1000px', '640px'],
                         content: '../../basic/inout/inout-progress?type=' + type + "&t=" + Math.random()
                     });
@@ -55,34 +55,8 @@
 });
 
 window.onload = function () {
-    // 鍔犺浇瑙嗛
     initVideo(lprDto, null, null);
 };
-
-//鎺у埗娴佺▼鐜妭鏄剧ず
-function showProgress() {
-    if (!inoutProgress) {
-        return;
-    }
-    if (inoutProgress.indexOf("REGISTER") == -1) {
-        $("#progress-register").css("display", "none");
-    }
-    if (inoutProgress.indexOf("CHECK") == -1) {
-        $("#progress-check").css("display", "none");
-    }
-    if (inoutProgress.indexOf("WEIGHT_FULL") == -1) {
-        $("#progress-fullWeight").css("display", "none");
-    }
-    if (inoutProgress.indexOf("HANDLE") == -1) {
-        $("#progress-hand").css("display", "none");
-    }
-    if (inoutProgress.indexOf("WEIGHT_EMPTY") == -1) {
-        $("#progress-emptyWeight").css("display", "none");
-    }
-    if (inoutProgress.indexOf("CARD_BACK") == -1) {
-        $("#progress-cardBack").css("display", "none");
-    }
-}
 
 // socket淇℃伅杩斿洖铏曠悊
 function socketOnMessage(packet) {
@@ -163,14 +137,13 @@
 
 //璇诲彇杞︾墝鍙�
 function flushPlateNum() {
-    var param = JSON.stringify(lprDto);
     var index = layer.load();
     $.ajax({
         type: "POST",
-        url: "../../inout/api/flush-lpr",
+        url: "../../inout/api/get-plateNum",
         dataType: "json",
         contentType: "application/json;charset=UTF-8",
-        data: param,
+        data: JSON.stringify(lprDto),
         success: function (result) {
             if (result.code != "0000") {
                 layer.alert(result.msg, {
@@ -183,6 +156,7 @@
                     });
                 } else {
                     $("#plateNum").val(result.data.plateNum);
+                    $("#plateNum2").val(result.data.plateNum);
                 }
             }
             layer.close(index);
@@ -196,37 +170,6 @@
     });
 }
 
-//閲嶇疆杞︾墝璇嗗埆淇℃伅
-function resetPlateNum() {
-    var index = layer.load();
-    var param = JSON.stringify(lprDto);
-    $.ajax({
-        type: "POST",
-        url: "../../inout/api/reset-lpr",
-        dataType: "json",
-        contentType: "application/json;charset=UTF-8",
-        data: param,
-        success: function (result) {
-            if (result.code != "0000") {
-                layer.alert(result.msg, {
-                    offset: ['300px', '300px']
-                });
-            } else {
-                layer.alert("閲嶇疆鎴愬姛锛岃閲嶆柊鑾峰彇杞︾墝淇℃伅", {
-                    offset: ['300px', '300px']
-                });
-            }
-            layer.close(index);
-        },
-        error: function () {
-            layer.close(index);
-            layer.alert("閲嶇疆鎵ц澶辫触", {
-                offset: ['300px', '300px']
-            });
-        }
-    });
-}
-
 // 琛ㄥ崟娓呯┖
 function resetForm() {
     $("#form-data")[0].reset();
@@ -234,7 +177,6 @@
     // 韬唤璇侀噸缃�
     $("#id_img_pers").attr("src", "../../static/images/rkbk-photo_03.png");
     $("#pz-img").removeClass("kccz-r-img-red");
-    $("#pz-text").text("鑷姩鎶撴媿");
 }
 
 // 褰撳墠瀹屾垚
@@ -248,8 +190,8 @@
         notify("杞︾墝鍙蜂笉鑳戒负绌�", null);
         return;
     }
-    if (!data.intelCard && !data.userId) {
-        notify("鏅烘収鍗″彿涓庤韩浠借瘉鍙蜂笉鑳藉悓鏃朵负绌�", null);
+    if (!data.userId) {
+        notify("韬唤璇佸彿涓嶈兘涓虹┖", null);
         return;
     }
 
@@ -261,9 +203,8 @@
         progress: progress,
         bizType: bizType,
         plateNum: data.plateNum,
-        id1: (null != lprDto) ? lprDto.id : null
+        id1: lprDto.id
     };
-
     $.ajax({
         sync: false,
         type: "POST",

--
Gitblit v1.9.3