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 getSOScheduleRoutingDataPrint = data => createAPI(`dailyPlan/getSOScheduleRoutingDataPrint`, 'post', data);
export const linkWeighTPC = data => createAPI(`dailyPlan/linkWeighTPC`, '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); 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.PRINT_DESIGN();
LODOP.PREVIEW();
// LODOP.PRINT();
// LODOP.PREVIEW();
LODOP.PRINT();
console.log("操作成功!") console.log("操作成功!")
} }
} }

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

@ -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 = {

Loading…
Cancel
Save