| | |
| | | return this.datas.find(x => x.text == text); |
| | | }, |
| | | clickCoupon(url) { |
| | | var _this=this; |
| | | var _this = this; |
| | | if (url == "åºç©ºæ") { |
| | | uni.showModal({ |
| | | title: 'æç¤ºï¼', |
| | |
| | | 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('åæ¶') |
| | | } |
| | | } |
| | |
| | | }); |
| | | } |
| | | }, |
| | | PdaOutEmpty(){ |
| | | this.$u.post('/api/PDA/PdaOutEmpty').then( |
| | | PdaOutEmpty() { |
| | | this.$u.post('/api/PDA/OutEmpty').then( |
| | | res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | |
| | | } |
| | | }) |
| | | }, |
| | | 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()) { |