|
|
|
@ -246,16 +246,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item prop="udiCode" label="" class="query-form-item">
|
|
|
|
|
<el-descriptions class="margin-top" title="" :column="2" border style="width: 80%">
|
|
|
|
|
<el-descriptions-item label="灯组标签">{{ ledData.mac }}</el-descriptions-item>
|
|
|
|
|
<!--<el-descriptions-item label="货架名称">{{ sysWorkplaceQueue.name }}</el-descriptions-item>-->
|
|
|
|
|
<el-descriptions-item label="备注">{{ ledData.remark }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="红灯">{{ lesStatusMap[ledData.red] }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="黄灯">{{ lesStatusMap[ledData.orange] }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="蓝灯">{{ lesStatusMap[ledData.blue] }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="绿灯">{{ lesStatusMap[ledData.green] }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="红灯"><el-tag v-if="ledData.red !=null" :type="ledData.red == 0 ? 'info' : 'success'">{{ ledData.red == 0 ? "关闭" : "开启" }}</el-tag></el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="黄灯"><el-tag v-if="ledData.red !=null" :type="ledData.orange == 0 ? 'info' : 'success'">{{ ledData.orange == 0 ? "关闭" : "开启" }}</el-tag></el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="蓝灯"><el-tag v-if="ledData.red !=null" :type="ledData.blue == 0 ? 'info' : 'success'">{{ ledData.blue == 0 ? "关闭" : "开启" }}</el-tag></el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="绿灯"><el-tag v-if="ledData.red !=null" :type="ledData.green == 0 ? 'info' : 'success'">{{ ledData.green == 0 ? "关闭" : "开启" }}</el-tag></el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -502,7 +503,7 @@ export default {
|
|
|
|
|
lesStatusMap: {
|
|
|
|
|
true : "开启",
|
|
|
|
|
false: "关闭"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -869,7 +870,12 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.sysWorkplaceQueue = {}
|
|
|
|
|
this.product = {}
|
|
|
|
|
this.ledData = {}
|
|
|
|
|
this.ledData = {
|
|
|
|
|
red : null,
|
|
|
|
|
orange: null,
|
|
|
|
|
blue: null,
|
|
|
|
|
green: null
|
|
|
|
|
}
|
|
|
|
|
this.addBindVisible = true
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.$refs.inputRef1.focus() // 设置焦点到第一个输入框
|
|
|
|
|