| | |
| | | <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="EndAddress" |
| | | placeholder="请è¾å
¥ç»ç¹" ref='midInput' /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="èµ·ç¹"> |
| | | <uni-easyinput type="text" :focus="istrue" v-model="StartAddress1" placeholder="请è¾å
¥èµ·ç¹" |
| | | ref='midInput' /> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="CallMateriel" type="primary" size="default" style="margin-top: 2%;">弿</button> |
| | | <u-toast ref="CallMaterieluToast" /> |
| | |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="èµ·ç¹"> |
| | | <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="StartAddress" |
| | | <uni-easyinput type="text" :focus="!istrue1" @input="carNoInputChange1" v-model="StartAddress" |
| | | placeholder="请è¾å
¥èµ·ç¹" ref='midInput' /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="ç»ç¹"> |
| | | <uni-easyinput type="text" :focus="istrue1" v-model="EndAddress1" placeholder="请è¾å
¥ç»ç¹" |
| | | ref='midInput' /> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="MaterielCarry" type="primary" size="default" style="margin-top: 2%;">åæ</button> |
| | |
| | | data() { |
| | | return { |
| | | istrue: false, |
| | | istrue1: false, |
| | | range: [], |
| | | EndAddress: "", |
| | | EndAddress1:"", |
| | | StartAddress1:"", |
| | | StartAddress: "", |
| | | PalletCode: "", |
| | | Point: "", |
| | |
| | | methods: { |
| | | onClickItem(e) { |
| | | this.istrue = false; |
| | | this.istrue1 = false; |
| | | this.StartAddress = ""; |
| | | this.EndAddress == ""; |
| | | this.StartAddress1 = ""; |
| | | this.EndAddress1 == ""; |
| | | if (this.current !== e.currentIndex) { |
| | | this.current = e.currentIndex; |
| | | if (this.current == 2) { |
| | | this.getData(); |
| | | } |
| | | } |
| | | }, |
| | | carNoInputChange() { |
| | | this.$nextTick(function(x) { |
| | | if (this.EndAddress.length > 0) { |
| | | this.istrue = true; |
| | | } |
| | | }) |
| | | }, |
| | | carNoInputChange1() { |
| | | this.$nextTick(function(x) { |
| | | if (this.StartAddress.length > 0) { |
| | | this.istrue1 = true; |
| | | } |
| | | }) |
| | | }, |
| | | CallMateriel() { |
| | | if (this.EndAddress == "") { |
| | |
| | | // "endPoint": this.EndAddress |
| | | // }, |
| | | // } |
| | | this.$u.post('/api/PDA/CallMateriel?endPoint=' + this.EndAddress, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.CallMaterieluToast.show({ |
| | | title: "å¼å«Agvéææå", |
| | | type: "success" |
| | | }) |
| | | this.EndAddress = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.CallMaterieluToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }) |
| | | this.$u.post('/api/PDA/CallMateriel?endPoint=' + this.EndAddress + '&startPoint=' + this.StartAddress1, {}) |
| | | .then(res => { |
| | | if (res.status) { |
| | | this.$refs.CallMaterieluToast.show({ |
| | | title: "å¼å«Agvéææå", |
| | | type: "success" |
| | | }) |
| | | this.StartAddress1 = ""; |
| | | this.EndAddress = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.CallMaterieluToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | MaterielCarry() { |
| | | if (this.StartAddress == "") { |
| | |
| | | // "startPoint": this.StartAddress |
| | | // }, |
| | | // } |
| | | this.$u.post('/api/PDA/MaterielCarry?startPoint=' + this.StartAddress, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.MaterielCarryuToast.show({ |
| | | title: "å¼å«Agvåææå", |
| | | type: "success" |
| | | }) |
| | | this.StartAddress = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.MaterielCarryuToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }) |
| | | this.$u.post('/api/PDA/MaterielCarry?startPoint=' + this.StartAddress + '&endPoint=' + this.EndAddress1, {}) |
| | | .then(res => { |
| | | if (res.status) { |
| | | this.$refs.MaterielCarryuToast.show({ |
| | | title: "å¼å«Agvåææå", |
| | | type: "success" |
| | | }) |
| | | this.StartAddress = ""; |
| | | this.EndAddress1 = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.MaterielCarryuToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | } |