|
@@ -1,30 +1,55 @@
|
|
|
<template>
|
|
|
<div class="app-container space">
|
|
|
|
|
|
- <el-card class="box-card">
|
|
|
- <div slot="header" class="clearfix">手动更新点位(无操作)</div>
|
|
|
- <el-form ref="form" :model="form" :rules="rules4" label-width="80px">
|
|
|
- <el-row :gutter="12">
|
|
|
- <el-col :xs="6" :sm="5">
|
|
|
- <el-form-item label="起始位:" prop="start">
|
|
|
- <el-tooltip content="例如:BZ_361" placement="top">
|
|
|
- <el-input v-model="form.start" placeholder="起始库位"></el-input>
|
|
|
- </el-tooltip>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="6" :sm="5">
|
|
|
- <el-form-item label="目的位:" prop="goal">
|
|
|
- <el-tooltip content="例如:KT_130" placement="top">
|
|
|
- <el-input v-model="form.goal" placeholder="目的库位"></el-input>
|
|
|
- </el-tooltip>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" @click="updateStorge" >更改</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </el-card>
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header" class="clearfix">手动移库(机器人)</div>
|
|
|
+ <el-form ref="form" :model="form" :rules="rules4" label-width="80px">
|
|
|
+ <el-row :gutter="12">
|
|
|
+ <el-col :xs="6" :sm="5">
|
|
|
+ <el-form-item label="起始位:" prop="start">
|
|
|
+ <el-tooltip content="例如:100" placement="top">
|
|
|
+ <el-input v-model="form.start" placeholder="起始库位"></el-input>
|
|
|
+ </el-tooltip>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="6" :sm="5">
|
|
|
+ <el-form-item label="目的位:" prop="goal">
|
|
|
+ <el-tooltip content="例如:101" placement="top">
|
|
|
+ <el-input v-model="form.goal" placeholder="目的库位"></el-input>
|
|
|
+ </el-tooltip>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="updateStorgeByRobot" >更改</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </el-card>
|
|
|
+
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header" class="clearfix">手动更新点位(无操作)</div>
|
|
|
+ <el-form ref="form" :model="form" :rules="rules4" label-width="80px">
|
|
|
+ <el-row :gutter="12">
|
|
|
+ <el-col :xs="6" :sm="5">
|
|
|
+ <el-form-item label="起始位:" prop="start">
|
|
|
+ <el-tooltip content="例如:100" placement="top">
|
|
|
+ <el-input v-model="form.start" placeholder="起始库位"></el-input>
|
|
|
+ </el-tooltip>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="6" :sm="5">
|
|
|
+ <el-form-item label="目的位:" prop="goal">
|
|
|
+ <el-tooltip content="例如:101" placement="top">
|
|
|
+ <el-input v-model="form.goal" placeholder="目的库位"></el-input>
|
|
|
+ </el-tooltip>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="updateStorge" >更改</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </el-card>
|
|
|
|
|
|
<el-card class="box-card">
|
|
|
<div slot="header" class="clearfix">查询指令完成状态</div>
|
|
@@ -39,10 +64,10 @@
|
|
|
<el-form-item label="任务ID:" prop="taskId">
|
|
|
<el-input v-model="form1.taskId" placeholder="任务ID"></el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" @click="getCallbackList" >查询</el-button>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="getCallbackList" >查询</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
@@ -65,10 +90,10 @@
|
|
|
<el-form-item label="次序号:" prop="positionIndex">
|
|
|
<el-input-number v-model="form.positionIndex" :min="1" :max="6"></el-input-number>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="getRFID" >读取</el-button>
|
|
|
+ <el-button type="primary" @click="getRFID" >读取</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
@@ -83,10 +108,10 @@
|
|
|
<el-input v-model="form3.ip" placeholder="设备IP"></el-input>
|
|
|
</el-tooltip>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="updateOnlineStatus" >设置</el-button>
|
|
|
+ <el-button type="primary" @click="updateOnlineStatus" >设置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
@@ -108,10 +133,10 @@
|
|
|
<el-input v-model="form4.goal" placeholder="终点"></el-input>
|
|
|
</el-tooltip>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="addHikTask">创建</el-button>
|
|
|
+ <el-button type="primary" @click="addHikTask">创建</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
@@ -129,10 +154,10 @@
|
|
|
<el-form-item label="任务ID:" prop="taskId">
|
|
|
<el-input v-model="form5.taskId" placeholder="任务ID"></el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="resend">重发</el-button>
|
|
|
+ <el-button type="primary" @click="resend">重发</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
@@ -150,10 +175,10 @@
|
|
|
<el-form-item label="任务ID:" prop="taskId">
|
|
|
<el-input v-model="form6.taskId" placeholder="任务ID"></el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="sendCallback" >发送</el-button>
|
|
|
+ <el-button type="primary" @click="sendCallback" >发送</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
@@ -164,22 +189,22 @@
|
|
|
<el-row :gutter="12" >
|
|
|
<el-col :xs="6" :sm="5">
|
|
|
<el-select v-model="form7.zoneId" placeholder="选择产线">
|
|
|
- <el-option v-for="deviceUnit in lineList " :label="deviceUnit.name" :value="deviceUnit.id" :key="deviceUnit.id" ></el-option>
|
|
|
+ <el-option v-for="deviceUnit in lineList " :label="deviceUnit.name" :value="deviceUnit.id" :key="deviceUnit.id" ></el-option>
|
|
|
</el-select>
|
|
|
</el-col>
|
|
|
- <el-col :xs="6" :sm="5">
|
|
|
- <el-form-item label="起始位:" prop="start">
|
|
|
+ <el-col :xs="6" :sm="5">
|
|
|
+ <el-form-item label="起始位:" prop="start">
|
|
|
<el-input-number v-model="form7.startpointId" :min="1" ></el-input-number>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :xs="6" :sm="5">
|
|
|
- <el-form-item label="目的位:" prop="goal">
|
|
|
+ <el-col :xs="6" :sm="5">
|
|
|
+ <el-form-item label="目的位:" prop="goal">
|
|
|
<el-input-number v-model="form7.endpointId" :min="1" ></el-input-number>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="manualTask">执行</el-button>
|
|
|
+ <el-button type="primary" @click="manualTask">执行</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
@@ -188,19 +213,19 @@
|
|
|
<div slot="header" class="clearfix">零件动态入线边库(产线内)</div>
|
|
|
<el-form ref="form8" :model="form8" :rules="rules6" label-width="80px">
|
|
|
<el-row :gutter="12" >
|
|
|
- <el-col :xs="6" :sm="5">
|
|
|
+ <el-col :xs="6" :sm="5">
|
|
|
<el-select v-model="form8.zoneId" placeholder="选择产线">
|
|
|
- <el-option v-for="deviceUnit in lineList " :label="deviceUnit.name" :value="deviceUnit.id" :key="deviceUnit.id" ></el-option>
|
|
|
+ <el-option v-for="deviceUnit in lineList " :label="deviceUnit.name" :value="deviceUnit.id" :key="deviceUnit.id" ></el-option>
|
|
|
</el-select>
|
|
|
</el-col>
|
|
|
<el-col :xs="6" :sm="5">
|
|
|
<el-form-item label="节点ID:" prop="startpointId">
|
|
|
<el-input v-model="form8.startpointId" placeholder="起始点位"></el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="manualXbk">执行</el-button>
|
|
|
+ <el-button type="primary" @click="manualXbk">执行</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
@@ -218,10 +243,10 @@
|
|
|
<el-form-item label="任务ID:" prop="taskId">
|
|
|
<el-input v-model="form9.taskId" placeholder="任务ID"></el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="freeLock" >发送</el-button>
|
|
|
+ <el-button type="primary" @click="freeLock" >发送</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
@@ -233,24 +258,24 @@
|
|
|
<el-col :xs="6" :sm="5">
|
|
|
<el-form-item label="节点ID:" prop="deviceType">
|
|
|
<el-select v-model="form10.deviceType" placeholder="选择设备类型">
|
|
|
- <el-option v-for="deviceType in typeList" :label="deviceType.name" :value="deviceType.value" :key="deviceType.value" ></el-option>
|
|
|
+ <el-option v-for="deviceType in typeList" :label="deviceType.name" :value="deviceType.value" :key="deviceType.value" ></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="refreshXbk" >发送</el-button>
|
|
|
+ <el-button type="primary" @click="refreshXbk" >发送</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
+<script>
|
|
|
// 【锁定记录、出入库记录】-API
|
|
|
import toolbarApi from "@/api/systemMgr/toolbar"
|
|
|
import warnLogApi from "@/api/lineSideLibrary/warnLog"
|
|
|
- import areaMgrApi from "@/api/resourceProductMgr/areaMgr"
|
|
|
+ import areaMgrApi from "@/api/resourceProductMgr/areaMgr"
|
|
|
import { convertEnum, initDicts, initQueryParams } from '@/utils/commons'
|
|
|
export default {
|
|
|
name: "Tools",
|
|
@@ -259,10 +284,10 @@
|
|
|
props: {
|
|
|
},
|
|
|
data () {
|
|
|
- return {
|
|
|
- form:{
|
|
|
+ return {
|
|
|
+ form:{
|
|
|
start: "",
|
|
|
- goal: ""
|
|
|
+ goal: ""
|
|
|
},
|
|
|
form1:{
|
|
|
taskNodeId: '',
|
|
@@ -274,7 +299,7 @@
|
|
|
positionIndex: 1
|
|
|
},
|
|
|
form3:{
|
|
|
- ip: ''
|
|
|
+ ip: ''
|
|
|
},
|
|
|
form4:{
|
|
|
start: "",
|
|
@@ -295,7 +320,7 @@
|
|
|
},
|
|
|
form8:{
|
|
|
zoneId: "",
|
|
|
- startpointId: ""
|
|
|
+ startpointId: ""
|
|
|
},
|
|
|
form9:{
|
|
|
taskNodeId: '',
|
|
@@ -357,7 +382,7 @@
|
|
|
rules6: {
|
|
|
startpointId: [
|
|
|
{ required: true, message: this.$t("rules.require"), trigger: 'blur' }
|
|
|
- ],
|
|
|
+ ],
|
|
|
zoneId: [
|
|
|
{ required: true, message: this.$t("rules.require"), trigger: 'blur' }
|
|
|
],
|
|
@@ -387,9 +412,9 @@
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
- methods: {
|
|
|
+ methods: {
|
|
|
updateStorge () {
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
if(valid){
|
|
@@ -407,13 +432,37 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
+ updateStorgeByRobot () {
|
|
|
+ this.$refs.form.validate((valid) => {
|
|
|
+ if(valid){
|
|
|
+ toolbarApi.updateStorgeByRobot(this.form).then(response=>{
|
|
|
+ const res = response.data
|
|
|
+ if(res.isSuccess){
|
|
|
+ this.$message({
|
|
|
+ message: this.$t('tips.updateSuccess'),
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).finally(()=>{
|
|
|
+ return true
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
getCallbackList () {
|
|
|
this.$refs.form1.validate((valid) => {
|
|
|
if(valid){
|
|
@@ -432,13 +481,13 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
+ }
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
getRFID () {
|
|
|
this.$refs.form2.validate((valid) => {
|
|
@@ -458,11 +507,11 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
updateOnlineStatus () {
|
|
@@ -482,11 +531,11 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
addHikTask () {
|
|
@@ -506,12 +555,12 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
- });
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
resend() {
|
|
|
this.$refs.form5.validate((valid) => {
|
|
@@ -530,11 +579,11 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
},
|
|
@@ -555,12 +604,12 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
- });
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
freeLock(){
|
|
|
this.$refs.form9.validate((valid) => {
|
|
@@ -579,12 +628,12 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
- });
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
refreshXbk(){
|
|
|
this.$refs.form10.validate((valid) => {
|
|
@@ -603,14 +652,14 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
- });
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
- manualTask(){
|
|
|
+ manualTask(){
|
|
|
this.$refs.form7.validate((valid) => {
|
|
|
if(valid){
|
|
|
this.form7.startpointId = this.form7.startpointId.toString()
|
|
@@ -629,12 +678,12 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
- });
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
manualXbk(){
|
|
|
this.$refs.form8.validate((valid) => {
|
|
@@ -653,11 +702,11 @@
|
|
|
})
|
|
|
}
|
|
|
}).finally(()=>{
|
|
|
- return true
|
|
|
- })
|
|
|
+ return true
|
|
|
+ })
|
|
|
}else{
|
|
|
return false
|
|
|
- }
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
reset () {
|
|
@@ -685,7 +734,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.$confirm(this.$t("developer.tips.wareTips"), this.$t("common.tips"), {
|
|
|
distinguishCancelAndClose: true,
|
|
|
confirmButtonText: this.$t("common.confirm"),
|
|
@@ -718,9 +767,9 @@
|
|
|
this.selection.forEach(item => {
|
|
|
ids.push(item.id)
|
|
|
})
|
|
|
- this.updateStatus(ids)
|
|
|
+ this.updateStatus(ids)
|
|
|
},
|
|
|
- updateStatus(ids){
|
|
|
+ updateStatus(ids){
|
|
|
warnLogApi.updateStatus({ids: ids}).then(response => {
|
|
|
const res = response.data
|
|
|
if (res.isSuccess) {
|
|
@@ -771,14 +820,14 @@
|
|
|
this.dialog.isVisible = true
|
|
|
},
|
|
|
fetch () {
|
|
|
- this.loading = true
|
|
|
+ this.loading = true
|
|
|
areaMgrApi.page(this.queryParams).then(res => {
|
|
|
res = res.data
|
|
|
- if(res.isSuccess){
|
|
|
+ if(res.isSuccess){
|
|
|
this.lineList = res.data.records
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|