wuguojie hace 1 año
padre
commit
6693eadeea
Se han modificado 1 ficheros con 15 adiciones y 9 borrados
  1. 15 9
      src/views/Task/daikeComponents/KtLetter1.vue

+ 15 - 9
src/views/Task/daikeComponents/KtLetter1.vue

@@ -1741,6 +1741,11 @@ agreementitem, agreementindex
                             <div class="flex-1">{{ reslistitem.result.bifeeFloat ? reslistitem.result.bifeeFloat :
                                 "无" }}</div>
                         </div>
+                        <div class="table-list-content" v-if="reslistitem.namesimple == '阳光财险'">
+                            <div class="flex-1">向阳花评分:</div>
+                            <div class="flex-1">{{ reslistitem.result.xyhGrade == 0 || reslistitem.result.xyhGrade == 1 ? reslistitem.result.xyhGrade :
+                                "无" }}</div>
+                        </div>
                         <div class="table-list-content" v-if="reslistitem.namesimple == '永安财险'">
                             <div class="flex-1">评分:</div>
                             <div class="flex-1">{{ reslistitem.result.yaScore ? reslistitem.result.yaScore :
@@ -10282,7 +10287,7 @@ export default {
       let api = type == 2 ? "pythonquote" : "huataiquote";
       let isTaxSource = this.totalCompanyList[num].isTaxSource;
       let params = {
-        accidentalDrivingVo: {},
+        accidentalDrivingVo: this.totalCompanyList[num].programme.drivingList[0] || {},
         orderNo: this.orderno,
         companyId: id,
         agreementId: this.totalCompanyList[num].agreementId,
@@ -11959,16 +11964,17 @@ export default {
                   });
                 break;
               case "国任财险":
-                await this.$api.letter
-                  .insguorensubmitImage({
-                    companyId: this.companyId
-                  })
-                  .then(res => {
+                  let GRApiImage = "";
+                  GRApiImage =
+                      this.apiType == 2 ? "pythonsubmitImage" : "insguorensubmitImage";
+                  await this.$api.letter[GRApiImage]({
+                      [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
+                  }).then(res => {
                     if (res.code == "200") {
                       var _this = this;
-                      _this.$api.letter
-                        .gunrenaudit({
-                          companyId: this.companyId
+                      let auditType = this.apiType == 2? 'pythonaudit': 'gunrenaudit'
+                      _this.$api.letter[auditType]({
+                          [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
                         })
                         .then(res => {
                           if (res.code == "200") {