Procházet zdrojové kódy

1. 共享保额的bug修改

785834757 před 1 rokem
rodič
revize
c4c7c3f77d
1 změnil soubory, kde provedl 10 přidání a 6 odebrání
  1. 10 6
      src/views/Task/daikeComponents/KtLetter1.vue

+ 10 - 6
src/views/Task/daikeComponents/KtLetter1.vue

@@ -1318,8 +1318,8 @@ agreementitem, agreementindex
                               <img src="@/icon/icon-chengse.png">
                               <img src="@/icon/icon-chengse.png">
                               <span>{{ kinds.kindName }}</span>
                               <span>{{ kinds.kindName }}</span>
                             </div>
                             </div>
-                            <div v-if="kinds.kindCode != 'A'" class="w-60"> {{ toWan(kinds.amount) }}</div>
-                            <div v-else class="w-60">{{ toWan(kinds.amount) }}</div>
+                            <div v-if="kinds.kindCode != 'A'" class="w-60"> {{ toWan(kinds.kindCode,kinds.amount) }}</div>
+                            <div v-else class="w-60">{{ toWan(kinds.kindCode,kinds.amount) }}</div>
                           </div>
                           </div>
                         </div>
                         </div>
                         <div v-for="(kinds, kindIndex) in reslistitem.programme.kinds.additional" :key="kindIndex">
                         <div v-for="(kinds, kindIndex) in reslistitem.programme.kinds.additional" :key="kindIndex">
@@ -1328,7 +1328,7 @@ agreementitem, agreementindex
                               <img src="@/icon/icon-chengse.png">
                               <img src="@/icon/icon-chengse.png">
                               <span>{{ kinds.kindName }}</span>
                               <span>{{ kinds.kindName }}</span>
                             </div>
                             </div>
-                            <div class="w-60"> {{ toWan(kinds.amount) }}</div>
+                            <div class="w-60"> {{ toWan(kinds.kindCode,kinds.amount) }}</div>
                           </div>
                           </div>
                         </div>
                         </div>
                         <div class="table-list-content"
                         <div class="table-list-content"
@@ -1477,7 +1477,7 @@ agreementitem, agreementindex
                             <img src="@/icon/icon-lanse.png">
                             <img src="@/icon/icon-lanse.png">
                             <span style="margin-left: 0;">{{ kinds.alias || kinds.kindName }}</span>
                             <span style="margin-left: 0;">{{ kinds.alias || kinds.kindName }}</span>
                           </div>
                           </div>
-                          <div class="w-50 w-55">{{ toWan(kinds.amount, 'fw') }}</div>
+                          <div class="w-50 w-55">{{ toWan(kinds.kindCode,kinds.amount, 'fw') }}</div>
                         </div>
                         </div>
                         <div class="table-list-content"
                         <div class="table-list-content"
                           v-if="reslistitem.programme && reslistitem.programme.kinds && !reslistitem.programme.kinds.service.length">
                           v-if="reslistitem.programme && reslistitem.programme.kinds && !reslistitem.programme.kinds.service.length">
@@ -6426,7 +6426,9 @@ export default {
       );
       );
       this.$forceUpdate();
       this.$forceUpdate();
     },
     },
-    toWan(num, type) {
+    toWan(kindCode, num, type) {
+      console.log(kindCode)
+      console.log(type);
       if (type == "fw") {
       if (type == "fw") {
         return num + "次";
         return num + "次";
       }
       }
@@ -6436,9 +6438,11 @@ export default {
         } else {
         } else {
           return (num / 10000).toFixed(4) + "万";
           return (num / 10000).toFixed(4) + "万";
         }
         }
+      } else if (num == 1 && kindCode == 'A') {
+        return "投保";
       } else if (num == 1) {
       } else if (num == 1) {
         return "共享保额";
         return "共享保额";
-      } else {
+      }else{
         return num;
         return num;
       }
       }
     },
     },