Przeglądaj źródła

报价测试问题修复

@dongkboy 3 lat temu
rodzic
commit
189e46ccaa
2 zmienionych plików z 27 dodań i 25 usunięć
  1. 13 11
      src/views/Letter/Letter.vue
  2. 14 14
      src/views/Letter/Orderlist.vue

+ 13 - 11
src/views/Letter/Letter.vue

@@ -101,10 +101,10 @@
             </el-form-item>
           </el-col>
           <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
-            <el-form-item label="品牌型号:" prop="brandName" class="dis align">
-              <el-input v-model="carInfo.brandName" placeholder="请输入品牌型号" class="widths"></el-input>
+            <el-form-item label="品牌型号:" prop="modelcname" class="dis align">
+              <el-input v-model="carInfo.modelcname" placeholder="请输入品牌型号" class="widths"></el-input>
               <el-button type="primary" size="mini " icon="el-icon-search"
-                @click="toChooseVehicleType(carInfo.brandName)"></el-button>
+                @click="toChooseVehicleType(carInfo.modelcname)"></el-button>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
@@ -569,7 +569,7 @@
                   @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
                 <el-button v-show="reslistitem.quoteCode == '200'" type="text" style="color:rgb(240, 12, 10)"
                   @click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
-                <el-button v-show="orderstatus == '2'" type="text" style="color:rgb(240, 12, 10)"
+                <el-button v-show="reslistitem.orderstatus == '2'" type="text" style="color:rgb(240, 12, 10)"
                   @click="Payment(reslistitem.result.companyId)">付款码</el-button>
                 <i v-show="(reslistitem.quoteCode == '200') && (reslistitem.name == '中煤财险')" class="el-icon-info"
                   @click="open2(reslistitem.msg)" style="color:#646464"></i>
@@ -1164,7 +1164,7 @@
                 <el-input v-model="carform.frameNo" autocomplete="off" class="widths"></el-input>
               </el-form-item>
               <el-form-item label="品牌型号">
-                <el-input v-model="carform.brandName" autocomplete="off" class="widths"></el-input>
+                <el-input v-model="carform.modelcname" autocomplete="off" class="widths"></el-input>
               </el-form-item>
               <el-form-item label="发动机号">
                 <el-input v-model="carform.engineNo" autocomplete="off" class="widths"></el-input>
@@ -1610,7 +1610,7 @@ export default {
       },
       carform: {
         licenseNo: "", //车牌号
-        brandName: "", //车辆品牌型号
+        modelcname: "", //车辆品牌型号
         frameNo: "", //车架号
         engineNo: "", //发动机号
         registerDate: "", //注册日期
@@ -2556,6 +2556,7 @@ export default {
           ele["msg"] = "";
           ele["agreementId"] = "";
           ele["apiType"] = "";
+          ele["orderstatus"]=0;
         });
         this.totalCompanyList = res.data;
       });
@@ -2721,7 +2722,6 @@ export default {
     },
     //报价
     quote() {
-
       this.$refs["carInfo"].validate(valid => {
         if (valid) {
           var _this = this;
@@ -2866,6 +2866,7 @@ export default {
       this.imageIdList3 = this.tbczcarShow ? this.imageIdList2 : this.imageIdList3;//投保人同车主
       this.imageIdList4 = this.bbczcarShow ? this.imageIdList2 : this.imageIdList4;//被保人同车主
       this.imageIdList4 = this.bbtbcarShow ? this.imageIdList3 : this.imageIdList4; //被保人同投保人
+      console.log(this.imageIdList1,this.imageIdList2,this.imageIdList3,this.imageIdList4)
       //上传图片
       Promise.all([
         this.$api.letter.uploadImages({ imageIdList: this.imageIdList1, imageType: "C01", quoteNo: this.quoteno }),
@@ -2906,6 +2907,7 @@ export default {
         kindList: this.kindList,
         riskList: this.riskList,
       };
+      console.log(param)
       this.$api.letter.generateOrder(param).then(res => {
         if (res.code == "200") {
           this.orderno = res.data.orderno;
@@ -3716,7 +3718,7 @@ export default {
         });
       }
     },
-    //车型查询
+    //品牌型号查询
     toChooseVehicleType(cartype) {
       if (cartype == "" || cartype == null) {
         this.$message({
@@ -3747,7 +3749,7 @@ export default {
     },
     //车型列表双击选中事件
     reslistCurrentChange(row, column, event) {
-      this.carInfo.brandName = row.modelName; //品牌型号
+      this.carInfo.brandName = row.brandCN; //品牌型号
       this.carInfo.modelcname = row.modelName; //品牌型号
       this.carInfo.caryear = row.marketYear; //年款
       this.carInfo.seatCount = row.ratedPassengerCapacity; //座位数
@@ -3940,7 +3942,7 @@ export default {
           "-" +
           carInfo.registerDate.substring(6, 8);
         this.carform.licenseNo = carInfo.plateNo; //车牌号
-        this.carform.brandName = carInfo.backOcrID; //品牌型号
+        this.carform.modelcname = carInfo.backOcrID; //品牌型号
         this.carform.frameNo = carInfo.vIN; //车架号
         this.carform.engineNo = carInfo.engine; //发动机号
         this.carform.registerDate = carInfo.registerDate; //车牌号
@@ -3954,7 +3956,7 @@ export default {
     CarOCRconfirm() {
       //传参
       this.carInfo.licenseNo = this.carform.licenseNo; //车牌号
-      this.carInfo.brandName = this.carform.brandName; //品牌型号
+      this.carInfo.modelcname = this.carform.modelcname; //品牌型号
       this.carInfo.vinNo = this.carform.frameNo; //车架号
       this.carInfo.frameNo = this.carform.frameNo; //车架号
       this.carInfo.engineNo = this.carform.engineNo; //发动机号

+ 14 - 14
src/views/Letter/Orderlist.vue

@@ -1174,11 +1174,9 @@ export default {
                             });
                             break;
                         case "人保财险":
-                            this.$nextTick(() => {
-                                this.creatQrCode(res.data.paymentLink);
-                            });
-                            break;
                         case "中煤财险":
+                        case "永诚财险":
+                        case "中国人寿":
                             this.$nextTick(() => {
                                 this.creatQrCode(res.data.paymentLink);
                             });
@@ -1186,12 +1184,7 @@ export default {
                         case "恒邦财险":
                             this.paycodeimg = res.data.paymentLink;
                             break;
-                        case "永诚财险":
-                            this.$nextTick(() => {
-                                this.creatQrCode(res.data.paymentLink);
-                            });
-                            break;
-                        case "安盛财险":
+                        case "安盛天平":
                             let anresult = res.data.paymentLink.replace(/[\r\n]/g, "");
                             let animgBase64 = `data:image/png;base64,${anresult}`;
                             base64ToPath(animgBase64)
@@ -1442,19 +1435,26 @@ export default {
                                         this.oldfileList.push({
                                             fileTitle: "交强电子保单",
                                             filename: this.orderInfo.jqpolicyno,
-                                            fileurl: res.data.jqx_policy_url,
+                                            fileurl: res.data.jqxPolicyUrl,
                                         });
                                         this.oldfileList.push({
                                             fileTitle: "交强电子标志",
                                             filename: this.orderInfo.jqpolicyno,
-                                            fileurl: res.data.jqx_flag_url,
+                                            fileurl: res.data.jqxFlagUrl,
                                         });
                                     }
-                                    if (res.data.syx_policy_url) {
+                                    if (res.data.syxPolicyUrl) {
                                         this.oldfileList.push({
                                             fileTitle: "商业电子保单",
                                             filename: this.orderInfo.sypolicyno,
-                                            fileurl: res.data.syx_policy_url,
+                                            fileurl: res.data.syxPolicyUrl,
+                                        });
+                                    }
+                                    if(res.data.jyxPolicyUrl){
+                                      this.oldfileList.push({
+                                            fileTitle: "驾意险保单",
+                                            filename: 'xxxxxxxxxxxxxxxxxxxxxx',
+                                            fileurl: res.data.jyxPolicyUrl,
                                         });
                                     }
                                 })