附件保存完成

dev_1.0.0
‘wangjiuyun 2024-10-30 19:53:14 +08:00
parent d0daa67ddf
commit 14de7c568d
2 changed files with 286 additions and 223 deletions

View File

@ -402,7 +402,8 @@
<input readonly value=""/>
</#if>
</td>
<th class="table-title" colspan="1"><span style="font-size: 15px">是否汇智中标:</span></th>
<th class="table-title" colspan="1"><span style="font-size: 15px">是否汇智中标:</span>
</th>
<td class="table-title" colspan="3">
<#if project.signType??>
<#if (project.signType!) =1>
@ -635,7 +636,8 @@
value="${Utils.format(projectBudget.advancePeakAmountBudget)}"/>
</td>
</tr><tr class="am-text-nowrap">
</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">
@ -792,7 +794,8 @@
<input readonly value=""/>
</#if>
</td>
<th class="table-title" colspan="1"><span style="font-size: 15px">是否汇智中标:</span>
<th class="table-title" colspan="1"><span
style="font-size: 15px">是否汇智中标:</span>
</th>
<td class="table-title" colspan="3">
<#if projectBudget.signTypeBudget??>
@ -849,6 +852,17 @@
</div>
</div>
</div>
<div>
<button type="button" class="am-btn am-btn-default">
<label class="file-label" for="file_upload_icon"
style="margin: 0;cursor: pointer"><span
class="am-icon-download"></span>销售合同配置清单</label>
</button>
<span id="collaboratorUrl_check" style="margin-left: 5px;cursor: pointer"
onclick="downFile()" fileUrl="${projectBudget.incomeDetailAttr}">
${projectBudget.incomeDetailAttr}
</span>
</div>
<div class="fixed-table has-actions">
<table class="am-table am-table-bordered am-table-radius table-main"
style="padding:0;"
@ -1100,6 +1114,17 @@
</div>
</div>
</div>
<div>
<button type="button" class="am-btn am-btn-default">
<label class="file-label" for="file_upload_icon"
style="margin: 0;cursor: pointer"><span
class="am-icon-download"></span>销售合同配置清单</label>
</button>
<span id="collaboratorUrl_check" style="margin-left: 5px;cursor: pointer"
onclick="downFile2()" fileUrl="${projectBudget.costDetailAttr}">
${projectBudget.costDetailAttr}
</span>
</div>
<div class="fixed-table has-actions">
<table class="am-table am-table-bordered am-table-radius table-main"
style="padding:0;"
@ -1289,13 +1314,21 @@
</#list>
</#if>
<tr class="total-new" id="manageTotal">
<td width="60px"><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage" value="总计" readonly></td>
<td width="60px"><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage"
value="总计" readonly></td>
<td></td>
<td></td>
<td></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-total-project-manage" value="${Utils.format(budgetBean.costProjectManageTaxInclude,'0')}" readonly></td>
<td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-total-project-manage"
value="${Utils.format(budgetBean.costProjectManageTaxInclude,'0')}"
readonly></td>
<td></td>
<td><input type="text" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-pay-amount-project-manage" value="${Utils.format(managePayAmountTotal,'0.00')}" readonly></td>
<td><input type="text"
class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage input-changeable-total-pay-amount-project-manage"
value="${Utils.format(managePayAmountTotal,'0.00')}"
readonly></td>
<td></td>
<td></td>
<td></td>
@ -1344,27 +1377,33 @@
class="am-modal-prompt-input"
value="月份"
readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text"
<td style="display: block;border-top: 1px solid #ddd;"
class="am-modal-prompt-input-budget-plan-cost"><input type="text"
class="am-modal-prompt-input "
value="设备付款"
readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text"
<td style="display: block;border-top: 1px solid #ddd;"
class="am-modal-prompt-input-budget-plan-cost"><input type="text"
class="am-modal-prompt-input"
value="工程付款"
readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text"
<td style="display: block;border-top: 1px solid #ddd;"
class="am-modal-prompt-input-budget-plan-cost"><input type="text"
class="am-modal-prompt-input"
value="服务付款"
readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text"
<td style="display: block;border-top: 1px solid #ddd;"
class="am-modal-prompt-input-budget-plan-cost"><input type="text"
class="am-modal-prompt-input"
value="其他付款"
readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text"
<td style="display: block;border-top: 1px solid #ddd;"
class="am-modal-prompt-input-budget-plan-cost"><input type="text"
class="am-modal-prompt-input"
value="项目管理费用付款"
readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text"
<td style="display: block;border-top: 1px solid #ddd;"
class="am-modal-prompt-input-budget-plan-cost"><input type="text"
class="am-modal-prompt-input"
value="保证金付款"
readonly></td>
@ -1372,11 +1411,13 @@
class="am-modal-prompt-input"
value="付款合计"
readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text"
<td style="display: block;border-top: 1px solid #ddd;"
class="am-modal-prompt-input-budget-plan-cost"><input type="text"
class="am-modal-prompt-input"
value="销售收款"
readonly></td>
<td style="display: block;border-top: 1px solid #ddd;" class="am-modal-prompt-input-budget-plan-cost"><input type="text"
<td style="display: block;border-top: 1px solid #ddd;"
class="am-modal-prompt-input-budget-plan-cost"><input type="text"
class="am-modal-prompt-input"
value="保证金收款"
readonly></td>
@ -1808,7 +1849,9 @@
<tr>
<td>合计</td>
<td></td>
<td><input type="text" class="number" name="incomeTotalTax" value="${(Utils.format(budgetBean.costExpropriationTaxExclude+budgetBean.costProjectManageTaxExclude,'0'))}" readonly title="此列累计"></td>
<td><input type="text" class="number" name="incomeTotalTax"
value="${(Utils.format(budgetBean.costExpropriationTaxExclude+budgetBean.costProjectManageTaxExclude,'0'))}"
readonly title="此列累计"></td>
</tr>
<#-- <tr>-->
<#-- <td>公司管理费用</td>-->
@ -4000,4 +4043,14 @@
$('.am-modal-prompt-input-budget-plan-income').css('display', 'block');
$('.am-modal-prompt-input-budget-plan-cost').css('display', 'block');
};
function downFile() {
var url = $('#collaboratorUrl_check').attr('fileUrl')
if (url)
location.href = url
}
function downFile2() {
var url = $('#collaboratorUrl_check2').attr('fileUrl')
if (url)
location.href = url
}
</script>

View File

@ -427,7 +427,7 @@
<div class="am-tab-panel am-fade am-in am-active" id="tab2">
<input name="projectId" id="projectId" type="hidden" value="${projectBudget.projectId}"/>
<input name="incomeDetailAttr" id="incomeDetailAttr" type="hidden"
value="${projectBudget.costDetailAttr}"/>
value="${projectBudget.incomeDetailAttr}"/>
<input name="costDetailAttr" id="costDetailAttr" type="hidden"
value="${projectBudget.costDetailAttr}"/>
@ -892,7 +892,9 @@
</button>
<input id="file_upload_icon" type="file" accept=".xls,.xlsx" style="display:none;">
<span id="collaboratorUrl_check" style="margin-left: 5px;cursor: pointer"
onclick="downFile()" fileUrl="${projectBudget.incomeDetailAttr}">${projectBudget.incomeDetailAttr?projectBudget.incomeDetailAttr.split('/')[projectBudget.incomeDetailAttr.split('/').length-1]:''}</span>
onclick="downFile()" fileUrl="${projectBudget.incomeDetailAttr}">
${projectBudget.incomeDetailAttr}
</span>
</div>
<div class="fixed-table has-actions" style="max-height: calc(100% - 110px)">
<table class="am-table am-table-bordered am-table-radius table-main"
@ -1107,12 +1109,14 @@
</div>
<div>
<button type="button" class="am-btn am-btn-default">
<label class="file-label" for="file_upload_icon"
<label class="file-label" for="file_upload_icon2"
style="margin: 0;cursor: pointer"><span class="am-icon-upload"></span>销售合同配置清单</label>
</button>
<input id="file_upload_icon2" type="file" accept=".xls,.xlsx" style="display:none;">
<span id="collaboratorUrl_check" style="margin-left: 5px;cursor: pointer"
onclick="downFile()" fileUrl="${projectBudget.costDetailAttr}">${projectBudget.costDetailAttr?projectBudget.costDetailAttr.split('/')[projectBudget.costDetailAttr.split('/').length-1]:''}</span>
<span id="collaboratorUrl_check2" style="margin-left: 5px;cursor: pointer"
onclick="downFile2()" fileUrl="${projectBudget.costDetailAttr}">
${projectBudget.costDetailAttr}
</span>
</div>
<div class="fixed-table has-actions is-vertical-scroll" style="max-height: calc(100% - 110px)">
<table class="am-table am-table-bordered am-table-radius table-main"
@ -2462,7 +2466,7 @@
done: function (e, data) {
console.log(data);
//设置服务器返回的url
$("#collaboratorUrl_check").text(data.result.data.newName).attr('fileUrl', data.result.data.url);
$("#collaboratorUrl_check2").text(data.result.data.newName).attr('fileUrl', data.result.data.url);
$("#costDetailAttr").val(data.result.data.url)
// console.log("collboratorUrl: " + $("#collaboratorUrl").val());
@ -2568,6 +2572,12 @@
if (url)
location.href = url
}
function downFile2() {
var url = $('#collaboratorUrl_check2').attr('fileUrl')
if (url)
location.href = url
}
</script>
</@defaultLayout.layout>