Jelajahi Sumber

fix: 添加车损验车事项

wuguojie 1 tahun lalu
induk
melakukan
efd31da79f
2 mengubah file dengan 33 tambahan dan 3 penghapusan
  1. 10 1
      src/http/moudules/letter.js
  2. 23 2
      src/views/Task/daikeComponents/KtLetter1.vue

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

@@ -1544,4 +1544,13 @@ export const batchOrderStatus = (data) => {
     method: 'post',
     data
   })
-}
+}
+
+// 车损验车事项
+export const getYaCarDamageVerificationDict = (data) => {
+  return axios({
+    url: '/insurance/crawler/getYaCarDamageVerificationDict',
+    method: 'get',
+    data
+  })
+}

+ 23 - 2
src/views/Task/daikeComponents/KtLetter1.vue

@@ -1421,6 +1421,14 @@ agreementitem, agreementindex
                                       placeholder="请输入"></el-input>
                         </div>
                     </div>
+                    <div class="card-table flex a-c j-s" v-show="reslistitem.cnName == 'yongan'">
+                        <div class="flex a-c mrgin-5">
+                            <span style="margin-right: 5px;">车损验车事项:</span>
+                            <el-select size="small" v-model="reslistitem.result.carChecker">
+                                <el-option v-for="item in verificationDict" :key="item.code" :value="item.code" :label="item.desc"></el-option>
+                            </el-select>
+                        </div>
+                    </div>
                   </div>
                 </el-col>
                 <!-- 服务明细 -->
@@ -4449,6 +4457,7 @@ import imageDialog from "@/views/Core/components/imageDialog.vue";
 import { mapState } from "vuex";
 import Ktletter1Popover from "./components/LetterPopover.vue";
 import dayjs from "dayjs";
+import {getYaCarDamageVerificationDict} from "../../../http/moudules/letter";
 
 export default {
   inject: ["reload"],
@@ -4496,6 +4505,7 @@ export default {
       }
     };
     return {
+      verificationDict: [], // 车损验车事项
       validateCarCodeShow: false,
       vehicleInspectionUrl: "",
       colSpan: {
@@ -6226,6 +6236,7 @@ export default {
   mounted() {
     this.getCompanyList(this.$route.query.data);
     this.onScroll();
+    this.initVerificationDict();
 
     if (this.$route.query.data) {
       if (this.isDateBeforeToday(this.$route.query.data.jqstartdate)) {
@@ -6269,6 +6280,14 @@ export default {
     }
   },
   methods: {
+    // 车损验车事项
+    initVerificationDict() {
+        this.$api.letter.getYaCarDamageVerificationDict().then(res => {
+            if(res.code == 200) {
+                this.verificationDict = res.data
+            }
+        })
+    },
      //补录订单
     supplementOrder(id) {
       let params = {
@@ -6398,7 +6417,7 @@ export default {
               this.$api.letter.ruleFilterCompany(param).then(res => {
                 if (res.code == 200) {
                   res.data.map(ele => {
-                    ele["result"] = {};
+                    ele["result"] = ele.namesimple==='永安财险'?{carChecker: 1}:{};
                     ele["quoteCode"] = 0;
                     ele["checked"] = false;
                     ele["msg"] = "";
@@ -9905,6 +9924,7 @@ export default {
 
     //永安报价
     yongan(num, id) {
+        console.log(123123123, this.totalCompanyList[num])
       let isTaxSource = this.totalCompanyList[num].isTaxSource;
       let params = {
         accidentalDrivingVo:{},
@@ -9913,7 +9933,8 @@ export default {
         agreementId: this.totalCompanyList[num].agreementId,
         kinds: this.totalCompanyList[num].kindList,
         risks: this.riskList,
-        productId: this.productId
+        productId: this.productId,
+        carChecker: this.totalCompanyList[num].result.carChecker
       };
       this.$api.letter.yonganquote(params).then(res => {
         this.totalCompanyList[num].msg = res.msg;