|
@@ -11,7 +11,7 @@
|
|
|
if($("#submitterDate").val()==null || $("#submitterDate").val()==''){
|
|
|
$("#submitterDate").val(getNowFormatDate());
|
|
|
}
|
|
|
- $("input[name='ext']").on('ifChecked', function(event){
|
|
|
+ /*$("input[name='ext']").on('ifChecked', function(event){
|
|
|
var radioVal = $(this).val();
|
|
|
if(radioVal == 0){
|
|
|
$(".td1").removeClass("hide");
|
|
@@ -27,7 +27,7 @@
|
|
|
$("#ext1").iCheck('check')
|
|
|
}else{
|
|
|
$("#ext").iCheck('check')
|
|
|
- }
|
|
|
+ }*/
|
|
|
$("input[name='isPublic']").on('ifChecked', function(event){
|
|
|
var radioVal = $(this).val();
|
|
|
if(radioVal == 1){
|
|
@@ -270,14 +270,16 @@
|
|
|
if(list == '#workAccountList'){
|
|
|
tpl = tpl.replace("workAccountList[0].financialSubjects","workAccountList["+idx1+"].financialSubjects");
|
|
|
tpl = tpl.replace("workAccountList[0].financialSubjectss","workAccountList["+idx1+"].financialSubjectss");
|
|
|
- var ext = $("input[name='ext']:checked").val();
|
|
|
+ /*var ext = $("input[name='ext']:checked").val();
|
|
|
if(ext == 0){
|
|
|
tpl = tpl.replace("not_project_reimbursement_div","not_project_reimbursement_div\" style=\"display:none;\"");
|
|
|
tpl = tpl.replace("project_reimbursement_div\" style=\"display:none;\"","project_reimbursement_div");
|
|
|
}else {
|
|
|
tpl = tpl.replace("project_reimbursement_div","project_reimbursement_div\" style=\"display:none;\"");
|
|
|
tpl = tpl.replace("not_project_reimbursement_div\" style=\"display:none;\"","not_project_reimbursement_div\"");
|
|
|
- }
|
|
|
+ }*/
|
|
|
+ tpl = tpl.replace("not_project_reimbursement_div","not_project_reimbursement_div\" style=\"display:none;\"");
|
|
|
+ tpl = tpl.replace("project_reimbursement_div\" style=\"display:none;\"","project_reimbursement_div");
|
|
|
bornTemplete(list, idx, tpl, row, idx1);
|
|
|
}
|
|
|
var idx2 = $("#reimbursementVATTaxes tr").length;
|
|
@@ -466,6 +468,20 @@
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
+ function setParentInfo(parentId){
|
|
|
+ $.ajax({
|
|
|
+ url:"${ctx}/reimbursementType/reimbursementType/jsonData",
|
|
|
+ dataType:"json",
|
|
|
+ data:{id:parentId},
|
|
|
+ success:function (data) {
|
|
|
+ if(data.proofread==1&&data.grade==1){
|
|
|
+ $("#maxDeductTr").show();
|
|
|
+ }else {
|
|
|
+ $("#maxDeductTr").hide();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
</script>
|
|
|
<style>
|
|
|
/*超过5个汉字,调整label的长度,以下是配套的*/
|
|
@@ -476,6 +492,10 @@
|
|
|
.query .layui-input-block {
|
|
|
margin-left: 116px;
|
|
|
}
|
|
|
+ #workAccountList td{
|
|
|
+ padding-left: 0px;
|
|
|
+ padding-right: 0px;
|
|
|
+ }
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -515,31 +535,24 @@
|
|
|
<input type="hidden" id="officeId" name="officeId" value="${workReimbursement.officeId}">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
+ <%--<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label"><span class="require-item">*</span>银行卡号:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<form:input path="bankCard" htmlEscape="false" id="bankCard" minlength="16" maxlength="19" class="form-control number required layui-input" value = "${workReimbursement.bankCard}"/>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
+ </div>--%>
|
|
|
+ <%--<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label"><span class="require-item">*</span>报销类型:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input type="radio" class="i-checks" name="ext" checked id="ext" value="0">
|
|
|
<label for="ext">项目报销</label>
|
|
|
<input type="radio" class="i-checks" name="ext" id="ext1" value="1">
|
|
|
<label for="ext1">非项目报销</label>
|
|
|
- <%--<input type="text" name="title" lay-verify="title" autocomplete="off" readonly="true" placeholder="" class="layui-input" value="全过程管理用户01">--%>
|
|
|
+ <%–<input type="text" name="title" lay-verify="title" autocomplete="off" readonly="true" placeholder="" class="layui-input" value="全过程管理用户01">–%>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
- <label class="layui-form-label">报销类型:</label>
|
|
|
- <div class="layui-input-block with-icon">
|
|
|
- <sys:treeselect id="officeId" name="officeId" value="${workReimbursement.officeId}" labelName="officeName" labelValue="${workReimbursement.officeName}"
|
|
|
- title="部门" url="/sys/office/treeDataAll?type=2" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </div>--%>
|
|
|
|
|
|
- <div class="layui-item layui-col-sm6 td1">
|
|
|
+ <%--<div class="layui-item layui-col-sm6 td1">
|
|
|
<label class="layui-form-label"><span class="require-item">*</span>报销项目:</label>
|
|
|
<div class="layui-input-block with-icon">
|
|
|
<sys:gridselectReproject url="${ctx}/workreimbursement/workReimbursement/selectReproject" id="project" name="project.id" value="${workReimbursement.project.id}" title="选择报销项目" labelName="project.projectName"
|
|
@@ -548,20 +561,27 @@
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label">报销类别:</label>
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
+ <sys:treeselectAccessoryNoParent id="reviewParent" name="type" value="${workReimbursement.workReimbursementTypeInfo.id}" labelName="typeName" labelValue="${workReimbursement.workReimbursementTypeInfo.standardDetail}"
|
|
|
+ title="报销类别" url="/reimbursementType/reimbursementType/treeData" extId="${workReimbursement.workReimbursementTypeInfo.id}" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
+ </div>
|
|
|
+ </div>--%>
|
|
|
+ <%--<div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">报销类别:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<form:select id="type" path="type" class="form-control simple-select ">
|
|
|
<form:option value="" label=""/>
|
|
|
<form:options items="${fns:getMainDictList('reimbursement_type')}" itemLabel="label" itemValue="label" htmlEscape="false"/>
|
|
|
</form:select>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>--%>
|
|
|
<%--<div class="layui-item layui-col-sm6 td1">
|
|
|
<label class="layui-form-label">项目负责人:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<form:input path="projectMasterName" htmlEscape="false" readonly="true" id="projectMasterName" class="form-control layui-input"/>
|
|
|
</div>
|
|
|
</div>--%>
|
|
|
- <div class="layui-item layui-col-sm6">
|
|
|
+ <%--<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label double-line"><span class="require-item">*</span>是否对公报销:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input type="radio" class="i-checks" name="isPublic" checked id="isPublic" value="0">
|
|
@@ -597,7 +617,7 @@
|
|
|
<form:input path="userName" htmlEscape="false" readonly="true" id="userName" class="form-control required layui-input" value="${workReimbursement.submitterName}"/>
|
|
|
<input type="hidden" id="createById" name="createBy.id" value="${workReimbursement.createBy.id}">
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>--%>
|
|
|
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label"><span class="require-item">*</span>报销日期:</label>
|
|
@@ -613,125 +633,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <%--<div class="form-group layui-row">
|
|
|
- <div class="form-group-label"><h2>借款明细</h2></div>
|
|
|
- <div class="layui-item layui-col-xs12 form-table-container" >
|
|
|
- <table id="contentTable3" class="table table-bordered table-condensed can-edit no-bottom-margin">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th width="190px">借款日期</th>
|
|
|
- <th width="190px">借款类型</th>
|
|
|
- <th width="190px">借款项目</th>
|
|
|
- <th width="190px">借款金额</th>
|
|
|
- <th width="180px">未还金额</th>
|
|
|
- <th width="100px">本次还款</th>
|
|
|
- <th width="120px">借款编号</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="reimbursementBackList">
|
|
|
- <c:if test="${not empty workReimbursement.reimbursementBackList}">
|
|
|
- <c:forEach items="${workReimbursement.reimbursementBackList}" var="reimbursementBack" varStatus="index">
|
|
|
- <tr id="reimbursementBackList${index.index}">
|
|
|
- <td class="hide">
|
|
|
- <input id="reimbursementBackList${index.index}_id" name="reimbursementBackList[${index.index}].id" type="hidden" value="${reimbursementBack.id}"/>
|
|
|
- <input id="reimbursementBackList${index.index}_workLoanId" name="reimbursementBackList[${index.index}].workLoan.id" type="hidden" value="${reimbursementBack.workLoan.id}"/>
|
|
|
- <input id="reimbursementBackList${index.index}_delFlag" name="reimbursementBackList[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="reimbursementBackList${index.index}_1" type="text" maxlength="20" readonly="true" class=" form-control layui-input"
|
|
|
- value="<fmt:formatDate value="${reimbursementBack.workLoan.loanDate}" pattern="yyyy-MM-dd"/>"/>
|
|
|
- </input>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="reimbursementBackList${index.index}_2" readonly="true" type="text" value="${reimbursementBack.workLoan.type}" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="reimbursementBackList${index.index}_3" readonly="true" type="text" value="${reimbursementBack.workLoan.projectRecords.projectName}" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="reimbursementBackList${index.index}_4" readonly="true" type="text" value="${reimbursementBack.workLoan.money}" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="reimbursementBackList${index.index}_5" readonly="true" type="text" value="${reimbursementBack.workLoan.notRepay}" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="reimbursementBackList${index.index}_6" onchange="getBackMoney(this.value)" name="reimbursementBackList[${index.index}].money" type="text" value="${reimbursementBack.money}" placeholder="请输入金额" maxlength="10" class="form-control number "/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="reimbursementBackList${index.index}_7" readonly="true" type="text" value="${reimbursementBack.workLoan.num}" class="form-control"/>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </c:forEach>
|
|
|
- </c:if>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- <table id="contentMoneys1" class="table table-bordered table-condensed can-edit summary">
|
|
|
- <tr>
|
|
|
- <td style="width:190px;vertical-align:middle;text-align: center;"><label><font color="red">*</font>合计</label></td>
|
|
|
- <td width="190px" style="vertical-align:middle;text-align: center;">
|
|
|
- -
|
|
|
- </td >
|
|
|
- <td width="190px" style="vertical-align:middle;text-align: center;">
|
|
|
- -
|
|
|
- </td>
|
|
|
- <td width="190px" style="vertical-align:middle;text-align: center;">
|
|
|
- -
|
|
|
- </td>
|
|
|
- <td width="180px" style="vertical-align:middle;text-align: center;">
|
|
|
- -
|
|
|
- </td>
|
|
|
- <td width="100px" style="vertical-align:middle;text-align: center;">
|
|
|
- <input id="backmoney" value="${workReimbursement.backmoney}" name="backmoney" htmlEscape="false" readonly="true" maxlength="12" class="form-control "/>
|
|
|
- </td>
|
|
|
- <td width="120px" style="vertical-align:middle;text-align: center;">
|
|
|
- -
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <script type="text/template" id="reimbursementBackTpl">//<!--
|
|
|
- <tr>
|
|
|
- <td class="hide">
|
|
|
- <input id="reimbursementBackList{{idx}}_id" name="reimbursementBackList[{{idx}}].id" type="hidden" value="{{row.id}}">
|
|
|
- <input id="reimbursementBackList{{idx}}_delFlag" name="reimbursementBackList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
- <input id="reimbursementBackList{{idx}}_workLoanId" name="reimbursementBackList[{{idx}}].workLoan.id" type="hidden" value="{{row.workLoan.id}}"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="leaveDetailList{{idx}}_1" value="{{row.workLoan.loanDate}} " readOnly="true" type="text" maxlength="20" class=" form-control layer-date layui-input "/></input>
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- <input id="reimbursementBackList{{idx}}_2" readOnly="true" value="{{row.workLoan.type}}" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- <input id="reimbursementBackList{{idx}}_3" readOnly="true" value="{{row.workLoan.projectRecords.projectName}}" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- <input id="reimbursementBackList{{idx}}_4" readOnly="true" value="{{row.workLoan.money}}" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- <input id="reimbursementBackList{{idx}}_5" readOnly="true" value="{{row.workLoan.notRepay}}" class="form-control"/>
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- <input id="reimbursementBackList{{idx}}_6" onchange="getBackMoney(this.value)" name="reimbursementBackList[{{idx}}].money" value="{{row.money}}" placeholder="请输入金额" maxlength="10" class="form-control number "/>
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- <input id="reimbursementBackList{{idx}}_7" readOnly="true" value="{{row.workLoan.num}}" class="form-control"/>
|
|
|
- </td>
|
|
|
-
|
|
|
- </tr>//-->
|
|
|
- </script>
|
|
|
- <script type="text/javascript">
|
|
|
- var reimbursementBackIdx = 0; var reimbursementBackTpl = $("#reimbursementBackTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g,"");
|
|
|
- function addRowRecord(list, idx, tpl, row){
|
|
|
- if(idx==0) {
|
|
|
- reimbursementBackIdx = $("#reimbursementBackList tr").length;
|
|
|
- idx = reimbursementBackIdx;
|
|
|
- }
|
|
|
- bornTemplete(list, idx, tpl, row, idx);
|
|
|
- reimbursementBackIdx +=1;
|
|
|
- }
|
|
|
- </script>
|
|
|
- </div>
|
|
|
- </div>--%>
|
|
|
<div class="form-group layui-row">
|
|
|
<div class="form-group-label"><h2>报销详情</h2></div>
|
|
|
<div class="layui-item nav-btns">
|
|
@@ -741,11 +642,16 @@
|
|
|
<table id="contentTable" class="table table-bordered table-condensed can-edit no-bottom-margin details">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th width="200px"><font color="red">*</font>财务科目</th>
|
|
|
- <th><font color="red">*</font>报销费用摘要</th>
|
|
|
- <th width="150px"><font color="red">*</font>发票类型</th>
|
|
|
- <th width="150px"><font color="red">*</font>报销费用(元)</th>
|
|
|
- <th width="200px">备注</th>
|
|
|
+ <%--<th width="60px">编号</th>--%>
|
|
|
+ <th width="200px"><font color="red">*</font>报销人</th>
|
|
|
+ <th width="200px">报销部门</th>
|
|
|
+ <th width="200px"><font color="red">*</font>报销项目</th>
|
|
|
+ <th width="200px">报告号</th>
|
|
|
+ <th width="200px">报销类型</th>
|
|
|
+ <th width="200px">费用(元)</th>
|
|
|
+ <th width="200px">收据张数</th>
|
|
|
+ <th width="200px">出差天数</th>
|
|
|
+ <th width="200px">内容</th>
|
|
|
<th width="100px">操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
@@ -757,32 +663,48 @@
|
|
|
<input id="workAccountList${index.index}_id" name="workAccountList[${index.index}].id" type="hidden" value="${workAccount.id}"/>
|
|
|
<input id="workAccountList${index.index}_delFlag" name="workAccountList[${index.index}].delFlag" type="hidden" value="0"/>
|
|
|
</td>
|
|
|
- <td>
|
|
|
- <div class="project_reimbursement_div">
|
|
|
- <form:select id="workAccountList${index.index}_financialSubjects" path="workAccountList[${index.index}].financialSubjects" class="form-control required">
|
|
|
- <form:option value="" label="请选择"/>
|
|
|
- <form:options items="${fns:getMainDictList('project_reimbursement')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
- </form:select>
|
|
|
+ <%--<td>
|
|
|
+ <div style="width: 60px">
|
|
|
+ <input readonly="readonly" style="text-align: center" value="${index.index+1}" type="text" class="form-control contentDetail"/>
|
|
|
+
|
|
|
</div>
|
|
|
- <div class="not_project_reimbursement_div" style="display:none;">
|
|
|
- <form:select id="workAccountList${index.index}financialSubjectss" path="workAccountList[${index.index}].financialSubjectss" class="form-control required">
|
|
|
- <form:option value="" label="请选择"/>
|
|
|
- <form:options items="${fns:getMainDictList('not_project_reimbursement')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
- </form:select>
|
|
|
+ </td>--%>
|
|
|
+ <td>
|
|
|
+ <div class="project_reimbursement_div" style="width: 200px">
|
|
|
+ <sys:reimburtreeselectUser id="workAccountList${index.index}_reimbursementName" name="workAccountList[${index.index}].reimbursementName" value="${projectRecords.leaderIds}" labelName="reimbursementNameName" labelValue="${workAccount.reimbursementName}"
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <input id="workAccountList${index.index}_moneyAbstract" name="workAccountList[${index.index}].moneyAbstract" maxlength="32" type="text" value="${workAccount.moneyAbstract}" placeholder="请输入费用摘要" class="form-control required"/>
|
|
|
+ <input id="workAccountList${index.index}_reimbursementNameofficeId" name="workAccountList[${index.index}].officeId" maxlength="32" type="text" value="${workAccount.officeId}" readonly="readonly" class="form-control required"/>
|
|
|
</td>
|
|
|
+
|
|
|
+
|
|
|
<td>
|
|
|
- <select id="workAccountList${index.index}_invoiceType" name="workAccountList[${index.index}].invoiceType" class="form-control ">
|
|
|
- <option value="专票" <c:if test="${'专票' eq workAccount.invoiceType}">selected</c:if>>专票</option>
|
|
|
- <option value="普票" <c:if test="${'普票' eq workAccount.invoiceType}">selected</c:if>>普票</option>
|
|
|
- </select>
|
|
|
+ <div class="not_project_reimbursement_div" style="width: 200px">
|
|
|
+ <sys:reimburselectReproject url="${ctx}/workreimbursement/workReimbursement/selectReproject" id="workAccountList${index.index}_project" name="workAccountList[${index.index}].project.id" value="${workAccount.project.id}" title="选择报销项目" labelName="workAccountList[${index.index}].project.projectName"
|
|
|
+ labelValue="${workAccount.project.projectName}" cssClass="form-control required layui-input" fieldLabels="工程" fieldKeys="projectName" searchLabel="工程名称" searchKey="projectName" />
|
|
|
+ </div>
|
|
|
</td>
|
|
|
<td>
|
|
|
+ <input id="workAccountList${index.index}_projectReportNumber" name="workAccountList[${index.index}].projectReportNumber" type="text" value="${workAccount.projectReportNumber}" maxlength="32" readonly="readonly" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td style="text-align:center;">
|
|
|
+ <div class="project_reimbursement_div" style="width: 200px">
|
|
|
+ <sys:treeselectAccessoryNoParent id="workAccountList${index.index}_type" name="workAccountList[${index.index}].type" value="${workAccount.type}" labelName="workAccountList[${index.index}].typeName" labelValue="${workAccount.typeName}"
|
|
|
+ title="报销类别" url="/reimbursementType/reimbursementType/treeData" extId="" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
<input id="workAccountList${index.index}_money" onchange="getMoney(this.value)" name="workAccountList[${index.index}].money" type="text" value="${workAccount.money}" placeholder="请输入金额" maxlength="10" class="form-control number required"/>
|
|
|
</td>
|
|
|
+ <td style="text-align:center;">
|
|
|
+ <input id="workAccountList${index.index}_bills" name="workAccountList[${index.index}].bills" type="text" value="${workAccount.bills}" maxlength="32" placeholder="请输入单据张数" class="form-control number"/>
|
|
|
+ </td>
|
|
|
+ <td style="text-align:center;">
|
|
|
+ <input id="workAccountList${index.index}_evectionNumber" name="workAccountList[${index.index}].evectionNumber" type="text" value="${workAccount.evectionNumber}" maxlength="32" placeholder="请输入出差天数" class="form-control number"/>
|
|
|
+ </td>
|
|
|
<td>
|
|
|
<input id="workAccountList${index.index}_remarks" name="workAccountList[${index.index}].remarks" type="text" value="${workAccount.remarks}" maxlength="32" placeholder="请输入备注" class="form-control"/>
|
|
|
</td>
|
|
@@ -804,45 +726,59 @@
|
|
|
</tr>
|
|
|
</table>
|
|
|
<script type="text/template" id="workAccountListTpl">//<!--
|
|
|
- <tr id="workAccountList{{idx}}">
|
|
|
- <td class="hide">
|
|
|
- <input id="workAccountList{{idx}}_id" name="workAccountList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
|
|
|
- <input id="workAccountList{{idx}}_delFlag" name="workAccountList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="project_reimbursement_div">
|
|
|
- <form:select id="workAccountList{{idx}}_financialSubjects" path="workAccountList[0].financialSubjects" class="form-control required">
|
|
|
- <form:option value="" label="请选择"/>
|
|
|
- <form:options items="${fns:getMainDictList('project_reimbursement')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
- </form:select>
|
|
|
- </div>
|
|
|
- <div class="not_project_reimbursement_div" style="display:none;">
|
|
|
- <form:select id="workAccountList{{idx}}_financialSubjectss" path="workAccountList[0].financialSubjectss" class="form-control required">
|
|
|
- <form:option value="" label="请选择"/>
|
|
|
- <form:options items="${fns:getMainDictList('not_project_reimbursement')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
- </form:select>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="workAccountList{{idx}}_moneyAbstract" name="workAccountList[{{idx}}].moneyAbstract" type="text" value="{{row.moneyAbstract}}" maxlength="32" placeholder="请输入费用摘要" class="form-control required"/>
|
|
|
- </td>
|
|
|
- <td style="text-align:center;">
|
|
|
- <select id="workAccountList{{idx}}_invoiceType" name="workAccountList[{{idx}}].invoiceType" class="form-control required">
|
|
|
- <option value="专票">专票</option>
|
|
|
- <option value="普票">普票</option>
|
|
|
- </select>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="workAccountList{{idx}}_money" onchange="getMoney(this.value)" name="workAccountList[{{idx}}].money" type="text" value="{{row.money}}" placeholder="请输入金额" maxlength="10" class="form-control number required"/>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <input id="workAccountList{{idx}}_remarks" name="workAccountList[{{idx}}].remarks" type="text" value="{{row.remarks}}" placeholder="请输入备注" maxlength="32" class="form-control "/>
|
|
|
- </td>
|
|
|
+ <tr id="workAccountList{{idx}}">
|
|
|
+ <td class="hide">
|
|
|
+ <input id="workAccountList{{idx}}_id" name="workAccountList[{{idx}}].id" type="hidden" value="{{row.id}}"/>
|
|
|
+ <input id="workAccountList{{idx}}_delFlag" name="workAccountList[{{idx}}].delFlag" type="hidden" value="0"/>
|
|
|
+ </td>
|
|
|
+ <%--<td>
|
|
|
+ <div style="width: 60px">
|
|
|
+ <input readonly="readonly" style="text-align: center" value="{{idx}}" type="text" class="form-control contentDetail"/>
|
|
|
+ </div>
|
|
|
+ </td>--%>
|
|
|
+ <td>
|
|
|
+ <div class="project_reimbursement_div" style="width: 200px">
|
|
|
+ <sys:reimburtreeselectUser id="workAccountList{{idx}}_reimbursementName" name="workAccountList[{{idx}}].reimbursementName" value="${projectRecords.leaderIds}" labelName="workAccountList[{{idx}}].name" labelValue="{{row.reimbursementName}}"
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div class="not_project_reimbursement_div" style="width: 200px">
|
|
|
+ <input id="workAccountList{{idx}}_reimbursementNameofficeId" type="text" value="{{row.officeId}}" maxlength="32" readonly="readonly" class="form-control"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div class="not_project_reimbursement_div" style="width: 200px">
|
|
|
+ <sys:reimburselectReproject url="${ctx}/workreimbursement/workReimbursement/selectReproject" id="workAccountList{{idx}}_project" name="workAccountList[{{idx}}].project.id" value="${workReimbursement.project.id}" title="选择报销项目" labelName="workAccountList[{{idx}}].project.projectName"
|
|
|
+ labelValue="{{row.projectName}}" cssClass="form-control required layui-input" fieldLabels="工程" fieldKeys="projectName" searchLabel="工程名称" searchKey="projectName" ></sys:reimburselectReproject>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="workAccountList{{idx}}_projectReportNumber" name="workAccountList[{{idx}}].projectReportNumber" type="text" value="{{row.projectReportNumber}}" maxlength="32" readonly="readonly" class="form-control"/>
|
|
|
+ </td>
|
|
|
+ <td style="text-align:center;">
|
|
|
+ <div class="project_reimbursement_div" style="width: 200px">
|
|
|
+ <sys:treeselectAccessoryNoParent id="workAccountList{{idx}}_type" name="workAccountList[{{idx}}].type" value="${workReimbursement.workReimbursementTypeInfo.id}" labelName="workAccountList[{{idx}}].typeName" labelValue="${workReimbursement.workReimbursementTypeInfo.standardDetail}"
|
|
|
+ title="报销类别" url="/reimbursementType/reimbursementType/treeData" extId="" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="workAccountList{{idx}}_money" onchange="getMoney(this.value)" name="workAccountList[{{idx}}].money" type="text" value="{{row.money}}" placeholder="请输入费用" maxlength="10" class="form-control number"/>
|
|
|
+ </td>
|
|
|
+ <td style="text-align:center;">
|
|
|
+ <input id="workAccountList{{idx}}_bills" name="workAccountList[{{idx}}].bills" type="text" value="{{row.bills}}" maxlength="32" placeholder="请输入单据张数" class="form-control number"/>
|
|
|
+ </td>
|
|
|
+ <td style="text-align:center;">
|
|
|
+ <input id="workAccountList{{idx}}_evectionNumber" name="workAccountList[{{idx}}].evectionNumber" type="text" value="{{row.evectionNumber}}" maxlength="32" placeholder="请输入出差天数" class="form-control number"/>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input id="workAccountList{{idx}}_remarks" name="workAccountList[{{idx}}].remarks" type="text" value="{{row.remarks}}" placeholder="请输入内容" maxlength="32" class="form-control "/>
|
|
|
+ </td>
|
|
|
|
|
|
- <td class="text-center op-td" >
|
|
|
- {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workAccountList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
|
- </td>
|
|
|
- </tr>//-->
|
|
|
+ <td class="text-center op-td" >
|
|
|
+ {{#delBtn}}<span class="op-btn op-btn-delete" onclick="delRow(this, '#workAccountList{{idx}}')" title="删除"><i class="glyphicon glyphicon-remove"></i> 删除</span>{{/delBtn}}
|
|
|
+ </td>
|
|
|
+ </tr>//-->
|
|
|
</script>
|
|
|
</div>
|
|
|
</div>
|