|
|
@ -188,9 +188,12 @@ |
|
|
<el-button type="primary" size="small" @click="startProduceModal" :disabled="buttonTags.produceFlag" icon="el-icon-video-play"> |
|
|
<el-button type="primary" size="small" @click="startProduceModal" :disabled="buttonTags.produceFlag" icon="el-icon-video-play"> |
|
|
开始生产 |
|
|
开始生产 |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button type="primary" size="small" @click="sopPreviewModal" icon="el-icon-document" style="grid-column: 1 / -1;"> |
|
|
|
|
|
|
|
|
<el-button type="primary" size="small" @click="sopPreviewModal" icon="el-icon-document"> |
|
|
SOP预览 |
|
|
SOP预览 |
|
|
</el-button> |
|
|
</el-button> |
|
|
|
|
|
<el-button type="primary" size="small" @click="openProcessDataPage" icon="el-icon-setting"> |
|
|
|
|
|
工艺参数 |
|
|
|
|
|
</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
@ -3243,6 +3246,7 @@ export default { |
|
|
rowCount: '', |
|
|
rowCount: '', |
|
|
rollCount: '', |
|
|
rollCount: '', |
|
|
carrierNo: '', |
|
|
carrierNo: '', |
|
|
|
|
|
batchNo: '', // 合约号码 |
|
|
}, |
|
|
}, |
|
|
currentRollOps: { |
|
|
currentRollOps: { |
|
|
site: this.$store.state.user.site, |
|
|
site: this.$store.state.user.site, |
|
|
@ -4236,6 +4240,7 @@ export default { |
|
|
this.scheduleData.rowCount = data.row.rowCount; |
|
|
this.scheduleData.rowCount = data.row.rowCount; |
|
|
this.scheduleData.rollCount = data.row.rollCount; |
|
|
this.scheduleData.rollCount = data.row.rollCount; |
|
|
this.scheduleData.carrierNo = data.row.carrierNo; |
|
|
this.scheduleData.carrierNo = data.row.carrierNo; |
|
|
|
|
|
this.scheduleData.batchNo = data.row.batchNo; |
|
|
//设置弹窗的标题 |
|
|
//设置弹窗的标题 |
|
|
this.titleCon = '机台工作台' + ' - ' + data.row.itemDesc + ' ' |
|
|
this.titleCon = '机台工作台' + ' - ' + data.row.itemDesc + ' ' |
|
|
+ data.row.resourceDesc + ' (' + this.operatorData.operatorName + ')'; |
|
|
+ data.row.resourceDesc + ' (' + this.operatorData.operatorName + ')'; |
|
|
@ -5133,6 +5138,36 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 打开工艺参数页面 |
|
|
|
|
|
openProcessDataPage() { |
|
|
|
|
|
// 检查是否有选择的派工单 |
|
|
|
|
|
if (JSON.stringify(this.currentRow) == '{}') { |
|
|
|
|
|
this.$message.error('请先选择派工单'); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 获取加工中心编码和合约号码 |
|
|
|
|
|
const workcenterNo = this.scheduleData.workCenterNo; |
|
|
|
|
|
const batchNo = this.scheduleData.batchNo; |
|
|
|
|
|
|
|
|
|
|
|
if (!workcenterNo) { |
|
|
|
|
|
this.$message.error('加工中心编码不能为空'); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!batchNo) { |
|
|
|
|
|
this.$message.error('合约号码不能为空'); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 从配置文件获取URL并拼接参数 |
|
|
|
|
|
const baseUrl = window.SITE_CONFIG['processDataUrl'] || 'http://10.2.1.159:3010/#/public/processData'; |
|
|
|
|
|
const targetUrl = `${baseUrl}/${workcenterNo}/${batchNo}`; |
|
|
|
|
|
|
|
|
|
|
|
// 在新窗口打开 |
|
|
|
|
|
window.open(targetUrl, '_blank'); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// SOP预览相关方法 |
|
|
// SOP预览相关方法 |
|
|
// 打开SOP预览弹出框 |
|
|
// 打开SOP预览弹出框 |
|
|
sopPreviewModal() { |
|
|
sopPreviewModal() { |
|
|
|