From 9d38f2354b3a7267a2486d937bb7d256fcb949c1 Mon Sep 17 00:00:00 2001 From: lty <876263681@qq.com> Date: 星期五, 13 六月 2025 08:15:48 +0800 Subject: [PATCH] #增加生产日期,到期日期字段,增加库存明细超期库存检索 --- src/main/webapp/static/js/agvLocDetl/locDetl.js | 30 ++++++++++++++++++++++++++++-- 1 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/static/js/agvLocDetl/locDetl.js b/src/main/webapp/static/js/agvLocDetl/locDetl.js index d408a1d..f1b970e 100644 --- a/src/main/webapp/static/js/agvLocDetl/locDetl.js +++ b/src/main/webapp/static/js/agvLocDetl/locDetl.js @@ -57,6 +57,8 @@ cols.push({field: 'modiUser$', align: 'center',title: '淇敼浜哄憳',hide: true} ,{field: 'modiTime$', align: 'center',title: '淇敼鏃堕棿'} ,{field: 'stockFreeze', align: 'center',title: '搴撳瓨鍐荤粨', templet: '#stockFreezeTpl'} + ,{field: 'proddate$', align: 'center',title: '鐢熶骇鏃ユ湡', hide:false} + ,{field: 'deadline$', align: 'center',title: '鍒版湡鏃ユ湡', hide:false} ) return cols; } @@ -79,7 +81,8 @@ page: true, limit: 20, where:{ - unreason: false + unreason: false, + expired: false }, limits: [20, 30, 50, 100, 200, 500], even: true, @@ -478,6 +481,28 @@ tableReload(false); }); + form.on('submit(expired)', function (data) { + pageCurr = 1; + + tableIns.reload({ + where: { + expired: true + }, + page: { + curr: pageCurr + }, + done: function (res, curr, count) { + + if (res.code === 403) { + top.location.href = baseUrl+"/"; + } + pageCurr=curr; + + limit(child); + } + }); + }); + //鏌ョ湅寮傚父鏁版嵁 form.on('submit(unreason)', function (data) { pageCurr = 1; @@ -539,7 +564,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