diff --git a/src/api/production/generateReport.js b/src/api/production/generateReport.js index ccf374c..14aba30 100644 --- a/src/api/production/generateReport.js +++ b/src/api/production/generateReport.js @@ -17,3 +17,4 @@ export const cancelJob = data => createAPI(`dailyPlan/cancelJob`, 'post', data); export const searchReportedQty= data => createAPI(`dailyPlan/searchReportedQty`, 'post', data); export const getStockPrint= data => createAPI(`dailyPlan/getStockPrint`, 'post', data); +export const updatePrintStock= data => createAPI(`dailyPlan/updatePrintStock`, 'post', data); diff --git a/src/views/modules/production/generateReport.vue b/src/views/modules/production/generateReport.vue index f250390..c26f8e3 100644 --- a/src/views/modules/production/generateReport.vue +++ b/src/views/modules/production/generateReport.vue @@ -49,7 +49,7 @@ - 操作员姓名 + 操作员姓名 @@ -496,6 +496,7 @@ showviewer: false, url: '', height2:600, + tagNo2:'', } }, mounted () { @@ -575,6 +576,7 @@ // 获取基础数据列表S getBaseList (val, type) { this.tagNo = val + this.tagNo2 = type this.$nextTick(() => { let strVal = '' if (val === 24) { @@ -584,7 +586,13 @@ strVal = this.searchData.partNo } if (val === 26) { - strVal = this.searchData.operatorName + if(type==1) { + strVal = this.saveHeaderData.operatorId + }else if(type==2){ + strVal = this.saveHeaderData.operatorId2 + }else { + strVal = this.searchData.operatorName + } } if (val === 88) { strVal = this.searchData.sResourceID @@ -600,31 +608,39 @@ this.searchData.partNo = val.PartNo } if (this.tagNo === 26) { - this.searchData.operatorName = val.OperatorName + if(this.tagNo2==1) { + this.saveHeaderData.operatorId = val.OperatorID + this.saveHeaderData.operatorName = val.OperatorName + }else if(this.tagNo2==2){ + this.saveHeaderData.operatorId2 = val.OperatorID + this.saveHeaderData.operatorIdName2 = val.OperatorName + }else { + this.searchData.operatorName = val.OperatorName + } } if (this.tagNo === 88) { this.searchData.sResourceID = val.ResourceID } }, initReportModal (row) { - this.setUp.reviewFlag = true - this.setUp.disabled = true - let currentData = JSON.parse(JSON.stringify(row)) - this.saveHeaderData.site = currentData.site - this.saveHeaderData.seqNo = currentData.seqNo - this.saveHeaderData.itemNo = currentData.itemNo - this.saveHeaderData.operationDesc = currentData.itemDesc - this.saveHeaderData.partNo = currentData.partNo - this.saveHeaderData.partDescription = currentData.partSpec - this.saveHeaderData.workCenterNo = currentData.sWorkCenterNo - this.saveHeaderData.workCenterDesc = currentData.workCenterDesc - this.saveHeaderData.orderRef1=currentData.orderRef1 - this.saveHeaderData.scheduleType=currentData.scheduleType - this.saveHeaderData.operatorId=currentData.operatorId - this.saveHeaderData.operatorName=currentData.operatorName - this.saveHeaderData.userId=this.$store.state.user.name - - + this.setUp.reviewFlag = true; + this.setUp.disabled = true; + let currentData = JSON.parse(JSON.stringify(row)); + this.saveHeaderData.site = currentData.site; + this.saveHeaderData.seqNo = currentData.seqNo; + this.saveHeaderData.itemNo = currentData.itemNo; + this.saveHeaderData.operationDesc = currentData.itemDesc; + this.saveHeaderData.partNo = currentData.partNo; + this.saveHeaderData.partDescription = currentData.partSpec; + this.saveHeaderData.workCenterNo = currentData.sWorkCenterNo; + this.saveHeaderData.workCenterDesc = currentData.workCenterDesc; + this.saveHeaderData.orderRef1=currentData.orderRef1; + this.saveHeaderData.scheduleType=currentData.scheduleType; + this.saveHeaderData.operatorId=currentData.operatorId; + this.saveHeaderData.operatorName=currentData.operatorName; + this.saveHeaderData.userId=this.$store.state.user.name; + this.qty1=''; + this.qty2 =''; this.saveHeaderData.planStartTime = this.dayjs(new Date()).format('YYYY-MM-DD 00:00:00') searchReportedQty(this.saveHeaderData).then(({data}) => { this.qty1 = data.row.qtyReported; @@ -714,6 +730,8 @@ lastPicture(){ if(this.photoDatas.length==0){ this.fileTitle="文件名 ("+0+"/"+0+")"; + this.fileName=''; + this.photoUrl=''; this.$alert('该物料没有上传图片!', '错误', { confirmButtonText: '确定' }) diff --git a/src/views/modules/production/operator.vue b/src/views/modules/production/operator.vue index 32d5e61..e5381a3 100644 --- a/src/views/modules/production/operator.vue +++ b/src/views/modules/production/operator.vue @@ -129,10 +129,10 @@
- 添加技能>> + 添加>>
- 删除技能<< + 删除<<
diff --git a/src/views/modules/production/print_stock_label.js b/src/views/modules/production/print_stock_label.js index b2b2d4d..175dbb7 100644 --- a/src/views/modules/production/print_stock_label.js +++ b/src/views/modules/production/print_stock_label.js @@ -34,7 +34,7 @@ export function printMaterialLabel(printList) { // // - LODOP.ADD_PRINT_BARCODE(11,244,208,140,"QRCode","1|RM|batchNo|locationid|80001"); + LODOP.ADD_PRINT_BARCODE(11,244,208,140,"QRCode",printData.seqNo); LODOP.ADD_PRINT_TEXT(58,8,108,25,"WareHouseId:"); LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.SET_PRINT_STYLEA(0,"Bold",1); @@ -87,9 +87,9 @@ export function printMaterialLabel(printList) { LODOP.SET_PRINT_STYLEA(0,"FontSize",10); LODOP.ADD_PRINT_LINE(186,2,187,374,0,1); } - LODOP.PRINT_DESIGN(); + // LODOP.PRINT_DESIGN(); //LODOP.PREVIEW(); - // LODOP.PRINT(); + LODOP.PRINT(); console.log("操作成功!") } } diff --git a/src/views/modules/production/stockPrint.vue b/src/views/modules/production/stockPrint.vue index 44caac4..d62c892 100644 --- a/src/views/modules/production/stockPrint.vue +++ b/src/views/modules/production/stockPrint.vue @@ -138,7 +138,7 @@