BUG 优化

dev
xiepeng 2024-04-16 17:30:12 +08:00
parent 8b8eab7b72
commit 16ae293b11
6 changed files with 31 additions and 7 deletions

View File

@ -345,7 +345,12 @@ getVehicle("1");
const fnBusChange = async (event) => { const fnBusChange = async (event) => {
const resData = await getTrailerListCompass({ ID: event }); const resData = await getTrailerListCompass({ ID: event });
data.busInfo = resData.list[0]; data.busInfo = resData.list[0];
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS; if(form.value.TELEPHONE === '') {
form.value.TELEPHONE = data.busInfo.CAR_OWNERS_TEL;
}
if(form.value.CAR_OWNERS === '') {
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS;
}
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );

View File

@ -395,7 +395,12 @@ const getVehicle = async (event) => {
const fnBusChange = async (event) => { const fnBusChange = async (event) => {
const resData = await getTrailerList({ ID: event }); const resData = await getTrailerList({ ID: event });
data.busInfo = resData.list[0]; data.busInfo = resData.list[0];
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS if(form.value.CAR_OWNERS === '') {
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
}
if(form.value.TELEPHONE === '') {
form.value.TELEPHONE = data.busInfo.CAR_OWNERS_TEL
}
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );

View File

@ -383,7 +383,12 @@ const getVehicle = async (event) => {
const fnBusChange = async (event) => { const fnBusChange = async (event) => {
const resData = await getTrailerList2({ ID: event }); const resData = await getTrailerList2({ ID: event });
data.busInfo = resData.list[0]; data.busInfo = resData.list[0];
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS if(form.value.CAR_OWNERS === '') {
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
}
if(form.value.TELEPHONE === '') {
form.value.TELEPHONE = data.busInfo.CAR_OWNERS_TEL
}
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );
@ -443,8 +448,6 @@ const fnGetData = async () => {
if (!INSURE_ID) return; if (!INSURE_ID) return;
const resData = await getInsureView({ INSURE_ID }); const resData = await getInsureView({ INSURE_ID });
form.value = resData.pd; form.value = resData.pd;
console.log(form.value);
const listData = await getTrailerList({ const listData = await getTrailerList({
TRAFFIC_TYPE: form.value.VEHICLE_MODEL, TRAFFIC_TYPE: form.value.VEHICLE_MODEL,
}); });

View File

@ -392,7 +392,12 @@ getVehicle("1");
const fnBusChange = async (event) => { const fnBusChange = async (event) => {
const resData = await getTrailerListMaintenance({ ID: event }); const resData = await getTrailerListMaintenance({ ID: event });
data.busInfo = resData.list[0]; data.busInfo = resData.list[0];
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS if(form.value.CAR_OWNERS === '') {
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
}
if(form.value.TELEPHONE === '') {
form.value.TELEPHONE = data.busInfo.CAR_OWNERS_TEL
}
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );

View File

@ -357,7 +357,12 @@ const getVehicle = async (event) => {
const fnBusChange = async (event) => { const fnBusChange = async (event) => {
const resData = await getOperationTrailerList({ ID: event }); const resData = await getOperationTrailerList({ ID: event });
data.busInfo = resData.list[0]; data.busInfo = resData.list[0];
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS if(form.value.TELEPHONE === '') {
form.value.TELEPHONE = data.busInfo.CAR_OWNERS_TEL
}
if(form.value.CAR_OWNERS === '') {
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
}
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );

View File

@ -385,6 +385,7 @@ const fnGetTrailerInfo = async () => {
form.value.VEHICLE_MODEL = resData.pd.TRAILER_MODEL; form.value.VEHICLE_MODEL = resData.pd.TRAILER_MODEL;
form.value.VEHICLE_BRAND = resData.pd.TRAILER_BRAND; form.value.VEHICLE_BRAND = resData.pd.TRAILER_BRAND;
form.value.VEHICLEOWNER = resData.pd.CAR_OWNERS form.value.VEHICLEOWNER = resData.pd.CAR_OWNERS
form.value.CONTACT_NUMBER = resData.pd.CAR_OWNERS_TEL
form.value.DRIVINGLICENSE_PHOTO = addingPrefixToFile( form.value.DRIVINGLICENSE_PHOTO = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );