Browse Source

修改工位

agv
李俊城 4 months ago
parent
commit
b93760a7ea
  1. 4
      fe/PDA/pages/request/assembleIssueRequest.vue
  2. 4
      fe/PDA/pages/request/coatingIssueRequest.vue
  3. 6
      fe/PDA/pages/request/injectionIssueRequest.vue
  4. 21
      fe/PDA/pages/request/kittingIssueRequest.vue

4
fe/PDA/pages/request/assembleIssueRequest.vue

@ -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" />

4
fe/PDA/pages/request/coatingIssueRequest.vue

@ -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" />

6
fe/PDA/pages/request/injectionIssueRequest.vue

@ -25,7 +25,7 @@
工位关系
</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 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" />
@ -171,11 +171,11 @@
methods: {
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) {

21
fe/PDA/pages/request/kittingIssueRequest.vue

@ -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;

Loading…
Cancel
Save