From 4fd3727c49de433cd02800798bdd7c03a7321534 Mon Sep 17 00:00:00 2001 From: xiepeng Date: Fri, 19 Apr 2024 12:07:50 +0800 Subject: [PATCH] =?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 --- .../waybill_registration/add.vue | 2 ++ .../freight_trailer/add.vue | 10 ---------- .../freight_trailer/edit.vue | 10 ---------- .../operation_vehicle/add.vue | 20 ------------------- .../operation_vehicle/edit.vue | 12 ----------- src/views/mechanical_files/beidou/add.vue | 4 ++++ .../mechanical_files/inspect_annually/add.vue | 5 +++++ src/views/mechanical_files/insure/add.vue | 5 +++++ .../mechanical_files/maintenance/add.vue | 6 +++++- src/views/mechanical_files/operations/add.vue | 5 +++++ 10 files changed, 26 insertions(+), 53 deletions(-) diff --git a/src/views/electronic_waybill_management/waybill_registration/add.vue b/src/views/electronic_waybill_management/waybill_registration/add.vue index c69d5f8..45d12a5 100644 --- a/src/views/electronic_waybill_management/waybill_registration/add.vue +++ b/src/views/electronic_waybill_management/waybill_registration/add.vue @@ -233,6 +233,7 @@ @@ -276,6 +277,7 @@ diff --git a/src/views/enterprise_management/basics_info_management/freight_trailer/add.vue b/src/views/enterprise_management/basics_info_management/freight_trailer/add.vue index 5fcee77..f544b05 100644 --- a/src/views/enterprise_management/basics_info_management/freight_trailer/add.vue +++ b/src/views/enterprise_management/basics_info_management/freight_trailer/add.vue @@ -330,16 +330,6 @@ const rules = { ], VIN: [{ required: true, message: "请输入", trigger: "blur" }], TRAILER_TYPE: [{ required: true, message: "请输入", trigger: "blur" }], - CAR_OWNERS: [{ required: true, message: "请输入", trigger: "blur" }], - CAR_OWNERS_TEL: [ - { required: true, message: "请输入", trigger: "blur" }, - { min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" }, - { - pattern: - /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/, - message: "请输入正确的手机号码", - }, - ], CONTACTS: [{ required: true, message: "请输入", trigger: "blur" }], CONTACT_PHONE: [ { required: true, message: "请输入", trigger: "blur" }, diff --git a/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue b/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue index 380dedb..ad2add2 100644 --- a/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue +++ b/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue @@ -295,16 +295,6 @@ const rules = { ], VIN: [{ required: true, message: "请输入", trigger: "blur" }], TRAILER_TYPE: [{ required: true, message: "请输入", trigger: "blur" }], - CAR_OWNERS: [{ required: true, message: "请输入", trigger: "blur" }], - CAR_OWNERS_TEL: [ - { required: true, message: "请输入", trigger: "blur" }, - { min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" }, - { - pattern: - /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/, - message: "请输入正确的手机号码", - }, - ], CONTACTS: [{ required: true, message: "请输入", trigger: "blur" }], CONTACT_PHONE: [ { required: true, message: "请输入", trigger: "blur" }, diff --git a/src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue b/src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue index 72003fa..42b7895 100644 --- a/src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/add.vue @@ -408,18 +408,6 @@ const rules = { VEHICLE_TYPE: [ { required: true, message: "车辆类型不能为空", trigger: "blur" }, ], - VEHICLEOWNER: [ - { required: true, message: "车主/业户不能为空", trigger: "blur" }, - ], - VEHICLEOWNER_NUMBER: [ - { required: true, message: "请输入", trigger: "blur" }, - { min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" }, - { - pattern: - /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/, - message: "请输入正确的手机号码", - }, - ], CONTACT: [{ required: true, message: "联系人不能为空", trigger: "blur" }], CONTACT_NUMBER: [ { required: true, message: "请输入", trigger: "blur" }, @@ -445,14 +433,6 @@ const rules = { OPERATING_CERTIFICATE_PHOTO: [ { required: true, message: "营运证照片不能为空", trigger: "blur" }, ], - ENGINE_NUMBER: [ - { required: true, message: "请输入发动机号", trigger: "blur" }, - { min: 7, max: 8, message: "请输入7-8位发动机号", trigger: "blur" }, - { - pattern: /^[A-Z0-9a-z\d]{7,8}$/, - message: "请输入正确的发动机号", - }, - ], VOUCH_NUMBERLOAD: [ { required: true, message: "请输入核定载人数", trigger: "blur" }, { pattern: /^([1-9][0-9]*)$/, message: "请输入整数", trigger: "blur" }, diff --git a/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue b/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue index f449e84..950364f 100644 --- a/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue @@ -394,18 +394,6 @@ const rules = { VEHICLE_TYPE: [ { required: true, message: "车辆类型不能为空", trigger: "blur" }, ], - VEHICLEOWNER: [ - { required: true, message: "车主/业户不能为空", trigger: "blur" }, - ], - VEHICLEOWNER_NUMBER: [ - { required: true, message: "请输入", trigger: "blur" }, - { min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" }, - { - pattern: - /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/, - message: "请输入正确的手机号码", - }, - ], CONTACT: [{ required: true, message: "联系人不能为空", trigger: "blur" }], CONTACT_NUMBER: [ { required: true, message: "请输入", trigger: "blur" }, diff --git a/src/views/mechanical_files/beidou/add.vue b/src/views/mechanical_files/beidou/add.vue index dffb11b..a214af6 100644 --- a/src/views/mechanical_files/beidou/add.vue +++ b/src/views/mechanical_files/beidou/add.vue @@ -343,6 +343,10 @@ const getVehicle = async (event) => { }; getVehicle("1"); const fnBusChange = async (event) => { + if (!BEIDOU_ID) { + form.value.CAR_OWNERS = ""; + form.value.TELEPHONE = ""; + } const resData = await getTrailerListCompass({ ID: event }); data.busInfo = resData.list[0]; if (form.value.TELEPHONE === "") { diff --git a/src/views/mechanical_files/inspect_annually/add.vue b/src/views/mechanical_files/inspect_annually/add.vue index 2278667..4b0d422 100644 --- a/src/views/mechanical_files/inspect_annually/add.vue +++ b/src/views/mechanical_files/inspect_annually/add.vue @@ -383,6 +383,7 @@ const getRemiderDate = (val) => { }; const getVehicle = async (event) => { + form.value.PLATE_NUMBER = '' const resData = await getTrailerList({ TRAFFIC_TYPE: event }); data.vehicleList = resData.list; form.value.VEHICLE = ""; @@ -396,6 +397,10 @@ const getVehicle = async (event) => { data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]); }; const fnBusChange = async (event) => { + if(!INSPECTANNUALLY_ID) { + form.value.CAR_OWNERS = '' + form.value.TELEPHONE = '' + } const resData = await getTrailerList({ ID: event }); data.busInfo = resData.list[0]; if (form.value.CAR_OWNERS === "") { diff --git a/src/views/mechanical_files/insure/add.vue b/src/views/mechanical_files/insure/add.vue index 11186ab..03be8e7 100644 --- a/src/views/mechanical_files/insure/add.vue +++ b/src/views/mechanical_files/insure/add.vue @@ -371,6 +371,7 @@ const rules = { REMINDER_DATE: [{ required: true, message: "请输入", trigger: "blur" }], }; const getVehicle = async (event) => { + form.value.PLATE_NUMBER = '' const model = "insure"; const resData = await getTrailerList2({ TRAFFIC_TYPE: event, model }); data.vehicleList = resData.list; @@ -385,6 +386,10 @@ const getVehicle = async (event) => { data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]); }; const fnBusChange = async (event) => { + if(!INSURE_ID) { + form.value.CAR_OWNERS = '' + form.value.TELEPHONE = '' + } const resData = await getTrailerList2({ ID: event }); data.busInfo = resData.list[0]; if (form.value.CAR_OWNERS === "") { diff --git a/src/views/mechanical_files/maintenance/add.vue b/src/views/mechanical_files/maintenance/add.vue index 6fecc72..e7d91a0 100644 --- a/src/views/mechanical_files/maintenance/add.vue +++ b/src/views/mechanical_files/maintenance/add.vue @@ -24,7 +24,7 @@ 基本信息 - + { }; getVehicle("1"); const fnBusChange = async (event) => { + if (!MAINTENANCE_ID) { + form.value.CAR_OWNERS = ""; + form.value.TELEPHONE = ""; + } const resData = await getTrailerListMaintenance({ ID: event }); data.busInfo = resData.list[0]; if (form.value.CAR_OWNERS === "") { diff --git a/src/views/mechanical_files/operations/add.vue b/src/views/mechanical_files/operations/add.vue index 216a684..8d5e25e 100644 --- a/src/views/mechanical_files/operations/add.vue +++ b/src/views/mechanical_files/operations/add.vue @@ -346,6 +346,7 @@ const getRemiderDate = (val) => { } }; const getVehicle = async (event) => { + form.value.PLATE_NUMBER = ""; const resData = await getOperationTrailerList({ TRAFFIC_TYPE: event }); data.vehicleList = resData.list; form.value.VEHICLE = ""; @@ -359,6 +360,10 @@ const getVehicle = async (event) => { data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]); }; const fnBusChange = async (event) => { + if (!OPERATIONS_ID) { + form.value.TELEPHONE = ""; + form.value.CAR_OWNERS = ""; + } const resData = await getOperationTrailerList({ ID: event }); data.busInfo = resData.list[0]; if (form.value.TELEPHONE === "") {