更新
This commit is contained in:
@@ -629,6 +629,7 @@ export default {
|
|||||||
}, 120000);
|
}, 120000);
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
|
// 进入运输模式
|
||||||
that.$confirm('请确保已经取掉左右光盘仓托架,再点击确定', '温馨提示', {
|
that.$confirm('请确保已经取掉左右光盘仓托架,再点击确定', '温馨提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
|
|||||||
@@ -20,14 +20,22 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="flex_box form_option">
|
<div class="flex_box form_option">
|
||||||
<div class="form_label">维护工作站</div>
|
<div class="form_label">设置设备</div>
|
||||||
<div class="form_val">
|
<div class="form_val">
|
||||||
<div class="flex_box flex_wrap form_tabs">
|
<div class="flex_box flex_wrap form_tabs">
|
||||||
<div v-for="(item, index) in actionList" :key="index" class="form_tab">{{ item.name }}</div>
|
<div @click="handleAction(item)" v-for="(item, index) in actionList" :key="index" class="form_tab">{{ item.name }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex_box form_option">
|
||||||
|
<div class="form_label">维护设备</div>
|
||||||
|
<div class="form_val">
|
||||||
|
<div class="flex_box flex_wrap form_tabs">
|
||||||
|
<div @click="handleService(item)" v-for="(item, index) in serviceList" :key="index" class="form_tab">{{ item.name }}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form_item">
|
<div class="form_item">
|
||||||
@@ -131,7 +139,7 @@ export default {
|
|||||||
moveList: [
|
moveList: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
name: '校准设备'
|
name: '校准打印机'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
@@ -143,30 +151,32 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 4,
|
id: 4,
|
||||||
name: '手动校准驱动'
|
name: '校准盘仓'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
actionList: [
|
actionList: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
name: '重置工作站'
|
name: '手动设置光驱'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: '重置工作站(有卡)'
|
name: '自动设置光驱'
|
||||||
|
},
|
||||||
|
],
|
||||||
|
serviceList: [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: '重启设备'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
name: '清除错误'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
name: '核准色带灯'
|
name: '进入运输模式'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 4,
|
|
||||||
name: '初始化进卡槽'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 5,
|
|
||||||
name: '清洁工作站'
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
refreshTime: 10,
|
refreshTime: 10,
|
||||||
sleepTime: 300000,
|
sleepTime: 300000,
|
||||||
@@ -232,7 +242,7 @@ export default {
|
|||||||
switch (e.id) {
|
switch (e.id) {
|
||||||
case 1:
|
case 1:
|
||||||
// 校准设备
|
// 校准设备
|
||||||
that.$store
|
this.$store
|
||||||
.dispatch('chat/websocketsend', {
|
.dispatch('chat/websocketsend', {
|
||||||
req_name: 'CaliPrinter',
|
req_name: 'CaliPrinter',
|
||||||
req_type: 2,
|
req_type: 2,
|
||||||
@@ -241,7 +251,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
that.$message({
|
this.$message({
|
||||||
message: '执行成功',
|
message: '执行成功',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
@@ -249,7 +259,7 @@ export default {
|
|||||||
break
|
break
|
||||||
case 2:
|
case 2:
|
||||||
// 校准上光驱
|
// 校准上光驱
|
||||||
that.$store
|
this.$store
|
||||||
.dispatch('chat/websocketsend', {
|
.dispatch('chat/websocketsend', {
|
||||||
req_name: 'CaliPrinter',
|
req_name: 'CaliPrinter',
|
||||||
req_type: 2,
|
req_type: 2,
|
||||||
@@ -258,7 +268,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
that.$message({
|
this.$message({
|
||||||
message: '执行成功',
|
message: '执行成功',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
@@ -266,7 +276,7 @@ export default {
|
|||||||
break
|
break
|
||||||
case 3:
|
case 3:
|
||||||
// 校准下光驱
|
// 校准下光驱
|
||||||
that.$store
|
this.$store
|
||||||
.dispatch('chat/websocketsend', {
|
.dispatch('chat/websocketsend', {
|
||||||
req_name: 'CaliPrinter',
|
req_name: 'CaliPrinter',
|
||||||
req_type: 2,
|
req_type: 2,
|
||||||
@@ -275,13 +285,32 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
that.$message({
|
this.$message({
|
||||||
message: '执行成功',
|
message: '执行成功',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
case 4:
|
case 4:
|
||||||
|
// 校准盘仓
|
||||||
|
this.$store.dispatch('chat/websocketsend', {
|
||||||
|
req_name: 'CaliCDStone',
|
||||||
|
req_type: 2,
|
||||||
|
req_info: {}
|
||||||
|
}).then(() => {
|
||||||
|
this.$message({
|
||||||
|
message: '执行成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
break
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 设置设备
|
||||||
|
handleAction(e) {
|
||||||
|
switch (e.id) {
|
||||||
|
case 1:
|
||||||
|
// 手动设置光驱
|
||||||
this.$store
|
this.$store
|
||||||
.dispatch('chat/websocketsend', {
|
.dispatch('chat/websocketsend', {
|
||||||
req_name: 'get_all_cd',
|
req_name: 'get_all_cd',
|
||||||
@@ -292,6 +321,69 @@ export default {
|
|||||||
this.cdShow = true
|
this.cdShow = true
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
|
case 2:
|
||||||
|
// 自动设置光驱
|
||||||
|
this.$store.dispatch('chat/websocketsend', {
|
||||||
|
req_name: 'autoSetCDDev',
|
||||||
|
req_type: 2,
|
||||||
|
req_info: {}
|
||||||
|
}).then(() => {
|
||||||
|
this.$message({
|
||||||
|
message: '执行成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
break
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 维护设备
|
||||||
|
handleService(e) {
|
||||||
|
switch (e.id) {
|
||||||
|
case 1:
|
||||||
|
// 重启设备
|
||||||
|
this.$store.dispatch('chat/websocketsend', {
|
||||||
|
req_name: 'resetPrinter',
|
||||||
|
req_type: 2,
|
||||||
|
req_info: {}
|
||||||
|
}).then(() => {
|
||||||
|
this.$message({
|
||||||
|
message: '执行成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
break
|
||||||
|
case 2:
|
||||||
|
// 清除错误
|
||||||
|
this.$store.dispatch('chat/websocketsend', {
|
||||||
|
req_name: 'cleanError',
|
||||||
|
req_type: 2,
|
||||||
|
req_info: {}
|
||||||
|
}).then(() => {
|
||||||
|
this.$message({
|
||||||
|
message: '执行成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
break
|
||||||
|
case 3:
|
||||||
|
// 进入运输模式
|
||||||
|
this.$confirm('请确保已经取掉左右光盘仓托架,再点击确定', '温馨提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
this.$store.dispatch('chat/websocketsend', {
|
||||||
|
req_name: 'TransportMode',
|
||||||
|
req_type: 2,
|
||||||
|
req_info: {}
|
||||||
|
}).then(() => {
|
||||||
|
this.$message({
|
||||||
|
message: '执行成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cdChange(index, e) {
|
cdChange(index, e) {
|
||||||
@@ -310,7 +402,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
that.$message({
|
this.$message({
|
||||||
message: '执行成功',
|
message: '执行成功',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
@@ -327,7 +419,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
that.$message({
|
this.$message({
|
||||||
message: '执行成功',
|
message: '执行成功',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user