ÎļþÃû´Ó ´úÂë¹ÜÀí/NEWCode/WIDESEAWCS_PDA/pages/½ÐÁÏ/ÊäËÍÏß»ØÁ÷.vue ÐÞ¸Ä |
| | |
| | | <view v-if="current === 0" class="headerstyle"> |
| | | <view class="itemstyle"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="èµ·ç¹å°å"> |
| | | <!-- <uni-easyinput type="text" :focus="!addressFocus" v-model="sourceAddress" |
| | | placeholder="请æ«çèµ·ç¹å°å" ref='midInput' @input="inputChangebarcode" /> --> |
| | | <uni-data-select v-model="value" :localdata="rangs"></uni-data-select> |
| | | <uni-forms-item label="èµ·ç¹ç¼åæ¶å°å"> |
| | | <uni-easyinput type="text" :focus="!addressFocus" v-model="sourceAddress" |
| | | placeholder="请æ«çèµ·ç¹å°å" ref='midInput' @input="inputChangebarcode" /> |
| | | <!-- <uni-data-select v-model="value" :localdata="rangs"></uni-data-select> --> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="ç»ç¹å°å"> |
| | | <uni-forms-item label="ç»ç¹è¾é线å°å"> |
| | | <uni-easyinput type="text" :focus="!addressFocus" v-model="targetAddress" |
| | | placeholder="è¯·æ«æç»ç¹å°å" ref='midInput' @input="inputChangebarcode" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="ç¬¬ä¸æçæ¡ç "> |
| | | <uni-easyinput type="text" :focus="!addressFocus" v-model="pallcode" placeholder="è¯·æ«ææçæ¡ç " |
| | | ref='midInput' @input="inputChangebarcode" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="ç¬¬äºæçæ¡ç "> |
| | | <uni-easyinput type="text" :focus="!addressFocus" v-model="pallcode1" placeholder="è¯·æ«ææçæ¡ç " |
| | | ref='midInput' @input="inputChangebarcode" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item> |
| | | <button @click="inbound" type="primary" size="default" |
| | |
| | | addressFocus: false, |
| | | targetAddress: "", |
| | | sourceAddress: "", |
| | | pallcode: "", |
| | | pallcode1: "", |
| | | Exception: "", |
| | | address: "", |
| | | check: true, |
| | |
| | | value2: "", |
| | | matTotals: [], |
| | | value: 0, |
| | | rangs: [{ |
| | | value: "FJXL-KPHLX001", |
| | | text: "FJXL-KPHLX001" |
| | | }, |
| | | { |
| | | value: "ZJXL-KPHLX001", |
| | | text: "ZJXL-KPHLX001" |
| | | }, |
| | | ], |
| | | // range: [], |
| | | } |
| | | }, |
| | |
| | | }, |
| | | inbound() { |
| | | // æåè¾å
¥æ¡çå¼ |
| | | const sourceAddress = this.value; |
| | | const sourceAddress = this.sourceAddress; |
| | | const targetAddress = this.targetAddress; |
| | | // æåå·¥åç¼å· |
| | | const pallcode =this.pallcode; |
| | | // æååå· |
| | | const pallcode1 = this.pallcode1; |
| | | |
| | | |
| | | if (sourceAddress == "") { |
| | | this.$t.message.toast('è¯·éæ©èµ·ç¹ä½ç½®'); |
| | | return; |
| | |
| | | this.$t.message.toast('请æ«çç»ç¹ä½ç½®'); |
| | | return; |
| | | } |
| | | // if (pallcode == "") { |
| | | // this.$t.message.toast('è¯·æ«æç¬¬ä¸æçæ¡ç '); |
| | | // return; |
| | | // } |
| | | // if (pallcode1 == "") { |
| | | // this.$t.message.toast('è¯·æ«æç¬¬äºæçæ¡ç '); |
| | | // return; |
| | | // } |
| | | var postData = { |
| | | MainData: { |
| | | "sourceAddress": this.value, |
| | | "sourceAddress": this.sourceAddress, |
| | | "targetAddress": this.targetAddress, |
| | | "Exception": this.pallcode + "," + this.pallcode1 |
| | | } |
| | | } |
| | | // console.log(Exception); |
| | | this.$u.post('/api/PDA/EmptyTask', postData).then(res => { |
| | | this.$t.message.closeLoading(); |
| | | console.log(postData); |
| | | if (res.code == 200) { |
| | | this.$t.message.toast('å¼å«æå'); |
| | | this.value="", |
| | | this.targetAddress="", |
| | | this.pallcode="", |
| | | this.pallcode1="", |
| | | this.$refs.popup.close(); |
| | | // this.submit(); |
| | | } else { |
| | | this.$t.message.toast(res.message); |
| | | } |
| | | this.$t.message.closeLoading(); |
| | | console.log(postData); |
| | | if (res.code == 0) { |
| | | this.$t.message.toast('å¼å«æå'); |
| | | this.sourceAddress = ""; |
| | | this.targetAddress = ""; |
| | | // this.$refs.popup.close(); |
| | | // this.submit(); |
| | | } else { |
| | | this.$t.message.toast(res.message); |
| | | } |
| | | }).catch(err => { |
| | | this.$refs.uToast.show({ |
| | | title: err.message, |