From 8b8eab7b72c6836cb2ec81cd6d1fb53402b427c2 Mon Sep 17 00:00:00 2001 From: xiepeng Date: Tue, 16 Apr 2024 16:19:55 +0800 Subject: [PATCH] =?UTF-8?q?BUG=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mechanical_files/beidou/add.vue | 9 +++++++-- src/views/mechanical_files/inspect_annually/add.vue | 11 ++++++++--- .../mechanical_files/inspect_annually/edit.vue | 4 +++- src/views/mechanical_files/insure/add.vue | 13 ++++++++++--- src/views/mechanical_files/insure/edit.vue | 1 + src/views/mechanical_files/maintenance/add.vue | 1 + src/views/mechanical_files/operations/add.vue | 11 ++++++++--- src/views/mechanical_files/taxation_manage/add.vue | 1 + 8 files changed, 39 insertions(+), 12 deletions(-) diff --git a/src/views/mechanical_files/beidou/add.vue b/src/views/mechanical_files/beidou/add.vue index ace6673..54adde1 100644 --- a/src/views/mechanical_files/beidou/add.vue +++ b/src/views/mechanical_files/beidou/add.vue @@ -7,7 +7,11 @@ - + 基本信息 - + { const resData = await getTrailerListCompass({ ID: event }); data.busInfo = resData.list[0]; + form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS; data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( resData.drivingLicenseImgs ); diff --git a/src/views/mechanical_files/inspect_annually/add.vue b/src/views/mechanical_files/inspect_annually/add.vue index 95bb69f..8a5b33a 100644 --- a/src/views/mechanical_files/inspect_annually/add.vue +++ b/src/views/mechanical_files/inspect_annually/add.vue @@ -7,7 +7,10 @@ - + - + { const fnBusChange = async (event) => { const resData = await getTrailerList({ ID: event }); data.busInfo = resData.list[0]; + form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( resData.drivingLicenseImgs ); diff --git a/src/views/mechanical_files/inspect_annually/edit.vue b/src/views/mechanical_files/inspect_annually/edit.vue index d8f2f83..3e9be21 100644 --- a/src/views/mechanical_files/inspect_annually/edit.vue +++ b/src/views/mechanical_files/inspect_annually/edit.vue @@ -9,6 +9,7 @@ - + - + - + { const fnBusChange = async (event) => { const resData = await getTrailerList2({ ID: event }); data.busInfo = resData.list[0]; + form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( resData.drivingLicenseImgs ); @@ -438,6 +443,8 @@ const fnGetData = async () => { if (!INSURE_ID) return; const resData = await getInsureView({ INSURE_ID }); form.value = resData.pd; + + console.log(form.value); const listData = await getTrailerList({ TRAFFIC_TYPE: form.value.VEHICLE_MODEL, }); diff --git a/src/views/mechanical_files/insure/edit.vue b/src/views/mechanical_files/insure/edit.vue index c7e4de8..c223b33 100644 --- a/src/views/mechanical_files/insure/edit.vue +++ b/src/views/mechanical_files/insure/edit.vue @@ -410,6 +410,7 @@ const getRemiderDate = (val) => { const fnGetData = async () => { if (!INSURE_ID) return; const resData = await getInsureView({ INSURE_ID }); + form.value = resData.pd; const listData = await getTrailerList({ TRAFFIC_TYPE: form.value.VEHICLE_MODEL, diff --git a/src/views/mechanical_files/maintenance/add.vue b/src/views/mechanical_files/maintenance/add.vue index 5e73ee3..6ac3109 100644 --- a/src/views/mechanical_files/maintenance/add.vue +++ b/src/views/mechanical_files/maintenance/add.vue @@ -392,6 +392,7 @@ getVehicle("1"); const fnBusChange = async (event) => { const resData = await getTrailerListMaintenance({ ID: event }); data.busInfo = resData.list[0]; + form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( resData.drivingLicenseImgs ); diff --git a/src/views/mechanical_files/operations/add.vue b/src/views/mechanical_files/operations/add.vue index ac47ee3..65b1dae 100644 --- a/src/views/mechanical_files/operations/add.vue +++ b/src/views/mechanical_files/operations/add.vue @@ -7,7 +7,9 @@ - + - + 基本信息 - + { const fnBusChange = async (event) => { const resData = await getOperationTrailerList({ ID: event }); data.busInfo = resData.list[0]; + form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( resData.drivingLicenseImgs ); diff --git a/src/views/mechanical_files/taxation_manage/add.vue b/src/views/mechanical_files/taxation_manage/add.vue index 18ad55c..aa7af1a 100644 --- a/src/views/mechanical_files/taxation_manage/add.vue +++ b/src/views/mechanical_files/taxation_manage/add.vue @@ -384,6 +384,7 @@ const fnGetTrailerInfo = async () => { form.value.DRIVINGLICENSE_PHOTO = resData.pd.DRIVING_LICENSE_IMG; form.value.VEHICLE_MODEL = resData.pd.TRAILER_MODEL; form.value.VEHICLE_BRAND = resData.pd.TRAILER_BRAND; + form.value.VEHICLEOWNER = resData.pd.CAR_OWNERS form.value.DRIVINGLICENSE_PHOTO = addingPrefixToFile( resData.drivingLicenseImgs );