| | |
| | | if (res.confirm) { |
| | | _this.PdaOutEmpty() |
| | | //console.log('确认') |
| | | } else if (res.cancel) |
| | | { |
| | | } else if (res.cancel) { |
| | | // console.log('åæ¶') |
| | | } |
| | | } |
| | | }) |
| | | } else if (url == "å
¥åºæ¾è´§å®æ") { |
| | | uni.showModal({ |
| | | title: 'æç¤ºï¼', |
| | | content: 'æ¯å¦ç¡®å®æ¾è´§å®æï¼', |
| | | success: function(res) { |
| | | if (res.confirm) { |
| | | _this.ReleaseCompleted() |
| | | //console.log('确认') |
| | | } else if (res.cancel) { |
| | | // console.log('åæ¶') |
| | | } |
| | | } |
| | |
| | | } |
| | | }) |
| | | }, |
| | | ReleaseCompleted() { |
| | | this.$u.post('http://127.0.0.1:9291/api/AGV/ReleaseCompleted').then( |
| | | res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "æ¾è´§å®ææå", |
| | | type: "success" |
| | | }) |
| | | this.qty = ""; |
| | | } else { |
| | | this.$refs.uToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | lock() { |
| | | console.log("lock") |
| | | if (this.hasLogin()) { |