祁鹏飞 2 месяцев назад
Родитель
Сommit
aa2bf0324d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/views/externalAgreement/agreement/agreementDetails.vue

+ 3 - 3
src/views/externalAgreement/agreement/agreementDetails.vue

@@ -481,7 +481,7 @@ const columns = [
     prop: "costExternalTypeAdds", label: "交强险费用", width: '300', formatter: (row: any) => {
       let info = row.costExternalTypeAdds.find((val: any) => val.costType == '交强险');
       if (info) {
-        return `入口:${info.inlet?.toFixed(2)}% 出口:${info.export?.toFixed(2)}%\n加投:${info.addThrow?.toFixed(2)}% 留点:${info.keepPointRatio?.toFixed(2)}%`
+        return `入口:${info.inlet?.toFixed(2) ?? '--' }% 出口:${info.export?.toFixed(2) ?? '--'}%\n加投:${info.addThrow?.toFixed(2) ?? '--'}% 留点:${info.keepPointRatio?.toFixed(2) ?? '--'}%`
       }else {
         return '-'
       }
@@ -491,7 +491,7 @@ const columns = [
     prop: "costExternalTypeAdds", label: "商业险费用", width: '300', formatter: (row: any) => {
       let info = row.costExternalTypeAdds.find((val: any) => val.costType == '商业险');
       if (info) {
-        return `入口:${info.inlet?.toFixed(2)}% 出口:${info.export?.toFixed(2)}%\n加投:${info.addThrow?.toFixed(2)}% 留点:${info.keepPointRatio?.toFixed(2)}%`
+        return `入口:${info.inlet?.toFixed(2) ?? '--'}% 出口:${info.export?.toFixed(2) ?? '--'}%\n加投:${info.addThrow?.toFixed(2) ?? '--'}% 留点:${info.keepPointRatio?.toFixed(2) ?? '--'}%`
       }else {
         return '-'
       }
@@ -501,7 +501,7 @@ const columns = [
     prop: "costExternalTypeAdds", label: "驾意险费用", width: '300', formatter: (row: any) => {
       let info = row.costExternalTypeAdds.find((val: any) => val.costType == '驾意险');
       if (info) {
-        return `入口:${info.inlet?.toFixed(2)}% 出口:${info.export?.toFixed(2)}%\n加投:${info.addThrow?.toFixed(2)}% 留点:${info.keepPointRatio?.toFixed(2)}%`
+        return `入口:${info.inlet?.toFixed(2) ?? '--'}% 出口:${info.export?.toFixed(2) ?? '--'}%\n加投:${info.addThrow?.toFixed(2) ?? '--'}% 留点:${info.keepPointRatio?.toFixed(2) ?? '--'}%`
       }else {
         return '-'
       }