Browse Source

森语-辅料sheet-美元计算规则修改

jingbb 1 year ago
parent
commit
f415f31be4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/reportForms/cost-allocation-table.vue

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

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