From 274b58f12f02af19a3593ec8e5760d5645231697 Mon Sep 17 00:00:00 2001 From: wangpeng Date: Wed, 15 May 2024 09:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/mechanical_files.js | 33 +- .../driving_type/index.vue | 4 +- .../waybill_registration/view.vue | 2 +- src/views/mechanical_files/insure/add.vue | 24 +- src/views/mechanical_files/insure/index.vue | 8 +- .../tank_truck_inspection/components/add.vue | 20 +- .../tank_truck_inspection/components/view.vue | 1 - .../tank_truck_inspection/index.vue | 306 +++--- .../tank_truck_inspection_record/add.vue | 893 +++++++++--------- .../tank_truck_inspection_record/edit.vue | 613 ++++++------ .../tank_truck_inspection_record/index.vue | 62 +- .../tank_truck_inspection_record/view.vue | 69 +- 12 files changed, 1049 insertions(+), 986 deletions(-) diff --git a/src/request/mechanical_files.js b/src/request/mechanical_files.js index ddfcb89..80acaf5 100644 --- a/src/request/mechanical_files.js +++ b/src/request/mechanical_files.js @@ -55,15 +55,26 @@ export const setBeidouEdit2 = (params) => post("/beidou/edit2", params); // 维 export const getTrailerListCompass = (params) => post("/beidou/vehicleList", params); -export const getTankTruckInspectionList = (params) => post("/tankTruckInspection/list", params); // 罐检项配置列表 -export const getTankTruckInspectionListAll = (params) => post("/tankTruckInspection/tankTruckInspectionListAll", params); // 罐检项配置不分页列表 -export const getTankTruckInspectionView = (params) => post("/tankTruckInspection/goEdit", params); // 罐检项配置查看 -export const setTankTruckInspectionAdd = (params) => post("/tankTruckInspection/add", params); // 罐检项配置新增 -export const setTankTruckInspectionEdit = (params) => post("/tankTruckInspection/edit", params); // 罐检项配置修改 -export const setTankTruckInspectionDelete = (params) => post("/tankTruckInspection/delete", params); // 罐检项配置删除 +export const getTankTruckInspectionList = (params) => + post("/tankTruckInspection/list", params); // 罐检项配置列表 +export const getTankTruckInspectionListAll = (params) => + post("/tankTruckInspection/tankTruckInspectionListAll", params); // 罐检项配置不分页列表 +export const getTankTruckInspectionView = (params) => + post("/tankTruckInspection/goEdit", params); // 罐检项配置查看 +export const setTankTruckInspectionAdd = (params) => + post("/tankTruckInspection/add", params); // 罐检项配置新增 +export const setTankTruckInspectionEdit = (params) => + post("/tankTruckInspection/edit", params); // 罐检项配置修改 +export const setTankTruckInspectionDelete = (params) => + post("/tankTruckInspection/delete", params); // 罐检项配置删除 -export const getTankTruckInspectionRecordList = (params) => post("/tankTruckInspectionRecord/list", params); // 罐检项检查列表 -export const getTankTruckInspectionRecordView = (params) => post("/tankTruckInspectionRecord/goEdit", params); // 罐检项检查查看 -export const setTankTruckInspectionRecordAdd = (params) => post("/tankTruckInspectionRecord/add", params); // 罐检项检查新增 -export const setTankTruckInspectionRecordEdit = (params) => post("/tankTruckInspectionRecord/edit", params); // 罐检项检查修改 -export const setTankTruckInspectionRecordDelete = (params) => post("/tankTruckInspectionRecord/delete", params); // 罐检项检查删除 \ No newline at end of file +export const getTankTruckInspectionRecordList = (params) => + post("/tankTruckInspectionRecord/list", params); // 罐检项检查列表 +export const getTankTruckInspectionRecordView = (params) => + post("/tankTruckInspectionRecord/goEdit", params); // 罐检项检查查看 +export const setTankTruckInspectionRecordAdd = (params) => + post("/tankTruckInspectionRecord/add", params); // 罐检项检查新增 +export const setTankTruckInspectionRecordEdit = (params) => + post("/tankTruckInspectionRecord/edit", params); // 罐检项检查修改 +export const setTankTruckInspectionRecordDelete = (params) => + post("/tankTruckInspectionRecord/delete", params); // 罐检项检查删除 diff --git a/src/views/driving_inspections/driving_type/index.vue b/src/views/driving_inspections/driving_type/index.vue index 46ef296..71aefe9 100644 --- a/src/views/driving_inspections/driving_type/index.vue +++ b/src/views/driving_inspections/driving_type/index.vue @@ -55,8 +55,8 @@ row.CHECKTYPE_NAME }} {{ - row.CHECKTYPE_NAME - }} + row.CHECKTYPE_NAME + }} diff --git a/src/views/electronic_waybill_management/waybill_registration/view.vue b/src/views/electronic_waybill_management/waybill_registration/view.vue index eae60dd..7fc5939 100644 --- a/src/views/electronic_waybill_management/waybill_registration/view.vue +++ b/src/views/electronic_waybill_management/waybill_registration/view.vue @@ -53,7 +53,7 @@ {{ data.info.ORIGIN_NAME }} - {{ data.info.SHIPPING_ADDR}} + {{ data.info.SHIPPING_ADDR }} {{ data.info.DEPARTURE_ADDR }} diff --git a/src/views/mechanical_files/insure/add.vue b/src/views/mechanical_files/insure/add.vue index 3d69d60..0bd4a45 100644 --- a/src/views/mechanical_files/insure/add.vue +++ b/src/views/mechanical_files/insure/add.vue @@ -298,13 +298,13 @@ import { setInsureEdit, getTrailerList, getTrailerList2, - getInsureList + getInsureList, } from "@/request/mechanical_files.js"; import { INSURANCE_TYPE, INSURANCEMENU, OPERATING_VEHICLE_TYPE_LIST, - REMIND_DAYS + REMIND_DAYS, } from "@/assets/js/constant.js"; import { setUploadImg } from "@/request/api.js"; import { ElMessage } from "element-plus"; @@ -352,16 +352,16 @@ const data = reactive({ INITIAL_REGISTRATION_DATE: "", COMPANY_AREA: "", }, - info: {} + info: {}, }); const insureType = async (rule, insureType, callback) => { - if(!INSURE_ID) { + if (!INSURE_ID) { if (insureType) { data.info = await getInsureList(); data.info.varList.forEach((item) => { - if(item.VEHICLE === data.busInfo.ID) { - if(insureType === item.INSURANCE_COVERAGE) { + if (item.VEHICLE === data.busInfo.ID) { + if (insureType === item.INSURANCE_COVERAGE) { callback(new Error("该保险已被此车辆重复选择")); } } @@ -369,16 +369,16 @@ const insureType = async (rule, insureType, callback) => { } else { callback(); } - }else{ + } else { if (insureType) { - const resData = await getInsureView({ INSURE_ID }) - if(insureType === resData.pd.INSURANCE_COVERAGE) { + const resData = await getInsureView({ INSURE_ID }); + if (insureType === resData.pd.INSURANCE_COVERAGE) { callback(); - }else{ + } else { data.info = await getInsureList(); data.info.varList.forEach((item) => { - if(item.VEHICLE === data.busInfo.ID) { - if(insureType === item.INSURANCE_COVERAGE) { + if (item.VEHICLE === data.busInfo.ID) { + if (insureType === item.INSURANCE_COVERAGE) { callback(new Error("该保险已被此车辆重复选择")); } } diff --git a/src/views/mechanical_files/insure/index.vue b/src/views/mechanical_files/insure/index.vue index 054c13d..0cd9233 100644 --- a/src/views/mechanical_files/insure/index.vue +++ b/src/views/mechanical_files/insure/index.vue @@ -139,8 +139,12 @@ - - + +