wangxinhui
2025-01-10 4dd24c39a6c0e598b72c1a22eebec3ef6f66bbef
´úÂë¹ÜÀí/»´°²PDA/pages/stash/boxing.vue
@@ -198,6 +198,8 @@
            this.Testlabel = "数量:";
            this.Testplaceholder = "请输入数量";
            this.Initiallife = 16;
         } else if (this.warehouseId == 5) { //辅料仓库区ID
            this.address = "8005";
         }
         this.label = "单据编号:" + this.orderNo;
         this.getData();
@@ -348,7 +350,7 @@
         },
         snInput() {
            this.$nextTick(() => {
               if (this.warehouseId == 6) {
               if (this.warehouseId == 6 || this.warehouseId == 2) {
                  if (this.sns.length > 0) {
                     this.sns = [];
                  }
@@ -363,7 +365,7 @@
                     this.Testcheck = false;
                     if (res.status) {
                        this.sns.push(res.data.serialNumber);
                        if (this.warehouseId == 6) {
                        if (this.warehouseId == 6 || this.warehouseId == 2) {
                           if (this.matInfos.length > 0) {
                              this.matInfos = [];
                           }
@@ -419,11 +421,14 @@
            }
            this.$u.post('/api/Task/RequestInboundTask', postData).then(res => {
               if (res.status) {
                  uni.$showMsg(res.message);
                  this.inboundBarcode = "";
                  this.address = "";
                  if (this.warehouseId != 5) this.address = "";
                  setTimeout(() => {
                     this.addressFocus = false;
                     this.$refs.uToast.show({
                        title: "成功",
                        type: "success"
                     })
                  }, 200);
               } else {
                  this.$refs.uToast.show({
@@ -484,12 +489,10 @@
            }
            if (this.warehouseId == 2) { //油墨仓库区ID
               this.sn = this.sns[0];
               debugger
               for (var i = 0; i < this.Initiallife - 1; i++) {
                  this.sns.push(this.sn);
               }
            }
            debugger
            let url = 'palletCode=' + this.barcode + '&initiallife=' + this.Initiallife + '&warehouseId=' + this
               .warehouseId;