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 @@ - - - - - - + + + + + +