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.
 
 
 
 
 
 

201 lines
7.3 KiB

<template>
<div class="app-container">
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<div class="titwu">交车确认</div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #E0E3EB">
<el-col :span="8">
<div class="span-sty"><span>合同编号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.contractNo }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>客户名称</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>接收人</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.recipient }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>身份证号</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.idNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty"><span>交付日期</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverDate }}</span></el-form-item>
</el-col>
<el-col :span="16">
<div class="span-sty"><span>交付地点</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.deliverAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>备注</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty"><span>车型</span></div>
<el-form-item><span class="addinputInfo">{{ formobj.modelName }}</span></el-form-item>
</el-col>
</el-row>
<div class="title">
交付车辆信息
</div>
<el-table :key="tableKey" :data="formobj.carList" :index="index" border style="width: 100%">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="交车照片" align="center">
<template slot-scope="scope">
<span class="bluezi" v-show="scope.row.deliveryImages.length > 0" @click="handleLook(scope.row.deliveryImages)">查看</span>
</template>
</el-table-column>
<el-table-column label="保单" align="center">
<template slot-scope="scope">
<span class="bluezi" v-show="scope.row.policyImages.length > 0" @click="handleLook(scope.row.policyImages)">查看</span>
</template>
</el-table-column>
</el-table>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>接收车辆确认书</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.receiveCarImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>委托提车授权书及委托人身份证</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.entrustImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>交车资料确认单</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.entrustConfirmImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>出门证照片</span></div>
<el-form-item>
<el-image class="addinputInfo" style="height: 178px;width: 178px" v-for="(item, index) in formobj.exitTicketImages" :key="index" :src="item" :preview-src-list="formobj.receiveCarImages"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 交车照片、保单上传 -->
<el-dialog :visible.sync="dialogVisible">
<el-image v-for="(item, index) in image_list" :key="index" :src="item" :preview-src-list="image_list"/>
</el-dialog>
</div>
</template>
<script>
import { fetchDetailsBySid } from '@/api/jiaochebanli/cardelivery'
export default {
name: 'JiaoCheQueRen',
data() {
return {
viewTitle: '',
dialogVisible: false,
tableKey: 0,
index: 0,
image_list: [],
formobj: {
sid: '',
contractNo: '',
deliverDate: '',
modelName: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
entrustConfirmImages: [],
exitTicketImages: [],
userSid: '',
orgSidPath: '',
procInsId: '',
taskId: ''
},
rules: {}
}
},
methods: {
showInfo(row) {
fetchDetailsBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
handleLook(row) {
this.dialogVisible = true
this.image_list = row
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
sid: '',
contractNo: '',
deliverDate: '',
modelName: '',
customerName: '',
idNo: '',
deliverAddress: '',
recipient: '',
remarks: '',
carList: [],
receiveCarImages: [],
entrustImages: [],
entrustConfirmImages: [],
exitTicketImages: [],
userSid: '',
orgSidPath: '',
procInsId: '',
taskId: ''
}
this.image_list = []
this.$emit('doback')
}
}
}
</script>
<style scoped>
.span-sty {
width: 150px !important;
}
.addinputInfo {
margin-left: 140px !important;
}
</style>