Commit 3271d496 authored by Mac's avatar Mac

1

parent 73ba8050
......@@ -1088,14 +1088,17 @@
let path = "/Upload/Temporary/"
this.$message.info(this.$t('tips.shangchuanzhong'))
UploadSelfFile('Temporary', file.file, x => {
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
this.saveMsg.push({
Content: x.FileUrl,
ID: 0,
Type: fileTypeNumber,
Url: x.FileUrl,
})
this.$message.success(this.$t('tips.scchenggong'))
if(x.Code==1){
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
this.saveMsg.push({
Content: x.FileUrl,
ID: 0,
Type: fileTypeNumber,
Url: x.FileUrl,
})
this.$message.success(this.$t('tips.scchenggong'))
}
}, 1);
},
AuditOrRefund() {
......
......@@ -989,46 +989,48 @@
let path = "/Upload/Temporary/"
this.$message.info(this.$t('tips.shangchuanzhong'))
UploadSelfFile('Temporary', file.file, x => {
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
this.saveMsg.push({
Content: x.FileUrl,
ID: 0,
Type: fileTypeNumber,
Url: x.FileUrl,
})
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
if(x.Code==1){
let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
this.saveMsg.push({
Content: x.FileUrl,
ID: 0,
Type: fileTypeNumber,
Url: x.FileUrl,
})
var wechat = [];
var zhifu = [];
wechat = OcrStr.match(/商户单号.\d+/);
zhifu = OcrStr.match(/商家可扫码退款或查询交易.\d+/);
let barcode = x.data.Barcode;
if (wechat == null && zhifu == null && barcode == "") {
return;
}
if (zhifu == null && wechat != null && wechat.length > 0 && wechat[wechat.length - 1].length > 20) {
this.setCode = wechat[wechat.length - 1].replace('商户单号', '');
} else if (wechat == null && zhifu != null && zhifu.length > 0 && zhifu[zhifu.length - 1].length > 20) {
this.setCode = zhifu[zhifu.length - 1].replace('商家可扫码退款或查询交易', '');
} else if (barcode != "") {
this.setCode = barcode;
}
this.$confirm('匹配到交易流水号是否替换?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.msg.AccountNumber = this.setCode
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
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+/);
let barcode = x.data.Barcode;
if (wechat == null && zhifu == null && barcode == "") {
return;
}
if (zhifu == null && wechat != null && wechat.length > 0 && wechat[wechat.length - 1].length > 20) {
this.setCode = wechat[wechat.length - 1].replace('商户单号', '');
} else if (wechat == null && zhifu != null && zhifu.length > 0 && zhifu[zhifu.length - 1].length > 20) {
this.setCode = zhifu[zhifu.length - 1].replace('商家可扫码退款或查询交易', '');
} else if (barcode != "") {
this.setCode = barcode;
}
this.$confirm('匹配到交易流水号是否替换?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.msg.AccountNumber = this.setCode
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
});
}
}
}, 1);
},
......
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