Commit 84b48046 authored by zhengke's avatar zhengke

增加图片识别功能

parent 1d360031
...@@ -606,7 +606,9 @@ export default { ...@@ -606,7 +606,9 @@ export default {
timer:'', timer:'',
hideFlashMan:false, hideFlashMan:false,
imgList:[], imgList:[],
resultCode:null resultCode:null,
templateType: 1,
setCode:'',
} }
}, },
methods:{ methods:{
...@@ -785,8 +787,38 @@ export default { ...@@ -785,8 +787,38 @@ export default {
Type:fileTypeNumber, Type:fileTypeNumber,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath, Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
}) })
this.$message.success(this.$t('tips.scchenggong')) this.Success(this.$t('tips.scchenggong'))
if(this.bankType==13&&x.data.Ocr.length>0){
var OcrStr = '';
x.data.Ocr.forEach(x=>{
OcrStr+=x.words
})
var wechat=[];
var zhifu=[];
wechat = OcrStr.match(/(?<=商户单号)(\d*)/);
zhifu = OcrStr.match(/(?<=商家可扫码退款或查询交易)(\d*)/);
if(wechat==null&&zhifu==null){
return;
}
if(zhifu==null&&wechat.length>0){
this.setCode = wechat[wechat.length-1]
}else if(wechat==null&&zhifu.length>0){
this.setCode = zhifu[zhifu.length-1]
}
this.$confirm('匹配到交易流水号是否替换?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.msg.AccountNumber = this.setCode
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
}); });
});
}
},1);
}, },
countFee(){ // 输入原币手续费计算本位币手续费 countFee(){ // 输入原币手续费计算本位币手续费
if(this.msg.detailList.length>0&&this.msg.detailList[0].Rate&&this.msg.OriginalFee){ if(this.msg.detailList.length>0&&this.msg.detailList[0].Rate&&this.msg.OriginalFee){
...@@ -1452,7 +1484,6 @@ export default { ...@@ -1452,7 +1484,6 @@ export default {
if(this.$route.query.Conditon){ if(this.$route.query.Conditon){
this.returnCode = this.$route.query.Conditon; this.returnCode = this.$route.query.Conditon;
} }
this.BankAccount_post_GetAccountType(); this.BankAccount_post_GetAccountType();
// this.admin_get_DepartmentGetList(); // this.admin_get_DepartmentGetList();
//this.hasnextpoint() //this.hasnextpoint()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment