|  | @@ -215,8 +215,12 @@ import {
 | 
	
		
			
				|  |  |    selectTVoyagef,
 | 
	
		
			
				|  |  |    selectPortName,
 | 
	
		
			
				|  |  |  } from "@/api/finance/kaihe/contrast";
 | 
	
		
			
				|  |  | -import { getList,getExcel } from "@/api/kaihe-reportManagement/profitGeneralLedger";
 | 
	
		
			
				|  |  | +import {
 | 
	
		
			
				|  |  | +  getList,
 | 
	
		
			
				|  |  | +  getExcel,
 | 
	
		
			
				|  |  | +} from "@/api/kaihe-reportManagement/profitGeneralLedger";
 | 
	
		
			
				|  |  |  import columnSetting from "@/components/ColumnSetting/index";
 | 
	
		
			
				|  |  | +import Cookies from "js-cookie";
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
	
		
			
				|  | @@ -247,6 +251,7 @@ export default {
 | 
	
		
			
				|  |  |            fName: "审核通过",
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |        ],
 | 
	
		
			
				|  |  | +      sysType:null,
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    components: {
 | 
	
	
		
			
				|  | @@ -263,6 +268,7 @@ export default {
 | 
	
		
			
				|  |  |      selectPortName().then((res) => {
 | 
	
		
			
				|  |  |        this.portNames = res.rows;
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  | +    this.sysType = Cookies.get("sysType");
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    activated() {
 | 
	
		
			
				|  |  |      this.$refs.columnSetting.getRow(this.tableOption);
 | 
	
	
		
			
				|  | @@ -270,7 +276,7 @@ export default {
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  |      /** 导出按钮操作 */
 | 
	
		
			
				|  |  |      handleExport() {
 | 
	
		
			
				|  |  | -       let that=this
 | 
	
		
			
				|  |  | +      let that = this;
 | 
	
		
			
				|  |  |        this.$confirm("是否确认导出所有利润总账主数据项?", "警告", {
 | 
	
		
			
				|  |  |          confirmButtonText: "确定",
 | 
	
		
			
				|  |  |          cancelButtonText: "取消",
 | 
	
	
		
			
				|  | @@ -309,14 +315,30 @@ export default {
 | 
	
		
			
				|  |  |            ) {
 | 
	
		
			
				|  |  |              const values = data.map((item) => Number(item[column.property]));
 | 
	
		
			
				|  |  |              if (!values.every((value) => isNaN(value))) {
 | 
	
		
			
				|  |  | -              sums[index] =Number(values.reduce((prev, curr) => {
 | 
	
		
			
				|  |  | -                const value = Number(curr);
 | 
	
		
			
				|  |  | -                if (!isNaN(value)) {
 | 
	
		
			
				|  |  | -                  return prev + curr;
 | 
	
		
			
				|  |  | -                } else {
 | 
	
		
			
				|  |  | -                  return prev;
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -              }, 0)/10000).toFixed(2)+'万'
 | 
	
		
			
				|  |  | +              if (this.sysType == 3) {
 | 
	
		
			
				|  |  | +                sums[index] =
 | 
	
		
			
				|  |  | +                  Number(
 | 
	
		
			
				|  |  | +                    values.reduce((prev, curr) => {
 | 
	
		
			
				|  |  | +                      const value = Number(curr);
 | 
	
		
			
				|  |  | +                      if (!isNaN(value)) {
 | 
	
		
			
				|  |  | +                        return prev + curr;
 | 
	
		
			
				|  |  | +                      } else {
 | 
	
		
			
				|  |  | +                        return prev;
 | 
	
		
			
				|  |  | +                      }
 | 
	
		
			
				|  |  | +                    }, 0)).toFixed(2) + "元";
 | 
	
		
			
				|  |  | +              } else {
 | 
	
		
			
				|  |  | +                sums[index] =
 | 
	
		
			
				|  |  | +                  Number(
 | 
	
		
			
				|  |  | +                    values.reduce((prev, curr) => {
 | 
	
		
			
				|  |  | +                      const value = Number(curr);
 | 
	
		
			
				|  |  | +                      if (!isNaN(value)) {
 | 
	
		
			
				|  |  | +                        return prev + curr;
 | 
	
		
			
				|  |  | +                      } else {
 | 
	
		
			
				|  |  | +                        return prev;
 | 
	
		
			
				|  |  | +                      }
 | 
	
		
			
				|  |  | +                    }, 0) / 10000
 | 
	
		
			
				|  |  | +                  ).toFixed(2) + "万";
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                sums[index] = "0";
 | 
	
		
			
				|  |  |              }
 |