From 34b154be6ee139490d82920f0cee2cd03945267a Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期一, 28 十月 2024 09:06:49 +0800 Subject: [PATCH] feat:库管确认装卸单位显示 --- pages/quality-inspection-page/qualityMy/quality-my.vue | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/pages/quality-inspection-page/qualityMy/quality-my.vue b/pages/quality-inspection-page/qualityMy/quality-my.vue index a786db7..a31d171 100644 --- a/pages/quality-inspection-page/qualityMy/quality-my.vue +++ b/pages/quality-inspection-page/qualityMy/quality-my.vue @@ -247,7 +247,8 @@ logoutShow: false, logoutTitle: '鎻愮ず', logoutContent: '鏄惁纭閫�鍑�', - BaseUrl + BaseUrl, + phoneList:[] }; }, onShow() { @@ -264,7 +265,7 @@ url: `${BaseUrl}/admin/dict/page`, method: 'GET', data: { - dictType:'phone' + dictType:'Setings' }, header: { Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'), @@ -285,7 +286,11 @@ 'CLIENT_TOC': 'Y', }, success: res => { - this.phoneList=res.data.data.records + res.data.data.records.forEach(item=>{ + if(item.description.includes('鑱旂郴')){ + this.phoneList=item.value.split(',') + } + }) }, fail: err => { } @@ -374,17 +379,11 @@ this.logoutShow = false; }, contactUs(){ - let data=[] - this.phoneList.map(item=>{ - item.value.split(',').map(ite=>{ - data.push(ite) - }) - }) uni.showActionSheet({ - itemList: Array.from(new Set(data)), - success: (res) => { + itemList: this.phoneList, + success: (res) => { uni.makePhoneCall({ - phoneNumber:Array.from(new Set(data))[res.tapIndex + 1] + phoneNumber:this.phoneList[res.tapIndex].split(":")[1] }) }, fail: (err) => { -- Gitblit v1.9.1