<link rel="stylesheet" href="/css/external/enterPriseBusiness/reportAddUpdate.css" type="text/css">
<div class="modal fade businessDialog" id="myModal-addFinanceReport" data-backdrop="static">
	<div class="modal-dialog modal-fullscreen">
		<div class="modal-header">
			<button type="button" class="close">
				<span class="headerClose" style="font-size:0.18rem">×</span><span class="sr-only">关闭</span>
			</button>
			<span class="modal-title">新增财务报表</span>
		</div>
		<div class="modal-content">
			<form id="reportAdForm" class="form-horizontal">
				<input type="hidden" id="addReportId">
				<input type="hidden" name="enterpriseBusinessInfo.id" class="enterId">
				<input type="hidden" th:value="${is_institution}">
				<div class="newTabAddUpdateBox" style="border:none;padding-left:0.2rem;padding-right:0.2rem;padding-bottom:0;">
					<span tag:token/>
					<div class="row">
						<table>
							<tr>
								<td colspan="4">
									<span class="detailContentBox-tabletitle">基本信息</span>
								</td>
							</tr>
							<tr>
								<td width="15%">
									<span class="required_fileds_star">报表类型</span>：
								</td>
								<td width="35%" class="enter">
									<select class="form-control" id="financeReportTimeTypeSelect" name="reportType.id" 
											tag:option="financeReportTimeType"></select>
								</td>
								<td width="15%">
									<span class="required_fileds_star">报表年月</span>：
								</td>
								<td width="35%" class="enter">
									<input type="text" id="reportTimeInput" name="reportTime"
										readOnly class="form-control form-date formdate"
										placeholder="请选择报表年月">
								</td>
							</tr>
							<tr>
								<td width="15%">
									<span class="required_fileds_star">金额单位</span>：
								</td>
								<td width="35%" class="enter">
									<select class="form-control" id="amountUnitSelect" name="amountUnit.id" 
										tag:option="amountUnit"></select>
								</td>
								<td width="15%" th:if="${is_institution != 1}">
									<span class="required_fileds_star">资产负债表</span>：
								</td>
								<td width="35%" class="enter" th:if="${is_institution != 1}">
									<select data-index=0 class="reportSelect form-control" id="balanceSheetSelect" name="balanceSheet">
										<option value="">请选择资产负债表模版</option>
										<option
									       	th:each="balanceSheet,balanceSheetStat:${balanceSheetList}"
									      	th:value="${balanceSheet.id}"
									      	th:text="${balanceSheet.name}"/>
									</select>
								</td>
								<td width="15%" th:if="${is_institution == 1}">
									<span class="required_fileds_star">事业单位资产负债表</span>：
								</td>
								<td width="35%" class="enter" th:if="${is_institution == 1}">
									<select data-index=3 class="reportSelect form-control" id="insBalanceSheetSelect" name="insBalanceSheetList">
										<option value="">请选择事业单位资产负债表模版</option>
										<option
												th:each="balanceSheet,balanceSheetStat:${insBalanceSheetList}"
												th:value="${balanceSheet.id}"
												th:text="${balanceSheet.name}"/>
									</select>
								</td>
							</tr>
							<tr>
								<td width="15%" th:if="${is_institution != 1}">
									<span class="required_fileds_star">利润表</span>：
								</td>
								<td width="35%" class="enter" th:if="${is_institution != 1}">
									<select data-index=1 class="reportSelect form-control" id="profitStatementSelect" name="profitStatement">
										<option value="">请选择利润表模版</option>
										<option
									       	th:each="profitStatment,profitStatmentStat:${profitStatementList}"
									      	th:value="${profitStatment.id}"
									      	th:text="${profitStatment.name}"/>
									</select>
								</td>
								<td width="15%" th:if="${is_institution != 1}">
									<span class="required_fileds_star">现金流量表</span>：
								</td>
								<td width="35%" class="enter" th:if="${is_institution != 1}">
									<select data-index=2 class="reportSelect form-control" id="cashFlowSelect" name="cashFlow">
										<option value="">请选择现金流量表模版</option>
										<option
									       	th:each="cashFlow,cashFlowStat:${cashFlowList}"
									      	th:value="${cashFlow.id}"
									      	th:text="${cashFlow.name}"/>
									</select>
								</td>
								<td width="15%" th:if="${is_institution == 1}">
									<span class="required_fileds_star">事业单位收入支出表</span>：
								</td>
								<td colspan="3" class="enter" th:if="${is_institution == 1}">
									<select data-index=4 class="reportSelect form-control" id="insIncomeExpListSelect" name="insIncomeExpList">
										<option value="">请选择事业单位收入支出表模版</option>
										<option
												th:each="balanceSheet,balanceSheetStat:${insIncomeExpList}"
												th:value="${balanceSheet.id}"
												th:text="${balanceSheet.name}"/>
									</select>
								</td>
							</tr>
						</table>
					</div>
					<div class="row" th:if="${is_institution != 1}">
						<table>
							<tbody class="reportChoiceResult" data-index=0>
								<tr>
									<td colspan="7">
										<span class="detailContentBox-tabletitle">资产负债表</span>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="row" th:if="${is_institution != 1}">
						<table>
							<tbody class="reportChoiceResult" data-index=1>
								<tr>
									<td colspan="10">
										<span class="detailContentBox-tabletitle">利润表</span>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="row" th:if="${is_institution != 1}">
						<table>
							<tbody class="reportChoiceResult" data-index=2>
								<tr>
									<td colspan="10">
										<span class="detailContentBox-tabletitle">现金流量表</span>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="row" th:if="${is_institution == 1}">
						<table>
							<tbody class="reportChoiceResult" data-index=3>
							<tr>
								<td colspan="10">
									<span class="detailContentBox-tabletitle">事业单位资产负债表</span>
								</td>
							</tr>
							</tbody>
						</table>
					</div>
					<div class="row" th:if="${is_institution == 1}">
						<table>
							<tbody class="reportChoiceResult" data-index=4>
							<tr>
								<td colspan="10">
									<span class="detailContentBox-tabletitle">事业单位收入支出表</span>
								</td>
							</tr>
							</tbody>
						</table>
					</div>
					<ul id="hiddenHTML" style="display:none"></ul>
				</div>
			</form>
		</div>
		<div class="modal-footer reportFromfooter">
			<button type="button" class="btn btn-info btn-white closer" data-dismiss="modal">关闭</button>
			<button type="button" class="btn btn-info btn-white colorbtn add">保存</button>
			<button type="button" class="btn btn-info btn-white colorbtn conserveAndAdd">保存并继续新增</button>
		</div>
	</div>
</div>
<script src="/js/enterPriseBusiness/financeReport/reportAddUpdateBase.js"></script>
<script src="/js/enterPriseBusiness/financeReport/enterpriseFinanceReportAdd.js"></script>