操作屏

This commit is contained in:
2024-09-02 13:41:17 +08:00
parent 4d66389215
commit 5d368a5585
3 changed files with 118 additions and 7 deletions

View File

@@ -204,7 +204,7 @@ export default {
methods: {
toExit() {
this.disabled = true
crudProduceScreen.loginOut({ username: this.screenData.username }).then(res => {
crudProduceScreen.loginOut({ username: this.screenData.username, device_code: this.screenData.device_code }).then(res => {
this.disabled = false
localStorage.removeItem('screenData')
this.$router.push('/produceScreen/setup')
@@ -253,7 +253,7 @@ export default {
this.disabled = false
return
}
crudProduceScreen.callMater(this.popSecList).then(res => {
crudProduceScreen.callMater({ mater: this.popSecList, device_code: this.popData.device_code }).then(res => {
this.disabled = false
this.$message(res.msg)
}).catch(() => {
@@ -265,7 +265,7 @@ export default {
this.$message.error('请选择托盘类型!')
return
}
crudProduceScreen.callEmp({ vehicle_type: this.value }).then(res => {
crudProduceScreen.callEmp({ vehicle_type: this.value, device_code: this.popData.device_code }).then(res => {
this.disabled = false
this.$message(res.msg)
}).catch(() => {
@@ -279,7 +279,7 @@ export default {
this.disabled = false
})
} else if (this.type === 'BACK') {
crudProduceScreen.sendVehicle(this.popList).then(res => {
crudProduceScreen.sendVehicle({ mater: this.popList, device_code: this.popData.device_code }).then(res => {
this.$message(res.msg)
}).catch(() => {
this.disabled = false