chenhaozhe
2025-09-15 835589fa6d344cb9b86fc7f0c23691a1a3fb35ad
生产领料单校验 新增模块 添加 toScanCode2 用作区分扫描单据
2个文件已修改
23 ■■■■ 已修改文件
manifest.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/shengchanlingliao/form.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json
@@ -2,8 +2,8 @@
    "name" : "智云LMES",
    "appid" : "__UNI__B002F49",
    "description" : "",
    "versionName" : "1.0.74",
    "versionCode" : 174,
    "versionName" : "1.0.77",
    "versionCode" : 177,
    "transformPx" : false,
    /* 5+App特有相关 */
    "app-plus" : {
pages/shengchanlingliao/form.vue
@@ -8,7 +8,7 @@
                </view>
                <uni-icons type="scan"
                    style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
                    size="20" @click="toScanCode"></uni-icons>
                    size="20" @click="toScanCode2"></uni-icons>
            </view>
            <view class="form-item">
                <view class="title">数量:</view>
@@ -255,6 +255,23 @@
            this.getHBaseList()
        },
        methods: {
            toScanCode2() {
                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.getCode(ret.resp_result)
                })
            },
            cmdDelete(item) {
                uni.showModal({
                    title: '提示',