From d599942e79ea0198898bdfde049b908418debf54 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期五, 13 六月 2025 10:13:14 +0800
Subject: [PATCH] #新增生产日期和到期日期,和超期检索

---
 src/main/webapp/static/js/locDetl/locDetl.js |   33 ++++++++++++++++++++++++++++++---
 1 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/static/js/locDetl/locDetl.js b/src/main/webapp/static/js/locDetl/locDetl.js
index 9999628..664055a 100644
--- a/src/main/webapp/static/js/locDetl/locDetl.js
+++ b/src/main/webapp/static/js/locDetl/locDetl.js
@@ -20,6 +20,8 @@
         ,{field: 'price', align: 'center',title: '杩涢」绋�', hide: true}
         ,{field: 'units', align: 'center',title: '閿�椤圭◣', hide: true}
         ,{field: 'memo', align: 'center',title: '澶囨敞', hide: true}
+        ,{field: 'proddate$', align: 'center',title: '鐢熶骇鏃ユ湡', hide:false}
+        ,{field: 'deadline$', align: 'center',title: '鍒版湡鏃ユ湡', hide:false}
 
     ];
 
@@ -46,7 +48,8 @@
         page: true,
         limit: 20,
         where:{
-          unreason: false
+            unreason: false,
+            expired: false
         },
         limits: [20, 30, 50, 100, 200, 500],
         even: true,
@@ -462,7 +465,30 @@
 
         tableIns.reload({
             where: {
-                unreason: true
+                unreason: true,
+                expired:false
+            },
+            page: {
+                curr: pageCurr
+            },
+            done: function (res, curr, count) {
+
+                if (res.code === 403) {
+                    top.location.href = baseUrl+"/";
+                }
+                pageCurr=curr;
+
+                limit(child);
+            }
+        });
+    });
+    form.on('submit(expired)', function (data) {
+        pageCurr = 1;
+
+        tableIns.reload({
+            where: {
+                expired: true,
+                unreason:false
             },
             page: {
                 curr: pageCurr
@@ -512,7 +538,8 @@
 
 function tableReload(child) {
     var searchData = {
-        unreason: false
+        unreason: false,
+        expired: false
     };
     $.each($('#search-box [name]').serializeArray(), function() {
         searchData[this.name] = this.value;

--
Gitblit v1.9.1