|
|
@ -24,8 +24,8 @@ |
|
|
|
style="font-size: 40rpx; font-weight: bold; align-items: center; display: flex; justify-content: center; margin-bottom: 20rpx; "> |
|
|
|
工位关系 |
|
|
|
</view> |
|
|
|
<view class="uni-flex" style="flex-wrap: wrap;justify-content: space-between; margin: 10rpx;" > |
|
|
|
<view style="width: 50%; display: flex; flex-direction: row;" v-for="(item, index) in workStationList" :key="item.value"> |
|
|
|
<view class="uni-flex" style="flex-wrap: wrap; margin: 10rpx;" > |
|
|
|
<view style="width: 30%; display: flex; flex-direction: row;" v-for="(item, index) in workStationList" :key="index"> |
|
|
|
<view class="uni-flex" style="flex-direction: row; margin: 12rpx;" @click="checkeClick(item.value)"> |
|
|
|
<view class=""> |
|
|
|
<checkbox :value="item.value" :checked="item.checked" /> |
|
|
@ -173,6 +173,23 @@ |
|
|
|
openScanPopup() { |
|
|
|
this.$refs.scanPopup.openScanPopup() |
|
|
|
}, |
|
|
|
checkeClick(value) { |
|
|
|
|
|
|
|
for (let i = 0; i < this.workStationList.length; i++) { |
|
|
|
this.workStationList[i].checked = false |
|
|
|
} |
|
|
|
|
|
|
|
for (let i = 0; i < this.workStationList.length; i++) { |
|
|
|
if (this.workStationList[i].value === value) { |
|
|
|
if (this.workStationList[i].checked == true) { |
|
|
|
this.workStationList[i].checked = false |
|
|
|
} else { |
|
|
|
this.workStationList[i].checked = true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.$forceUpdate() |
|
|
|
}, |
|
|
|
|
|
|
|
getScanResult(result) { |
|
|
|
this.dataContent = result; |
|
|
|