Browse Source

成本分配表/成本分配列表-事故金额计算公式修改

jingbb 1 month ago
parent
commit
5b8b31f227

+ 2 - 2
src/views/cost-allocation-total/costDetailDrawer.vue

@@ -978,8 +978,8 @@ export default {
           rmbMoney+=Number(item.amountrmb)
         }
       })
-      this.detailsPlanNum.accidentUsdamount = usaMoney.toFixed(2)
-      this.detailsPlanNum.accidentcnyAmount = rmbMoney.toFixed(2)
+      this.detailsPlanNum.accidentUsdamount = (usaMoney+rmbMoney/Number(this.detailsPlanNum.exchangeRate)).toFixed(2)
+      this.detailsPlanNum.accidentcnyAmount = (rmbMoney+usaMoney*Number(this.detailsPlanNum.exchangeRate)).toFixed(2)
     },
 
     //  主表:人民币费用支出  弹框

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

@@ -952,8 +952,8 @@ export default {
           rmbMoney+=Number(item.amountrmb)
         }
       })
-      this.detailsPlanNum.accidentUsdamount = usaMoney.toFixed(2)
-      this.detailsPlanNum.accidentcnyAmount = rmbMoney.toFixed(2)
+      this.detailsPlanNum.accidentUsdamount = (usaMoney+rmbMoney/Number(this.detailsPlanNum.exchangeRate)).toFixed(2)
+      this.detailsPlanNum.accidentcnyAmount = (rmbMoney+usaMoney*Number(this.detailsPlanNum.exchangeRate)).toFixed(2)
     },
 
     // 页面 保存