| | |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | |
| | | <view> |
| | | <uni-popup ref="numberPopup" type="dialog"> |
| | | <view class="popup2"> |
| | | <view class="popup3-input-title">{{tipsTitle}}</view> |
| | | <view class="button-nk" @click="goUp(2)">2个</view> |
| | | <view class="button-nk" @click="goUp(4)">4个</view> |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | outType: '', |
| | | text: '', |
| | | btnTitle: '', |
| | | type: '' |
| | | type: '', |
| | | tipsTitle: '', |
| | | item: {} |
| | | |
| | | } |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | jump() { |
| | | uni.navigateTo({ |
| | | uni.redirectTo({ |
| | | url: '/pages/project/jmAGV/home' |
| | | }) |
| | | }, |
| | |
| | | this.btns = this.onBtns |
| | | this.text = '上架' |
| | | this.type = 'load' |
| | | this.tipsTitle = '上架数量' |
| | | } else { |
| | | this.btns = this.outBtns |
| | | this.type = 'unload' |
| | | this.text = '下架' |
| | | this.tipsTitle = '下架数量' |
| | | } |
| | | this.$refs.revise.open(type) |
| | | }, |
| | | option(item) { |
| | | this.item = item |
| | | this.$refs.numberPopup.open('center') |
| | | }, |
| | | goUp(num) { |
| | | let _this = this |
| | | let data = { |
| | | originLocal: item.code, |
| | | targetLocal: item.traget, |
| | | originLocal: this.item.code, |
| | | targetLocal: this.item.traget, |
| | | type: this.type, |
| | | anfme: num |
| | | } |
| | | this.webServer(data) |
| | | }, |
| | | // 所有服务 |
| | | webServer(data) { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/agv/requestTask`, |
| | | data: data, |
| | |
| | | flex-direction: column; |
| | | justify-content: space-around; |
| | | } |
| | | .popup2 { |
| | | background-color: #eee; |
| | | width: 30vw; |
| | | height: 100%; |
| | | padding: 0 10vw; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-around; |
| | | border-radius: 10rpx; |
| | | } |
| | | .popup3-input-title { |
| | | text-align: center; |
| | | margin: 10rpx; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | } |
| | | .select { |
| | | position: absolute; |
| | | bottom: 12px; |
| | |
| | | <uni-popup ref="inputPopup" type="dialog"> |
| | | <view class="popup3"> |
| | | <view class="popup3-input-title">{{tipsTitle}}</view> |
| | | <view class="popup3-input-box2" :class="item.chose" |
| | | <view class="popup3-input-box2" :class="item.chose" |
| | | v-if="!meterShow" v-for="item in emptyMatList" @click="chose(item.matnr)"> |
| | | <view> |
| | | {{item.maktx}} |
| | |
| | | }, |
| | | methods: { |
| | | jump() { |
| | | uni.navigateTo({ |
| | | uni.redirectTo({ |
| | | url: '/pages/project/jmAGV/floorOne' |
| | | }) |
| | | }, |
| | |
| | | } else { |
| | | k.chose = '' |
| | | } |
| | | this.$forceUpdate() // 强制刷新 |
| | | } |
| | | this.code = matnr |
| | | }, |
| | |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | res.data['chose'] = '' |
| | | that.emptyMatList = res.data |
| | | |
| | | } |
| | |
| | | background-color: #FFF; |
| | | } |
| | | .chosed { |
| | | background-color: #09d174; |
| | | color: #cecece; |
| | | background-color: #67C23A; |
| | | color: #e8e8e8; |
| | | } |
| | | .select { |
| | | position: absolute; |