|
@ -16,25 +16,6 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<view class="uni-list" v-if="showList.length>0"> |
|
|
|
|
|
<view class="" |
|
|
|
|
|
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-direction: row; margin: 12rpx;" @click="checkeClick(item.value)"> |
|
|
|
|
|
<view class=""> |
|
|
|
|
|
<checkbox :value="item.value" :checked="item.checked" /> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class=""> |
|
|
|
|
|
{{item.name}} |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="page-main"> |
|
|
<view class="page-main"> |
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
|
<scroll-view scroll-y="true" class="page-main-scroll"> |
|
@ -86,7 +67,6 @@ |
|
|
injectionIssuePlanRequestItemCategoryName, |
|
|
injectionIssuePlanRequestItemCategoryName, |
|
|
injectionIssuePlanRequestItemCategory, |
|
|
injectionIssuePlanRequestItemCategory, |
|
|
locations, |
|
|
locations, |
|
|
getWorkStationByLocation, |
|
|
|
|
|
} from '@/api/index.js'; |
|
|
} from '@/api/index.js'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
@ -123,7 +103,6 @@ |
|
|
toLocationInfo: null, |
|
|
toLocationInfo: null, |
|
|
tabIndex: 0, |
|
|
tabIndex: 0, |
|
|
customStyle: "white-space: normal;word-break:break-all", |
|
|
customStyle: "white-space: normal;word-break:break-all", |
|
|
workStationList: [], |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
@ -157,23 +136,6 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
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) { |
|
|
|
|
|
this.workStationList[i].checked = false |
|
|
|
|
|
} else { |
|
|
|
|
|
this.workStationList[i].checked = true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
this.$forceUpdate() |
|
|
|
|
|
}, |
|
|
|
|
|
getCategoryListName() { |
|
|
getCategoryListName() { |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: "加载中", |
|
|
title: "加载中", |
|
@ -226,26 +188,6 @@ |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
if (res) { |
|
|
if (res) { |
|
|
this.toLocationInfo = res |
|
|
this.toLocationInfo = res |
|
|
getWorkStationByLocation(res.code).then(res => { |
|
|
|
|
|
if (res && res.length > 0) { |
|
|
|
|
|
this.workStationList = [] |
|
|
|
|
|
res.forEach(item => { |
|
|
|
|
|
this.workStationList.push({ |
|
|
|
|
|
value: item.code, |
|
|
|
|
|
name: item.name, |
|
|
|
|
|
checked: false |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
scanSuccessAudio() |
|
|
|
|
|
} else { |
|
|
|
|
|
scanFailedAudio() |
|
|
|
|
|
this.showMessage("获取工位失败") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}).catch(error => { |
|
|
|
|
|
scanFailedAudio() |
|
|
|
|
|
this.showMessage("获取工位失败") |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
scanFailedAudio() |
|
|
scanFailedAudio() |
|
|
this.showMessage('目标库位【' + locationCode + '】不存在'); |
|
|
this.showMessage('目标库位【' + locationCode + '】不存在'); |
|
@ -284,7 +226,6 @@ |
|
|
this.toLocationInfo = null, |
|
|
this.toLocationInfo = null, |
|
|
this.tabIndex = 0; |
|
|
this.tabIndex = 0; |
|
|
this.$refs.comCollapseLocation.clearLocation(); |
|
|
this.$refs.comCollapseLocation.clearLocation(); |
|
|
this.workStationList=[] |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
submit(item) { |
|
|
submit(item) { |
|
@ -304,9 +245,8 @@ |
|
|
title: "提交中...", |
|
|
title: "提交中...", |
|
|
mask: true |
|
|
mask: true |
|
|
}); |
|
|
}); |
|
|
var workStation = this.workStationList.find(r => r.checked == true) |
|
|
|
|
|
var params = { |
|
|
var params = { |
|
|
remark: workStation ? workStation.value : "", |
|
|
remark: "", |
|
|
worker: localStorage.userName_CN == "" ? localStorage.userName : localStorage.userName_CN, |
|
|
worker: localStorage.userName_CN == "" ? localStorage.userName : localStorage.userName_CN, |
|
|
activeDate: getISODateTime(), |
|
|
activeDate: getISODateTime(), |
|
|
useOnTheWayLocation: false, |
|
|
useOnTheWayLocation: false, |
|
@ -316,7 +256,7 @@ |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
var item = { |
|
|
var item = { |
|
|
remark: workStation ? workStation.value : "", |
|
|
remark: "", |
|
|
itemCode: checked[0].code, |
|
|
itemCode: checked[0].code, |
|
|
itemName: checked[0].name, |
|
|
itemName: checked[0].name, |
|
|
itemDesc1: checked[0].desc1, |
|
|
itemDesc1: checked[0].desc1, |
|
|