| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>服装申请</title>
- <style>
- .ui-button {
- display: inline-block;
- padding: 2px 2px;
- margin-bottom: 0;
- font-size: 8px;
- font-weight: normal;
- line-height: 1.42857143;
- text-align: center;
- white-space: nowrap;
- vertical-align: middle;
- -ms-touch-action: manipulation;
- touch-action: manipulation;
- cursor: pointer;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- background-image: none;
- border: 1px solid transparent;
- border-radius: 4px;
- }
- </style>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#tt').tabs({
- /*onSelect:function(title){
- var height =window.top.document.body.offsetHeight;
- height = height -181.3 - 36 - 100 -4;//去掉底部输入框table高度、title高度、弹出框小于后台页面高度、文本格式高度
- $('#tt .panel-body').css('width','auto').css('height',height+'px');
- }*/
- });
- $(".tabs-wrap").css('width','100%');
- });
- function btn_ok(){
- var trList = $("#add_clothingApplyDetail_table").children("tr");
- if(trList.length == 0){
- layer.alert("请至少输入一条货品详细信息");
- return;
- }
- //resetDisabled("add_storageInDetail_table");
- $("#btnsub").click();
- }
- function btn_back(){
- window.closeCurrentDialog();
- }
- function callback(data){
- if(data.success){
- layer.alert(data.msg, function(index){
- frameElement.api.opener.refresh();
- window.closeCurrentDialog();
- });
- }
- else{
- layer.alert(data.msg);
- }
- }
- </script>
- </head>
- <body style="overflow-x: hidden;">
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="clothingApplyController.do?doAdd" callback="callback@Override"
- beforeSubmit="beforeSave">
- <input id="id" name="id" type="hidden" value="${clothingApplyPage.id }"/>
- <input id="warehouseid" name="warehouseid" type="hidden" value="${clothingApplyPage.warehouseid }"/>
- <input id="departid" name="departid" type="hidden" value="${clothingApplyPage.departid }"/>
- <input id="projectid" name="projectid" type="hidden" value="${clothingApplyPage.projectid }"/>
- <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
- <t:tab href="clothingApplyController.do?clothingApplyDetailList&id=${clothingApplyPage.id}" icon="icon-search" title="服装申请明细" id="clothingApplyDetail"></t:tab>
- </t:tabs>
- <table cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right">
- <label class="Validform_label">领料点:</label>
- </td>
- <td class="value">
- <input id="warehousename" name="warehousename" type="text" style="width: 150px" class="inputxt" readonly="readonly" ignore="ignore" value="${clothingApplyPage.warehousename }"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">领料点</label>
- </td>
- <td align="right">
- <label class="Validform_label">申请日期:</label>
- </td>
- <td class="value">
- <input id="applydate" name="applydate" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker({maxDate:'%y-%M-%d'})" datatype="*" value="${clothingApplyPage.applydate }" ignore="checked" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">申请日期</label>
- </td>
- <td align="right">
- <label class="Validform_label">总金额:</label>
- </td>
- <td class="value">
- <input id="totalMoney" name="totalMoney" type="text" style="width: 150px" class="inputxt" readonly="readonly" ignore="ignore" value="${clothingApplyPage.totalMoney }"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">总金额</label>
- </td>
- </tr>
- <tr>
- <td height="50px" align="center" colspan="8">
- <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
- <a style="margin-left:80px" href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">确定</a>
- <a href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="btn_back()">返回</a>
-
- </td>
- </tr>
-
- </table>
-
- </t:formvalid>
- <!-- 添加 附表明细 模版 -->
- <table style="display:none">
- <tbody id="add_clothingApplyDetail_table_template">
- <tr>
- <td align="center"><div style="width: 25px;" name="xh"></div></td>
- <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
- <input name="clothingApplyDetailList[#index#].userid" type="hidden" datatype="*" nullmsg="请选择员工"/>
- <input name="clothingApplyDetailList[#index#].clothingid" type="hidden" datatype="*" nullmsg="请选择服装"/>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].realname" maxlength="32" type="text" class="inputxt" style="width:120px;" readonly="readonly" />
- <label class="Validform_label" style="display: none;">员工姓名</label>
- </td>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].clothingname" maxlength="64" type="text" class="inputxt" style="width:120px;" readonly="readonly"/>
- <label class="Validform_label" style="display: none;">服装名称</label>
- </td>
- <td align="left">
- <t:dictSelect field="clothingApplyDetailList[#index#].type" type="list" extendJson="{class:'form-control',style:'width:120px'}"
- typeGroupCode="clothingtype" hasLabel="false" readonly="readonly" title="服装类型" ></t:dictSelect>
- <label class="Validform_label" style="display: none;">服装类型</label>
- </td>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].entrydate" maxlength="20" type="text" readonly="readonly" class="Wdate" style="width:120px;" ignore="ignore" />
- <label class="Validform_label" style="display: none;">入职日期</label>
- </td>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].lastdate" maxlength="20" type="text" readonly="readonly" class="Wdate" style="width:120px;" ignore="ignore" />
- <label class="Validform_label" style="display: none;">上次申领日期</label>
- </td>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].startdate" maxlength="20" type="text" readonly="readonly" class="Wdate" style="width:120px;" ignore="ignore" />
- <label class="Validform_label" style="display: none;">启用日期</label>
- </td>
- <td align="left">
- <t:dictSelect field="clothingApplyDetailList[#index#].applyreason" type="list" typeGroupCode="applyreason" defaultVal="" hasLabel="false" title="申请原因"></t:dictSelect>
- <label class="Validform_label" style="display: none;">申请原因</label>
- </td>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].price" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="d" readonly="readonly" />
- <label class="Validform_label" style="display: none;">单价</label>
- </td>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].quantity" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="n" />
- <label class="Validform_label" style="display: none;">数量</label>
- </td>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].money" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="d" readonly="readonly"/>
- <label class="Validform_label" style="display: none;">金额</label>
- </td>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].size" maxlength="10" type="text" class="inputxt" style="width:120px;" datatype="*"/>
- <label class="Validform_label" style="display: none;">尺码</label>
- </td>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].remark" maxlength="10" type="text" class="inputxt" style="width:220px;" ignore="ignore" />
- <label class="Validform_label" style="display: none;">备注</label>
- </td>
- <td align="left">
- <input name="clothingApplyDetailList[#index#].unit" maxlength="32" type="hidden" class="inputxt" style="width:120px;" ignore="ignore" />
- <label class="Validform_label" style="display: none;">单位</label>
- </td>
- </tr>
- </tbody>
- </table>
- </body>
- <script src = "webpage/cn/com/lzt/clothing/apply/clothingApply.js?v=2"></script>
-
|