Browse Source

0412 新看板

master
ruanqi 1 year ago
parent
commit
2f6a56101c
  1. 2
      src/api/production/generateReport.js
  2. 4
      src/views/modules/print/print_package_TCPlabel-NOOREVIEW.js
  3. 23
      src/views/modules/production/bagLabelsTCP.vue

2
src/api/production/generateReport.js

@ -12,6 +12,8 @@ export const getSOScheduleRoutingData = data => createAPI(`dailyPlan/getSOSchedu
export const getSOScheduleRoutingDataPrint = data => createAPI(`dailyPlan/getSOScheduleRoutingDataPrint`, 'post', data);
export const linkWeighTPC = data => createAPI(`dailyPlan/linkWeighTPC`, 'post', data);
export const reLinkWeighTPC = data => createAPI(`dailyPlan/reLinkWeighTPC`, 'post', data);
export const closeWeighTPC = data => createAPI(`dailyPlan/closeWeighTPC`, 'post', data);
// 获取生产报告信息
export const saveGenerateReportForSchedule = data => createAPI(`dailyPlan/saveGenerateReportForSchedule`, 'post', data);

4
src/views/modules/print/print_package_TCPlabel-NOOREVIEW.js

@ -111,8 +111,8 @@ export function printTCPPackageLabelNoPreview(printList) {
}
// LODOP.PRINT_DESIGN();
LODOP.PREVIEW();
// LODOP.PRINT();
// LODOP.PREVIEW();
LODOP.PRINT();
console.log("操作成功!")
}
}

23
src/views/modules/production/bagLabelsTCP.vue

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

Loading…
Cancel
Save