|
@@ -27,7 +27,7 @@
|
|
|
>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="经销商名称" prop="customerId">
|
|
|
+ <el-form-item label="经销商名称" prop="">
|
|
|
<el-select
|
|
|
class="selectStyle"
|
|
|
v-model="searchForm.customerId"
|
|
@@ -364,8 +364,8 @@
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
- label="返利品类"
|
|
|
- prop="mainName"
|
|
|
+ label="返利类型"
|
|
|
+ prop="walletName"
|
|
|
min-width="160"
|
|
|
show-overflow-tooltip
|
|
|
></el-table-column>
|
|
@@ -404,11 +404,19 @@
|
|
|
prop=""
|
|
|
min-width="160"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{
|
|
|
+ scope.row.amountType == "OUT"
|
|
|
+ ? scope.row.amount
|
|
|
+ : -scope.row.amount
|
|
|
+ }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
label="结存"
|
|
|
- prop=""
|
|
|
+ prop="balanceAmount"
|
|
|
min-width="160"
|
|
|
show-overflow-tooltip
|
|
|
></el-table-column>
|
|
@@ -440,6 +448,7 @@ import {
|
|
|
getDictList,
|
|
|
getCustomerList,
|
|
|
} from "@/api/finance/standbook_list";
|
|
|
+import { number } from "echarts";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -452,7 +461,8 @@ export default {
|
|
|
dataList: [],
|
|
|
selectList: [],
|
|
|
dictList: [],
|
|
|
-
|
|
|
+ customerName: null,
|
|
|
+ customerNumber: null,
|
|
|
searchForm: {
|
|
|
customerId: "",
|
|
|
startTime: "",
|
|
@@ -520,6 +530,8 @@ export default {
|
|
|
pageSize: this.pageSize,
|
|
|
pageNum: this.currentPage,
|
|
|
type: this.bill,
|
|
|
+ customerName: this.customerName,
|
|
|
+ customerNumber: this.customerNumber,
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -544,6 +556,8 @@ export default {
|
|
|
pageSize: this.pageSize,
|
|
|
pageNum: this.currentPage,
|
|
|
type: this.bill,
|
|
|
+ customerName: this.customerName,
|
|
|
+ customerNumber: this.customerNumber,
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -556,15 +570,22 @@ export default {
|
|
|
//重置
|
|
|
resetFn() {
|
|
|
this.mainId = "";
|
|
|
+ this.searchForm.customerId = "";
|
|
|
this.$refs.searchForm.resetFields();
|
|
|
},
|
|
|
//查询
|
|
|
searchFn() {
|
|
|
+ this.customerName = null;
|
|
|
+ this.customerNumber = null;
|
|
|
let res = this.customerList.filter((v) => {
|
|
|
return v.id == this.searchForm.customerId;
|
|
|
});
|
|
|
- // console.log(res);
|
|
|
+ console.log(res);
|
|
|
// return;
|
|
|
+ if (res.length > 0) {
|
|
|
+ this.customerName = res[0].name;
|
|
|
+ this.customerNumber = res[0].number;
|
|
|
+ }
|
|
|
|
|
|
if (this.$route.query.customerName && this.$route.query.customerNumber) {
|
|
|
this.getDataList({
|
|
@@ -579,8 +600,8 @@ export default {
|
|
|
} else {
|
|
|
this.getDataList({
|
|
|
...this.searchForm,
|
|
|
- customerName: res[0].name,
|
|
|
- customerNumber: res[0].number,
|
|
|
+ customerName: this.customerName,
|
|
|
+ customerNumber: this.customerNumber,
|
|
|
mainId: this.mainId,
|
|
|
pageSize: this.pageSize,
|
|
|
pageNum: this.currentPage,
|
|
@@ -599,12 +620,13 @@ export default {
|
|
|
},
|
|
|
//切换列表
|
|
|
checkFn(v) {
|
|
|
- this.resetFn();
|
|
|
// this.getDataList({
|
|
|
// pageSize: 10,
|
|
|
// pageNum: 1,
|
|
|
// type: v,
|
|
|
// });
|
|
|
+ this.pageSize = 10;
|
|
|
+ this.currentPage = 1;
|
|
|
if (this.$route.query.customerName && this.$route.query.customerNumber) {
|
|
|
this.getDataList({
|
|
|
...this.searchForm,
|
|
@@ -619,8 +641,10 @@ export default {
|
|
|
this.getDataList({
|
|
|
...this.searchForm,
|
|
|
mainId: this.mainId,
|
|
|
- pageSize: 10,
|
|
|
- pageNum: 1,
|
|
|
+ customerName: this.customerName,
|
|
|
+ customerNumber: this.customerNumber,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ pageNum: this.currentPage,
|
|
|
type: v,
|
|
|
});
|
|
|
}
|