Переглянути джерело

成本分配表-短出值/销售订单总额

jbb 1 рік тому
батько
коміт
96e352219b
1 змінених файлів з 5 додано та 1 видалено
  1. 5 1
      src/views/reportForms/cost-allocation-table.vue

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

@@ -535,6 +535,10 @@ export default {
             this.PrintButton = false
              this.loading = false
             this.detailsPlanNum = res.result //所有详情
+            if(Number(this.detailsPlanNum.shortseveral)<0){
+              this.detailsPlanNum.shortseveral = 0
+              this.detailsPlanNum.shortvalue = 0
+            }
             var fileList =  (this.detailsPlanNum.attachs!==''&&this.detailsPlanNum.attachs)?this.detailsPlanNum.attachs.split(","):[]
               this.fileList = []
               if(fileList.length!==0){
@@ -736,8 +740,8 @@ export default {
           // procesUnitPriceusd:procesUnitPriceusdAll.toFixed(3),
           processCost:processCostAll.toFixed(3)
         }
+        this.detailsPlanNum.salesordersLocaltotal = rmbAmountAll.toFixed(2)
         //发运明细-合计行
-       
         if(this.$refs.unitTabs.shipData.length!==0 ){
           if(this.$refs.unitTabs.shipData[this.$refs.unitTabs.shipData.length-1].outdata=='合计'){
             this.$refs.unitTabs.shipData.pop()