| | |
| | | <view v-show="current === 0"> |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="æçç¼ç "> |
| | | <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="PalletCode" |
| | | placeholder="请è¾å
¥æçç¼ç " ref='midInput' /> |
| | | <uni-forms-item label="æçæ°é"> |
| | | <uni-easyinput type="text" :focus="istrue" @input="carNoInputChange" v-model="PalletCode" |
| | | placeholder="请è¾å
¥æçæ°é" ref='midInput' /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="ç»å®è´§ä½"> |
| | | <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="Point" |
| | |
| | | range: [], |
| | | EndAddress: "", |
| | | StartAddress: "", |
| | | PalletCode:"", |
| | | Point:"", |
| | | PalletCode: "", |
| | | Point: "", |
| | | items: ['è´§ä½ç»å®', '嫿', 'æ¬è¿'], |
| | | current: 0 |
| | | } |
| | |
| | | } |
| | | }, |
| | | Bind() { |
| | | if (this.PalletCode.length <= 0&&this.Point.length) { |
| | | if (this.PalletCode.length == "" || this.Point.length == "") { |
| | | this.$refs.BindluToast.show({ |
| | | title: "æçç¼ç è·ç»å®è´§ä½ä¸è½ä¸ºç©º", |
| | | title: "æçæ°éè·ç»å®è´§ä½ä¸è½ä¸ºç©º", |
| | | type: "error" |
| | | }) |
| | | return; |
| | | } |
| | | var param = { |
| | | MainData: { |
| | | "PalletCode": this.PalletCode, |
| | | "Point":this.Point |
| | | }, |
| | | } |
| | | this.$u.post('/api/PDA/CallMateriel', param).then(res => { |
| | | // var param = { |
| | | // MainData: { |
| | | // "PalletCode": this.PalletCode, |
| | | // "Point": this.Point |
| | | // }, |
| | | // } |
| | | this.$u.post('/api/PDA/Bind?qty=' + this.PalletCode + '&point=' + this.Point, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "å¼å«Agvæ¬è¿æå", |
| | | this.$refs.BindluToast.show({ |
| | | title: "ç»å®æå", |
| | | type: "success" |
| | | }) |
| | | this.EndAddress = ""; |
| | | this.Point = ""; |
| | | this.PalletCode = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.BindluToast.show({ |
| | |
| | | }) |
| | | }, |
| | | CallMateriel() { |
| | | if (this.EndAddress.length <= 0) { |
| | | if (this.EndAddress == "") { |
| | | this.$refs.CallMaterieluToast.show({ |
| | | title: "请è¾å
¥ç»ç¹", |
| | | type: "error" |
| | | }) |
| | | return; |
| | | } |
| | | var param = { |
| | | MainData: { |
| | | "endPoint": this.EndAddress |
| | | }, |
| | | } |
| | | this.$u.post('/api/PDA/CallMateriel', param).then(res => { |
| | | // var param = { |
| | | // MainData: { |
| | | // "endPoint": this.EndAddress |
| | | // }, |
| | | // } |
| | | this.$u.post('/api/PDA/CallMateriel?endPoint=' + this.EndAddress, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "å¼å«Agvæ¬è¿æå", |
| | | this.$refs.CallMaterieluToast.show({ |
| | | title: "嫿æå", |
| | | type: "success" |
| | | }) |
| | | this.EndAddress = ""; |
| | |
| | | }) |
| | | }, |
| | | MaterielCarry() { |
| | | if (this.StartAddress.length <= 0) { |
| | | if (this.StartAddress == "") { |
| | | this.$refs.MaterielCarryuToast.show({ |
| | | title: "请è¾å
¥èµ·ç¹", |
| | | type: "error" |
| | | }) |
| | | return; |
| | | } |
| | | var param = { |
| | | MainData: { |
| | | "startPoint": this.StartAddress |
| | | }, |
| | | } |
| | | this.$u.post('/api/PDA/MaterielCarry', param).then(res => { |
| | | // var param = { |
| | | // MainData: { |
| | | // "startPoint": this.StartAddress |
| | | // }, |
| | | // } |
| | | this.$u.post('/api/PDA/MaterielCarry?startPoint=' + this.StartAddress, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | this.$refs.MaterielCarryuToast.show({ |
| | | title: "å¼å«Agvæ¬è¿æå", |
| | | type: "success" |
| | | }) |