| | |
| | | </view> |
| | | <view class="item"> |
| | | <view class="dropdown" @click="toggleDropdown()"> |
| | | <input type="text" style="width: 650rpx;" v-model="containerType"> |
| | | <input type="text" style="width: 650rpx;" v-model="containerType" placeholder="请选择货架类型"> |
| | | <uni-icons :type="isOpen ? 'top' : 'bottom'" color="#c1c1c1" style="margin-left: 10rpx;"></uni-icons> |
| | | <scroll-view scroll-y="ture" class="dropdown-content" v-if="isOpen"> |
| | | <view class="dropdown-item" v-for="option in selects" @click="selected(option)">{{option}}</view> |
| | |
| | | hide: true, |
| | | hidebg: 'kb-bgtr', |
| | | isOpen: false, |
| | | selects: ['1号','2号'] |
| | | selects: [1,2,3,4], |
| | | kind: 'pakin' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | return; |
| | | } |
| | | } |
| | | // console.log(that.dataList); |
| | | // return |
| | | uni.request({ |
| | | url: that.baseUrl + '/agvMobile/comb/auth', |
| | | data: JSON.stringify({ |
| | |
| | | }, |
| | | start() { |
| | | let that = this |
| | | let params = [] |
| | | if (this.kind == 'pakin') { |
| | | let param = { |
| | | devNo: this.stationCode, |
| | | containerCode: this.barcode, |
| | | containerType: this.containerType, |
| | | } |
| | | params.push(param) |
| | | } else { |
| | | let param = { |
| | | devNo: this.stationCode, |
| | | containerType: this.containerType, |
| | | } |
| | | params.push(param) |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/agvMobile/pakin/auth', |
| | | data: JSON.stringify({ |
| | | devNo: that.devNo |
| | | }), |
| | | url: that.baseUrl + '/agvMobile/pakin/empty/auth', |
| | | data: {pad: params}, |
| | | method: 'POST', |
| | | header: { |
| | | 'token': uni.getStorageSync('token') |
| | | }, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | success(result) { |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | |
| | | height: 50rpx; |
| | | line-height: 50rpx; |
| | | /* font-family: PingFang SC; uniapp 默认字体不居中 */ |
| | | font-size: 36upx; |
| | | font-family: PingFang SC; |
| | | |
| | | } |
| | |
| | | width: 100%; |
| | | background-color: white; |
| | | position: fixed; |
| | | margin-top: 210rpx; |
| | | margin-top: 280rpx; |
| | | z-index: 9; |
| | | /* border-top: 1px solid #DCDFE6; */ |
| | | text-align: center; |
| | |
| | | position: relative; |
| | | display: flex; |
| | | align-items: center; |
| | | border-bottom: 1px solid #333; |
| | | padding: 0rpx 20rpx; |
| | | border-bottom: 1px solid #d9d9d9; |
| | | } |
| | | .dropdown-content { |
| | | position: absolute; |
| | | top: calc(100% + 15rpx); |
| | | left: 0; |
| | | width: calc(100%); |
| | | width: calc(100% - 20rpx); |
| | | max-height: 300rpx; |
| | | background-color: #fff; |
| | | box-shadow: 0 0px 6px rgba(0, 0, 0, 0.3); |