Jelajahi Sumber

1、保单显示驾意险
2、众安财险提示需要验车,下单按钮禁用

lihongxiao 2 tahun lalu
induk
melakukan
f71c351973
3 mengubah file dengan 20 tambahan dan 14 penghapusan
  1. 2 2
      config/dev.env.js
  2. 16 12
      src/views/Letter/Letter.vue
  3. 2 0
      src/views/Letter/Orderlist.vue

+ 2 - 2
config/dev.env.js

@@ -5,9 +5,9 @@ const prodEnv = require('./prod.env')
 module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
   ENV_CONFIG:'"dev"',
-  // BASE_URL: '"http://39.98.239.48/web-api"',//测试服务器
+  BASE_URL: '"http://39.98.239.48/web-api"',//测试服务器
   // BASE_URL:'"http://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
-  BASE_URL: '"http://192.168.0.111:8080/"' //大哥
+  // BASE_URL: '"http://192.168.0.111:8080/"' //大哥
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
 })
 

+ 16 - 12
src/views/Letter/Letter.vue

@@ -722,8 +722,8 @@
                     reslistitem.msg.length > 500 ? reslistitem.msg.slice(0, 500) : reslistitem.msg }}
                 </span>
               </div>
-              <div style="width:15%;" class="flex j-start a-c">
-                <el-button v-show="reslistitem.quoteCode == '200'" type="text" style="color:#ee7000"
+              <div style="width:15%;" class="flex j-start a-c">  
+                <el-button :disabled='reslistitem.namesimple=="众安财险"&& reslistitem.result.tips=="需要验车"' v-show="reslistitem.quoteCode == '200'" type="text" style="color:#ee7000"
                   @click="hbsubmitdialog(reslistitem)">下单</el-button>
                 <el-button v-show="reslistitem.quoteCode == '200'" type="text"
                   @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
@@ -1251,9 +1251,9 @@
             <span>交强险</span>
             <span>¥{{ queryOrders.jqpremium }}</span>
           </div>
-          <div class="dis align jus" v-show="queryOrders.jyPremium">
+          <div class="dis align jus" v-show="queryOrders.jypremium">
             <span>驾意险</span>
-            <span>¥{{ queryOrders.jyPremium }}</span>
+            <span>¥{{ queryOrders.jypremium }}</span>
           </div>
           <div class="dis align jus" v-show="queryOrders.sypremium">
             <span>车辆商业险</span>
@@ -1366,6 +1366,7 @@
             <span>车船税:</span>
             <span>{{ taxamount }}</span>
           </div>
+         
           <div v-show="jqstartdate">
             <span>交强险起保日期:</span>
             <span>{{ jqstartdate }}</span>
@@ -1518,7 +1519,7 @@
         </div>
       </el-row>
       <span slot="footer" class="dialog-footer">
-        <el-button type="warning" @click="userOCRdiscern()" size="small">识 别</el-button>
+        <el-button type="warning"  @click="userOCRdiscern()" size="small">识 别</el-button>
         <el-button @click="userOCRconfirm()" size="small">确 认</el-button>
       </span>
     </el-dialog>
@@ -1830,6 +1831,7 @@ export default {
     return {
       templateSelection:"",
       areaOption:yongchengData.data,
+      actionUrl:process.env.BASE_URL+'ins/taskImage/uploadFile',
       iscCrownerShow:false,
       isApplicantShow:false,
       isInsuredShow:false,
@@ -3004,7 +3006,6 @@ export default {
       import("element-ui/packages/image/src/image-viewer")
   },
   created() {
-
     this.getDicType("taxRelifFlag");//车船税类型
     this.getDicType("taxpayerIdentifier");//纳税人证件类型
     this.getDicType("relifReason");//减免税原因代码
@@ -3052,7 +3053,6 @@ export default {
       _this.ownerInfo.age = getAgeByIdCard(_this.ownerInfo.identifyNumber)
       _this.policyHolderInfo.age = getAgeByIdCard(_this.policyHolderInfo.identifyNumber)
       _this.insuredPersonInfo.age = getAgeByIdCard(_this.insuredPersonInfo.identifyNumber)
-      console.log(_this.paramsEdit,111111111111)
       // const ownerInfoObject = {
       //   province: _this.ownerInfo.province,
       //   city: _this.ownerInfo.city,
@@ -3515,6 +3515,8 @@ export default {
     insureitemChange(e) {
       if (e != 0) {
         this.sychecked = true;
+        this.systartDate = this.transformTime1();
+        this.syendDate = this.oneYearPast1(this.systartDate);
       }
     },
     //获取产品id
@@ -4068,7 +4070,7 @@ export default {
       this.iscCrownerShow=false
       this.isInsuredShow=false
       this.isApplicantShow=false
-     
+      
       let accidentalDrivingVo = {};
       if (this.accidentForm.id) {
         let data = this.accidentDataList.find(
@@ -4152,12 +4154,12 @@ export default {
           }
           this.renewalCodedialogVisible = true;
         } else if (res.code == "500") {
-          this.ownerInfo.provinceData=[]
-          this.insuredPersonInfo.provinceData=[]
-          this.policyHolderInfo.provinceData=[]
           this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
           this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
           this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
+          this.ownerInfo.provinceData= this.iscCrownerShow?[]: this.ownerInfo.provinceData
+          this.insuredPersonInfo.provinceData= this.isInsuredShow?[]: this.insuredPersonInfo.provinceData
+          this.policyHolderInfo.provinceData= this.isApplicantShow?[]: this.policyHolderInfo.provinceData
           this.totalCompanyList[num].quoteCode = "3";
           this.totalCompanyList[num].msg = res.msg;
         }
@@ -4501,6 +4503,7 @@ export default {
               }
               this.totalCompanyList[num].quoteCode = 200;
               this.totalCompanyList[num].result = res.data;
+
               this.QuotationHistory();
             } else {
               this.totalCompanyList[num].quoteCode = "3";
@@ -5377,6 +5380,7 @@ export default {
             })
           }
           this[type + 'File'] = file;
+
         } else {
           this.$message({ message: res.msg, type: "warning" });
         }
@@ -5533,7 +5537,7 @@ export default {
           if (customerInfo.identifyType == '01') {
             this.ownerInfoform.identifyType = '身份证';
           } else {
-            this.ownerInfoform.identifyType = "未知";
+            this.ownerInfoform.identifyType = "";
           }
 
           this.ownerInfoform.identifyNumber = customerInfo.identifyNumber;

+ 2 - 0
src/views/Letter/Orderlist.vue

@@ -93,6 +93,8 @@
                 style="color:#f56c6c">二维码</el-button>
               <el-button size="mini" type="text" @click="OrderDetails(scope.row, item)">查看详情
               </el-button>
+              <!-- <el-button size="mini" type="text" @click="CloseEdit(scope.$index, scope.row)">编辑</el-button> -->
+
             </div>
           </div>
         </template>