|
@@ -162,18 +162,18 @@ export default {
|
|
this.$message({
|
|
this.$message({
|
|
message: "任务ID" + this.$t("rules.require"),
|
|
message: "任务ID" + this.$t("rules.require"),
|
|
type: "warning"
|
|
type: "warning"
|
|
- })
|
|
|
|
|
|
+ })
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
console.log(this.tenant)
|
|
console.log(this.tenant)
|
|
taskMgrApi.confirmBaiting({ "taskNodeId":this.tenant.taskNodeId}).then((res) => {
|
|
taskMgrApi.confirmBaiting({ "taskNodeId":this.tenant.taskNodeId}).then((res) => {
|
|
- res = res.data
|
|
|
|
- if (res.isSuccess) {
|
|
|
|
|
|
+ res = res.data
|
|
|
|
+ if (res.isSuccess) {
|
|
this.unBaitingCount = res.data.unBaitingCount
|
|
this.unBaitingCount = res.data.unBaitingCount
|
|
- this.unFeedingCount = res.data.unFeedingCount
|
|
|
|
|
|
+ this.unFeedingCount = res.data.unFeedingCount
|
|
}
|
|
}
|
|
- });
|
|
|
|
- },
|
|
|
|
|
|
+ });
|
|
|
|
+ },
|
|
release(){
|
|
release(){
|
|
// 上下料站拆除夹具
|
|
// 上下料站拆除夹具
|
|
taskMgrApi.releaseClamp({ "id" : this.tenant.id}).then((res) => {
|
|
taskMgrApi.releaseClamp({ "id" : this.tenant.id}).then((res) => {
|
|
@@ -185,7 +185,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
printCode(row){
|
|
printCode(row){
|
|
- this.loading = true
|
|
|
|
|
|
+ this.loading = true
|
|
taskNodMgrApi.printCode({"uniqueCode" : this.tenant.uniqueCode, "taskNodeId" : row.taskNodeId }).then((res) => {
|
|
taskNodMgrApi.printCode({"uniqueCode" : this.tenant.uniqueCode, "taskNodeId" : row.taskNodeId }).then((res) => {
|
|
res = res.data;
|
|
res = res.data;
|
|
if (res.isSuccess) {
|
|
if (res.isSuccess) {
|
|
@@ -199,7 +199,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
submitForm(type){
|
|
submitForm(type){
|
|
- // 6:工序下料 3:下料
|
|
|
|
|
|
+ // 6:工序下料 3:下料
|
|
this.confirmDisabled = true
|
|
this.confirmDisabled = true
|
|
taskMgrApi.updateTaskStatus({ "id" : this.tenant.id, "updateType" : "end","processType" : type,"updateUser" : this.$store.state.account.user.id}).then((res) => {
|
|
taskMgrApi.updateTaskStatus({ "id" : this.tenant.id, "updateType" : "end","processType" : type,"updateUser" : this.$store.state.account.user.id}).then((res) => {
|
|
res = res.data;
|
|
res = res.data;
|
|
@@ -217,9 +217,9 @@ export default {
|
|
machiningClientApi.checkStockNode({"taskNodeId": this.tenant.taskNodeId}).then((res)=>{
|
|
machiningClientApi.checkStockNode({"taskNodeId": this.tenant.taskNodeId}).then((res)=>{
|
|
res = res.data;
|
|
res = res.data;
|
|
if (res.isSuccess) {
|
|
if (res.isSuccess) {
|
|
- let bool = res.data;
|
|
|
|
- if(bool){
|
|
|
|
- this.submitForm("3")
|
|
|
|
|
|
+ let bool = res.data;
|
|
|
|
+ if(bool){
|
|
|
|
+ this.submitForm("3")
|
|
}else{
|
|
}else{
|
|
this.callRobot()
|
|
this.callRobot()
|
|
}
|
|
}
|
|
@@ -227,10 +227,10 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
callRobot(){
|
|
callRobot(){
|
|
- this.callRobotFlag = false
|
|
|
|
|
|
+ this.callRobotFlag = false
|
|
machiningClientApi.callRobot({ "taskNodeId" : this.tenant.taskNodeId, "callType":"2"}).then((res) => {
|
|
machiningClientApi.callRobot({ "taskNodeId" : this.tenant.taskNodeId, "callType":"2"}).then((res) => {
|
|
res = res.data
|
|
res = res.data
|
|
- if (res.isSuccess) {
|
|
|
|
|
|
+ if (res.isSuccess) {
|
|
// 通知列表
|
|
// 通知列表
|
|
this.$emit("success");
|
|
this.$emit("success");
|
|
// 通知列表-并关闭弹出框
|
|
// 通知列表-并关闭弹出框
|
|
@@ -238,8 +238,8 @@ export default {
|
|
}
|
|
}
|
|
}).finally(()=>{
|
|
}).finally(()=>{
|
|
this.callRobotFlag = true
|
|
this.callRobotFlag = true
|
|
- });
|
|
|
|
-
|
|
|
|
|
|
+ });
|
|
|
|
+
|
|
},
|
|
},
|
|
initWidth () {
|
|
initWidth () {
|
|
this.screenWidth = document.body.clientWidth
|
|
this.screenWidth = document.body.clientWidth
|
|
@@ -268,8 +268,8 @@ export default {
|
|
this.RFIDParams.taskId = this.tenant.id
|
|
this.RFIDParams.taskId = this.tenant.id
|
|
this.RFIDParams.taskNodeId = this.tenant.taskNodeId
|
|
this.RFIDParams.taskNodeId = this.tenant.taskNodeId
|
|
this.RFIDParams.data.positionIndex = this.tenant.currentStationName.substr(-1)
|
|
this.RFIDParams.data.positionIndex = this.tenant.currentStationName.substr(-1)
|
|
- let that = this
|
|
|
|
- machiningClientApi.read(this.RFIDParams).then(res => {
|
|
|
|
|
|
+ //let that = this
|
|
|
|
+ /*machiningClientApi.read(this.RFIDParams).then(res => {
|
|
if(res.data.result){
|
|
if(res.data.result){
|
|
this.$message({
|
|
this.$message({
|
|
message: "RFID: "+res.data.result,
|
|
message: "RFID: "+res.data.result,
|
|
@@ -277,7 +277,7 @@ export default {
|
|
})
|
|
})
|
|
that.tenant.uniqueCode = res.data.result
|
|
that.tenant.uniqueCode = res.data.result
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ });*/
|
|
}
|
|
}
|
|
this.confirmBaiting()
|
|
this.confirmBaiting()
|
|
},
|
|
},
|