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: "",
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();