| | |
| | | <view> |
| | | <view class="code"> |
| | | <view class="item"> |
| | | <view class="code-decs">入库区:</view> |
| | | <view class="code-decs">起始区:</view> |
| | | <uni-combox :candidates="staList" placeholder="请选择站点" v-model="orgSite"></uni-combox> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">终点站:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="tarSite" :focus="barcodeFocus"> |
| | | </view> |
| | | |
| | |
| | | locNo: "", |
| | | orgSite: '', |
| | | tarSite: '', |
| | | staList: ["e"], |
| | | staList: ["SO", "EO"], |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | this.token = uni.getStorageSync('token'); |
| | | }, |
| | | mounted() { |
| | | this.tarSite = uni.getStorageSync('tarSite') |
| | | // this.tarSite = uni.getStorageSync('tarSite') |
| | | }, |
| | | methods: { |
| | | messageToggle(type) { |
| | |
| | | this.$refs.combConfirm.close() |
| | | }, |
| | | comb() { |
| | | uni.setStorageSync('tarSite', this.tarSite); |
| | | // uni.setStorageSync('tarSite', this.tarSite); |
| | | uni.vibrateShort(); |
| | | let that = this; |
| | | if (that.orgSite === '') { |
| | | this.messageText = "起始区为空" |
| | | this.messageToggle('error') |
| | | return; |
| | | } |
| | | if (that.tarSite === '') { |
| | | this.messageText = "入库区为空" |
| | | this.messageText = "终点站为空" |
| | | this.messageToggle('error') |
| | | return; |
| | | } |
| | |
| | | resst() { |
| | | this.orgSite = '' |
| | | this.dataList = [] |
| | | |
| | | this.tarSite = '' |
| | | |
| | | }, |
| | | } |