forked from integrated_whb/integrated_whb_vue
BUG 优化
parent
8b8eab7b72
commit
16ae293b11
|
@ -345,7 +345,12 @@ getVehicle("1");
|
|||
const fnBusChange = async (event) => {
|
||||
const resData = await getTrailerListCompass({ ID: event });
|
||||
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(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
|
|
@ -395,7 +395,12 @@ const getVehicle = async (event) => {
|
|||
const fnBusChange = async (event) => {
|
||||
const resData = await getTrailerList({ ID: event });
|
||||
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(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
|
|
@ -383,7 +383,12 @@ const getVehicle = async (event) => {
|
|||
const fnBusChange = async (event) => {
|
||||
const resData = await getTrailerList2({ ID: event });
|
||||
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(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
@ -443,8 +448,6 @@ 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,
|
||||
});
|
||||
|
|
|
@ -392,7 +392,12 @@ 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
|
||||
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(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
|
|
@ -357,7 +357,12 @@ const getVehicle = async (event) => {
|
|||
const fnBusChange = async (event) => {
|
||||
const resData = await getOperationTrailerList({ ID: event });
|
||||
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(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
|
|
@ -385,6 +385,7 @@ const fnGetTrailerInfo = async () => {
|
|||
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.CONTACT_NUMBER = resData.pd.CAR_OWNERS_TEL
|
||||
form.value.DRIVINGLICENSE_PHOTO = addingPrefixToFile(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue