dengjunjie
2025-01-15 059bfb279d7bb7a45b1a9d3d5e26db238e939a7f
´úÂë¹ÜÀí/»´°²PDA/pages/stash/raworderboxing.vue
@@ -202,90 +202,6 @@
            innerAudioContext.src = src; // '../../static/success.mp3';
            innerAudioContext.play();
         },
         //解盘
         releasebox() {
            if (this.value.length == 0) {
               this.$refs.uToast.show({
                  title: "请扫码",
                  type: "error"
               })
               return;
            }
            var param;
            var matInfo = this.value.split('|');
            if (matInfo.length == 7) {
               param = {
                  MainData: {
                     "innerCode": this.value
                  }
               }
            } else {
               param = {
                  MainData: {
                     "barcode": this.value
                  }
               }
            }
            this.$u.post('/api/StockOperate/ReleaseAllBox', param).then(resdt => {
               if (resdt.status) {
                  uni.$showMsg('解盘成功!')
                  this.value = "";
                  this.matInfo = [];
                  this.matTotals = [];
                  this.value2 = "";
               } else {
                  this.$refs.uToast.show({
                     title: resdt.message,
                     type: "error"
                  })
               }
            })
         },
         releaseboxInput() {
            this.$nextTick(() => {
               if (this.value.length == 0) {
                  return;
               }
               var matInfo = this.value.split('|');
               this.matInfo = [];
               if (matInfo.length == 7) {
                  this.$u.post('/api/StockOperate/GetStockInfoByInnerCode', {
                     MainData: {
                        "innerCode": this.value
                     }
                  }).then(res => {
                     if (res.status) {
                        this.matInfo = res.data.stockInfo;
                        this.matTotals = res.data.stockTotal;
                        this.value2 = res.data.barcode;
                     } else {
                        this.$refs.uToast.show({
                           title: res.message,
                           type: "error"
                        })
                     }
                  })
               } else {
                  this.$u.post('/api/StockOperate/GetStockInfoByBarcode', {
                     MainData: {
                        "barcode": this.value
                     }
                  }).then(res => {
                     if (res.status) {
                        this.matInfo = res.data.stockInfo;
                        this.matTotals = res.data.stockTotal;
                        this.value2 = res.data.barcode;
                     } else {
                        this.$refs.uToast.show({
                           title: res.message,
                           type: "error"
                        })
                     }
                  })
               }
            })
         },
         updateFocus() {
            debugger
            this.$nextTick(() => {