OCR查询问题处理

This commit is contained in:
bb_pan 2025-08-13 19:27:07 +08:00
parent 19938ecd15
commit b9cf0abe54
4 changed files with 11 additions and 9 deletions

View File

@ -44,7 +44,7 @@
<div <div
style="width: 50%; display: flex; justify-content: end; align-items: center" style="width: 50%; display: flex; justify-content: end; align-items: center"
> >
<span style="color: #ef3e3e; margin-right: 20px; font-size: 26px"> <span style="color: #ef3e3e; margin-right: 20px; font-size: 20px">
{{ tagInfo.inspectStatus }} {{ tagInfo.inspectStatus }}
</span> </span>
</div> </div>
@ -109,8 +109,8 @@
canvas-id="canvas" canvas-id="canvas"
style=" style="
position: absolute; position: absolute;
bottom: 15px; bottom: 28px;
right: 10px; right: 3px;
width: 200px; width: 200px;
height: 200px; height: 200px;
z-index: 10; z-index: 10;
@ -175,7 +175,7 @@
<div style="margin-top: 0px; display: flex; align-items: center"> <div style="margin-top: 0px; display: flex; align-items: center">
<span>检验结果</span> <span>检验结果</span>
<span style="margin-left: 40px; color: #ef3e3e; font-size: 22px"> <span style="margin-left: 40px; color: #ef3e3e; font-size: 20px">
{{ tagInfo.inspectStatus }} {{ tagInfo.inspectStatus }}
</span> </span>
</div> </div>
@ -201,8 +201,8 @@
canvas-id="canvasTwo" canvas-id="canvasTwo"
style=" style="
position: absolute; position: absolute;
bottom: 15px; bottom: 28px;
right: 10px; right: 3px;
width: 200px; width: 200px;
height: 200px; height: 200px;
z-index: 10; z-index: 10;

View File

@ -141,7 +141,7 @@
></canvas> ></canvas>
<div style="width: 100%;"> <div style="width: 100%;">
<div v-if="isOverToday && codeData.nextCheckTime">该工器具已临近下次检验时间请及时退还至机具物流分公司</div> <div v-if="isOverToday && codeData.nextCheckTime">该工器具已临近下次检验时间请及时退还至机具物流分公司</div>
<ElectronicSeal v-else :maCode="codeData?.maCode" :maId="codeData?.maId" :devType="2" /> <ElectronicSeal v-else v-show="codeData.maId" :maCode="codeData?.maCode" :maId="codeData?.maId" :devType="2" />
</div> </div>
</view> </view>
</template> </template>
@ -331,6 +331,7 @@ export default {
// - // -
async openCamera() { async openCamera() {
console.log('尝试打开相机...'); console.log('尝试打开相机...');
this.codeData = {}
if (!this.cameraReady) { if (!this.cameraReady) {
// //
this.checkCameraPlugin(); this.checkCameraPlugin();

View File

@ -141,7 +141,7 @@
></canvas> ></canvas>
<div style="width: 100%;"> <div style="width: 100%;">
<div v-if="isOverToday && codeData.nextCheckTime">该工器具已临近下次检验时间请及时退还至机具物流分公司</div> <div v-if="isOverToday && codeData.nextCheckTime">该工器具已临近下次检验时间请及时退还至机具物流分公司</div>
<ElectronicSeal v-else :maCode="codeData?.maCode" :maId="codeData?.maId" :devType="codeData.devType" /> <ElectronicSeal v-else v-show="codeData.maId" :maCode="codeData?.maCode" :maId="codeData?.maId" :devType="codeData.devType" />
</div> </div>
</view> </view>
</template> </template>
@ -331,6 +331,7 @@ export default {
// - // -
async openCamera() { async openCamera() {
this.codeData = {}
console.log('尝试打开相机...'); console.log('尝试打开相机...');
if (!this.cameraReady) { if (!this.cameraReady) {
// //

View File

@ -76,7 +76,7 @@
</view> </view>
<div v-if="isOverToday && codeData.nextCheckTime">该工器具已临近下次检验时间请及时退还至机具物流分公司</div> <div v-if="isOverToday && codeData.nextCheckTime">该工器具已临近下次检验时间请及时退还至机具物流分公司</div>
<ElectronicSeal v-else :maCode="codeData?.maCode" :maId="codeData?.maId" :devType="2" /> <ElectronicSeal v-else v-show="codeData.maId" :maCode="codeData?.maCode" :maId="codeData?.maId" :devType="2" />
</scroll-view> </scroll-view>
</view> </view>
</template> </template>