Explorar o código

1、订单查询页面,添加报价单
2、添加是否二手车字段

lihongxiao %!s(int64=3) %!d(string=hai) anos
pai
achega
4ee1c70813

+ 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/"' //凯森
 })
 

+ 3 - 0
src/http/axios.js

@@ -21,6 +21,9 @@ export default function $axios(options) {
 		if((config.url.indexOf('/excel/v1/**')>=0) || (config.url.indexOf('excel/findOfflineExcel')>=0) ){
 			config.responseType='arraybuffer';
 		}
+        if(config.status ==503){
+          this.$message.error("请求超时");
+        }
         let token = Cookies.get('token')
         // 1. 请求开始的时候可以结合 vuex 开启全屏 loading 动画
         // console.log(store.state.loading)

+ 2 - 1
src/http/config.js

@@ -12,7 +12,8 @@ export default {
   // 参数
   data: {},
   // 设置超时时间
-  timeout: 300000,
+  timeout: 600000,
+  // timeout: 1000,
   // 携带凭证
   withCredentials: true,
   // 返回数据类型

+ 1 - 1
src/http/moudules/letter.js

@@ -134,7 +134,7 @@ export const insZhongmeisubmitImage = (data) => {
 //永诚提交影像
 export const insyongchengsubmitImage = (data) => {
     return axios({
-        url: "/api/yongCheng/UploadImage",
+        url: "/api/yongCheng/uploadImage",
         method: "post",
         data
     })

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

@@ -95,6 +95,10 @@
           <span>是否脱保</span>
           <el-switch  v-model="carInfo.outOfInsurance" active-color="#ee7000"></el-switch>
         </div>
+        <div class="csstool">
+          <span>是否二手车</span>
+          <el-switch  v-model="carInfo.usedCar" active-color="#ee7000"></el-switch>
+        </div>
       </div>
       <el-form class="demo-ruleForm" :model="carInfo" ref="carInfo" :rules="rules" label-width="130px" size="small">
         <el-row style="flex-wrap: wrap; display: flex;">
@@ -4008,6 +4012,9 @@ export default {
       this.policyHolderInfo.owner=this.tbczcarShow
       this.insuredPersonInfo.owner=this.bbczcarShow
       this.insuredPersonInfo.insuranceHolder=this.bbtbcarShow
+      this.ownerInfo.provinceData==""?[]:this.ownerInfo.provinceData
+      this.insuredPersonInfo.provinceData==""?[]:this.insuredPersonInfo.provinceData
+      this.policyHolderInfo.provinceData==""?[]:this.policyHolderInfo.provinceData
       let param = {
         userId: this.userId,
         quoteno: this.quoteno,
@@ -4020,6 +4027,7 @@ export default {
         riskList: this.riskList,
         vehicleAndVesselTax:this.vehicleAndVesselTaxForm,
       };
+      
       this.$api.letter.generateOrder(param).then(res => {
         if (res.code == "200") {
           this.orderno = res.data.orderno;
@@ -4786,7 +4794,6 @@ export default {
             Object.keys(res.data).forEach((keys) => {
               if (res.data[keys].url) {
                 res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
-                console.log( process.env.BASE_URL ,res.data[keys].url,111111111111)
                 switch (keys) {
                   case 'C01':
                     this.imageList1.push({

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

@@ -104,7 +104,7 @@
                 style="color:#f56c6c">二维码</el-button>
               <el-button size="mini" type="text" @click="OrderDetails(scope.row, item)">查看详情
               </el-button>
-              <el-button type="text" style="color:rgb(240, 12, 10)"  @click="bjdpreview(item.id)">报价单</el-button>
+              <el-button type="text" size="mini" style="color:rgb(240, 12, 10)"  @click="bjdpreview(item.id)">报价单</el-button>
               <!-- <el-button size="mini" type="text" @click="CloseEdit(scope.$index, scope.row)">编辑</el-button> -->
 
             </div>