dailyStockTakingEdits.jsp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <%@ page contentType="text/html;charset=UTF-8"%>
  2. <%@ include file="/WEB-INF/include/taglibs.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>盘点单编辑页面</title>
  7. <%@ include file="/WEB-INF/include/common.jsp"%>
  8. <script type="text/javascript" src="${ctx}/script/common/jquery.comboboxRef.js"></script>
  9. <script type="text/javascript" src="${ctx}/script/common/jquery.combogridRef.js"></script>
  10. <script type="text/javascript" src="${ctx}/script/common/jquery-easyui-1.3.2/plugins/jquery.quickfilter.js"></script>
  11. <script type="text/javascript">
  12. var receiptId = "${receiptId }";
  13. var lastIndex = -1;
  14. var editIndex;
  15. var $stockTakingId = $("#stockTakingForm").find("input[name='stockTakingId']");
  16. $(function() {
  17. //基本信息
  18. //定义页面元素
  19. var operate = '${requestScope.operate}';
  20. var stockTakingData = ${requestScope.stockTakingData};
  21. $.StockTakingEdit = new $.AbstractEdit({
  22. entity : "StockTaking",
  23. formId : "stockTakingForm",
  24. operate : operate,
  25. id : "stockTakingId"
  26. });
  27. //扩展或重写方法
  28. $.fn.extend($.StockTakingEdit, {
  29. });
  30. $.StockTakingEdit.init();
  31. if (!$.isEmpty(stockTakingData)) {
  32. $.StockTakingEdit.fillData(stockTakingData);
  33. }
  34. ;
  35. $("#saveStockTakingBtn").click($.proxy($.StockTakingEdit.save, $.StockTakingEdit));
  36. /** 明细相关 **/
  37. $.StockTakingDetailEdit = new $.AbstractEdit({
  38. entity : "StockTakingDetail",
  39. formId : "stockTakingDetailForm",
  40. id : "id"
  41. });
  42. // 实例化查询表单,当前页面只能实例化一次
  43. var searchDetailForm = $("#searchDetailForm").searchForm();
  44. // 实例化实体List
  45. $.StockTakingDetailList = new $.AbstractList({
  46. entity : "StockTakingDetail",
  47. gridId : "detailList",
  48. searchForm : searchDetailForm,
  49. functionId : '${functionId}',
  50. showExportButton : true
  51. });
  52. $.StockTakingDetailEdit.init();
  53. });
  54. </script>
  55. <script type="text/javascript"
  56. src="${ctx}/script/wms/stocktaking/stocktaking.js"></script>
  57. </head>
  58. <body style="overflow-y: hidden" fit="true" scroll="no">
  59. <div>
  60. <a href="#" icon="icon-save" id="saveStockTakingBtn"
  61. class="easyui-linkbutton">保存</a> <a href="#" icon="icon-save"
  62. id="completeStockTakingBtn" class="easyui-linkbutton">完成盘点</a>
  63. <!--
  64. <a href="#" icon="icon-print"
  65. id="printStockTaking" class="easyui-linkbutton">打印盘点单</a>
  66. -->
  67. </div>
  68. <div id="tabs" class="easyui-tabs" fit="true">
  69. <div title="基本信息">
  70. <form id="stockTakingForm" method="post">
  71. <input type="hidden" name="stockTakingId"></input> <input
  72. type="hidden" name="type" />
  73. <table style="width: 100%">
  74. <tr>
  75. <td class="title">盘点单号</td>
  76. <td><input class="easyui-validatebox" name="stockTakingId"
  77. disabled="disabled" value="${stockTaking.stockTakingId }" /></td>
  78. <td><div class="star">*</div>仓库:</td>
  79. <td><input class="easyui-validatebox" name="warehouseName"
  80. disabled="disabled" /></td>
  81. <td class="title">货主:</td>
  82. <td><input class="easyui-validatebox" name="customerName"
  83. disabled="disabled" /></td>
  84. </tr>
  85. <tr>
  86. <td class="title">状态:</td>
  87. <td><select class="easyui-combobox" name="status"
  88. style='width: 150px' disabled="disabled">
  89. ${stocktakingStatus}
  90. </select></td>
  91. <td class="title"><div class="star">*</div>盘点人:</td>
  92. <td><input class="easyui-validatebox" name="pointer"
  93. data-options="required:true" /></td>
  94. </table>
  95. </form>
  96. </div>
  97. <div title="盘点明细">
  98. <form id="searchDetailForm" method="post">
  99. <input class="easyui-validatebox" type="hidden" style="vertical-align:middle" name="stockTakingId" value="${stockTaking.stockTakingId}" condition ='"operator":"="' />
  100. </form>
  101. <table id="detailList">
  102. <thead>
  103. <tr>
  104. <th data-options="field:'id',hidden:true">主键</th>
  105. <th data-options="field:'ck',checkbox:true">编码</th>
  106. <th data-options="field:'itemName',align:'center',width:180">产品名称</th>
  107. <th data-options="field:'customerName',align:'center',width:180">货主</th>
  108. <th data-options="field:'locationName',align:'center',width:180">储位</th>
  109. <th data-options="field:'systemNum',align:'center',width:180">预期数量</th>
  110. <c:if test="${blindPlateFlag=='0'}">
  111. <th data-options="field:'actualNum',align:'center',width:180,editor:'numberbox'">实际数量</th>
  112. </c:if>
  113. <th data-options="field:'varianceNum',align:'center',width:190">差异数量</th>
  114. <th data-options="field:'stockTakingId',hidden:true"/>
  115. <th data-options="field:'itemId',hidden:true"/>
  116. <th data-options="field:'accountId',hidden:true"/>
  117. <th data-options="field:'locationId',hidden:true"/>
  118. <th data-options="field:'yddyId',hidden:true"/>
  119. <th data-options="field:'normarlFlag',hidden:true"/>
  120. <th data-options="field:'lotNumber',hidden:true"/>
  121. <th data-options="field:'produceDate',hidden:true"/>
  122. <th data-options="field:'customerName',hidden:true"/>
  123. <th data-options="field:'customerId',hidden:true"/>
  124. </tr>
  125. </thead>
  126. </table>
  127. </div>
  128. </div>
  129. </body>
  130. </html>