1
zhang
2025-10-03 232a3c6a9b65ee04e4ac73236a9d90076ee7a105
pages/AGV/AGVPakin.vue
@@ -21,6 +21,10 @@
            </view>
         </view>
         <view class="item">
            <view class="code-decs">仓库:</view>
            <uni-combox :candidates="floorList" placeholder="请选择仓库" v-model="floor"></uni-combox>
         </view>
         <view class="item">
         <view class="code-decs" style="width: 25vw;">大小托盘:</view>
         <radio-group @change="isFullPlt">
            <label>
@@ -184,7 +188,10 @@
            removeNum: 0,
            ck1: true,
            ck2: false,
            fullPlt: '1'
            fullPlt: '1',
            ck : '',
            floorList: [],
            floor: '',
         }
      },
      onLoad() {
@@ -193,6 +200,7 @@
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.getSite();
      },
      methods: {
         // 大小托盘
@@ -205,6 +213,33 @@
            } else {
               this.fullPlt = '2'
            }
         },
         //获取仓库
         getSite() {
            let that = this
            uni.request({
               url: that.baseUrl + '/mobile/ck',
               header: { 'token': uni.getStorageSync('token') },
               method: 'POST',
               success(res) {
                  res = res.data
                  console.log(res)
                  if (res.code === 200) {
                     that.floorList = res.data
                  } else if (res.code == 403) {
                     that.messageText = res.msg
                     that.messageToggle('error')
                     setTimeout(() => {
                        uni.reLaunch({
                           url: '../login/login'
                        });
                     }, 1000);
                  } else {
                     that.messageText = res.msg
                     that.messageToggle('error')
                  }
               }
            })
         },
         messageToggle(type) {
            this.msgType1 = type
@@ -438,6 +473,11 @@
               this.messageToggle('error')
               return;
            }
            if(that.floor===''){
               this.messageText = "仓库不能为空"
               this.messageToggle('error')
               return;
            }
            for (var i = 0; i < that.dataList.length; i++) {
               if (that.dataList[i].anfme == 0 || that.dataList[i].anfme == '') {
                  this.messageText = that.dataList[i].matnr + '组托数量不能为0'
@@ -452,7 +492,8 @@
                  barcodeSize: '0',
                  rsta: that.rsta,
                  barcode: that.barcode,
                  combMats: that.dataList
                  combMats: that.dataList,
                  ck : that.floor,
               }),
               method: 'POST',
               header: {
@@ -571,7 +612,7 @@
   @import url('../../static/css/wms.css/wms.css');
   .list:first-child {
      margin-top: 460rpx;
      margin-top: 530rpx;
   }
   .code {
      width: 100%;