|
|
|
@ -65,7 +65,8 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button @click="search()" style="margin-left: 0px;margin-top:0px" type="primary">查询</el-button> |
|
|
|
<el-button @click="openScan()" style="margin-left: 0px;margin-top:0px" type="primary">扫描派工单</el-button> |
|
|
|
<el-button @click="openStart()" style="margin-left: 0px;margin-top:0px" type="primary">派工单开始</el-button> |
|
|
|
<el-button @click="openScan()" style="margin-left: 0px;margin-top:0px" type="primary">派工单报工</el-button> |
|
|
|
<download-excel |
|
|
|
:fields="exportDataStandard" |
|
|
|
:data="tableData" |
|
|
|
@ -221,7 +222,18 @@ |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
|
<el-button type="primary" @click="searchSeqNo()">搜索</el-button> |
|
|
|
<el-button type="primary" @click="printModalFlag = false">关闭</el-button> |
|
|
|
<el-button type="primary" @click="scanModalFlag = false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog title="开始派工单" :close-on-click-modal="false" v-drag :visible.sync="startModalFlag" width="215px"> |
|
|
|
<el-form :inline="true" label-position="top" style="margin-left: 22px;margin-top: -5px;"> |
|
|
|
<el-form-item :label="'派工单号:'"> |
|
|
|
<el-input v-model="scanSeqNo" ref="start" type="number" style="width: 130px;" @keyup.enter.native="startSeqNo()"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
|
<el-button type="primary" @click="startSeqNo()">开始</el-button> |
|
|
|
<el-button type="primary" @click="startModalFlag = false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog @close="closeDialog" :close-on-click-modal="false" :close-on-press-escape="false" v-drag title="报告信息" :visible.sync="setUp.reviewFlag" width="615px"> |
|
|
|
@ -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 () { |
|
|
|
} |
|
|
|
|