pull/2/head
xiaozhiyong 1 year ago
parent 096853f7d0
commit 3a618dcb68
  1. 27
      driverManagement/serviceStation/serviceStation.vue

@ -12,7 +12,7 @@
<view @tap="seleFn(item)" v-for="(item,index) in diverList " class="company_list_item"> <view @tap="seleFn(item)" v-for="(item,index) in diverList " class="company_list_item">
<uni-icons color="#2866ff" custom-prefix="iconfont" type="iconjiayou" size="30"></uni-icons> <uni-icons color="#2866ff" custom-prefix="iconfont" type="iconjiayou" size="30"></uni-icons>
<!-- <image src="../../static/selegs.png" style="width: 73rpx; height: 73rpx;"></image> --> <!-- <image src="../../static/selegs.png" style="width: 73rpx; height: 73rpx;"></image> -->
<view class="company_list_item_text">{{item.siteName}} - {{item.putawayMark == 1 ? '上架' : '下架'}}</view> <view class="company_list_item_text">{{item.siteName}} - {{item.putawayMark == 1 ? '上架' : '下架'}}{{channelJudgment(item)}}</view>
<view style="flex-grow: 1; text-align: end;text-align: -webkit-right;"> <view style="flex-grow: 1; text-align: end;text-align: -webkit-right;">
<view class="checkboxs"> <view class="checkboxs">
<view v-if="item.siteName==selecompany.siteName" class="checkboxss"></view> <view v-if="item.siteName==selecompany.siteName" class="checkboxss"></view>
@ -35,7 +35,7 @@
pageSize: 15, pageSize: 15,
currentPage: 1, currentPage: 1,
params: { params: {
siteName:'' siteName: ''
}, },
}, },
value: 0, value: 0,
@ -55,6 +55,29 @@
this.getList() this.getList()
}, },
methods: { 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) { seleFn(e) {
clearTimeout(this.timer) clearTimeout(this.timer)
this.selecompany = e this.selecompany = e

Loading…
Cancel
Save