qq_41295110
2025-07-29 0ee21d97ac9cf8e55d0663714e3f13927670f6be
修改扫码功能
41个文件已修改
1977 ■■■■■ 已修改文件
.hbuilderx/launch.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/shangmudan/form.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/baoyangjihua/form.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/baoyangjilu/form.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/caigoudingdan/caigoudingdan.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/caigouruku/form.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/caigourukujiaoyan/form.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/caigoutuiliao/form.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/gongxuIn/form.vue 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/gongxuOut/form.vue 129 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/guzhangdengji/form.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/qitachuku/form.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/qitachuku_v2/form.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/qitachukujiaoyan/detail.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/qitaruku/form.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/qitaruku_v2/form.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/qitarukujiaoyan/form.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shebeidangan/form.vue 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shebeiguanli/form.vue 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shebeiweixiu/form.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanbuliao/form.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanbuliaojiaoyan/form.vue 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchandiaobo/form.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanlingliao/form.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanlingliaoshengdan/form.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanruku/form.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanrukushengdan/form.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shouliaotongzhi/table.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/tiaomachaima/tiaomachaima.vue 67 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/tiaomadaying/tiaomadaying.vue 81 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwaibuliaojiaoyan/form.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwaigxIn/form.vue 110 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwaigxOut/firstCheck.vue 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwaigxOut/form.vue 106 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwailingliao/form.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwailingliaojiaoyan/form.vue 60 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/wuliaosaoma/wuliaosaoma.vue 87 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/xiaoshouchuku/form.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/xiaoshouchukujiaoyan/form.vue 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/xiaoshoutuihuo/form.vue 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.hbuilderx/launch.json
@@ -22,6 +22,7 @@
        },
        {
            "openVueDevtools" : true,
            "playground" : "custom",
            "type" : "uni-app:app-android"
        }
    ]
manifest.json
@@ -2,8 +2,8 @@
    "name" : "智云LMES",
    "appid" : "__UNI__B002F49",
    "description" : "",
    "versionName" : "1.0.25",
    "versionCode" : 125,
    "versionName" : "1.0.28",
    "versionCode" : 128,
    "transformPx" : false,
    /* 5+App特有相关 */
    "app-plus" : {
@@ -46,7 +46,8 @@
                    "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
                    "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
                ],
                "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
                "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
                "minSdkVersion" : 23
            },
            /* ios打包配置 */
            "ios" : {
@@ -88,6 +89,41 @@
                    }
                }
            }
        },
        "nativePlugins" : {
            "Mpaas-Scan" : {
                "AppId" : "ALIPUB2087527291109",
                "License" : "uqSDoPf8ArVz0mKgs62fihEiELxaNc/fCwZU2eRwDvfdN3uhWCRRtXgszPkWmqjSUPYSFgOdMh0dv4UkQe0twC8fZt8+71FB3K6A83NaLtwi5gu+hVJ8MZnOTUe/ipmCCVmRGapmwfKfyHbV2oSAOLbq4/fgBszewOVtdjx7ogzyIltcCHOESsdejnFxmg/7+HuX5/0qmLxGIUUwGhwQazot0bQeGBP8sJ4ONZLd7n4WQFe8bQCrRcB3CPAFClwA/VldpIjOwrTYTd0LHyrhPJN5xHdpeoKmGIyJYsoxm94DDUFZyGHB+Qs+3euCJHOlCqpa7/A+ciAdUSeKHa0tkw==",
                "WorkspaceId" : "default",
                "__plugin_info__" : {
                    "name" : "支付宝原生扫码插件",
                    "description" : "支付宝原生扫码组件,包体积仅0.7MB,15分钟即可完成接入。同时,mPaaS提供「扫码分析」大盘",
                    "platforms" : "Android,iOS",
                    "url" : "https://ext.dcloud.net.cn/plugin?id=2636",
                    "android_package_name" : "com.shebeiguanli.www",
                    "ios_bundle_id" : "",
                    "isCloud" : true,
                    "bought" : 1,
                    "pid" : "2636",
                    "parameters" : {
                        "AppId" : {
                            "des" : "Android平台的AppId,请填写Android的config文件中的appId对应的值",
                            "key" : "mobilegw.appid",
                            "value" : ""
                        },
                        "License" : {
                            "des" : "Android平台的License,,请填写Android的config文件中的mpaasConfigLicense对应的值",
                            "key" : "mpaasConfigLicense",
                            "value" : ""
                        },
                        "WorkspaceId" : {
                            "des" : "Android平台的WorkspaceId,请填写Android的config文件中的workspaceId对应的值",
                            "key" : "workspaceId",
                            "value" : ""
                        }
                    }
                }
            }
        }
    },
    /* 快应用特有相关 */
pages/MJGL/shangmudan/form.vue
@@ -248,14 +248,16 @@
        methods: {
            //扫码
            toScanCode(){        
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        this.hform.HBarCode = res.result
                        this.getHBarCodeData(res.result)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    this.hform.HBarCode = ret.resp_result
                    this.getHBarCodeData(ret.resp_result)
                })
            },
            //日期
            HDateChange(e){
pages/baoyangjihua/form.vue
@@ -244,35 +244,37 @@
            },
            //扫码选择设备
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        uni.request({
                            url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                            data: { HBarCode: res.result },
                            success: (res) => {
                                console.log(res.data);
                                if(res.data.count == 1){
                                    var data = res.data.list[0][0]
                                    this.hform.HEquipID = data.hmainid
                                    this.hform.HEquipName = data.设备名称
                                }
                                uni.showToast({
                                    title:res.data.Message,
                                    icon:'none'
                                })
                            },
                            fail: (res) => {
                                console.log(res);
                                uni.showToast({
                                    title:'接口请求失败',
                                    icon:'none'
                                })
                            },
                        });
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    uni.request({
                        url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                        data: { HBarCode: ret.resp_result },
                        success: (res) => {
                            console.log(res.data);
                            if(res.data.count == 1){
                                var data = res.data.list[0][0]
                                this.hform.HEquipID = data.hmainid
                                this.hform.HEquipName = data.设备名称
                            }
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        },
                        fail: (res) => {
                            console.log(res);
                            uni.showToast({
                                title:'接口请求失败',
                                icon:'none'
                            })
                        },
                    });
                })
            },
            
            //获取设备保养规程数据
pages/baoyangjilu/form.vue
@@ -156,35 +156,37 @@
        methods: {
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        uni.request({
                            url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                            data: { HBarCode: res.result },
                            success: (res) => {
                                console.log(res.data);
                                if(res.data.count == 1){
                                    var data = res.data.list[0][0]
                                    this.hform.HEquipID = data.hmainid
                                    this.hform.HEquipName = data.设备名称
                                }
                                uni.showToast({
                                    title:res.data.Message,
                                    icon:'none'
                                })
                            },
                            fail: (res) => {
                                console.log(res);
                                uni.showToast({
                                    title:'接口请求失败',
                                    icon:'none'
                                })
                            },
                        });
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    uni.request({
                        url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                        data: { HBarCode: ret.resp_result },
                        success: (res) => {
                            console.log(res.data);
                            if(res.data.count == 1){
                                var data = res.data.list[0][0]
                                this.hform.HEquipID = data.hmainid
                                this.hform.HEquipName = data.设备名称
                            }
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        },
                        fail: (res) => {
                            console.log(res);
                            uni.showToast({
                                title:'接口请求失败',
                                icon:'none'
                            })
                        },
                    });
                })
            },
            upCode(){
                uni.request({
pages/caigoudingdan/caigoudingdan.vue
@@ -81,15 +81,16 @@
        methods: {
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        this.HBarCode = res.result
                        this.getCode(this.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    this.HBarCode = ret.resp_result
                    this.getCode(this.HBarCode)
                })
            },
            //扫条码处理
            getCode(HBarCode) {
pages/caigouruku/form.vue
@@ -324,19 +324,21 @@
            },
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if(this.hform.HBarCode == '*'){
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        }else{
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if(this.hform.HBarCode == '*'){
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    }else{
                        this.hform.HBarCode = ret.resp_result
                    }
                    this.getCode(this.hform.HBarCode)
                })
            },
            //扫其他(仓库,仓位)
            // toScanData(e){
pages/caigourukujiaoyan/form.vue
@@ -253,36 +253,40 @@
        methods: {
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBarCode = res.result
                        // this.GetMeesageByBillNo(this.hform.HBarCode)
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBarCode = ret.resp_result
                    // this.GetMeesageByBillNo(this.hform.HBarCode)
                    this.getCode(this.hform.HBarCode)
                })
            },
            toScanBillCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBillNo = res.result
                        this.GetMeesageByBillNo(this.hform.HBillNo)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBillNo = ret.resp_result
                    this.GetMeesageByBillNo(this.hform.HBillNo)
                })
            },
            //扫描单据号条码
            GetMeesageByBillNo(e) {
pages/caigoutuiliao/form.vue
@@ -324,19 +324,21 @@
            },
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if(this.hform.HBarCode == '*'){
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        }else{
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if(this.hform.HBarCode == '*'){
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    }else{
                        this.hform.HBarCode = ret.resp_result
                    }
                    this.getCode(this.hform.HBarCode)
                })
            },
            //扫其他(仓库,仓位)
            // toScanData(e){
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) => {
pages/gongxuOut/form.vue
@@ -560,29 +560,87 @@
            this.getHGroupList()
            this.getHEmpList()
            this.getHCenterList()
            this.getDefValByUser()
        },
        methods: {
            //通过登录用户获取默认值
            getDefValByUser(){
                uni.request({
                    url: this.serverUrl + '/Cj_StationInBill/GetDefValByUser',
                    type: "GET",
                    async: false,
                    data: { "Czybm": this.userInfo.Czybm, "Czymc":  this.userInfo.Czymc },
                    success: (res) => {
                        // console.log(res.data)
                        if(res.data.count == 1){
                            var data = res.data.data[0]
                            this.hform.HGroupID = data.HGroupID
                            this.hform.HGroupName = data.生产班组名称
                            this.hform.HEmpID = data.HEmpID
                            this.hform.HEmpName = data.操作员名称
                            this.hform.HEmpNumber = data.操作员代码
                            this.hform.HSourceID = data.HSourceID
                            this.hform.HSourceName = data.生产资源名称
                            this.hform.HCenterID = data.HWorkCenterID
                            this.hform.HCenterName = data.工作中心名称
                            this.hform.HEmpName_second = data.操作员名称
                        }else{
                            uni.showToast({
                                title:'获取生产班组信息失败',
                                icon:'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'获取生产班组信息失败',
                            icon:'none'
                        })
                    },
                });
            },
            //扫码
            toScanCode(){
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    var str = ret.resp_result
                    if(str.includes('@')) {
                      const parts = str.split('@');
                      this.hform.HBarCode = parts[0]
                      this.hform.HProcNo = parts[1]
                      this.getHBarCodeData(parts[0],1)
                      // this.getHProcNoData(parts[0],parts[1])
                    }else{
                        this.hform.HBarCode = ret.resp_result
                        this.getHBarCodeData(ret.resp_result)
                    }
                })
                // const str = "GXLX250603001-01@10";
                uni.scanCode({
                    onlyFromCamera: true,
                    // autoZoom:false,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        var str = res.result
                        if(str.includes('@')) {
                          const parts = str.split('@');
                          this.hform.HBarCode = parts[0]
                          this.hform.HProcNo = parts[1]
                          this.getHBarCodeData(parts[0])
                          // this.getHProcNoData(parts[0],parts[1])
                        }else{
                            this.hform.HBarCode = res.result
                            this.getHBarCodeData(res.result)
                        }
                    }
                });
                // uni.scanCode({
                //     onlyFromCamera: true,
                //     // autoZoom:false,
                //     success: (res) => {
                //         console.log('条码内容:' + res.result);
                //         var str = res.result
                //         if(str.includes('@')) {
                //           const parts = str.split('@');
                //           this.hform.HBarCode = parts[0]
                //           this.hform.HProcNo = parts[1]
                //           this.getHBarCodeData(parts[0],1)
                //           // this.getHProcNoData(parts[0],parts[1])
                //         }else{
                //             this.hform.HBarCode = res.result
                //             this.getHBarCodeData(res.result)
                //         }
                //     }
                // });
            },
            toInCode(e){
                var str = this.hform.HBarCode
@@ -590,7 +648,7 @@
                  const parts = str.split('@');
                  this.hform.HBarCode = parts[0]
                  this.hform.HProcNo = parts[1]
                  this.getHBarCodeData(parts[0])
                  this.getHBarCodeData(parts[0],1)
                  // this.getHProcNoData(parts[0],parts[1])
                }else{
                    this.getHBarCodeData(this.hform.HBarCode)
@@ -598,14 +656,16 @@
            },
            //扫流水号
            toScanProcNo(){
                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 = ret.resp_result
                    this.getHProcNoData(this.hform.HBarCode,ret.resp_result)
                })
            },
            //日期
            HDateChange(e){
@@ -1054,7 +1114,7 @@
                        if(res.data.code == 1){
                            var data = res.data.data[0]
                            this.getHBarCodeData(data.HBarCode)
                            // this.getHProcNoData(data.HBarCode,data.HProcNo)
                            this.getHProcNoData(data.HBarCode,data.HProcNo)
                            
                            this.hform.HInterID= data.HInterID
                            this.hform.HBillNo= data.HBillNo
@@ -1117,7 +1177,7 @@
                    },
                });
            },
            getHBarCodeData(HBarCode){
            getHBarCodeData(HBarCode,e){
                var barNo = HBarCode.substr(0, 2);
                var barNo1 = HBarCode.substr(0, 4);
                uni.request({
@@ -1155,7 +1215,9 @@
                            this.hform.HCenterID= data.HCenterID
                            this.hform.NoOutboundHqty= (data.流转卡数量 - data.出站报废关联数量 - data.出站关联数量)
                            
                            this.getHProcNoData(this.hform.HBarCode,this.hform.HProcNo)
                            if(e){
                                this.getHProcNoData(this.hform.HBarCode,this.hform.HProcNo)
                            }
                        }else{
                            uni.showToast({
                                title:res.data.Message,
@@ -1312,7 +1374,12 @@
                                        }
                                    });
                                }
                            }
                            }else{
                                uni.showToast({
                                    title:res.data.Message,
                                    icon:'none'
                                })
                            }
                        },
                        fail: (res) => {
                            console.log(res);
pages/guzhangdengji/form.vue
@@ -161,35 +161,37 @@
        methods: {
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        uni.request({
                            url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                            data: { HBarCode: res.result },
                            success: (res) => {
                                console.log(res.data);
                                if(res.data.count == 1){
                                    var data = res.data.list[0][0]
                                    this.hform.HEquipID = data.hmainid
                                    this.hform.HEquipName = data.设备名称
                                }
                                uni.showToast({
                                    title:res.data.Message,
                                    icon:'none'
                                })
                            },
                            fail: (res) => {
                                console.log(res);
                                uni.showToast({
                                    title:'接口请求失败',
                                    icon:'none'
                                })
                            },
                        });
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    uni.request({
                        url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                        data: { HBarCode: ret.resp_result },
                        success: (res) => {
                            console.log(res.data);
                            if(res.data.count == 1){
                                var data = res.data.list[0][0]
                                this.hform.HEquipID = data.hmainid
                                this.hform.HEquipName = data.设备名称
                            }
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        },
                        fail: (res) => {
                            console.log(res);
                            uni.showToast({
                                title:'接口请求失败',
                                icon:'none'
                            })
                        },
                    });
                })
            },
            // upCode(){
            //     uni.request({
pages/qitachuku/form.vue
@@ -388,19 +388,21 @@
        methods: {
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if (this.hform.HBarCode == '*') {
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        } else {
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.hform.HBarCode == '*') {
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    } else {
                        this.hform.HBarCode = ret.resp_result
                    }
                });
                    this.getCode(this.hform.HBarCode)
                })
            },
            //选择仓库
            HWHNameChange(e) {
pages/qitachuku_v2/form.vue
@@ -434,19 +434,21 @@
            },
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if (this.hform.HBarCode == '*') {
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        } else {
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.hform.HBarCode == '*') {
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    } else {
                        this.hform.HBarCode = ret.resp_result
                    }
                });
                    this.getCode(this.hform.HBarCode)
                })
            },
            showBillList() {
                this.$refs.billList.showPopup()
pages/qitachukujiaoyan/detail.vue
@@ -251,36 +251,40 @@
        methods: {
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBarCode = res.result
                        // this.GetMeesageByBillNo(this.hform.HBarCode)
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBarCode = ret.resp_result
                    // this.GetMeesageByBillNo(this.hform.HBarCode)
                    this.getCode(this.hform.HBarCode)
                })
            },
            toScanBillCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBillNo = res.result
                        this.GetMeesageByBillNo(this.hform.HBillNo)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBillNo = ret.resp_result
                    this.GetMeesageByBillNo(this.hform.HBillNo)
                })
            },
            //扫描单据号条码
            GetMeesageByBillNo(e) {
pages/qitaruku/form.vue
@@ -359,19 +359,21 @@
        methods: {
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if (this.hform.HBarCode == '*') {
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        } else {
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.hform.HBarCode == '*') {
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    } else {
                        this.hform.HBarCode = ret.resp_result
                    }
                });
                    this.getCode(this.hform.HBarCode)
                })
            },
            //扫其他(仓库,仓位)
            // toScanData(e){
pages/qitaruku_v2/form.vue
@@ -457,19 +457,21 @@
            },
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if (this.hform.HBarCode == '*') {
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        } else {
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.hform.HBarCode == '*') {
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    } else {
                        this.hform.HBarCode = ret.resp_result
                    }
                });
                    this.getCode(this.hform.HBarCode)
                })
            },
            showBillList() {
                this.$refs.billList.showPopup()
pages/qitarukujiaoyan/form.vue
@@ -253,36 +253,40 @@
        methods: {
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBarCode = res.result
                        // this.GetMeesageByBillNo(this.hform.HBarCode)
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBarCode = ret.resp_result
                    // this.GetMeesageByBillNo(this.hform.HBarCode)
                    this.getCode(this.hform.HBarCode)
                })
            },
            toScanBillCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBillNo = res.result
                        this.GetMeesageByBillNo(this.hform.HBillNo)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBillNo = ret.resp_result
                    this.GetMeesageByBillNo(this.hform.HBillNo)
                })
            },
            //扫描单据号条码
            GetMeesageByBillNo(e) {
pages/shebeidangan/form.vue
@@ -364,36 +364,38 @@
        methods: {
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        this.hform.HBarCode = res.result
                        // uni.request({
                        //     url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                        //     data: { HBarCode: res.result },
                        //     success: (res) => {
                        //         console.log(res.data);
                        //         var data = res.data.list[0][0]
                        //         if(res.data.count == 1){
                        //             this.hform.HEquipID = data.hmainid
                        //             this.hform.HEquipName = data.设备名称
                        //         }
                        //         uni.showToast({
                        //             title:res.data.Message,
                        //             icon:'none'
                        //         })
                        //     },
                        //     fail: (res) => {
                        //         console.log(res);
                        //         uni.showToast({
                        //             title:'接口请求失败',
                        //             icon:'none'
                        //         })
                        //     },
                        // });
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    this.hform.HBarCode = ret.resp_result
                    // uni.request({
                    //     url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                    //     data: { HBarCode: ret.resp_result },
                    //     success: (res) => {
                    //         console.log(res.data);
                    //         var data = res.data.list[0][0]
                    //         if(res.data.count == 1){
                    //             this.hform.HEquipID = data.hmainid
                    //             this.hform.HEquipName = data.设备名称
                    //         }
                    //         uni.showToast({
                    //             title:res.data.Message,
                    //             icon:'none'
                    //         })
                    //     },
                    //     fail: (res) => {
                    //         console.log(res);
                    //         uni.showToast({
                    //             title:'接口请求失败',
                    //             icon:'none'
                    //         })
                    //     },
                    // });
                })
            },
            // upCode(){
            //     uni.request({
pages/shebeiguanli/form.vue
@@ -367,36 +367,38 @@
        methods: {
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        this.hform.HBarCode = res.result
                        // uni.request({
                        //     url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                        //     data: { HBarCode: res.result },
                        //     success: (res) => {
                        //         console.log(res.data);
                        //         var data = res.data.list[0][0]
                        //         if(res.data.count == 1){
                        //             this.hform.HEquipID = data.hmainid
                        //             this.hform.HEquipName = data.设备名称
                        //         }
                        //         uni.showToast({
                        //             title:res.data.Message,
                        //             icon:'none'
                        //         })
                        //     },
                        //     fail: (res) => {
                        //         console.log(res);
                        //         uni.showToast({
                        //             title:'接口请求失败',
                        //             icon:'none'
                        //         })
                        //     },
                        // });
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    this.hform.HBarCode = ret.resp_result
                    // uni.request({
                    //     url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                    //     data: { HBarCode: ret.resp_result },
                    //     success: (res) => {
                    //         console.log(res.data);
                    //         var data = res.data.list[0][0]
                    //         if(res.data.count == 1){
                    //             this.hform.HEquipID = data.hmainid
                    //             this.hform.HEquipName = data.设备名称
                    //         }
                    //         uni.showToast({
                    //             title:res.data.Message,
                    //             icon:'none'
                    //         })
                    //     },
                    //     fail: (res) => {
                    //         console.log(res);
                    //         uni.showToast({
                    //             title:'接口请求失败',
                    //             icon:'none'
                    //         })
                    //     },
                    // });
                })
            },
            // upCode(){
            //     uni.request({
pages/shebeiweixiu/form.vue
@@ -219,35 +219,37 @@
        methods: {
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        uni.request({
                            url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                            data: { HBarCode: res.result },
                            success: (res) => {
                                console.log(res.data);
                                if(res.data.count == 1){
                                    var data = res.data.list[0][0]
                                    this.hform.HEquipID = data.hmainid
                                    this.hform.HEquipName = data.设备名称
                                }
                                uni.showToast({
                                    title:res.data.Message,
                                    icon:'none'
                                })
                            },
                            fail: (res) => {
                                console.log(res);
                                uni.showToast({
                                    title:'接口请求失败',
                                    icon:'none'
                                })
                            },
                        });
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    uni.request({
                        url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                        data: { HBarCode: ret.resp_result },
                        success: (res) => {
                            console.log(res.data);
                            if(res.data.count == 1){
                                var data = res.data.list[0][0]
                                this.hform.HEquipID = data.hmainid
                                this.hform.HEquipName = data.设备名称
                            }
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        },
                        fail: (res) => {
                            console.log(res);
                            uni.showToast({
                                title:'接口请求失败',
                                icon:'none'
                            })
                        },
                    });
                })
            },
            //维修开始选择
            HBeginDateChange(e){
pages/shengchanbuliao/form.vue
@@ -406,19 +406,21 @@
            },
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if (this.hform.HBarCode == '*') {
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        } else {
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.hform.HBarCode == '*') {
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    } else {
                        this.hform.HBarCode = ret.resp_result
                    }
                });
                    this.getCode(this.hform.HBarCode)
                })
            },
            showBillList() {
                this.$refs.billList.showPopup()
pages/shengchanbuliaojiaoyan/form.vue
@@ -266,35 +266,39 @@
        methods: {
            //条码号扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBarCode = res.result
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBarCode = ret.resp_result
                    this.getCode(this.hform.HBarCode)
                })
            },
            //扫描单据号条码
            toScanBillCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBillNo = res.result
                        this.GetMeesageByBillNo(this.hform.HBillNo)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBillNo = ret.resp_result
                    this.GetMeesageByBillNo(this.hform.HBillNo)
                })
            },
            //扫描单据号条码
            GetMeesageByBillNo(e) {
pages/shengchandiaobo/form.vue
@@ -250,14 +250,16 @@
            },
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        this.hform.HBillNo = res.result
                        this.GetMeesageByBillNo(this.hform.HBillNo)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    this.hform.HBillNo = ret.resp_result
                    this.GetMeesageByBillNo(this.hform.HBillNo)
                })
            },
            //扫描单据号条码
            GetMeesageByBillNo(e){
pages/shengchanlingliao/form.vue
@@ -236,19 +236,21 @@
            },
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBillNo = res.result
                        this.GetMeesageByBillNo(res.result)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBillNo = ret.resp_result
                    this.GetMeesageByBillNo(ret.resp_result)
                })
            },
            //扫描单据号条码
            GetMeesageByBillNo(e){
pages/shengchanlingliaoshengdan/form.vue
@@ -409,19 +409,21 @@
            },
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if (this.hform.HBarCode == '*') {
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        } else {
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.hform.HBarCode == '*') {
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    } else {
                        this.hform.HBarCode = ret.resp_result
                    }
                });
                    this.getCode(this.hform.HBarCode)
                })
            },
            showBillList() {
                this.$refs.billList.showPopup()
pages/shengchanruku/form.vue
@@ -221,14 +221,16 @@
            },
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        this.hform.HBillNo = res.result
                        this.GetMeesageByBillNo(this.hform.HBillNo)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    this.hform.HBillNo = ret.resp_result
                    this.GetMeesageByBillNo(this.hform.HBillNo)
                })
            },
            //扫描单据号条码
            GetMeesageByBillNo(e){
pages/shengchanrukushengdan/form.vue
@@ -407,19 +407,21 @@
            },
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if (this.hform.HBarCode == '*') {
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        } else {
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.hform.HBarCode == '*') {
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    } else {
                        this.hform.HBarCode = ret.resp_result
                    }
                });
                    this.getCode(this.hform.HBarCode)
                })
            },
            showBillList() {
                this.$refs.billList.showPopup()
pages/shouliaotongzhi/table.vue
@@ -83,15 +83,16 @@
            },
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        this.HBarCode = res.result
                        this.getCode(this.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    this.HBarCode = ret.resp_result
                    this.getCode(this.HBarCode)
                })
            },
            //扫条码处理
            getCode(HBarCode){
pages/tiaomachaima/tiaomachaima.vue
@@ -314,39 +314,42 @@
            },
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        if (this.CommonUtils.isEmpty(res.result) === false) {
                            console.log('条码内容:' + res.result);
                            this.barCodeInfoMeta.barCodeNo = res.result
                            this.searchbarCodeInfo()
                            // this.doRequest(
                            //     "/Gy_SplitBarCode/Info", {
                            //         HBarCodeNo: res.result,
                            //         HSplitBarNum: 1
                            //     },
                            //     function(res) {
                            //         console.log(res)
                            //         this.barCodeSplitInfo = []
                            //         let res1 = res.data
                            //         let {
                            //             data,
                            //             count
                            //         } = res1
                            //         if (count > 0) {
                            //             console.log(data[0])
                            //             this.barCodeInfo = data[0]
                            //         }
                            //     },
                            //     function(err) {
                            //         console.error(err)
                            //     }
                            // )
                        }
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.CommonUtils.isEmpty(ret.resp_result) === false) {
                        console.log('条码内容:' + ret.resp_result);
                        this.barCodeInfoMeta.barCodeNo = ret.resp_result
                        this.searchbarCodeInfo()
                        // this.doRequest(
                        //     "/Gy_SplitBarCode/Info", {
                        //         HBarCodeNo: ret.resp_result,
                        //         HSplitBarNum: 1
                        //     },
                        //     function(res) {
                        //         console.log(res)
                        //         this.barCodeSplitInfo = []
                        //         let res1 = res.data
                        //         let {
                        //             data,
                        //             count
                        //         } = res1
                        //         if (count > 0) {
                        //             console.log(data[0])
                        //             this.barCodeInfo = data[0]
                        //         }
                        //     },
                        //     function(err) {
                        //         console.error(err)
                        //     }
                        // )
                    }
                });
                })
            }
        },
        onLoad() {
pages/tiaomadaying/tiaomadaying.vue
@@ -363,49 +363,52 @@
                }
            },
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        if (CommonUtils.isEmpty(res.result) === false) {
                            console.log('条码内容:' + res.result);
                            this.lailiaoInfo.barCodeNo = res.result;
                            if (res.result.includes("@") === false) {
                                return uni.showToast({
                                    icon: 'none',
                                    title: '条码格式错误,请重新扫描...'
                                })
                            }
                            let barCodeInfo = res.result.split("@")
                            let [PurchaseBillNo, Row] = barCodeInfo
                            this.lailiaoInfo.HBillNo = PurchaseBillNo,
                                this.lailiaoInfo.HBillLineNo = Row
                            console.log({
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (CommonUtils.isEmpty(ret.resp_result) === false) {
                        console.log('条码内容:' + ret.resp_result);
                        this.lailiaoInfo.barCodeNo = ret.resp_result;
                        if (ret.resp_result.includes("@") === false) {
                            return uni.showToast({
                                icon: 'none',
                                title: '条码格式错误,请重新扫描...'
                            })
                        }
                        let barCodeInfo = ret.resp_result.split("@")
                        let [PurchaseBillNo, Row] = barCodeInfo
                        this.lailiaoInfo.HBillNo = PurchaseBillNo,
                            this.lailiaoInfo.HBillLineNo = Row
                        console.log({
                            sWhere: ` and 单据号 = '${PurchaseBillNo}'`,
                            user: this.userInfo.Czymc,
                        })
                        CommonUtils.doRequest(
                            "/Cg_POOrderBill/list", {
                                sWhere: ` and 单据号 = '${PurchaseBillNo}'`,
                                user: this.userInfo.Czymc,
                            })
                            CommonUtils.doRequest(
                                "/Cg_POOrderBill/list", {
                                    sWhere: ` and 单据号 = '${PurchaseBillNo}'`,
                                    user: this.userInfo.Czymc,
                                },
                                (res) => {
                                    console.log('采购订单: ', res)
                                    let {
                                        data,
                                        count
                                    } = res.data
                                    if (count > 0) {
                                        this.setLailiaoInfo(data, Row)
                                    }
                                },
                                (error) => {
                            },
                            (res) => {
                                console.log('采购订单: ', res)
                                let {
                                    data,
                                    count
                                } = res.data
                                if (count > 0) {
                                    this.setLailiaoInfo(data, Row)
                                }
                            )
                        }
                            },
                            (error) => {
                            }
                        )
                    }
                });
                })
            },
            GenereateBarCode() {
                let sMain = []
pages/weiwaibuliaojiaoyan/form.vue
@@ -247,36 +247,40 @@
        methods: {
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBarCode = res.result
                        // this.GetMeesageByBillNo(this.hform.HBarCode)
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBarCode = ret.resp_result
                    // this.GetMeesageByBillNo(this.hform.HBarCode)
                    this.getCode(this.hform.HBarCode)
                })
            },
            toScanBillCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBillNo = res.result
                        this.GetMeesageByBillNo(this.hform.HBillNo)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBillNo = ret.resp_result
                    this.GetMeesageByBillNo(this.hform.HBillNo)
                })
            },
            //扫描单据号条码
            GetMeesageByBillNo(e) {
pages/weiwaigxIn/form.vue
@@ -398,40 +398,81 @@
            this.getHProcList()
            this.getHSupList()
            this.getHEmpList()
            this.getDefValByUser()
        },
        methods: {
            //通过登录用户获取默认值
            getDefValByUser(){
                uni.request({
                    url: this.serverUrl + '/Cj_StationInBill/GetDefValByUser',
                    type: "GET",
                    async: false,
                    data: { "Czybm": this.userInfo.Czybm, "Czymc":  this.userInfo.Czymc },
                    success: (res) => {
                        console.log(res.data)
                        if(res.data.count == 1){
                            var data = res.data.data[0]
                            this.hform.HGroupID = data.HGroupID
                            this.hform.HGroupName = data.生产班组名称
                            this.hform.HEmpID = data.HEmpID
                            this.hform.HEmpName = data.操作员名称
                            this.hform.HEmpNumber = data.操作员代码
                            this.hform.HSourceID = data.HSourceID
                            this.hform.HSourceName = data.生产资源名称
                            this.hform.HCenterID = data.HWorkCenterID
                            this.hform.HCenterName = data.工作中心名称
                            this.hform.HEmpName_second = data.操作员名称
                        }else{
                            uni.showToast({
                                title:'获取生产班组信息失败',
                                icon:'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'获取生产班组信息失败',
                            icon:'none'
                        })
                    },
                });
            },
            //扫码
            toScanCode(){
                // this.hform.HBarCode = 'OP000021_01'
                // this.getHBarCodeData('OP000021_01')
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        var str = res.result
                        if(str.includes('@')) {
                          const parts = str.split('@');
                          this.hform.HBarCode = parts[0]
                          this.hform.HProcNo = parts[1]
                          this.getHBarCodeData(parts[0])
                          // this.getHProcNoData(parts[0],parts[1])
                        }else{
                            this.hform.HBarCode = res.result
                            this.getHBarCodeData(res.result)
                        }
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    var str = ret.resp_result
                    if(str.includes('@')) {
                      const parts = str.split('@');
                      this.hform.HBarCode = parts[0]
                      this.hform.HProcNo = parts[1]
                      this.getHBarCodeData(parts[0],1)
                      // this.getHProcNoData(parts[0],parts[1])
                    }else{
                        this.hform.HBarCode = ret.resp_result
                        this.getHBarCodeData(ret.resp_result)
                    }
                })
            },
            //扫流水号
            toScanProcNo(){
                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 = ret.resp_result
                    this.getHProcNoData(this.hform.HBarCode,ret.resp_result)
                })
            },
            //日期
            HDateChange(e){
@@ -632,7 +673,7 @@
                        if(res.data.code == 1){
                            var data = res.data.data[0]
                            this.getHBarCodeData(data.HBarCode)
                            // this.getHProcNoData(data.HBarCode,data.HProcNo)
                            this.getHProcNoData(data.HBarCode,data.HProcNo)
                            
                            this.hform.HInterID= data.HInterID
                            this.hform.HBillNo= data.HBillNo
@@ -694,7 +735,7 @@
                    },
                });
            },
            getHBarCodeData(HBarCode){
            getHBarCodeData(HBarCode,e){
                uni.request({
                    url: this.serverUrl + '/Cj_StationEntrustInBill/txtHBarCode_KeyDown', 
                    data: {HBarCode: HBarCode},
@@ -729,6 +770,10 @@
                            this.hform.HDept= this.userInfo.HDept
                            this.hform.HProcExchHinteID= data.hmainid
                            this.hform.HPRDOrg= data.组织
                            if(e){
                                this.getHProcNoData(this.hform.HBarCode,this.hform.HProcNo)
                            }
                        }else{
                            uni.showToast({
                                title:res.data.Message,
@@ -875,7 +920,12 @@
                                        }
                                    });
                                }
                            }
                            }else{
                                uni.showToast({
                                    title:res.data.Message,
                                    icon:'none'
                                })
                            }
                        },
                        fail: (res) => {
                            console.log(res);
pages/weiwaigxOut/firstCheck.vue
@@ -364,36 +364,38 @@
        methods: {
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        this.hform.HBarCode = res.result
                        // uni.request({
                        //     url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                        //     data: { HBarCode: res.result },
                        //     success: (res) => {
                        //         console.log(res.data);
                        //         var data = res.data.list[0][0]
                        //         if(res.data.count == 1){
                        //             this.hform.HEquipID = data.hmainid
                        //             this.hform.HEquipName = data.设备名称
                        //         }
                        //         uni.showToast({
                        //             title:res.data.Message,
                        //             icon:'none'
                        //         })
                        //     },
                        //     fail: (res) => {
                        //         console.log(res);
                        //         uni.showToast({
                        //             title:'接口请求失败',
                        //             icon:'none'
                        //         })
                        //     },
                        // });
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    this.hform.HBarCode = ret.resp_result
                    // uni.request({
                    //     url: this.serverUrl + '/Gy_EquipFileMain/Gy_MouldFileBillBarCodeInfo',
                    //     data: { HBarCode: ret.resp_result },
                    //     success: (res) => {
                    //         console.log(res.data);
                    //         var data = res.data.list[0][0]
                    //         if(res.data.count == 1){
                    //             this.hform.HEquipID = data.hmainid
                    //             this.hform.HEquipName = data.设备名称
                    //         }
                    //         uni.showToast({
                    //             title:res.data.Message,
                    //             icon:'none'
                    //         })
                    //     },
                    //     fail: (res) => {
                    //         console.log(res);
                    //         uni.showToast({
                    //             title:'接口请求失败',
                    //             icon:'none'
                    //         })
                    //     },
                    // });
                })
            },
            // upCode(){
            //     uni.request({
pages/weiwaigxOut/form.vue
@@ -359,10 +359,10 @@
                    HBillNo:'',
                    HBarCode:'',
                    HQty:'',
                    HPieceQty:'',
                    HWasterQty:'',
                    HPieceQty:0,
                    HWasterQty:0,
                    HEmpName:'',
                    HEmpID:'',
                    HEmpID:0,
                    HInnerBillNo:'',
                    HWWWorkOrderBillNo:'',
                    HRemark:'',
@@ -372,7 +372,7 @@
                    HProcExchBillNo:'',
                    HMaterNumber:'',
                    HMaterName:'',
                    HMaterID:'',
                    HMaterID:0,
                    HMaterModel:'',
                    HSupName:'',
                    HSupID:'',
@@ -447,31 +447,81 @@
            this.getHProcList()
            this.getHSupList()
            this.getHEmpList()
            this.getDefValByUser()
        },
        methods: {
            //通过登录用户获取默认值
            getDefValByUser(){
                uni.request({
                    url: this.serverUrl + '/Cj_StationInBill/GetDefValByUser',
                    type: "GET",
                    async: false,
                    data: { "Czybm": this.userInfo.Czybm, "Czymc":  this.userInfo.Czymc },
                    success: (res) => {
                        console.log(res.data)
                        if(res.data.count == 1){
                            var data = res.data.data[0]
                            this.hform.HGroupID = data.HGroupID
                            this.hform.HGroupName = data.生产班组名称
                            this.hform.HEmpID = data.HEmpID
                            this.hform.HEmpName = data.操作员名称
                            this.hform.HEmpNumber = data.操作员代码
                            this.hform.HSourceID = data.HSourceID
                            this.hform.HSourceName = data.生产资源名称
                            this.hform.HCenterID = data.HWorkCenterID
                            this.hform.HCenterName = data.工作中心名称
                            this.hform.HEmpName_second = data.操作员名称
                        }else{
                            uni.showToast({
                                title:'获取生产班组信息失败',
                                icon:'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'获取生产班组信息失败',
                            icon:'none'
                        })
                    },
                });
            },
            //扫码
            toScanCode(){
                this.hform.HBarCode = 'OP000021_01'
                this.getHBarCodeData('OP000021_01')
                // uni.scanCode({
                //     onlyFromCamera: true,
                //     success: (res) => {
                //         console.log('条码内容:' + res.result);
                //         this.hform.HBarCode = res.result
                //         this.getHBarCodeData(res.result)
                //     }
                // });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    var str = ret.resp_result
                    if(str.includes('@')) {
                      const parts = str.split('@');
                      this.hform.HBarCode = parts[0]
                      this.hform.HProcNo = parts[1]
                      this.getHBarCodeData(parts[0],1)
                      // this.getHProcNoData(parts[0],parts[1])
                    }else{
                        this.hform.HBarCode = ret.resp_result
                        this.getHBarCodeData(ret.resp_result)
                    }
                })
            },
            //扫流水号
            toScanProcNo(){
                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 = ret.resp_result
                        this.getHProcNoData(this.hform.HBarCode,ret.resp_result)
                })
            },
            //日期
            HDateChange(e){
@@ -771,7 +821,7 @@
                    },
                });
            },
            getHBarCodeData(HBarCode){
            getHBarCodeData(HBarCode,e){
                uni.request({
                    url: this.serverUrl + '/Cj_StationEntrustInBill/txtHBarCode_KeyDown', 
                    data: {HBarCode: HBarCode},
@@ -807,6 +857,9 @@
                            this.hform.HProcExchHinteID= data.hmainid
                            this.hform.HPRDOrg= data.组织
                            
                            if(e){
                                this.getHProcNoData(this.hform.HBarCode,this.hform.HProcNo)
                            }
                        }else{
                            uni.showToast({
                                title:res.data.Message,
@@ -947,7 +1000,12 @@
                                        }
                                    });
                                }
                            }
                            }else{
                                uni.showToast({
                                    title:res.data.Message,
                                    icon:'none'
                                })
                            }
                        },
                        fail: (res) => {
                            console.log(res);
pages/weiwailingliao/form.vue
@@ -406,19 +406,21 @@
            },
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if (this.hform.HBarCode == '*') {
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        } else {
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.hform.HBarCode == '*') {
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    } else {
                        this.hform.HBarCode = ret.resp_result
                    }
                });
                    this.getCode(this.hform.HBarCode)
                })
            },
            showBillList() {
                this.$refs.billList.showPopup()
pages/weiwailingliaojiaoyan/form.vue
@@ -254,36 +254,40 @@
        methods: {
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBarCode = res.result
                        // this.GetMeesageByBillNo(this.hform.HBarCode)
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBarCode = ret.resp_result
                    // this.GetMeesageByBillNo(this.hform.HBarCode)
                    this.getCode(this.hform.HBarCode)
                })
            },
            toScanBillCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBillNo = res.result
                        this.GetMeesageByBillNo(this.hform.HBillNo)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBillNo = ret.resp_result
                    this.GetMeesageByBillNo(this.hform.HBillNo)
                })
            },
            //扫描单据号条码
            GetMeesageByBillNo(e) {
pages/wuliaosaoma/wuliaosaoma.vue
@@ -54,50 +54,53 @@
        },
        methods: {
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        if (this.CommonUtils.isEmpty(res.result) === false) {
                            console.log('条码内容:' + res.result);
                            this.HBillNo = res.result
                            CommonUtils.doRequest(
                                "/Cg_POInStockBill/page", {
                                    sWhere: ` and 单据号='${res.result}'`,
                                    user: this.userInfo.HEmpName,
                                    page: this.pageInfo.page,
                                    size: this.pageInfo.size
                                },
                                function(res) {
                                    console.log(res)
                                    let res1 = res.data
                                    let {
                                        count,
                                        data
                                    } = res1;
                                    if (count > 0) {
                                        console.log(data)
                                        // this.HMaterList = data.reduce((acc, obj) => {
                                        //     acc.push({
                                        //         "HMaterID": obj['HMaterID'],
                                        //         "HMaterNo": obj['物料代码'],
                                        //         "HMaterName": obj['物料名称'],
                                        //         "HMaterType": obj['规格型号'],
                                        //         "HQty": obj['数量'],
                                        //         "HBarCode": "",
                                        //         "HBillNo": obj['单据号']
                                        //     })
                                        // }, [])
                                    }
                                },
                                function(err) {
                                    console.error(err)
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.CommonUtils.isEmpty(ret.resp_result) === false) {
                        console.log('条码内容:' + ret.resp_result);
                        this.HBillNo = ret.resp_result
                        CommonUtils.doRequest(
                            "/Cg_POInStockBill/page", {
                                sWhere: ` and 单据号='${ret.resp_result}'`,
                                user: this.userInfo.HEmpName,
                                page: this.pageInfo.page,
                                size: this.pageInfo.size
                            },
                            function(res) {
                                console.log(res)
                                let res1 = res.data
                                let {
                                    count,
                                    data
                                } = res1;
                                if (count > 0) {
                                    console.log(data)
                                    // this.HMaterList = data.reduce((acc, obj) => {
                                    //     acc.push({
                                    //         "HMaterID": obj['HMaterID'],
                                    //         "HMaterNo": obj['物料代码'],
                                    //         "HMaterName": obj['物料名称'],
                                    //         "HMaterType": obj['规格型号'],
                                    //         "HQty": obj['数量'],
                                    //         "HBarCode": "",
                                    //         "HBillNo": obj['单据号']
                                    //     })
                                    // }, [])
                                }
                            )
                        }
                            },
                            function(err) {
                                console.error(err)
                            }
                        )
                    }
                });
                })
            },
        },
        onload() {
pages/xiaoshouchuku/form.vue
@@ -365,19 +365,21 @@
            },
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if(this.hform.HBarCode == '*'){
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        }else{
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if(this.hform.HBarCode == '*'){
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    }else{
                        this.hform.HBarCode = ret.resp_result
                    }
                    this.getCode(this.hform.HBarCode)
                })
            },
            //扫其他(仓库,仓位)
            // toScanData(e){
pages/xiaoshouchukujiaoyan/form.vue
@@ -255,36 +255,40 @@
        methods: {
            //扫码
            toScanCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     this.hform.HBarCode = res.result
                        // }
                        this.hform.HBarCode = res.result
                        // this.GetMeesageByBillNo(this.hform.HBarCode)
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                    this.hform.HBarCode = ret.resp_result
                    // this.GetMeesageByBillNo(this.hform.HBarCode)
                    this.getCode(this.hform.HBarCode)
                })
            },
            toScanBillCode() {
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        // if(this.hform.HBarCode == '*'){
                        //     this.hform.HBarCode = this.hform.HBarCode + res.result
                        // }else{
                        //     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)
                    // if(this.hform.HBarCode == '*'){
                    //     this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    // }else{
                    //     this.hform.HBarCode = ret.resp_result
                    // }
                        this.hform.HBillNo = res.result
                        this.GetMeesageByBillNo(this.hform.HBillNo)
                    }
                });
                    this.hform.HBillNo = ret.resp_result
                    this.GetMeesageByBillNo(this.hform.HBillNo)
                })
            },
            //扫描单据号条码
            GetMeesageByBillNo(e) {
pages/xiaoshoutuihuo/form.vue
@@ -325,29 +325,33 @@
            },
            //扫码
            toScanCode(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        if(this.hform.HBarCode == '*'){
                            this.hform.HBarCode = this.hform.HBarCode + res.result
                        }else{
                            this.hform.HBarCode = res.result
                        }
                        this.getCode(this.hform.HBarCode)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if(this.hform.HBarCode == '*'){
                        this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
                    }else{
                        this.hform.HBarCode = ret.resp_result
                    }
                    this.getCode(this.hform.HBarCode)
                })
            },
            toScanCodeA(){
                uni.scanCode({
                    onlyFromCamera: true,
                    success: (res) => {
                        console.log('条码内容:' + res.result);
                        this.hform.HSourceBillNo = res.result
                        this.getHBarCodeData(res.result)
                    }
                });
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    this.hform.HSourceBillNo = ret.resp_result
                    this.getHBarCodeData(ret.resp_result)
                })
            },
            //日期
            HDateChange(e){