From 94a21e0b73d3d0e4fe0c9aad8fb3cfc256aa6245 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期一, 13 一月 2025 10:20:06 +0800 Subject: [PATCH] 1.订单提交新增没有平台运输方式不可提交 --- sub_pages/supplier/sub-account/sub-account-switch-list.vue | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/sub_pages/supplier/sub-account/sub-account-switch-list.vue b/sub_pages/supplier/sub-account/sub-account-switch-list.vue index 1b7bba3..e21c2c1 100644 --- a/sub_pages/supplier/sub-account/sub-account-switch-list.vue +++ b/sub_pages/supplier/sub-account/sub-account-switch-list.vue @@ -32,14 +32,15 @@ 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(); @@ -48,7 +49,12 @@ 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) { -- Gitblit v1.9.3