From 7bffecb1899134dbd0dbb64bbfed1f1cea65c0f1 Mon Sep 17 00:00:00 2001 From: hayu <1604366271@qq.com> Date: Wed, 7 May 2025 19:05:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8A=E8=BD=A6=E5=AF=BC=E8=88=AA=E6=88=AA?= =?UTF-8?q?=E5=9B=BE=E6=94=B9=E4=B8=BA=E4=B8=8D=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/car_demand_plan/child/dispatch_input_form.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/car_demand_plan/child/dispatch_input_form.js b/js/car_demand_plan/child/dispatch_input_form.js index 32d9543..bac9b9e 100644 --- a/js/car_demand_plan/child/dispatch_input_form.js +++ b/js/car_demand_plan/child/dispatch_input_form.js @@ -225,10 +225,12 @@ function sel(selectStatus, that, id) { if (selectStatus) { $(that).prop('checked', true); if (item.type === '车辆') { + carType=1; for (let i = 1; i <= item.needNum; i++) { addCarFormData(item.modelId, i, item); } } else if (item.type === '吊车') { + carType=2; for (let i = 1; i <= item.needNum; i++) { addCraneFormData(item.modelId, i, item.isDriverSet, item); } @@ -236,11 +238,13 @@ function sel(selectStatus, that, id) { } else { $(that).prop('checked', false); if (item.type === '车辆') { + carType=1; removeCarFormData(item.modelId); fileList = fileList.filter(l => { return l.class !== item.modelId; }) } else if (item.type === '吊车') { + carType=2; removeCraneFormData(item.modelId); fileList = fileList.filter(l => { return l.class !== item.modelId;