From 9afc52992ec73ebb5155eaeca573399bd07cfd82 Mon Sep 17 00:00:00 2001 From: dengxiongfei Date: Thu, 27 Jan 2022 15:49:37 +0800 Subject: [PATCH] bug --- pages/add-record/index.vue | 9 ++++++--- pages/follow-up-records/index.vue | 12 +++++------- pages/mine/index.vue | 17 ++++++++++++++++- pages/trade/quotationList.vue | 1 - 4 files changed, 27 insertions(+), 12 deletions(-) diff --git a/pages/add-record/index.vue b/pages/add-record/index.vue index d96a409..1fc86ab 100644 --- a/pages/add-record/index.vue +++ b/pages/add-record/index.vue @@ -78,14 +78,17 @@ export default { form: { address: '', content: '', - customerEnterpriseId: this.$store.state.supplierInfo.id || null, - mallSupplierId: this.$store.state.supplierInfo.supplierId || null, + customerEnterpriseId: null, + mallSupplierId: this.$store.state.supplierInfo.supplierId || null, remark: '', respondent: '' } } }, - onLoad() { + onLoad(option) { + if (option.customerEnterpriseId) { + this.form.customerEnterpriseId = option.customerEnterpriseId + } this.locatePosition() }, methods: { diff --git a/pages/follow-up-records/index.vue b/pages/follow-up-records/index.vue index f2b93c0..83c948d 100644 --- a/pages/follow-up-records/index.vue +++ b/pages/follow-up-records/index.vue @@ -78,10 +78,8 @@ export default { params: { asc: '', desc: '', - customerEnterpriseId: this.$store.state.supplierInfo.id || null, + customerEnterpriseId: null, mallSupplierId: this.$store.state.supplierInfo.supplierId || null - // enterpriseIds : ['651107734133018624'], - // mallSupplierId : '670334117090562048', }, pagination: { pageNum: 0, // 初始会执行一次下拉加载 @@ -103,9 +101,9 @@ export default { this.downCallback() }, onLoad(option) { - // if (option.customerEnterpriseId) { - // this.params.customerEnterpriseId = option.customerEnterpriseId - // } + if (option.customerEnterpriseId) { + this.params.customerEnterpriseId = option.customerEnterpriseId + } }, methods: { back, @@ -133,7 +131,7 @@ export default { }) }, addTap() { - go2('add-record') + go2('add-record', { customerEnterpriseId: this.params.customerEnterpriseId }) }, downCallback() { this.pagination.pageNum = 1 diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 99c53f8..ac9de18 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -21,7 +21,12 @@ - {{ userInfo.supplierName }} + + {{ hasCompany ? userInfo.supplierName : '点击完善企业信息' }} + @@ -292,6 +297,16 @@ export default { }, tradeDate() { this.getStatistics() + }, + hasLogin(val) { + if (!val) { + // 重置数据 + this.tradeData = { + tradingVolume: 0, + volumeOfBusiness: 0, + orderQuantity: 0 + } + } } }, computed: { diff --git a/pages/trade/quotationList.vue b/pages/trade/quotationList.vue index 9885f69..f47a89b 100644 --- a/pages/trade/quotationList.vue +++ b/pages/trade/quotationList.vue @@ -105,7 +105,6 @@ export default { this.quotationDown() } }, - onLoad(option) {}, filters: { replyStatusName(status) { let name = ''