From 6d44cc52a1ed94571749ea2ecaa16b89a753583a Mon Sep 17 00:00:00 2001 From: hanbo <2608504783@qq.com> Date: Tue, 12 Apr 2022 18:22:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=93=E7=94=A8=E6=80=A7=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/backend/ProjectController.java | 4 +- .../static/assets/js/project_budget_cost.js | 4 +- .../js/project_budget_cost_project_manage.js | 8 +- .../static/assets/js/project_budget_income.js | 2 +- .../templates/admin/project_budget_edit.ftl | 14 +- .../templates/admin/project_estimate_add.ftl | 231 ++++++++++++++---- .../templates/admin/project_estimate_edit.ftl | 230 ++++++++++++++--- 7 files changed, 392 insertions(+), 101 deletions(-) diff --git a/src/main/java/cn/palmte/work/controller/backend/ProjectController.java b/src/main/java/cn/palmte/work/controller/backend/ProjectController.java index 956ec71..3c462c6 100644 --- a/src/main/java/cn/palmte/work/controller/backend/ProjectController.java +++ b/src/main/java/cn/palmte/work/controller/backend/ProjectController.java @@ -561,9 +561,9 @@ public class ProjectController extends BaseController { */ @RequestMapping("/checkName") @ResponseBody - public ResponseMsg checkName(@RequestParam String name) { + public ResponseMsg checkName(@RequestParam String name,@RequestParam int id) { Project project = projectRepository.findByProjectName(name); - if (project != null) { + if (project != null && id != project.getId()) { return ResponseMsg.buildFailedMsg("失败"); } return ResponseMsg.buildSuccessMsg("成功"); 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 57a3a1d..8558d71 100644 --- a/src/main/resources/static/assets/js/project_budget_cost.js +++ b/src/main/resources/static/assets/js/project_budget_cost.js @@ -164,7 +164,7 @@ function appendTrCost() { var template = '' + '' + - ''+ ''+ ''+ ''+ @@ -173,7 +173,7 @@ function appendTrCost() { ''+ ''+ ''+ - ''+ /*''+ ''+ diff --git a/src/main/resources/static/assets/js/project_budget_cost_project_manage.js b/src/main/resources/static/assets/js/project_budget_cost_project_manage.js index 99ca14f..ec31229 100644 --- a/src/main/resources/static/assets/js/project_budget_cost_project_manage.js +++ b/src/main/resources/static/assets/js/project_budget_cost_project_manage.js @@ -99,7 +99,7 @@ function appendTrCostProjectManage() { var template = '\n' + ' \n' + ' \n' + - ' \n' + ' \n' + ' \n' + ' \n' + @@ -107,7 +107,7 @@ function appendTrCostProjectManage() { ' \n' + ' \n' + ' \n' + - ' \n' + ' \n' + ' \n' + ' \n' + @@ -126,7 +126,7 @@ function appendTrCostProjectManage() { ' \n' + ' \n' + ' \n' + - ' ' + + ' ' + ' \n' + ' '; $("#costProjectManageTable").append(template); @@ -155,7 +155,7 @@ function bindTypeSelectChangeManager() { categorySelect.attr("style", "display:none"); categoryInput.attr("type", "text"); } else if(SELECT_TYPE_CATEGORY_MAP_DATA_MANAGER[type]){ - categorySelect.attr("style", "width: 80px;float: left;"); + categorySelect.attr("style", "width: 180px;float: left;"); categoryInput.val(""); categoryInput.attr("type", "hidden"); categorySelect.append(""); diff --git a/src/main/resources/static/assets/js/project_budget_income.js b/src/main/resources/static/assets/js/project_budget_income.js index a433273..081fa5a 100644 --- a/src/main/resources/static/assets/js/project_budget_income.js +++ b/src/main/resources/static/assets/js/project_budget_income.js @@ -143,7 +143,7 @@ function appendTrIncome() { ' \n' + ' \n' + ' \n' + - ' \n' + + ' \n' + ' '; $("#incomeTable").append(template); //重新绑定删除事件和input修改事件 diff --git a/src/main/resources/templates/admin/project_budget_edit.ftl b/src/main/resources/templates/admin/project_budget_edit.ftl index db0d773..8fa9b75 100644 --- a/src/main/resources/templates/admin/project_budget_edit.ftl +++ b/src/main/resources/templates/admin/project_budget_edit.ftl @@ -402,7 +402,7 @@ - + @@ -442,7 +442,7 @@ - @@ -450,7 +450,7 @@ - <#-- @@ -471,7 +471,7 @@ - + @@ -511,14 +511,14 @@ - - style="display:none"<#else>style="width: 180px;float: left;" class="am-modal-prompt-input am-modal-prompt-input-cost-project-manage am-modal-prompt-input-cost-project-manage-category"> <#if costProjectManageDetail.type == 1> @@ -542,7 +542,7 @@ - + diff --git a/src/main/resources/templates/admin/project_estimate_add.ftl b/src/main/resources/templates/admin/project_estimate_add.ftl index b6ee6e4..ca0b4de 100644 --- a/src/main/resources/templates/admin/project_estimate_add.ftl +++ b/src/main/resources/templates/admin/project_estimate_add.ftl @@ -1,7 +1,6 @@ <#assign base=request.contextPath /> <#import "../common/defaultLayout.ftl" as defaultLayout> <@defaultLayout.layout> -
@@ -95,7 +94,7 @@
*客户名称
@@ -104,7 +103,7 @@
*终端客户名称
@@ -131,7 +130,7 @@
*合同金额
@@ -140,7 +139,7 @@
*行业场景应用
@@ -149,7 +148,7 @@
华智产品金额
+ name="huazhiProductAmount" id="huazhiProductAmount" placeholder="单位(元)" maxlength="16" value="" />
@@ -157,7 +156,7 @@
其他产品金额
+ name="ziguangOtherAmount" id="ziguangOtherAmount" placeholder="单位(元)" maxlength="16" value="" />
@@ -199,8 +198,8 @@ 收入 设备类 - - + + - + + - + + - + + - + + - + + - + + - + + / @@ -387,12 +386,12 @@ 财务费用 资金占用成本 - + 公司管理费用 - + @@ -441,24 +440,16 @@