|
@@ -243,7 +243,7 @@
|
|
|
"<td onclick='listTr(this)' style='text-align: center;position: relative; width:80px; text-align: center; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;'>" +
|
|
"<td onclick='listTr(this)' style='text-align: center;position: relative; width:80px; text-align: center; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;'>" +
|
|
|
"<span class='default_shut ' style=\"padding-right: 15px; \"></span><input type=\"hidden\" name=\"proId\" id='" + tid + "' value=" + obj.id + "><input type=\"hidden\" name=\"projectid\" value=" + obj.id + ">" + serialNumber + "</td>" +
|
|
"<span class='default_shut ' style=\"padding-right: 15px; \"></span><input type=\"hidden\" name=\"proId\" id='" + tid + "' value=" + obj.id + "><input type=\"hidden\" name=\"projectid\" value=" + obj.id + ">" + serialNumber + "</td>" +
|
|
|
"<td>" +
|
|
"<td>" +
|
|
|
- '<div class="project_reimbursement_div" style="width: 200px">' +
|
|
|
|
|
|
|
+ '<div class="project_reimbursement_div" style="width: 150px">' +
|
|
|
parsedTagHtml + // 插入解析后的标签HTML
|
|
parsedTagHtml + // 插入解析后的标签HTML
|
|
|
'</div>' +
|
|
'</div>' +
|
|
|
"</td>" +
|
|
"</td>" +
|
|
@@ -275,6 +275,10 @@
|
|
|
"</td>" +
|
|
"</td>" +
|
|
|
|
|
|
|
|
"<td>" +
|
|
"<td>" +
|
|
|
|
|
+ "<input id='workAccountList" + index + "_subsidyMoney' onchange='calculateSum(" + index + ")' name='workAccountList[" + index + "].subsidyMoney' type='text' value='" + (obj.subsidyMoney === null || obj.subsidyMoney === undefined ? "" : obj.subsidyMoney) + "' placeholder='补贴金额' maxlength='10' class='form-control number'/>" +
|
|
|
|
|
+ "</td>" +
|
|
|
|
|
+
|
|
|
|
|
+ "<td>" +
|
|
|
"<input id='workAccountList" + index + "_money' name='workAccountList[" + index + "].money' type='text' value='" + (obj.money === null || obj.money === undefined ? "" : obj.money) + "' readonly='readonly' class='form-control number judgment' style='background-color: #f5f5f5;'/>" +
|
|
"<input id='workAccountList" + index + "_money' name='workAccountList[" + index + "].money' type='text' value='" + (obj.money === null || obj.money === undefined ? "" : obj.money) + "' readonly='readonly' class='form-control number judgment' style='background-color: #f5f5f5;'/>" +
|
|
|
"</td>" +
|
|
"</td>" +
|
|
|
|
|
|
|
@@ -307,8 +311,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
var subsetId="workAccountList_"+ obj.id;
|
|
var subsetId="workAccountList_"+ obj.id;
|
|
|
-
|
|
|
|
|
- $("#workAccountList").append("<tr class='"+obj.id+"' style='display: none;'> <td colspan='15' style='padding: 0px;'>" +
|
|
|
|
|
|
|
+ console.log(1111)
|
|
|
|
|
+ $("#workAccountList").append("<tr class='"+obj.id+"' style='display: none;'> <td colspan='16' style='padding: 0px;'>" +
|
|
|
"<table style=\"width: 100%;padding: 0px;margin: 0px;\" class=\"table table-bordered table-condensed details\">" +
|
|
"<table style=\"width: 100%;padding: 0px;margin: 0px;\" class=\"table table-bordered table-condensed details\">" +
|
|
|
"<tbody id='"+subsetId+"'>" +
|
|
"<tbody id='"+subsetId+"'>" +
|
|
|
"<input type='text' id='"+subsetId+"_len' style='display: none;' name='flags' />"+
|
|
"<input type='text' id='"+subsetId+"_len' style='display: none;' name='flags' />"+
|
|
@@ -576,7 +580,7 @@
|
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_fileSize' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].fileSize' type='hidden' value='" + data.fileSize +"'/>"+
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_fileSize' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].fileSize' type='hidden' value='" + data.fileSize +"'/>"+
|
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_divIdType' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].divIdType' type='hidden' value='" + data.divIdType +"'/>" +
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_divIdType' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].divIdType' type='hidden' value='" + data.divIdType +"'/>" +
|
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_parentId' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].parentId' type='hidden' value='" + data.parentId + "'/>" +
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_parentId' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].parentId' type='hidden' value='" + data.parentId + "'/>" +
|
|
|
- "<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_indexNumber' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].indexNumber' type='hidden' value='" + data.indexNumber + "'/>" +
|
|
|
|
|
|
|
+ "<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_indexNumber' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].indexNumber' type='hidden' value='" + (data.indexNumber == null || data.indexNumber === '' ? trLength : data.indexNumber) + "'/>" +
|
|
|
"</td>"+
|
|
"</td>"+
|
|
|
|
|
|
|
|
<%--序号--%>
|
|
<%--序号--%>
|
|
@@ -945,7 +949,7 @@
|
|
|
|
|
|
|
|
var subsetId="workAccountList_"+randomStr;
|
|
var subsetId="workAccountList_"+randomStr;
|
|
|
|
|
|
|
|
- $(list).append("<tr class='"+randomStr+"' style='display: none;'> <td colspan='15' style='padding: 0px;'>" +
|
|
|
|
|
|
|
+ $(list).append("<tr class='"+randomStr+"' style='display: none;'> <td colspan='16' style='padding: 0px;'>" +
|
|
|
"<table style=\"width: 100%;padding: 0px;margin: 0px;\" class=\"table table-bordered table-condensed details\">" +
|
|
"<table style=\"width: 100%;padding: 0px;margin: 0px;\" class=\"table table-bordered table-condensed details\">" +
|
|
|
"<tbody id='" + subsetId + "'>" +
|
|
"<tbody id='" + subsetId + "'>" +
|
|
|
"</tbody>" +
|
|
"</tbody>" +
|
|
@@ -1035,7 +1039,7 @@
|
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; width:100px;padding:0px\"><font color=\"red\">*</font>价税合计</th>"+
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; width:100px;padding:0px\"><font color=\"red\">*</font>价税合计</th>"+
|
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; width:150px;padding:0px\"><font color=\"red\">*</font>开票日期</th>"+
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; width:150px;padding:0px\"><font color=\"red\">*</font>开票日期</th>"+
|
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; padding:0px\"><font color=\"red\">*</font>开票单位</th>"+
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; padding:0px\"><font color=\"red\">*</font>开票单位</th>"+
|
|
|
- "<th style=\"text-align: center; background-color:#F5F5F5; width:200px; max-width:200px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;;padding:0px\">文件预览</th>"+
|
|
|
|
|
|
|
+ "<th style=\"text-align: center; background-color:#F5F5F5; width:240px; max-width:240px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;;padding:0px\">文件预览</th>"+
|
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; width:80px;padding:0px\">上传人</th>"+
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; width:80px;padding:0px\">上传人</th>"+
|
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; width:110px;padding:0px\">上传时间</th>"+
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; width:110px;padding:0px\">上传时间</th>"+
|
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; width:200px;padding:0px\">操作</th>"+
|
|
"<th style=\"text-align: center; background-color:#F5F5F5; width:200px;padding:0px\">操作</th>"+
|
|
@@ -1102,12 +1106,12 @@
|
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_fileSize' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].fileSize' type='hidden' value=''/>"+
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_fileSize' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].fileSize' type='hidden' value=''/>"+
|
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_divIdType' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].divIdType' type='hidden' value=''/>" +
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_divIdType' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].divIdType' type='hidden' value=''/>" +
|
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_parentId' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].parentId' type='hidden' value='" + tbodyId + "'/>" +
|
|
"<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_parentId' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].parentId' type='hidden' value='" + tbodyId + "'/>" +
|
|
|
- "<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_indexNumber' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].indexNumber' type='hidden' value=''/>" +
|
|
|
|
|
|
|
+ "<input id='reimbursementElectronicInvoiceVATTaxes" + trLength +"_indexNumber' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength +"].indexNumber' type='hidden' value='" + serialNumber + "'/>" +
|
|
|
"</td>"+
|
|
"</td>"+
|
|
|
|
|
|
|
|
<%--序号--%>
|
|
<%--序号--%>
|
|
|
"<td style='text-align: center;position: relative; width:50px'></td>" +
|
|
"<td style='text-align: center;position: relative; width:50px'></td>" +
|
|
|
- "<td style='text-align: center;position: relative; width:80px;'>" + trLength + "</td>" +
|
|
|
|
|
|
|
+ "<td style='text-align: center;position: relative; width:80px;'>" + serialNumber + "</td>" +
|
|
|
"<td style='text-align: center; width:150px'><input id='reimbursementElectronicInvoiceVATTaxes" + trLength + "_invoiceTypeStr' onmouseover='this.title=this.value' readOnly='true' maxlength='50' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength + "].invoiceTypeStr' type='text' value='" + (data.InherentLabelGeneralOrSpecialVATLabelName ? data.InherentLabelGeneralOrSpecialVATLabelName : '') + "' class='form-control judgment'/></td>"+
|
|
"<td style='text-align: center; width:150px'><input id='reimbursementElectronicInvoiceVATTaxes" + trLength + "_invoiceTypeStr' onmouseover='this.title=this.value' readOnly='true' maxlength='50' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength + "].invoiceTypeStr' type='text' value='" + (data.InherentLabelGeneralOrSpecialVATLabelName ? data.InherentLabelGeneralOrSpecialVATLabelName : '') + "' class='form-control judgment'/></td>"+
|
|
|
"<td style='text-align: center; width:250px'><input id='reimbursementElectronicInvoiceVATTaxes" + trLength + "_invoiceProjectName' onmouseover='this.title=this.value' readOnly='true' maxlength='500' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength + "].invoiceProjectName' type='text' value='" + (data.IssuItemInformationItemName ? data.IssuItemInformationItemName : '') + "' class='form-control judgment'/></td>"+
|
|
"<td style='text-align: center; width:250px'><input id='reimbursementElectronicInvoiceVATTaxes" + trLength + "_invoiceProjectName' onmouseover='this.title=this.value' readOnly='true' maxlength='500' name='workAccountList[" + parentIndex + "].reimbursementElectronicInvoiceVATTaxes[" + trLength + "].invoiceProjectName' type='text' value='" + (data.IssuItemInformationItemName ? data.IssuItemInformationItemName : '') + "' class='form-control judgment'/></td>"+
|
|
|
<%--发票号--%>
|
|
<%--发票号--%>
|
|
@@ -1703,6 +1707,14 @@
|
|
|
var rowNumber = index; // 行号从1开始计数
|
|
var rowNumber = index; // 行号从1开始计数
|
|
|
// 更新第二个td中的行号(根据你的需求确认是否是nth-child(3))
|
|
// 更新第二个td中的行号(根据你的需求确认是否是nth-child(3))
|
|
|
$(this).find("td:nth-child(3)").text(rowNumber);
|
|
$(this).find("td:nth-child(3)").text(rowNumber);
|
|
|
|
|
+
|
|
|
|
|
+ // 2. 更新第一个td中的第15个input的值
|
|
|
|
|
+ // 步骤:找到当前行的第一个td → 在其中找到所有input → 取第15个(eq(14),因为索引从0开始)→ 设置value为rowNumber
|
|
|
|
|
+ $(this)
|
|
|
|
|
+ .find("td:nth-child(1)") // 选中第一个td
|
|
|
|
|
+ .find("input") // 找到该td下所有input
|
|
|
|
|
+ .eq(14) // 取第15个input(索引14)
|
|
|
|
|
+ .val(rowNumber); // 设置值为当前行号
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2265,7 +2277,7 @@
|
|
|
<%-- JSP模板:用占位符代替动态变量 --%>
|
|
<%-- JSP模板:用占位符代替动态变量 --%>
|
|
|
<div id="reimburseTemplate" style="display: none;">
|
|
<div id="reimburseTemplate" style="display: none;">
|
|
|
<sys:reimburtreeselectUser
|
|
<sys:reimburtreeselectUser
|
|
|
- id="workAccountList__INDEX__reimbursementName"
|
|
|
|
|
|
|
+ id="workAccountList__INDEX___reimbursementName"
|
|
|
name="workAccountList[__INDEX__].reimbursementName"
|
|
name="workAccountList[__INDEX__].reimbursementName"
|
|
|
value="__LEADER_IDS__"
|
|
value="__LEADER_IDS__"
|
|
|
labelName="reimbursementNameName"
|
|
labelName="reimbursementNameName"
|
|
@@ -2274,6 +2286,7 @@
|
|
|
url="/sys/office/treeDataAll?type=3"
|
|
url="/sys/office/treeDataAll?type=3"
|
|
|
cssClass="form-control layui-input"
|
|
cssClass="form-control layui-input"
|
|
|
allowClear="true"
|
|
allowClear="true"
|
|
|
|
|
+ checked="true"
|
|
|
notAllowSelectParent="true"/>
|
|
notAllowSelectParent="true"/>
|
|
|
</div>
|
|
</div>
|
|
|
<%-- 隐藏的treeselectAccessoryNoParent标签模板 --%>
|
|
<%-- 隐藏的treeselectAccessoryNoParent标签模板 --%>
|
|
@@ -2375,7 +2388,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
|
- <div class="form-group-label"><h2><span style="color: red;font-size: 14px"> (可在报销单后新增数电发票xml格式的附件获取发票信息)</span></h2></div>
|
|
|
|
|
|
|
+ <div class="form-group-label"><h2>报销详情<span style="color: red;font-size: 14px"> (可在报销单后新增数电发票xml格式的附件获取发票信息)</span></h2></div>
|
|
|
<div class="layui-item nav-btns">
|
|
<div class="layui-item nav-btns">
|
|
|
<a class="nav-btn nav-btn-add" onclick="addRow('#workAccountList', workAccountListRowIdx, workAccountListTpl,'',true);workAccountListRowIdx = workAccountListRowIdx + 1;" title="新增"><i class="fa fa-plus"></i> 新增报销单</a>
|
|
<a class="nav-btn nav-btn-add" onclick="addRow('#workAccountList', workAccountListRowIdx, workAccountListTpl,'',true);workAccountListRowIdx = workAccountListRowIdx + 1;" title="新增"><i class="fa fa-plus"></i> 新增报销单</a>
|
|
|
</div>
|
|
</div>
|
|
@@ -2384,13 +2397,13 @@
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
<th style="width: 50px;padding: 0px" rowspan="2">报销单</th>
|
|
<th style="width: 50px;padding: 0px" rowspan="2">报销单</th>
|
|
|
- <th style="width:100px" rowspan="2"><font color="red">*</font>报销人</th>
|
|
|
|
|
- <th style="width:100px" rowspan="2">报销部门</th>
|
|
|
|
|
|
|
+ <th style="width:150px" rowspan="2"><font color="red">*</font>报销人</th>
|
|
|
|
|
+ <th style="width:150px" rowspan="2">报销部门</th>
|
|
|
<th style="width:180px" rowspan="2"><font color="red">*</font>报销类型</th>
|
|
<th style="width:180px" rowspan="2"><font color="red">*</font>报销类型</th>
|
|
|
<th style="width:200px" rowspan="2"><font color="red">*</font>报销项目</th>
|
|
<th style="width:200px" rowspan="2"><font color="red">*</font>报销项目</th>
|
|
|
<th style="width:200px" rowspan="2">报告号</th>
|
|
<th style="width:200px" rowspan="2">报告号</th>
|
|
|
<!-- 多表头1:费用(元) -->
|
|
<!-- 多表头1:费用(元) -->
|
|
|
- <th style="width:300px" colspan="3"><font color="red">*</font>费用(元)</th>
|
|
|
|
|
|
|
+ <th style="width:400px" colspan="4"><font color="red">*</font>费用(元)</th>
|
|
|
<!-- 多表头2:收据张数 -->
|
|
<!-- 多表头2:收据张数 -->
|
|
|
<th style="width:300px" colspan="3"><font color="red">*</font>收据张数</th>
|
|
<th style="width:300px" colspan="3"><font color="red">*</font>收据张数</th>
|
|
|
<th style="width:100px" rowspan="2">出差天数</th>
|
|
<th style="width:100px" rowspan="2">出差天数</th>
|
|
@@ -2401,6 +2414,7 @@
|
|
|
<!-- 费用子表头 -->
|
|
<!-- 费用子表头 -->
|
|
|
<th style="width:100px">数电发票</th>
|
|
<th style="width:100px">数电发票</th>
|
|
|
<th style="width:100px">非数电票</th>
|
|
<th style="width:100px">非数电票</th>
|
|
|
|
|
+ <th style="width:100px">补贴</th>
|
|
|
<th style="width:100px"><font color="red">*</font>汇总</th>
|
|
<th style="width:100px"><font color="red">*</font>汇总</th>
|
|
|
<!-- 收据张数子表头 -->
|
|
<!-- 收据张数子表头 -->
|
|
|
<th style="width:100px">数电发票</th>
|
|
<th style="width:100px">数电发票</th>
|
|
@@ -2423,7 +2437,7 @@
|
|
|
<td style="vertical-align: middle;">
|
|
<td style="vertical-align: middle;">
|
|
|
<div class="project_reimbursement_div" style="width: 200px">
|
|
<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}"
|
|
<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 layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=3" checked="true" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
|
<td style="vertical-align: middle;">
|
|
<td style="vertical-align: middle;">
|
|
@@ -2453,6 +2467,9 @@
|
|
|
<input id="workAccountList${index.index}_invoiceMoney" onchange="calculateSum(${index.index})" name="workAccountList[${index.index}].invoiceMoney" type="text" value="${workAccount.invoiceMoney}" placeholder="非数电票金额" maxlength="10" class="form-control number"/>
|
|
<input id="workAccountList${index.index}_invoiceMoney" onchange="calculateSum(${index.index})" name="workAccountList[${index.index}].invoiceMoney" type="text" value="${workAccount.invoiceMoney}" placeholder="非数电票金额" maxlength="10" class="form-control number"/>
|
|
|
</td>
|
|
</td>
|
|
|
<td>
|
|
<td>
|
|
|
|
|
+ <input id="workAccountList${index.index}_subsidyMoney" onchange="calculateSum(${index.index})" name="workAccountList[${index.index}].subsidyMoney" type="text" value="${workAccount.subsidyMoney}" placeholder="补贴金额" maxlength="10" class="form-control number"/>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
<input id="workAccountList${index.index}_money" name="workAccountList[${index.index}].money" type="text" value="${workAccount.money}" readonly="readonly" class="form-control number judgment" style="background-color: #f5f5f5;"/>
|
|
<input id="workAccountList${index.index}_money" name="workAccountList[${index.index}].money" type="text" value="${workAccount.money}" readonly="readonly" class="form-control number judgment" style="background-color: #f5f5f5;"/>
|
|
|
</td>
|
|
</td>
|
|
|
|
|
|
|
@@ -2486,12 +2503,13 @@
|
|
|
<table id="contentMoneys" class="table table-bordered table-condensed can-edit no-bottom-margin details">
|
|
<table id="contentMoneys" class="table table-bordered table-condensed can-edit no-bottom-margin details">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr style="border: 0px">
|
|
<tr style="border: 0px">
|
|
|
- <td style="width:150px" style="vertical-align:middle;text-align: center;"><label><font color="red">*</font>总报销费用(元):</label></td>
|
|
|
|
|
- <td style="width:100px"></td>
|
|
|
|
|
|
|
+ <td></td>
|
|
|
|
|
+ <td style="width:200px" style="vertical-align:middle;text-align: center;"><label><font color="red">*</font>总报销费用(元):</label></td>
|
|
|
|
|
+ <td style="width:150px"></td>
|
|
|
<td style="width:180px"></td>
|
|
<td style="width:180px"></td>
|
|
|
<td style="width:200px"></td>
|
|
<td style="width:200px"></td>
|
|
|
<td style="width:200px"></td>
|
|
<td style="width:200px"></td>
|
|
|
- <td style="width:300px" style="border: 0px">
|
|
|
|
|
|
|
+ <td style="width:400px" style="border: 0px">
|
|
|
<input htmlEscape="false" style="border: 0px; font-weight: bold;" id="moneys" name="money" readonly="true" class="form-control layui-input" value="${workReimbursement.money}"/>
|
|
<input htmlEscape="false" style="border: 0px; font-weight: bold;" id="moneys" name="money" readonly="true" class="form-control layui-input" value="${workReimbursement.money}"/>
|
|
|
</td>
|
|
</td>
|
|
|
<td style="width:300px"></td>
|
|
<td style="width:300px"></td>
|
|
@@ -2516,13 +2534,13 @@
|
|
|
<span class='default_shut' name="workAccountList{{idx}}.serialNumber" style="padding-right: 15px; "></span>{{number}}
|
|
<span class='default_shut' name="workAccountList{{idx}}.serialNumber" style="padding-right: 15px; "></span>{{number}}
|
|
|
</td>
|
|
</td>
|
|
|
<td style="vertical-align: middle;">
|
|
<td style="vertical-align: middle;">
|
|
|
- <div class="project_reimbursement_div" style="width: 200px">
|
|
|
|
|
|
|
+ <div class="project_reimbursement_div" style="width: 150px" >
|
|
|
<sys:reimburtreeselectUser id="workAccountList{{idx}}_reimbursementName" name="workAccountList[{{idx}}].reimbursementName" value="${projectRecords.leaderIds}" labelName="workAccountList[{{idx}}].name" labelValue="{{row.reimbursementName}}"
|
|
<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 judgment layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control judgment layui-input" allowClear="true" checked="true" notAllowSelectParent="true"/>
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
|
<td style="vertical-align: middle;">
|
|
<td style="vertical-align: middle;">
|
|
|
- <div class="not_project_reimbursement_div" style="width: 200px">
|
|
|
|
|
|
|
+ <div class="not_project_reimbursement_div" style="width: 150px">
|
|
|
<input id="workAccountList{{idx}}_reimbursementNameofficeId" type="text" value="{{row.officeId}}" maxlength="32" readonly="readonly" class="form-control"/>
|
|
<input id="workAccountList{{idx}}_reimbursementNameofficeId" type="text" value="{{row.officeId}}" maxlength="32" readonly="readonly" class="form-control"/>
|
|
|
</div>
|
|
</div>
|
|
|
</td>
|
|
</td>
|
|
@@ -2550,6 +2568,9 @@
|
|
|
<input id="workAccountList{{idx}}_invoiceMoney" onchange="calculateSum({{idx}})" name="workAccountList[{{idx}}].invoiceMoney" type="text" value="{{row.invoiceMoney}}" placeholder="非数电票金额" maxlength="10" class="form-control number"/>
|
|
<input id="workAccountList{{idx}}_invoiceMoney" onchange="calculateSum({{idx}})" name="workAccountList[{{idx}}].invoiceMoney" type="text" value="{{row.invoiceMoney}}" placeholder="非数电票金额" maxlength="10" class="form-control number"/>
|
|
|
</td>
|
|
</td>
|
|
|
<td>
|
|
<td>
|
|
|
|
|
+ <input id="workAccountList{{idx}}_subsidyMoney" onchange="calculateSum({{idx}})" name="workAccountList[{{idx}}].subsidyMoney" type="text" value="{{row.subsidyMoney}}" placeholder="补贴金额" maxlength="10" class="form-control number"/>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
<input id="workAccountList{{idx}}_money" name="workAccountList[{{idx}}].money" type="text" value="{{row.money}}" readonly="readonly" class="form-control number judgment" style="background-color: #f5f5f5;"/>
|
|
<input id="workAccountList{{idx}}_money" name="workAccountList[{{idx}}].money" type="text" value="{{row.money}}" readonly="readonly" class="form-control number judgment" style="background-color: #f5f5f5;"/>
|
|
|
</td>
|
|
</td>
|
|
|
|
|
|
|
@@ -2699,6 +2720,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
// 计算所有行的汇总金额(含单行汇总和总汇总)
|
|
// 计算所有行的汇总金额(含单行汇总和总汇总)
|
|
|
function calculateSum() {
|
|
function calculateSum() {
|
|
|
|
|
+ console.log(456)
|
|
|
var totalAllEInvoice = 0; // 所有行的数电发票总金额
|
|
var totalAllEInvoice = 0; // 所有行的数电发票总金额
|
|
|
var totalAllInvoice = 0; // 所有行的非数电票总金额
|
|
var totalAllInvoice = 0; // 所有行的非数电票总金额
|
|
|
var totalAllSum = 0; // 所有行的总汇总金额
|
|
var totalAllSum = 0; // 所有行的总汇总金额
|
|
@@ -2786,9 +2808,13 @@
|
|
|
eInvoice = maxMoney
|
|
eInvoice = maxMoney
|
|
|
parent.layer.msg("该报销单数电票报销最大额度为:" + maxMoney.toFixed(2) + "!", {icon: 5});
|
|
parent.layer.msg("该报销单数电票报销最大额度为:" + maxMoney.toFixed(2) + "!", {icon: 5});
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(123)
|
|
|
|
|
|
|
|
var invoice = parseFloat($("#workAccountList" + rowIndex + "_invoiceMoney").val() || 0);
|
|
var invoice = parseFloat($("#workAccountList" + rowIndex + "_invoiceMoney").val() || 0);
|
|
|
- var rowSum = eInvoice + invoice;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ var subsidyMoney = parseFloat($("#workAccountList" + rowIndex + "_subsidyMoney").val() || 0);
|
|
|
|
|
+
|
|
|
|
|
+ var rowSum = eInvoice + invoice + subsidyMoney;
|
|
|
|
|
|
|
|
// 5. 更新当前行的汇总金额
|
|
// 5. 更新当前行的汇总金额
|
|
|
$("#workAccountList" + rowIndex + "_money").val(rowSum.toFixed(2));
|
|
$("#workAccountList" + rowIndex + "_money").val(rowSum.toFixed(2));
|
|
@@ -2796,6 +2822,7 @@
|
|
|
// 6. 累加至总金额
|
|
// 6. 累加至总金额
|
|
|
totalAllEInvoice += eInvoice;
|
|
totalAllEInvoice += eInvoice;
|
|
|
totalAllInvoice += invoice;
|
|
totalAllInvoice += invoice;
|
|
|
|
|
+ totalAllInvoice += subsidyMoney;
|
|
|
totalAllSum += rowSum;
|
|
totalAllSum += rowSum;
|
|
|
|
|
|
|
|
});
|
|
});
|
|
@@ -2861,8 +2888,10 @@
|
|
|
var eInvoice = parseFloat($("#workAccountList" + rowIndex + "_eInvoiceBills").val() || 0);
|
|
var eInvoice = parseFloat($("#workAccountList" + rowIndex + "_eInvoiceBills").val() || 0);
|
|
|
// 获取非数电票金额
|
|
// 获取非数电票金额
|
|
|
var invoice = parseFloat($("#workAccountList" + rowIndex + "_invoiceBills").val() || 0);
|
|
var invoice = parseFloat($("#workAccountList" + rowIndex + "_invoiceBills").val() || 0);
|
|
|
|
|
+ // 获取数电发票金额
|
|
|
|
|
+ var subsidyMoney = parseFloat($("#workAccountList" + rowIndex + "_subsidyMoney").val() || 0);
|
|
|
// 计算汇总金额
|
|
// 计算汇总金额
|
|
|
- var sum = eInvoice + invoice;
|
|
|
|
|
|
|
+ var sum = eInvoice + invoice + subsidyMoney;
|
|
|
// 设置汇总金额
|
|
// 设置汇总金额
|
|
|
$("#workAccountList" + rowIndex + "_bills").val(sum);
|
|
$("#workAccountList" + rowIndex + "_bills").val(sum);
|
|
|
|
|
|