垫资模式联动

master
OathK1per 2022-11-01 14:30:44 +08:00
parent eb4f950ff9
commit 1ed252dbe2
3 changed files with 68 additions and 41 deletions

View File

@ -265,8 +265,8 @@
</select>
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span>合作对象:</th>
<td class="table-title" colspan="3" >
<th class="table-title" colspan="1" id="coop1" <#if project.underwrittenMode! != 1>hidden</#if> ><span style="color: red;">*</span>合作对象:</th>
<td class="table-title" colspan="3" id="coop2" <#if project.underwrittenMode! != 1>hidden</#if> >
<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"
@ -291,14 +291,14 @@
</td>
<th class="table-title" colspan="1" hidden><span style="color: red;">*</span>垫资利息:</th>
<td class="table-title" colspan="1" hidden>
<th class="table-title" colspan="1" id="noUnder1" <#if project.underwrittenMode! <= 2>hidden</#if>><span style="color: red;">*</span>垫资利息:</th>
<td class="table-title" colspan="1" id="noUnder2" <#if project.underwrittenMode! <= 2>hidden</#if>>
<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>
<th class="table-title" colspan="1" hidden><span style="color: red;">*</span>垫资峰值:</th>
<td class="table-title" colspan="1" hidden>
<th class="table-title" colspan="1" id="noUnder3" <#if project.underwrittenMode! <= 2>hidden</#if>><span style="color: red;">*</span>垫资峰值:</th>
<td class="table-title" colspan="1" id="noUnder4" <#if project.underwrittenMode! <= 2>hidden</#if>>
<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)}" />
@ -1288,22 +1288,31 @@
<script src="${base}/common/jQuery-File-Upload/js/jquery.fileupload-process.js"></script>
<script src="${base}/common/jQuery-File-Upload/js/jquery.fileupload-validate.js"></script>
<script>
var changeCheck = function () {
var underwrittenMode = $("#underwrittenMode").val();
if (underwrittenMode == 1) {
$("#coop").show();
$("#noUnder1").hide();
$("#noUnder2").hide();
} else if (underwrittenMode == 2) {
$("#coop").hide();
$("#noUnder1").hide();
$("#noUnder2").hide();
} else {
$("#coop").hide();
$("#noUnder1").show();
$("#noUnder2").show();
}
};
var changeCheck = function () {
var underwrittenMode = $("#underwrittenMode").val();
if (underwrittenMode == 1) {
$("#coop1").show();
$("#coop2").show();
$("#noUnder1").hide();
$("#noUnder2").hide();
$("#noUnder3").hide();
$("#noUnder4").hide();
} else if (underwrittenMode == 2) {
$("#coop1").hide();
$("#coop2").hide();
$("#noUnder1").hide();
$("#noUnder2").hide();
$("#noUnder3").hide();
$("#noUnder4").hide();
} else {
$("#coop1").hide();
$("#coop2").hide();
$("#noUnder1").show();
$("#noUnder2").show();
$("#noUnder3").show();
$("#noUnder4").show();
}
};
function ajaxUploadFile(id, url) {
// if($('#modal')){

View File

@ -92,7 +92,7 @@
</tr>
<tr class="am-text-nowrap">
<th class="table-title" colspan="1" ><span style="color: red;">*</span>垫资模式:</th>
<td class="table-title" colspan="1" >
<td class="table-title" colspan="1" id="spanMode" >
<select data-am-selected="{btnSize: 'sm',btnWidth: '80%',searchBox: 1}" id="underwrittenMode" name="underwrittenMode" onchange="changeCheck()">
<option value="1" >A类-不垫资(战略合作)</option>
<option value="2" >B类-不垫资(背靠背)</option>
@ -101,8 +101,8 @@
</select>
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span>合作对象:</th>
<td class="table-title" colspan="3" >
<th class="table-title" colspan="1" id="coop1" ><span style="color: red;">*</span>合作对象:</th>
<td class="table-title" colspan="3" id="coop2" >
<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"
@ -127,14 +127,14 @@
</td>
<th class="table-title" colspan="1" hidden><span style="color: red;">*</span>垫资利息:</th>
<td class="table-title" colspan="1" hidden>
<th class="table-title" colspan="1" id="noUnder1" hidden><span style="color: red;">*</span>垫资利息:</th>
<td class="table-title" colspan="1" id="noUnder2" hidden>
<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="" />
</td>
<th class="table-title" colspan="1" hidden><span style="color: red;">*</span>垫资峰值:</th>
<td class="table-title" colspan="1" hidden>
<th class="table-title" colspan="1" id="noUnder3" hidden><span style="color: red;">*</span>垫资峰值:</th>
<td class="table-title" colspan="1" id="noUnder4" hidden>
<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="" />
@ -592,17 +592,26 @@
var changeCheck = function () {
var underwrittenMode = $("#underwrittenMode").val();
if (underwrittenMode == 1) {
$("#coop").show();
$("#coop1").show();
$("#coop2").show();
$("#noUnder1").hide();
$("#noUnder2").hide();
$("#noUnder3").hide();
$("#noUnder4").hide();
} else if (underwrittenMode == 2) {
$("#coop").hide();
$("#coop1").hide();
$("#coop2").hide();
$("#noUnder1").hide();
$("#noUnder2").hide();
$("#noUnder3").hide();
$("#noUnder4").hide();
} else {
$("#coop").hide();
$("#coop1").hide();
$("#coop2").hide();
$("#noUnder1").show();
$("#noUnder2").show();
$("#noUnder3").show();
$("#noUnder4").show();
}
};

View File

@ -105,8 +105,8 @@
</select>
</td>
<th class="table-title" colspan="1" ><span style="color: red;">*</span>合作对象:</th>
<td class="table-title" colspan="3" >
<th class="table-title" colspan="1" id="coop1" <#if project.underwrittenMode! != 1>hidden</#if> ><span style="color: red;">*</span>合作对象:</th>
<td class="table-title" colspan="3" id="coop2" <#if project.underwrittenMode! != 1>hidden</#if> >
<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"
@ -131,14 +131,14 @@
</td>
<th class="table-title" colspan="1" hidden><span style="color: red;">*</span>垫资利息:</th>
<td class="table-title" colspan="1" hidden>
<th class="table-title" colspan="1" id="noUnder1" <#if project.underwrittenMode! <= 2>hidden</#if>><span style="color: red;">*</span>垫资利息:</th>
<td class="table-title" colspan="1" id="noUnder2" <#if project.underwrittenMode! <= 2>hidden</#if>>
<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>
<th class="table-title" colspan="1" hidden><span style="color: red;">*</span>垫资峰值:</th>
<td class="table-title" colspan="1" hidden>
<th class="table-title" colspan="1" id="noUnder3" <#if project.underwrittenMode! <= 2>hidden</#if>><span style="color: red;">*</span>垫资峰值:</th>
<td class="table-title" colspan="1" id="noUnder4" <#if project.underwrittenMode! <= 2>hidden</#if>>
<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)}" />
@ -636,17 +636,26 @@
var changeCheck = function () {
var underwrittenMode = $("#underwrittenMode").val();
if (underwrittenMode == 1) {
$("#coop").show();
$("#coop1").show();
$("#coop2").show();
$("#noUnder1").hide();
$("#noUnder2").hide();
$("#noUnder3").hide();
$("#noUnder4").hide();
} else if (underwrittenMode == 2) {
$("#coop").hide();
$("#coop1").hide();
$("#coop2").hide();
$("#noUnder1").hide();
$("#noUnder2").hide();
$("#noUnder3").hide();
$("#noUnder4").hide();
} else {
$("#coop").hide();
$("#coop1").hide();
$("#coop2").hide();
$("#noUnder1").show();
$("#noUnder2").show();
$("#noUnder3").show();
$("#noUnder4").show();
}
};