skyouc
2025-07-14 4616cff3a14b81c4d488697f43fc7aad3cf3f10f
pages/stock/orderBindSeed.vue
@@ -43,6 +43,7 @@
            range: [],
            orderNo: '',
            barcode: '',
            siteNo: '',
            msgType1: '',
            messageText: '',
            msgType: '',
@@ -58,9 +59,12 @@
      },
      
      methods: {
         /**
          * 获取当前播种墙所有库位
          */
         getSeedLocs() {
            let that = this
            toast.loading('加载中')
            this.$toast.loading('加载中')
            uni.request({
               url: this.baseUrl +  '/pda/pick/seed/locs',
               header: {
@@ -80,7 +84,7 @@
                  }
               },
               complete() {
                  toast.hideLoading()
                  that.$toast.hideLoading()
               }
               
            })
@@ -110,7 +114,7 @@
            if (type == undefined || type == null || type == null) {
               type = 'bind'
            }
            toast.loading('绑定中..')
            this.$toast.loading('绑定中..')
            uni.request({
               url: that.baseUrl +  "/pda/pick/seed/bind",
               data: {barcode: that.barcode, orderNo: that.orderNo, siteNo: that.siteNo, type: type},
@@ -121,22 +125,21 @@
               success(res) {
                  let result = res.data;
                  if (result.code === 200) {
                     toast.hideLoading()
                     this.messageToggle('success', '绑定成功!')
                     that.messageToggle('success', '绑定成功!')
                  } else {
                     toast.hideLoading()
                     this.messageToggle('error', result.msg)
                     that.messageToggle('error', result.msg)
                  }
               },
               fail(res) {
                  toast.hideLoading()
                  this.messageToggle('error', '服务器错误')
                  that.messageToggle('error', '服务器错误')
                  
               },
               complete() {
                  that.barcode = ''
                  that.orderNo = ''
                  that.siteNo = ''
                  that.$toast.hideLoading()
               }
            })
         },