| | |
| | | <view class="zcard"> |
| | | <view class="zcard-flex"> |
| | | <view class="button-nk" style="background-color: brown;" @click="click('right')">下架</view> |
| | | <view class="button-nk" style="background-color: brown;" @click="putOut('out2')">仓库-满托盘(出库)</view> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | <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> |
| | | <uni-popup ref="inputPopup" type="dialog"> |
| | | <view class="popup3"> |
| | | <view class="popup3-input-title">{{tipsTitle}}</view> |
| | | <view class="popup3-input-box2" :class="item.chose" |
| | | v-if="!meterShow" v-for="item in emptyMatList" @click="chose(item.matnr)"> |
| | | <view> |
| | | {{item.maktx}} |
| | | </view> |
| | | </view> |
| | | <view class="popup3-input-box" v-if="meterShow"> |
| | | <text>{{desc}}:</text> |
| | | <view style="margin-left: 3rpx;"> |
| | | <input type="text" v-model="code"/> |
| | | </view> |
| | | </view> |
| | | <view class="popup3-input-box" v-if="meterShow"> |
| | | <text>米数:</text> |
| | | <view style="margin-left: 3rpx;"> |
| | | <input type="text" v-model="meter"/> |
| | | </view> |
| | | </view> |
| | | <view class="button-nk" @click="confirm(2)">确定</view> |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | |
| | | btnTitle: '', |
| | | type: '', |
| | | tipsTitle: '', |
| | | item: {} |
| | | item: {}, |
| | | meterShow: false, |
| | | code: '', |
| | | emptyMatList: '', |
| | | meter: '' |
| | | |
| | | |
| | | } |
| | | }, |
| | |
| | | uni.redirectTo({ |
| | | url: '/pages/project/jmAGV/home' |
| | | }) |
| | | }, |
| | | // 满版出库 |
| | | putOut(type) { |
| | | this.type = type |
| | | this.inputPopup() |
| | | }, |
| | | inputPopup() { |
| | | if (this.type == 'out1') { |
| | | this.tipsTitle = '空托盘出库' |
| | | this.desc = '物料码' |
| | | this.meterShow = false |
| | | let that = this |
| | | uni.request({ |
| | | url: `${that.baseUrl}/agv/getEmptyMat`, |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | method: 'GET', |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | res.data['chose'] = '' |
| | | that.emptyMatList = res.data |
| | | |
| | | } |
| | | } |
| | | }) |
| | | } else { |
| | | this.tipsTitle = '满托盘出库' |
| | | this.desc = '订单号' |
| | | this.meterShow = true |
| | | this.$refs.inputPopup.open('center') |
| | | } |
| | | this.$refs.inputPopup.open('center') |
| | | }, |
| | | click(type) { |
| | | if (type == 'left') { |
| | |
| | | anfme: num |
| | | } |
| | | this.webServer(data) |
| | | }, |
| | | confirm() { |
| | | let data = {} |
| | | data = { |
| | | originLocal: '11-Q1', |
| | | targetLocal: '11-Q1', |
| | | type: this.type, |
| | | orderNo: this.code, |
| | | meter: this.meter |
| | | } |
| | | this.webServer(data) |
| | | setTimeout(()=>{ |
| | | this.$refs.inputPopup.close() |
| | | this.code = '' |
| | | this.meter = '' |
| | | },300) |
| | | }, |
| | | // 所有服务 |
| | | webServer(data) { |
| | |
| | | margin: 10rpx 0rpx; |
| | | /* padding: 20rpx 70rpx; */ |
| | | /* background-color: azure; */ |
| | | min-width: 150rpx; |
| | | min-width: 350rpx; |
| | | /* margin: 0 auto; */ |
| | | height: 50rpx; |
| | | text-align: center; |
| | |
| | | inset -2px -2px 2px rgba(255, 255, 255, .7), |
| | | -2px -2px 2px rgba(0, 0, 0, .4); |
| | | } |
| | | .popup3 { |
| | | background-color: #eee; |
| | | max-height: 80vw; |
| | | width: 50vw; |
| | | padding: 0 10vw; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-around; |
| | | border-radius: 10rpx; |
| | | color: #565656; |
| | | } |
| | | .popup3-input-title { |
| | | text-align: center; |
| | | margin: 10rpx; |
| | | font-size: 18px; |
| | | font-weight: bold; |
| | | } |
| | | .popup3-input-box { |
| | | display: flex; |
| | | border: 1px solid #cecece; |
| | | border-radius: 5rpx; |
| | | padding: 2rpx 10rpx; |
| | | margin: 20rpx; |
| | | } |
| | | .popup3-input-box2 { |
| | | display: flex; |
| | | border: 1px solid #cecece; |
| | | border-radius: 5rpx; |
| | | padding: 2rpx 10rpx; |
| | | margin: 10rpx; |
| | | background-color: #FFF; |
| | | } |
| | | </style> |