From 3b29fb05fc7a6cb9785a47b87bfb6ca4bea50b13 Mon Sep 17 00:00:00 2001 From: xiepeng Date: Wed, 27 Mar 2024 18:09:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?BUG=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/operation_vehicle.js | 3 +++ .../mechanical_files/assigned_manage/add.vue | 6 +---- .../mechanical_files/inspect_annually/add.vue | 1 - .../inspect_annually/edit.vue | 2 +- .../inspect_annually/view.vue | 23 +++++++++++++++++-- src/views/mechanical_files/insure/add.vue | 3 ++- .../production_accident/add.vue | 11 ++++++++- .../mechanical_files/scrap_manage/add.vue | 1 + .../mechanical_files/taxation_manage/add.vue | 6 +++++ 9 files changed, 45 insertions(+), 11 deletions(-) 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/inspect_annually/add.vue b/src/views/mechanical_files/inspect_annually/add.vue index 7392b05..72d207e 100644 --- a/src/views/mechanical_files/inspect_annually/add.vue +++ b/src/views/mechanical_files/inspect_annually/add.vue @@ -351,7 +351,6 @@ const getDueDate = () => { }; const getRemiderDate = (val) => { if (val) { - console.log("REMINDER_DAYS",form.value.REMINDER_DAYS); if (form.value.DUE_DATE) { form.value.REMINDER_DATE = 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..5c8b421 100644 --- a/src/views/mechanical_files/inspect_annually/edit.vue +++ b/src/views/mechanical_files/inspect_annually/edit.vue @@ -22,7 +22,7 @@ diff --git a/src/views/mechanical_files/inspect_annually/view.vue b/src/views/mechanical_files/inspect_annually/view.vue index 8767e4d..0a7eb0e 100644 --- a/src/views/mechanical_files/inspect_annually/view.vue +++ b/src/views/mechanical_files/inspect_annually/view.vue @@ -16,10 +16,10 @@ {{ data.busInfo.TRAILER_TYPE }} - {{ data.busInfo.VEHICLE_MODEL }} + {{ info.VEHICLE_TYPE }} - {{ data.busInfo.VEHICLE_BRAND }} + {{ info.VEHICLE_BRAND }} {{ data.busInfo.CAR_OWNERS }} @@ -36,6 +36,12 @@ 年检信息 + + {{ info.CAR_OWNERS }} + + + {{ info.TELEPHONE }} + {{ info.PROCESSING_DATE }} @@ -45,15 +51,28 @@ {{ 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 getTrailerList({ TRAFFIC_TYPE: event, model }); data.vehicleList = resData.list; form.value.VEHICLE = ""; data.busInfo.DRIVING_LICENSE_IMG = []; diff --git a/src/views/mechanical_files/production_accident/add.vue b/src/views/mechanical_files/production_accident/add.vue index 34e0557..1c0e544 100644 --- a/src/views/mechanical_files/production_accident/add.vue +++ b/src/views/mechanical_files/production_accident/add.vue @@ -411,6 +411,7 @@ import { useRouter, useRoute } from "vue-router"; import { addAccidentInvestigationView, editAccidentInvestigation, + infoAccidentInvestigation } from "@/request/production_accident.js"; // 获取路由实例 @@ -513,7 +514,6 @@ const rules = reactive({ onMounted(() => { isEditMode.value = route.query.mode === "edit"; ACCIDENTINVESTIGATION_ID.value = route.query.ACCIDENTINVESTIGATION_ID || ""; - if (isEditMode.value) { Object.keys(rules).forEach((key) => { rules[key] = []; // 清空每项校验规则 @@ -521,6 +521,15 @@ onMounted(() => { } }); +const fnGetData = async () => { + const ACCIDENTINVESTIGATION_ID = route.query.ACCIDENTINVESTIGATION_ID + if (!ACCIDENTINVESTIGATION_ID) return; + const resData = await infoAccidentInvestigation({ ACCIDENTINVESTIGATION_ID }); + data.form = resData.pd; + +}; +fnGetData(); + const router = useRouter(); const fnGetUnitsList = async () => { const resData = await getUserListAll({}); diff --git a/src/views/mechanical_files/scrap_manage/add.vue b/src/views/mechanical_files/scrap_manage/add.vue index 409ea3f..e6aa78f 100644 --- a/src/views/mechanical_files/scrap_manage/add.vue +++ b/src/views/mechanical_files/scrap_manage/add.vue @@ -297,6 +297,7 @@ const fnGetVehicleInfo = async () => { form.value.SCRAP_VEHICLE ) { const OPERATING_ID = form.value.OPERATIONVEHICLELIST[i].OPERATING_ID; + await setOperationsScrapStatus({OPERATING_ID}) const resData = await getOperationVehicleInfo({ OPERATING_ID }); info.value = resData.pd; form.value.VEHICLE.VEHICLEOWNER = info.value.VEHICLEOWNER; diff --git a/src/views/mechanical_files/taxation_manage/add.vue b/src/views/mechanical_files/taxation_manage/add.vue index e2e3850..0663734 100644 --- a/src/views/mechanical_files/taxation_manage/add.vue +++ b/src/views/mechanical_files/taxation_manage/add.vue @@ -335,6 +335,9 @@ const fnGetExpireDate = async () => { let day = date.getDate(); day = day < 10 ? "0" + day : day; form.value.EXPIRE_DATE = year + "-" + month + "-" + day; + if(form.value.TRANSACTION_DATA === null) { + form.value.EXPIRE_DATE = null + } } fnGetReminderData() }; @@ -349,6 +352,9 @@ const fnGetReminderData = async () => { let day = date.getDate(); day = day < 10 ? "0" + day : day; form.value.REMINDER_DATA = year + "-" + month + "-" + day; + if(form.value.TRANSACTION_DATA === null) { + form.value.REMINDER_DATA = null + } } }; const fnGetTrailerInfo = async () => { From 0fc9cd9a76328aba9de1a8024810585df6b54da9 Mon Sep 17 00:00:00 2001 From: xiepeng Date: Thu, 28 Mar 2024 18:31:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?BUG=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/enterprise_safety_production.js | 5 +- src/request/mechanical_files.js | 6 + .../operation_vehicle/view.vue | 1 - src/views/mechanical_files/beidou/add.vue | 11 +- src/views/mechanical_files/beidou/edit.vue | 4 +- src/views/mechanical_files/beidou/view.vue | 4 +- .../mechanical_files/inspect_annually/add.vue | 4 +- .../inspect_annually/edit.vue | 4 +- .../inspect_annually/view.vue | 4 +- src/views/mechanical_files/insure/add.vue | 9 +- src/views/mechanical_files/insure/edit.vue | 4 +- src/views/mechanical_files/insure/index.vue | 1 - src/views/mechanical_files/insure/view.vue | 20 +- .../mechanical_files/maintenance/add.vue | 6 +- src/views/mechanical_files/operations/add.vue | 5 +- .../mechanical_files/operations/index.vue | 4 +- .../mechanical_files/scrap_manage/add.vue | 3 +- .../taxation_manage/index.vue | 4 +- .../add.vue | 6 +- .../edit.vue | 12 +- .../maintain.vue | 47 ++-- .../maintainedit.vue | 25 +-- .../production_equipment_facility/view.vue | 39 +++- .../reported_incident_dispose/index.vue | 4 +- .../violation_registration/add.vue | 1 + .../violation_registration/edit.vue | 201 ++++++++++++++++++ .../violation_registration/index.vue | 19 +- .../security_notice/add.vue | 4 +- .../components/select_person.vue | 3 + 29 files changed, 355 insertions(+), 105 deletions(-) create mode 100644 src/views/production_course_regulate/violation_registration/edit.vue 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/views/enterprise_management/basics_info_management/operation_vehicle/view.vue b/src/views/enterprise_management/basics_info_management/operation_vehicle/view.vue index 07f87a3..c715c95 100644 --- a/src/views/enterprise_management/basics_info_management/operation_vehicle/view.vue +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/view.vue @@ -158,7 +158,6 @@ const info = ref({}); const fnGetData = async () => { if (!OPERATING_ID) return; const resData = await findByIdOperatingVehicleInfo({ OPERATING_ID }); - console.log("-=-=-=-",resData); info.value = resData.pd; info.value.HEADSTOCK_PHOTO = addingPrefixToFile(resData.headstockphoto); info.value.DRIVINGLICENSE_PHOTO = addingPrefixToFile( 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 710d498..2ac001c 100644 --- a/src/views/mechanical_files/inspect_annually/add.vue +++ b/src/views/mechanical_files/inspect_annually/add.vue @@ -155,7 +155,7 @@ - + - + - + - + {{ info.ANNUAL_INSPECTION_CYCLE_NAME }} - + {{ info.INSPECTFEES }} - + {{ info.ACTUAL_COLLECTION }} diff --git a/src/views/mechanical_files/insure/add.vue b/src/views/mechanical_files/insure/add.vue index b219b2f..ddabc93 100644 --- a/src/views/mechanical_files/insure/add.vue +++ b/src/views/mechanical_files/insure/add.vue @@ -175,7 +175,7 @@ - + - + { const model = "insure" - const resData = await getTrailerList({ TRAFFIC_TYPE: event, model }); + const resData = await getTrailerList2({ TRAFFIC_TYPE: event, model }); data.vehicleList = resData.list; form.value.VEHICLE = ""; data.busInfo.DRIVING_LICENSE_IMG = []; @@ -372,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 @@ -