Explorar el Código

成本分配表

jbb hace 1 año
padre
commit
b0f580ac0c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/views/reportForms/cost-allocation-table.vue

+ 2 - 2
src/views/reportForms/cost-allocation-table.vue

@@ -790,8 +790,8 @@ export default {
       if(item.accidentUndertaker!=='合计'){
         amountAll+=Number(item.amount) 
         amountrmbAll+=Number(item.amountrmb)  
-        pkorgAmountAll+=Number(item.pkorgAmount)
-        pkorgAmountrmbAll+=Number(item.pkorgAmountrmb)
+        pkorgAmountAll+=item.pkorgAmount?Number(item.pkorgAmount):0
+        pkorgAmountrmbAll+=item.pkorgAmountrmb?Number(item.pkorgAmountrmb):0
       }
      })
      this.detailsPlanNum.pkorgAmount = pkorgAmountAll