Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
3271d496
Commit
3271d496
authored
Dec 23, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
73ba8050
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
46 deletions
+51
-46
addFinancialDocuments.vue
...ages/financial/financalDocument/addFinancialDocuments.vue
+11
-8
addReceivablesDocuments.vue
...es/financial/financalDocument/addReceivablesDocuments.vue
+40
-38
No files found.
src/pages/financial/financalDocument/addFinancialDocuments.vue
View file @
3271d496
...
...
@@ -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
()
{
...
...
src/pages/financial/financalDocument/addReceivablesDocuments.vue
View file @
3271d496
...
...
@@ -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
);
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment