From 48f7381005598a9d6aaa688596abaf4770ea7832 Mon Sep 17 00:00:00 2001 From: OathK1per Date: Wed, 7 Sep 2022 11:26:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=AE=A1=E6=A0=B8=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=A2=84=E7=AE=97=E7=9A=84=E5=87=A0=E5=BC=A0=E8=A1=A8?= =?UTF-8?q?=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/assets/js/project_budget.js | 8 ++++---- .../templates/admin/project_budget_edit.ftl | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/resources/static/assets/js/project_budget.js b/src/main/resources/static/assets/js/project_budget.js index 152b165..fca044b 100644 --- a/src/main/resources/static/assets/js/project_budget.js +++ b/src/main/resources/static/assets/js/project_budget.js @@ -204,7 +204,7 @@ $(function () { checkIfFillIn(); var dataIncome = collectData("am-modal-prompt-input-income"); - if (dataIncome.length <= 0) { + if (dataIncome.length <= 1) { window.confirm('请填写收入明细表'); $("#saveApprove").attr('disabled', false); return; @@ -224,7 +224,7 @@ $(function () { updateIncomeDataUnsubmit(dataIncomeCheck); var dataCost = collectData("am-modal-prompt-input-cost"); - if (dataCost.length <= 0) { + if (dataCost.length <= 1) { window.confirm('请填写采购成本明细表'); $("#saveApprove").attr('disabled', false); return; @@ -244,7 +244,7 @@ $(function () { updateCostDataIfUnsubmit(dataCostCheck); var dataManage = collectData("am-modal-prompt-input-cost-project-manage"); - if (dataManage.length <= 0) { + if (dataManage.length <= 1) { window.confirm('请填写项目管理成本表'); $("#saveApprove").attr('disabled', false); return; @@ -263,7 +263,7 @@ $(function () { updateCostProjectManageDataUnsubmit(dataManageCheck); var dataPlan = collectData("am-modal-prompt-input-budget-plan-detail"); - if (dataPlan.length <= 0) { + if (dataPlan.length <= 1) { window.confirm('请填写项目资金计划表'); $("#saveApprove").attr('disabled', false); return; diff --git a/src/main/resources/templates/admin/project_budget_edit.ftl b/src/main/resources/templates/admin/project_budget_edit.ftl index 4210c16..8937543 100644 --- a/src/main/resources/templates/admin/project_budget_edit.ftl +++ b/src/main/resources/templates/admin/project_budget_edit.ftl @@ -1370,12 +1370,12 @@ - - - - - - + + + + + +