|
|
@ -155,7 +155,7 @@ |
|
|
|
scanCount: 0, |
|
|
|
jobStatus: "", |
|
|
|
toLocationInfo: null, |
|
|
|
showFinishButton:false |
|
|
|
showFinishButton: false |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(param) { |
|
|
@ -225,7 +225,7 @@ |
|
|
|
clearDefaultLocation() { |
|
|
|
this.toLocationInfo = null |
|
|
|
}, |
|
|
|
finish(){ |
|
|
|
finish() { |
|
|
|
showConfirmMsg("是否确认终止?", callback => { |
|
|
|
if (callback) { |
|
|
|
uni.showLoading({ |
|
|
@ -235,7 +235,7 @@ |
|
|
|
thirdLocationRequestClose(this.id).then(res => { |
|
|
|
uni.hideLoading() |
|
|
|
uni.showToast({ |
|
|
|
title:"终止成功" |
|
|
|
title: "终止成功" |
|
|
|
}) |
|
|
|
navigateBack(1) |
|
|
|
}).catch(error => { |
|
|
@ -250,8 +250,7 @@ |
|
|
|
if (res) { |
|
|
|
item.scaned = false; |
|
|
|
item.handledQty = null; |
|
|
|
item.singleCodeJob="" |
|
|
|
this.getScanCount() |
|
|
|
item.singleCodeJob = "" |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
@ -260,13 +259,13 @@ |
|
|
|
this.showMessage('收货货数量必须大于0') |
|
|
|
item.qty = item.handledQty |
|
|
|
this.$refs['comNumberBox_' + index][0].setValue(item.qty); |
|
|
|
}else { |
|
|
|
if(value>item.recommendQty){ |
|
|
|
this.showMessage("收货货数量["+value+"]不能大于申请数量["+item.recommendQty+"]"); |
|
|
|
} else { |
|
|
|
if (value > item.recommendQty) { |
|
|
|
this.showMessage("收货货数量[" + value + "]不能大于申请数量[" + item.recommendQty + "]"); |
|
|
|
item.handledQty = item.recommendQty |
|
|
|
this.$refs['comNumberBox_' + index][0].setValue(item.handledQty); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
openScanPopup() { |
|
|
@ -287,14 +286,14 @@ |
|
|
|
that.allCount = 0; |
|
|
|
that.details.forEach(res => { |
|
|
|
res.scaned = false; |
|
|
|
that.allCount = that.allCount + res.recommendQty |
|
|
|
that.allCount = that.allCount + res.recommendQty + res.handledQty |
|
|
|
}) |
|
|
|
that.ispending = item.jobStatus === 2; |
|
|
|
this.getScanCount() |
|
|
|
if(this.scanCount>0){ |
|
|
|
this.showFinishButton=true |
|
|
|
}else { |
|
|
|
this.showFinishButton=false |
|
|
|
if (this.scanCount > 0) { |
|
|
|
this.showFinishButton = true |
|
|
|
} else { |
|
|
|
this.showFinishButton = false |
|
|
|
} |
|
|
|
|
|
|
|
// that.toLocation = item.details[0].recommendLocationCode; |
|
|
@ -319,8 +318,7 @@ |
|
|
|
} else { |
|
|
|
item.scaned = true; |
|
|
|
item.handledQty = item.recommendQty; |
|
|
|
item.singleCodeJob =result.scanCode |
|
|
|
this.getScanCount() |
|
|
|
item.singleCodeJob = result.scanCode |
|
|
|
setTimeout(res => { |
|
|
|
this.$forceUpdate() |
|
|
|
}, 1000) |
|
|
@ -330,16 +328,12 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getScanCount() { |
|
|
|
this.scanCount=0; |
|
|
|
this.datacontent.details.forEach(res=>{ |
|
|
|
if(res.scaned){ |
|
|
|
this.scanCount=this.scanCount+res.handledQty |
|
|
|
} |
|
|
|
this.scanCount = 0; |
|
|
|
this.datacontent.details.forEach(res => { |
|
|
|
this.scanCount = this.scanCount + res.handledQty |
|
|
|
}) |
|
|
|
|
|
|
|
// this.scanCount = this.datacontent.details.filter(r => r.scaned).length; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
closeScanPopup() { |
|
|
|