wangxinhui
2025-04-29 95e39ae7aecd6e1016c71cf5ae70a680d8f569bb
´úÂë¹ÜÀí/»´°²PDA/pages/stash/receiveorderoutbound.vue
@@ -58,6 +58,8 @@
                           <view>收货单号:{{orderNo}}</view>
                           <view>采购单号:{{item.purchaseOrderNo}}</view>
                           <view>物料编号:{{item.materielCode}}</view>
                           <view>物料名称:{{item.materielName}}</view>
                           <view>物料规格:{{item.materielSpec}}</view>
                           <view>批次号:{{item.lotNo}}</view>
                           <view>收货数量:{{item.receivedQuantity}}</view>
                           <view>是否质检:{{item.ifInspection==1?"是":"否"}}</view>
@@ -262,10 +264,10 @@
            this.itemCode = itemCode;
            this.$refs.inputDialog.open()
         },
         voiceSpeech(src) {
            innerAudioContext.src = src; // '../../static/success.mp3';
            innerAudioContext.play();
         },
         // voiceSpeech(src) {
         //    innerAudioContext.src = src; // '../../static/success.mp3';
         //    innerAudioContext.play();
         // },
         search() {
            this.getData();
         },
@@ -520,36 +522,42 @@
                  return;
               }
               var innerCode = this.innerCode;
               //将innerCode,SC后面的进行替换空
               if(this.warehouseId==11){
                  innerCode=innerCode.replace(/,SC.*/, '');
               }
               if(innerCode.indexOf("POHA")>0){
                  this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + innerCode, {}).then((res) => {
                     if (res.status) {
                        this.sns = res.data.serialNumber;
                        // this.matInfos.splice(0, this.matInfos.length);
                        // this.matInfos.push(res.data);
                        this.matCode = "物料编码:" + res.data.materielCode;
                        this.LotNo = "物料批次:" + res.data.lotNo;
                        this.PurchaseOrderNo = "采购单号:" + res.data.purchaseOrderNo;
                        this.EffectiveDate = "有效日期:" + res.data.effectiveDate;
                        this.ProductionDate = "生产日期:" + res.data.productionDate;
                        this.orderQty = "订单数量:" + res.data.quantity;
                        this.Quantity = res.data.quantity;
                        // setTimeout(() => {
                        //    this.voiceSpeech('../../static/success.mp3');
                        // }, 100);
                     } else {
                        this.$refs.uToast.show({
                           title: res.message,
                           type: "error"
                        })
                        // setTimeout(() => {
                        //    this.voiceSpeech('../../static/fail.mp3');
                        // }, 100);
                     }
                  })
               }
               setTimeout(() => {
                  this.innerCode = "";
                  this.focus=true;
               }, 1);
               this.$u.post('/api/MaterielInfo/CodeAnalysis?serNum=' + innerCode, {}).then((res) => {
                  if (res.status) {
                     this.sns = res.data.serialNumber;
                     // this.matInfos.splice(0, this.matInfos.length);
                     // this.matInfos.push(res.data);
                     this.matCode = "物料编码:" + res.data.materielCode;
                     this.LotNo = "物料批次:" + res.data.lotNo;
                     this.PurchaseOrderNo = "采购单号:" + res.data.purchaseOrderNo;
                     this.EffectiveDate = "有效日期:" + res.data.effectiveDate;
                     this.ProductionDate = "生产日期:" + res.data.productionDate;
                     this.orderQty = "订单数量:" + res.data.quantity;
                     this.Quantity = res.data.quantity;
                     setTimeout(() => {
                        this.voiceSpeech('../../static/success.mp3');
                     }, 100);
                  } else {
                     this.$refs.uToast.show({
                        title: res.message,
                        type: "error"
                     })
                     setTimeout(() => {
                        this.voiceSpeech('../../static/fail.mp3');
                     }, 100);
                  }
               })
               }, 100);
            })
         },
         tagInput() {