diff --git a/src/views/mechanical_files/scrap_manage/add.vue b/src/views/mechanical_files/scrap_manage/add.vue index d01c72d..01317cf 100644 --- a/src/views/mechanical_files/scrap_manage/add.vue +++ b/src/views/mechanical_files/scrap_manage/add.vue @@ -260,6 +260,7 @@ const form = ref({ ENGINE_NUMBER: "", VEHICLE_MODEL: "", TRANSACTION_DATE: "", + FREIGHTTRAILER_ID: "", VEHICLE: { VEHICLEOWNER: "", VEHICLEOWNER_NUMBER: "", @@ -287,6 +288,7 @@ const fnEditVehicleModel = async () => { } else if (form.value.SCRAP_VEHICLEMODEL === "货运挂车") { form.value.ALLVEHICLE = getAllFrailerList.varList; form.value.FREIGHTVEHICLELIST = form.value.ALLVEHICLE; + console.log(); } }; const info = ref({}); @@ -334,6 +336,8 @@ const fnGetVehicleInfo = async () => { form.value.FREIGHTVEHICLELIST[i].PLATE_NUMBER === form.value.SCRAP_VEHICLE ) { + form.value.FREIGHTTRAILER_ID = + form.value.FREIGHTVEHICLELIST[i].FREIGHTTRAILER_ID form.value.VEHICLE.VEHICLEOWNER = form.value.FREIGHTVEHICLELIST[i].CAR_OWNERS; form.value.VEHICLE.VEHICLEOWNER_NUMBER = @@ -389,6 +393,7 @@ const fnSubmit = debounce( 1000, async () => { await useFormValidate(formRef); + console.log("form.value",form.value); await setScrapManageAdd({ ...form.value }); ElMessage.success("提交成功"); router.back();