|
|
@@ -854,7 +854,7 @@
|
|
|
<el-select style="width: 250px;" size="small" clearable v-model="anshengInsurancetype" placeholder="选择类型" @clear="clearAccidentFormAS"
|
|
|
@change="anshengInsuranceChange">
|
|
|
<el-option v-for="(item, index) in anshengInsuranceData" :key="index" :label="item.planCode + ' '+item.planChineseName"
|
|
|
- :value="item.planCode"></el-option>
|
|
|
+ :value="item.planCode"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<el-table size="small" :data="anshengInsuranceData1" border v-loading="accidentLoading" v-if="anshengInsurancetype"
|
|
|
@@ -865,8 +865,12 @@
|
|
|
<el-radio class="radio" v-model="AStemplateSelection" :label="scope.row.productCode" @click.native.stop.prevent="ASDrivingRadio(scope.row)"> </el-radio>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
+
|
|
|
<el-table-column prop="productName" label="方案名称" align="center"></el-table-column>
|
|
|
- <el-table-column prop="productCode" label="方案代码" align="center">
|
|
|
+ <el-table-column prop="productCode" label="方案代码"
|
|
|
+
|
|
|
+ align="center">
|
|
|
</el-table-column>
|
|
|
<el-table-column label="份数" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
@@ -1787,6 +1791,7 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog title="影像上传" :visible.sync="imageUploaddialogVisible" width="1070px">
|
|
|
<el-row style="padding: 10px;">
|
|
|
+
|
|
|
<el-col :span="12" style="margin-bottom:30px;">
|
|
|
<div class="flex f-c j-s">
|
|
|
<div class="image-title ">
|
|
|
@@ -1960,6 +1965,75 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12" style="margin-bottom:30px;">
|
|
|
+ <div class="flex f-c j-s">
|
|
|
+ <div class="image-title ">
|
|
|
+ 新车照片
|
|
|
+ </div>
|
|
|
+ <div class="flex a-c">
|
|
|
+ <div class="flex f-c aaa">
|
|
|
+ <span style="margin:10px 0">1. 新车合格证</span>
|
|
|
+ <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag style="margin-right:50px;"
|
|
|
+ :on-change="file => drivingupload(file, 'imageList5', 'imgList9', 'XC00')" :file-list="imgList9" multiple
|
|
|
+ ref="upload3" :class="{ styleB: imgList9.length === 1 }">
|
|
|
+ <img v-show="imgList9.length == 0" src="../../../static/userfront.png" style="width:100%;height:100%" />
|
|
|
+ <div slot="file" slot-scope="{file}">
|
|
|
+ <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
|
|
|
+ <span class="el-upload-list__item-actions">
|
|
|
+ <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList9')">
|
|
|
+ <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
|
|
|
+ <i class="el-icon-delete"></i>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
+ <div class="flex f-c aaa">
|
|
|
+ <span style="margin:10px 0">2. 购车发票</span>
|
|
|
+ <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag
|
|
|
+ :on-change="file => drivingupload(file, 'imageList5', 'imgList10', 'GC00')" :file-list="imgList10" multiple
|
|
|
+ ref="upload4" :class="{ styleB: imgList10.length === 1 }">
|
|
|
+ <img v-show="imgList10.length == 0" src="../../../static/userfront.png" style="width:100%;height:100%" />
|
|
|
+ <div slot="file" slot-scope="{file}">
|
|
|
+ <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
|
|
|
+ <span class="el-upload-list__item-actions">
|
|
|
+ <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList10')">
|
|
|
+ <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
|
|
|
+ <i class="el-icon-delete"></i>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12" style="margin-bottom:30px;">
|
|
|
+ <div class="flex f-c j-s">
|
|
|
+ <div class="image-title ">
|
|
|
+ 关系证明
|
|
|
+ </div>
|
|
|
+ <div class="flex a-c">
|
|
|
+ <div class="flex f-c aaa">
|
|
|
+ <span style="margin:10px 0"> 关系证明</span>
|
|
|
+ <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag style="margin-right:50px;"
|
|
|
+ :on-change="file => drivingupload(file, 'imageList5', 'imgList11', 'GX00')" :file-list="imgList11" multiple
|
|
|
+ ref="upload3" :class="{ styleB: imgList11.length === 1 }">
|
|
|
+ <img v-show="imgList11.length == 0" src="../../../static/userfront.png" style="width:100%;height:100%" />
|
|
|
+ <div slot="file" slot-scope="{file}">
|
|
|
+ <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
|
|
|
+ <span class="el-upload-list__item-actions">
|
|
|
+ <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList11')">
|
|
|
+ <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
|
|
|
+ <i class="el-icon-delete"></i>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
<!-- <el-col :span="24">
|
|
|
<div class="flex f-c j-s">
|
|
|
<div class="image-title ">
|
|
|
@@ -3175,11 +3249,15 @@ export default {
|
|
|
imgList6: [],
|
|
|
imgList7: [],
|
|
|
imgList8: [],
|
|
|
+ imgList9: [],
|
|
|
+ imgList10: [],
|
|
|
+ imgList11: [],
|
|
|
//影像上传列表
|
|
|
imageList1: [],
|
|
|
imageList2: [],
|
|
|
imageList3: [],
|
|
|
imageList4: [],
|
|
|
+ imageList5: [],
|
|
|
// 是否禁用上传
|
|
|
uploadDisabled: false,
|
|
|
href: "",
|
|
|
@@ -5378,6 +5456,7 @@ export default {
|
|
|
this.imageList2 = [];
|
|
|
this.imageList3 = [];
|
|
|
this.imageList4 = [];
|
|
|
+ this.imageList5 = [];
|
|
|
this.imgList1 = [];
|
|
|
this.imgList2 = [];
|
|
|
this.imgList3 = [];
|
|
|
@@ -5386,6 +5465,9 @@ export default {
|
|
|
this.imgList6 = [];
|
|
|
this.imgList7 = [];
|
|
|
this.imgList8 = [];
|
|
|
+ this.imgList9 = [];
|
|
|
+ this.imgList10 = [];
|
|
|
+ this.imgList11 = [];
|
|
|
Object.keys(res.data).forEach((keys) => {
|
|
|
if (res.data[keys].url) {
|
|
|
res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
|
|
|
@@ -5445,12 +5527,28 @@ export default {
|
|
|
this.imgList7.push(res.data[keys]);
|
|
|
|
|
|
break;
|
|
|
- case 'D04':
|
|
|
- this.imageList4.push({
|
|
|
+ case 'XC00':
|
|
|
+ this.imageList5.push({
|
|
|
+ imageId: res.data[keys].imageId,
|
|
|
+ imageType: res.data[keys].imageType,
|
|
|
+ })
|
|
|
+ this.imgList9.push(res.data[keys]);
|
|
|
+
|
|
|
+ break;
|
|
|
+ case 'GC00':
|
|
|
+ this.imageList5.push({
|
|
|
+ imageId: res.data[keys].imageId,
|
|
|
+ imageType: res.data[keys].imageType,
|
|
|
+ })
|
|
|
+ this.imgList10.push(res.data[keys]);
|
|
|
+
|
|
|
+ break;
|
|
|
+ case 'GX00':
|
|
|
+ this.imageList5.push({
|
|
|
imageId: res.data[keys].imageId,
|
|
|
imageType: res.data[keys].imageType,
|
|
|
})
|
|
|
- this.imgList8.push(res.data[keys]);
|
|
|
+ this.imgList11.push(res.data[keys]);
|
|
|
|
|
|
break;
|
|
|
default:
|
|
|
@@ -6128,32 +6226,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
this[imgurl].push(file)
|
|
|
-// let name=file.raw.name
|
|
|
-// var image = new Image();
|
|
|
-// image.src = window.URL.createObjectURL(file.raw);
|
|
|
-// that.carfrontImg = image.src
|
|
|
-// image.onload = function(){
|
|
|
-// let aaa= that.base64ToFile(that.compress(image, 500, 400, 0.7),name)
|
|
|
-// const params = new FormData()
|
|
|
-// params.append("multipartFile", aaa);
|
|
|
-// params.append("type", "image");
|
|
|
-// that.$api.letter.uploadFile(params).then(res => {
|
|
|
-// if (res.code == "200") {
|
|
|
-// if (that[imageIdList].some(v => v.imageType == type)) {
|
|
|
-// that[imageIdList].map(val => {
|
|
|
-// if (val.imageType == type) {
|
|
|
-// val.imageId = res.data.id;
|
|
|
-// }
|
|
|
-// })
|
|
|
-// } else {
|
|
|
-// that[imageIdList].push({
|
|
|
-// imageId: res.data.id,
|
|
|
-// imageType: type,
|
|
|
-// })
|
|
|
-// }
|
|
|
-// }
|
|
|
-// });
|
|
|
-// }
|
|
|
+
|
|
|
var file = file.raw;
|
|
|
const params = new FormData(); // 声明formData数据类型
|
|
|
params.append("multipartFile", file);
|
|
|
@@ -6845,7 +6918,7 @@ export default {
|
|
|
//影像上传
|
|
|
uploadinformation() {
|
|
|
// //上传图片
|
|
|
- const mergedArray = [...this.imageList1, ...this.imageList2, ...this.imageList3, ...this.imageList4];
|
|
|
+ const mergedArray = [...this.imageList1, ...this.imageList2, ...this.imageList3, ...this.imageList4,...this.imageList5];
|
|
|
let imageparam = {
|
|
|
imageList: mergedArray,
|
|
|
quoteNo: this.quoteno
|