|
@ -97,7 +97,6 @@ |
|
|
return { |
|
|
return { |
|
|
id: '', |
|
|
id: '', |
|
|
receiptJob: {}, |
|
|
receiptJob: {}, |
|
|
received: false, |
|
|
|
|
|
toLocationCode: '', |
|
|
toLocationCode: '', |
|
|
isShowPackingCode: true, |
|
|
isShowPackingCode: true, |
|
|
scanCount: 0, |
|
|
scanCount: 0, |
|
@ -105,7 +104,8 @@ |
|
|
subList: [], //接口返回的任务subList |
|
|
subList: [], //接口返回的任务subList |
|
|
detailSource: [], //绑定在页面上的数据源 |
|
|
detailSource: [], //绑定在页面上的数据源 |
|
|
toLocationTypeList: [], |
|
|
toLocationTypeList: [], |
|
|
managementList: [] |
|
|
managementList: [], |
|
|
|
|
|
jobStatus:"" |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
@ -115,7 +115,6 @@ |
|
|
//新建的任务自动接收 |
|
|
//新建的任务自动接收 |
|
|
if (option.status == "1") { |
|
|
if (option.status == "1") { |
|
|
this.receive((callback => { |
|
|
this.receive((callback => { |
|
|
this.received = true; |
|
|
|
|
|
this.getDetail(); |
|
|
this.getDetail(); |
|
|
})); |
|
|
})); |
|
|
} else { |
|
|
} else { |
|
@ -134,7 +133,7 @@ |
|
|
onBackPress(e) { |
|
|
onBackPress(e) { |
|
|
//已经接收但是没提交任务 |
|
|
//已经接收但是没提交任务 |
|
|
if (e.from == 'backbutton') { |
|
|
if (e.from == 'backbutton') { |
|
|
if (this.received) { |
|
|
if (this.jobStatus=="2") { |
|
|
//取消承接任务 |
|
|
//取消承接任务 |
|
|
cancleTakeProductReceiptJob(this.id).then(res => { |
|
|
cancleTakeProductReceiptJob(this.id).then(res => { |
|
|
uni.navigateBack(); |
|
|
uni.navigateBack(); |
|
@ -184,6 +183,7 @@ |
|
|
if (res.data.subList.length > 0) { |
|
|
if (res.data.subList.length > 0) { |
|
|
that.jobContent = res.data; |
|
|
that.jobContent = res.data; |
|
|
that.subList = res.data.subList; |
|
|
that.subList = res.data.subList; |
|
|
|
|
|
that.jobStatus = res.data.status |
|
|
that.toLocationCode = that.subList[0].toLocationCode |
|
|
that.toLocationCode = that.subList[0].toLocationCode |
|
|
that.toLocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes) |
|
|
that.toLocationTypeList = getDirectoryItemArray(that.jobContent.toLocationTypes) |
|
|
that.detailSource = getDataSource(that.subList) |
|
|
that.detailSource = getDataSource(that.subList) |
|
|