From 4273ae4d2d5974e34728af0a52f901af90fd7c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98wangjiuyun?= <‘1595161655@qq.com> Date: Fri, 20 Dec 2024 11:51:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static/assets/js/project_budget.js | 13 ++++-- .../static/assets/js/project_budget_cost.js | 2 +- .../templates/admin/project_approve.ftl | 45 ++++++++++++++----- .../templates/admin/project_budget_edit.ftl | 26 ++++++----- 4 files changed, 59 insertions(+), 27 deletions(-) diff --git a/src/main/resources/static/assets/js/project_budget.js b/src/main/resources/static/assets/js/project_budget.js index a9cc31d..6bb83a9 100644 --- a/src/main/resources/static/assets/js/project_budget.js +++ b/src/main/resources/static/assets/js/project_budget.js @@ -393,6 +393,7 @@ function checkIfFillIn() { var signTypeBudget = $("#signTypeBudget").val(); var calculationCollectionBudget = $("#calculationCollectionBudget").val(); + var resolvePlanSynergy = $("#resolvePlanSynergy").val(); if (name.length <= 0) { window.confirm('项目名称不能为空'); @@ -421,7 +422,11 @@ function checkIfFillIn() { // return; // } - + if (!resolvePlanSynergy) { + window.confirm('解决方案协同不能为空'); + check = 1; + return; + } if (underwrittenMode > 2 && (advanceInterestAmount == undefined || advanceInterestAmount.length <= 0)) { window.confirm('垫资利息不能为空'); check = 1; @@ -1055,7 +1060,7 @@ function checkprojectPlan() { //根据收款计划表和付款计划表更新资金计划表日期范围 function updataCostPlanMonth(data, key) { - if(!data.details.length) return + if (!data.details.length) return let nowMaxMonth = new Date($('#planEndStr').val()).getTime() let nowMinMonth = new Date($('#planStartStr').val()).getTime() let dataMonth = data.details @@ -1066,7 +1071,7 @@ function updataCostPlanMonth(data, key) { let dataMin = new Date(dataMonth[dataMonth.length - 1][key]).getTime() if (!nowMaxMonth || !nowMinMonth) { - if(!nowMinMonth){ + if (!nowMinMonth) { layui.use('laydate', function () { var laydate = layui.laydate; laydate.render({ @@ -1088,7 +1093,7 @@ function updataCostPlanMonth(data, key) { }); }) } - if(!nowMaxMonth){ + if (!nowMaxMonth) { $('#planEndStr').val(dataMonth[0][key].slice(0, 7)) layui.use('laydate', function () { var laydate = layui.laydate; diff --git a/src/main/resources/static/assets/js/project_budget_cost.js b/src/main/resources/static/assets/js/project_budget_cost.js index d3b838f..984dd9f 100644 --- a/src/main/resources/static/assets/js/project_budget_cost.js +++ b/src/main/resources/static/assets/js/project_budget_cost.js @@ -487,7 +487,7 @@ function initRowDataCost(data){ $('#costTable tbody .costaddtr:last').find('.input-changeable-tax-rate-cost-select').val('自定义') $('#costTable tbody .costaddtr:last').find('.input-changeable-tax-rate-cost-select') $('#costTable tbody .costaddtr:last').find('.input-changeable-tax-rate-cost-name').val(data.category) - $('#costTable tbody .costaddtr:last').find('.input-changeable-tax-rate-cost-name').trigger('change') + $('#costTable tbody .costaddtr:last').find('.input-changeable-tax-rate-cost-select').trigger('change') }else{ $('#costTable tbody .costaddtr:last').find('.input-changeable-tax-rate-cost-select').val(data.category) } diff --git a/src/main/resources/templates/admin/project_approve.ftl b/src/main/resources/templates/admin/project_approve.ftl index 3343f48..7860935 100644 --- a/src/main/resources/templates/admin/project_approve.ftl +++ b/src/main/resources/templates/admin/project_approve.ftl @@ -165,11 +165,12 @@ #tab3 { overflow-x: hidden; } - #tab34 table#budgetPlanDetailTable tbody{ + + #tab34 table#budgetPlanDetailTable tbody { /*padding-top: 15px;*/ } - #tab34 table#budgetPlanDetailTable tr{ + #tab34 table#budgetPlanDetailTable tr { position: relative; padding-top: 55px; } @@ -263,7 +264,21 @@ - + 解决方案协同: + + + <#if project.resolvePlanSynergy??> + <#if (project.resolvePlanSynergy)==true> + + <#elseif (project.resolvePlanSynergy)==false> + + <#else> + + + + + + 垫资模式: @@ -1407,16 +1422,20 @@ onclick="location.href='${base}/project/budgetPlanExport?id=${project.id!}'"> 导出 - - - - <#--