| | |
| | | <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="SourceAddress" |
| | | <uni-easyinput type="text" :focus="istrue" v-model="SourceAddress" |
| | | placeholder="请è¾å
¥åºåºåºä½" ref='midInput' /> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | |
| | | <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="StartAddress" |
| | | placeholder="请è¾å
¥å
¥åºç«å°" ref='midInput' /> |
| | | <uni-forms-item label="åºåºåºä½"> |
| | | <uni-easyinput type="text" :focus="!barcodefocus" @input="inputChangebarcode" v-model="StartAddress" |
| | | placeholder="请è¾å
¥åºåºåºä½" ref='midInput' /> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="SamplingInboundTask" type="primary" size="default" style="margin-top: 2%;">å
¥åº</button> |
| | | <button @click="SamplingInboundTask" type="primary" size="default" style="margin-top: 2%;">æ½æ£åºåº</button> |
| | | <u-toast ref="SamplingInboundTaskluToast" /> |
| | | </view> |
| | | </view> |
| | |
| | | data() { |
| | | return { |
| | | istrue: false, |
| | | barcodefocus: false, |
| | | range: [], |
| | | StartAddress: "", |
| | | PalletCode: "", |
| | | SourceAddress:"", |
| | | items: ['åºåº', 'æ½æ£åºåº'], |
| | | current: 0 |
| | |
| | | // this.getEndLocations(); |
| | | // }, |
| | | methods: { |
| | | carNoInputChange() { |
| | | this.istrue = false; |
| | | this.$nextTick(function(x) { |
| | | if (this.barcode != '') { |
| | | this.istrue = true; |
| | | } |
| | | }) |
| | | }, |
| | | inputChangebarcode() { |
| | | this.barcodefocus = false; |
| | | this.$nextTick(function(x) { |
| | | if (this.barcode != '') { |
| | | this.barcodefocus = true; |
| | | } |
| | | }) |
| | | }, |
| | | onClickItem(e) { |
| | | if (this.current != e.currentIndex) { |
| | | this.current = e.currentIndex; |
| | |
| | | } |
| | | var param = { |
| | | // MainData: { |
| | | "PalletCode": this.PalletCode, |
| | | "SourceAddress":this.SourceAddress |
| | | // }, |
| | | } |
| | | console.log(param); |
| | | this.$u.post('/api/PDA/OutboundTask', param).then(res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "åºåºä»»å¡ä¸å", |
| | | this.$refs.InboundTaskluToast.show({ |
| | | title: res.message, |
| | | type: "success" |
| | | }) |
| | | this.SourceAddress = ""; |
| | | this.PalletCode = ""; |
| | | this.istrue = false; |
| | | } else { |
| | | this.$refs.InboundTaskluToast.show({ |
| | |
| | | } |
| | | this.$u.post('/api/PDA/SamplingOutboundTask', param).then(res => { |
| | | if (res.status) { |
| | | this.$refs.uToast.show({ |
| | | title: "å¼å«Agvæ¬è¿æå", |
| | | this.$refs.SamplingInboundTaskluToast.show({ |
| | | title: res.message, |
| | | type: "success" |
| | | }) |
| | | this.StartAddress = ""; |