瀏覽代碼

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

jingbb 1 年之前
父節點
當前提交
f415f31be4
共有 1 個文件被更改,包括 3 次插入1 次删除
  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