This commit is contained in:
hayu 2025-08-22 16:58:52 +08:00
parent b2f0a0cfef
commit 0ab037a9db
3 changed files with 1045 additions and 259 deletions

File diff suppressed because it is too large Load Diff

View File

@ -143,7 +143,9 @@
</view>
</view>
</view>
<view class="custom-toast" :class="{'show': isShow, 'top': position === 'top', 'bottom': position === 'bottom'}">
<view class="custom-toast"
:class="{'show': isShow, 'top': position === 'top', 'bottom': position === 'bottom'}"
ref="toast">
{{ message }}
</view>
</template>
@ -588,10 +590,10 @@ export default {
});
} else {
console.log('识别失败!' + resData.data.msg)
this.$refs.toast.show('识别失败!', 'bottom')
this.show('识别失败!', 'bottom')
}
} else {
this.$refs.toast.show('识别失败!', 'bottom')
this.show('识别失败!', 'bottom')
}
},
fail: (err) => {
@ -686,10 +688,10 @@ export default {
icon: 'success'
});
} else {
this.$refs.toast.show('识别失败!', 'bottom')
this.show('识别失败!', 'bottom')
}
} else {
this.$refs.toast.show('识别失败!', 'bottom')
this.show('识别失败!', 'bottom')
}
},
fail: (err) => {
@ -701,7 +703,7 @@ export default {
});
} catch (error) {
console.error('相册图片处理或OCR识别失败:', error);
this.$refs.toast.show('识别失败!', 'bottom')
this.show('识别失败!', 'bottom')
} finally {
this.isProcessing = false;
}

View File

@ -64,11 +64,11 @@ export const getMaModeData = (parentId) => {
}
export const updateCheckTime = (maCode) => {
export const updateCheckTime = (data) => {
return http({
method: 'POST',
url: '/material/wsMaInfo/updateCheckTime',
data: {maCode}
data: data
})
}