|
@@ -77,10 +77,9 @@
|
|
|
<el-date-picker
|
|
|
class="selectStyle"
|
|
|
v-model="searchForm.startTime"
|
|
|
- type="datetime"
|
|
|
+ type="date"
|
|
|
placeholder="选择日期时间"
|
|
|
- default-time="00:00:00"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
@@ -90,10 +89,9 @@
|
|
|
<el-date-picker
|
|
|
class="selectStyle"
|
|
|
v-model="searchForm.endTime"
|
|
|
- type="datetime"
|
|
|
+ type="date"
|
|
|
placeholder="选择日期时间"
|
|
|
- default-time="23:59:59"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
@@ -416,6 +414,14 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
+ label="折让金额"
|
|
|
+ prop="allowanceAmount"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
label="暂扣返利"
|
|
|
prop="withholdAmount"
|
|
|
min-width="160"
|
|
@@ -491,6 +497,13 @@ export default {
|
|
|
bill: "COMMONLY",
|
|
|
isCustomer: JSON.parse(localStorage.getItem("supply_user")).isCustomer,
|
|
|
isDisabled: false,
|
|
|
+ isCustomerList: {
|
|
|
+ customerId: JSON.parse(localStorage.getItem("supply_user")).customerId,
|
|
|
+ customerName: JSON.parse(localStorage.getItem("supply_user"))
|
|
|
+ .customerName,
|
|
|
+ customerNumber: JSON.parse(localStorage.getItem("supply_user"))
|
|
|
+ .customerNumber,
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -533,15 +546,17 @@ export default {
|
|
|
next((vm) => {
|
|
|
// 这个时候组件还没有创建,所以要通过vm来访问
|
|
|
console.log(vm);
|
|
|
+ vm.getCustomerDataList();
|
|
|
if (
|
|
|
from.path == "/finance/details/balance_sum" &&
|
|
|
- to.path == "/finance/details/standbook_list"
|
|
|
+ to.path == "/finance/details/standbook_list" &&
|
|
|
+ vm.$route.query.customerId
|
|
|
) {
|
|
|
//只有是从A进到B页面才执行
|
|
|
// 将要执行的逻辑
|
|
|
|
|
|
vm.isDisabled = true;
|
|
|
- vm.searchForm.customerId = vm.$route.query.customerName;
|
|
|
+ vm.searchForm.customerId = vm.$route.query.customerId;
|
|
|
vm.changeFn(vm.$route.query.customerId);
|
|
|
vm.getDataList({
|
|
|
pageSize: vm.pageSize,
|
|
@@ -552,14 +567,13 @@ export default {
|
|
|
});
|
|
|
} else if (vm.isCustomer) {
|
|
|
vm.isDisabled = true;
|
|
|
- vm.searchForm.customerId = vm.$store.state.user.customerName;
|
|
|
+ vm.searchForm.customerId = vm.$store.state.user.customerId;
|
|
|
vm.changeFn(vm.$store.state.user.customerId);
|
|
|
vm.getDataList({
|
|
|
pageSize: vm.pageSize,
|
|
|
pageNum: vm.currentPage,
|
|
|
type: vm.bill,
|
|
|
- customerName: vm.$store.state.user.customerName,
|
|
|
- customerNumber: vm.$store.state.user.customerNumber,
|
|
|
+ ...vm.isCustomerList,
|
|
|
});
|
|
|
} else {
|
|
|
vm.searchForm.customerId = "";
|
|
@@ -689,8 +703,7 @@ export default {
|
|
|
pageSize: this.pageSize,
|
|
|
pageNum: this.currentPage,
|
|
|
type: this.bill,
|
|
|
- customerName: this.$store.state.user.customerName,
|
|
|
- customerNumber: this.$store.state.user.customerNumber,
|
|
|
+ ...this.isCustomerList,
|
|
|
});
|
|
|
} else {
|
|
|
this.getDataList({
|
|
@@ -726,8 +739,7 @@ export default {
|
|
|
pageSize: this.pageSize,
|
|
|
pageNum: this.currentPage,
|
|
|
type: this.bill,
|
|
|
- customerName: this.$store.state.user.customerName,
|
|
|
- customerNumber: this.$store.state.user.customerNumber,
|
|
|
+ ...this.isCustomerList,
|
|
|
});
|
|
|
} else {
|
|
|
this.getDataList({
|
|
@@ -752,8 +764,11 @@ export default {
|
|
|
// this.walletList = [];
|
|
|
// this.customerName = "";
|
|
|
// this.customerNumber = "";
|
|
|
- if (this.isCustomer || this.$route.query.customerId) {
|
|
|
+ if (this.isCustomer) {
|
|
|
await this.$refs.searchForm.resetFields();
|
|
|
+ this.searchForm.customerId = this.$store.state.user.customerId;
|
|
|
+ } else if (this.$route.query.customerId) {
|
|
|
+ this.searchForm.customerId = this.$route.query.customerId;
|
|
|
} else {
|
|
|
this.walletList = [];
|
|
|
this.customerName = "";
|
|
@@ -791,8 +806,7 @@ export default {
|
|
|
pageSize: this.pageSize,
|
|
|
pageNum: this.currentPage,
|
|
|
type: this.bill,
|
|
|
- customerName: this.$store.state.user.customerName,
|
|
|
- customerNumber: this.$store.state.user.customerNumber,
|
|
|
+ ...this.isCustomerList,
|
|
|
});
|
|
|
} else {
|
|
|
this.getDataList({
|
|
@@ -833,6 +847,7 @@ export default {
|
|
|
pageSize: this.pageSize,
|
|
|
pageNum: this.currentPage,
|
|
|
type: v,
|
|
|
+ customerId: this.$route.query.customerId,
|
|
|
customerName: this.$route.query.customerName,
|
|
|
customerNumber: this.$route.query.customerNumber,
|
|
|
});
|
|
@@ -842,9 +857,8 @@ export default {
|
|
|
...this.searchForm,
|
|
|
pageSize: this.pageSize,
|
|
|
pageNum: this.currentPage,
|
|
|
- type: this.bill,
|
|
|
- customerName: this.$store.state.user.customerName,
|
|
|
- customerNumber: this.$store.state.user.customerNumber,
|
|
|
+ type: v,
|
|
|
+ ...this.isCustomerList,
|
|
|
});
|
|
|
} else {
|
|
|
this.getDataList({
|