2021-11-01 11:00:53 +00:00
|
|
|
|
<#assign base=request.contextPath />
|
|
|
|
|
|
<#import "../common/defaultLayout.ftl" as defaultLayout>
|
|
|
|
|
|
<@defaultLayout.layout>
|
2021-12-01 08:13:39 +00:00
|
|
|
|
<style>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
|
2021-12-01 08:13:39 +00:00
|
|
|
|
/*select的readonly不生效,他把select渲染成其他的了*/
|
|
|
|
|
|
.select-hide .am-selected-content{
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<div class="admin-content">
|
|
|
|
|
|
<div class="admin-content-body">
|
|
|
|
|
|
<div class="am-cf am-padding">
|
2021-11-01 13:09:10 +00:00
|
|
|
|
<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">项目概算表</strong> / <small>${project.name}</small></div>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2021-11-18 07:14:44 +00:00
|
|
|
|
<form method="post" class="am-form" id="pmsForm" action="${base}/project/estimateEditSave" data-am-validator>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<!--选项卡(tabs)begin-->
|
|
|
|
|
|
<div class="am-tabs am-margin" data-am-tabs>
|
|
|
|
|
|
<ul class="am-tabs-nav am-nav am-nav-tabs">
|
|
|
|
|
|
<li class="am-active"><a href="#tab1">项目基本信息</a></li>
|
|
|
|
|
|
<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}" />
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<!--验证表单元素(validate) begin-->
|
|
|
|
|
|
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>部门名称</div>
|
|
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
2021-11-01 13:09:10 +00:00
|
|
|
|
<span>${project.deptName}</span>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>项目计划开始时间</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-2">
|
|
|
|
|
|
<div class="am-form-group am-form-icon">
|
|
|
|
|
|
<i class="am-icon-calendar"></i>
|
|
|
|
|
|
<input type="text" class="am-form-field am-input-sm" id="startDate"
|
|
|
|
|
|
name="startDate" autocomplete="off"
|
2021-12-06 08:57:55 +00:00
|
|
|
|
value="${project.startDate?string("yyyy-MM-dd")}" placeholder="项目计划开始时间"
|
2021-11-01 11:00:53 +00:00
|
|
|
|
data-am-datepicker>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>项目计划结束时间</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-2">
|
|
|
|
|
|
<div class="am-form-group am-form-icon">
|
|
|
|
|
|
<i class="am-icon-calendar"></i>
|
|
|
|
|
|
<input type="text" class="am-form-field am-input-sm" id="endDate"
|
|
|
|
|
|
name="endDate" autocomplete="off"
|
2021-12-06 08:57:55 +00:00
|
|
|
|
value="${project.endDate?string("yyyy-MM-dd")}" placeholder="项目计划结束时间"
|
2021-11-01 11:00:53 +00:00
|
|
|
|
data-am-datepicker>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>项目名称</div>
|
|
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
2022-04-12 02:59:27 +00:00
|
|
|
|
<input type="text" class="am-input" data-validate-async data-validation-message="请输入项目名称(35字符以内)"
|
2022-04-12 10:22:12 +00:00
|
|
|
|
name="name" id="name" placeholder="请输入项目名称(35字符以内)" maxlength="35"
|
2022-03-10 06:54:50 +00:00
|
|
|
|
value="${project.name}" required/>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>项目类型</div>
|
2022-03-10 06:54:50 +00:00
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
|
|
|
|
|
<select data-am-selected id="type" name="type">
|
2021-11-01 13:09:10 +00:00
|
|
|
|
<option value="1" <#if project.type=1>selected</#if>>工程集成类</option>
|
|
|
|
|
|
<option value="2" <#if project.type=2>selected</#if>>设备集成类</option>
|
|
|
|
|
|
<option value="3" <#if project.type=3>selected</#if>>战略合作类</option>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资模式</div>
|
2022-03-10 06:54:50 +00:00
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
|
|
|
|
|
<select data-am-selected id="underwrittenMode" name="underwrittenMode">
|
2021-11-01 13:09:10 +00:00
|
|
|
|
<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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>客户名称</div>
|
|
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
|
|
|
|
|
<input type="text" class="am-input" data-validate-async data-validation-message="请输入客户名称(20字符以内)"
|
2022-04-12 10:22:12 +00:00
|
|
|
|
name="customer" id="customer" placeholder="请输入客户名称(20字符以内)" maxlength="20"
|
2022-03-10 06:54:50 +00:00
|
|
|
|
value="${project.customer}" required/>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>终端客户名称</div>
|
|
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
|
|
|
|
|
<input type="text" class="am-input" data-validate-async data-validation-message="请输入终端客户名称(20字符以内)"
|
2022-04-12 10:22:12 +00:00
|
|
|
|
name="terminalCustomer" id="terminalCustomer" placeholder="请输入终端客户名称(20字符以内)" maxlength="20"
|
2022-03-10 06:54:50 +00:00
|
|
|
|
value="${project.terminalCustomer}" required/>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
2021-12-28 07:42:42 +00:00
|
|
|
|
<#-- <div class="am-g am-form-group am-margin-top">-->
|
|
|
|
|
|
<#-- <div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资利息</div>-->
|
|
|
|
|
|
<#-- <div class="am-u-sm-6 am-u-md-6">-->
|
|
|
|
|
|
<#-- <input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资利息"-->
|
2022-01-05 14:07:33 +00:00
|
|
|
|
<#-- name="advanceInterestAmount" placeholder="单位(元)" maxlength="16"-->
|
2021-12-28 07:42:42 +00:00
|
|
|
|
<#-- value="${Utils.format(project.advanceInterestAmount)}" required />-->
|
|
|
|
|
|
<#-- </div>-->
|
|
|
|
|
|
<#-- <div class="am-u-sm-2 am-u-md-4 input-msg"></div>-->
|
|
|
|
|
|
<#-- </div>-->
|
|
|
|
|
|
<#-- <div class="am-g am-form-group am-margin-top">-->
|
|
|
|
|
|
<#-- <div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>垫资峰值</div>-->
|
|
|
|
|
|
<#-- <div class="am-u-sm-6 am-u-md-6">-->
|
|
|
|
|
|
<#-- <input type="number" class="am-input" data-validate-async data-validation-message="请输入垫资峰值"-->
|
2022-01-05 14:07:33 +00:00
|
|
|
|
<#-- name="advancePeakAmount" placeholder="单位(元)" maxlength="16"-->
|
2021-12-28 07:42:42 +00:00
|
|
|
|
<#-- value="${Utils.format(project.advancePeakAmount)}" required />-->
|
|
|
|
|
|
<#-- </div>-->
|
|
|
|
|
|
<#-- <div class="am-u-sm-2 am-u-md-4 input-msg"></div>-->
|
|
|
|
|
|
<#-- </div>-->
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>合同金额</div>
|
|
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
2022-01-07 02:42:32 +00:00
|
|
|
|
<input type="text" class="number am-input" data-validate-async data-validation-message="请输入合同金额"
|
2022-04-12 10:22:12 +00:00
|
|
|
|
name="contractAmount" id="contractAmount" placeholder="单位(元)" maxlength="16"
|
2021-11-26 10:37:02 +00:00
|
|
|
|
value="${Utils.format(project.contractAmount)}" required />
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>行业场景应用</div>
|
|
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
|
|
|
|
|
<input type="text" class="am-input" data-validate-async data-validation-message="请输入行业场景应用"
|
2022-04-12 10:22:12 +00:00
|
|
|
|
name="industryScenario" id="industryScenario" placeholder="请输入行业场景应用" maxlength="20"
|
2022-03-10 06:54:50 +00:00
|
|
|
|
value="${project.industryScenario}" required/>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
2021-11-30 10:06:12 +00:00
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><#--<span style="color: red;">*</span>-->华智产品金额</div>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
2022-01-07 02:42:32 +00:00
|
|
|
|
<input type="text" class="number am-input" data-validation-message="华智产品金额"
|
2022-04-12 10:22:12 +00:00
|
|
|
|
name="huazhiProductAmount" id="huazhiProductAmount" placeholder="单位(元)" maxlength="16" value="${Utils.format(project.huazhiProductAmount, "0.00")}" />
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
2021-12-27 01:16:35 +00:00
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><#--<span style="color: red;">*</span>-->其他产品金额</div>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
2022-01-07 02:42:32 +00:00
|
|
|
|
<input type="text" class="number am-input" data-validation-message="请输入其他产品金额"
|
2022-04-12 10:22:12 +00:00
|
|
|
|
name="ziguangOtherAmount" id="ziguangOtherAmount" placeholder="单位(元)" maxlength="16" value="${Utils.format(project.ziguangOtherAmount, "0.00")}" />
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>主合同收款条款</div>
|
|
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
2021-12-29 08:11:19 +00:00
|
|
|
|
<textarea rows="3" cols="20" id="mainContractCollectionTerms" name="mainContractCollectionTerms" maxlength="100"
|
|
|
|
|
|
class="am-input" data-validate-async data-validation-message="请输入收款条款"
|
|
|
|
|
|
placeholder="请输入收款条款" required
|
2021-12-29 09:35:23 +00:00
|
|
|
|
>${project.mainContractCollectionTerms!}</textarea>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
2021-12-29 07:37:14 +00:00
|
|
|
|
<div class="am-g am-form-group am-margin-top">
|
|
|
|
|
|
<div class="am-u-sm-4 am-u-md-2 am-text-right"><span style="color: red;">*</span>价值及风险</div>
|
|
|
|
|
|
<div class="am-u-sm-6 am-u-md-6">
|
2021-12-29 08:11:19 +00:00
|
|
|
|
<textarea rows="5" cols="20" id="valueRisk" name="valueRisk" maxlength="500"
|
2021-12-29 07:37:14 +00:00
|
|
|
|
class="am-input" data-validate-async data-validation-message="请输入价值及风险"
|
|
|
|
|
|
placeholder="请输入价值及风险" required
|
|
|
|
|
|
>${project.valueRisk!}</textarea>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-u-sm-2 am-u-md-4 input-msg"></div>
|
|
|
|
|
|
</div>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
<!--验证表单元素(validate end-->
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="am-tabs-bd">
|
|
|
|
|
|
<div class="am-tab-panel am-fade am-in" id="tab2">
|
2021-11-02 06:43:42 +00:00
|
|
|
|
<span class="am-text-lg">收入</span>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
|
|
|
|
|
<tbody>
|
2021-11-09 09:20:06 +00:00
|
|
|
|
<tr class="am-text-lg">
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<td>类别</td>
|
|
|
|
|
|
<td>费用</td>
|
|
|
|
|
|
<td>含税金额(元)</td>
|
|
|
|
|
|
<td>不含税金额(元)</td>
|
2021-12-30 08:54:16 +00:00
|
|
|
|
<td>税率</td>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>收入</td>
|
|
|
|
|
|
<td>设备类</td>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="incomeDeviceTaxInclude" id="incomeDeviceTaxInclude" value="${Utils.format(estimateBean.incomeDeviceTaxInclude)}" required></td>
|
|
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="incomeDeviceTaxExclude" id="incomeDeviceTaxExclude" value="${Utils.format(estimateBean.incomeDeviceTaxExclude)}" <#if estimateBean.incomeDeviceSelect! !="自定义">readonly</#if> required></td>
|
2021-12-30 08:54:16 +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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>收入</td>
|
|
|
|
|
|
<td>工程类</td>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="incomeEngineerTaxInclude" id="incomeEngineerTaxInclude" value="${Utils.format(estimateBean.incomeEngineerTaxInclude)}" required></td>
|
|
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="incomeEngineerTaxExclude" id="incomeEngineerTaxExclude" value="${Utils.format(estimateBean.incomeEngineerTaxExclude)}" <#if estimateBean.incomeEngineerSelect! !="自定义">readonly</#if> required></td>
|
2021-12-30 08:54:16 +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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>收入</td>
|
|
|
|
|
|
<td>服务类</td>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="incomeServiceTaxInclude" id="incomeServiceTaxInclude" value="${Utils.format(estimateBean.incomeServiceTaxInclude)}" required></td>
|
|
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="incomeServiceTaxExclude" id="incomeServiceTaxExclude" value="${Utils.format(estimateBean.incomeServiceTaxExclude)}" <#if estimateBean.incomeServiceSelect! !="自定义">readonly</#if> required></td>
|
2021-12-30 08:54:16 +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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>合计</td>
|
|
|
|
|
|
<td></td>
|
2022-01-07 07:39:27 +00:00
|
|
|
|
<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>
|
2021-12-30 08:54:16 +00:00
|
|
|
|
<td>/</td>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
2021-11-02 06:43:42 +00:00
|
|
|
|
<span class="am-text-lg">成本</span>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
|
|
|
|
|
<tbody>
|
2021-11-09 09:20:06 +00:00
|
|
|
|
<tr class="am-text-lg">
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<td>类别</td>
|
|
|
|
|
|
<td>费用</td>
|
|
|
|
|
|
<td>费用项目</td>
|
|
|
|
|
|
<td>含税金额(元)</td>
|
|
|
|
|
|
<td>不含税金额(元)</td>
|
2021-12-30 08:54:16 +00:00
|
|
|
|
<td>税率</td>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>成本</td>
|
|
|
|
|
|
<td>采购成本</td>
|
|
|
|
|
|
<td>设备</td>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costPurchaseDeviceTaxInclude" id="costPurchaseDeviceTaxInclude" value="${Utils.format(estimateBean.costPurchaseDeviceTaxInclude)}" required></td>
|
|
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costPurchaseDeviceTaxExclude" id="costPurchaseDeviceTaxExclude" value="${Utils.format(estimateBean.costPurchaseDeviceTaxExclude)}" <#if estimateBean.costPurchaseDeviceSelect! !="自定义">readonly</#if> required></td>
|
2021-12-30 08:54:16 +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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>成本</td>
|
|
|
|
|
|
<td>采购成本</td>
|
|
|
|
|
|
<td>施工</td>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costPurchaseBuildTaxInclude" id="costPurchaseBuildTaxInclude" value="${Utils.format(estimateBean.costPurchaseBuildTaxInclude)}" required></td>
|
|
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costPurchaseBuildTaxExclude" id="costPurchaseBuildTaxExclude" value="${Utils.format(estimateBean.costPurchaseBuildTaxExclude)}" <#if estimateBean.costPurchaseBuildSelect! !="自定义">readonly</#if> required></td>
|
2021-12-30 08:54:16 +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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>成本</td>
|
|
|
|
|
|
<td>采购成本</td>
|
|
|
|
|
|
<td>服务</td>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costPurchaseServiceTaxInclude" id="costPurchaseServiceTaxInclude" value="${Utils.format(estimateBean.costPurchaseServiceTaxInclude)}" required></td>
|
|
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costPurchaseServiceTaxExclude" id="costPurchaseServiceTaxExclude" value="${Utils.format(estimateBean.costPurchaseServiceTaxExclude)}" <#if estimateBean.costPurchaseServiceSelect! !="自定义">readonly</#if> required></td>
|
2021-12-30 08:54:16 +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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>成本</td>
|
|
|
|
|
|
<td>采购成本</td>
|
|
|
|
|
|
<td>其他</td>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costPurchaseOtherTaxInclude" id="costPurchaseOtherTaxInclude" value="${Utils.format(estimateBean.costPurchaseOtherTaxInclude)}" required></td>
|
|
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costPurchaseOtherTaxExclude" id="costPurchaseOtherTaxExclude" value="${Utils.format(estimateBean.costPurchaseOtherTaxExclude)}" <#if estimateBean.costPurchaseOtherSelect! !="自定义">readonly</#if> required></td>
|
2021-12-30 08:54:16 +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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>成本</td>
|
|
|
|
|
|
<td>项目管理成本</td>
|
|
|
|
|
|
<td>项目管理成本</td>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
<td><input type="text" class="number" name="costProjectManageTaxInclude" id="costProjectManageTaxInclude" value="${Utils.format(estimateBean.costProjectManageTaxInclude)}" required readonly></td>
|
|
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costProjectManageTaxExclude" id="costProjectManageTaxExclude" value="${Utils.format(estimateBean.costProjectManageTaxExclude)}" required></td>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>成本</td>
|
|
|
|
|
|
<td>其他</td>
|
2021-12-30 02:15:03 +00:00
|
|
|
|
<td><input type="text" id="otherName" maxlength="10" data-validate-async data-validation-message="请输入其他类的名称(10字符以内)"
|
2022-01-13 03:54:56 +00:00
|
|
|
|
value="${project.otherName!}" name="otherName" placeholder="请输入其他类的名称(10字符以内)"/> </td>
|
2022-01-13 08:35:29 +00:00
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costOtherOtherTaxInclude" value="${Utils.format(estimateBean.costOtherOtherTaxInclude, "0.00")}"></td>
|
|
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costOtherOtherTaxExclude" value="${Utils.format(estimateBean.costOtherOtherTaxExclude, "0.00")}" <#if estimateBean.costOtherOtherSelect! !="自定义">readonly</#if>></td>
|
2021-12-30 08:54:16 +00:00
|
|
|
|
<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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>合计</td>
|
|
|
|
|
|
<td></td>
|
|
|
|
|
|
<td></td>
|
2022-01-05 14:07:33 +00:00
|
|
|
|
<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>
|
2021-12-30 08:54:16 +00:00
|
|
|
|
<td>/</td>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
2021-11-02 06:43:42 +00:00
|
|
|
|
<span class="am-text-lg">管理</span>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
|
|
|
|
|
<tbody>
|
2021-11-09 09:20:06 +00:00
|
|
|
|
<tr class="am-text-lg">
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<td>类别</td>
|
|
|
|
|
|
<td>费用项目</td>
|
|
|
|
|
|
<td>不含税金额(元)</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>财务费用</td>
|
|
|
|
|
|
<td>资金占用成本</td>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costExpropriationTaxExclude" id="costExpropriationTaxExclude" value="${Utils.format(estimateBean.costExpropriationTaxExclude)}" required></td>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>公司管理费用</td>
|
|
|
|
|
|
<td></td>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
<td><input type="text" class="number" maxlength="16" name="costCompanyManageTaxExclude" id="costCompanyManageTaxExclude" value="${Utils.format(estimateBean.costCompanyManageTaxExclude)}" required></td>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
2021-11-02 06:43:42 +00:00
|
|
|
|
<span class="am-text-lg">利润率计算</span>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
|
|
|
|
|
|
<tbody>
|
2021-11-09 09:20:06 +00:00
|
|
|
|
<tr class="am-text-lg">
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<td>类别</td>
|
2021-12-29 06:16:24 +00:00
|
|
|
|
<td></td>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2021-12-29 06:16:24 +00:00
|
|
|
|
<td>项目毛利(元)</td>
|
2022-01-05 14:07:33 +00:00
|
|
|
|
<td><input type="text" class="number" name="projectGrossProfit" value="${Utils.format(estimateBean.projectGrossProfit)}" readonly title="收入总计(不含税)-成本总计(不含税)-财务费用总计(不含税)"></td>
|
2021-12-29 06:16:24 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>项目毛利率(%)</td>
|
2022-01-05 14:07:33 +00:00
|
|
|
|
<td><input type="text" class="number" name="projectGrossProfitRate" value="${Utils.format(estimateBean.projectGrossProfitRate)}" readonly title="毛利(不含税)/收入总计(不含税)"></td>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2021-12-29 06:16:24 +00:00
|
|
|
|
<td>项目贡献利润(元)</td>
|
2022-01-05 14:07:33 +00:00
|
|
|
|
<td><input type="text" class="number" name="projectContributionProfit" value="${Utils.format(estimateBean.projectContributionProfit)}" readonly title="项目毛利(不含税)-公司管理费用总计(不含税)"></td>
|
2021-12-29 06:16:24 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>项目贡献利润率(%)</td>
|
2022-01-05 14:07:33 +00:00
|
|
|
|
<td><input type="text" class="number" name="projectContributionProfitRate" value="${Utils.format(estimateBean.projectContributionProfitRate)}" readonly title="贡献利润(不含税)/收入总计(不含税)"></td>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!--验证表单元素(validate end-->
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!--选项卡(tabs)end-->
|
|
|
|
|
|
<div class="am-margin">
|
|
|
|
|
|
<button type="button" class="am-btn am-btn-warning am-btn-xs" onclick="javascript:history.go(-1);">返回上一级</button>
|
2021-11-18 07:33:14 +00:00
|
|
|
|
<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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</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>
|
2021-11-01 11:00:53 +00:00
|
|
|
|
<script>
|
2022-04-12 10:22:12 +00:00
|
|
|
|
var check = 0;
|
2022-04-19 06:52:40 +00:00
|
|
|
|
var result = 0;
|
2021-11-01 11:00:53 +00:00
|
|
|
|
$(function () {
|
2021-11-02 04:20:20 +00:00
|
|
|
|
calIncomeAndCost();
|
|
|
|
|
|
$("#saveDraft").click(function () {
|
2022-04-19 06:52:40 +00:00
|
|
|
|
check = 0;
|
2022-01-18 03:09:21 +00:00
|
|
|
|
$("#saveDraft").attr('disabled',true);
|
2022-04-12 10:22:12 +00:00
|
|
|
|
checkIfFillIn();
|
|
|
|
|
|
if (check == 1) {
|
|
|
|
|
|
$("#saveDraft").attr('disabled', false);
|
2021-12-07 08:00:13 +00:00
|
|
|
|
return;
|
2021-12-03 10:00:47 +00:00
|
|
|
|
}
|
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-01 11:00:53 +00:00
|
|
|
|
});
|
2021-11-02 04:20:20 +00:00
|
|
|
|
$("#saveApprove").click(function () {
|
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);
|
2021-12-07 08:00:13 +00:00
|
|
|
|
return;
|
2021-12-03 10:00:47 +00:00
|
|
|
|
}
|
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();
|
2021-11-01 11:00:53 +00:00
|
|
|
|
});
|
|
|
|
|
|
});
|
2022-04-12 10:22:12 +00:00
|
|
|
|
|
|
|
|
|
|
function checkIfFillIn() {
|
|
|
|
|
|
var startTime = $("#startDate").val();
|
|
|
|
|
|
var endTime = $("#endDate").val();
|
|
|
|
|
|
var name = $("#name").val();
|
|
|
|
|
|
var customer = $("#customer").val();
|
|
|
|
|
|
var terminalCustomer = $("#terminalCustomer").val();
|
|
|
|
|
|
var contractAmount = $("#contractAmount").val();
|
|
|
|
|
|
var industryScenario = $("#industryScenario").val();
|
|
|
|
|
|
var mainContractCollectionTerms = $("#mainContractCollectionTerms").val();
|
|
|
|
|
|
var valueRisk = $("#valueRisk").val();
|
|
|
|
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (name.length <= 0) {
|
|
|
|
|
|
window.confirm('项目名称不能为空');
|
|
|
|
|
|
check = 1;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
checkName();
|
|
|
|
|
|
if (result == 1) {
|
|
|
|
|
|
window.confirm('项目名称已存在');
|
|
|
|
|
|
check = 1;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (customer == undefined || customer.length <= 0 ) {
|
|
|
|
|
|
window.confirm('客户名称不能为空');
|
|
|
|
|
|
check = 1;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (terminalCustomer == undefined || terminalCustomer.length <= 0) {
|
|
|
|
|
|
window.confirm('终端客户名称不能为空');
|
|
|
|
|
|
check = 1;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (contractAmount == undefined || contractAmount.length <= 0) {
|
|
|
|
|
|
window.confirm('合同金额不能为空');
|
|
|
|
|
|
check = 1;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (industryScenario == undefined || industryScenario.length <= 0) {
|
|
|
|
|
|
window.confirm('行业应用场景不能为空');
|
|
|
|
|
|
check = 1;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (mainContractCollectionTerms == undefined || mainContractCollectionTerms.length <= 0) {
|
|
|
|
|
|
window.confirm('主合同收款条款不能为空');
|
|
|
|
|
|
check = 1;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (valueRisk == undefined || valueRisk.length <= 0) {
|
|
|
|
|
|
window.confirm('价值及风险不能为空');
|
|
|
|
|
|
check = 1;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (incomeDeviceTaxInclude == '' || incomeDeviceTaxExclude == '' || incomeEngineerTaxInclude == '' || incomeEngineerTaxExclude == '' ||
|
|
|
|
|
|
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;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2021-11-01 11:00:53 +00:00
|
|
|
|
</script>
|
|
|
|
|
|
</@defaultLayout.layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|