| | |
| | | data() { |
| | | return { |
| | | curSubAccount:'', |
| | | listApi:'/api/supplierSub/sub/all', |
| | | listApi:'/api/supplierAccount/all', |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | | this.getCurrentSubAccount() |
| | | // this.getCurrentSubAccount() |
| | | }, |
| | | onShow() { |
| | | this.getList(); |
| | | async onShow() { |
| | | await this.getList(); |
| | | this.getCurrentSubAccount() |
| | | }, |
| | | async onPullDownRefresh() { |
| | | this.getList(); |
| | |
| | | |
| | | getCurrentSubAccount(){ |
| | | const currentInfo = this.$store.state.currentInfo |
| | | this.curSubAccount=currentInfo?.supplierSub?.id |
| | | if(this.currentInfo.supplierSub){ |
| | | this.curSubAccount=currentInfo?.supplierSub?.id |
| | | }else{ |
| | | this.curSubAccount=this.list[0].id |
| | | } |
| | | |
| | | }, |
| | | |
| | | async handleSwitchSubAccount(item) { |