dengjunjie
2025-01-15 5e29274b887d9b9f9b1df23d4a804f30892c8a03
´úÂë¹ÜÀí/»´°²PDA/pages/stash/boxing.vue
@@ -64,7 +64,7 @@
                        placeholder="请扫描托盘条码" ref='midInput' @input="inputChangebarcode" />
                  </uni-forms-item>
                  <uni-forms-item label="地址条码">
                     <uni-easyinput type="text" v-model="address" placeholder="请扫描地址条码" ref='midInput'
                     <uni-easyinput type="text" v-model="address" :disabled="addressdisabled" placeholder="请扫描地址条码" ref='midInput'
                        :focus="addressFocus" />
                  </uni-forms-item>
                  <uni-forms-item>
@@ -209,7 +209,8 @@
            Testplaceholder: "",
            Testcheck: false,
            Summmary:0,
            stockInfoDetail:[]
            stockInfoDetail:[],
            addressdisabled: false
         }
      },
      onShow() {},
@@ -229,6 +230,9 @@
            this.Initiallife = 16;
         } else if (this.warehouseId == 5) { //辅料仓库区ID
            this.address = "8005";
         }else if (this.warehouseId == 3) { //辅料仓库区ID
            this.address = "1011";
            this.addressdisabled = true;
         }
         this.label = "单据编号:" + this.orderNo;
         this.getData();
@@ -379,22 +383,26 @@
         },
         snInput() {
            this.$nextTick(() => {
               if (this.warehouseId == 6 || this.warehouseId == 2) {
               if (this.warehouseId == 6 || this.warehouseId == 2 || this.warehouseId == 3) {
                  if (this.sns.length > 0) {
                     this.sns = [];
                  }
               }
               if (this.materSn != "") {
                  this.focus = false;
                  var matSn = this.materSn;
                  setTimeout(() => {
                  if(this.materSn.split(',').length != 6){
                     this.materSn = "";
                  }, 10);
                     return;
                  }
                  var matSn = this.materSn;
                  //setTimeout(() => {
                     this.materSn = "";
                  //}, 10);
                  this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + matSn, {}).then((res) => {
                     this.Testcheck = false;
                     if (res.status) {
                        this.sns.push(res.data.serialNumber);
                        if (this.warehouseId == 6 || this.warehouseId == 2) {
                        if (this.warehouseId == 6 || this.warehouseId == 2 || this.warehouseId == 3) {
                           if (this.matInfos.length > 0) {
                              this.matInfos = [];
                           }