Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
7399b335
Commit
7399b335
authored
Apr 29, 2019
by
huangyuanyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务单据
parent
d0bce402
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
10 deletions
+37
-10
BasicDocuments.vue
src/components/FinancialModule/BasicDocuments.vue
+37
-10
No files found.
src/components/FinancialModule/BasicDocuments.vue
View file @
7399b335
...
...
@@ -1231,6 +1231,7 @@ export default {
},
tuiDataList
:[],
currentMoney
:
0
,
benMoney
:
0
,
}
},
components
:{
"my-FlowChartModule"
:
myFlowChartModule
,
...
...
@@ -1243,7 +1244,8 @@ export default {
'SaleOrderModule'
:
SaleOrderModule
,
'TicketFinace'
:
TicketFinace
,
'my-HB-Bill'
:
myhrBill
,
},
methods
:{
},
methods
:{
payMsgListShow
:
function
(
type
,
index
)
{
if
(
this
.
choiceMsg
.
Status
==
1
){
this
.
payMsgList
.
forEach
(
x
=>
{
...
...
@@ -1483,7 +1485,6 @@ export default {
}
},
Calculation
(
type
,
index
){
// 计算价格
console
.
log
(
'aaaaaaaaaaaa'
);
if
(
type
)
{
this
.
payMsgList
[
index
].
Fee
=
isNaN
(
parseFloat
(
this
.
payMsgList
[
index
].
Fee
))?
0
:
parseFloat
(
this
.
payMsgList
[
index
].
Fee
);
this
.
payMsgList
[
index
].
Rate
=
isNaN
(
parseFloat
(
this
.
payMsgList
[
index
].
Rate
))?
0
:
parseFloat
(
this
.
payMsgList
[
index
].
Rate
);
...
...
@@ -1500,10 +1501,8 @@ export default {
Rate
=
this
.
payMsg
.
Rate
==
0
?
1
:
this
.
payMsg
.
Rate
,
Money
=
this
.
payMsg
.
OriginalMoney
;
this
.
payMsg
.
allMoney
=
(
Money
*
Rate
)
+
fee
;
console
.
log
(
this
.
payMsg
,
'payMsg'
);
}
// console.log(Rate+"+"+fee+"+"+Money)
},
setAccountName
(
i
,
type
,
index
){
this
.
accountList
.
forEach
(
x
=>
{
...
...
@@ -1619,7 +1618,7 @@ export default {
},
BankAccount_post_GetCashPoolList
(){
// 获取资金池账
let
id
=
0
;
this
.
AccList
.
forEach
(
x
=>
{
this
.
AccList
this
.
AccList
.
forEach
(
x
=>
{
if
(
x
.
Name
===
this
.
payMsg
.
AccName
)
{
id
=
x
.
ID
;
}
...
...
@@ -1691,6 +1690,25 @@ export default {
},
err
=>
{})
},
AuditOrRefund
(){
// 保存
// console.log("保存")
let
that
=
this
;
if
(
this
.
AuditOrRefundMsg
.
Status
==
'5'
){
if
(
that
.
GetDetail
.
AccountNumber
.
indexOf
(
"东航平台"
)
!=-
1
){
if
(
this
.
allMoney
==
0
){
this
.
Error
(
"请将信息填写完整!"
)
return
;
}
else
{
if
(
this
.
allMoney
>
parseFloat
(
that
.
benMoney
)
+
5
||
this
.
allMoney
<
parseFloat
(
that
.
benMoney
)
-
5
){
this
.
Error
(
"请检查实付金额!"
)
return
;
}
}
// console.log("benMoney",this.benMoney)
// console.log(parseFloat(that.benMoney) - 5)
// console.log(parseFloat(that.benMoney) + 5)
}
}
let
imgArr
=
[];
this
.
uploadImgList
.
forEach
(
x
=>
{
imgArr
.
push
(
x
.
src
);
...
...
@@ -1758,7 +1776,6 @@ export default {
handleAvatarSuccess
(
res
,
file
)
{
//上传
if
(
res
.
resultCode
==
1
){
var
img_path
=
res
.
data
.
FullFilePath
console
.
log
(
res
.
data
)
this
.
imageUrl
=
img_path
let
obj
=
{
src
:
img_path
...
...
@@ -1794,8 +1811,8 @@ export default {
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
x
.
UnitPrice
.
toFixed
(
2
))
x
.
Money
=
x
.
Money
.
toFixed
(
2
)
x
.
OriginalMoney
=
x
.
OriginalMoney
.
toFixed
(
2
)
this
.
benMoney
+=
parseFloat
(
x
.
Money
);
})
data
.
Money
=
this
.
$commonUtils
.
addCommas
(
data
.
Money
.
toFixed
(
2
))
data
.
ChineseMoney
=
this
.
$commonUtils
.
changeMoneyToChinese
(
data
.
Money
)
this
.
FinancialFlowTemplate_post_GetProcessList
(
data
.
FrID
,
data
.
TemplateType
)
...
...
@@ -1851,7 +1868,17 @@ export default {
AccountType_post_GetList
(){
//获取账户类型下拉
this
.
apipost
(
'AccountType_post_GetList'
,
this
.
queryAccMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
AccList
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
if
(
this
.
RB_Post_Id
!=
5
){
data
.
forEach
(
item
=>
{
if
(
item
.
Name
!=
"公社资金池"
&&
item
.
Name
!=
"水口资金池"
&&
item
.
Name
!=
"橡胶资金池"
&&
item
.
Name
!=
"地接部专户"
&&
item
.
Name
!=
"老挝购物店资金池"
){
this
.
AccList
.
push
(
item
);
}
})
}
else
{
this
.
AccList
=
res
.
data
.
data
;
}
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
...
...
@@ -1922,11 +1949,11 @@ export default {
if
(
this
.
$route
.
query
.
pageIndex
){
this
.
pageIndex
=
this
.
$route
.
query
.
pageIndex
;
}
this
.
ISGZ
=
this
.
$route
.
query
.
ISGZ
?
true
:
false
this
.
ISGZ
=
this
.
$route
.
query
.
ISGZ
?
true
:
false
;
},
mounted
(){
let
userInfo
=
this
.
getLocalStorage
();
this
.
userId
=
userInfo
.
EmployeeId
;
this
.
RB_Post_Id
=
userInfo
.
RB_Post_Id
this
.
RB_Post_Id
=
userInfo
.
RB_Post_Id
;
this
.
ID
=
this
.
$route
.
query
.
id
;
this
.
queryMsg
.
FinanceId
=
this
.
$route
.
query
.
id
;
this
.
Financial_post_GetDetail
(
this
.
ID
);
...
...
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