#
whycq
2024-03-18 f2232657e8109b0ed4f76b3913e0d4b9713e2af6
pages/project/jmAGV/home.vue
@@ -1,5 +1,6 @@
<template>
   <view class="container">
      <uni-icons type="bars" size="30" color="#b1b3b8" class="select" @click="jump()"></uni-icons>
      <!-- 左 -->
      <view class="zcard">
         <view class="zcard-flex">
@@ -12,6 +13,7 @@
            <view class="button-nk" style="background-color: brown;" v-for="item in traySiteList" @click="click(item,'right')">{{item.name}}</view>
         </view>
      </view>
      
      <view>
         <uni-popup ref="revise" type="dialog">
@@ -38,7 +40,7 @@
         <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}}
@@ -119,6 +121,11 @@
         this.token = uni.getStorageSync('token');
      },
      methods: {
         jump() {
            uni.redirectTo({
               url: '/pages/project/jmAGV/floorOne'
            })
         },
         click(item,type) {
            this.item = item
            this.text = item.name
@@ -141,6 +148,7 @@
               } else {
                  k.chose = ''
               }
               this.$forceUpdate() // 强制刷新
            }
            this.code = matnr
         },
@@ -195,12 +203,13 @@
               this.meterShow = false
               let that = this
               uni.request({
                  url: `${that.baseUrl}/open/asrs/getEmptyMat`,
                  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
                        
                     }
@@ -296,6 +305,7 @@
      /* background-color: aqua; */
      display: grid;
      grid-template-columns: 50% 50%;
      width: 100%;
   }
   .btn-box {
@@ -321,7 +331,7 @@
      margin: 10rpx 0rpx;
      /* padding: 20rpx 70rpx; */
      /* background-color: azure; */
      min-width: 150rpx;
      min-width: 100rpx;
      /* margin: 0 auto; */
      height: 50rpx;
      text-align: center;
@@ -392,7 +402,17 @@
      background-color: #FFF;
   }
   .chosed {
      background-color: #09d174;
      color: #cecece;
      background-color: #67C23A;
      color: #e8e8e8;
   }
   .select {
      position: absolute;
      bottom: 12px;
      right: 16px;
      border-radius: 10px;
      padding: 4px 10px;
      box-shadow: inset 2px 2px 2px rgba(0, 0, 0, .3),
         inset -2px -2px 2px rgba(255, 255, 255, .7),
         -2px -2px 2px rgba(0, 0, 0, .4);
   }
</style>