|
|
@ -37,10 +37,10 @@ |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="设备状态" label-width="80px"> |
|
|
|
<el-radio-group v-model="form.hasGoodStatus"> |
|
|
|
<el-radio-button :label="0">无货</el-radio-button> |
|
|
|
<el-radio-button :label="1">有托盘</el-radio-button> |
|
|
|
<el-radio-button :label="2">有托盘有货</el-radio-button> |
|
|
|
<el-radio-group v-model="form.option"> |
|
|
|
<el-radio-button :label="0">禁止进出</el-radio-button> |
|
|
|
<el-radio-button :label="1">允许进入</el-radio-button> |
|
|
|
<el-radio-button :label="2">允许离开</el-radio-button> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
@ -59,8 +59,8 @@ |
|
|
|
<el-form-item label="设备状态" label-width="80px"> |
|
|
|
<el-radio-group v-model="form.hasGoodStatus"> |
|
|
|
<el-radio-button :label="0">无货</el-radio-button> |
|
|
|
<el-radio-button :label="1">空料斗</el-radio-button> |
|
|
|
<el-radio-button :label="2">满料斗</el-radio-button> |
|
|
|
<el-radio-button :label="1">有托盘</el-radio-button> |
|
|
|
<el-radio-button :label="2">有托盘有货</el-radio-button> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="物料编码" prop="material_type" label-width="80px"> |
|
|
@ -79,21 +79,84 @@ |
|
|
|
<el-form-item label="设备编号" 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-form-item label="禁用机械手" prop="is_disable" label-width="120px"> |
|
|
|
<el-radio-group v-model="form.is_disable"> |
|
|
|
<el-radio-button :label="0">正常</el-radio-button> |
|
|
|
<el-radio-button :label="1">禁用</el-radio-button> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="请求标记" prop="requireSucess" label-width="120px"> |
|
|
|
<el-radio-group v-model="form.requireSucess"> |
|
|
|
<el-radio-button :label="0">否</el-radio-button> |
|
|
|
<el-radio-button :label="1">是</el-radio-button> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="空想请求成功" prop="fullrequireSucess" label-width="120px"> |
|
|
|
<el-radio-group v-model="form.fullrequireSucess"> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogFormVisible4 = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="dialogSave">确 定</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="设备设置" :visible.sync="dialogFormVisible5" width="35%"> |
|
|
|
<el-form :model="form" size="small"> |
|
|
|
<el-form-item label="设备编号" 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">否</el-radio-button> |
|
|
|
<el-radio-button :label="1">是</el-radio-button> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogFormVisible4 = false">取 消</el-button> |
|
|
|
<el-button @click="dialogFormVisible5 = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="dialogSave">确 定</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="设备设置" :visible.sync="dialogFormVisible7" width="35%"> |
|
|
|
<el-form :model="form" size="small"> |
|
|
|
<el-form-item label="设备编号" prop="device_code" label-width="120px"> |
|
|
|
<el-input v-model="form.device_code" :disabled="true" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="条码" label-width="120px"> |
|
|
|
<el-input v-model="form.hand_barcode" :disabled="false" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="请求标记" prop="requireSucess" label-width="120px"> |
|
|
|
<el-radio-group v-model="form.requireSucess"> |
|
|
|
<el-radio-button :label="0">否</el-radio-button> |
|
|
|
<el-radio-button :label="1">是</el-radio-button> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogFormVisible7 = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="dialogSave">确 定</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="设备设置" :visible.sync="dialogFormVisible6" width="35%"> |
|
|
|
<el-form :model="form" size="small"> |
|
|
|
<el-form-item label="设备编号" 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">否</el-radio-button> |
|
|
|
<el-radio-button :label="1">是</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">否</el-radio-button> |
|
|
|
<el-radio-button :label="1">是</el-radio-button> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogFormVisible5 = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="dialogSave">确 定</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
@ -105,7 +168,7 @@ |
|
|
|
<el-input v-model="form.device_code" :disabled="true" /> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="条码" label-width="80px"> |
|
|
|
<el-form-item label="条码" prop="device_code" label-width="80px"> |
|
|
|
<el-input v-model="form.barcode" :disabled="false" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
@ -127,6 +190,7 @@ import '@logicflow/extension/lib/style/index.css' |
|
|
|
|
|
|
|
import { LogicFlow } from '@logicflow/core' |
|
|
|
import { registerCustomElement } from '@/views/system/logicflow/editor/components/node' |
|
|
|
|
|
|
|
let data = {} |
|
|
|
let lf = '' |
|
|
|
export default { |
|
|
@ -145,14 +209,20 @@ export default { |
|
|
|
dialogFormVisible2: false, |
|
|
|
dialogFormVisible3: false, |
|
|
|
dialogFormVisible4: false, |
|
|
|
dialogFormVisible5: false, |
|
|
|
dialogFormVisible6: false, |
|
|
|
dialogFormVisible7: false, |
|
|
|
form: { |
|
|
|
device_code: '', |
|
|
|
hasGoodStatus: null, |
|
|
|
barcode: '', |
|
|
|
hand_barcode: '', |
|
|
|
suspended: null, |
|
|
|
material_type: '', |
|
|
|
requireSucess: '', |
|
|
|
fullrequireSucess: '' |
|
|
|
fullrequireSucess: '', |
|
|
|
is_disable: '', |
|
|
|
applySucess: '' |
|
|
|
}, |
|
|
|
allDeviceMsg: [], |
|
|
|
msgTop: '200px', |
|
|
@ -274,12 +344,26 @@ 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 { |
|
|
|
this.dialogFormVisible = true |
|
|
|
} |
|
|
@ -291,6 +375,10 @@ export default { |
|
|
|
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_barcode |
|
|
|
}, |
|
|
|
moveShow(nodeData) { // 点击之后显示出来的数据----只需要设备信息 |
|
|
|
let item = '' |
|
|
@ -326,10 +414,10 @@ export default { |
|
|
|
const obj = { name: '光电信号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'mode') { |
|
|
|
const obj = { name: '工作模式', value: data[val] } |
|
|
|
const obj = { name: '模式', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'error') { |
|
|
|
const obj = { name: '故障代码', value: data[val] } |
|
|
|
const obj = { name: '报警', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'ip') { |
|
|
|
const obj = { name: 'IP地址', value: data[val] } |
|
|
@ -337,21 +425,33 @@ export default { |
|
|
|
} else if (val === 'number') { |
|
|
|
const obj = { name: '托盘数量', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'instruction_message') { |
|
|
|
} else if (val === 'inst_message') { |
|
|
|
const obj = { name: '指令信息', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'last_instruction_message') { |
|
|
|
} else if (val === 'message') { |
|
|
|
const obj = { name: '备注信息', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'inst_message') { |
|
|
|
const obj = { name: '当前指令信息', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'last_inst_message') { |
|
|
|
const obj = { name: '上次指令信息', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'container') { |
|
|
|
} else if (val === 'barcode') { |
|
|
|
const obj = { name: '载具号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'barcode_length') { |
|
|
|
const obj = { name: '载具长度', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'last_container') { |
|
|
|
const obj = { name: '上次载具号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'instruction_code') { |
|
|
|
const obj = { name: '指令号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'task_code') { |
|
|
|
const obj = { name: '任务号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'last_instruction_code') { |
|
|
|
const obj = { name: '上次指令号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
@ -373,140 +473,140 @@ export default { |
|
|
|
} else if (val === 'applySucess') { |
|
|
|
const obj = { name: '是否申请指令', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'message') { |
|
|
|
const obj = { name: '说明', value: data[val] } |
|
|
|
} else if (val === 'requireApplyLabelingSuccess') { |
|
|
|
const obj = { name: '是否申请贴标', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'requireApplyLaStrangulationSuccess') { |
|
|
|
const obj = { name: '是否申请捆扎', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'status') { |
|
|
|
const obj = { name: '设备状态', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'open_time') { |
|
|
|
const obj = { name: '开机时间', value: data[val] } |
|
|
|
} else if (val === 'weight') { |
|
|
|
const obj = { name: '重量', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'close_time') { |
|
|
|
const obj = { name: '关机时间', value: data[val] } |
|
|
|
} else if (val === 'move_1') { |
|
|
|
const obj = { name: '前工位光电信号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'standby_time') { |
|
|
|
const obj = { name: '待机时间', value: data[val] } |
|
|
|
} else if (val === 'open') { |
|
|
|
const obj = { name: '开到位', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'production_time') { |
|
|
|
const obj = { name: '生产时间', value: data[val] } |
|
|
|
} else if (val === 'close') { |
|
|
|
const obj = { name: '关到位', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'error_time') { |
|
|
|
const obj = { name: '故障时间', value: data[val] } |
|
|
|
} else if (val === 'phase') { |
|
|
|
const obj = { name: 'AGV交互阶段', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'weight') { |
|
|
|
const obj = { name: '生产重量', value: data[val] } |
|
|
|
} else if (val === 'phase_name') { |
|
|
|
const obj = { name: 'AGV交互阶段说明', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'order_No') { |
|
|
|
const obj = { name: '工单号', value: data[val] } |
|
|
|
} else if (val === 'option') { |
|
|
|
const obj = { name: 'AGV动作', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'mix_num') { |
|
|
|
const obj = { name: '碾次', value: data[val] } |
|
|
|
} else if (val === 'agv_power') { |
|
|
|
const obj = { name: 'AGV电量', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'barcode') { |
|
|
|
const obj = { name: '条码', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'qualified') { |
|
|
|
const obj = { name: '合格数量', value: data[val] } |
|
|
|
} else if (val === 'move_2') { |
|
|
|
const obj = { name: '后工位光电信号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'unqualified') { |
|
|
|
const obj = { name: '不合格数量', value: data[val] } |
|
|
|
} else if (val === 'action_1') { |
|
|
|
const obj = { name: '前工位动作信号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'put_station') { |
|
|
|
const obj = { name: '当前码盘工位', value: data[val] } |
|
|
|
} else if (val === 'action_2') { |
|
|
|
const obj = { name: '后工位动作信号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'encoder_qty') { |
|
|
|
const obj = { name: '码盘数量', value: data[val] } |
|
|
|
} else if (val === 'walk_y') { |
|
|
|
const obj = { name: '行走列', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'outKiln_move') { |
|
|
|
const obj = { name: '出窑光电', value: data[val] } |
|
|
|
} else if (val === 'task1') { |
|
|
|
const obj = { name: '前工位任务号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'outKiln_barcode') { |
|
|
|
const obj = { name: '出窑条码', value: data[val] } |
|
|
|
} else if (val === 'task2') { |
|
|
|
const obj = { name: '后工位任务号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'outKiln_device') { |
|
|
|
const obj = { name: '出窑设备', value: data[val] } |
|
|
|
} else if (val === 'task') { |
|
|
|
const obj = { name: '任务号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'car_sum') { |
|
|
|
const obj = { name: '窑车总数', value: data[val] } |
|
|
|
} else if (val === 'is_disable') { |
|
|
|
const obj = { name: '是否禁用', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'nullCar_qty') { |
|
|
|
const obj = { name: '空窑车数', value: data[val] } |
|
|
|
} else if (val === 'temperature') { |
|
|
|
const obj = { name: '当前温度', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'burning_car_qty') { |
|
|
|
const obj = { name: '在烧窑车数', value: data[val] } |
|
|
|
} else if (val === 'finish') { |
|
|
|
const obj = { name: '烘箱完成', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'container_qty') { |
|
|
|
const obj = { name: '托盘数', value: data[val] } |
|
|
|
} else if (val === 'countdown_house') { |
|
|
|
const obj = { name: '恒温倒计时(时)', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'tray_crib_qty') { |
|
|
|
const obj = { name: '托盘垛数', value: data[val] } |
|
|
|
} else if (val === 'countdown_min') { |
|
|
|
const obj = { name: '恒温倒计时(分)', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'total_container') { |
|
|
|
const obj = { name: '托盘总数量', value: data[val] } |
|
|
|
} else if (val === 'countdown_sec') { |
|
|
|
const obj = { name: '恒温倒计时(秒)', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'total_split') { |
|
|
|
const obj = { name: '累计拆垛数量', value: data[val] } |
|
|
|
} else if (val === 'door') { |
|
|
|
const obj = { name: '门状态', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'getStation') { |
|
|
|
const obj = { name: '当前抓取工位', value: data[val] } |
|
|
|
} else if (val === 'notCreateTaskMessage') { |
|
|
|
const obj = { name: '任务创建失败原因', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'putStation') { |
|
|
|
const obj = { name: '当前码盘工位', value: data[val] } |
|
|
|
} else if (val === 'notCreateInstMessage') { |
|
|
|
const obj = { name: '指令创建失败原因', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'move_1') { |
|
|
|
const obj = { name: '前工位光电信号', value: data[val] } |
|
|
|
} else if (val === 'feedMessage') { |
|
|
|
const obj = { name: '未反馈电气信号原因', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'move_2') { |
|
|
|
const obj = { name: '后工位光电信号', value: data[val] } |
|
|
|
} else if (val === 'requireSucess') { |
|
|
|
const obj = { name: '请求成功标记', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'action_1') { |
|
|
|
const obj = { name: '前工位动作信号', value: data[val] } |
|
|
|
} else if (val === 'applySucess') { |
|
|
|
const obj = { name: 'applySucess', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'action_2') { |
|
|
|
const obj = { name: '后工位动作信号', value: data[val] } |
|
|
|
} else if (val === 'out_finish') { |
|
|
|
const obj = { name: '出库完成', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'walk_y') { |
|
|
|
const obj = { name: '行走列', value: data[val] } |
|
|
|
} else if (val === 'inventory_qty') { |
|
|
|
const obj = { name: '库存数量', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'task1') { |
|
|
|
const obj = { name: '前工位任务号', value: data[val] } |
|
|
|
} else if (val === 'hand_barcode') { |
|
|
|
const obj = { name: '手补条码', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'task2') { |
|
|
|
const obj = { name: '后工位任务号', value: data[val] } |
|
|
|
} else if (val === 'x') { |
|
|
|
const obj = { name: 'X坐标', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'labeling_qty') { |
|
|
|
const obj = { name: '贴标数量', value: data[val] } |
|
|
|
} else if (val === 'y') { |
|
|
|
const obj = { name: 'Y坐标', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'container_type') { |
|
|
|
const obj = { name: '托盘类型', value: data[val] } |
|
|
|
} else if (val === 'angle') { |
|
|
|
const obj = { name: '角度', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'specifications') { |
|
|
|
const obj = { name: '规格', value: data[val] } |
|
|
|
} else if (val === 'electricity') { |
|
|
|
const obj = { name: '电量', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'onoff_status') { |
|
|
|
const obj = { name: '开关机状态', value: data[val] } |
|
|
|
} else if (val === 'status_name') { |
|
|
|
const obj = { name: '状态', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'task_qty') { |
|
|
|
const obj = { name: '当前任务数量', value: data[val] } |
|
|
|
} else if (val === 'fault') { |
|
|
|
const obj = { name: '异常', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'finishTask_qty') { |
|
|
|
const obj = { name: '完成任务数量', value: data[val] } |
|
|
|
} else if (val === 'map_id') { |
|
|
|
const obj = { name: '楼层', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'AlongSide') { |
|
|
|
const obj = { name: 'A长边', value: data[val] } |
|
|
|
} else if (val === 'power') { |
|
|
|
const obj = { name: '电量', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'BshortSide') { |
|
|
|
const obj = { name: 'B短边', value: data[val] } |
|
|
|
} else if (val === 'pallet') { |
|
|
|
const obj = { name: '托盘', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'Htrapezoidal') { |
|
|
|
const obj = { name: 'H梯形高', value: data[val] } |
|
|
|
} else if (val === 'load') { |
|
|
|
const obj = { name: '有无货', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'Wthickness') { |
|
|
|
const obj = { name: 'W厚度', value: data[val] } |
|
|
|
} else if (val === 'alarm') { |
|
|
|
const obj = { name: '报警', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} else if (val === 'qty') { |
|
|
|
const obj = { name: '数量', value: data[val] } |
|
|
|
} else if (val === 'task_id') { |
|
|
|
const obj = { name: '任务号', value: data[val] } |
|
|
|
this.arr.push(obj) |
|
|
|
} |
|
|
|
} |
|
|
@ -554,11 +654,16 @@ export default { |
|
|
|
this.dialogFormVisible = false |
|
|
|
this.dialogFormVisible3 = false |
|
|
|
this.dialogFormVisible4 = false |
|
|
|
this.dialogFormVisible5 = false |
|
|
|
this.dialogFormVisible6 = false |
|
|
|
this.dialogFormVisible7 = false |
|
|
|
this.initStageData() |
|
|
|
}).catch(err => { |
|
|
|
this.dialogFormVisible = false |
|
|
|
this.dialogFormVisible3 = false |
|
|
|
this.dialogFormVisible4 = false |
|
|
|
this.dialogFormVisible5 = false |
|
|
|
this.dialogFormVisible7 = false |
|
|
|
console.log(err.response.data.message) |
|
|
|
}) |
|
|
|
}, |
|
|
@ -591,12 +696,15 @@ body { |
|
|
|
background-color: #f8f9fa; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
|
|
|
|
.newDialog /deep/ .el-dialog__header { |
|
|
|
padding: 1vh 1vw 0 1vw; |
|
|
|
} |
|
|
|
|
|
|
|
.newDialog /deep/ .el-dialog__body { |
|
|
|
padding: 1vh 1vw; |
|
|
|
} |
|
|
|
|
|
|
|
.toolbar-sty { |
|
|
|
position: absolute; |
|
|
|
margin-top: 5px; |
|
|
|