listOutStock.jsp 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  6. <title>出库列表</title>
  7. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  8. <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  14. <script type="text/javascript" src="/shares/js/constant.js"></script>
  15. <script type="text/javascript" src="/shares/js/common.js"></script>
  16. <script type="text/javascript">
  17. <!--
  18. var manager;
  19. var checkValue = new Array(); //定义一个数组
  20. var i = 0;
  21. var grid = null;
  22. $(function() {
  23. $("#outs_outstock_date").ligerDateEditor({
  24. labelWidth : 128,
  25. labelAlign : 'right',
  26. showTime : false,
  27. //initValue:'${requestScope.monthEnd}'
  28. });
  29. if('${checkValue}' != "" && typeof ('${checkValue}') != "undefined"){
  30. checkValue = '${checkValue}'.split(",");
  31. }
  32. var s = "&out_deleted=0";
  33. initRfidGridList(s);
  34. });
  35. function initRfidGridList(params) {
  36. var checkbox = true;
  37. var columns = [
  38. {
  39. display : '出库单号',
  40. name : 'outs_num',
  41. width : 200,
  42. render: function (row)
  43. {
  44. var html = "";
  45. if(row.check_status == 0){
  46. html = row.outs_num + "<font color='red'>(已撤销)</font>";
  47. }else{
  48. html = row.outs_num;
  49. }
  50. return html;
  51. }
  52. }, {
  53. display : '出库日期',
  54. name : 'outs_outstock_date',
  55. width : 120
  56. }, {
  57. display : '批次号',
  58. name : 'outs_batch_num',
  59. width : 100
  60. }, {
  61. display : '仓管员',
  62. name : 'outs_operater_name',
  63. width : 100
  64. }, {
  65. display : '制单人',
  66. name : 'outs_creater_name',
  67. width : 100
  68. } , {
  69. display : '审批人',
  70. name : 'check_user_name',
  71. width : 100
  72. }, {
  73. display : '审批状态',
  74. name : 'check_status',
  75. width : 100,
  76. render: function (row){
  77. var html = "";
  78. if(row.check_status == 0){
  79. html = "未审批";
  80. }else if(row.check_status == 1){
  81. html = "审批中";
  82. }else if(row.check_status == 2){
  83. html = "已审批";
  84. }else if(row.check_status == 3){
  85. html = "驳回";
  86. }
  87. return html;
  88. }
  89. }
  90. ];
  91. grid = $("#maingrid4")
  92. .ligerGrid(
  93. {
  94. columns : columns,
  95. pageSize : 20,
  96. url : 'assetOutStockToAsset.do?task=outStockList&lookup=${lookup}&loginId=${loginId}&time='
  97. + new Date().getTime() + params,
  98. pageParmName : 'p', //页索引参数名,(提交给服务器)
  99. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  100. width : '99.9%',
  101. height : '99%',
  102. isChecked: f_isChecked,
  103. checkbox : checkbox,
  104. onCheckRow : function(checked, rowdata, rowindex) {
  105. for ( var rowid in this.records)
  106. this.unselect(rowid);
  107. this.select(rowindex);
  108. }
  109. });
  110. $("#pageloading").hide();
  111. $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
  112. }
  113. function searchByKword() {
  114. var outs_num = document.getElementById("outs_num");//RFID编号
  115. var outs_outstock_date = document.getElementById("outs_outstock_date");//日期
  116. var outs_creater_name = document.getElementById("outs_creater_name");//制单人
  117. var outs_depot_name = document.getElementById("outs_depot_name");//名称
  118. var s = "";
  119. if (outs_num.value != "" && typeof (outs_num.value) != "undefined") {
  120. s += "&outs_num=" + encodeURI(encodeURI(outs_num.value));
  121. }
  122. if (outs_creater_name.value != "" && typeof (outs_creater_name.value) != "undefined") {
  123. s += "&outs_creater_name=" + encodeURI(encodeURI(outs_creater_name.value));
  124. }
  125. if (outs_outstock_date.value != "" && typeof (outs_outstock_date.value) != "undefined") {
  126. s += "&outs_outstock_date=" + encodeURI(encodeURI(outs_outstock_date.value));
  127. }
  128. if (outs_depot_name.value != "" && typeof (outs_depot_name.value) != "undefined") {
  129. s += "&outs_depot_name=" + encodeURI(encodeURI($("#depot_ids").val()));
  130. }
  131. $(function() {
  132. initRfidGridList(s);
  133. });
  134. }
  135. function f_select() {
  136. var rows = grid.getCheckedRows();
  137. return rows;
  138. }
  139. //默认选中
  140. function f_isChecked(rowdata){
  141. if(checkValue != "" && typeof (checkValue) != "undefined"){
  142. if(checkValue[i]==rowdata.outs_id){
  143. i++;
  144. return true;
  145. }
  146. return false;
  147. }
  148. }
  149. </script>
  150. </head>
  151. <body>
  152. <%@ include file="/include/message.jsp"%>
  153. <div class="container">
  154. <div class="default_search" style="margin: 0;">
  155. <ul class="list_search">
  156. <li class="title">出库单号:</li>
  157. <li class="text"><input type="text" name="outs_num" id="outs_num">
  158. </li>
  159. </ul>
  160. <ul class="list_search">
  161. <li class="title">出库日期:</li>
  162. <li class="text"><input type="text" name="outs_outstock_date" id="outs_outstock_date">
  163. </li>
  164. </ul>
  165. <!-- <ul class="list_search">
  166. <li class="text"><input type="checkbox" id="deleted" name="deleted"><label for="deleted">已撤销</label></li>
  167. </ul> -->
  168. <ul class="list_search" style="clear: both;">
  169. <li class="title">制单人:</li>
  170. <li class="text"><input type="text" name="outs_creater_name" id="outs_creater_name">
  171. </li>
  172. </ul>
  173. <ul class="list_search">
  174. <li class="title">仓库名称:</li>
  175. <li class="text"><input type="text" name="outs_depot_name" id="outs_depot_name">
  176. </li>
  177. </ul>
  178. <ul>
  179. <li class="search-button"><input type="button" class='l-button'
  180. name="search" onclick="searchByKword()" value="查询" /></li>
  181. </ul>
  182. </div>
  183. <div id="searchbar">
  184. <div style="overflow: hidden; clear: both;">
  185. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  186. </div>
  187. </div>
  188. </div>
  189. </body>
  190. </html>