Merge branch 'master' of gitee.com:ZhangYunTianXia/fourcal

master
suhang_max@163.com 2022-12-12 11:49:12 +08:00
commit a71054e7eb
4 changed files with 611 additions and 712 deletions

View File

@ -89,6 +89,8 @@ public class ProjectController extends BaseController {
private NumSeqService numSeqService;
@Autowired
private AdminRepository adminRepository;
@Autowired
private ProjectBudgetRepository projectBudgetRepository;
/**
*
@ -335,6 +337,8 @@ public class ProjectController extends BaseController {
public String budget(@RequestParam("id") int id, Map<String, Object> model) {
Project project = projectService.getProject(id);
model.put("project", project);
ProjectBudget projectBudget = projectBudgetRepository.findFirstByProjectId(project.getId());
model.put("projectBudget", projectBudget);
model.put("planStartStr", project.getPlanStartStr());
model.put("planStartDate", project.getPlanStartStr());
@ -418,8 +422,9 @@ public class ProjectController extends BaseController {
*
*/
@RequestMapping("/budgetEditSave")
public String budgetEditSave(Project project, BindingResult bindingResult, BudgetBean budgetBean, Map<String, Object> model) {
public String budgetEditSave(Project project, ProjectBudget projectBudget, BindingResult bindingResult, BudgetBean budgetBean, Map<String, Object> model) {
Project projectInDb = projectService.getProject(project.getId());
projectBudgetRepository.save(projectBudget);
projectBudgetService.budgetEditSave(project, projectInDb, budgetBean, InterfaceUtil.getAdmin(), ApproveStatusEnum.APPROVAL_UNCOMMIT);
return "redirect:/project/list";
}
@ -428,8 +433,9 @@ public class ProjectController extends BaseController {
*
*/
@RequestMapping("/budgetEditSaveAndApprove")
public String budgetEditSaveAndApprove(Project project, BudgetBean budgetBean, Map<String, Object> model) throws Exception {
public String budgetEditSaveAndApprove(Project project, ProjectBudget projectBudget, BudgetBean budgetBean, Map<String, Object> model) throws Exception {
Project projectInDb = projectService.getProject(project.getId());
projectBudgetRepository.save(projectBudget);
projectBudgetService.budgetEditSaveAndApprove(project, projectInDb, budgetBean, InterfaceUtil.getAdmin());
return "redirect:/project/list";
}

File diff suppressed because it is too large Load Diff

View File

@ -3,4 +3,6 @@ package cn.palmte.work.model;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ProjectBudgetRepository extends JpaRepository<ProjectBudget, Integer> {
ProjectBudget findFirstByProjectId(int projectId);
}

View File

@ -94,7 +94,7 @@
<div class="am-tabs palm-tabs" data-am-tabs>
<ul class="am-tabs-nav am-nav am-nav-tabs palm-tabs-nav">
<li class="am-active"><a href="#tab1">项目立项(概算)信息</a></li>
<#-- <li><a href="#tab2">项目立项(概算)其他信息</a></li>-->
<li><a href="#tab2">项目基本信息</a></li>
<li><a href="#tab3">收入明细表</a></li>
<li><a href="#tab8">收款计划表</a></li>
<li><a href="#tab4">采购成本明细表</a></li>
@ -314,6 +314,317 @@
</tr>
</table>
</div>
<div class="am-tab-panel am-fade am-in am-active" id="tab2">
<input name="projectId" id="projectId" type="hidden" value="${projectBudget.projectId}" />
<!--验证表单元素validate) begin-->
<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>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">部门名称:</span></th>
<td class="table-title" colspan="2" ><input class="table-inline" readonly value="${projectBudget.deptNameBudget!}" /></td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目编号:</span></th>
<td class="table-title" colspan="2" ><input class="table-inline" readonly value="${projectBudget.projectNoBudget!}" /></td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目名称:</span></th>
<td class="table-title" colspan="5" >
<input type="text" id="nameBudget" style="border-style:none;" data-validate-async data-validation-message="请输入项目名称1000字符以内"
name="nameBudget" placeholder="请输入项目名称1000字符以内" maxlength="1000" value="${projectBudget.nameBudget!}" />
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目类型:</span></th>
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="typeBudget" name="typeBudget" >
<option value="1" <#if projectBudget.typeBudget=1>selected</#if>>工程集成类</option>
<option value="2" <#if projectBudget.typeBudget=2>selected</#if>>设备集成类</option>
</select>
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目计划开始时间:</span></th>
<td class="table-title" colspan="1" >
<#-- <i class="am-icon-calendar"></i>-->
<input type="text" style="border-style:none;" id="startDateBudget"
name="startDateBudget" autocomplete="off"
value="${(projectBudget.startDateBudget?string("yyyy-MM-dd"))!}" placeholder="项目计划开始时间"
data-am-datepicker >
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目计划结束时间:</span></th>
<td class="table-title" colspan="1" >
<#-- <i class="am-icon-calendar"></i>-->
<input type="text" style="border-style:none;" id="endDateBudget"
name="endDateBudget" autocomplete="off"
value="${(projectBudget.endDateBudget?string("yyyy-MM-dd"))!}" placeholder="项目计划结束时间"
data-am-datepicker >
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">垫资模式:</span></th>
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="underwrittenModeBudget" name="underwrittenModeBudget" onchange="changeCheckB()">
<option value="1" <#if projectBudget.underwrittenModeBudget=1>selected</#if>>A类-不垫资</option>
<option value="3" <#if projectBudget.underwrittenModeBudget=3>selected</#if>>B类-垫资(账期覆盖)</option>
<option value="4" <#if projectBudget.underwrittenModeBudget=4>selected</#if>>C类-垫资(账期不覆盖)</option>
</select>
</td>
<th class="table-title" colspan="4" id="noUnder0b" <#if projectBudget.underwrittenModeBudget! gt 2>hidden</#if>></th>
<th class="table-title" colspan="1" id="noUnder1b" <#if projectBudget.underwrittenModeBudget! <= 2>hidden</#if>><span style="color: red;">*</span><span style="font-size: 15px">垫资利息:</span></th>
<td class="table-title" colspan="1" id="noUnder2b" <#if projectBudget.underwrittenModeBudget! <= 2>hidden</#if>>
<input type="text" class="number am-input" style="border-style:none;" data-validate-async data-validation-message="请输入垫资利息"
name="advanceInterestAmountBudget" id="advanceInterestAmountBudget" placeholder="单位(元)" maxlength="16"
value="${Utils.format(projectBudget.advanceInterestAmountBudget)}" />
</td>
<th class="table-title" colspan="1" id="noUnder3b" <#if projectBudget.underwrittenModeBudget! <= 2>hidden</#if>><span style="color: red;">*</span><span style="font-size: 15px">垫资峰值:</span></th>
<td class="table-title" colspan="1" id="noUnder4b" <#if projectBudget.underwrittenModeBudget! <= 2>hidden</#if>>
<input type="text" class="number am-input" style="border-style:none;" data-validate-async data-validation-message="请输入垫资峰值"
name="advancePeakAmountBudget" id="advancePeakAmountBudget" placeholder="单位(元)" maxlength="16"
value="${Utils.format(projectBudget.advancePeakAmountBudget)}" />
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">合作类型:</span></th>
<td class="table-title" colspan="1" id="spanMode" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="cooperateTypeBudget" name="cooperateTypeBudget" onchange="changeCheck2B()">
<option value="1" <#if projectBudget.cooperateTypeBudget=1>selected</#if>>战略合作类</option>
<option value="2" <#if projectBudget.cooperateTypeBudget=2>selected</#if>>非战略合作类</option>
</select>
</td>
<th class="table-title" colspan="1" id="coop1b" <#if projectBudget.cooperateTypeBudget! != 1>hidden</#if> ><span style="color: red;">*</span><span style="font-size: 15px">合作对象:</span></th>
<td class="table-title" colspan="3" id="coop2b" <#if projectBudget.cooperateTypeBudget! != 1>hidden</#if> >
<div class="sameline">
<input type="text" style="border-style:none;width: 50%;" data-validate-async data-validation-message="请输入合作对象"
name="collaboratorBudget" id="collaboratorBudget" placeholder="请输入合作对象" maxlength="20"
value="${projectBudget.collaboratorBudget!}" />
<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">${projectBudget.collaboratorUrlBudget!}</span>
<span id="collaboratorUrl_check"><#if projectBudget.collaboratorUrlBudget??>已上传</#if></span>
<input id="collaboratorUrlBudget" name="collaboratorUrlBudget" type="hidden" value="${projectBudget.collaboratorUrlBudget!}"/>
</span>
</div>
</td>
<th class="table-title" colspan="4" id="coop0b" <#if projectBudget.cooperateTypeBudget! == 1>hidden</#if>></th>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">合同金额:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validate-async data-validation-message="请输入合同金额"
name="contractAmountBudget" id="contractAmountBudget" placeholder="单位(元)" maxlength="16"
value="${Utils.format(projectBudget.contractAmountBudget)}" />
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目毛利:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validate-async data-validation-message="请输入项目毛利"
name="grossProfitBudget" id="grossProfitBudget" placeholder="单位(元)" maxlength="16"
value="${Utils.format(projectBudget.grossProfitBudget)}" />
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目毛利率:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validate-async data-validation-message="请输入项目毛利率"
name="grossProfitMarginBudget" id="grossProfitMarginBudget" placeholder="单位(%" maxlength="16"
value="${Utils.format(projectBudget.grossProfitMarginBudget)}" />
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">汇智产品金额:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validation-message="汇智产品金额"
name="huizhiProductAmountBudget" id="huizhiProductAmountBudget" placeholder="单位(元)" maxlength="16" value="${Utils.format(projectBudget.huizhiProductAmountBudget, "0.00")}" />
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">华智产品金额:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validation-message="华智产品金额"
name="huazhiProductAmountBudget" id="huazhiProductAmountBudget" placeholder="单位(元)" maxlength="16" value="${Utils.format(projectBudget.huazhiProductAmountBudget, "0.00")}" />
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">华三产品金额:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validation-message="华三产品金额"
name="huasanProductAmountBudget" id="huasanProductAmountBudget" placeholder="单位(元)" maxlength="16" value="${Utils.format(projectBudget.huasanProductAmountBudget, "0.00")}" />
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">其他产品金额:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="number am-input" style="border-style:none;" data-validation-message="请输入其他产品金额"
name="ziguangOtherAmountBudget" id="ziguangOtherAmountBudget" placeholder="单位(元)" maxlength="16" value="${Utils.format(projectBudget.ziguangOtherAmountBudget, "0.00")}" />
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目把握度:</span></th>
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="certaintyBudget" name="certaintyBudget">
<#if projectBudget.certaintyBudget??>
<option value="1" <#if projectBudget.certaintyBudget=1>selected</#if>>A项目成功率80%-100%</option>
<option value="2" <#if projectBudget.certaintyBudget=2>selected</#if>>B项目成功率60%-80%</option>
<option value="3" <#if projectBudget.certaintyBudget=3>selected</#if>>C项目成功率40%-60%</option>
<#else>
<option value="1" >A项目成功率40%-60%</option>
<option value="2" >B项目成功率40%-60%</option>
<option value="3" >C项目成功率40%-60%</option>
</#if>
</select>
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">行业场景应用:</span></th>
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="industrySceneBudget" name="industrySceneBudget">
<#if projectBudget.industrySceneBudget??>
<option value="1" <#if projectBudget.industrySceneBudget=1>selected</#if>>信息安全</option>
<option value="2" <#if projectBudget.industrySceneBudget=2>selected</#if>>政府</option>
<option value="3" <#if projectBudget.industrySceneBudget=3>selected</#if>>公安</option>
<option value="4" <#if projectBudget.industrySceneBudget=4>selected</#if>>企业</option>
<option value="5" <#if projectBudget.industrySceneBudget=5>selected</#if>>教育</option>
<option value="6" <#if projectBudget.industrySceneBudget=6>selected</#if>>交通</option>
<option value="7" <#if projectBudget.industrySceneBudget=7>selected</#if>>医疗</option>
<option value="8" <#if projectBudget.industrySceneBudget=8>selected</#if>>电力资源</option>
<option value="9" <#if projectBudget.industrySceneBudget=9>selected</#if>>运营商</option>
<option value="10" <#if projectBudget.industrySceneBudget=10>selected</#if>>金融</option>
<option value="11" <#if projectBudget.industrySceneBudget=11>selected</#if>>专网</option>
<option value="12" <#if projectBudget.industrySceneBudget=12>selected</#if>>其他</option>
<option value="13" <#if projectBudget.industrySceneBudget=13>selected</#if>>互联网</option>
<option value="14" <#if projectBudget.industrySceneBudget=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>
</select>
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目解决方案:</span></th>
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="resolvePlanBudget" name="resolvePlanBudget">
<#if projectBudget.resolvePlanBudget??>
<option value="1" <#if projectBudget.resolvePlanBudget=1>selected</#if>>公共服务(智慧交通、雪亮工程、治安防控体系等)</option>
<option value="2" <#if projectBudget.resolvePlanBudget=2>selected</#if>>泛行业(智慧园区、智慧医疗、智慧工地等)</option>
<option value="3" <#if projectBudget.resolvePlanBudget=3>selected</#if>>其他生态</option>
<#else>
<option value="1" >公共服务(智慧交通、雪亮工程、治安防控体系等)</option>
<option value="2" >泛行业(智慧园区、智慧医疗、智慧工地等)</option>
<option value="3" >其他生态</option>
</#if>
</select>
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">客户名称:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入客户名称1000字符以内"
name="customerBudget" id="customerBudget" placeholder="请输入客户名称1000字符以内" maxlength="1000"
value="${projectBudget.customerBudget!}" />
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">最终用户名称:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入最终用户名称1000字符以内"
name="terminalCustomerBudget" id="terminalCustomerBudget" placeholder="请输入最终用户名称1000字符以内" maxlength="1000"
value="${projectBudget.terminalCustomerBudget!}" />
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">价值及风险:</span></th>
<td class="table-title" colspan="5" >
<textarea rows="5" cols="20" id="valueRiskBudget" name="valueRiskBudget" maxlength="1000"
class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入价值及风险"
placeholder="请输入价值及风险"
>${projectBudget.valueRiskBudget!}</textarea>
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span><span style="font-size: 15px">项目负责人:</span></th>
<td class="table-title" colspan="1" >
<input type="text" id="principalBudget" class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入项目负责人"
name="principalBudget" placeholder="请输入项目负责人" maxlength="20"
value="${projectBudget.principalBudget!}" />
</td>
<th class="table-title" colspan="1" ><span style="font-size: 15px">预计合同签订时间:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="am-form-field am-input-sm" style="border-style:none;" id="contractTimeBudget"
name="contractTimeBudget" autocomplete="off"
value="${(projectBudget.contractTimeBudget?string("yyyy-MM-dd"))!}" placeholder="预计合同签订时间"
data-am-datepicker>
</td>
<th class="table-title" colspan="1" ><span style="font-size: 15px">项目计划招标时间:</span></th>
<td class="table-title" colspan="1" >
<input type="text" class="am-form-field am-input-sm" style="border-style:none;" id="bidsTimeBudget"
name="bidsTimeBudget" autocomplete="off"
value="${(projectBudget.bidsTimeBudget?string("yyyy-MM-dd"))!}" placeholder="项目计划招标时间"
data-am-datepicker>
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="font-size: 15px">是否二次合作:</span></th>
<td class="table-title" colspan="1" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="isSecondBudget" name="isSecondBudget">
<#if projectBudget.isSecondBudget??>
<option value="-1" ></option>
<option value="1" <#if projectBudget.isSecondBudget=1>selected</#if>>是</option>
<option value="2" <#if projectBudget.isSecondBudget=2>selected</#if>>否</option>
<#else>
<option value="-1" ></option>
<option value="1" >是</option>
<option value="2" >否</option>
</#if>
</select>
</td>
<th class="table-title" colspan="1" ><span style="font-size: 15px">直签:</span></th>
<td class="table-title" colspan="3" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="signTypeBudget" name="signTypeBudget">
<#if projectBudget.signTypeBudget??>
<option value="-1" ></option>
<option value="1" <#if projectBudget.signTypeBudget=1>selected</#if>>紫光汇智直接投标</option>
<#else>
<option value="-1" ></option>
<option value="1" >紫光汇智直接投标</option>
</#if>
</select>
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="font-size: 15px">主合同收款条款:</span></th>
<td class="table-title" colspan="5" >
<textarea rows="3" cols="20" id="mainContractCollectionTermsBudget" name="mainContractCollectionTermsBudget" maxlength="1000"
class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入收款条款"
placeholder="请输入收款条款"
>${projectBudget.mainContractCollectionTermsBudget!}</textarea>
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="font-size: 15px">主合同具体解决方案:</span></th>
<td class="table-title" colspan="5" >
<textarea rows="3" cols="20" id="mainContractResolvePlanBudget" name="mainContractResolvePlanBudget" maxlength="1000"
class="am-input" style="border-style:none;" data-validate-async data-validation-message="请输入具体解决方案"
placeholder="请输入具体解决方案"
>${projectBudget.mainContractResolvePlanBudget!}</textarea>
</td>
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="font-size: 15px">计收计划:</span></th>
<td class="table-title" colspan="5" >
<textarea rows="3" cols="20" id="calculationCollectionBudget" name="calculationCollectionBudget" maxlength="1000"
class="am-input" style="border-style:none;" data-validate-async data-validation-message="按照开票金额及时间罗列计收计划"
placeholder="按照开票金额及时间罗列计收计划"
>${projectBudget.calculationCollectionBudget!}</textarea>
</td>
</tr>
</table>
</div>
<div class="am-tab-panel am-fade am-in" id="tab3">
<div class="fixed-section">
<div class="am-modal-bd">
@ -1087,11 +1398,13 @@
var changeCheck = function () {
var underwrittenMode = $("#underwrittenMode").val();
if (underwrittenMode <= 2) {
$("#noUnder0").show();
$("#noUnder1").hide();
$("#noUnder2").hide();
$("#noUnder3").hide();
$("#noUnder4").hide();
} else {
$("#noUnder0").hide();
$("#noUnder1").show();
$("#noUnder2").show();
$("#noUnder3").show();
@ -1102,15 +1415,47 @@
var changeCheck2 = function () {
var cooperateType = $("#cooperateType").val();
if (cooperateType == 1) {
$("#coop0").hide();
$("#coop1").show();
$("#coop2").show();
} else {
$("#coop0").show();
$("#coop1").hide();
$("#coop2").hide();
}
};
function ajaxUploadFile(id, url) {
var changeCheckB = function () {
var underwrittenModeBudget = $("#underwrittenModeBudget").val();
if (underwrittenModeBudget <= 2) {
$("#noUnder0b").show();
$("#noUnder1b").hide();
$("#noUnder2b").hide();
$("#noUnder3b").hide();
$("#noUnder4b").hide();
} else {
$("#noUnder0b").hide();
$("#noUnder1b").show();
$("#noUnder2b").show();
$("#noUnder3b").show();
$("#noUnder4b").show();
}
};
var changeCheck2B = function () {
var cooperateTypeBudget = $("#cooperateTypeBudget").val();
if (cooperateTypeBudget == 1) {
$("#coop0b").hide();
$("#coop1b").show();
$("#coop2b").show();
} else {
$("#coop0b").show();
$("#coop1b").hide();
$("#coop2b").hide();
}
};
function ajaxUploadFile(id, url) {
// if($('#modal')){
// $('#modal').modal('open');
// $('#span-'+id).html("&nbsp;&nbsp;&nbsp;&nbsp;数据正在导入,请等待");