BUG 优化

dev
xiepeng 2024-03-29 18:07:08 +08:00
parent 3e709eb383
commit 328b76dcde
1 changed files with 5 additions and 0 deletions

View File

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