qq_41295110
2025-07-29 0ee21d97ac9cf8e55d0663714e3f13927670f6be
pages/gongxuIn/form.vue
@@ -347,34 +347,35 @@
        methods: {
         //扫码
         toScanCode(e){
            // this.hform.HBarCode = 'GXLX250603001-01'
            // this.getHBarCodeData('GXLX250603001-01')
            uni.scanCode({
                onlyFromCamera: true,
                success: (res) => {
                    console.log('条码内容:' + res.result);
                  if(e==0){
                     this.hform.HBarCode = res.result
                     this.getHBarCodeData(res.result)
                  }else{
                     this.hform.HBarCode_Mater = res.result
                     this.getHBarCodeMater(res.result)
                  }
                }
            });
            var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
            mpaasScanModule.mpaasScan({
               'hideAlbum': true,
               'timeoutInterval':'10', //超时时间
               'timeoutText':'未识别到二维码' //超时提醒
            },(ret) => {
               console.log(ret.resp_result)
               if(e==0){
                  this.hform.HBarCode = ret.resp_result
                  this.getHBarCodeData(ret.resp_result)
               }else{
                  this.hform.HBarCode_Mater = ret.resp_result
                  this.getHBarCodeMater(ret.resp_result)
               }
            })
         },
         //扫流水号
         toScanProcNo(){
            if(this.hform.HProcExchHinteID){
               uni.scanCode({
                   onlyFromCamera: true,
                   success: (res) => {
                       console.log('条码内容:' + res.result);
                     this.hform.HProcNo = res.result
                     this.getHProcNoData(this.hform.HBarCode,res.result)
                   }
               });
               var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
               mpaasScanModule.mpaasScan({
                  'hideAlbum': true,
                  'timeoutInterval':'10', //超时时间
                  'timeoutText':'未识别到二维码' //超时提醒
               },(ret) => {
                  console.log(ret.resp_result)
                  this.hform.HProcNo = resp_result
                  this.getHProcNoData(this.hform.HBarCode,resp_result)
               })
            }else{
               uni.showToast({
                  title:'请扫完流转卡后再扫配件码',
@@ -952,7 +953,12 @@
                               }
                           });
                        }
                        }
                        }else{
                        uni.showToast({
                           title:res.data.Message,
                           icon:'none'
                        })
                     }
                     },
                     fail: (res) => {