|
|
@ -61,6 +61,10 @@ |
|
|
|
import { |
|
|
|
getManagementPrecisions |
|
|
|
} from '@/common/balance.js'; |
|
|
|
|
|
|
|
import { |
|
|
|
calc |
|
|
|
} from '@/common/calc.js'; |
|
|
|
|
|
|
|
import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue' |
|
|
|
import comIssueDetailCard from '@/pages/issue/coms/comIssueDetailCard.vue' |
|
|
@ -90,7 +94,8 @@ |
|
|
|
subList: [], //接口返回的任务subList |
|
|
|
detailSource: [], //绑定在页面上的数据源 |
|
|
|
detailOptions: [], |
|
|
|
scanOptions: [] |
|
|
|
scanOptions: [], |
|
|
|
received:false |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
@ -122,12 +127,21 @@ |
|
|
|
//拦截返回按钮事件 |
|
|
|
onBackPress(e) { |
|
|
|
//已经接收但是没提交任务 |
|
|
|
if (this.received) { |
|
|
|
//取消承接任务 |
|
|
|
cancleTakeIssueJob(this.id).then(res => {}).catch(error => { |
|
|
|
this.showMessage(err); |
|
|
|
}) |
|
|
|
if (e.from === 'backbutton') { |
|
|
|
if (this.received) { |
|
|
|
//取消承接任务 |
|
|
|
cancleTakeIssueJob(this.id).then(res => { |
|
|
|
uni.navigateBack(); |
|
|
|
}).catch(error => { |
|
|
|
uni.navigateBack(); |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.navigateBack(); |
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
@ -392,10 +406,10 @@ |
|
|
|
let handleQty = 0; |
|
|
|
if (batch != undefined) { |
|
|
|
batch.Records.forEach(res => { |
|
|
|
handleQty += Number(res.qty) |
|
|
|
handleQty = calc.add(handleQty,res.qty) |
|
|
|
}) |
|
|
|
batch.handleQty = handleQty; |
|
|
|
itemHandleQty += handleQty; |
|
|
|
itemHandleQty = calc.add(itemHandleQty,handleQty) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|