工位 增加通用再次工作弹窗
This commit is contained in:
@@ -104,6 +104,25 @@
|
|||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<!-- 工作过工件提示框(文本和颜色由后端传入,用于区分报错类型) -->
|
||||||
|
<el-dialog
|
||||||
|
:append-to-body="true"
|
||||||
|
:before-close="handleClose"
|
||||||
|
:visible.sync="twoWorkMsgDialogVisible"
|
||||||
|
center
|
||||||
|
title="提示"
|
||||||
|
width="30%"
|
||||||
|
>
|
||||||
|
<div :style="{ fontSize: '22px', color: twoWorkMsgColor }">
|
||||||
|
{{ twoWorkMsg }}
|
||||||
|
</div>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<div style="display: flex;justify-content: center">
|
||||||
|
<el-button type="primary" @click="twoWork">重新工作</el-button>
|
||||||
|
<el-button @click="twoWorkSkip">工件下线</el-button>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
<!-- 拧紧工位 确认工件复位提示框 -->
|
<!-- 拧紧工位 确认工件复位提示框 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:append-to-body="true"
|
:append-to-body="true"
|
||||||
@@ -371,6 +390,9 @@ export default {
|
|||||||
],
|
],
|
||||||
workAgainDialogVisible: false,
|
workAgainDialogVisible: false,
|
||||||
twoWorkDialogVisible: false,
|
twoWorkDialogVisible: false,
|
||||||
|
twoWorkMsgDialogVisible: false, // 后端控制的工件提示弹窗
|
||||||
|
twoWorkMsg: '', // 弹窗文本(后端传入)
|
||||||
|
twoWorkMsgColor: '#ff0000', // 弹窗文本颜色(后端传入,用于区分报错类型)
|
||||||
workOver_Is_ShowWindow: false,
|
workOver_Is_ShowWindow: false,
|
||||||
workOver_Is_ShowWindow_msg: '',
|
workOver_Is_ShowWindow_msg: '',
|
||||||
BarCodeCheckNGDialogVisible: false,
|
BarCodeCheckNGDialogVisible: false,
|
||||||
@@ -1625,6 +1647,18 @@ export default {
|
|||||||
this.$message.error('错误断点:PartLoad!!!')
|
this.$message.error('错误断点:PartLoad!!!')
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
// 已工作过工件(文本和颜色由后端传入,用于区分报错类型)m_Value 格式:文本&颜色
|
||||||
|
case 'Engine_Is_TwoWork_Msg':
|
||||||
|
try {
|
||||||
|
const twoWorkMsgList = m_Value.split('&')
|
||||||
|
this.twoWorkMsg = twoWorkMsgList[0]
|
||||||
|
this.twoWorkMsgColor = twoWorkMsgList[1] || '#ff0000'
|
||||||
|
this.twoWorkMsgDialogVisible = true
|
||||||
|
console.log('Engine_Is_TwoWork_Msg', this.twoWorkMsg, this.twoWorkMsgColor)
|
||||||
|
} catch (exception) {
|
||||||
|
this.$message.error('错误断点:Engine_Is_TwoWork_Msg!!!')
|
||||||
|
}
|
||||||
|
break
|
||||||
// 在MA110 与 140 工位需要弹窗确认的工件,弹出确认复位
|
// 在MA110 与 140 工位需要弹窗确认的工件,弹出确认复位
|
||||||
case 'WorkOver_Is_ShowWindow':
|
case 'WorkOver_Is_ShowWindow':
|
||||||
try {
|
try {
|
||||||
@@ -1907,6 +1941,7 @@ export default {
|
|||||||
console.log(result)
|
console.log(result)
|
||||||
if (result) {
|
if (result) {
|
||||||
this.twoWorkDialogVisible = false
|
this.twoWorkDialogVisible = false
|
||||||
|
this.twoWorkMsgDialogVisible = false
|
||||||
this.$message.success('工件下线成功')
|
this.$message.success('工件下线成功')
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('工件下线失败')
|
this.$message.error('工件下线失败')
|
||||||
@@ -1924,6 +1959,7 @@ export default {
|
|||||||
const result = window.g.mqttClient.doPublish(this.publication)
|
const result = window.g.mqttClient.doPublish(this.publication)
|
||||||
if (result) {
|
if (result) {
|
||||||
this.twoWorkDialogVisible = false
|
this.twoWorkDialogVisible = false
|
||||||
|
this.twoWorkMsgDialogVisible = false
|
||||||
this.$message.success('重新工作成功')
|
this.$message.success('重新工作成功')
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('重新工作失败')
|
this.$message.error('重新工作失败')
|
||||||
|
|||||||
Reference in New Issue
Block a user