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