|
@@ -463,8 +463,8 @@ export default {
|
|
dataList: [],
|
|
dataList: [],
|
|
walletList: [],
|
|
walletList: [],
|
|
// dictList: [],
|
|
// dictList: [],
|
|
- customerName: null,
|
|
|
|
- customerNumber: null,
|
|
|
|
|
|
+ customerName: "",
|
|
|
|
+ customerNumber: "",
|
|
searchForm: {
|
|
searchForm: {
|
|
customerId: "",
|
|
customerId: "",
|
|
customerWalletId: "",
|
|
customerWalletId: "",
|
|
@@ -504,7 +504,7 @@ export default {
|
|
//改变经销商
|
|
//改变经销商
|
|
async changeFn(v) {
|
|
async changeFn(v) {
|
|
this.searchForm.customerWalletId = "";
|
|
this.searchForm.customerWalletId = "";
|
|
- let res = await getWalletCustomerList({ customerId: v });
|
|
|
|
|
|
+ let res = await getWalletCustomerList({ customerId: v, type: this.bill });
|
|
this.walletList = res.data;
|
|
this.walletList = res.data;
|
|
},
|
|
},
|
|
//获取经销商列表
|
|
//获取经销商列表
|
|
@@ -578,10 +578,12 @@ export default {
|
|
// this.dictList = res.data;
|
|
// this.dictList = res.data;
|
|
// },
|
|
// },
|
|
//重置
|
|
//重置
|
|
- resetFn() {
|
|
|
|
|
|
+ async resetFn() {
|
|
// this.searchForm.customerId = "";
|
|
// this.searchForm.customerId = "";
|
|
this.walletList = [];
|
|
this.walletList = [];
|
|
- this.$refs.searchForm.resetFields();
|
|
|
|
|
|
+ this.customerName = "";
|
|
|
|
+ this.customerNumber = "";
|
|
|
|
+ await this.$refs.searchForm.resetFields();
|
|
},
|
|
},
|
|
//查询
|
|
//查询
|
|
searchFn() {
|
|
searchFn() {
|
|
@@ -635,6 +637,7 @@ export default {
|
|
// pageNum: 1,
|
|
// pageNum: 1,
|
|
// type: v,
|
|
// type: v,
|
|
// });
|
|
// });
|
|
|
|
+ this.resetFn();
|
|
this.pageSize = 10;
|
|
this.pageSize = 10;
|
|
this.currentPage = 1;
|
|
this.currentPage = 1;
|
|
if (this.$route.query.customerName && this.$route.query.customerNumber) {
|
|
if (this.$route.query.customerName && this.$route.query.customerNumber) {
|
|
@@ -649,10 +652,10 @@ export default {
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
this.getDataList({
|
|
this.getDataList({
|
|
- ...this.searchForm,
|
|
|
|
|
|
+ // ...this.searchForm,
|
|
|
|
|
|
- customerName: this.customerName,
|
|
|
|
- customerNumber: this.customerNumber,
|
|
|
|
|
|
+ // customerName: this.customerName,
|
|
|
|
+ // customerNumber: this.customerNumber,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
pageNum: this.currentPage,
|
|
pageNum: this.currentPage,
|
|
type: v,
|
|
type: v,
|