fourcal/src/main/resources/templates/admin/project_estimate_edit.ftl

1072 lines
68 KiB
Plaintext
Raw Normal View History

<#assign base=request.contextPath />
<#import "../common/defaultLayout.ftl" as defaultLayout>
<@defaultLayout.layout>
2021-12-01 08:13:39 +00:00
<style>
2021-12-01 08:13:39 +00:00
/*select的readonly不生效他把select渲染成其他的了*/
.select-hide .am-selected-content{
display: none;
}
2022-10-27 09:30:57 +00:00
.table-title{
text-align: left;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="text"]{
-moz-appearance: textfield;
}
.am-table-striped>tbody>tr:nth-child(odd)>input[type="text"]{
background-color: #f9f9f9;
}
input[type="text"]:focus{
outline: none;
}
.table-inline {
/*width: 600px;*/
width: 100%;
border:0 none;
outline:none;
}
.sameline {
display: flex;
/*position: relative;*/
}
2021-12-01 08:13:39 +00:00
</style>
<div class="admin-content">
<div class="admin-content-body">
<div class="am-cf am-padding">
2022-07-25 06:31:23 +00:00
<div style="word-wrap:break-word; word-break:break-all;" class="am-fl am-cf"><strong class="am-text-primary am-text-lg">项目立项(概算)表</strong> / <small>${project.name}</small></div>
</div>
2021-11-18 07:14:44 +00:00
<form method="post" class="am-form" id="pmsForm" action="${base}/project/estimateEditSave" data-am-validator>
<!--选项卡tabsbegin-->
<div class="am-tabs am-margin" data-am-tabs>
<ul class="am-tabs-nav am-nav am-nav-tabs">
2022-08-26 00:49:33 +00:00
<li class="am-active"><a href="#tab1">项目立项(概算)基本信息</a></li>
2022-11-04 02:41:56 +00:00
<#-- <li><a href="#tab2">项目立项(概算)其他信息</a></li>-->
</ul>
<div class="am-tabs-bd">
<div class="am-tab-panel am-fade am-in am-active" id="tab1">
2021-11-01 13:09:10 +00:00
<input name="id" id="id" type="hidden" value="${project.id}" />
<!--验证表单元素validate) begin-->
2022-10-27 09:30:57 +00:00
<table id="myTable" class="am-table am-table-bordered">
<tr class="am-text-nowrap">
<th class="table-title" colspan="6" style="text-align: center">项目立项(概算)基本信息</th>
<input type="hidden" style="border-style:none;" name="id" id="id" value="${id!}"/>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">部门名称:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="2" ><input class="table-inline" readonly value="${project.deptName!}" /></td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目编号:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="2" ><input class="table-inline" readonly value="${project.projectNo!}" /></td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目名称:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="5" >
<input type="text" id="name" style="border-style:none;" data-validate-async data-validation-message="请输入项目名称1000字符以内"
name="name" placeholder="请输入项目名称1000字符以内" maxlength="1000" value="${project.name!}" />
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目类型:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="type" name="type" >
<option value="1" <#if project.type=1>selected</#if>>工程集成类</option>
<option value="2" <#if project.type=2>selected</#if>>设备集成类</option>
</select>
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目计划开始时间:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<#-- <i class="am-icon-calendar"></i>-->
<input type="text" style="border-style:none;" id="startDate"
name="startDate" autocomplete="off"
2022-08-18 01:01:16 +00:00
value="${(project.startDate?string("yyyy-MM-dd"))!}" placeholder="项目计划开始时间"
2022-10-27 09:30:57 +00:00
data-am-datepicker >
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目计划结束时间:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<#-- <i class="am-icon-calendar"></i>-->
<input type="text" style="border-style:none;" id="endDate"
name="endDate" autocomplete="off"
2022-08-18 01:01:16 +00:00
value="${(project.endDate?string("yyyy-MM-dd"))!}" placeholder="项目计划结束时间"
2022-10-27 09:30:57 +00:00
data-am-datepicker >
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">垫资模式:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="underwrittenMode" name="underwrittenMode" onchange="changeCheck()">
<option value="1" <#if project.underwrittenMode=1>selected</#if>>A类-不垫资(战略合作)</option>
<option value="2" <#if project.underwrittenMode=2>selected</#if>>B类-不垫资(背靠背)</option>
<option value="3" <#if project.underwrittenMode=3>selected</#if>>C类-垫资(账期覆盖)</option>
<option value="4" <#if project.underwrittenMode=4>selected</#if>>D类-垫资(账期不覆盖)</option>
</select>
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" id="coop1" <#if project.underwrittenMode! != 1>hidden</#if> ><span style="color: red;">*</span><span style="font-size: 15px">合作对象:</span></th>
2022-11-01 06:30:44 +00:00
<td class="table-title" colspan="3" id="coop2" <#if project.underwrittenMode! != 1>hidden</#if> >
2022-10-27 09:30:57 +00:00
<div class="sameline">
<input type="text" style="border-style:none;width: 50%;" data-validate-async data-validation-message="请输入合作对象"
name="collaborator" id="collaborator" placeholder="请输入合作对象" maxlength="20"
value="${project.collaborator!}" />
<span class="am-form-file am-text-xs spanline">
<button type="button" class="am-btn am-btn-primary am-btn-sm" style="border: none">
<i class="am-icon-cloud-upload"></i> 上传附件
</button>
<input id="file_upload_icon" type="file" name="files[]" >
<span style="display:none;" id="collaboratorUrl_span">${project.collaboratorUrl!}</span>
<span id="collaboratorUrl_check"><#if project.collaboratorUrl??>已上传</#if></span>
<input id="collaboratorUrl" name="collaboratorUrl" type="hidden" value="${project.collaboratorUrl!}"/>
</span>
<!-- The global progress bar -->
<#-- <span id="progress-area-icon" class="am-margin-top-sm am-hide">-->
<#-- <div id="progress-text-icon" class="am-text-xs am-text-right"></div>-->
<#-- <div id="progress" class="am-progress am-progress-xs">-->
<#-- <div class="am-progress-bar" style="width: 0%"></div>-->
<#-- </div>-->
<#-- </span>-->
</div>
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" id="noUnder1" <#if project.underwrittenMode! <= 2>hidden</#if>><span style="color: red;">*</span><span style="font-size: 15px">垫资利息:</span></th>
2022-11-01 06:30:44 +00:00
<td class="table-title" colspan="1" id="noUnder2" <#if project.underwrittenMode! <= 2>hidden</#if>>
2022-10-27 09:30:57 +00:00
<input type="text" class="number am-input" style="border-style:none;" data-validate-async data-validation-message="请输入垫资利息"
name="advanceInterestAmount" id="advanceInterestAmount" placeholder="单位(元)" maxlength="16"
value="${Utils.format(project.advanceInterestAmount)}" />
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" id="noUnder3" <#if project.underwrittenMode! <= 2>hidden</#if>><span style="color: red;">*</span><span style="font-size: 15px">垫资峰值:</span></th>
2022-11-01 06:30:44 +00:00
<td class="table-title" colspan="1" id="noUnder4" <#if project.underwrittenMode! <= 2>hidden</#if>>
2022-10-27 09:30:57 +00:00
<input type="text" class="number am-input" style="border-style:none;" data-validate-async data-validation-message="请输入垫资峰值"
name="advancePeakAmount" id="advancePeakAmount" placeholder="单位(元)" maxlength="16"
value="${Utils.format(project.advancePeakAmount)}" />
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">合同金额:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validate-async data-validation-message="请输入合同金额"
name="contractAmount" id="contractAmount" placeholder="单位(元)" maxlength="16"
value="${Utils.format(project.contractAmount)}" />
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目毛利:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validate-async data-validation-message="请输入项目毛利"
name="grossProfit" id="grossProfit" placeholder="单位(元)" maxlength="16"
value="${Utils.format(project.grossProfit)}" />
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目毛利率:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validate-async data-validation-message="请输入项目毛利率"
name="grossProfitMargin" id="grossProfitMargin" placeholder="单位(%" maxlength="16"
value="${Utils.format(project.grossProfitMargin)}" />
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">汇智产品金额:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validation-message="汇智产品金额"
name="huizhiProductAmount" id="huizhiProductAmount" placeholder="单位(元)" maxlength="16" value="${Utils.format(project.huizhiProductAmount, "0.00")}" />
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">华智产品金额:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validation-message="华智产品金额"
name="huazhiProductAmount" id="huazhiProductAmount" placeholder="单位(元)" maxlength="16" value="${Utils.format(project.huazhiProductAmount, "0.00")}" />
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">华三产品金额:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validation-message="华三产品金额"
name="huasanProductAmount" id="huasanProductAmount" placeholder="单位(元)" maxlength="16" value="${Utils.format(project.huasanProductAmount, "0.00")}" />
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">其他产品金额:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validation-message="请输入其他产品金额"
name="ziguangOtherAmount" id="ziguangOtherAmount" placeholder="单位(元)" maxlength="16" value="${Utils.format(project.ziguangOtherAmount, "0.00")}" />
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目把握度:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="certainty" name="certainty">
2022-08-18 01:01:16 +00:00
<#if project.certainty??>
2022-08-26 00:49:33 +00:00
<option value="1" <#if project.certainty=1>selected</#if>>A项目成功率80%-100%</option>
<option value="2" <#if project.certainty=2>selected</#if>>B项目成功率60%-80%</option>
<option value="3" <#if project.certainty=3>selected</#if>>C项目成功率40%-60%</option>
2022-08-18 01:01:16 +00:00
<#else>
2022-08-26 00:49:33 +00:00
<option value="1" >A项目成功率40%-60%</option>
<option value="2" >B项目成功率40%-60%</option>
<option value="3" >C项目成功率40%-60%</option>
2022-08-18 01:01:16 +00:00
</#if>
2022-10-27 09:30:57 +00:00
</select>
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">行业场景应用:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="industryScene" name="industryScene">
<#if project.industryScene??>
<option value="1" <#if project.industryScene=1>selected</#if>>信息安全</option>
<option value="2" <#if project.industryScene=2>selected</#if>>政府</option>
<option value="3" <#if project.industryScene=3>selected</#if>>公安</option>
<option value="4" <#if project.industryScene=4>selected</#if>>企业</option>
<option value="5" <#if project.industryScene=5>selected</#if>>教育</option>
<option value="6" <#if project.industryScene=6>selected</#if>>交通</option>
<option value="7" <#if project.industryScene=7>selected</#if>>医疗</option>
<option value="8" <#if project.industryScene=8>selected</#if>>电力资源</option>
<option value="9" <#if project.industryScene=9>selected</#if>>运营商</option>
<option value="10" <#if project.industryScene=10>selected</#if>>金融</option>
<option value="11" <#if project.industryScene=11>selected</#if>>专网</option>
<option value="12" <#if project.industryScene=12>selected</#if>>其他</option>
<option value="13" <#if project.industryScene=13>selected</#if>>互联网</option>
<option value="14" <#if project.industryScene=14>selected</#if>>银行</option>
<#else>
<option value="1" >信息安全</option>
<option value="2" >政府</option>
<option value="3" >公安</option>
<option value="4" >企业</option>
<option value="5" >教育</option>
<option value="6" >交通</option>
<option value="7" >医疗</option>
<option value="8" >电力资源</option>
<option value="9" >运营商</option>
<option value="10" >金融</option>
<option value="11" >专网</option>
<option value="12" >其他</option>
<option value="13" >互联网</option>
<option value="14" >银行</option>
</#if>
2022-10-27 09:30:57 +00:00
</select>
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目解决方案:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="resolvePlan" name="resolvePlan">
<#if project.resolvePlan??>
<option value="1" <#if project.resolvePlan=1>selected</#if>>公共服务(智慧交通、雪亮工程、治安防控体系等)</option>
<option value="2" <#if project.resolvePlan=2>selected</#if>>泛行业(智慧园区、智慧医疗、智慧工地等)</option>
<option value="3" <#if project.resolvePlan=3>selected</#if>>其他生态</option>
<#else>
<option value="1" >公共服务(智慧交通、雪亮工程、治安防控体系等)</option>
<option value="2" >泛行业(智慧园区、智慧医疗、智慧工地等)</option>
<option value="3" >其他生态</option>
</#if>
</select>
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">客户名称:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入客户名称1000字符以内"
name="customer" id="customer" placeholder="请输入客户名称1000字符以内" maxlength="1000"
value="${project.customer!}" />
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">最终用户名称:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入最终用户名称1000字符以内"
name="terminalCustomer" id="terminalCustomer" placeholder="请输入最终用户名称1000字符以内" maxlength="1000"
value="${project.terminalCustomer!}" />
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">价值及风险:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="5" >
<textarea rows="5" cols="20" id="valueRisk" name="valueRisk" maxlength="1000"
class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入价值及风险"
placeholder="请输入价值及风险"
>${project.valueRisk!}</textarea>
</td>
</tr>
2022-11-04 02:41:56 +00:00
<#-- </table>-->
2022-08-11 08:22:02 +00:00
2022-11-04 02:41:56 +00:00
<#-- </div>-->
<#-- <!--验证表单元素validate end&ndash;&gt;-->
<#-- </div>-->
2022-08-11 08:22:02 +00:00
2022-11-04 02:41:56 +00:00
<#-- <div class="am-tabs-bd">-->
<#-- <div class="am-tab-panel am-fade am-in" id="tab2">-->
<#-- <table id="myTable" class="am-table am-table-bordered">-->
<#-- <tr class="am-text-nowrap">-->
<#-- <th class="table-title" colspan="6" style="text-align: center">项目立项(概算)其他信息</th>-->
<#-- <input type="hidden" style="border-style:none;" name="id" id="id" value="${id!}"/>-->
<#-- </tr>-->
2022-10-27 09:30:57 +00:00
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目负责人:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" id="principal" class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入项目负责人"
name="principal" placeholder="请输入项目负责人" maxlength="20"
value="${project.principal!}" />
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="font-size: 15px">预计合同签订时间:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="am-form-field am-input-sm" style="border-style:none;" id="contractTime"
2022-08-11 08:22:02 +00:00
name="contractTime" autocomplete="off"
2022-08-15 02:15:21 +00:00
value="${(project.contractTime?string("yyyy-MM-dd"))!}" placeholder="预计合同签订时间"
2022-08-15 07:50:34 +00:00
data-am-datepicker>
2022-10-27 09:30:57 +00:00
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="font-size: 15px">项目计划招标时间:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<input type="text" class="am-form-field am-input-sm" style="border-style:none;" id="bidsTime"
2022-08-11 08:22:02 +00:00
name="bidsTime" autocomplete="off"
2022-08-15 02:15:21 +00:00
value="${(project.bidsTime?string("yyyy-MM-dd"))!}" placeholder="项目计划招标时间"
2022-08-15 07:50:34 +00:00
data-am-datepicker>
2022-10-27 09:30:57 +00:00
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="font-size: 15px">是否二次合作:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="isSecond" name="isSecond">
<#if project.isSecond??>
<option value="-1" ></option>
<option value="1" <#if project.isSecond=1>selected</#if>>是</option>
<option value="2" <#if project.isSecond=2>selected</#if>>否</option>
<#else>
<option value="-1" ></option>
<option value="1" >是</option>
<option value="2" >否</option>
</#if>
</select>
</td>
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="font-size: 15px">直签:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="3" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="signType" name="signType">
<#if project.signType??>
<option value="-1" ></option>
<option value="1" <#if project.signType=1>selected</#if>>紫光汇智直接投标</option>
<#else>
<option value="-1" ></option>
<option value="1" >紫光汇智直接投标</option>
</#if>
</select>
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="font-size: 15px">主合同收款条款:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="5" >
<textarea rows="3" cols="20" id="mainContractCollectionTerms" name="mainContractCollectionTerms" maxlength="1000"
class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入收款条款"
placeholder="请输入收款条款"
>${project.mainContractCollectionTerms!}</textarea>
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="font-size: 15px">主合同具体解决方案:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="5" >
<textarea rows="3" cols="20" id="mainContractResolvePlan" name="mainContractResolvePlan" maxlength="1000"
class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入具体解决方案"
placeholder="请输入具体解决方案"
>${project.mainContractResolvePlan!}</textarea>
</td>
</tr>
<tr class="am-text-nowrap">
2022-11-01 08:07:20 +00:00
<th class="table-title" colspan="1" ><span style="font-size: 15px">计收计划:</span></th>
2022-10-27 09:30:57 +00:00
<td class="table-title" colspan="5" >
<textarea rows="3" cols="20" id="calculationCollection" name="calculationCollection" maxlength="1000"
class="am-input" style="border-style:none;" data-validate-async data-validation-message="按照开票金额及时间罗列计收计划"
placeholder="按照开票金额及时间罗列计收计划"
>${project.calculationCollection!}</textarea>
</td>
</tr>
</table>
2022-08-11 08:22:02 +00:00
</div>
</div>
2022-08-10 00:55:46 +00:00
<#-- <div class="am-tabs-bd">-->
<#-- <div class="am-tab-panel am-fade am-in" id="tab2">-->
<#-- <span class="am-text-lg">收入</span>-->
<#-- <table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">-->
<#-- <tbody>-->
<#-- <tr class="am-text-lg">-->
<#-- <td>类别</td>-->
<#-- <td>费用</td>-->
<#-- <td>含税金额(元)</td>-->
<#-- <td>不含税金额(元)</td>-->
<#-- <td>税率</td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>收入</td>-->
<#-- <td>设备类</td>-->
2022-08-31 06:23:05 +00:00
<#-- <td><input type="text" class="number" maxlength="16" name="incomeDeviceTaxInclude" id="incomeDeviceTaxInclude" value="${Utils.format(estimateBean.incomeDeviceTaxInclude)}" ></td>-->
<#-- <td><input type="text" class="number" maxlength="16" name="incomeDeviceTaxExclude" id="incomeDeviceTaxExclude" value="${Utils.format(estimateBean.incomeDeviceTaxExclude)}" <#if estimateBean.incomeDeviceSelect! !="自定义">readonly</#if> ></td>-->
2022-08-10 00:55:46 +00:00
<#-- <td>-->
<#-- <select data-am-selected name="incomeDeviceSelect" id="incomeDeviceSelect">-->
<#-- <option value="0" <#if estimateBean.incomeDeviceSelect! =="0">selected</#if>>0%</option>-->
<#-- <option value="0.01" <#if estimateBean.incomeDeviceSelect! =="0.01">selected</#if>>1%</option>-->
<#-- <option value="0.03" <#if estimateBean.incomeDeviceSelect! =="0.03">selected</#if>>3%</option>-->
<#-- <option value="0.06" <#if estimateBean.incomeDeviceSelect! =="0.06">selected</#if>>6%</option>-->
<#-- <option value="0.09" <#if estimateBean.incomeDeviceSelect! =="0.09">selected</#if>>9%</option>-->
<#-- <option value="0.13" <#if estimateBean.incomeDeviceSelect! =="0.13">selected</#if>>13%</option>-->
<#-- <option value="自定义" <#if estimateBean.incomeDeviceSelect! =="自定义">selected</#if>>自定义</option>-->
<#-- </select>-->
<#-- </td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>收入</td>-->
<#-- <td>工程类</td>-->
2022-08-31 06:23:05 +00:00
<#-- <td><input type="text" class="number" maxlength="16" name="incomeEngineerTaxInclude" id="incomeEngineerTaxInclude" value="${Utils.format(estimateBean.incomeEngineerTaxInclude)}" ></td>-->
<#-- <td><input type="text" class="number" maxlength="16" name="incomeEngineerTaxExclude" id="incomeEngineerTaxExclude" value="${Utils.format(estimateBean.incomeEngineerTaxExclude)}" <#if estimateBean.incomeEngineerSelect! !="自定义">readonly</#if> ></td>-->
2022-08-10 00:55:46 +00:00
<#-- <td>-->
<#-- <select data-am-selected name="incomeEngineerSelect" id="incomeEngineerSelect">-->
<#-- <option value="0" <#if estimateBean.incomeEngineerSelect! =="0">selected</#if>>0%</option>-->
<#-- <option value="0.01" <#if estimateBean.incomeEngineerSelect! =="0.01">selected</#if>>1%</option>-->
<#-- <option value="0.03" <#if estimateBean.incomeEngineerSelect! =="0.03">selected</#if>>3%</option>-->
<#-- <option value="0.06" <#if estimateBean.incomeEngineerSelect! =="0.06">selected</#if>>6%</option>-->
<#-- <option value="0.09" <#if estimateBean.incomeEngineerSelect! =="0.09">selected</#if>>9%</option>-->
<#-- <option value="0.13" <#if estimateBean.incomeEngineerSelect! =="0.13">selected</#if>>13%</option>-->
<#-- <option value="自定义" <#if estimateBean.incomeEngineerSelect! =="自定义">selected</#if>>自定义</option>-->
<#-- </select>-->
<#-- </td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>收入</td>-->
<#-- <td>服务类</td>-->
2022-08-31 06:23:05 +00:00
<#-- <td><input type="text" class="number" maxlength="16" name="incomeServiceTaxInclude" id="incomeServiceTaxInclude" value="${Utils.format(estimateBean.incomeServiceTaxInclude)}" ></td>-->
<#-- <td><input type="text" class="number" maxlength="16" name="incomeServiceTaxExclude" id="incomeServiceTaxExclude" value="${Utils.format(estimateBean.incomeServiceTaxExclude)}" <#if estimateBean.incomeServiceSelect! !="自定义">readonly</#if> ></td>-->
2022-08-10 00:55:46 +00:00
<#-- <td>-->
<#-- <select data-am-selected name="incomeServiceSelect" id="incomeServiceSelect">-->
<#-- <option value="0" <#if estimateBean.incomeServiceSelect! =="0">selected</#if>>0%</option>-->
<#-- <option value="0.01" <#if estimateBean.incomeServiceSelect! =="0.01">selected</#if>>1%</option>-->
<#-- <option value="0.03" <#if estimateBean.incomeServiceSelect! =="0.03">selected</#if>>3%</option>-->
<#-- <option value="0.06" <#if estimateBean.incomeServiceSelect! =="0.06">selected</#if>>6%</option>-->
<#-- <option value="0.09" <#if estimateBean.incomeServiceSelect! =="0.09">selected</#if>>9%</option>-->
<#-- <option value="0.13" <#if estimateBean.incomeServiceSelect! =="0.13">selected</#if>>13%</option>-->
<#-- <option value="自定义" <#if estimateBean.incomeServiceSelect! =="自定义">selected</#if>>自定义</option>-->
<#-- </select>-->
<#-- </td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>合计</td>-->
<#-- <td></td>-->
<#-- <td><input type="text" class="number" name="incomeTotalTaxInclude" value="${Utils.format(estimateBean.incomeTotalTaxInclude)}" readonly title="此列累计"></td>-->
<#-- <td><input type="text" class="number" name="incomeTotalTaxExclude" value="${Utils.format(estimateBean.incomeTotalTaxExclude)}" readonly title="此列累计"></td>-->
<#-- <td>/</td>-->
<#-- </tr>-->
<#-- </tbody>-->
<#-- </table>-->
<#-- <span class="am-text-lg">成本</span>-->
<#-- <table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">-->
<#-- <tbody>-->
<#-- <tr class="am-text-lg">-->
<#-- <td>类别</td>-->
<#-- <td>费用</td>-->
<#-- <td>费用项目</td>-->
<#-- <td>含税金额(元)</td>-->
<#-- <td>不含税金额(元)</td>-->
<#-- <td>税率</td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>成本</td>-->
<#-- <td>采购成本</td>-->
<#-- <td>设备</td>-->
2022-08-31 06:23:05 +00:00
<#-- <td><input type="text" class="number" maxlength="16" name="costPurchaseDeviceTaxInclude" id="costPurchaseDeviceTaxInclude" value="${Utils.format(estimateBean.costPurchaseDeviceTaxInclude)}" ></td>-->
<#-- <td><input type="text" class="number" maxlength="16" name="costPurchaseDeviceTaxExclude" id="costPurchaseDeviceTaxExclude" value="${Utils.format(estimateBean.costPurchaseDeviceTaxExclude)}" <#if estimateBean.costPurchaseDeviceSelect! !="自定义">readonly</#if> ></td>-->
2022-08-10 00:55:46 +00:00
<#-- <td>-->
<#-- <select data-am-selected name="costPurchaseDeviceSelect" id="costPurchaseDeviceSelect">-->
<#-- <option value="0" <#if estimateBean.costPurchaseDeviceSelect! =="0">selected</#if>>0%</option>-->
<#-- <option value="0.01" <#if estimateBean.costPurchaseDeviceSelect! =="0.01">selected</#if>>1%</option>-->
<#-- <option value="0.03" <#if estimateBean.costPurchaseDeviceSelect! =="0.03">selected</#if>>3%</option>-->
<#-- <option value="0.06" <#if estimateBean.costPurchaseDeviceSelect! =="0.06">selected</#if>>6%</option>-->
<#-- <option value="0.09" <#if estimateBean.costPurchaseDeviceSelect! =="0.09">selected</#if>>9%</option>-->
<#-- <option value="0.13" <#if estimateBean.costPurchaseDeviceSelect! =="0.13">selected</#if>>13%</option>-->
<#-- <option value="自定义" <#if estimateBean.costPurchaseDeviceSelect! =="自定义">selected</#if>>自定义</option>-->
<#-- </select>-->
<#-- </td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>成本</td>-->
<#-- <td>采购成本</td>-->
<#-- <td>施工</td>-->
2022-08-31 06:23:05 +00:00
<#-- <td><input type="text" class="number" maxlength="16" name="costPurchaseBuildTaxInclude" id="costPurchaseBuildTaxInclude" value="${Utils.format(estimateBean.costPurchaseBuildTaxInclude)}" ></td>-->
<#-- <td><input type="text" class="number" maxlength="16" name="costPurchaseBuildTaxExclude" id="costPurchaseBuildTaxExclude" value="${Utils.format(estimateBean.costPurchaseBuildTaxExclude)}" <#if estimateBean.costPurchaseBuildSelect! !="自定义">readonly</#if> ></td>-->
2022-08-10 00:55:46 +00:00
<#-- <td>-->
<#-- <select data-am-selected name="costPurchaseBuildSelect" id="costPurchaseBuildSelect">-->
<#-- <option value="0" <#if estimateBean.costPurchaseBuildSelect! =="0">selected</#if>>0%</option>-->
<#-- <option value="0.01" <#if estimateBean.costPurchaseBuildSelect! =="0.01">selected</#if>>1%</option>-->
<#-- <option value="0.03" <#if estimateBean.costPurchaseBuildSelect! =="0.03">selected</#if>>3%</option>-->
<#-- <option value="0.06" <#if estimateBean.costPurchaseBuildSelect! =="0.06">selected</#if>>6%</option>-->
<#-- <option value="0.09" <#if estimateBean.costPurchaseBuildSelect! =="0.09">selected</#if>>9%</option>-->
<#-- <option value="0.13" <#if estimateBean.costPurchaseBuildSelect! =="0.13">selected</#if>>13%</option>-->
<#-- <option value="自定义" <#if estimateBean.costPurchaseBuildSelect! =="自定义">selected</#if>>自定义</option>-->
<#-- </select>-->
<#-- </td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>成本</td>-->
<#-- <td>采购成本</td>-->
<#-- <td>服务</td>-->
2022-08-31 06:23:05 +00:00
<#-- <td><input type="text" class="number" maxlength="16" name="costPurchaseServiceTaxInclude" id="costPurchaseServiceTaxInclude" value="${Utils.format(estimateBean.costPurchaseServiceTaxInclude)}" ></td>-->
<#-- <td><input type="text" class="number" maxlength="16" name="costPurchaseServiceTaxExclude" id="costPurchaseServiceTaxExclude" value="${Utils.format(estimateBean.costPurchaseServiceTaxExclude)}" <#if estimateBean.costPurchaseServiceSelect! !="自定义">readonly</#if> ></td>-->
2022-08-10 00:55:46 +00:00
<#-- <td>-->
<#-- <select data-am-selected name="costPurchaseServiceSelect" id="costPurchaseServiceSelect">-->
<#-- <option value="0" <#if estimateBean.costPurchaseServiceSelect! =="0">selected</#if>>0%</option>-->
<#-- <option value="0.01" <#if estimateBean.costPurchaseServiceSelect! =="0.01">selected</#if>>1%</option>-->
<#-- <option value="0.03" <#if estimateBean.costPurchaseServiceSelect! =="0.03">selected</#if>>3%</option>-->
<#-- <option value="0.06" <#if estimateBean.costPurchaseServiceSelect! =="0.06">selected</#if>>6%</option>-->
<#-- <option value="0.09" <#if estimateBean.costPurchaseServiceSelect! =="0.09">selected</#if>>9%</option>-->
<#-- <option value="0.13" <#if estimateBean.costPurchaseServiceSelect! =="0.13">selected</#if>>13%</option>-->
<#-- <option value="自定义" <#if estimateBean.costPurchaseServiceSelect! =="自定义">selected</#if>>自定义</option>-->
<#-- </select>-->
<#-- </td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>成本</td>-->
<#-- <td>采购成本</td>-->
<#-- <td>其他</td>-->
2022-08-31 06:23:05 +00:00
<#-- <td><input type="text" class="number" maxlength="16" name="costPurchaseOtherTaxInclude" id="costPurchaseOtherTaxInclude" value="${Utils.format(estimateBean.costPurchaseOtherTaxInclude)}" ></td>-->
<#-- <td><input type="text" class="number" maxlength="16" name="costPurchaseOtherTaxExclude" id="costPurchaseOtherTaxExclude" value="${Utils.format(estimateBean.costPurchaseOtherTaxExclude)}" <#if estimateBean.costPurchaseOtherSelect! !="自定义">readonly</#if> ></td>-->
2022-08-10 00:55:46 +00:00
<#-- <td>-->
<#-- <select data-am-selected name="costPurchaseOtherSelect" id="costPurchaseOtherSelect">-->
<#-- <option value="0" <#if estimateBean.costPurchaseOtherSelect! =="0">selected</#if>>0%</option>-->
<#-- <option value="0.01" <#if estimateBean.costPurchaseOtherSelect! =="0.01">selected</#if>>1%</option>-->
<#-- <option value="0.03" <#if estimateBean.costPurchaseOtherSelect! =="0.03">selected</#if>>3%</option>-->
<#-- <option value="0.06" <#if estimateBean.costPurchaseOtherSelect! =="0.06">selected</#if>>6%</option>-->
<#-- <option value="0.09" <#if estimateBean.costPurchaseOtherSelect! =="0.09">selected</#if>>9%</option>-->
<#-- <option value="0.13" <#if estimateBean.costPurchaseOtherSelect! =="0.13">selected</#if>>13%</option>-->
<#-- <option value="自定义" <#if estimateBean.costPurchaseOtherSelect! =="自定义">selected</#if>>自定义</option>-->
<#-- </select>-->
<#-- </td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>成本</td>-->
<#-- <td>项目管理成本</td>-->
<#-- <td>项目管理成本</td>-->
2022-08-31 06:23:05 +00:00
<#-- <td><input type="text" class="number" name="costProjectManageTaxInclude" id="costProjectManageTaxInclude" value="${Utils.format(estimateBean.costProjectManageTaxInclude)}" readonly></td>-->
<#-- <td><input type="text" class="number" maxlength="16" name="costProjectManageTaxExclude" id="costProjectManageTaxExclude" value="${Utils.format(estimateBean.costProjectManageTaxExclude)}" ></td>-->
2022-08-10 00:55:46 +00:00
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>成本</td>-->
<#-- <td>其他</td>-->
<#-- <td><input type="text" id="otherName" maxlength="50" data-validate-async data-validation-message="请输入其他类的名称50字符以内"-->
<#-- value="${project.otherName!}" name="otherName" placeholder="请输入其他类的名称50字符以内"/> </td>-->
<#-- <td><input type="text" class="number" maxlength="16" name="costOtherOtherTaxInclude" id="costOtherOtherTaxInclude" value="${Utils.format(estimateBean.costOtherOtherTaxInclude, "0.00")}"></td>-->
<#-- <td><input type="text" class="number" maxlength="16" name="costOtherOtherTaxExclude" id="costOtherOtherTaxExclude" value="${Utils.format(estimateBean.costOtherOtherTaxExclude, "0.00")}" <#if estimateBean.costOtherOtherSelect! !="自定义">readonly</#if>></td>-->
<#-- <td>-->
<#-- <select data-am-selected name="costOtherOtherSelect" id="costOtherOtherSelect">-->
<#-- <option value="0" <#if estimateBean.costOtherOtherSelect! =="0">selected</#if>>0%</option>-->
<#-- <option value="0.01" <#if estimateBean.costOtherOtherSelect! =="0.01">selected</#if>>1%</option>-->
<#-- <option value="0.03" <#if estimateBean.costOtherOtherSelect! =="0.03">selected</#if>>3%</option>-->
<#-- <option value="0.06" <#if estimateBean.costOtherOtherSelect! =="0.06">selected</#if>>6%</option>-->
<#-- <option value="0.09" <#if estimateBean.costOtherOtherSelect! =="0.09">selected</#if>>9%</option>-->
<#-- <option value="0.13" <#if estimateBean.costOtherOtherSelect! =="0.13">selected</#if>>13%</option>-->
<#-- <option value="自定义" <#if estimateBean.costOtherOtherSelect! =="自定义">selected</#if>>自定义</option>-->
<#-- </select>-->
<#-- </td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>合计</td>-->
<#-- <td></td>-->
<#-- <td></td>-->
<#-- <td><input type="text" class="number" name="costTotalTaxInclude" value="${Utils.format(estimateBean.costTotalTaxInclude)}" readonly title="此列累计"></td>-->
<#-- <td><input type="text" class="number" name="costTotalTaxExclude" value="${Utils.format(estimateBean.costTotalTaxExclude)}" readonly title="此列累计"></td>-->
<#-- <td>/</td>-->
<#-- </tr>-->
<#-- </tbody>-->
<#-- </table>-->
<#-- <span class="am-text-lg">管理</span>-->
<#-- <table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">-->
<#-- <tbody>-->
<#-- <tr class="am-text-lg">-->
<#-- <td>类别</td>-->
<#-- <td>费用项目</td>-->
<#-- <td>不含税金额(元)</td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>财务费用</td>-->
<#-- <td>资金占用成本</td>-->
2022-08-31 06:23:05 +00:00
<#-- <td><input type="text" class="number" maxlength="16" name="costExpropriationTaxExclude" id="costExpropriationTaxExclude" value="${Utils.format(estimateBean.costExpropriationTaxExclude)}" ></td>-->
2022-08-10 00:55:46 +00:00
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>公司管理费用</td>-->
<#-- <td></td>-->
2022-08-31 06:23:05 +00:00
<#-- <td><input type="text" class="number" maxlength="16" name="costCompanyManageTaxExclude" id="costCompanyManageTaxExclude" value="${Utils.format(estimateBean.costCompanyManageTaxExclude)}" ></td>-->
2022-08-10 00:55:46 +00:00
<#-- </tr>-->
<#-- </tbody>-->
<#-- </table>-->
2022-08-10 00:55:46 +00:00
<#-- <span class="am-text-lg">利润率计算</span>-->
<#-- <table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">-->
<#-- <tbody>-->
<#-- <tr class="am-text-lg">-->
<#-- <td>类别</td>-->
<#-- <td></td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>项目毛利(元)</td>-->
<#-- <td><input type="text" class="number" name="projectGrossProfit" value="${Utils.format(estimateBean.projectGrossProfit)}" readonly title="收入总计(不含税)-成本总计(不含税)-财务费用总计(不含税)"></td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>项目毛利率(%</td>-->
<#-- <td><input type="text" class="number" name="projectGrossProfitRate" value="${Utils.format(estimateBean.projectGrossProfitRate)}" readonly title="毛利(不含税)/收入总计(不含税)"></td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>项目贡献利润(元)</td>-->
<#-- <td><input type="text" class="number" name="projectContributionProfit" value="${Utils.format(estimateBean.projectContributionProfit)}" readonly title="项目毛利(不含税)-公司管理费用总计(不含税)"></td>-->
<#-- </tr>-->
<#-- <tr>-->
<#-- <td>项目贡献利润率(%</td>-->
<#-- <td><input type="text" class="number" name="projectContributionProfitRate" value="${Utils.format(estimateBean.projectContributionProfitRate)}" readonly title="贡献利润(不含税)/收入总计(不含税)"></td>-->
<#-- </tr>-->
<#-- </tbody>-->
<#-- </table>-->
<#-- </div>-->
<#-- <!--验证表单元素validate end&ndash;&gt;-->
<#-- </div>-->
</div>
<!--选项卡tabsend-->
<div class="am-margin">
<button type="button" class="am-btn am-btn-warning am-btn-xs" onclick="javascript:history.go(-1);">返回上一级</button>
<button type="button" class="am-btn am-btn-primary am-btn-xs" id="saveDraft">保存草稿</button>
<button type="button" class="am-btn am-btn-primary am-btn-xs" id="saveApprove">提交审核</button>
</div>
</form>
</div>
</div>
2021-11-22 02:32:36 +00:00
<script src="${base}/assets/js/project_common.js"></script>
2021-11-02 04:20:20 +00:00
<script src="${base}/assets/js/project_estimate.js"></script>
2022-08-16 06:35:12 +00:00
<script src="../common/jQuery-File-Upload/js/vendor/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../common/jQuery-File-Upload/js/jquery.iframe-transport.js"></script>
<script type="text/javascript" src="../common/jQuery-File-Upload/js/jquery.fileupload.js"></script>
<script src="../common/jQuery-File-Upload/js/jquery.fileupload-process.js"></script>
<script src="../common/jQuery-File-Upload/js/jquery.fileupload-validate.js"></script>
<script>
2022-04-12 10:22:12 +00:00
var check = 0;
2022-07-20 09:16:21 +00:00
var projectNoResult = 0;
2022-04-28 07:36:01 +00:00
var rateResult = 0;
2022-04-19 06:52:40 +00:00
var result = 0;
2022-08-16 06:35:12 +00:00
var changeCheck = function () {
var underwrittenMode = $("#underwrittenMode").val();
if (underwrittenMode == 1) {
2022-11-01 06:30:44 +00:00
$("#coop1").show();
$("#coop2").show();
2022-08-26 03:23:41 +00:00
$("#noUnder1").hide();
$("#noUnder2").hide();
2022-11-01 06:30:44 +00:00
$("#noUnder3").hide();
$("#noUnder4").hide();
2022-08-26 00:49:33 +00:00
} else if (underwrittenMode == 2) {
2022-11-01 06:30:44 +00:00
$("#coop1").hide();
$("#coop2").hide();
2022-08-26 03:23:41 +00:00
$("#noUnder1").hide();
$("#noUnder2").hide();
2022-11-01 06:30:44 +00:00
$("#noUnder3").hide();
$("#noUnder4").hide();
2022-08-26 00:49:33 +00:00
} else {
2022-11-01 06:30:44 +00:00
$("#coop1").hide();
$("#coop2").hide();
2022-08-26 03:23:41 +00:00
$("#noUnder1").show();
$("#noUnder2").show();
2022-11-01 06:30:44 +00:00
$("#noUnder3").show();
$("#noUnder4").show();
2022-08-16 06:35:12 +00:00
}
};
$(function () {
2022-08-19 15:06:07 +00:00
generateFileupload2('icon');
2022-08-16 06:35:12 +00:00
2021-11-02 04:20:20 +00:00
calIncomeAndCost();
$("#saveDraft").click(function () {
2022-08-16 06:35:12 +00:00
$("#collaboratorUrl").val($("#collaboratorUrl_span").text());
2022-04-19 06:52:40 +00:00
check = 0;
2022-01-18 03:09:21 +00:00
$("#saveDraft").attr('disabled',true);
2022-08-31 06:23:05 +00:00
// checkIfFillIn();
2022-04-12 10:22:12 +00:00
if (check == 1) {
$("#saveDraft").attr('disabled', false);
return;
}
2022-01-18 06:51:07 +00:00
setTimeout(function () {
$("#saveDraft").attr('disabled', false);
}, 5000);
2021-11-02 04:20:20 +00:00
$("#pmsForm").attr("action","${base}/project/estimateEditSave");
$("#pmsForm").submit();
});
2021-11-02 04:20:20 +00:00
$("#saveApprove").click(function () {
2022-08-16 06:35:12 +00:00
$("#collaboratorUrl").val($("#collaboratorUrl_span").text());
2022-04-19 06:52:40 +00:00
check = 0;
2022-01-18 03:09:21 +00:00
$("#saveApprove").attr('disabled',true);
2022-04-12 10:22:12 +00:00
checkIfFillIn();
if (check == 1) {
2022-04-19 06:52:40 +00:00
$("#saveApprove").attr('disabled', false);
return;
}
2022-01-18 06:51:07 +00:00
setTimeout(function () {
$("#saveApprove").attr('disabled', false);
}, 5000);
2021-11-02 04:20:20 +00:00
$("#pmsForm").attr("action","${base}/project/estimateEditSaveAndApprove");
$("#pmsForm").submit();
});
});
2022-04-12 10:22:12 +00:00
function checkIfFillIn() {
2022-08-19 00:22:55 +00:00
var name = $("#name").val();
2022-04-12 10:22:12 +00:00
var startTime = $("#startDate").val();
var endTime = $("#endDate").val();
2022-08-19 00:22:55 +00:00
var underwrittenMode = $("#underwrittenMode").val();
var collaborator = $("#collaborator").val();
var advanceInterestAmount = $("#advanceInterestAmount").val();
var advancePeakAmount = $("#advancePeakAmount").val();
2022-04-12 10:22:12 +00:00
var contractAmount = $("#contractAmount").val();
2022-08-19 00:22:55 +00:00
var grossProfit = $("#grossProfit").val();
var grossProfitMargin = $("#grossProfitMargin").val();
var huizhiProductAmount = $("#huizhiProductAmount").val();
var huazhiProductAmount = $("#huazhiProductAmount").val();
var huasanProductAmount = $("#huasanProductAmount").val();
var ziguangOtherAmount = $("#ziguangOtherAmount").val();
// var industryScenario = $("#industryScenario").val();
2022-08-19 00:22:55 +00:00
var customer = $("#customer").val();
var terminalCustomer = $("#terminalCustomer").val();
2022-04-12 10:22:12 +00:00
var valueRisk = $("#valueRisk").val();
2022-08-26 00:49:33 +00:00
var principal = $("#principal").val();
2022-08-15 07:50:34 +00:00
// var incomeDeviceTaxInclude = $("#incomeDeviceTaxInclude").val();
// var incomeDeviceTaxExclude = $("#incomeDeviceTaxExclude").val();
// var incomeEngineerTaxInclude = $("#incomeEngineerTaxInclude").val();
// var incomeEngineerTaxExclude = $("#incomeEngineerTaxExclude").val();
// var incomeServiceTaxInclude = $("#incomeServiceTaxInclude").val();
// var incomeServiceTaxExclude = $("#incomeServiceTaxExclude").val();
// var costPurchaseDeviceTaxInclude = $("#costPurchaseDeviceTaxInclude").val();
// var costPurchaseDeviceTaxExclude = $("#costPurchaseDeviceTaxExclude").val();
// var costPurchaseBuildTaxInclude = $("#costPurchaseBuildTaxInclude").val();
// var costPurchaseBuildTaxExclude = $("#costPurchaseBuildTaxExclude").val();
// var costPurchaseServiceTaxInclude = $("#costPurchaseServiceTaxInclude").val();
// var costPurchaseServiceTaxExclude = $("#costPurchaseServiceTaxExclude").val();
// var costPurchaseOtherTaxInclude = $("#costPurchaseOtherTaxInclude").val();
// var costPurchaseOtherTaxExclude = $("#costPurchaseOtherTaxExclude").val();
// var costCompanyManageTaxExclude = $("#costCompanyManageTaxExclude ").val();
// var costProjectManageTaxExclude = $("#costProjectManageTaxExclude ").val();
// var costOtherOtherTaxInclude = $("#costOtherOtherTaxInclude").val();
// var costOtherOtherTaxExclude = $("#costOtherOtherTaxExclude").val();
2022-04-12 10:22:12 +00:00
2022-08-19 00:22:55 +00:00
if (name.length <= 0) {
window.confirm('项目名称不能为空');
check = 1;
return;
}
checkName();
if (result == 1) {
window.confirm('项目名称已存在');
check = 1;
return;
}
2022-04-12 10:22:12 +00:00
if (startTime.length <= 0) {
window.confirm('项目计划开始时间不能为空');
check = 1;
return;
}
if (endTime.length <= 0) {
window.confirm('项目计划结束时间不能为空');
check = 1;
return;
}
if (startTime > endTime) {
window.confirm('开始日期应早于结束日期');
check = 1;
return;
}
2022-08-16 06:35:12 +00:00
// if (projectNo.length <= 0) {
// window.confirm('项目编号不能为空');
// check = 1;
// return;
// }
//
// checkProjectNo();
// if (projectNoResult == 1) {
// window.confirm('项目编号已存在');
// check = 1;
// return;
// }
2022-07-20 09:16:21 +00:00
2022-08-19 00:22:55 +00:00
if (underwrittenMode == 1 && (collaborator == undefined || collaborator.length <= 0 )) {
window.confirm('合作对象不能为空');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-08-19 00:22:55 +00:00
2022-08-26 00:49:33 +00:00
if (underwrittenMode > 2 && (advanceInterestAmount == undefined || advanceInterestAmount.length <= 0)) {
2022-08-19 00:22:55 +00:00
window.confirm('垫资利息不能为空');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-08-26 00:49:33 +00:00
if (underwrittenMode > 2 && (advancePeakAmount == undefined || advancePeakAmount.length <= 0)) {
2022-08-19 00:22:55 +00:00
window.confirm('垫资峰值不能为空');
2022-08-16 06:35:12 +00:00
check = 1;
return;
}
2022-08-19 00:22:55 +00:00
if (contractAmount == undefined || contractAmount.length <= 0) {
window.confirm('合同金额不能为空');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-08-19 00:22:55 +00:00
if (grossProfit == undefined || grossProfit.length <= 0) {
window.confirm('项目毛利不能为空');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-08-19 00:22:55 +00:00
if (grossProfitMargin == undefined || grossProfitMargin.length <= 0) {
window.confirm('项目毛利率不能为空');
check = 1;
return;
}
if (huizhiProductAmount == undefined || huizhiProductAmount.length <= 0) {
window.confirm('汇智产品金额不能为空');
check = 1;
return;
}
if (huazhiProductAmount == undefined || huazhiProductAmount.length <= 0) {
window.confirm('华智产品金额不能为空');
check = 1;
return;
}
if (huasanProductAmount == undefined || huasanProductAmount.length <= 0) {
window.confirm('华三产品金额不能为空');
check = 1;
return;
}
if (ziguangOtherAmount == undefined || ziguangOtherAmount.length <= 0) {
window.confirm('其他产品金额不能为空');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
// if (industryScenario == undefined || industryScenario.length <= 0) {
// window.confirm('行业应用场景不能为空');
// check = 1;
// return;
// }
2022-04-12 10:22:12 +00:00
2022-08-15 07:50:34 +00:00
// if (mainContractCollectionTerms == undefined || mainContractCollectionTerms.length <= 0) {
// window.confirm('主合同收款条款不能为空');
// check = 1;
// return;
// }
2022-04-12 10:22:12 +00:00
2022-08-19 00:22:55 +00:00
if (customer == undefined || customer.length <= 0 ) {
window.confirm('客户名称不能为空');
check = 1;
return;
}
if (terminalCustomer == undefined || terminalCustomer.length <= 0) {
2022-08-26 00:49:33 +00:00
window.confirm('最终用户名称不能为空');
2022-08-19 00:22:55 +00:00
check = 1;
return;
}
2022-04-12 10:22:12 +00:00
if (valueRisk == undefined || valueRisk.length <= 0) {
window.confirm('价值及风险不能为空');
2022-08-26 00:49:33 +00:00
check = 1;
return;
}
if (principal == undefined || principal.length <= 0) {
window.confirm('项目负责人不能为空');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
/*if (incomeDeviceTaxInclude == '' || incomeDeviceTaxExclude == '' || incomeEngineerTaxInclude == '' || incomeEngineerTaxExclude == '' ||
2022-04-12 10:22:12 +00:00
incomeServiceTaxInclude == '' || incomeServiceTaxExclude == '' || costPurchaseDeviceTaxInclude == '' || costPurchaseDeviceTaxExclude == '' ||
costPurchaseBuildTaxInclude == '' || costPurchaseBuildTaxExclude == '' || costPurchaseServiceTaxInclude == '' || costPurchaseServiceTaxExclude == '' ||
costPurchaseOtherTaxInclude == '' || costPurchaseOtherTaxExclude == '' || costProjectManageTaxExclude == '' || costExpropriationTaxExclude == '' ||
costCompanyManageTaxExclude == '') {
window.confirm('请完善项目详细信息');
check = 1;
return;
}
2022-04-19 06:52:40 +00:00
console.info(changeToNumber(incomeDeviceTaxInclude)+"------"+changeToNumber(incomeDeviceTaxExclude))
console.info(changeToNumber(incomeDeviceTaxInclude)<changeToNumber(incomeDeviceTaxExclude))
2022-04-19 03:18:42 +00:00
if (changeToNumber(incomeDeviceTaxInclude) < changeToNumber(incomeDeviceTaxExclude)) {
2022-04-19 06:52:40 +00:00
window.confirm('设备类收入含税金额应大于不含税金额');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-04-19 03:18:42 +00:00
if (changeToNumber(incomeEngineerTaxInclude) < changeToNumber(incomeEngineerTaxExclude)) {
2022-04-19 07:12:46 +00:00
window.confirm('工程类收入含税金额应大于不含税金额');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-04-19 03:18:42 +00:00
if (changeToNumber(incomeServiceTaxInclude) < changeToNumber(incomeServiceTaxExclude)) {
2022-04-19 07:12:46 +00:00
window.confirm('服务类收入含税金额应大于不含税金额');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-04-19 03:18:42 +00:00
if (changeToNumber(costPurchaseDeviceTaxInclude) < changeToNumber(costPurchaseDeviceTaxExclude)) {
2022-04-19 07:12:46 +00:00
window.confirm('设备类采购成本含税金额应大于不含税金额');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-04-19 03:18:42 +00:00
if (changeToNumber(costPurchaseBuildTaxInclude) < changeToNumber(costPurchaseBuildTaxExclude)) {
2022-04-19 07:12:46 +00:00
window.confirm('施工类采购成本含税金额应大于不含税金额');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-04-19 03:18:42 +00:00
if (changeToNumber(costPurchaseServiceTaxInclude) < changeToNumber(costPurchaseServiceTaxExclude)) {
2022-04-19 07:12:46 +00:00
window.confirm('服务类采购成本含税金额应大于不含税金额');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-04-19 03:18:42 +00:00
if (changeToNumber(costPurchaseOtherTaxInclude) < changeToNumber(costPurchaseOtherTaxExclude)) {
2022-04-19 07:12:46 +00:00
window.confirm('其他类采购成本含税金额应大于不含税金额');
2022-04-12 10:22:12 +00:00
check = 1;
return;
}
2022-04-19 10:39:55 +00:00
if (changeToNumber(costOtherOtherTaxInclude) < changeToNumber(costOtherOtherTaxExclude)) {
window.confirm('其他成本含税金额应大于不含税金额');
check = 1;
return;
}*/
2022-04-28 07:36:01 +00:00
checkRate();
if (rateResult == 1) {
window.confirm('项目年利率未填写或小于等于0请联系管理员配置');
check = 1;
return;
}
2022-04-12 10:22:12 +00:00
}
function checkName () {
var name = $("#name").val();
var id = $("#id").val();
$.ajax({
url: "${base}/project/checkName",
data: {name: name, id: id},
type: "post",
dataType: "json",
async: false,
success: function (data) {
result = data.status;
}
});
};
2022-04-19 03:18:42 +00:00
2022-07-20 09:16:21 +00:00
function checkProjectNo () {
var projectNo = $("#projectNo").val();
var id = $("#id").val();
$.ajax({
url: "${base}/project/checkProjectNo",
data: {projectNo: projectNo, id: id},
type: "post",
dataType: "json",
async: false,
success: function (data) {
projectNoResult = data.status;
}
});
};
2022-04-28 07:36:01 +00:00
function checkRate () {
$.ajax({
url: "${base}/sys/config/checkRate",
type: "get",
dataType: "json",
async: false,
success: function (data) {
rateResult = data.status;
}
});
};
2022-04-19 03:18:42 +00:00
function changeToNumber(value) {
value = value.replace(/[^\-\d.]/g, ""); //清除“-”、“数字”和“.”以外的字符
value = value.replace(/\.{2,}/g, "."); //只保留第一个. 清除多余的
2022-04-19 06:52:40 +00:00
return Number(value);
2022-04-19 03:18:42 +00:00
}
2022-08-16 06:35:12 +00:00
2022-08-19 15:06:07 +00:00
var generateFileupload2 = function (name) {
2022-08-16 06:35:12 +00:00
var progressArea = $("#progress-area-" + name);//div
var progressText = $("#progress-text-" + name);//进度条提示
var progressBar = $(".am-progress-bar");//进度条
$("#file_upload_icon").fileupload({
url: "${base}/file/upload",
dataType: 'json',
maxFileSize: 50 * 1024 * 1024,
maxNumberOfFiles: 1,
start: function (e) {
progressArea.removeClass("am-hide");
progressText.removeClass("am-text-danger");
progressText.html("");
progressBar.css("width", "0%");
},
done: function (e, data) {
console.log(data);
//设置服务器返回的url
$("#collaboratorUrl").val(data.result.data.url);
$("#collaboratorUrl_span").text(data.result.data.url);
// console.log("collboratorUrl: " + $("#collaboratorUrl").val());
setTimeout(function () {
progressArea.addClass("am-hide");
}, 1500);
},
progressall: function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
console.log(progress);
progressBar.css("width", progress + "%");
progressText.html(progress + "%");
},
error: function (jqXHR2, textStatus, errorThrown) {
progressArea.removeClass("am-hide");
progressText.addClass("am-text-danger");
progressText.html("imageupload error");
progressBar.css("width", "0%");
setTimeout(function () {
progressArea.addClass("am-hide");
}, 2000);
},
fail: function (jqXHR2, textStatus) {
progressArea.removeClass("am-hide");
progressText.addClass("am-text-danger");
progressText.html("imageupload fail");
progressBar.css("width", "0%");
setTimeout(function () {
progressArea.addClass("am-hide");
}, 2000);
},
processfail: function (e, data) {
var currentFile = data.files[data.index];
if (data.files.error && currentFile.error) {
parent.layer.msg(currentFile.error);
}
}
});
};
</script>
</@defaultLayout.layout>