diff --git a/src/views/mechanical_files/inspect_annually/add.vue b/src/views/mechanical_files/inspect_annually/add.vue index 7e665c5..5041331 100644 --- a/src/views/mechanical_files/inspect_annually/add.vue +++ b/src/views/mechanical_files/inspect_annually/add.vue @@ -397,7 +397,11 @@ const getVehicle = async (event) => { data.busInfo.CAR_OWNERS = ""; data.busInfo.CAR_OWNERS_TEL = ""; data.busInfo.INITIAL_REGISTRATION_DATE = ""; + data.busInfo.COMPANY_AREA = ""; data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]); + + form.value.CAR_OWNERS = ""; + form.value.TELEPHONE = ""; }; const fnBusChange = async (event) => { if (!INSPECTANNUALLY_ID) { diff --git a/src/views/mechanical_files/insure/add.vue b/src/views/mechanical_files/insure/add.vue index 399270c..b2e9642 100644 --- a/src/views/mechanical_files/insure/add.vue +++ b/src/views/mechanical_files/insure/add.vue @@ -372,6 +372,7 @@ const rules = { }; const getVehicle = async (event) => { form.value.PLATE_NUMBER = ""; + data.busInfo.COMPANY_AREA = ""; const model = "insure"; const resData = await getTrailerList2({ TRAFFIC_TYPE: event, model }); data.vehicleList = resData.list; @@ -383,7 +384,10 @@ const getVehicle = async (event) => { data.busInfo.CAR_OWNERS = ""; data.busInfo.CAR_OWNERS_TEL = ""; data.busInfo.INITIAL_REGISTRATION_DATE = ""; + data.busInfo.COMPANY_AREA = ""; data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]); + form.value.CAR_OWNERS = ""; + form.value.TELEPHONE = ""; }; const fnBusChange = async (event) => { if (!INSURE_ID) { diff --git a/src/views/mechanical_files/insure/edit.vue b/src/views/mechanical_files/insure/edit.vue index c223b33..3fed25c 100644 --- a/src/views/mechanical_files/insure/edit.vue +++ b/src/views/mechanical_files/insure/edit.vue @@ -359,6 +359,7 @@ const getVehicle = async (event) => { data.busInfo.TRAILER_TYPE = ""; data.busInfo.CAR_OWNERS = ""; data.busInfo.CAR_OWNERS_TEL = ""; + data.busInfo.COMPANY_AREA = ""; data.busInfo.INITIAL_REGISTRATION_DATE = ""; data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]); }; diff --git a/src/views/mechanical_files/operations/add.vue b/src/views/mechanical_files/operations/add.vue index c45f942..056ffab 100644 --- a/src/views/mechanical_files/operations/add.vue +++ b/src/views/mechanical_files/operations/add.vue @@ -361,8 +361,10 @@ const getVehicle = async (event) => { data.busInfo.CAR_OWNERS = ""; data.busInfo.CAR_OWNERS_TEL = ""; data.busInfo.INITIAL_REGISTRATION_DATE = ""; + data.busInfo.COMPANY_AREA = ""; data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]); data.busInfo.OPERATION_CERTIFICATE_IMG = addingPrefixToFile([]); + }; const fnBusChange = async (event) => { if (!OPERATIONS_ID) { diff --git a/src/views/mechanical_files/scrap_manage/add.vue b/src/views/mechanical_files/scrap_manage/add.vue index 328d3b9..08e5e21 100644 --- a/src/views/mechanical_files/scrap_manage/add.vue +++ b/src/views/mechanical_files/scrap_manage/add.vue @@ -36,7 +36,7 @@ v-for="item in form.ALLVEHICLE" :key="item.PLATE_NUMBER" :label="item.PLATE_NUMBER" - :value="item.PLATE_NUMBER" + :value="item.ID" placeholder="请选择移除车辆" /> @@ -293,11 +293,13 @@ const fnEditVehicleModel = async () => { const info = ref({}); const fnGetVehicleInfo = async () => { if (form.value.SCRAP_VEHICLEMODEL === "运输车辆") { + console.log(form.value.OPERATIONVEHICLELIST); for (let i = 0; i < form.value.OPERATIONVEHICLELIST.length; i++) { if ( - form.value.OPERATIONVEHICLELIST[i].PLATE_NUMBER === + form.value.OPERATIONVEHICLELIST[i].OPERATING_ID === form.value.SCRAP_VEHICLE ) { + console.log(form.value.OPERATIONVEHICLELIST[i]); const OPERATING_ID = form.value.OPERATIONVEHICLELIST[i].OPERATING_ID; await setOperationsScrapStatus({ OPERATING_ID }); const resData = await getOperationVehicleInfo({ OPERATING_ID }); @@ -332,7 +334,7 @@ const fnGetVehicleInfo = async () => { } else if (form.value.SCRAP_VEHICLEMODEL === "货运挂车") { for (let i = 0; i < form.value.FREIGHTVEHICLELIST.length; i++) { if ( - form.value.FREIGHTVEHICLELIST[i].PLATE_NUMBER === + form.value.FREIGHTVEHICLELIST[i].FREIGHTTRAILER_ID === form.value.SCRAP_VEHICLE ) { form.value.FREIGHTTRAILER_ID = diff --git a/src/views/security_investment/extraction_and_use/index.vue b/src/views/security_investment/extraction_and_use/index.vue index d14b4c5..25df274 100644 --- a/src/views/security_investment/extraction_and_use/index.vue +++ b/src/views/security_investment/extraction_and_use/index.vue @@ -183,6 +183,10 @@ const fnGetSummaries = ({ columns, data }) => { sums[index] = "合计"; return; } + if(index === columns.length - 1){ + sums[index] = data.at(-1)?.[column.property]; + return; + } if (!data.every((value) => isNaN(value[column.property]))) { sums[index] = sumBy(data, (item) => { @@ -194,7 +198,7 @@ const fnGetSummaries = ({ columns, data }) => { column.label === item.TYPE ) return item[column.property]; - else if (index === columns.length - 1) return item[column.property]; + // else if (index === columns.length - 1) return item[column.property]; }) || "--"; } else sums[index] = "--"; });