#
whycq
2024-03-15 a7ee747fceb29f9dca920dea0c2a0865d5c8e0ed
pages/project/jmAGV/floorOne.vue
@@ -22,6 +22,16 @@
            </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>
@@ -44,7 +54,9 @@
            outType: '',
            text: '',
            btnTitle: '',
            type: ''
            type: '',
            tipsTitle: '',
            item: {}
            
         }
      },
@@ -57,7 +69,7 @@
      },
      methods: {
         jump() {
            uni.navigateTo({
            uni.redirectTo({
               url: '/pages/project/jmAGV/home'
            })
         },
@@ -66,20 +78,32 @@
               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,
@@ -152,6 +176,22 @@
      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;