This commit is contained in:
parent
b2f0a0cfef
commit
0ab037a9db
File diff suppressed because it is too large
Load Diff
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue