diff --git a/src/views/freightVehicles/carInfoManagement/components/carList.vue b/src/views/freightVehicles/carInfoManagement/components/carList.vue index dfedc07..a52b1d1 100644 --- a/src/views/freightVehicles/carInfoManagement/components/carList.vue +++ b/src/views/freightVehicles/carInfoManagement/components/carList.vue @@ -38,8 +38,16 @@ - - + + + + + +
@@ -253,6 +261,9 @@ 确 定
+
+ 返回 +
@@ -346,16 +357,7 @@ export default{ }, // 重置 reset() { - this.form = { - USER_NAME: '', - PHONE: '', - ID_CARD: '', - CORPINFO_NAME: '', - DEPARTMENT_NAME: '', - VISIT_START_TIME: '', - VISIT_END_TIME: '', - DOOR_NAME: '' - } + this.form.LICENCE_NO = '' this.getList() }, // 获取列表 @@ -404,11 +406,15 @@ export default{ } } }, - // 打开新增弹窗的新增按钮 - openAddDialogAddBtn() { - this.addDialogVisible = true - this.reSetAddDialog() - this.ISCHECK = false + 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 + } }, reSetAddDialog() { this.addForm.VEHICLE_ID = '', @@ -501,6 +507,9 @@ export default{ }).catch((e) => { this.editDialogVisible = false }) + }, + returnBtn(){ + this.$parent.activeName = 'List' } } diff --git a/src/views/freightVehicles/carInfoManagement/components/corpList.vue b/src/views/freightVehicles/carInfoManagement/components/corpList.vue index 7ede60e..57a5fa0 100644 --- a/src/views/freightVehicles/carInfoManagement/components/corpList.vue +++ b/src/views/freightVehicles/carInfoManagement/components/corpList.vue @@ -37,7 +37,11 @@ - + + + - + @@ -56,6 +65,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 关闭 + + @@ -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: '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: '大巴客车' } + ], IS_POLICE: '', areaList: [], // 省市县列表 placeList: [], @@ -100,14 +174,24 @@ export default{ methods: { checkButton(row){ console.log('---------------------') - console.log('row.IS_AUDIT:', row.IS_AUDIT); // 添加日志输出 - console.log('this.IS_POLICE:', this.IS_POLICE); // 添加日志输出 + console.log('row.IS_AUDIT:', row.IS_AUDIT); + console.log('this.IS_POLICE:', this.IS_POLICE); if (row.IS_AUDIT === '0' && this.IS_POLICE === '1'){ return true }else { return false } }, + 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 + } + }, approve(row) { this.$refs.sendUtil.init(row) }, @@ -164,6 +248,27 @@ export default{ this.IS_POLICE = data.pageData.IS_POLICE console.log('IS_POLICE:', this.IS_POLICE) }) + }, + detail(row){ + this.dialogVisible = true + requestFN( + '/mkmjManagement/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 + }) } } diff --git a/src/views/longtermvehicle/vehiclemessage/components/indexList.vue b/src/views/longtermvehicle/vehiclemessage/components/indexList.vue index bf0c926..1b464e5 100644 --- a/src/views/longtermvehicle/vehiclemessage/components/indexList.vue +++ b/src/views/longtermvehicle/vehiclemessage/components/indexList.vue @@ -33,7 +33,6 @@ fit highlight-current-row > - @@ -45,9 +44,6 @@ - - - diff --git a/src/views/longtermvehicle/xgfCarMessage/components/List.vue b/src/views/longtermvehicle/xgfCarMessage/components/List.vue index be21509..b175851 100644 --- a/src/views/longtermvehicle/xgfCarMessage/components/List.vue +++ b/src/views/longtermvehicle/xgfCarMessage/components/List.vue @@ -37,7 +37,15 @@ - + + +