|
|
@@ -3232,14 +3232,16 @@ export default {
|
|
|
},
|
|
|
//报价
|
|
|
quote() {
|
|
|
-
|
|
|
-
|
|
|
let starttime = new Date(this.carInfo.registerDate)
|
|
|
let endtime = new Date(this.carInfo.issueDate)
|
|
|
if (endtime < starttime) {
|
|
|
this.$message({ message: "发证日期早于初登日期", type: "error" });
|
|
|
return;
|
|
|
}
|
|
|
+ if(this.imageList1=[] || this.imageList2==[] || this.imageList3==[] || this.imageList4==[]){
|
|
|
+ this.$message({ message: "手动录单先上传影像", type: "error" });
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$refs["carInfo"].validate(valid => {
|
|
|
if (valid) {
|
|
|
var _this = this;
|
|
|
@@ -3377,15 +3379,33 @@ export default {
|
|
|
},
|
|
|
//订单生成前数据处理事件
|
|
|
OrderStageProcessing() {
|
|
|
- this.imageList3 = this.tbczcarShow ? JSON.parse(JSON.stringify(this.imageList2)) : this.imageList3;//投保人同车主
|
|
|
- this.imageList4 = this.bbczcarShow ? JSON.parse(JSON.stringify(this.imageList2)) : this.imageList4;//被保人同车主
|
|
|
- this.imageList4 = this.bbtbcarShow ? JSON.parse(JSON.stringify(this.imageList3)) : this.imageList4; //被保人同投保人
|
|
|
- if (this.imageList2.length > 1) {
|
|
|
+ if(this.tbczcarShow){ //投保人同车主
|
|
|
+ this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
|
|
|
+ if(this.imageList3.length==1){
|
|
|
+ this.imageList3[0].imageType = "C03";
|
|
|
+ }else{
|
|
|
+ this.imageList3[0].imageType = "C03";
|
|
|
this.imageList3[1].imageType = "D03";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.bbczcarShow){ //被保人同车主
|
|
|
+ this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
|
|
|
+ if(this.imageList4.length==1){
|
|
|
+ this.imageList4[0].imageType = "C04";
|
|
|
+ }else{
|
|
|
+ this.imageList4[0].imageType = "C04";
|
|
|
+ this.imageList4[1].imageType = "D04";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.bbtbcarShow){ //被保人同投保人
|
|
|
+ this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
|
|
|
+ if(this.imageList4.length==1){
|
|
|
+ this.imageList4[0].imageType = "C04";
|
|
|
+ }else{
|
|
|
+ this.imageList4[0].imageType = "C04";
|
|
|
this.imageList4[1].imageType = "D04";
|
|
|
+ }
|
|
|
}
|
|
|
- this.imageList3[0].imageType = "C03";
|
|
|
- this.imageList4[0].imageType = "C04";
|
|
|
//上传图片
|
|
|
const mergedArray = [...this.imageList1, ...this.imageList2, ...this.imageList3, ...this.imageList4];
|
|
|
let imageparam = {
|