|
|
@ -4,6 +4,8 @@ import { |
|
|
getPackagePrintDataList, |
|
|
getPackagePrintDataList, |
|
|
getSOScheduleRoutingDataPrint, |
|
|
getSOScheduleRoutingDataPrint, |
|
|
linkWeighTPC, |
|
|
linkWeighTPC, |
|
|
|
|
|
closeWeighTPC, |
|
|
|
|
|
reLinkWeighTPC, |
|
|
} from "../../../api/production/generateReport"; |
|
|
} from "../../../api/production/generateReport"; |
|
|
import { |
|
|
import { |
|
|
getPhotoAddressData |
|
|
getPhotoAddressData |
|
|
@ -33,14 +35,21 @@ export default { |
|
|
showviewer: false, |
|
|
showviewer: false, |
|
|
url: '', |
|
|
url: '', |
|
|
photoUrl: '', |
|
|
photoUrl: '', |
|
|
|
|
|
scanTime:'', |
|
|
|
|
|
scheduleJob:'', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.$refs.focusInput.focus() |
|
|
this.$refs.focusInput.focus() |
|
|
|
|
|
window.addEventListener('beforeunload', this.handleBeforeUnload); |
|
|
}, |
|
|
}, |
|
|
activated() { |
|
|
activated() { |
|
|
this.$refs.focusInput.focus() |
|
|
this.$refs.focusInput.focus() |
|
|
}, |
|
|
}, |
|
|
|
|
|
beforeDestroy(){ |
|
|
|
|
|
this.closeWeighTPC(); |
|
|
|
|
|
window.removeEventListener('beforeunload', this.handleBeforeUnload); |
|
|
|
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
seqNo: function () { |
|
|
seqNo: function () { |
|
|
return this.searchData.seqNo; |
|
|
return this.searchData.seqNo; |
|
|
@ -48,6 +57,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
watch: {}, |
|
|
watch: {}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
handleBeforeUnload() { |
|
|
|
|
|
this.closeWeighTPC(); |
|
|
|
|
|
}, |
|
|
selectBySeqNo() { |
|
|
selectBySeqNo() { |
|
|
// 查询数据 |
|
|
// 查询数据 |
|
|
this.getSOScheduleRoutingData(); |
|
|
this.getSOScheduleRoutingData(); |
|
|
@ -115,6 +127,17 @@ export default { |
|
|
this.fileName = null; |
|
|
this.fileName = null; |
|
|
this.fileTitle = "文件名 (" + 0 + "/" + 0 + ")"; |
|
|
this.fileTitle = "文件名 (" + 0 + "/" + 0 + ")"; |
|
|
this.photoUrl = null; |
|
|
this.photoUrl = null; |
|
|
|
|
|
// this.scanTime= ''; |
|
|
|
|
|
this.closeWeighTPC(); |
|
|
|
|
|
}, |
|
|
|
|
|
closeWeighTPC(){ |
|
|
|
|
|
this.scanTime= ''; |
|
|
|
|
|
let data={ |
|
|
|
|
|
site:'1' |
|
|
|
|
|
} |
|
|
|
|
|
closeWeighTPC(data).then(({data}) => { |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
checkIsPacking() { |
|
|
checkIsPacking() { |
|
|
let params = { |
|
|
let params = { |
|
|
|