diff --git a/src/request/enterprise_safety_production.js b/src/request/enterprise_safety_production.js index 03bd3b8..af79ebd 100644 --- a/src/request/enterprise_safety_production.js +++ b/src/request/enterprise_safety_production.js @@ -3,11 +3,14 @@ import { post, upload } from "@/request/axios.js"; export const getEnterpriseSafetyProductionList = (params) => post("/enterprisesafetyproduction/list", params); // 企业安全生产值班记录列表 -export const setEnterpriseSafetyProductEdit = (params) => +export const getEnterpriseSafetyProductEdit = (params) => upload("/enterprisesafetyproduction/goEdit", params); // 修改企业安全生产值班记录 export const setEnterpriseSafetyProductAdd = (params) => upload("/enterprisesafetyproduction/add", params); // 新增企业安全生产值班记录 +export const setEnterpriseSafetyProductEdit = (params) => + upload("/enterprisesafetyproduction/edit", params); // 新增企业安全生产值班记录 + export const setEnterpriseSafetyProductDelete = (params) => upload("/enterprisesafetyproduction/delete", params); // 新增企业安全生产值班记录 diff --git a/src/request/mechanical_files.js b/src/request/mechanical_files.js index 665b2fd..6852fc0 100644 --- a/src/request/mechanical_files.js +++ b/src/request/mechanical_files.js @@ -20,11 +20,13 @@ export const setInsureAdd = (params) => post("/insure/add", params); // 保险 export const setInsureEdit = (params) => post("/insure/edit", params); // 保险管理修改 export const setInsureDelete = (params) => post("/insure/delete", params); // 保险管理删除 export const setInsureEdit2 = (params) => post("/insure/edit2", params); // 保险管理修改开启关闭 +export const getTrailerList2 = (params) => post("/insure/vehicleList", params); export const getOperationsList = (params) => post("/operations/list", params); // 运营管理列表 export const getOperationsView = (params) => post("/operations/goEdit", params); // 运营管理查看 export const setOperationsAdd = (params) => post("/operations/add", params); // 运营管理新增 export const setOperationsEdit = (params) => post("/operations/edit", params); // 运营管理修改 +export const getOperationTrailerList = (params) => post("/operations/vehicleList", params); export const setOperationsDelete = (params) => post("/operations/delete", params); // 运营管理删除 export const setOperationsEdit2 = (params) => post("/operations/edit2", params); // 运营管理修改开启关闭 @@ -39,9 +41,13 @@ export const setMaintenanceDelete = (params) => export const setMaintenanceEdit2 = (params) => post("/maintenance/edit2", params); // 维保管理修改开启关闭 +export const getTrailerListMaintenance = (params) => post("/maintenance/vehicleList", params); + export const getBeidouList = (params) => post("/beidou/list", params); // 维保管理列表 export const getBeidouView = (params) => post("/beidou/goEdit", params); // 维保管理查看 export const setBeidouAdd = (params) => post("/beidou/add", params); // 维保管理新增 export const setBeidouEdit = (params) => post("/beidou/edit", params); // 维保管理修改 export const setBeidouDelete = (params) => post("/beidou/delete", params); // 维保管理删除 export const setBeidouEdit2 = (params) => post("/beidou/edit2", params); // 维保管理修改开启关闭 + +export const getTrailerListCompass = (params) => post("/beidou/vehicleList", params); diff --git a/src/request/operation_vehicle.js b/src/request/operation_vehicle.js index 0135d46..3a88346 100644 --- a/src/request/operation_vehicle.js +++ b/src/request/operation_vehicle.js @@ -100,6 +100,9 @@ export const editOperatingVehicleInfo = (params) => export const getOperationVehicleInfo = (params) => post("/operatingvehicles/findById", params); // 根据Id获取运营车辆信息 +export const setOperationsScrapStatus = (params) => + post("/operatingvehicles/setOperationsScrapStatus", params); // 根据Id获取运营车辆信息 + export const findByPlateNumber = (params) => post("/operatingvehicles/findByPlateNumber", params); // 根据Id获取运营车辆信息 diff --git a/src/views/mechanical_files/assigned_manage/add.vue b/src/views/mechanical_files/assigned_manage/add.vue index a37ad81..d3233ff 100644 --- a/src/views/mechanical_files/assigned_manage/add.vue +++ b/src/views/mechanical_files/assigned_manage/add.vue @@ -277,7 +277,7 @@ import { getFreightTrailerView, } from "@/request/enterprise_management.js"; import { - findByIdOperatingVehicleInfo, + findByIdOperatingVehicleInfo } from "@/request/operation_vehicle.js"; import LayoutUpload from "@/components/upload/index.vue"; import { debounce } from "throttle-debounce"; @@ -308,7 +308,6 @@ const freightVehicleList = await getAssignedFreightTrailerList(); const assignedWayList = await layoutFnGetAssignedWay(); const operationList = await getAssignedOperationVehicleList(); - const rules = { ASSIGNED_VEHICLE_MODEL: [ { required: true, message: "过户车型不能为空", trigger: "change" }, @@ -344,9 +343,6 @@ const rules = { NOW_OWNERS: [ { required: true, message: "请输入现车主/业主", trigger: "blur" }, ], - NOW_PLATE_NUMBER: [ - { required: true, message: "请输入现车牌号", trigger: "blur" }, - ] }; const formRef = ref(null); const form = ref({ diff --git a/src/views/mechanical_files/beidou/add.vue b/src/views/mechanical_files/beidou/add.vue index f9079ef..ceed5e0 100644 --- a/src/views/mechanical_files/beidou/add.vue +++ b/src/views/mechanical_files/beidou/add.vue @@ -134,7 +134,7 @@ - + - + { if (form.value.DUE_DATE) { // 计算提醒日期 const reminderDateStr = subtractDaysFromDate(form.value.DUE_DATE, val); + console.log(reminderDateStr); const reminderDate = new Date(reminderDateStr); const today = new Date(); @@ -325,7 +326,7 @@ const getRemiderDate = (val) => { } }; const getVehicle = async (event) => { - const resData = await getTrailerList({ TRAFFIC_TYPE: event }); + const resData = await getTrailerListCompass({ TRAFFIC_TYPE: event }); data.vehicleList = resData.list; form.value.VEHICLE = ""; data.busInfo.DRIVING_LICENSE_IMG = []; @@ -339,7 +340,7 @@ const getVehicle = async (event) => { }; getVehicle("1"); const fnBusChange = async (event) => { - const resData = await getTrailerList({ ID: event }); + const resData = await getTrailerListCompass({ ID: event }); data.busInfo = resData.list[0]; data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( resData.drivingLicenseImgs diff --git a/src/views/mechanical_files/beidou/edit.vue b/src/views/mechanical_files/beidou/edit.vue index f6cb323..864a3a6 100644 --- a/src/views/mechanical_files/beidou/edit.vue +++ b/src/views/mechanical_files/beidou/edit.vue @@ -134,7 +134,7 @@ - + - + {{ info.DUE_DATE }} - + {{ info.ACTUAL_COLLECTION }} - + {{ info.ALL_FEES }} diff --git a/src/views/mechanical_files/inspect_annually/add.vue b/src/views/mechanical_files/inspect_annually/add.vue index cee55ba..2ac001c 100644 --- a/src/views/mechanical_files/inspect_annually/add.vue +++ b/src/views/mechanical_files/inspect_annually/add.vue @@ -155,7 +155,7 @@ - + - + { }; const getRemiderDate = (val) => { if (val) { - console.log("REMINDER_DAYS",form.value.REMINDER_DAYS); if (form.value.DUE_DATE) { // 计算提醒日期 const reminderDateStr = subtractDaysFromDate(form.value.DUE_DATE, val); diff --git a/src/views/mechanical_files/inspect_annually/edit.vue b/src/views/mechanical_files/inspect_annually/edit.vue index 1f65567..328d554 100644 --- a/src/views/mechanical_files/inspect_annually/edit.vue +++ b/src/views/mechanical_files/inspect_annually/edit.vue @@ -22,7 +22,7 @@ @@ -153,7 +153,7 @@ - + - + - {{ data.busInfo.VEHICLE_MODEL }} + {{ info.VEHICLE_TYPE }} - {{ data.busInfo.VEHICLE_BRAND }} + {{ info.VEHICLE_BRAND }} {{ data.busInfo.CAR_OWNERS }} @@ -36,24 +36,43 @@ 年检信息 + + {{ info.CAR_OWNERS }} + + + {{ info.TELEPHONE }} + {{ info.PROCESSING_DATE }} {{ info.ANNUAL_INSPECTION_CYCLE_NAME }} - + {{ info.INSPECTFEES }} + + {{ info.ACTUAL_COLLECTION }} + {{ info.DUE_DATE }} + + {{ info.REMINDER_DAYS }} + + + {{ info.REMINDER_DATE }} + {{ info.ADDRESS }} {{ info.REGISTRANT }} + + 开启 + 关闭 + - + - + { - const resData = await getTrailerList({ TRAFFIC_TYPE: event }); + const model = "insure" + const resData = await getTrailerList2({ TRAFFIC_TYPE: event, model }); data.vehicleList = resData.list; form.value.VEHICLE = ""; data.busInfo.DRIVING_LICENSE_IMG = []; @@ -371,7 +373,7 @@ const getVehicle = async (event) => { data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]); }; const fnBusChange = async (event) => { - const resData = await getTrailerList({ ID: event }); + const resData = await getTrailerList2({ ID: event }); data.busInfo = resData.list[0]; data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( resData.drivingLicenseImgs diff --git a/src/views/mechanical_files/insure/edit.vue b/src/views/mechanical_files/insure/edit.vue index e58012c..d79add6 100644 --- a/src/views/mechanical_files/insure/edit.vue +++ b/src/views/mechanical_files/insure/edit.vue @@ -169,12 +169,12 @@ - + - + 即将到期 - diff --git a/src/views/mechanical_files/insure/view.vue b/src/views/mechanical_files/insure/view.vue index 04abd28..926cf52 100644 --- a/src/views/mechanical_files/insure/view.vue +++ b/src/views/mechanical_files/insure/view.vue @@ -17,21 +17,27 @@ {{ data.busInfo.TRAILER_TYPE }} - + {{ data.busInfo.CAR_OWNERS }} + + {{ data.busInfo.CAR_OWNERS_TEL }} + {{ data.busInfo.CAR_OWNERS_TEL }} {{ data.busInfo.INITIAL_REGISTRATION_DATE }} + + {{ data.busInfo.COMPANY_AREA}} + 年检信息 @@ -39,7 +45,8 @@ {{ info.REGISTRANT }} - {{ info.INSURANCE_COMPANY_NAME }} + 太平洋保险 + 中国人寿 {{ info.INSURANCE_COVERAGE }} @@ -56,13 +63,13 @@ {{ info.EFFECTIVE_DATE }} - + {{ info.DUE_DATE }} - + {{ info.ALL_FEES }} - + {{ info.ACTUAL_COLLECTION }} { const resData = await getTrailerList({ ID: event }); data.busInfo = resData.list[0]; diff --git a/src/views/mechanical_files/maintenance/add.vue b/src/views/mechanical_files/maintenance/add.vue index e7804f2..e33b22d 100644 --- a/src/views/mechanical_files/maintenance/add.vue +++ b/src/views/mechanical_files/maintenance/add.vue @@ -254,7 +254,7 @@ import { getMaintenanceView, setMaintenanceAdd, setMaintenanceEdit, - getTrailerList, + getTrailerListMaintenance, } from "@/request/mechanical_files.js"; import { MAINTENANCE_LEVEL_LIST, REMIND_DAYS } from "@/assets/js/constant.js"; import { setUploadImg } from "@/request/api.js"; @@ -359,7 +359,7 @@ const getRemiderDate = (val) => { }; const getVehicle = async (event) => { - const resData = await getTrailerList({ TRAFFIC_TYPE: event }); + const resData = await getTrailerListMaintenance({ TRAFFIC_TYPE: event }); data.vehicleList = resData.list; form.value.VEHICLE = ""; data.busInfo.DRIVING_LICENSE_IMG = []; @@ -373,7 +373,7 @@ const getVehicle = async (event) => { }; getVehicle("1"); const fnBusChange = async (event) => { - const resData = await getTrailerList({ ID: event }); + const resData = await getTrailerListMaintenance({ ID: event }); data.busInfo = resData.list[0]; 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 9eaf8e9..79db9aa 100644 --- a/src/views/mechanical_files/operations/add.vue +++ b/src/views/mechanical_files/operations/add.vue @@ -229,6 +229,7 @@ import { setOperationsAdd, setOperationsEdit, getTrailerList, + getOperationTrailerList, } from "@/request/mechanical_files.js"; import { OPERATING_VEHICLE_TYPE_LIST, REMIND_DAYS } from "@/assets/js/constant.js"; import { layoutFnGetAnnualInspectionCycle } from "@/assets/js/data_dictionary.js"; @@ -334,7 +335,7 @@ const getRemiderDate = (val) => { } }; const getVehicle = async (event) => { - const resData = await getTrailerList({ TRAFFIC_TYPE: event }); + const resData = await getOperationTrailerList({ TRAFFIC_TYPE: event }); data.vehicleList = resData.list; form.value.VEHICLE = ""; data.busInfo.DRIVING_LICENSE_IMG = []; @@ -347,7 +348,7 @@ const getVehicle = async (event) => { data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]); }; const fnBusChange = async (event) => { - const resData = await getTrailerList({ ID: event }); + const resData = await getOperationTrailerList({ ID: event }); data.busInfo = resData.list[0]; data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( resData.drivingLicenseImgs diff --git a/src/views/mechanical_files/operations/index.vue b/src/views/mechanical_files/operations/index.vue index b473dcc..c94283f 100644 --- a/src/views/mechanical_files/operations/index.vue +++ b/src/views/mechanical_files/operations/index.vue @@ -141,7 +141,6 @@ -