clothingApply-update.jsp 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. if(location.href.indexOf("load=detail")!=-1 ){
  42. $("#btnrow").remove();
  43. }
  44. });
  45. function btn_ok(){
  46. var trList = $("#add_clothingApplyDetail_table").children("tr");
  47. if(trList.length == 0){
  48. layer.alert("请至少输入一条货品详细信息");
  49. return;
  50. }
  51. $("#btnsub").click();
  52. }
  53. function btn_back(){
  54. window.closeCurrentDialog();
  55. }
  56. function callback(data){
  57. if(data.success){
  58. layer.alert(data.msg, function(index){
  59. frameElement.api.opener.refresh();
  60. window.closeCurrentDialog();
  61. });
  62. }
  63. else{
  64. layer.alert(data.msg);
  65. }
  66. }
  67. </script>
  68. </head>
  69. <body style="overflow-x: hidden;">
  70. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="clothingApplyController.do?doUpdate" callback="callback@Override"
  71. beforeSubmit="beforeSave">
  72. <input id="id" name="id" type="hidden" value="${clothingApplyPage.id }"/>
  73. <input id="warehouseid" name="warehouseid" type="hidden" value="${clothingApplyPage.warehouseid }"/>
  74. <input id="departid" name="departid" type="hidden" value="${clothingApplyPage.departid }"/>
  75. <input id="projectid" name="projectid" type="hidden" value="${clothingApplyPage.projectid }"/>
  76. <input id="grantstatus" name="grantstatus" type="hidden" value="${clothingApplyPage.grantstatus }"/>
  77. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  78. <t:tab href="clothingApplyController.do?clothingApplyDetailList&id=${clothingApplyPage.id}" icon="icon-search" title="服装申请明细" id="clothingApplyDetail"></t:tab>
  79. </t:tabs>
  80. <table cellpadding="0" cellspacing="1" class="formtable">
  81. <tr>
  82. <td align="right">
  83. <label class="Validform_label">领料点:</label>
  84. </td>
  85. <td class="value">
  86. <input id="warehousename" name="warehousename" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${clothingApplyPage.warehousename}'/>
  87. <span class="Validform_checktip"></span>
  88. <label class="Validform_label" style="display: none;">领料点</label>
  89. </td>
  90. <td align="right">
  91. <label class="Validform_label">申请日期:</label>
  92. </td>
  93. <td class="value">
  94. <input id="applydate" name="applydate" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker({maxDate:'%y-%M-%d'})" datatype="*" ignore="checked" value='${clothingApplyPage.applydate}'/>
  95. <span class="Validform_checktip"></span>
  96. <label class="Validform_label" style="display: none;">申请日期</label>
  97. </td>
  98. <td align="right">
  99. <label class="Validform_label">总金额:</label>
  100. </td>
  101. <td class="value">
  102. <input id="totalMoney" name="totalMoney" type="text" style="width: 150px" class="inputxt" readonly="readonly" ignore="ignore" value="${clothingApplyPage.totalMoney }"/>
  103. <span class="Validform_checktip"></span>
  104. <label class="Validform_label" style="display: none;">总金额</label>
  105. </td>
  106. </tr>
  107. <tr id="btnrow">
  108. <td height="50px" align="center" colspan="8">
  109. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  110. <a style="margin-left:80px" href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">确定</a>
  111. <a href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="btn_back()">返回</a>
  112. </td>
  113. </tr>
  114. </table>
  115. </t:formvalid>
  116. <!-- 添加 附表明细 模版 -->
  117. <table style="display:none">
  118. <tbody id="add_clothingApplyDetail_table_template">
  119. <tr>
  120. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  121. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  122. <input name="clothingApplyDetailList[#index#].userid" type="hidden" datatype="*" nullmsg="请选择员工"/>
  123. <input name="clothingApplyDetailList[#index#].clothingid" type="hidden" datatype="*" nullmsg="请选择服装"/>
  124. <td align="left">
  125. <input name="clothingApplyDetailList[#index#].realname" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" />
  126. <label class="Validform_label" style="display: none;">员工姓名</label>
  127. </td>
  128. <td align="left">
  129. <input name="clothingApplyDetailList[#index#].clothingname" maxlength="64" type="text" class="inputxt" style="width:120px;" readonly="readonly" />
  130. <label class="Validform_label" style="display: none;">服装名称</label>
  131. </td>
  132. <td align="left">
  133. <t:dictSelect field="clothingApplyDetailList[#index#].type" type="list" extendJson="{class:'form-control',style:'width:120px'}"
  134. typeGroupCode="clothingtype" hasLabel="false" readonly="readonly" title="服装类型" ></t:dictSelect>
  135. <label class="Validform_label" style="display: none;">服装类型</label>
  136. </td>
  137. <td align="left">
  138. <input name="clothingApplyDetailList[#index#].entrydate" maxlength="20" type="text" readonly="readonly" class="Wdate" style="width:120px;" ignore="ignore" />
  139. <label class="Validform_label" style="display: none;">入职日期</label>
  140. </td>
  141. <td align="left">
  142. <input name="clothingApplyDetailList[#index#].lastdate" maxlength="20" type="text" readonly="readonly" class="Wdate" style="width:120px;" ignore="ignore" />
  143. <label class="Validform_label" style="display: none;">上次申领日期</label>
  144. </td>
  145. <td align="left">
  146. <input name="clothingApplyDetailList[#index#].startdate" maxlength="20" type="text" readonly="readonly" class="Wdate" style="width:120px;" ignore="ignore" />
  147. <label class="Validform_label" style="display: none;">启用日期</label>
  148. </td>
  149. <td align="left">
  150. <t:dictSelect field="clothingApplyDetailList[#index#].applyreason" type="list" typeGroupCode="applyreason" defaultVal="" hasLabel="false" title="申请原因"></t:dictSelect>
  151. <label class="Validform_label" style="display: none;">申请原因</label>
  152. </td>
  153. <td align="left">
  154. <input name="clothingApplyDetailList[#index#].price" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="d" readonly="readonly" />
  155. <label class="Validform_label" style="display: none;">单价</label>
  156. </td>
  157. <td align="left">
  158. <input name="clothingApplyDetailList[#index#].quantity" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="n" />
  159. <label class="Validform_label" style="display: none;">数量</label>
  160. </td>
  161. <td align="left">
  162. <input name="clothingApplyDetailList[#index#].money" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="d" readonly="readonly"/>
  163. <label class="Validform_label" style="display: none;">金额</label>
  164. </td>
  165. <td align="left">
  166. <input name="clothingApplyDetailList[#index#].size" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="*" />
  167. <label class="Validform_label" style="display: none;">尺码</label>
  168. </td>
  169. <td align="left">
  170. <input name="clothingApplyDetailList[#index#].remark" maxlength="10" type="text" class="inputxt" style="width:220px;" ignore="ignore" />
  171. <label class="Validform_label" style="display: none;">备注</label>
  172. </td>
  173. <td align="left">
  174. <input name="clothingApplyDetailList[#index#].unit" maxlength="32" type="hidden" class="inputxt" style="width:120px;" ignore="ignore" />
  175. <label class="Validform_label" style="display: none;">单位</label>
  176. </td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. </body>
  181. <script src = "webpage/cn/com/lzt/clothing/apply/clothingApply.js?v=1"></script>