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>
|
||||||
</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 }}
|
{{ message }}
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -588,10 +590,10 @@ export default {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log('识别失败!' + resData.data.msg)
|
console.log('识别失败!' + resData.data.msg)
|
||||||
this.$refs.toast.show('识别失败!', 'bottom')
|
this.show('识别失败!', 'bottom')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$refs.toast.show('识别失败!', 'bottom')
|
this.show('识别失败!', 'bottom')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
|
|
@ -686,10 +688,10 @@ export default {
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$refs.toast.show('识别失败!', 'bottom')
|
this.show('识别失败!', 'bottom')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$refs.toast.show('识别失败!', 'bottom')
|
this.show('识别失败!', 'bottom')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
fail: (err) => {
|
||||||
|
|
@ -701,7 +703,7 @@ export default {
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('相册图片处理或OCR识别失败:', error);
|
console.error('相册图片处理或OCR识别失败:', error);
|
||||||
this.$refs.toast.show('识别失败!', 'bottom')
|
this.show('识别失败!', 'bottom')
|
||||||
} finally {
|
} finally {
|
||||||
this.isProcessing = false;
|
this.isProcessing = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,11 +64,11 @@ export const getMaModeData = (parentId) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export const updateCheckTime = (maCode) => {
|
export const updateCheckTime = (data) => {
|
||||||
return http({
|
return http({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: '/material/wsMaInfo/updateCheckTime',
|
url: '/material/wsMaInfo/updateCheckTime',
|
||||||
data: {maCode}
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue