From db67639449287bcec461916a7dca6003ee5dd03c Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期五, 05 十二月 2025 16:27:18 +0800
Subject: [PATCH] 出入库详单及补单页面及逻辑

---
 fzzy-igdss-web/src/main/resources/static/inout/inout-weight2.js |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/fzzy-igdss-web/src/main/resources/static/inout/inout-weight2.js b/fzzy-igdss-web/src/main/resources/static/inout/inout-weight2.js
index 4b14cbf..2f4c536 100644
--- a/fzzy-igdss-web/src/main/resources/static/inout/inout-weight2.js
+++ b/fzzy-igdss-web/src/main/resources/static/inout/inout-weight2.js
@@ -234,11 +234,13 @@
  * 鐧昏寮圭獥
  */
 function quickRegister() {
+    $("#form-data")[0].reset();
+    form.render();
     //鐧昏鎸夐挳鏀惧紑
     $("#btn_register").css("display", "block");
     $("#text-info").removeClass("text-info");
     //绉伴噸鎿嶄綔寮圭獥
-    var pro = '鐧昏';
+    var pro = '鐧昏绉伴噸';
     recordData = null;
     updateEditAndProgress();
     flushPage();
@@ -261,8 +263,9 @@
  * @param progress
  */
 function showWindows() {
-
-    //鐧昏鎸夐挳鏀惧紑
+    $("#form-data")[0].reset();
+    form.render();
+    //鐧昏鎸夐挳闅愯棌
     $("#btn_register").css("display", "none");
     $("#text-info").addClass("text-info");
     //绉伴噸鎿嶄綔寮圭獥
@@ -606,8 +609,8 @@
                 notify("鏁版嵁鎻愪氦鎴愬姛", result.data);
                 //绗竴娆$О閲嶅悗锛屽埛鏂伴〉闈�
                 if (recordData.recordWeight <= 0.0) {
-                    flushData();
-                    layer.closeAll();
+                    $("#form-data")[0].reset();
+                    form.render();
                 }
             }
             layer.close(index);
@@ -709,7 +712,7 @@
         }
         $("#resultIntelCard").text(data.intelCard);
 
-        layer.open({
+        var indexNotify = layer.open({
             type: 1,
             offset: ['150px', '200px'],
             area: '450px;',
@@ -718,7 +721,7 @@
             btn: ['纭畾'],
             content: $('#dialog-from-notify'),
             yes: function (index) {
-                layer.closeAll();
+                layer.close(indexNotify);
             }
         });
     } else {

--
Gitblit v1.9.3