@dongkboy 3 лет назад
Родитель
Сommit
2e07d90462
3 измененных файлов с 73 добавлено и 25 удалено
  1. 2 1
      config/dev.env.js
  2. 70 23
      src/views/Letter/Letter.vue
  3. 1 1
      src/views/Letter/Orderlist.vue

+ 2 - 1
config/dev.env.js

@@ -6,8 +6,9 @@ module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
   ENV_CONFIG:'"dev"',
   // 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.115:8080/"'
+  // BASE_URL: '"http://192.168.0.115:8080/"'
   // BASE_URL: '"http://192.168.0.14:8080/"' //君
 
 })

+ 70 - 23
src/views/Letter/Letter.vue

@@ -166,7 +166,7 @@
           </el-col>
           <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
             <el-form-item label="发证日期:" prop="issueDate">
-              <el-date-picker v-dateFormat v-model="carInfo.issueDate" :picker-options="pickerOptions" type="date"
+              <el-date-picker v-dateFormat v-model="carInfo.issueDate" :picker-options="issueDateOptions" type="date"
                 placeholder="选择发证日期" value-format="yyyy-MM-dd" class="widths" placement="bottom-start"
                 style="width: 230px;"></el-date-picker>
             </el-form-item>
@@ -470,7 +470,7 @@
             <div style="width:200px;">
               <span style="text-align:center;">{{ insureitem.kindName }}</span>
             </div>
-            <el-select v-model="insureitem.amount" placeholder="请选择" class="widths1" size="small">
+            <el-select filterable v-model="insureitem.amount" placeholder="请选择" class="widths1" size="small">
               <el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
                 :key="index"></el-option>
             </el-select>
@@ -575,17 +575,19 @@
                   @click="open2(reslistitem.msg)" style="color:#646464"></i>
               </div>
             </div>
-            <div v-if="reslistitem.checked" class="dis a-c Driving-risk" style="margin-top: 10px;">
+
+            <div v-if="reslistitem.checked"  class="dis a-c Driving-risk" style="margin-top: 10px;">
               <h4>报价协议选择:</h4>
               <el-select size="small" v-model="reslistitem.agreementId" placeholder="请选择协议" :clearable="true"
                 @change="val => agreementChange(val, reslistitem.agreement, reslistindex, reslistitem)">
                 <div v-for="(agreementitem, agreementindex ) in reslistitem.agreement" :key="agreementindex">
-                  <div
-                    v-if="agreementitem.licenseNo.length > 0 ? agreementitem.licenseNo.includes(carInfo.licenseNo.slice(0, 2)) : 'true'">
+                  <div v-if="agreementitem.licenseNo.length > 0 ? agreementitem.licenseNo.includes(carInfo.licenseNo.slice(0, 2)) : 'true'"
+                    >
                     <el-option :label="agreementitem.agreementName" :value="agreementitem.id"></el-option>
                   </div>
                 </div>
               </el-select>
+
             </div>
             <template></template>
             <template v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId">
@@ -2124,7 +2126,43 @@ export default {
             {
               label: "10万",
               value: "100000"
-            }
+            },
+            {
+              label: "20万",
+              value: "200000"
+            },
+            {
+              label: "30万",
+              value: "300000"
+            },
+            {
+              label: "40万",
+              value: "400000"
+            },
+            {
+              label: "50万",
+              value: "500000"
+            },
+            {
+              label: "60万",
+              value: "600000"
+            },
+            {
+              label: "70万",
+              value: "700000"
+            },
+            {
+              label: "80万",
+              value: "800000"
+            },
+            {
+              label: "90万",
+              value: "900000"
+            },
+            {
+              label: "100万",
+              value: "1000000"
+            },
           ],
           kindCode: "SY_FJ_YBW1",
           isMainRisk: true,
@@ -2449,7 +2487,20 @@ export default {
   destroyed() {
     window.removeEventListener('scroll', this.onScroll)
   },
+  computed:{
+    issueDateOptions() {
+      return {
+        disabledDate: this.disabledDate,
+      }
+
+    },
+  },
   methods: {
+    disabledDate(time) {
+      let datetime=this.carInfo.registerDate
+        return time.getTime() < new Date(datetime).getTime();
+    },
+
     onScroll() {
       // 变量scrollTop是滚动条滚动时,滚动条上端距离顶部的距离
       var scrollTop = document.documentElement.scrollTop || document.body.scrollTop
@@ -2602,7 +2653,6 @@ export default {
     },
     //身份证有效期长期
     insureLongterm(e) {
-      console.log(e)
       this[e].identifyValidEndDate = "9999-12-31";
     },
     //较强起保日期事件
@@ -2866,7 +2916,6 @@ 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 }),
@@ -2907,7 +2956,6 @@ 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;
@@ -3449,7 +3497,7 @@ export default {
               let hengbangapi = "";
               hengbangapi = apiType == 2 ? "pythonsubmitImage" : "anshengsubmitImage"
               await this.$api.letter[hengbangapi]({
-                orderNo: this.orderno
+                subOrderNo: companyId
               })
                 .then(res => {
                   if (res.code == "200") {
@@ -3458,9 +3506,7 @@ export default {
                     hengbangapi1 = apiType == 2 ? "pythonaudit" : "anshengaudit"
                     _this.$api.letter
                     [hengbangapi1]({
-                      companyId: companyId,
-                      jqappoint: "",
-                      syappoint: ""
+                      subOrderNo: companyId,
                     })
                       .then(res => {
                         if (res.code == "200") {
@@ -3783,35 +3829,35 @@ export default {
       params.append("type", "image");
       this.$api.letter.uploadFile(params).then(res => {
         if (res.code == "200") {
-          imageIdList.push(res.data.id);
+          this[imageIdList].push(res.data.id);
         }
       });
     },
     drivingupload1(file) {
-      this.drivingupload(file, this.imageIdList1);
+      this.drivingupload(file, "imageIdList1");
     },
     drivingupload2(file) {
-      this.drivingupload(file, this.imageIdList2);
+      this.drivingupload(file, "imageIdList2");
     },
     drivingupload3(file) {
-      this.drivingupload(file, this.imageIdList3);
+      this.drivingupload(file,"imageIdList3");
     },
     drivingupload4(file) {
-      this.drivingupload(file, this.imageIdList4);
+      this.drivingupload(file,"imageIdList4");
     },
     drivingupload5(file) {
-      this.drivingupload(file, this.imageIdList5);
+      this.drivingupload(file,"imageIdList5");
     },
     handleRemove1(file, imageIdList, imgList) {
-      imageIdList.map((ele, index) => {
+      this[imageIdList].map((ele, index) => {
         if (file.imageId === ele) {
-          imageIdList.splice(index, 1);
+          this[imageIdList].splice(index, 1);
         }
         return ele;
       });
-      imgList.map((ele, index) => {
+      this[imgList].map((ele, index) => {
         if (file.imageId === ele.imageId) {
-          imgList.splice(index, 1);
+          this[imgList].splice(index, 1);
         }
         return ele;
       });
@@ -4188,6 +4234,7 @@ export default {
       this.sychecked = false;
       this.yonganchecked = false;
       this.zhongmeichecked = false;
+      this.transferDateShow=false;
       this.imgList1 = [];
       this.imgList2 = [];
       this.imgList3 = [];

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

@@ -1429,7 +1429,7 @@ export default {
                         case "众安财险":
                             if (this.orderInfo.jqpolicyno) {
                                 this.$api.letter.pythongetPolicyPrint({
-                                    orderno: this.orderInfo.orderno,
+                                  companyId: item.id,
                                 }).then(res => {
                                     if (res.data) {
                                         this.oldfileList.push({