|
@ -102,6 +102,9 @@ |
|
|
import { |
|
|
import { |
|
|
productDismantleJobClose |
|
|
productDismantleJobClose |
|
|
} from '@/api/request2.js'; |
|
|
} from '@/api/request2.js'; |
|
|
|
|
|
import { |
|
|
|
|
|
nextTick |
|
|
|
|
|
} from 'vue'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'receipt_detail', |
|
|
name: 'receipt_detail', |
|
@ -137,7 +140,7 @@ |
|
|
|
|
|
|
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
|
this.id = option.id; |
|
|
this.id = option.id; |
|
|
// this.scanedPackingNumber = option.scaned || ''; |
|
|
this.scanedPackingNumber = option.scaned || ''; |
|
|
this.operation = option.operation; |
|
|
this.operation = option.operation; |
|
|
if (this.id != undefined) { |
|
|
if (this.id != undefined) { |
|
|
//新建的任务自动接收 |
|
|
//新建的任务自动接收 |
|
@ -219,13 +222,19 @@ |
|
|
that.jobStatus = res.data.status |
|
|
that.jobStatus = res.data.status |
|
|
that.jobToLocationCode = that.subList[0].toLocationCode |
|
|
that.jobToLocationCode = that.subList[0].toLocationCode |
|
|
that.detailSource = getTreeDataSource(that.subList) |
|
|
that.detailSource = getTreeDataSource(that.subList) |
|
|
that.detailSource.forEach(r => { |
|
|
that.isAllReceived = false; |
|
|
r.subList.forEach(s => { |
|
|
nextTick(() => { |
|
|
if (this.scanedPackingNumber && this.scanedPackingNumber == s |
|
|
that.detailSource.forEach(r => { |
|
|
.packingNumber) s.scaned = true |
|
|
r.subList.forEach(s => { |
|
|
|
|
|
if (this.scanedPackingNumber && this |
|
|
|
|
|
.scanedPackingNumber == s |
|
|
|
|
|
.packingNumber) { |
|
|
|
|
|
s.scaned = true |
|
|
|
|
|
this.$refs.scanPopup.simulateScan(s); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
that.isAllReceived = false; |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
that.showMessage('列表数据为0'); |
|
|
that.showMessage('列表数据为0'); |
|
|
} |
|
|
} |
|
@ -423,7 +432,7 @@ |
|
|
mask: true |
|
|
mask: true |
|
|
}); |
|
|
}); |
|
|
productDismantleJobClose(this.id).then(res => { |
|
|
productDismantleJobClose(this.id).then(res => { |
|
|
console.log('拒收',res) |
|
|
console.log('拒收', res) |
|
|
if (res.data) { |
|
|
if (res.data) { |
|
|
navigateBack(1) |
|
|
navigateBack(1) |
|
|
} else { |
|
|
} else { |
|
@ -462,8 +471,8 @@ |
|
|
|
|
|
|
|
|
// 获取上架任务 |
|
|
// 获取上架任务 |
|
|
let timerCount = 0 |
|
|
let timerCount = 0 |
|
|
const timer1 = setInterval(async ()=>{ |
|
|
const timer1 = setInterval(async () => { |
|
|
if(timerCount == 15){ |
|
|
if (timerCount == 15) { |
|
|
clearInterval(timer1) |
|
|
clearInterval(timer1) |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: "跳转打印页面失败", |
|
|
title: "跳转打印页面失败", |
|
@ -479,25 +488,32 @@ |
|
|
}], |
|
|
}], |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 1000, |
|
|
pageSize: 1000, |
|
|
}).then(res1=>{ |
|
|
}).then(res1 => { |
|
|
timerCount = timerCount + 1 |
|
|
timerCount = timerCount + 1 |
|
|
if(res1.data && res1.data.list&&res1.data.list.length&&(res1.data.total >= res.data.detailCount)){ |
|
|
if (res1.data && res1.data.list && res1.data |
|
|
|
|
|
.list.length && (res1.data.total >= res |
|
|
|
|
|
.data.detailCount)) { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
clearInterval(timer1) |
|
|
clearInterval(timer1) |
|
|
const dataParams = { |
|
|
const dataParams = { |
|
|
toLocationCode: res1.data.list[0].toLocationCode, |
|
|
toLocationCode: res1.data.list[0] |
|
|
number: res1.data.list[0].number, |
|
|
.toLocationCode, |
|
|
creator: res1.data.list[0].creator, |
|
|
number: res1.data.list[0].number, |
|
|
createTime: res1.data.list[0].createTime, |
|
|
creator: res1.data.list[0].creator, |
|
|
ids : res1.data.list.map(item=>item.masterId).join(',') |
|
|
createTime: res1.data.list[0] |
|
|
|
|
|
.createTime, |
|
|
|
|
|
ids: res1.data.list.map(item => |
|
|
|
|
|
item.masterId).join(',') |
|
|
} |
|
|
} |
|
|
console.log(dataParams) |
|
|
console.log(dataParams) |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url:'/pages/pointPutawayJob/index?data='+encodeURIComponent(JSON.stringify(dataParams)) |
|
|
url: '/pages/pointPutawayJob/index?data=' + |
|
|
|
|
|
encodeURIComponent(JSON |
|
|
|
|
|
.stringify(dataParams)) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
},2000) |
|
|
}, 2000) |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|