| | |
| | | class="login__info__item__input tn-flex tn-flex-direction-row tn-flex-nowrap tn-flex-col-center tn-flex-row-left"> |
| | | <view class="login__info__item__input__content"> |
| | | <input maxlength="500" v-model="barcode" focus="true" placeholder-class="input-placeholder" |
| | | @input="barcodeInput" placeholder="è¯·æ«ææåºä¸ç车轮å·" /> |
| | | @input="barcodeInput" placeholder="è¯·æ«æè½¦è½®å·" /> |
| | | </view> |
| | | </view> |
| | | <!-- <view |
| | |
| | | </view> --> |
| | | <view class="login__info__item__button tn-cool-bg-color-7--reverse" @tap="submitCheek()" |
| | | hover-class="tn-hover" :hover-stay-time="150">ä¿¡æ¯æ ¸å¯¹</view> |
| | | <view :class="istrue?'isnone':'isnonone'"> |
| | | <!--<view :class="istrue?'isnone':'isnonone'"> |
| | | <view class="login__info__item__button tn-cool-bg-color-7--reverse" @tap="submitTransfer()" |
| | | hover-class="tn-hover" :hover-stay-time="150" style="margin-top: 0px;">å
¥ç¼åæ¶</view> |
| | | </view> |
| | | </view>--> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | cacheName: '', |
| | | stationNo: '', |
| | | stationName: '', |
| | | barcode2:'', |
| | | istrue: true, |
| | | cacheshow: false, |
| | | stationshow: false, |
| | |
| | | }, |
| | | ///æ¡ç |
| | | barcodeInput: function(e) { |
| | | this.barcode = e.detail.value; |
| | | console.log(this.barcode); |
| | | console.log(uni.getStorageSync('jo_user')); |
| | | //this.from_address = e.detail.value; |
| | | this.$u.post("/api/Towms/GetStation", { |
| | | MainData: { |
| | | from_address: this.barcode, |
| | | //to_address:this.to_address, |
| | | //creator: uni.getStorageSync('jo_user').userName |
| | | } |
| | | }).then(res => { |
| | | console.log(res) |
| | | if (res.status) { |
| | | this.barcode2=this.barcode; |
| | | this.barcode = res.code; |
| | | //this.istrue = false; |
| | | //this.$t.message.toast(res.code); |
| | | } else { |
| | | this.istrue = true; |
| | | this.$t.message.toast(res.message); |
| | | } |
| | | }).catch(err => { |
| | | |
| | | }) |
| | | }, |
| | | //ç¼åæ¶ç¼å· |
| | | cacheConfirm(e) { |
| | |
| | | // console.log(ip); |
| | | this.$u.post("api/ToWms/agvTransferList", { |
| | | MainData: { |
| | | sn: this.barcode, |
| | | sn: this.barcode2, |
| | | jobID: this.jobID, |
| | | // cacheNo: this.cacheNo, |
| | | // address: this.stationNo, |
| | |
| | | } |
| | | }).then(res => { |
| | | if (res.status) { |
| | | this.barcode = '', |
| | | this.istrue = false; |
| | | this.$t.message.toast('æ ¡éªæå'); |
| | | this.$t.message.toast('ç§»åºå¤å,请çå¾
AGVåè´§'); |
| | | } else { |
| | | this.istrue = true; |
| | | this.$t.message.toast(res.message); |