|
@@ -98,7 +98,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
- <el-col :xs="24" :sm="24" :lg="18">
|
|
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="18">
|
|
<el-form-item label="" class="fr">
|
|
<el-form-item label="" class="fr">
|
|
<el-button size="small" @click="resetFn">清空</el-button>
|
|
<el-button size="small" @click="resetFn">清空</el-button>
|
|
<el-button size="small" type="primary" @click="searchFn"
|
|
<el-button size="small" type="primary" @click="searchFn"
|
|
@@ -450,7 +450,7 @@ import {
|
|
getDictList,
|
|
getDictList,
|
|
getCustomerList,
|
|
getCustomerList,
|
|
} from "@/api/finance/standbook_list";
|
|
} from "@/api/finance/standbook_list";
|
|
-import { number } from "echarts";
|
|
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -501,6 +501,35 @@ export default {
|
|
// this.getDataDict();
|
|
// this.getDataDict();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //合计
|
|
|
|
+ getSummaries(param) {
|
|
|
|
+ // console.log(this.$getSummaries, 333333333);
|
|
|
|
+ console.log(param, "param");
|
|
|
|
+ // const { columns, data } = param;
|
|
|
|
+ // const sums = [];
|
|
|
|
+ // columns.forEach((column, index) => {
|
|
|
|
+ // if (index === 0) {
|
|
|
|
+ // sums[index] = "总价";
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
|
|
+ // const values = data.map((item) => Number(item[column.property]));
|
|
|
|
+ // if (!values.every((value) => isNaN(value))) {
|
|
|
|
+ // sums[index] = values.reduce((prev, curr) => {
|
|
|
|
+ // const value = Number(curr);
|
|
|
|
+ // if (!isNaN(value)) {
|
|
|
|
+ // return prev + curr;
|
|
|
|
+ // } else {
|
|
|
|
+ // return prev;
|
|
|
|
+ // }
|
|
|
|
+ // }, 0);
|
|
|
|
+ // sums[index] += " 元";
|
|
|
|
+ // } else {
|
|
|
|
+ // sums[index] = "N/A";
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+
|
|
|
|
+ // return sums;
|
|
|
|
+ },
|
|
//改变经销商
|
|
//改变经销商
|
|
async changeFn(v) {
|
|
async changeFn(v) {
|
|
this.searchForm.customerWalletId = "";
|
|
this.searchForm.customerWalletId = "";
|