From 0142e910dffd0255a4a4a1192cedd2ba0b0e71ab Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期三, 14 七月 2021 16:57:35 +0800
Subject: [PATCH] 下架正式接口: 当[(库存数量-出库通知档数量) < 下架数量]时不允许下架
---
src/main/webapp/jsFiles/waitPakInLog.js | 42 ++++++++++++++++++++++++++++--------------
1 files changed, 28 insertions(+), 14 deletions(-)
diff --git a/src/main/webapp/jsFiles/waitPakInLog.js b/src/main/webapp/jsFiles/waitPakInLog.js
index 63f7970..00ee311 100644
--- a/src/main/webapp/jsFiles/waitPakInLog.js
+++ b/src/main/webapp/jsFiles/waitPakInLog.js
@@ -4,7 +4,7 @@
var myColumns=[];
$(function(){
getColumns();
-
+
$('#test-table').bootstrapTable('destroy');
$('#test-table').bootstrapTable({
method : 'GET',
@@ -23,8 +23,8 @@
clickToSelect: true, // 鍗曞嚮琛屽嵆鍙互閫変腑
search : false,//鏄剧ず鎼滅礌琛ㄥ崟
silent : true, //鍒锋柊浜嬩欢蹇呴』璁剧疆
- sidePagination : "server", //琛ㄧず鏈嶅姟绔姹�
- columns : myColumns,
+ sidePagination : "server", //琛ㄧず鏈嶅姟绔姹�
+ columns : myColumns,
// [{
// checkbox:true
// },{
@@ -43,7 +43,7 @@
// field : "mat_name",
// title : "鐗╂枡鍚嶇О",
// align : "center",
-// valign : "middle",
+// valign : "middle",
// }, {
// field : "str1",
// title : "鍗曚綅",
@@ -130,15 +130,15 @@
// onCheck:function(row){
//// alert(row.menu_name);
// },onUncheck:function(row){
-//// alert('鍙栨秷閫変腑');
+//// alert('鍙栨秷閫変腑');
// },
onClickRow:function (row,$element) {
$('.info').removeClass('info');
$($element).addClass('info');
}
});
-
-});
+
+});
function operateFormatter(value, row, index) {
return [
@@ -168,10 +168,10 @@
// valign : "middle"
// });
myColumns.push({
- title: '搴忓彿',
- field: '',
- formatter: function (value, row, index) {
- return index+1;
+ title: '搴忓彿',
+ field: '',
+ formatter: function (value, row, index) {
+ return index+1;
}
});
// myColumns.push({
@@ -187,7 +187,7 @@
align : "left",
valign : "middle"
});
-
+
// myColumns.push({
// field : "io_status",
// title : "鐘舵��",
@@ -245,10 +245,24 @@
$("#addDlg").modal("hide");
$("#info").text("");
$("#infos").text("");
-
+
$('#myform').data('bootstrapValidator', null);
$("#addForm").data('bootstrapValidator',null);
formValidator();
//$('#mydlg').data('bootstrapValidator').resetForm(true);
$("input[type=reset]").trigger("click");
-}
\ No newline at end of file
+}
+
+//瀵煎嚭
+function ExportExcel(){
+ if(confirm("纭瀵煎嚭excel锛�")){
+ var url = "work/exportWaitPakInLog.action?";
+ url += "matnr=" + $("#search_sheet_no").val();
+ url += "&maktx=" + $("#search_mat_no").val();
+ url += "&begin_date=" + $("#begin_date").val();
+ url += "&end_date=" + $("#end_date").val();
+ location.href=url;
+ }else{
+ return false;
+ }
+}
--
Gitblit v1.9.1