|
@ -9,7 +9,7 @@ |
|
|
<view class="" style="background-color: #fff; padding: 20rpx; font-size: 32rpx;"> |
|
|
<view class="" style="background-color: #fff; padding: 20rpx; font-size: 32rpx;"> |
|
|
承接人 :{{datacontent.claimsUserName}} |
|
|
承接人 :{{datacontent.claimsUserName}} |
|
|
</view> |
|
|
</view> |
|
|
<button v-if="showFinishButton" type="primary" @click="finish" style="margin: 20rpx;"> 任务终止</button> |
|
|
<button v-if="showFinishButton" type="primary" @click="finish" style="margin: 20rpx;"> 完成</button> |
|
|
|
|
|
|
|
|
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll" |
|
|
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll" |
|
|
class="scroll-detail"> |
|
|
class="scroll-detail"> |
|
@ -216,6 +216,11 @@ |
|
|
methods: { |
|
|
methods: { |
|
|
//扫描默认目标库位 |
|
|
//扫描默认目标库位 |
|
|
getDefaultToLocation(locationCode) { |
|
|
getDefaultToLocation(locationCode) { |
|
|
|
|
|
if(this.details[0].toLocationCode!=locationCode){ |
|
|
|
|
|
this.showMessage("扫描库位["+locationCode+"]与目标库位["+this.details[0].toLocationCode+"]不一致"); |
|
|
|
|
|
this.$refs.comCollapseLocation.clearLocation() |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: "扫描中", |
|
|
title: "扫描中", |
|
|
mask: true |
|
|
mask: true |
|
@ -225,12 +230,14 @@ |
|
|
if (res) { |
|
|
if (res) { |
|
|
this.toLocationInfo = res |
|
|
this.toLocationInfo = res |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
this.$refs.comCollapseLocation.clearLocation() |
|
|
this.showMessage('目标库位【' + locationCode + '】不存在'); |
|
|
this.showMessage('目标库位【' + locationCode + '】不存在'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
this.toLocationInfo = null |
|
|
this.toLocationInfo = null |
|
|
|
|
|
this.$refs.comCollapseLocation.clearLocation() |
|
|
this.showMessage(err.message); |
|
|
this.showMessage(err.message); |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
@ -356,11 +363,11 @@ |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (item === undefined) { |
|
|
if (item === undefined) { |
|
|
this.showMessage('在任务详情中,未找到物料号【' + result.itemCode + '】'); |
|
|
this.showMessage('在任务详情中,未找到ERP料号【' + result.itemCode + '】'); |
|
|
return; |
|
|
return; |
|
|
} else { |
|
|
} else { |
|
|
if (item.scaned) { |
|
|
if (item.scaned) { |
|
|
this.showMessage('物料号【' + result.itemCode + '】已经扫描,请扫描下一箱零件'); |
|
|
this.showMessage('ERP料号【' + result.itemCode + '】已经扫描,请扫描下一箱零件'); |
|
|
return; |
|
|
return; |
|
|
} else { |
|
|
} else { |
|
|
item.scaned = true; |
|
|
item.scaned = true; |
|
|