From 66e1be96f15a1e0c32a62eb96039dea6b466f550 Mon Sep 17 00:00:00 2001 From: OathK1per Date: Fri, 9 Sep 2022 12:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E8=A1=A8=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E9=80=BB=E8=BE=91=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/assets/js/project_budget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/assets/js/project_budget.js b/src/main/resources/static/assets/js/project_budget.js index 0ce1e30..0a5acaa 100644 --- a/src/main/resources/static/assets/js/project_budget.js +++ b/src/main/resources/static/assets/js/project_budget.js @@ -264,6 +264,7 @@ $(function () { updateCostProjectManageDataUnsubmit(dataManageCheck); var dataPlan = collectData("am-modal-prompt-input-budget-plan-detail"); + console.log("dataPaln: " + dataPlan.length); if (dataPlan.length <= 1) { window.confirm('请填写项目资金计划表'); $("#saveApprove").attr('disabled', false); @@ -652,7 +653,7 @@ function convertDetailVerify(data, detailProperty) { var arr = arrayToMatrix(data, detailPropertyArr.length); var details = []; for (var i = 0; i < arr.length; i++) { - if (i === arr.length - 1 && detailProperty !== BUDGET_PLAN_DETAIL2) { + if (i === arr.length - 1 && detailProperty !== BUDGET_PLAN_DETAIL2 && detailProperty !== BUDGET_PLAN_DETAIL) { continue; } var obj = arr2ObjectVerify(i, arr[i], detailPropertyArr, detailProperty);