| | |
| | | <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> |
| | | <uni-forms-item label="ç»å®è´§ä½"> |
| | | <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="Point" |
| | | placeholder="请è¾å
¥ç»å®è´§ä½ç¹" ref='midInput' /> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="Bind" type="primary" size="default" style="margin-top: 2%;">ç»å®</button> |
| | | <u-toast ref="BindluToast" /> |
| | | </view> |
| | | </view> |
| | | <view v-show="current === 1"> |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="ç»ç¹"> |
| | | <uni-easyinput type="text" :focus="!istrue" @input="carNoInputChange" v-model="EndAddress" |
| | | placeholder="请è¾å
¥ç»ç¹" ref='midInput' /> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="CallMateriel" type="primary" size="default" style="margin-top: 2%;">嫿</button> |
| | | <button @click="CallMateriel" type="primary" size="default" style="margin-top: 2%;">弿</button> |
| | | <u-toast ref="CallMaterieluToast" /> |
| | | </view> |
| | | </view> |
| | | <view v-show="current === 2"> |
| | | <view v-show="current === 1"> |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="èµ·ç¹"> |
| | |
| | | placeholder="请è¾å
¥èµ·ç¹" ref='midInput' /> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="MaterielCarry" type="primary" size="default" style="margin-top: 2%;">æ¬è¿</button> |
| | | <button @click="MaterielCarry" type="primary" size="default" style="margin-top: 2%;">åæ</button> |
| | | <u-toast ref="MaterielCarryuToast" /> |
| | | </view> |
| | | </view> |
| | |
| | | StartAddress: "", |
| | | PalletCode: "", |
| | | Point: "", |
| | | items: ['è´§ä½ç»å®', '嫿', 'æ¬è¿'], |
| | | items: ['弿', 'åæ'], |
| | | current: 0 |
| | | } |
| | | }, |
| | |
| | | // }, |
| | | methods: { |
| | | onClickItem(e) { |
| | | if (this.current != e.currentIndex) { |
| | | this.istrue = false; |
| | | if (this.current !== e.currentIndex) { |
| | | this.current = e.currentIndex; |
| | | } |
| | | }, |
| | | Bind() { |
| | | if (this.PalletCode.length == "" || this.Point.length == "") { |
| | | this.$refs.BindluToast.show({ |
| | | title: "æçæ°éè·ç»å®è´§ä½ä¸è½ä¸ºç©º", |
| | | type: "error" |
| | | }) |
| | | return; |
| | | } |
| | | // 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.BindluToast.show({ |
| | | title: "ç»å®æå", |
| | | type: "success" |
| | | }) |
| | | this.Point = ""; |
| | | this.PalletCode = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.BindluToast.show({ |
| | | title: res.message, |
| | | type: "error" |
| | | }) |
| | | if (this.current == 2) { |
| | | this.getData(); |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | CallMateriel() { |
| | | if (this.EndAddress == "") { |
| | |
| | | this.$u.post('/api/PDA/CallMateriel?endPoint=' + this.EndAddress, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.CallMaterieluToast.show({ |
| | | title: "嫿æå", |
| | | title: "å¼å«Agvéææå", |
| | | type: "success" |
| | | }) |
| | | this.EndAddress = ""; |
| | |
| | | this.$u.post('/api/PDA/MaterielCarry?startPoint=' + this.StartAddress, {}).then(res => { |
| | | if (res.status) { |
| | | this.$refs.MaterielCarryuToast.show({ |
| | | title: "å¼å«Agvæ¬è¿æå", |
| | | title: "å¼å«Agvåææå", |
| | | type: "success" |
| | | }) |
| | | this.StartAddress = ""; |