@@ -37,7 +37,8 @@
/ >
< / el-table >
< / el-dialog >
<!-- 弹窗设置设备与图标绑定与角度 -- >
<!-- 输送线弹出框 -- >
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
@@ -46,10 +47,10 @@
< el-form-item :label = "$t('monitor.click.bar_code')" label -width = " 120px " >
< el-input v-model = "form.hand_barcode" :disabled="false" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.request_flag ')" prop = "requireSucess" label -width = " 120px " >
< el-radio-group v-model = "form. requireSucess" >
< el -radio -button :label = "0 " > { { $t ( 'auto.common.false' ) } } < / el-radio-button >
< el-radio-button :label = "1 " > { { $t ( 'auto.common.true' ) } } < / el-radio-button >
< el-form-item :label = "$t('monitor.click.requireSuccess ')" prop = "requireSucc ess" label -width = " 120px " >
< el-radio-group v-model = "requireSucc essDisplay " >
< el -radio -button :label = "false " > { { $t ( 'auto.common.false' ) } } < / el-radio-button >
< el-radio-button :label = "true " > { { $t ( 'auto.common.true' ) } } < / el-radio-button >
< / el-radio-group >
< / el-form-item >
< / el-form >
@@ -58,136 +59,9 @@
< el-button type = "primary" @click ="dialogSave" > {{ $ t ( ' auto.common.Confirm ' ) }} < / el -button >
< / div >
< / el-dialog >
<!-- 弹窗设置设备与图标绑定与角度 -- >
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible3" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 80px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.device_status')" label -width = " 80px " >
< el-radio-group v-model = "form.hasGoodStatus" >
< el -radio -button :label = "0" > { { $t ( 'monitor.click.out_of_stock' ) } } < / el-radio-button >
< el-radio-button :label = "1" > { { $t ( 'monitor.click.with_pallets' ) } } < / el-radio-button >
< el-radio-button :label = "2" > { { $t ( 'monitor.click.pallets_and_goods' ) } } < / el-radio-button >
< / el-radio-group >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.material_code')" prop = "material_type" label -width = " 80px " >
< el-input v-model = "form.material_type" / >
< / el-form-item >
< / el-form >
< div slot = "footer" class = "dialog-footer" >
< el-button @click ="dialogFormVisible3 = false" > {{ $ t ( ' auto.common.Cancel ' ) }} < / el -button >
< el-button type = "primary" @click ="dialogSave" > {{ $ t ( ' auto.common.Confirm ' ) }} < / el -button >
< / div >
< / el-dialog >
<!-- 弹窗设置设备与图标绑定与角度 -- >
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible4" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.disabled_manipulator')" prop = "is_disable" label -width = " 120px " >
< el-radio-group v-model = "form.is_disable" >
< el -radio -button :label = "0" > { { $t ( 'monitor.click.normal' ) } } < / el-radio-button >
< el-radio-button :label = "1" > { { $t ( 'monitor.click.forbidden' ) } } < / el-radio-button >
< / el-radio-group >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.request_flag')" prop = "requireSucess" label -width = " 120px " >
< el-radio-group v-model = "form.requireSucess" >
< el -radio -button :label = "0" > { { $t ( 'auto.common.false' ) } } < / el-radio-button >
< el-radio-button :label = "1" > { { $t ( 'auto.common.true' ) } } < / el-radio-button >
< / el-radio-group >
< / el-form-item >
< / el-form >
< div slot = "footer" class = "dialog-footer" >
< el-button @click ="dialogFormVisible4 = false" > {{ $ t ( ' auto.common.Cancel ' ) }} < / el -button >
< el-button type = "primary" @click ="dialogSave" > {{ $ t ( ' auto.common.Confirm ' ) }} < / el -button >
< / div >
< / el-dialog >
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible5" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.request_flag')" prop = "requireSucess" label -width = " 120px " >
< el-radio-group v-model = "form.requireSucess" >
< el -radio -button :label = "0" > { { $t ( 'auto.common.false' ) } } < / el-radio-button >
< el-radio-button :label = "1" > { { $t ( 'auto.common.true' ) } } < / el-radio-button >
< / el-radio-group >
< / el-form-item >
< / el-form >
< div slot = "footer" class = "dialog-footer" >
< el-button @click ="dialogFormVisible5 = false" > {{ $ t ( ' auto.common.Cancel ' ) }} < / el -button >
< el-button type = "primary" @click ="dialogSave" > {{ $ t ( ' auto.common.Confirm ' ) }} < / el -button >
< / div >
< / el-dialog >
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible7" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.bar_code')" label -width = " 120px " >
< el-input v-model = "form.hand_barcode" :disabled="false" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.request_flag')" prop = "requireSucess" label -width = " 120px " >
< el-radio-group v-model = "form.requireSucess" >
< el -radio -button :label = "0" > { { $t ( 'auto.common.false' ) } } < / el-radio-button >
< el-radio-button :label = "1" > { { $t ( 'auto.common.true' ) } } < / el-radio-button >
< / el-radio-group >
< / el-form-item >
< / el-form >
< div slot = "footer" class = "dialog-footer" >
< el-button @click ="dialogFormVisible7 = false" > {{ $ t ( ' auto.common.Cancel ' ) }} < / el -button >
< el-button type = "primary" @click ="dialogSave" > {{ $ t ( ' auto.common.Confirm ' ) }} < / el -button >
< / div >
< / el-dialog >
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible6" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item label = "申请指令标记" prop = "requireSucess" label -width = " 120px " >
< el-radio-group v-model = "form.requireSucess" >
< el -radio -button :label = "0" > { { $t ( 'auto.common.false' ) } } < / el-radio-button >
< el-radio-button :label = "1" > { { $t ( 'auto.common.true' ) } } < / el-radio-button >
< / el-radio-group >
< / el-form-item >
< el-form-item label = "请求任务标记" prop = "applySucess" label -width = " 120px " >
< el-radio-group v-model = "form.applySucess" >
< el -radio -button :label = "0" > { { $t ( 'auto.common.false' ) } } < / el-radio-button >
< el-radio-button :label = "1" > { { $t ( 'auto.common.true' ) } } < / el-radio-button >
< / el-radio-group >
< / el-form-item >
< / el-form >
< div slot = "footer" class = "dialog-footer" >
< el-button @click ="dialogFormVisible5 = false" > {{ $ t ( ' auto.common.Cancel ' ) }} < / el -button >
< el-button type = "primary" @click ="dialogSave" > {{ $ t ( ' auto.common.Confirm ' ) }} < / el -button >
< / div >
< / el-dialog >
<!-- 弹窗设置设备与图标绑定与角度 -- >
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible1" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 80px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.bar_code')" prop = "device_code" label -width = " 80px " >
< el-input v-model = "form.barcode" :disabled="false" / >
< / el-form-item >
< / el-form >
< div slot = "footer" class = "dialog-footer" >
< el-button @click ="dialogFormVisible1 = false" > {{ $ t ( ' auto.common.Cancel ' ) }} < / el -button >
< el-button type = "primary" @click ="saveBarcode" > {{ $ t ( ' auto.common.Confirm ' ) }} < / el -button >
< / div >
< / el-dialog >
<!-- 堆垛机弹出框 -- >
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible8 " width = "35%" >
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible2 " width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
@@ -208,15 +82,21 @@
< el-form-item :label = "$t('monitor.click.stop_task')" prop = "stopReceiveTask" label -width = " 120px " >
< el-switch v-model = "form.stopReceiveTask" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.requireSucess')" prop = "requireSuccess" label -width = " 120px " >
< el-radio-group v-model = "form. requireSuccess" >
< el -radio -button :label = "0 " > { { $t ( 'auto.common.false' ) } } < / el-radio-button >
< el-radio-button :label = "1 " > { { $t ( 'auto.common.true' ) } } < / el-radio-button >
< el-form-item :label = "$t('monitor.click.requireSucc ess')" prop = "requireSuccess" label -width = " 120px " >
< el-radio-group v-model = "requireSuccessDisplay " >
< el -radio -button :label = "false " > { { $t ( 'auto.common.false' ) } } < / el-radio-button >
< el-radio-button :label = "true " > { { $t ( 'auto.common.true' ) } } < / el-radio-button >
< / el-radio-group >
< / el-form-item >
< el-form-item label = "异常请求标记" prop = "againRequireSuccessDisplay" label -width = " 120px " >
< el-radio-group v-model = "againRequireSuccessDisplay" >
< el -radio -button :label = "false" > { { $t ( 'auto.common.false' ) } } < / el-radio-button >
< el-radio-button :label = "true" > { { $t ( 'auto.common.true' ) } } < / el-radio-button >
< / el-radio-group >
< / el-form-item >
< / el-form >
< div slot = "footer" class = "dialog-footer" >
< el-button @click ="dialogFormVisible8 = false" > {{ $ t ( ' auto.common.Cancel ' ) }} < / el -button >
< el-button @click ="dialogFormVisible2 = false" > {{ $ t ( ' auto.common.Cancel ' ) }} < / el -button >
< el-button type = "primary" @click ="dialogSave" > {{ $ t ( ' auto.common.Confirm ' ) }} < / el -button >
< / div >
< / el-dialog >
@@ -248,16 +128,7 @@ export default {
stageSelectList : [ ] ,
arr : [ ] , // 显示数组
dialogFormVisible : false ,
dialogFormVisible1 : false ,
dialogFormVisible2 : false ,
dialogFormVisible3 : false ,
dialogFormVisible4 : false ,
dialogFormVisible5 : false ,
dialogFormVisible6 : false ,
dialogFormVisible7 : false ,
dialogFormVisible8 : false ,
dialogFormVisible9 : false ,
dialogFormVisible10 : false ,
Stages : [ ] ,
stage _code : '' ,
form : {
@@ -265,23 +136,36 @@ export default {
hasGoodStatus : null ,
barcode : '' ,
hand _barcode : '' ,
suspended : null ,
material _type : '' ,
requireSucess : '' ,
fullrequireSucess : '' ,
is _disable : '' ,
applySucess : '' ,
toCommand : null ,
prohibitInWarehouse : false ,
prohibitOutWarehouse : false ,
stopReceiveTask : false ,
requireSuccess : false
requireSuccess : false ,
againRequireSuccess : false
} ,
allDeviceMsg : [ ] ,
msgTop : '200px' ,
msgLeft : '200px'
}
} ,
computed : {
requireSuccessDisplay : {
get ( ) {
return this . form . requireSuccess === true
} ,
set ( newValue ) {
this . form . requireSuccess = ! ! newValue
}
} ,
againRequireSuccessDisplay : {
get ( ) {
return this . form . againRequireSuccess === true
} ,
set ( newValue ) {
this . form . againRequireSuccess = ! ! newValue
}
}
} ,
created ( ) {
selectStageList ( ) . then ( data => {
this . Stages = data
@@ -393,30 +277,8 @@ export default {
if ( clickObj . data . device _type === 'scanner' ) { // 扫码器
this . dialogFormVisible1 = true
} else {
console . log ( clickObj . data . driver _type )
if ( clickObj . data . driver _type === 'standard_ordinary_site' ) {
this . dialogFormVisible3 = true
} else if ( clickObj . data . driver _type === 'hailiang_packer_station' ) {
this . dialogFormVisible4 = true
} else if ( clickObj . data . driver _type === 'hailiang_xj_plc_test' ) {
this . $refs . child1 . setForm ( clickObj )
} else if ( clickObj . data . driver _type === 'slit_two_manipulator' ) {
this . dialogFormVisible4 = true
} else if ( clickObj . data . driver _type === 'siemens_conveyor' ) {
// if (clickObj.data.device_name.includes('1016')) {
// this.dialogFormVisible7 = true
// } else {
// this.dialogFormVisible5 = true
// }
this . dialogFormVisible7 = true
} else if ( clickObj . data . driver _type === 'siemens_conveyor_ckk' ) {
this . dialogFormVisible7 = true
} else if ( clickObj . data . driver _type === 'standard_conveyor_control_with_scanner' ) {
this . dialogFormVisible6 = true
} else if ( clickObj . data . driver _type === 'standard_stacker_device' ) {
this . dialogFormVisible8 = true
} else if ( clickObj . data . driver _type === 'pull_head_manipulator' ) {
this . dialogFormVisible9 = true
if ( clickObj . data . driver _type === 'standard_stacker_device' ) {
this . dialogFormVisible2 = true
} else {
this . dialogFormVisible = true
}
@@ -424,18 +286,13 @@ export default {
this . form . angle = clickObj . angle
this . form . index = clickObj . index
this . form . device _code = clickObj . device _code
this . form . hasGoodStatus = clickObj . data . hasGoods
this . form . material _type = clickObj . data . material _type
this . form . requireSucess = clickObj . data . requireSucess
this . form . fullrequireSucess = clickObj . data . fullrequireSucess
this . form . is _disable = clickObj . data . is _disable1
this . form . applySucess = clickObj . data . applySucess
this . form . barcode = clickObj . data . barcode
this . form . hand _barcode = clickObj . data . hand_b arcode
this . form . hand _barcode = clickObj . data . handB arcode
this . form . prohibitInWarehouse = clickObj . data . prohibitInWarehouse
this . form . prohibitOutWarehouse = clickObj . data . prohibitOutWarehouse
this . form . stopReceiveTask = clickObj . data . stopReceiveTask
this . form . requireSuccess = clickObj . data . requireSuccess
this . form . againRequireSuccess = clickObj . data . againRequireSuccess
this . form . toCommand = null
console . log ( this . form )
} ,
@@ -449,7 +306,7 @@ export default {
}
this . arr = [ ] // 清空
if ( item . device _code && item . data ) {
// console.log('item', item)
console. log ( 'item' , item )
this . arr = [
{ name : i18n . t ( 'monitor.click.equipment_number' ) , value : item . device _code } ,
{ name : i18n . t ( 'monitor.click.device_name' ) , value : item . device _name }
@@ -463,7 +320,6 @@ export default {
const obj = { name : i18n . t ( 'monitor.click.device_information' ) , value : data [ val ] }
this . arr . push ( obj )
}
if ( val === 'message' && data . isError === 'false' ) {
const obj = { name : i18n . t ( 'monitor.click.exception_message' ) , value : data [ val ] }
this . arr . push ( obj )
@@ -481,196 +337,101 @@ export default {
} else if ( val === 'ip' ) {
const obj = { name : 'IP' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'number' ) {
const obj = { name : i18n . t ( 'monitor.click.pallet_quantity' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'inst_message' ) {
const obj = { name : i18n . t ( 'monitor.click.instruction_information' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'message' ) {
const obj = { name : i18n . t ( 'monitor.click.note_information' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'inst_message' ) {
const obj = { name : i18n . t ( 'monitor.click.current_instruction_message' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'last_inst_message' ) {
const obj = { name : i18n . t ( 'monitor.click.last_instruction_message' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'barcode' ) {
const obj = { name : i18n . t ( 'monitor.click.barcode' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.barcode' ) + '(电气)' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'barcode_length ' ) {
const obj = { name : i18n . t ( 'monitor.click.barcode_length' ) , value : data [ val ] }
} else if ( val === 'inOutMode ' ) {
const obj = { name : '出入库模式' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'last_container ' ) {
const obj = { name : i18n . t ( 'monitor.click.last_container' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'instruction_code' ) {
const obj = { name : i18n . t ( 'monitor.click.current_instruction_message' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'task_code' ) {
const obj = { name : i18n . t ( 'monitor.click.task_number' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'last_instruction_code' ) {
const obj = { name : i18n . t ( 'monitor.click.last_instruction_message' ) , value : data [ val ] }
} else if ( val === 'move ' ) {
const obj = { name : '光电信号' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'action' ) {
const obj = { name : i18n . t ( 'monitor.click.action_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'io_action' ) {
const obj = { name : i18n . t ( 'monitor.click.clearance_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'material' ) {
const obj = { name : i18n . t ( 'monitor.click.materiel' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'batch' ) {
const obj = { name : i18n . t ( 'monitor.click.lot' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'requestSucess' ) {
const obj = { name : i18n . t ( 'monitor.click.request_task' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'applySucess' ) {
const obj = { name : i18n . t ( 'monitor.click.request_order' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'requireApplyLabelingSuccess' ) {
const obj = { name : i18n . t ( 'monitor.click.apply_labeling' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'requireApplyLaStrangulationSuccess' ) {
const obj = { name : i18n . t ( 'monitor.click.apply_for_bundling' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'status' ) {
const obj = { name : i18n . t ( 'monitor.click.device_status' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'weight' ) {
const obj = { name : i18n . t ( 'monitor.click.weight' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'move_1' ) {
const obj = { name : i18n . t ( 'monitor.click.front_station_photoelectric_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'open' ) {
const obj = { name : i18n . t ( 'monitor.click.open' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'close' ) {
const obj = { name : i18n . t ( 'monitor.click.close' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'phase' ) {
const obj = { name : i18n . t ( 'monitor.click.AGV_phase' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'phase_name' ) {
const obj = { name : i18n . t ( 'monitor.click.description_of_the_AGV_phase' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'option' ) {
const obj = { name : i18n . t ( 'monitor.click.AGV_action' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'agv_power' ) {
const obj = { name : i18n . t ( 'monitor.click.AGV_power' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'move_2' ) {
const obj = { name : i18n . t ( 'monitor.click.station_photoelectric_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'action_1' ) {
const obj = { name : i18n . t ( 'monitor.click.front_station_action_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'action_2' ) {
const obj = { name : i18n . t ( 'monitor.click.back_station_action_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'walk_y' ) {
const obj = { name : i18n . t ( 'monitor.click.walk_y' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'task1' ) {
const obj = { name : i18n . t ( 'monitor.click.previous_station_task' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'task2' ) {
const obj = { name : i18n . t ( 'monitor.click.back_station_task' ) , value : data [ val ] }
const obj = { name : '动作信号' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'task' ) {
const obj = { name : i18n . t ( 'monitor.click.task_number' ) , value : data [ val ] }
const obj = { name : '任务号' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'is_disable ' ) {
const obj = { name : i18n . t ( 'monitor.click.disable' ) , value : data [ val ] }
} else if ( val === 'weight ' ) {
const obj = { name : '重量' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'temperature ' ) {
const obj = { name : i18n . t ( 'monitor.click.current_temperature' ) , value : data [ val ] }
} else if ( val === 'height ' ) {
const obj = { name : '高度' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'finish ' ) {
const obj = { name : i18n . t ( 'monitor.click.oven_finish' ) , value : data [ val ] }
} else if ( val === 'prohibitInWarehouse ' ) {
const obj = { name : '禁止入库' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'countdown_ house' ) {
const obj = { name : i18n . t ( 'monitor.click.house' ) , value : data [ val ] }
} else if ( val === 'prohibitOutWare house' ) {
const obj = { name : '禁止出库' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'countdown_min ' ) {
const obj = { name : i18n . t ( 'monitor.click.minutes' ) , value : data [ val ] }
} else if ( val === 'stopReceiveTask ' ) {
const obj = { name : '停止接收任务' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'countdown_sec ' ) {
const obj = { name : i18n . t ( 'monitor.click.seconds' ) , value : data [ val ] }
} else if ( val === 'requireSuccess ' ) {
const obj = { name : '请求标记' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'door ' ) {
const obj = { name : i18n . t ( 'monitor.click.gate_state' ) , value : data [ val ] }
} else if ( val === 'againRequireSuccess ' ) {
const obj = { name : '异常请求标记' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'notCreateTaskMessage ' ) {
const obj = { name : i18n . t ( 'monitor.click.task_creation_failure' ) , value : data [ val ] }
} else if ( val === 'front_command ' ) {
const obj = { name : '前叉动作命令' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'notCreateInstMessage ' ) {
const obj = { name : i18n . t ( 'monitor.click.failed_to_create_instruction' ) , value : data [ val ] }
} else if ( val === 'front_task ' ) {
const obj = { name : '前叉任务号' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'feedMessage ' ) {
const obj = { name : i18n . t ( 'monitor.click.no_electrical_signal_feedback_cause' ) , value : data [ val ] }
} else if ( val === 'front_Zerror ' ) {
const obj = { name : '前叉报警信息' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'requireSucess ' ) {
const obj = { name : i18n . t ( 'monitor.click.request_success_flag' ) , value : data [ val ] }
} else if ( val === 'front_z ' ) {
const obj = { name : '前叉行走排' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'applySucess ' ) {
const obj = { name : 'applySucess ' , value : data [ val ] }
} else if ( val === 'front_x ' ) {
const obj = { name : '前叉行走列 ' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'out_finish ' ) {
const obj = { name : i18n . t ( 'monitor.click.delivery_completed' ) , value : data [ val ] }
} else if ( val === 'front_y ' ) {
const obj = { name : '前叉行走层' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'inventory_qty ' ) {
const obj = { name : i18n . t ( 'monitor.click.inventory_quantity' ) , value : data [ val ] }
} else if ( val === 'back_command ' ) {
const obj = { name : '后叉动作命令' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'hand_barcode ' ) {
const obj = { name : 'barcode ' , value : data [ val ] }
} else if ( val === 'back_task ' ) {
const obj = { name : '后叉任务号 ' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'x ' ) {
const obj = { name : 'X ' , value : data [ val ] }
} else if ( val === 'back_Zerror ' ) {
const obj = { name : '后叉报警信息 ' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'y ' ) {
const obj = { name : 'Y ' , value : data [ val ] }
} else if ( val === 'back_z ' ) {
const obj = { name : '后叉行走排 ' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'angle ' ) {
const obj = { name : i18n . t ( 'monitor.click.angle' ) , value : data [ val ] }
} else if ( val === 'back_x ' ) {
const obj = { name : '后叉行走列' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'electricit y' ) {
const obj = { name : i18n . t ( 'monitor.click.electric_quantity' ) , value : data [ val ] }
} else if ( val === 'back_ y' ) {
const obj = { name : '后叉行走层' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'status_name ' ) {
const obj = { name : i18n . t ( 'monitor.click.status' ) , value : data [ val ] }
} else if ( val === 'str ategy ' ) {
const obj = { name : '堆垛机策略' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'fault ' ) {
const obj = { name : i18n . t ( 'monitor.click.abnormal' ) , value : data [ val ] }
} else if ( val === 'unExecutedMessage ' ) {
const obj = { name : '未执行任务原因' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'map_id ' ) {
const obj = { name : i18n . t ( 'monitor.click.floor' ) , value : data [ val ] }
} else if ( val === 'inOutMode ' ) {
const obj = { name : '出入库模式' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'power ' ) {
const obj = { name : i18n . t ( 'monitor.click.electric_quantity' ) , value : data [ val ] }
} else if ( val === 'switchInOut ' ) {
const obj = { name : '允许切换出入模式' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'pallet ' ) {
const obj = { name : i18n . t ( 'monitor.click.tray' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'load' ) {
const obj = { name : i18n . t ( 'monitor.click.loading_or_not' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'alarm' ) {
const obj = { name : i18n . t ( 'monitor.click.alarm' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'task_id' ) {
const obj = { name : i18n . t ( 'monitor.click.task_number' ) , value : data [ val ] }
} else if ( val === 'handBarcode ' ) {
const obj = { name : '载具号(补码)' , value : data [ val ] }
this . arr . push ( obj )
}
}
}
// console.log('arr:', this.arr)
console. log ( '11111' )
console . log ( 'arr:' , this . arr )
} ,
initStatus ( ) { // 初始化所有节点的设备信息, 通过节点id对应设备编号
let resion = { }
@@ -711,22 +472,11 @@ export default {
deviceCrud . changeDeviceStatus ( this . form ) . then ( res => {
this . $notify ( { title : '操作成功' , message : '' , type : 'success' } )
this . dialogFormVisible = false
this . dialogFormVisible3 = false
this . dialogFormVisible4 = false
this . dialogFormVisible5 = false
this . dialogFormVisible6 = false
this . dialogFormVisible7 = false
this . dialogFormVisible8 = false
this . dialogFormVisible9 = false
this . dialogFormVisible2 = false
this . initStageData ( )
} ) . catch ( err => {
this . dialogFormVisible = false
this . dialogFormVisible3 = false
this . dialogFormVisible4 = false
this . dialogFormVisible5 = false
this . dialogFormVisible7 = false
this . dialogFormVisible8 = false
this . dialogFormVisible9 = false
this . dialogFormVisible2 = false
console . log ( err . response . data . message )
} )
} ,
@@ -739,6 +489,16 @@ export default {
this . dialogFormVisible1 = false
console . log ( err . response . data . message )
} )
} ,
initStageData ( ) {
// 获取舞台编码
if ( this . stage _code !== '' ) {
crudStage . getNewStageDataByCode ( this . stage _code ) . then ( res => { // 通过舞台编码获取舞台数据并且赋值到lf对象
data = JSON . parse ( res . stage _data )
lf . render ( data )
this . initStatus ( ) // 初始化状态
} )
}
}
}
}
@@ -760,12 +520,74 @@ body {
height : 100 % ;
}
. newDialog / deep / . el - dialog _ _header {
padding : 1 vh 1 vw 0 1 vw ;
/ deep/ . el - dialog {
background - color : transparent ;
background - color : rgba ( 2 , 11 , 47 , 0.9 ) ;
border : 1 px solid # 4 dbeff ;
box - shadow : inset 4 px 4 px 8 px 0 px rgba ( 77 , 190 , 255 , .9 ) , inset - 4 px - 4 px 8 px 0 px rgba ( 77 , 190 , 255 , .9 ) ;
/* background-image: url('../../../../assets/images/kanban.svg'); */
background - repeat : no - repeat ;
background - size : 100 % 100 % ;
background - position : top center ;
padding : 10 px 14 px ;
}
. newDialog / deep / . el - dialog _ _body {
padding : 1 vh 1 vw ;
/ deep/ . el - dialog _ _header {
padding : 1 vh 1 vw 0 1 vw ;
border - bottom : 1 px solid # 395 d6f ;
background : linear - gradient ( to right , # 00 b3ee 0 % , rgba ( 2 , 11 , 47 , 0.3 ) 30 % , rgba ( 2 , 11 , 47 , 0 ) 100 % ) ;
}
/deep/ . el - dialog _ _title {
font - size : 16 px ;
color : # fff ;
}
/deep/ . el - dialog _ _body {
padding - top : 20 px ! important ;
}
/deep/ . el - form - item _ _label , /deep/ . el - dialog _ _headerbtn . el - dialog _ _close {
color : # fff ;
}
/deep/ . el - input . is - disabled . el - input _ _inner , /deep/ . el - radio - button _ _inner {
background - color : # 00557 c ;
border - color : # 00 b3ee ;
color : # fff ;
}
/deep/ . el - radio - button : first - child . el - radio - button _ _inner {
border - left - color : # 00 b3ee ;
}
. newDialog / deep / . el - dialog _ _body . el - table tr , . newDialog / deep / . el - dialog _ _body . el - table . el - table _ _header - wrapper th , . newDialog / deep / . el - dialog _ _body . el - table {
background - color : transparent ;
}
. newDialog / deep / . el - table -- border , . newDialog / deep / . el - table -- border . el - table _ _cell {
border : 0 ;
color : # 00 afff ;
}
. newDialog / deep / . el - table : : before {
height : 0 ;
}
. newDialog / deep / . el - table -- border : : after {
width : 0 ;
}
. newDialog / deep / . el - table _1 _column _1 , . newDialog / deep / . el - table _2 _column _3 {
color : # fff ;
}
. newDialog / deep / . el - table _1 _column _2 , . newDialog / deep / . el - table _2 _column _4 {
color : # 00 b3ee ;
}
. newDialog / deep / . el - table -- enable - row - hover . el - table _ _body tr : hover > td . el - table _ _cell {
background - color : # 00557 c ;
}
. toolbar - sty {
@@ -783,22 +605,24 @@ body {
background : # e5e5e5 ;
}
: : v - deep . el - radio - button {
: : v - deep . el - radio - button {
margin - right : 15 px ;
border - radius : 4 px ;
border - radius : 4 px ;
}
. el - radio - button _ _inner {
width : 90 px ;
height : 30 px ;
background : # F7F8FA ;
color : # 333 ;
border : 0 ! important ;
}
. el - radio - button _ _orig - radio : checked + . el - radio - button _ _inner {
color : # fff ;
background - color : blue ;
border - color : blue ;
box - shadow : - 1 px 0 0 0 blue ;
}
. el - radio - button _ _inner {
width : 90 px ;
height : 30 px ;
background : # F7F8FA ;
color : # 333 ;
border : 0 ! important ;
}
. el - radio - button _ _orig - radio : checked + . el - radio - button _ _inner {
color : # fff ;
background - color : blue ;
border - color : blue ;
box - shadow : - 1 px 0 0 0 blue ;
}
< / style >