| | |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>通道</text></view> |
| | | </view> |
| | | <view> |
| | | <view style="width: 96%;margin-left: 2%;"> |
| | | <uni-combox emptyTips="暂无数据" :candidates="staNoList" v-model="staNo" placeholder="通道"></uni-combox> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>库位号</text></view> |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input readonly="value" v-model="locNo" type="text" placeholder="扫码 / 输入" > |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('locNo')"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="userId" type="text" placeholder="扫码 / 输入"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="foucss()"></uni-icons> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('userId')"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="foucss()"></uni-icons> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('barcode')"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | type: 'center', |
| | | msgType: 'success', |
| | | messageText: '这是一条成功提示', |
| | | staNoList:[1,2,3,4,5,6], |
| | | staNo:'' |
| | | } |
| | | }, |
| | | mounted(){ |
| | |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl |
| | | }, |
| | | // 清空input |
| | | remove(e) { |
| | | this[e] = '' |
| | | }, |
| | | // 重置 |
| | | resst() { |
| | | this.staNo = '' |
| | | this.locNo = '' |
| | | this.userId = '' |
| | | this.barcode = '' |
| | | }, |
| | | // 确认 |
| | | confirm() { |
| | | let that = this |
| | | var testMast = {locNo:that.locNo, |
| | | userId:that.userId, |
| | | barcode:that.barcode} |
| | | uni.request({ |
| | | url: that.commonUrl + '/test/startUp/auth', |
| | | url: that.commonUrl + '/mobile/test/startUp/auth', |
| | | data: { |
| | | testMast:testMast, |
| | | channel:that.staNo, |
| | | locNo:that.locNo, |
| | | userId:that.userId, |
| | | barcode:that.barcode |
| | | }, |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | method: 'GET', |
| | | method: 'POST', |
| | | success(result) { |
| | | console.log(result) |
| | | var res = result.data |
| | | uni.showToast({title: res.msg,icon: "none",position: 'top'}) |
| | | } |
| | | }) |
| | | }, |