From 02aad9bd31f571d572010efc670de14612750b01 Mon Sep 17 00:00:00 2001 From: huangyuxuan Date: Mon, 20 Jan 2025 08:39:19 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E=E5=8A=9F=E8=83=BD](hyx=5F?= =?UTF-8?q?=E9=97=A8=E5=8F=A3=E9=97=A8=E7=A6=81):=20=20=20-=20bug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../auditChronicallyCar/components/list.vue | 16 ++- .../vehiclemessage/components/list.vue | 47 +++----- .../components/list.vue | 7 -- .../dangertruckcheck/components/list.vue | 109 ++++++++++++++++- .../normaltruckcheck/components/list.vue | 113 +++++++++++++++++- 5 files changed, 244 insertions(+), 48 deletions(-) diff --git a/src/views/longtermvehicleinputportmessage/auditChronicallyCar/components/list.vue b/src/views/longtermvehicleinputportmessage/auditChronicallyCar/components/list.vue index 5b51e17..f20bf16 100644 --- a/src/views/longtermvehicleinputportmessage/auditChronicallyCar/components/list.vue +++ b/src/views/longtermvehicleinputportmessage/auditChronicallyCar/components/list.vue @@ -79,9 +79,11 @@ - + + + @@ -105,10 +107,10 @@ - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 关闭 + + @@ -71,6 +115,36 @@ export default{ page: 1, limit: 10 }, + config: config, + dialogVisible: false, + detailTitle: '详情', + detailForm: { + EMISSION_STANDARDS: '', + DRIVING_LICENSE: '', + GREEN_BOOK: '', + ECO_FRIENDLY_CHECKLIST: '', + CERTIFICATE_IMAGE: '', + FACTORY_CERTIFICATE: '', + ENVIRONMENTAL_SCREENSHOTS: '', + VISIT_START_TIME: '', + VISIT_END_TIME: '', + DOOR_NAME: '' + }, + licenceTypeList: [ + // { ID: '', NAME: '请选择' }, + { ID: '0', NAME: '白牌' }, + { ID: '1', NAME: '蓝牌' }, + { ID: '2', NAME: '黄牌' }, + { ID: '3', NAME: '绿牌' }, + { ID: '4', NAME: '黑牌' } + ], + // 车辆类型列表 + vehicleTypeList: [ + // { ID: '', NAME: '请选择' }, + { ID: '0', NAME: '货车' }, + { ID: '1', NAME: '轿车' }, + { ID: '2', NAME: '大巴客车' } + ], areaList: [], // 省市县列表 placeList: [], listLoading: true, @@ -110,6 +184,16 @@ export default{ return '审核驳回' } }, + translateLicenceType(id) { + for (var i = 0; i < this.licenceTypeList.length; i++) { + if (this.licenceTypeList[i].ID == id) return this.licenceTypeList[i].NAME + } + }, + translateVehicleType(id) { + for (var i = 0; i < this.vehicleTypeList.length; i++) { + if (this.vehicleTypeList[i].ID == id) return this.vehicleTypeList[i].NAME + } + }, // 搜索 getQuery() { this.$refs.multipleTable.clearSelection() @@ -144,6 +228,27 @@ export default{ }).catch((e) => { this.listLoading = false }) + }, + detail(row) { + this.dialogVisible = true + requestFN( + '/vehiclemessage/getCarInfo', + { + VEHICLE_ID: row.VEHICLE_ID + } + ).then((data) => { + this.detailForm.EMISSION_STANDARDS = data.pageData.EMISSION_STANDARDS + this.detailForm.DRIVING_LICENSE = data.pageData.DRIVING_LICENSE + this.detailForm.GREEN_BOOK = data.pageData.GREEN_BOOK + this.detailForm.ECO_FRIENDLY_CHECKLIST = data.pageData.ECO_FRIENDLY_CHECKLIST + this.detailForm.FACTORY_CERTIFICATE = data.pageData.FACTORY_CERTIFICATE + this.detailForm.ENVIRONMENTAL_SCREENSHOTS = data.pageData.ENVIRONMENTAL_SCREENSHOTS + this.detailForm.VISIT_START_TIME = data.pageData.VISIT_START_TIME + this.detailForm.VISIT_END_TIME = data.pageData.VISIT_END_TIME + this.detailForm.DOOR_NAME = data.pageData.DOOR_NAME + }).catch((e) => { + this.listLoading = false + }) } }