You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

151 lines
4.1 KiB

<template>
<div class="app-container">
<div v-show="viewState== 1">
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<!--标题按钮部分结束-->
<!--Start 新增修改部分-->
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="4" class="tleftb">
<span>车架号</span>
</el-col>
<el-col :span="8">
<el-form-item><span>{{ formobj.vinNo }}</span></el-form-item>
</el-col>
<el-col :span="4" class="tleftb">
<span>车型</span>
</el-col>
<el-col :span="8">
<el-form-item><span>{{ formobj.model }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>巡检情况说明</span>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ formobj.situationExplain }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>存在问题</span>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ formobj.problems }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>处理结果</span>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ formobj.results }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>相关责任人</span>
</el-col>
<el-col :span="20">
<el-form-item>
<span>{{ formobj.liableName }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="4" class="tleftb">
<span>相关照片</span>
</el-col>
<el-col :span="20">
<el-form-item>
<div>
<img v-show="formobj.images ? true : false" v-for="item in formobj.images" style="cursor:pointer;width: 150px;height: 150px;margin-top: 5px" :src="item" @click="open(item)">
</div>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
<el-dialog :visible.sync="dialogVisible" :append-to-body="true">
<img alt="" :src="dialogUrl" width="100%">
</el-dialog>
</div>
</template>
<script>
import req from '@/api/kucunguanli/polling'
export default {
name: 'cheliangxunjianInfo',
data() {
return {
viewTitle: '车辆日常巡检详情',
listLoading: false,
dialogVisible: false,
dialogUrl: '',
viewState: 1,
index: 0,
tableKey: 0,
list: [],
// 表单数据
formobj: {},
rules: {},
submitdisabled: false
}
},
methods: {
showInfo(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
req.fetchBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
// 返回(===既判断)
handleReturn() {
this.$refs['form_obj'].resetFields()
this.$emit('doback')
},
open(val) {
this.dialogVisible = true
this.dialogUrl = val
},
}
}
</script>
<style scoped>
.spanOneWidth {
width: 180px !important;
}
.addinputwOne {
margin-left: 180px !important;
}
.rowStyle {
border-left: 0px;
}
.colOneStyle {
border-right: 0px !important;
}
</style>