#
whycq
2024-03-19 cd45d9d2347927933e51c2d81cf77b430c6a68c0
pages/tzsk/AGV/AGVPakinOn.vue
@@ -306,7 +306,9 @@
         },
         barcodeInput() {
            // 不设置定时器 会出现扫入的字符串不全
            this.barcode = this.barcode.split('_')[1]
            if (this.barcode.split('_')[1]) {
               this.barcode = this.barcode.split('_')[1]
            }
            setTimeout(() => {
               var len = this.barcode.length
               if (len != 10) {
@@ -350,12 +352,12 @@
         // 搜索物料
         findMat() {
            let that = this
            if (that.dataList.length >= 1) {
               this.messageText = "只能添加一种物料"
               this.messageToggle('warn')
               that.matnr = ''
               return
            }
            // if (that.dataList.length >= 1) {
            //    this.messageText = "只能添加一种物料"
            //    this.messageToggle('warn')
            //    that.matnr = ''
            //    return
            // }
            uni.request({
               url: that.baseUrl + '/mat/auth',
               data: {
@@ -381,6 +383,8 @@
                        // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
                        events: {
                           matList: function(data) {
                              data.data['csocode'] = ''
                              data.data['isoseq'] = ''
                              that.checkMat(data.data)
                              that.focuss()
                           },
@@ -673,7 +677,7 @@
<style>
   @import url('../../../static/css/wms.css/wms.css');
   .list:first-child {
      margin-top: 540rpx;
      margin-top: 400rpx;
   }
   
   .code {