From 3a4496ed0c1acdf5d1d96d2c4a2b2b2d5c9588b4 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Tue, 20 Sep 2022 18:26:22 +0800 Subject: [PATCH] =?UTF-8?q?0412=20=E6=96=B0=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/production/generateReport.js | 2 + .../modules/production/generateReport.vue | 48 +++++++++++++++++-- 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/src/api/production/generateReport.js b/src/api/production/generateReport.js index 96da774..adf4fb8 100644 --- a/src/api/production/generateReport.js +++ b/src/api/production/generateReport.js @@ -21,3 +21,5 @@ export const updatePrintStock= data => createAPI(`dailyPlan/updatePrintStock`, ' // 扫描派工单获取改派工单数据 export const searchSeqNo= data => createAPI(`dailyPlan/searchSeqNo`, 'post', data); +//保存开始时间 +export const startSeqNo= data => createAPI(`dailyPlan/startSeqNo`, 'post', data); diff --git a/src/views/modules/production/generateReport.vue b/src/views/modules/production/generateReport.vue index 720a68e..3970262 100644 --- a/src/views/modules/production/generateReport.vue +++ b/src/views/modules/production/generateReport.vue @@ -65,7 +65,8 @@ 查询 - 扫描派工单 + 派工单开始 + 派工单报工 搜索 - 关闭 + 关闭 + + + + + + + + + + 开始 + 关闭 @@ -410,7 +422,8 @@ getSOScheduleRoutingData , saveGenerateReportForSchedule, searchReportedQty, - searchSeqNo + searchSeqNo, + startSeqNo, } from '@/api/production/generateReport.js' import Chooselist from '@/views/modules/common/Chooselist' import { @@ -528,6 +541,7 @@ url: '', height2:600, tagNo2:'', + startModalFlag:false, } }, mounted () { @@ -801,6 +815,11 @@ this.scanModalFlag=true; this.$nextTick(() => { this.$refs.input.focus();}) }, + openStart(){ + this.scanSeqNo=''; + this.startModalFlag=true; + this.$nextTick(() => { this.$refs.start.focus();}) + }, searchSeqNo(){ if(this.scanSeqNo==''){ this.$alert("请扫描派工单!",'错误', { @@ -924,6 +943,29 @@ this.saveHeaderData.qtyRework='' } }, + startSeqNo(){ + let inData={ + site:this.$store.state.user.site, + username:this.$store.state.user.name, + seqNo:this.scanSeqNo + } + startSeqNo(inData).then(({data}) => { + if (data && data.code === 0) { + this.scanSeqNo=''; + this.$message({ + message: '操作成功', + type: 'success', + duration: 1500, + onClose: () => { + } + }) + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }) + }, }, created () { }