clothingApply-add.jsp 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. <style>
  8. .ui-button {
  9. display: inline-block;
  10. padding: 2px 2px;
  11. margin-bottom: 0;
  12. font-size: 8px;
  13. font-weight: normal;
  14. line-height: 1.42857143;
  15. text-align: center;
  16. white-space: nowrap;
  17. vertical-align: middle;
  18. -ms-touch-action: manipulation;
  19. touch-action: manipulation;
  20. cursor: pointer;
  21. -webkit-user-select: none;
  22. -moz-user-select: none;
  23. -ms-user-select: none;
  24. user-select: none;
  25. background-image: none;
  26. border: 1px solid transparent;
  27. border-radius: 4px;
  28. }
  29. </style>
  30. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  31. <script type="text/javascript">
  32. $(document).ready(function(){
  33. $('#tt').tabs({
  34. /*onSelect:function(title){
  35. var height =window.top.document.body.offsetHeight;
  36. height = height -181.3 - 36 - 100 -4;//去掉底部输入框table高度、title高度、弹出框小于后台页面高度、文本格式高度
  37. $('#tt .panel-body').css('width','auto').css('height',height+'px');
  38. }*/
  39. });
  40. $(".tabs-wrap").css('width','100%');
  41. });
  42. function btn_ok(){
  43. var trList = $("#add_clothingApplyDetail_table").children("tr");
  44. if(trList.length == 0){
  45. layer.alert("请至少输入一条货品详细信息");
  46. return;
  47. }
  48. //resetDisabled("add_storageInDetail_table");
  49. $("#btnsub").click();
  50. }
  51. function btn_back(){
  52. window.closeCurrentDialog();
  53. }
  54. function callback(data){
  55. if(data.success){
  56. layer.alert(data.msg, function(index){
  57. frameElement.api.opener.refresh();
  58. window.closeCurrentDialog();
  59. });
  60. }
  61. else{
  62. layer.alert(data.msg);
  63. }
  64. }
  65. </script>
  66. </head>
  67. <body style="overflow-x: hidden;">
  68. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="clothingApplyController.do?doAdd" callback="callback@Override"
  69. beforeSubmit="beforeSave">
  70. <input id="id" name="id" type="hidden" value="${clothingApplyPage.id }"/>
  71. <input id="warehouseid" name="warehouseid" type="hidden" value="${clothingApplyPage.warehouseid }"/>
  72. <input id="departid" name="departid" type="hidden" value="${clothingApplyPage.departid }"/>
  73. <input id="projectid" name="projectid" type="hidden" value="${clothingApplyPage.projectid }"/>
  74. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  75. <t:tab href="clothingApplyController.do?clothingApplyDetailList&id=${clothingApplyPage.id}" icon="icon-search" title="服装申请明细" id="clothingApplyDetail"></t:tab>
  76. </t:tabs>
  77. <table cellpadding="0" cellspacing="1" class="formtable">
  78. <tr>
  79. <td align="right">
  80. <label class="Validform_label">领料点:</label>
  81. </td>
  82. <td class="value">
  83. <input id="warehousename" name="warehousename" type="text" style="width: 150px" class="inputxt" readonly="readonly" ignore="ignore" value="${clothingApplyPage.warehousename }"/>
  84. <span class="Validform_checktip"></span>
  85. <label class="Validform_label" style="display: none;">领料点</label>
  86. </td>
  87. <td align="right">
  88. <label class="Validform_label">申请日期:</label>
  89. </td>
  90. <td class="value">
  91. <input id="applydate" name="applydate" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker({maxDate:'%y-%M-%d'})" datatype="*" value="${clothingApplyPage.applydate }" ignore="checked" />
  92. <span class="Validform_checktip"></span>
  93. <label class="Validform_label" style="display: none;">申请日期</label>
  94. </td>
  95. <td align="right">
  96. <label class="Validform_label">总金额:</label>
  97. </td>
  98. <td class="value">
  99. <input id="totalMoney" name="totalMoney" type="text" style="width: 150px" class="inputxt" readonly="readonly" ignore="ignore" value="${clothingApplyPage.totalMoney }"/>
  100. <span class="Validform_checktip"></span>
  101. <label class="Validform_label" style="display: none;">总金额</label>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td height="50px" align="center" colspan="8">
  106. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  107. <a style="margin-left:80px" href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">确定</a>
  108. <a href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="btn_back()">返回</a>
  109. </td>
  110. </tr>
  111. </table>
  112. </t:formvalid>
  113. <!-- 添加 附表明细 模版 -->
  114. <table style="display:none">
  115. <tbody id="add_clothingApplyDetail_table_template">
  116. <tr>
  117. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  118. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  119. <input name="clothingApplyDetailList[#index#].userid" type="hidden" datatype="*" nullmsg="请选择员工"/>
  120. <input name="clothingApplyDetailList[#index#].clothingid" type="hidden" datatype="*" nullmsg="请选择服装"/>
  121. <td align="left">
  122. <input name="clothingApplyDetailList[#index#].realname" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" />
  123. <label class="Validform_label" style="display: none;">员工姓名</label>
  124. </td>
  125. <td align="left">
  126. <input name="clothingApplyDetailList[#index#].clothingname" maxlength="64" type="text" class="inputxt" style="width:120px;" readonly="readonly"/>
  127. <label class="Validform_label" style="display: none;">服装名称</label>
  128. </td>
  129. <td align="left">
  130. <t:dictSelect field="clothingApplyDetailList[#index#].type" type="list" extendJson="{class:'form-control',style:'width:120px'}"
  131. typeGroupCode="clothingtype" hasLabel="false" readonly="readonly" title="服装类型" ></t:dictSelect>
  132. <label class="Validform_label" style="display: none;">服装类型</label>
  133. </td>
  134. <td align="left">
  135. <input name="clothingApplyDetailList[#index#].entrydate" maxlength="20" type="text" readonly="readonly" class="Wdate" style="width:120px;" ignore="ignore" />
  136. <label class="Validform_label" style="display: none;">入职日期</label>
  137. </td>
  138. <td align="left">
  139. <input name="clothingApplyDetailList[#index#].lastdate" maxlength="20" type="text" readonly="readonly" class="Wdate" style="width:120px;" ignore="ignore" />
  140. <label class="Validform_label" style="display: none;">上次申领日期</label>
  141. </td>
  142. <td align="left">
  143. <input name="clothingApplyDetailList[#index#].startdate" maxlength="20" type="text" readonly="readonly" class="Wdate" style="width:120px;" ignore="ignore" />
  144. <label class="Validform_label" style="display: none;">启用日期</label>
  145. </td>
  146. <td align="left">
  147. <t:dictSelect field="clothingApplyDetailList[#index#].applyreason" type="list" typeGroupCode="applyreason" defaultVal="" hasLabel="false" title="申请原因"></t:dictSelect>
  148. <label class="Validform_label" style="display: none;">申请原因</label>
  149. </td>
  150. <td align="left">
  151. <input name="clothingApplyDetailList[#index#].price" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="d" readonly="readonly" />
  152. <label class="Validform_label" style="display: none;">单价</label>
  153. </td>
  154. <td align="left">
  155. <input name="clothingApplyDetailList[#index#].quantity" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="n" />
  156. <label class="Validform_label" style="display: none;">数量</label>
  157. </td>
  158. <td align="left">
  159. <input name="clothingApplyDetailList[#index#].money" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="d" readonly="readonly"/>
  160. <label class="Validform_label" style="display: none;">金额</label>
  161. </td>
  162. <td align="left">
  163. <input name="clothingApplyDetailList[#index#].size" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="*"/>
  164. <label class="Validform_label" style="display: none;">尺码</label>
  165. </td>
  166. <td align="left">
  167. <input name="clothingApplyDetailList[#index#].remark" maxlength="10" type="text" class="inputxt" style="width:220px;" ignore="ignore" />
  168. <label class="Validform_label" style="display: none;">备注</label>
  169. </td>
  170. <td align="left">
  171. <input name="clothingApplyDetailList[#index#].unit" maxlength="32" type="hidden" class="inputxt" style="width:120px;" ignore="ignore" />
  172. <label class="Validform_label" style="display: none;">单位</label>
  173. </td>
  174. </tr>
  175. </tbody>
  176. </table>
  177. </body>
  178. <script src = "webpage/cn/com/lzt/clothing/apply/clothingApply.js?v=2"></script>