Browse Source

1、订单查询-订单状态筛选使用接口
2、车险录单-去掉省市区
3、订单查询-永诚增加手动刷新已核保代缴费状态

lihongxiao 2 years ago
parent
commit
8fc2d7cda2
4 changed files with 77 additions and 30 deletions
  1. 8 0
      src/http/moudules/letter.js
  2. 10 2
      src/utils/validate.js
  3. 24 24
      src/views/Letter/Letter.vue
  4. 35 4
      src/views/Letter/Orderlist.vue

+ 8 - 0
src/http/moudules/letter.js

@@ -517,6 +517,14 @@ export const pythongetPolicyPrint=(data)=>{
         data
     })
 }
+
+//永城缴费状态查询
+export const orderStatusyongcheng = (id) => {
+    return axios({
+        url: "/api/yongCheng/orderStatusBySuborderId/" + id,
+        method: "get",
+    })
+}
 /***
     爬虫统一调用模块
  */

+ 10 - 2
src/utils/validate.js

@@ -172,9 +172,8 @@ export function addressCode(address){
       matchedKeys.push(key)
     }
   }
-  // console.log(matchedKeys)
   const cityValues = [];
-  if(matchedKeys.length<3 && matchedKeys.length!=0){
+  if(matchedKeys.length==2 && matchedKeys.length!=0){
     let unknown=matchedKeys[1].length==6?'true' : "false";
     if(unknown){
       let city=matchedKeys[1].substring(0,4)
@@ -182,6 +181,15 @@ export function addressCode(address){
     }
   }
   let data=matchedKeys.concat(cityValues);
+  if(matchedKeys.length>3 && matchedKeys.length!=0){
+    let unknown=matchedKeys[1].length==6?'true' : "false";
+    if(unknown){
+      data=[]
+      let city=matchedKeys[1].substring(0,4)
+      data= matchedKeys.filter(val=>val.includes(city))
+      data.push(matchedKeys[0])
+    }
+  }
   data.sort((a,b)=>a-b)
   return data
 }

+ 24 - 24
src/views/Letter/Letter.vue

@@ -249,12 +249,12 @@
                 show-word-limit></el-input>
             </el-form-item>
           </el-col>
-          <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
+          <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
             <el-form-item label="省市区:">
               <el-cascader v-model="selectedOptions1" :options="areaOptions"
                 @change="event => areahandleChange(event, 'ownerInfo')"></el-cascader>
             </el-form-item>
-          </el-col>
+          </el-col> -->
           <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
             <el-form-item label="地址:" prop="addr">
               <el-input v-model="ownerInfo.addr" placeholder="请输入地址" type="text"></el-input>
@@ -331,12 +331,12 @@
                 show-word-limit></el-input>
             </el-form-item>
           </el-col>
-          <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
+          <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
             <el-form-item label="省市区:">
               <el-cascader v-model="selectedOptions2" :options="areaOptions"
                 @change="event => areahandleChange(event, 'policyHolderInfo')"></el-cascader>
             </el-form-item>
-          </el-col>
+          </el-col> -->
           <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
             <el-form-item label="地址:" prop="addr">
               <el-input v-model="policyHolderInfo.addr" placeholder="请输入地址" type="text"></el-input>
@@ -417,12 +417,12 @@
                 show-word-limit></el-input>
             </el-form-item>
           </el-col>
-          <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
+          <!-- <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
             <el-form-item label="省市区:">
               <el-cascader v-model="selectedOptions3" :options="areaOptions"
                 @change="event => areahandleChange(event, 'insuredPersonInfo')"></el-cascader>
             </el-form-item>
-          </el-col>
+          </el-col> -->
           <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
             <el-form-item label="地址:" prop="addr">
               <el-input v-model="insuredPersonInfo.addr" placeholder="请输入地址" type="text"></el-input>
@@ -2980,24 +2980,24 @@ export default {
       _this.ownerInfo.age = getAgeByIdCard(_this.ownerInfo.identifyNumber)
       _this.policyHolderInfo.age = getAgeByIdCard(_this.policyHolderInfo.identifyNumber)
       _this.insuredPersonInfo.age = getAgeByIdCard(_this.insuredPersonInfo.identifyNumber)
-      const ownerInfoObject = {
-        province: _this.ownerInfo.province,
-        city: _this.ownerInfo.city,
-        county: _this.ownerInfo.county,
-      }
-      const policyHolderInfoObject = {
-        province: _this.policyHolderInfo.province,
-        city: _this.policyHolderInfo.city,
-        county: _this.policyHolderInfo.county,
-      }
-      const insuredPersonInfoObject = {
-        province: _this.insuredPersonInfo.province,
-        city: _this.insuredPersonInfo.city,
-        county: _this.insuredPersonInfo.county,
-      }
-      this.selectedOptions1 = searchkey(Object.values(ownerInfoObject))
-      this.selectedOptions2 = searchkey(Object.values(policyHolderInfoObject))
-      this.selectedOptions3 = searchkey(Object.values(insuredPersonInfoObject))
+      // const ownerInfoObject = {
+      //   province: _this.ownerInfo.province,
+      //   city: _this.ownerInfo.city,
+      //   county: _this.ownerInfo.county,
+      // }
+      // const policyHolderInfoObject = {
+      //   province: _this.policyHolderInfo.province,
+      //   city: _this.policyHolderInfo.city,
+      //   county: _this.policyHolderInfo.county,
+      // }
+      // const insuredPersonInfoObject = {
+      //   province: _this.insuredPersonInfo.province,
+      //   city: _this.insuredPersonInfo.city,
+      //   county: _this.insuredPersonInfo.county,
+      // }
+      // this.selectedOptions1 = searchkey(Object.values(ownerInfoObject))
+      // this.selectedOptions2 = searchkey(Object.values(policyHolderInfoObject))
+      // this.selectedOptions3 = searchkey(Object.values(insuredPersonInfoObject))
       if (_this.paramsEdit.carinfo.transferFlag) {
 
         this.transferDateShow = true;

+ 35 - 4
src/views/Letter/Orderlist.vue

@@ -33,12 +33,13 @@
         </el-col>
         <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
           <el-form-item label="订单状态">
-            <el-select v-model="pageRequest.orderStatus" class="widths">
-              <el-option label="报价中" value="0"></el-option>
+            <el-select v-model="pageRequest.orderStatus" class="widths" >
+              <el-option v-for="val in optionsStatus" :key='val.dictValue' :label="val.dictTag" :value="val.dictValue"></el-option>
+<!--          <el-option label="报价中" value="0"></el-option>
               <el-option label="待核保" value="1"></el-option>
               <el-option label="已核保待缴费" value="2"></el-option>
               <el-option label="已承保" value="3"></el-option>
-              <el-option label="人工核保" value="4"></el-option>
+              <el-option label="人工核保" value="4"></el-option> -->
             </el-select>
           </el-form-item>
         </el-col>
@@ -70,6 +71,7 @@
               <div>{{ item.createtime }}</div>
             </div>
             <div slot="reference" class="name-wrapper flex a-c j-c" style="margin:0 20px; width: 100px;">
+
               <el-tag v-if="item.orderstatus == '0'" type="success" size="medium">报价中</el-tag>
               <el-tag v-if="item.orderstatus == '1'" type="warning" size="medium">待核保</el-tag>
               <el-tag v-if="item.orderstatus == '2'" type="danger" size="medium">已核保待缴费</el-tag>
@@ -80,6 +82,9 @@
               <el-button size="mini" type="text"
                 v-if="item.orderstatus == '2' && ['恒邦财险', '众安财险', '中国人寿', '安盛天平', '紫金财险'].includes(item.inscompany)"
                 @click="querystatus(item)" style="color:#f56c6c">缴费状态查询</el-button>
+              <el-button size="mini" type="text"
+                v-if="item.orderstatus == '2' && item.inscompany=='永诚财险'"
+                @click="refreshStatus(item)" style="color:#f56c6c">缴费状态查询</el-button>
               <el-button size="mini" type="text" v-if="item.orderstatus == '2' && ['紫金财险'].includes(item.inscompany)"
                 @click="cancelorder(item)" style="color:#f56c6c">撤单</el-button>
               <el-button size="mini" type="text" v-if="item.orderstatus == '2'" @click="carcode(scope.row, item)"
@@ -101,7 +106,7 @@
           <el-tag v-if="scope.row.orderstatus == '1'" type="warning" size="small">待核保</el-tag>
           <el-tag v-if="scope.row.orderstatus == '2'" type="danger" size="small">已核保待缴费</el-tag>
           <el-tag v-if="scope.row.orderstatus == '3'" type="danger" size="small">已承保</el-tag>
-          <el-tag v-if="scope.row.orderstatus == '4'" type="danger" size="small">人工核保</el-tag>
+          <el-tag v-if="scope.row.orderstatus == '4'" type="danger" size="small">核保退回</el-tag>
         </template>
       </el-table-column>
 
@@ -1004,6 +1009,7 @@ export default {
   data() {
     return {
       value2: "",
+      optionsStatus:[],
       dialogVisible: false,
       codedialogVisible: false,
       loading: false,
@@ -1069,6 +1075,9 @@ export default {
     }
   },
   created() {
+    this.$api.insCompany.dicType('insOrderStatus').then(res=>{
+      this.optionsStatus=res.data.ddList
+    })
     this.peopleid = Cookies.get('user');
     this.pageRequest.deptId = JSON.parse(localStorage.getItem('user_data')).deptId;
     this.$api.dept.findDeptTree().then((res) => {
@@ -1176,6 +1185,28 @@ export default {
         });
       }
 
+    },
+     //y永城查询缴费状态
+    refreshStatus(item){
+      this.$api.letter.orderStatusyongcheng( item.id ).then(res => {
+        if(res.code==200){
+          this.$message({ message:'已刷新状态', type: "success" })
+          this.loading = true;
+            this.$api.letter.queryOrders(this.pageRequest).then((res) => {
+              if (res.code == "200") {
+                this.loading = false;
+                this.pageResult = res.data.content;
+                this.pageNum = res.data.pageNum;
+                this.totalSize = res.data.totalSize;
+                this.pageResult.forEach(val => {
+                  this.$set(val, "expanded", false);
+                });
+              } else {
+                this.loading = false;
+              }
+            })
+        }
+      })
     },
     //查询缴费状态
     querystatus(item) {