From 3a618dcb6863e47c49d2a0a275807f1f68863838 Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Mon, 17 Jul 2023 16:24:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../serviceStation/serviceStation.vue | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/driverManagement/serviceStation/serviceStation.vue b/driverManagement/serviceStation/serviceStation.vue index 142eb02..ae70d5b 100644 --- a/driverManagement/serviceStation/serviceStation.vue +++ b/driverManagement/serviceStation/serviceStation.vue @@ -12,7 +12,7 @@ - {{item.siteName}} - {{item.putawayMark == 1 ? '上架' : '下架'}} + {{item.siteName}} - {{item.putawayMark == 1 ? '上架' : '下架'}}{{channelJudgment(item)}} @@ -35,7 +35,7 @@ pageSize: 15, currentPage: 1, params: { - siteName:'' + siteName: '' }, }, value: 0, @@ -55,6 +55,29 @@ this.getList() }, methods: { + channelJudgment(item) { + if (item.channelCode) { + let cenum = { + TY: '团油', + WJY: '万金油', + XOIL: '星油', + SQL: '三千里', + } + return ` - ${cenum[item.channelCode]}` + } + if (item.secondChannelCode) { + let cenum = { + CHANGYOU: '畅油', + GDQP: '广东壳牌', + LAIYOU: '来油', + QP: '壳牌', + SQ: '上汽', + TY: '团油', + } + return ` - ${cenum[item.secondChannelCode]}` + } + return '' + }, seleFn(e) { clearTimeout(this.timer) this.selecompany = e