stockRightTransferDetailEdit.jsp 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  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">
  9. $(function() {
  10. //定义页面元素
  11. var operate = '${requestScope.operate}';
  12. $('#detailTabs').tabs('disableTab', 1);
  13. var unEditableAttributes = ${requestScope.unEditableAttributes};
  14. var stockRightTransferDetailData = '${requestScope.stockRightTransferDetailData}';
  15. $.StockRightTransferDetailEdit = new $.AbstractEdit({
  16. entity : "StockRightTransferDetail",
  17. formId : "stockRightTransferDetailForm",
  18. operate : operate,
  19. id : "stockRightTransferDetailId"
  20. });
  21. //扩展或重写方法
  22. $.fn.extend($.StockRightTransferDetailEdit, {
  23. });
  24. $.StockRightTransferDetailEdit.init();
  25. disabledAttributes($("#body1"),unEditableAttributes);
  26. if (!$.isEmpty(stockRightTransferDetailData)) {
  27. $.StockRightTransferDetailEdit.fillData(stockRightTransferDetailData);
  28. }
  29. $("#saveStockRightTransferDetailBtn").click($.proxy($.StockRightTransferDetailEdit.save,$.StockRightTransferDetailEdit));
  30. });
  31. </script>
  32. </head>
  33. <body style="overflow-y: hidden" fit="true" scroll="no" id="body">
  34. <div id="detailTabs" class="easyui-tabs">
  35. <div title="基本信息" id="body1">
  36. <form id="stockRightTransferDetailForm" method="post">
  37. <input type="hidden" name="stockRightTransferId"></input>
  38. <input type="hidden" name="stockRightTransferDetailId" value="${stockRightTransferDetailData.stockRightTransferDetailId}"></input>
  39. <input type="hidden" name="relationedCustomerId"></input>
  40. <input type="hidden" name="toRelationedCustomerId"></input>
  41. <input type="hidden" name="itemId"></input>
  42. <label id="stockRightTransferDetailData" style="display: none;">${stockRightTransferDetailData}</label>
  43. <table style="width: 100%">
  44. <tr id="transferTypeTr">
  45. <td><div class="star">*</div>转移类型</td>
  46. <td>
  47. <select id="transferTypeSel" name="transferType" class="easyui-combobox" style="width: 155px" data-options="required:true">
  48. ${transferType}
  49. </select>
  50. </td>
  51. </tr>
  52. <tr id="scanIMEITr">
  53. <td>SN扫描类型</td>
  54. <td>
  55. <select class="easyui-combobox" name="scanType" style="width: 155px"
  56. data-options="editable:false,panelHeight:'auto'">
  57. ${scanType}
  58. </select>
  59. </td>
  60. <td>列表:</td>
  61. <td><textarea class="easyui-validatebox" id="snList" name="snList"/>
  62. </td>
  63. </tr>
  64. <tr id="relationedCustomerIdTr">
  65. <td><div class="star">*</div>货主关系人:</td>
  66. <td>
  67. <input myType="easyui-combobox" name="relationedCustomerId" id="relationedCustomerId" required="true"></input>
  68. <input type="hidden" id="relationedCustomerCode" name="relationedCustomerCode"/>
  69. <input type="hidden" id="relationedCustomerName" name="relationedCustomerName"/>
  70. <input type="hidden" id="relationedCustomerAlias" name="relationedCustomerAlias"/>
  71. </td>
  72. </tr>
  73. <tr id="noScanIMEITr">
  74. <td><div class="star">*</div>原产品形态:</td>
  75. <td>
  76. <select class="easyui-combobox" name="normalFlag"
  77. style="width: 155px" data-options="required:true,editable:true">
  78. <c:forEach var="item" items="${normalFlagList}">
  79. <option value="${item.normalFlag}">${item.normalFlag}</option>
  80. </c:forEach>
  81. </select>
  82. </td>
  83. <td>原批次:</td>
  84. <td><input class="easyui-validatebox" name="lotNumber" /></td>
  85. <td>原生产日期:</td>
  86. <td><input class="easyui-datebox" name="produceDate" /></td>
  87. </tr>
  88. <tr id="noScanIMEITr1">
  89. <td><div class="star">*</div>商品:</td>
  90. <td>
  91. <input myType="easyui-combogrid" name="itemId" id="itemId"></input>
  92. <input type="hidden" name="itemName"></input>
  93. <input type="hidden" name="itemCode"></input>
  94. </td>
  95. <td><div class="star">*</div>转移数量:</td>
  96. <td><input class="easyui-validatebox" id="stockRightQuantity" name="stockRightQuantity"/></td>
  97. <td>自动完成:</td>
  98. <td><input class="easyui-validatebox" name="autoCompleteFlag"
  99. type="checkbox" /></td>
  100. </tr>
  101. <tr>
  102. <td><div class="star">*</div>转入货主:</td>
  103. <td>
  104. <input myType="easyui-combobox" style="width: 155px" id="toCustomerId" name="toCustomerId" required="true"></input>
  105. <input type="hidden" id="toCustomerCode" name="toCustomerCode"/>
  106. <input type="hidden" id="toCustomerName" name="toCustomerName"/>
  107. <input type="hidden" id="toCustomerAlias" name="toCustomerAlias"/>
  108. </td>
  109. <td><div class="star">*</div>转入货主关系人:</td>
  110. <td>
  111. <input myType="easyui-combobox" style="width: 155px" id="toRelationedCustomerId" name="toRelationedCustomerId" required="true"></input>
  112. <input type="hidden" id="toRelationedCustomerCode" name="toRelationedCustomerCode"/>
  113. <input type="hidden" id="toRelationedCustomerName" name="toRelationedCustomerName"/>
  114. <input type="hidden" id="toRelationedCustomerAlias" name="toRelationedCustomerAlias"/>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td><div class="star">*</div>产品形态:</td>
  119. <td>
  120. <select class="easyui-combobox" name="toNormalFlag"
  121. style="width: 155px" data-options="required:true,editable:true">
  122. <c:forEach var="item" items="${normalFlagList}">
  123. <option value="${item.normalFlag}">${item.normalFlag}</option>
  124. </c:forEach>
  125. </select>
  126. </td>
  127. <td>新批次:</td>
  128. <td><input class="easyui-validatebox" name="toLotNumber" /></td>
  129. <td>新生产日期:</td>
  130. <td><input class="easyui-datebox" name="toProduceDate" /></td>
  131. </tr>
  132. <tr>
  133. <td colspan="6" align="center"><a href="#" icon="icon-save"
  134. id="saveStockRightTransferDetailBtn" class="easyui-linkbutton">提交</a>&nbsp;<a
  135. href="#" icon="icon-save" id="colseDetailBtn"
  136. class="easyui-linkbutton" onclick="$('#detailWindow').window('close')">关闭</a>
  137. </td>
  138. </tr>
  139. </table>
  140. </form>
  141. </div>
  142. <!-- start 明细下的处理明细 -->
  143. <div title="处理明细">
  144. <div id="toolbar" style="padding: 5px; border: 1px solid #ddd;" />
  145. <a id="addHandeleDetailBtn" href="#" class="easyui-linkbutton"
  146. data-options="iconCls:'icon-add'">新增</a> <a
  147. id="removeHandleDetailBtn" href="#" class="easyui-linkbutton"
  148. data-options="iconCls:'icon-remove'">删除</a>
  149. <table id="handeleDetailList" >
  150. <thead>
  151. <tr>
  152. <th data-options="field:'id',checkbox:true">编码</th>
  153. <th data-options="field:'locationName',align:'center',width:100">储位</th>
  154. <th data-options="field:'itemCode',align:'center',width:100">产品代码</th>
  155. <th data-options="field:'itemName',align:'center',width:100">产品名称</th>
  156. <th data-options="field:'normalFlag',align:'center',width:100">产品形态</th>
  157. <th data-options="field:'stockRightQuantity',align:'center',width:100">数量</th>
  158. <th data-options="field:'toLocationName',align:'center',width:100">新储位</th>
  159. <th data-options="field:'locationContainerId',align:'center',width:100">库存明细编码</th>
  160. <th data-options="field:'toLotNumber',align:'center',width:100">SN明细</th>
  161. </tr>
  162. </thead>
  163. </table>
  164. <!-- 选择具体处理明细页面 -->
  165. <div style="display: none;">
  166. <div id="addHandleDetail">
  167. <form id="locationContainerSearchForm" action="#" method="post">
  168. <table width="100%">
  169. <tr>
  170. <td><label for="inventoryAttributeTransferId"
  171. style="vertical-align: middle">储位:</label>
  172. </td>
  173. <td><input class="easyui-validatebox" type="text"
  174. style="vertical-align: middle" name="queryLocationName" />
  175. </td>
  176. <td><label for="transferTime"
  177. style="vertical-align: middle">数量:</label></td>
  178. <td><input class="easyui-validatebox" type="text"
  179. style="vertical-align: middle" name="queryQuantity" />
  180. </td>
  181. <td align="right" colspan="3"><a
  182. id="locationContainerSearch" href="#" class="easyui-linkbutton"
  183. data-options="iconCls:'icon-search'">查询</a>
  184. </td>
  185. </tr>
  186. </table>
  187. </form>
  188. <div style="padding: 5px; border: 1px solid #ddd;" />
  189. <a id="submitHandeleDetailBtn" href="#" class="easyui-linkbutton">确认</a>
  190. <a href="#" class="easyui-linkbutton"
  191. onclick="$('#addHandleDetail').window('close')">关闭</a>
  192. <table id="locationContainerList" >
  193. <thead>
  194. <tr>
  195. <th data-options="field:'ck',checkbox:true">主键</th>
  196. <th data-options="field:'id'">库存明细号</th>
  197. <th data-options="field:'itemCode',align:'center',width:100">商品代码</th>
  198. <th data-options="field:'itemName',align:'center',width:180">商品名称</th>
  199. <th data-options="field:'locationName',align:'center',width:85">储位</th>
  200. <th data-options="field:'zoneName',align:'center',width:80">库区</th>
  201. <th data-options="field:'lotNumber',align:'center',width:45">批次</th>
  202. <th data-options="field:'normalFlag',align:'center',width:80">产品形态</th>
  203. <th data-options="field:'quantity',align:'center',width:60">数量</th>
  204. <th
  205. data-options="field:'usableQuantity',align:'center',width:65">可用库存</th>
  206. <th
  207. data-options="field:'frozoneQuantity',align:'center',width:65">冻结数量</th>
  208. <th
  209. data-options="field:'lockRemainningQuantity',align:'center',width:65">锁定数量</th>
  210. <th data-options="field:'warehouseName',align:'center',width:90">仓库</th>
  211. <th data-options="field:'customerName',align:'center',width:90">货主</th>
  212. <th
  213. data-options="field:'relationedCustomerName',align:'center',width:90">货主关系人</th>
  214. </tr>
  215. </thead>
  216. </table>
  217. </div>
  218. </div>
  219. <!-- 填充数量和新储位 -->
  220. <div style="display: none;">
  221. <form id="finalDealHandeleDetail">
  222. <input type="hidden" name="operate" /> <input type="hidden"
  223. name="id" />
  224. <table style="width: 100%">
  225. <tr>
  226. <td>库存明细编号:</td>
  227. <td><input class="easyui-validatebox"
  228. name="locationContainerId" disabled="disabled" /></td>
  229. <td>储位:</td>
  230. <td><input class="easyui-validatebox" name="locationName"
  231. /></td>
  232. </tr>
  233. <tr>
  234. <td>产品代码:</td>
  235. <td><input class="easyui-validatebox" name="itemCode"
  236. /></td>
  237. <td>产品名称:</td>
  238. <td><input class="easyui-validatebox" name="itemName"
  239. /></td>
  240. </tr>
  241. <tr>
  242. <td><div class="star">*</div>转移数量:</td>
  243. <td>
  244. <!-- <input class="easyui-validatebox" id="transferQuantityValidate" name="transferQuantity" -->
  245. <!-- data-options="required: true,validType:'validateQuantity[5,12]'"/> -->
  246. <input class="easyui-validatebox" id="transferQuantityValidate" name="transferQuantity"/>
  247. </td>
  248. <td>新储位:</td>
  249. <td>
  250. <input myType="easyui-combogrid" name="toLocationId" id="toLocationId"></input>
  251. </td>
  252. </tr>
  253. <tr>
  254. <td colspan="4" align="center"><a href="#" icon="icon-save"
  255. id="submitHandleDetailBtn" class="easyui-linkbutton">提交</a>&nbsp;<a
  256. href="#" icon="icon-save" id="colseDetailBtn"
  257. class="easyui-linkbutton"
  258. onclick="$('#finalDealHandeleDetail').window('close')">关闭</a></td>
  259. </tr>
  260. </table>
  261. </form>
  262. </div>
  263. </div>
  264. <!-- end 明细下的处理明细 -->
  265. </div>
  266. </body>
  267. </html>