|
|
@ -2,7 +2,7 @@ |
|
|
<div class="produce-report customer-css"> |
|
|
<div class="produce-report customer-css"> |
|
|
<el-dialog v-drag |
|
|
<el-dialog v-drag |
|
|
width="830px" class="customer-dialog" |
|
|
width="830px" class="customer-dialog" |
|
|
:title="'生产报工'" |
|
|
|
|
|
|
|
|
:title="titleCon" |
|
|
:close-on-click-modal="false" |
|
|
:close-on-click-modal="false" |
|
|
:visible.sync="visibleFlag"> |
|
|
:visible.sync="visibleFlag"> |
|
|
<el-form :inline="true" label-position="top" style="height: 480px;" label-width="80px"> |
|
|
<el-form :inline="true" label-position="top" style="height: 480px;" label-width="80px"> |
|
|
@ -59,23 +59,23 @@ |
|
|
<span>{{this.currentRollOps.rollNo}}</span> |
|
|
<span>{{this.currentRollOps.rollNo}}</span> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.createRollFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
创建新卷</el-button> |
|
|
创建新卷</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.switchRollFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
切换卷</el-button> |
|
|
切换卷</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.separatorRollFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
创建分卷</el-button> |
|
|
创建分卷</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.finishRollFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
结束卷</el-button> |
|
|
结束卷</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.mergeRollFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
合并卷</el-button> |
|
|
合并卷</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -288,7 +288,7 @@ |
|
|
<legend class="customer-legend">生产调机</legend> |
|
|
<legend class="customer-legend">生产调机</legend> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 20px; margin-top: 20px; margin-bottom: 25px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" @click="refreshPageData" style="margin-left: 20px; margin-top: 20px; margin-bottom: 25px;"> |
|
|
刷新</el-button> |
|
|
刷新</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
@ -296,11 +296,11 @@ |
|
|
切换用户</el-button> |
|
|
切换用户</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.tuningFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
开始调机</el-button> |
|
|
开始调机</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.produceFlag" style="margin-left: 10px; margin-bottom: 5px;"> |
|
|
开始生产</el-button> |
|
|
开始生产</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -310,7 +310,7 @@ |
|
|
<legend class="customer-legend">不良</legend> |
|
|
<legend class="customer-legend">不良</legend> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 50px; margin-top: 10px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.defectFlag" style="margin-left: 50px; margin-top: 10px;"> |
|
|
报告不良</el-button> |
|
|
报告不良</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -321,11 +321,11 @@ |
|
|
<legend class="customer-legend">扫描</legend> |
|
|
<legend class="customer-legend">扫描</legend> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 30px; margin-top: 20px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.toolFlag" style="margin-left: 30px; margin-top: 20px;"> |
|
|
刀模板</el-button> |
|
|
刀模板</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 10px; margin-top: 20px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.materialFlag" style="margin-left: 10px; margin-top: 20px;"> |
|
|
材料</el-button> |
|
|
材料</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -336,7 +336,7 @@ |
|
|
<legend class="customer-legend">停机</legend> |
|
|
<legend class="customer-legend">停机</legend> |
|
|
<el-form> |
|
|
<el-form> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" style="margin-left: 30px; margin-top: 10px;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="buttonTags.downTimeFlag" style="margin-left: 30px; margin-top: 10px;"> |
|
|
报告其他停机</el-button> |
|
|
报告其他停机</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
@ -364,6 +364,7 @@ export default { |
|
|
name: "produce_report_normal", |
|
|
name: "produce_report_normal", |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
titleCon:'', |
|
|
visibleFlag: false, |
|
|
visibleFlag: false, |
|
|
activeTable: 'sfdc_time', |
|
|
activeTable: 'sfdc_time', |
|
|
sfdcTimeList: [], |
|
|
sfdcTimeList: [], |
|
|
@ -2535,6 +2536,28 @@ export default { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
seqNo: '', |
|
|
seqNo: '', |
|
|
rollNo: '', |
|
|
rollNo: '', |
|
|
|
|
|
finishedFlag: '', |
|
|
|
|
|
}, |
|
|
|
|
|
operatorData: { |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
username: this.$store.state.user.name, |
|
|
|
|
|
operatorId: '', |
|
|
|
|
|
operatorName: '', |
|
|
|
|
|
status: '', |
|
|
|
|
|
showFlag: false |
|
|
|
|
|
}, |
|
|
|
|
|
buttonTags:{ |
|
|
|
|
|
createRollFlag: true, |
|
|
|
|
|
switchRollFlag: true, |
|
|
|
|
|
separatorRollFlag: true, |
|
|
|
|
|
finishRollFlag: true, |
|
|
|
|
|
mergeRollFlag: true, |
|
|
|
|
|
tuningFlag: true, |
|
|
|
|
|
produceFlag: true, |
|
|
|
|
|
defectFlag: true, |
|
|
|
|
|
toolFlag: true, |
|
|
|
|
|
materialFlag: true, |
|
|
|
|
|
downTimeFlag: true |
|
|
}, |
|
|
}, |
|
|
dataListLoading: false, |
|
|
dataListLoading: false, |
|
|
} |
|
|
} |
|
|
@ -2543,13 +2566,24 @@ export default { |
|
|
// 获取多语言列表 |
|
|
// 获取多语言列表 |
|
|
getScheduleDataBySeqNo(){ |
|
|
getScheduleDataBySeqNo(){ |
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
this.scheduleData = data.row; |
|
|
|
|
|
|
|
|
this.scheduleData.seqNo= data.row.seqNo; |
|
|
|
|
|
this.scheduleData.orderNo= data.row.orderNo; |
|
|
|
|
|
this.scheduleData.partNo= data.row.partNo; |
|
|
|
|
|
this.scheduleData.partDesc= data.row.partDesc; |
|
|
|
|
|
this.scheduleData.planStartTime= data.row.planStartTime; |
|
|
|
|
|
this.scheduleData.planFinishTime= data.row.planFinishTime; |
|
|
|
|
|
this.scheduleData.qtyRequiredOriginal= data.row.qtyRequiredOriginal; |
|
|
|
|
|
this.scheduleData.scheduledDate= data.row.scheduledDate; |
|
|
|
|
|
this.scheduleData.shiftNo= data.row.shiftNo; |
|
|
|
|
|
this.scheduleData.preItemDesc= data.row.preItemDesc; |
|
|
|
|
|
this.scheduleData.nextItemDesc= data.row.nextItemDesc; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
// 获取当前卷的信息 |
|
|
// 获取当前卷的信息 |
|
|
getCurrentRollOpsBySeqNo(){ |
|
|
getCurrentRollOpsBySeqNo(){ |
|
|
getCurrentRollOpsBySeqNo(this.currentRollOps).then(({data}) => { |
|
|
getCurrentRollOpsBySeqNo(this.currentRollOps).then(({data}) => { |
|
|
this.currentRollOps = data.row; |
|
|
|
|
|
|
|
|
this.currentRollOps.rollNo = data.row.rollNo; |
|
|
|
|
|
this.currentRollOps.finishedFlag = data.row.finishedFlag; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -2620,7 +2654,9 @@ export default { |
|
|
//判断是否按照当前卷来查询 |
|
|
//判断是否按照当前卷来查询 |
|
|
if(this.scheduleData.currentRollFlag){ |
|
|
if(this.scheduleData.currentRollFlag){ |
|
|
//设置相关的卷号 判断是否存在卷 |
|
|
//设置相关的卷号 判断是否存在卷 |
|
|
this.scheduleData.rollNo = data.row.rollNo; |
|
|
|
|
|
|
|
|
this.scheduleData.rollNo = this.currentRollOps.rollNo; |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.scheduleData.rollNo = ''; |
|
|
} |
|
|
} |
|
|
//区分不同的页签刷新不同的列表数据 |
|
|
//区分不同的页签刷新不同的列表数据 |
|
|
if(this.activeTable == 'sfdc_time'){ |
|
|
if(this.activeTable == 'sfdc_time'){ |
|
|
@ -2641,9 +2677,11 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
init(seqNo) { |
|
|
|
|
|
|
|
|
init(seqNo, operatorData) { |
|
|
|
|
|
debugger; |
|
|
this.scheduleData.seqNo = seqNo; |
|
|
this.scheduleData.seqNo = seqNo; |
|
|
this.currentRollOps.seqNo = seqNo; |
|
|
this.currentRollOps.seqNo = seqNo; |
|
|
|
|
|
this.operatorData = operatorData; |
|
|
//刷新当前派工单的信息 |
|
|
//刷新当前派工单的信息 |
|
|
this.refreshPageData(); |
|
|
this.refreshPageData(); |
|
|
}, |
|
|
}, |
|
|
@ -2651,7 +2689,20 @@ export default { |
|
|
//刷新页面的数据 |
|
|
//刷新页面的数据 |
|
|
refreshPageData(){ |
|
|
refreshPageData(){ |
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => { |
|
|
this.scheduleData = data.row; |
|
|
|
|
|
|
|
|
this.scheduleData.seqNo= data.row.seqNo; |
|
|
|
|
|
this.scheduleData.orderNo= data.row.orderNo; |
|
|
|
|
|
this.scheduleData.partNo= data.row.partNo; |
|
|
|
|
|
this.scheduleData.partDesc= data.row.partDesc; |
|
|
|
|
|
this.scheduleData.planStartTime= data.row.planStartTime; |
|
|
|
|
|
this.scheduleData.planFinishTime= data.row.planFinishTime; |
|
|
|
|
|
this.scheduleData.qtyRequiredOriginal= data.row.qtyRequiredOriginal; |
|
|
|
|
|
this.scheduleData.scheduledDate= data.row.scheduledDate; |
|
|
|
|
|
this.scheduleData.shiftNo= data.row.shiftNo; |
|
|
|
|
|
this.scheduleData.preItemDesc= data.row.preItemDesc; |
|
|
|
|
|
this.scheduleData.nextItemDesc= data.row.nextItemDesc; |
|
|
|
|
|
//设置弹窗的标题 |
|
|
|
|
|
this.titleCon = '机台工作台' + ' - ' + data.row.workCenterDesc + ' ' |
|
|
|
|
|
+ data.row.resourceDesc + ' (' + this.operatorData.operatorName+ ')'; |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
//打开模态框 |
|
|
//打开模态框 |
|
|
this.visibleFlag = true; |
|
|
this.visibleFlag = true; |
|
|
|