1
This commit is contained in:
@@ -147,9 +147,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
// 上料
|
||||||
handlerStart1(id) {
|
handlerStart1(id) {
|
||||||
this.flag = 1;
|
this.flag = 1;
|
||||||
// 上料
|
|
||||||
const queryData = {
|
const queryData = {
|
||||||
taskid: id,
|
taskid: id,
|
||||||
flag: this.flag
|
flag: this.flag
|
||||||
@@ -169,12 +169,12 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
// 反程
|
||||||
handlerStart2(id) {
|
handlerStart2(id) {
|
||||||
this.flag = 2;
|
this.flag = 2;
|
||||||
// 反程
|
|
||||||
const queryData = {
|
const queryData = {
|
||||||
taskid: id,
|
taskid: id,
|
||||||
flag: 2
|
flag: this.flag
|
||||||
}
|
}
|
||||||
AgvApi.goTask(queryData).then(res => {
|
AgvApi.goTask(queryData).then(res => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
@@ -191,9 +191,10 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
handlerStop() {
|
// 终止
|
||||||
|
handlerStop(id) {
|
||||||
const queryData = {
|
const queryData = {
|
||||||
workorder_id: this.orderInfo.id,
|
taskid: this.orderInfo.id,
|
||||||
flag: this.flag
|
flag: this.flag
|
||||||
}
|
}
|
||||||
AgvApi.Stoptask(queryData).then(res => {
|
AgvApi.Stoptask(queryData).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user