liyg 2 年之前
父節點
當前提交
69fa2dce43

+ 6 - 14
src/views/TMS/components/bmsship/detailsStatement.vue

@@ -161,9 +161,7 @@
               width="100px"
               align="center"
             >
-             <template slot-scope="scope">
-                {{(scope.row.monthRealTonnage).toFixed(2)}}
-              </template>
+           
             </el-table-column>
            
             <el-table-column
@@ -199,9 +197,6 @@
               width="120px"
               align="center"
             >
-              <template slot-scope="scope" v-if="scope.row.totalPreviewFee">
-                {{(scope.row.totalPreviewFee).toFixed(2)}}
-              </template>
             </el-table-column>
             <el-table-column
               prop="monthMakeTonnage"
@@ -209,9 +204,7 @@
               width="100px"
               align="center"
             >
-             <template slot-scope="scope">
-                {{(scope.row.monthMakeTonnage).toFixed(2)}}
-              </template>
+            
             </el-table-column>
              <el-table-column
               prop="statementTotalAmount"
@@ -232,7 +225,6 @@
               label="操作"
               width="100px"
               align="center"
-              fixed="right"
             >
               <template slot-scope="scope">
                 <el-button type="text" @click="operate(scope.row)"
@@ -482,13 +474,13 @@ export default {
           item.totalEnTonnage = data[index - 1].totalEnTonnage;
         }
         //总计预开票金额
-        item.totalPreviewFee=Math.round(item.totalPreviewTonnage*item.unitPrice*100)/100;
+        item.totalPreviewFee = new BigNumber(item.totalPreviewTonnage).times(item.unitPrice).toFixed(2);
         //月份结算吨位/
-        item.monthRealTonnage = Math.round(item.totalEnTonnage*item.monthLoadingProportion*100)/100;
+        item.monthRealTonnage = new BigNumber(item.totalEnTonnage).times(item.monthLoadingProportion).toFixed(2);
         //月份开票吨位
-        item.monthMakeTonnage = Math.round((item.monthRealTonnage-item.totalPreviewTonnage)*100)/100;
+        item.monthMakeTonnage = new BigNumber(item.monthRealTonnage).minus(item.totalPreviewTonnage).toFixed(2);
         //月份开票金额
-        item.statementTotalAmount=Math.round((item.monthMakeTonnage*item.unitPrice-item.inspectionsFee)*100)/100;
+        item.statementTotalAmount=new BigNumber(item.monthMakeTonnage).times(item.unitPrice).minus(item.inspectionsFee).toFixed(2);
       });
       this.getSpanArr(this.tableData);
     },

+ 2 - 2
src/views/appoint/components/saleContract/dispacherSwitch.vue

@@ -24,7 +24,7 @@ export default {
   },
   methods: {
     getSwitch(){
-        this.axios.post("api/v1/uc/getDispachSwitch").then((res)=>{
+        this.axios.post("/api/v1/uc/getDispachSwitch").then((res)=>{
             if(res.data.data.isOk==0){
                 this.value=false;
             }else{
@@ -39,7 +39,7 @@ export default {
         }else{
             map.isOk=0
         }
-        this.axios.post("api/v1/uc/updateDispachSwitch",map).then((res)=>{
+        this.axios.post("/api/v1/uc/updateDispachSwitch",map).then((res)=>{
            console.log(res);
         });
     }