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