yaoyao 2 anni fa
parent
commit
6f260a6a09
1 ha cambiato i file con 20 aggiunte e 3 eliminazioni
  1. 20 3
      src/views/Task/daikeComponents/KtLetter1.vue

+ 20 - 3
src/views/Task/daikeComponents/KtLetter1.vue

@@ -1376,7 +1376,7 @@
                         " v-show="reslistitem.quoteCode == '200' &&
                         !('editStatus' in reslistitem.result)
                         " type="text" size="small" style="color: #2d4d89; font-size: 14px"
-                        @click="hbsubmitdialog(reslistitem)">下单</el-button>
+                        @click="hbsubmitdialog(reslistitem, reslistindex)">下单</el-button>
                       <el-button v-show="reslistitem.quoteCode == '200'" type="text" size="small"
                         style="color: #2d4d89; font-size: 14px"
                         @click="qoutedetail(reslistitem.result.companyId)">查看详情</el-button>
@@ -7540,7 +7540,22 @@ export default {
     //紫金特约选择
     zijinengageChange(select, row) {
       this.zijinengageList = [];
-      this.totalCompanyList[this.typeDialogIndex].zxProgramme.teyue = []
+      if (!this.totalCompanyList[this.typeDialogIndex].zxProgramme) {
+        this.totalCompanyList[this.typeDialogIndex].zxProgramme = {       // 自选方案详情
+          description: '',
+          drivingList: [],
+          jqx: {
+            name: '交通事故强制责任险'
+          },
+          kinds: {
+            additional: [],
+            main: [],
+            service: []
+          },
+          teyue: [],
+        }
+      }
+      // this.totalCompanyList[this.typeDialogIndex].programme = {}
       this.totalCompanyList[this.typeDialogIndex].programme.teyue = []
       select.map((val) => {
         this.zijinengageList.push({
@@ -10301,7 +10316,8 @@ export default {
       });
     },
   
-    hbsubmitdialog(data) {
+    hbsubmitdialog(data, index) {
+      this.typeDialogIndex = index     // 当前的公司index
       if (this.imageList1.length == 0 && this.imageList2.length == 0) {
         this.$message({ message: "影像不全,先上传影像", type: "error" });
         return;
@@ -10578,6 +10594,7 @@ export default {
                           companyId: this.companyId,
                           engageList: this.zijinengageList,
                         })
+                        
                         .then((res) => {
                           if (res.code == "200") {
                             loading.close();