组盘
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-col-22">
|
||||
<view class="zd-row mgb10 flow_start_item" v-for="el in e.end_points" :key="el.point_code" @tap="checkcode2(el)" :class="{'flow_start_item_checked': pkId2 === el.point_code}">
|
||||
<view class="zd-row mgb10 flow_start_item" v-for="el in e.end_points" :key="el.point_code" @tap="checkcode2(el, e)" :class="{'flow_start_item_checked': pkId2 === el.point_code}">
|
||||
<view class="zd-col-8 pdl20 pdr20 font-size-1">{{el.point_code}}</view>
|
||||
<view class="zd-col-16 pdr20 font-size-2">{{el.point_name}}</view>
|
||||
<view v-show="pkId2 === el.point_code" class="iconfont icon_choosed"></view>
|
||||
@@ -68,7 +68,8 @@
|
||||
dataList: [],
|
||||
disabled: false,
|
||||
pkId1: '',
|
||||
pkId2: ''
|
||||
pkId2: '',
|
||||
pkId3: ''
|
||||
};
|
||||
},
|
||||
created () {
|
||||
@@ -81,10 +82,18 @@
|
||||
this.dataList = [...res]
|
||||
},
|
||||
checkcode1 (e) {
|
||||
if (this.pkId3 !== '' && e.point_code !== this.pkId3) {
|
||||
this.pkId2 = ''
|
||||
this.pkId3 = ''
|
||||
}
|
||||
this.pkId1 = this.pkId1 === e.point_code ? '' : e.point_code
|
||||
},
|
||||
checkcode2 (e) {
|
||||
this.pkId2 = this.pkId2 === e.point_code ? '' : e.point_code
|
||||
checkcode2 (el, e) {
|
||||
if (this.pkId1 !== '' && this.pkId1 !== e.point_code) {
|
||||
return
|
||||
}
|
||||
this.pkId2 = this.pkId2 === el.point_code ? '' : el.point_code
|
||||
this.pkId3 = this.pkId2 === el.point_code ? e.point_code : ''
|
||||
},
|
||||
/** 重新下发 */
|
||||
async toSure () {
|
||||
|
||||
Reference in New Issue
Block a user