|
|
@@ -336,7 +336,6 @@ export default {
|
|
|
sampleList.push(o)
|
|
|
}
|
|
|
localStr = localArr.filter(i => i).join(',')
|
|
|
-
|
|
|
let value = ''
|
|
|
let lhypIdStr = ''
|
|
|
for (let i = 0; i < lhypbWJ.length; i++) {
|
|
|
@@ -366,7 +365,9 @@ export default {
|
|
|
ypInfoList.forEach(item => {
|
|
|
allUUID.push(item.biao_zhi_uuid_1, item.biao_zhi_uuid_2, item.biao_zhi_uuid_3, item.biao_zhi_uuid_4)
|
|
|
let allResult = []
|
|
|
- allResult.push(this.handleLocationInfo(item.shou_yang_wei_zhi_yi, '否', localInfo, locationIds, item, item.biao_zhi_uuid_1, currentTime,item.yang_pin_lei_xing,item.liu_yang_shu_lian_yi))
|
|
|
+ if(item.shou_yang_wei_zhi_yi != undefined){
|
|
|
+ allResult.push(this.handleLocationInfo(item.shou_yang_wei_zhi_yi, '否', localInfo, locationIds, item, item.biao_zhi_uuid_1, currentTime,item.yang_pin_lei_xing,item.liu_yang_shu_lian_yi))
|
|
|
+ }
|
|
|
if (item.shou_yang_wei_zhi_er != undefined) {
|
|
|
allResult.push(this.handleLocationInfo(item.shou_yang_wei_zhi_er, '否', localInfo, locationIds, item, item.biao_zhi_uuid_2, currentTime,item.yang_pin_lei_er_,item.liu_yang_shu_lian_er))
|
|
|
}
|
|
|
@@ -376,7 +377,9 @@ export default {
|
|
|
if (item.shou_yang_wei_zhi_si != undefined) {
|
|
|
allResult.push(this.handleLocationInfo(item.shou_yang_wei_zhi_si, '否', localInfo, locationIds, item, item.biao_zhi_uuid_4, currentTime,item.yang_pin_lei_si_,item.liu_yang_shu_lian_si))
|
|
|
}
|
|
|
- allResult.push(this.handleLocationInfo(item.liu_yang_wei_zhi_yi, '是', localInfo, locationIds, item, item.biao_zhi_uuid_1, currentTime,item.yang_pin_lei_xing,item.liu_yang_shu_lian_yi))
|
|
|
+ if(item.liu_yang_wei_zhi_yi){
|
|
|
+ allResult.push(this.handleLocationInfo(item.liu_yang_wei_zhi_yi, '是', localInfo, locationIds, item, item.biao_zhi_uuid_1, currentTime,item.yang_pin_lei_xing,item.liu_yang_shu_lian_yi))
|
|
|
+ }
|
|
|
if (item.liu_yang_wei_zhi_er != undefined) {
|
|
|
allResult.push(this.handleLocationInfo(item.liu_yang_wei_zhi_er, '是', localInfo, locationIds, item, item.biao_zhi_uuid_2, currentTime,item.yang_pin_lei_er_,item.liu_yang_shu_lian_er))
|
|
|
}
|
|
|
@@ -613,7 +616,7 @@ export default {
|
|
|
},
|
|
|
handleLocationInfo(currentLocation, isLiuYang, localInfo, locationIds, item, UUID, currentTime,sampleType,liuYangNum) {
|
|
|
!locationIds.has(currentLocation) ? locationIds.add(currentLocation) : localInfo.find(i => i.id_ === currentLocation).wei_zhi_zhuang_ta = '占用'
|
|
|
- if (localInfo.find(i => i.id_ === currentLocation).wei_zhi_zhuang_ta === '空余') {
|
|
|
+ if (localInfo.find(i => i.id_ === currentLocation)!=undefined &&localInfo.find(i => i.id_ === currentLocation).wei_zhi_zhuang_ta === '空余') {
|
|
|
let obj = {
|
|
|
where: {
|
|
|
id_: currentLocation
|