tBInitialStock-add.jsp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>期初库存</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. <script src="plug-in/layer/layer.js"></script>
  9. <script type="text/javascript">
  10. $(document).ready(function(){
  11. $('#tt').tabs({
  12. onSelect:function(title){
  13. $('#tt .panel-body').css('width','auto');
  14. }
  15. });
  16. $(".tabs-wrap").css('width','100%');
  17. });
  18. function btn_ok(){
  19. $("#btnsub").click();
  20. }
  21. function btn_back(){
  22. window.location.href="tBInitialStockController.do?list";
  23. }
  24. function before(){
  25. $tbody = $("#add_tBInitialStockDetail_table");
  26. $tbody.find('>tr').each(function(i){
  27. $(':input, select,button,a', this).each(function(){
  28. $("#add_tBInitialStockDetail_table").find("tr").eq(i).find("select").eq(0).removeAttr("disabled");
  29. });
  30. });
  31. }
  32. function callback(data){
  33. $tbody = $("#add_tBInitialStockDetail_table");
  34. $tbody.find('>tr').each(function(i){
  35. $(':input, select,button,a', this).each(function(){
  36. $("#add_tBInitialStockDetail_table").find("tr").eq(i).find("select").eq(0).attr("disabled","disabled");
  37. });
  38. });
  39. if(data.success){
  40. layer.alert(data.msg, function(index){
  41. window.location.href="tBInitialStockController.do?list";
  42. layer.close(index);
  43. });
  44. }else{
  45. layer.alert(data.msg);
  46. }
  47. }
  48. </script>
  49. </head>
  50. <body style="overflow-x: hidden;">
  51. <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" tiptype="1" action="tBInitialStockController.do?doAdd" callback="callback">
  52. <input id="id" name="id" type="hidden" value="${tBInitialStockPage.id }">
  53. <input id="totalMoney" name="totalMoney" type="hidden">
  54. <input id="syncStatus" name="syncStatus" type="hidden">
  55. <%-- <input id="createName" name="createName" type="hidden" value="${tBInitialStockPage.createName }">
  56. <input id="createBy" name="createBy" type="hidden" value="${tBInitialStockPage.createBy }">
  57. <input id="createDate" name="createDate" type="hidden" value="${tBInitialStockPage.createDate }">
  58. <input id="updateName" name="updateName" type="hidden" value="${tBInitialStockPage.updateName }">
  59. <input id="updateBy" name="updateBy" type="hidden" value="${tBInitialStockPage.updateBy }">
  60. <input id="updateDate" name="updateDate" type="hidden" value="${tBInitialStockPage.updateDate }"> --%>
  61. <table cellpadding="0" cellspacing="1" class="formtable">
  62. <tr>
  63. <td align="right" width="100px">
  64. <label class="Validform_label"><span color="red" class="requiredIcon">*</span>仓库:</label>
  65. </td>
  66. <td class="value" nowrap>
  67. <input id="warehouseId" name="warehouseId" type="hidden">
  68. <input name="warehouseName" class="inputxt" style="width: 150px" id="warehouseName" readonly="readonly" datatype="*" nullmsg="请选择仓库"/>
  69. <span class="Validform_checktip"></span>
  70. <label class="Validform_label" style="display: none;">仓库</label>
  71. <t:choose hiddenName="warehouseId" hiddenid="id" url="ordersController.do?selectReferWareHouse&classname=cn.com.lzt.warehouse.entity.WarehouseEntity&codefield=warehouseCode&namefield=warehouseName" name="list"
  72. icon="icon-search" title="仓库" textname="warehouseName" isclear="true" isInit="true" ></t:choose>
  73. </td>
  74. <%--
  75. <td align="right">
  76. <label class="Validform_label">
  77. <span color="red" class="requiredIcon">*</span>经手人人:
  78. </label>
  79. </td>
  80. <td class="value">
  81. <input id="byhandId" name="byhandId" type="hidden" value="" />
  82. <input name="realName" class="inputxt" value="" id="realName" readonly="readonly" datatype="*" />
  83. <t:choose hiddenName="byhandId" hiddenid="id" left="50%" width="670" height="450" url="correctionController.do?correctionSelect" name="userList1" icon="icon-select" title="选择员工" textname="realName" isclear="true" isInit="true"></t:choose>
  84. <span class="Validform_checktip"></span>
  85. </td>--%>
  86. <td align="right">
  87. <label class="Validform_label">备注:</label>
  88. </td>
  89. <td class="value">
  90. <input id="remark" name="remark" type="text" style="width: 150px" class="inputxt" maxlength="100">
  91. <span class="Validform_checktip"></span>
  92. <label class="Validform_label" style="display: none;">备注</label>
  93. </td>
  94. <td align="right">
  95. </td>
  96. <td class="value">
  97. </td>
  98. </tr>
  99. </table>
  100. <div style="width: auto;height: 200px;">
  101. <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
  102. <div style="width:800px;height:1px;"></div>
  103. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  104. <t:tab href="tBInitialStockController.do?tBInitialStockDetailList&id=${tBInitialStockPage.id}" icon="icon-search" title="期初库存详情" id="tBInitialStockDetail"></t:tab>
  105. </t:tabs>
  106. </div>
  107. <%--底部begin --%>
  108. <div class="formtable" style="position:fixed;bottom:0px;">
  109. <table cellpadding="0" cellspacing="1" class="formtable">
  110. <tr>
  111. <td align="right">
  112. <label class="Validform_label">制单人:</label>
  113. </td>
  114. <td class="value">
  115. <input id="createName" name="createName" type="text" style="width: 150px" class="inputxt" readonly="readonly">
  116. <span class="Validform_checktip"></span>
  117. <label class="Validform_label" style="display: none;">制单人</label>
  118. </td>
  119. <td align="right">
  120. <label class="Validform_label">提交人:</label>
  121. </td>
  122. <td class="value">
  123. <input id="checkName" name="checkName" type="text" style="width: 150px" class="inputxt" readonly="readonly">
  124. <span class="Validform_checktip"></span>
  125. <label class="Validform_label" style="display: none;">提交人</label>
  126. </td>
  127. </tr>
  128. <tr>
  129. <tr>
  130. <td align="right">
  131. <label class="Validform_label">制单日期:</label>
  132. </td>
  133. <td class="value">
  134. <input id="createDate" name="createDate" type="text" style="width: 150px" class="inputxt" readonly="readonly">
  135. <span class="Validform_checktip"></span>
  136. <label class="Validform_label" style="display: none;">制单日期</label>
  137. </td>
  138. <td align="right">
  139. <label class="Validform_label">提交日期:</label>
  140. </td>
  141. <td class="value">
  142. <input id="checkDate" name="checkDate" type="text" style="width: 150px" class="inputxt" readonly="readonly">
  143. <span class="Validform_checktip"></span>
  144. <label class="Validform_label" style="display: none;">提交日期</label>
  145. </td>
  146. </tr>
  147. <tr>
  148. <td height="50px" align="center" colspan="10">
  149. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  150. <a style="margin-left:80px" href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">提交</a>
  151. <a href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="btn_back()">返回</a>
  152. </td>
  153. </tr>
  154. </table>
  155. </div>
  156. <%--底部end --%>
  157. </t:formvalid>
  158. <!-- 添加 附表明细 模版 -->
  159. <table style="display:none" id="add_tBInitialStockDetail_table">
  160. <tbody id="add_tBInitialStockDetail_table_template">
  161. <tr>
  162. <td align="center"><div style="width: 35px;" name="xh"></div></td>
  163. <td align="center"><input style="width:35px;" type="checkbox" name="ck"/></td>
  164. <td align="left">
  165. <input name="tBInitialStockDetailList[#index#].goodsId" maxlength="36"
  166. type="hidden" class="inputxt" style="width:130px;" >
  167. <label class="Validform_label" style="display: none;">货品ID</label>
  168. </td>
  169. <td align="left">
  170. <input name="tBInitialStockDetailList[#index#].goodsCode" maxlength="50" datatype="s1-50"
  171. type="text" class="inputxt" style="width:130px;" >
  172. <label class="Validform_label" style="display: none;">货品编码</label>
  173. </td>
  174. <td align="left">
  175. <input name="tBInitialStockDetailList[#index#].goodsName" maxlength="50"
  176. type="text" class="inputxt" style="width:130px;" >
  177. <label class="Validform_label" style="display: none;">货品名称</label>
  178. </td>
  179. <td align="left">
  180. <input name="tBInitialStockDetailList[#index#].specification" maxlength="50"
  181. type="text" class="inputxt" style="width:130px;" readonly="readonly">
  182. <label class="Validform_label" style="display: none;">规格型号</label>
  183. </td>
  184. <td align="left">
  185. <%-- <t:dictSelect field="tBInitialStockDetailList[#index#].meteringUnit" type="list" extendJson="{class:'form-control',style:'width:130px'}"
  186. typeGroupCode="calcu_unit" defaultVal="" hasLabel="false" title="计量单位" ></t:dictSelect> --%>
  187. <input type="hidden" name="tBInitialStockDetailList[#index#].meteringUnit" maxlength="50" class="inputxt" style="width:130px;">
  188. <input type="text" name="tBInitialStockDetailList[#index#].meteringUnitName" maxlength="50" class="inputxt" style="width:130px;" readonly="readonly">
  189. <label class="Validform_label" style="display: none;">计量单位</label>
  190. </td>
  191. <td align="left">
  192. <input name="tBInitialStockDetailList[#index#].quantity" maxlength="10" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"
  193. type="text" class="inputxt" style="width:130px;" >
  194. <label class="Validform_label" style="display: none;">数量</label>
  195. </td>
  196. <td align="left">
  197. <input name="tBInitialStockDetailList[#index#].costPrice" maxlength="10" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"
  198. type="text" class="inputxt" style="width:130px;" >
  199. <label class="Validform_label" style="display: none;">成本价格</label>
  200. </td>
  201. <td align="left">
  202. <input name="tBInitialStockDetailList[#index#].totalCost" maxlength="32" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/" readonly="readonly"
  203. type="text" class="inputxt" style="width:130px;" >
  204. <label class="Validform_label" style="display: none;">成本金额</label>
  205. </td>
  206. <td align="left">
  207. <input name="tBInitialStockDetailList[#index#].unitConversion" maxlength="100"
  208. type="text" class="inputxt" style="width:130px;" >
  209. <label class="Validform_label" style="display: none;">单位关系</label>
  210. </td>
  211. <td align="left">
  212. <input name="tBInitialStockDetailList[#index#].remark" maxlength="100"
  213. type="text" class="inputxt" style="width:130px;" >
  214. <label class="Validform_label" style="display: none;">备注</label>
  215. </td>
  216. </tr>
  217. </tbody>
  218. </table>
  219. </body>
  220. <script src = "webpage/cn/com/lzt/initialstock/tBInitialStock.js"></script>