生产领料单校验 新增模块 添加 toScanCode2 用作区分扫描单据
| | |
| | | "name" : "智云LMES", |
| | | "appid" : "__UNI__B002F49", |
| | | "description" : "", |
| | | "versionName" : "1.0.74", |
| | | "versionCode" : 174, |
| | | "versionName" : "1.0.77", |
| | | "versionCode" : 177, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | |
| | | </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> |
| | |
| | | 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: '提示', |