|
@@ -357,7 +357,11 @@
|
|
|
prop="billType"
|
|
|
min-width="160"
|
|
|
show-overflow-tooltip
|
|
|
- ></el-table-column>
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.billType == 3 ? "付款单" : scope.row.billType }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
label="单据号"
|
|
@@ -480,47 +484,90 @@ export default {
|
|
|
isDisabled: false,
|
|
|
};
|
|
|
},
|
|
|
+ beforeRouteEnter(to, from, next) {
|
|
|
+ // console.log(to, from, next, 898);
|
|
|
+ next((vm) => {
|
|
|
+ // 这个时候组件还没有创建,所以要通过vm来访问
|
|
|
+ console.log(vm);
|
|
|
+ if (
|
|
|
+ from.path == "/finance/details/balance_sum" &&
|
|
|
+ to.path == "/finance/details/standbook_list"
|
|
|
+ ) {
|
|
|
+ //只有是从A进到B页面才执行
|
|
|
+ // 将要执行的逻辑
|
|
|
+
|
|
|
+ vm.isDisabled = true;
|
|
|
+ vm.searchForm.customerId = vm.$route.query.customerName;
|
|
|
+ vm.changeFn(vm.$route.query.customerId);
|
|
|
+ vm.getDataList({
|
|
|
+ pageSize: vm.pageSize,
|
|
|
+ pageNum: vm.currentPage,
|
|
|
+ type: vm.bill,
|
|
|
+ customerName: vm.$route.query.customerName,
|
|
|
+ customerNumber: vm.$route.query.customerNumber,
|
|
|
+ });
|
|
|
+ } else if (vm.isCustomer) {
|
|
|
+ vm.isDisabled = true;
|
|
|
+ vm.searchForm.customerId = vm.$store.state.user.customerName;
|
|
|
+ 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,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ vm.searchForm.customerId = "";
|
|
|
+ vm.isDisabled = false;
|
|
|
+ vm.getDataList({
|
|
|
+ pageSize: vm.pageSize,
|
|
|
+ pageNum: vm.currentPage,
|
|
|
+ type: vm.bill,
|
|
|
+ });
|
|
|
+ vm.getCustomerDataList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
|
|
|
created() {
|
|
|
// console.log(
|
|
|
// this.customerId,
|
|
|
// this.$store.state.user.customerName,
|
|
|
// this.$store.state.user.customerNumber,
|
|
|
-
|
|
|
// 777777
|
|
|
// );
|
|
|
-
|
|
|
- if (this.$route.query.customerName && this.$route.query.customerNumber) {
|
|
|
- this.isDisabled = true;
|
|
|
- this.searchForm.customerId = this.$route.query.customerName;
|
|
|
- this.changeFn(this.$route.query.customerId);
|
|
|
- this.getDataList({
|
|
|
- pageSize: this.pageSize,
|
|
|
- pageNum: this.currentPage,
|
|
|
- type: this.bill,
|
|
|
- customerName: this.$route.query.customerName,
|
|
|
- customerNumber: this.$route.query.customerNumber,
|
|
|
- });
|
|
|
- } else if (this.isCustomer) {
|
|
|
- this.isDisabled = true;
|
|
|
- this.searchForm.customerId = this.$store.state.user.customerName;
|
|
|
- this.changeFn(this.$store.state.user.customerId);
|
|
|
- this.getDataList({
|
|
|
- pageSize: this.pageSize,
|
|
|
- pageNum: this.currentPage,
|
|
|
- type: this.bill,
|
|
|
- customerName: this.$store.state.user.customerName,
|
|
|
- customerNumber: this.$store.state.user.customerNumber,
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.getDataList({
|
|
|
- pageSize: this.pageSize,
|
|
|
- pageNum: this.currentPage,
|
|
|
- type: this.bill,
|
|
|
- });
|
|
|
- this.getCustomerDataList();
|
|
|
- }
|
|
|
-
|
|
|
+ // if (this.$route.query.customerName && this.$route.query.customerNumber) {
|
|
|
+ // this.isDisabled = true;
|
|
|
+ // this.searchForm.customerId = this.$route.query.customerName;
|
|
|
+ // this.changeFn(this.$route.query.customerId);
|
|
|
+ // this.getDataList({
|
|
|
+ // pageSize: this.pageSize,
|
|
|
+ // pageNum: this.currentPage,
|
|
|
+ // type: this.bill,
|
|
|
+ // customerName: this.$route.query.customerName,
|
|
|
+ // customerNumber: this.$route.query.customerNumber,
|
|
|
+ // });
|
|
|
+ // } else
|
|
|
+ // if (this.isCustomer) {
|
|
|
+ // this.isDisabled = true;
|
|
|
+ // this.searchForm.customerId = this.$store.state.user.customerName;
|
|
|
+ // this.changeFn(this.$store.state.user.customerId);
|
|
|
+ // this.getDataList({
|
|
|
+ // pageSize: this.pageSize,
|
|
|
+ // pageNum: this.currentPage,
|
|
|
+ // type: this.bill,
|
|
|
+ // customerName: this.$store.state.user.customerName,
|
|
|
+ // customerNumber: this.$store.state.user.customerNumber,
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // this.getDataList({
|
|
|
+ // pageSize: this.pageSize,
|
|
|
+ // pageNum: this.currentPage,
|
|
|
+ // type: this.bill,
|
|
|
+ // });
|
|
|
+ // this.getCustomerDataList();
|
|
|
+ // }
|
|
|
// this.getCustomerDataList();
|
|
|
// this.getWalletList();
|
|
|
// this.getDataDict();
|