Procházet zdrojové kódy

成本分配表-美元金额保留两位小数

jingbb před 1 rokem
rodič
revize
2f0c2a5224
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/views/reportForms/cost-allocation-table.vue

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

@@ -761,7 +761,7 @@ export default {
       this.$refs.unitTabs.ingData.map(item=>{
           if(item.goodsName!=='合计'){
             if((!item.usdAmount|| item.usdAmount=='')||item.rmbAmount == item.usdAmount){
-              item.usdAmount = ((item.priceExcludingtax?Number(item.priceExcludingtax):0)/this.detailsPlanNum.exchangeRate)
+              item.usdAmount = ((item.priceExcludingtax?Number(item.priceExcludingtax):0)/Number(this.detailsPlanNum.exchangeRate)).toFixed(2)
             }
             if(item.rmbAmount !== item.usdAmount){  usdAmountAll+=item.usdAmount?Number(item.usdAmount):0   }
             transferCostAll+=item.transferCostAll?Number(item.transferCost):0