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
3696c6f2
Commit
3696c6f2
authored
Jul 19, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
746ba2fc
12007e86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
20 deletions
+38
-20
BillModule.vue
src/components/FinancialModule/components/BillModule.vue
+14
-8
ReceivablesModule.vue
...mponents/FinancialModule/components/ReceivablesModule.vue
+10
-8
index.js
src/plug/index.js
+14
-4
No files found.
src/components/FinancialModule/components/BillModule.vue
View file @
3696c6f2
...
...
@@ -178,14 +178,16 @@ export default {
this
.
GetDetail
.
DetailList
.
forEach
(
x
=>
{
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
x
.
Money
=
x
.
Money
.
toFixed
(
2
)
//
x.Money = x.Money.toFixed(2)
// x.Money = Math.round(x.Money * 100) / 100
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
this
.
currentMoney
+=
parseFloat
(
x
.
OriginalMoney
);
Money
=
parseFloat
(
x
.
Money
)
*
100
benMoney
+=
Money
this
.
benMoney
=
benMoney
/
100
;
x
.
Money
=
this
.
RoundItUp
(
x
.
Money
)
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
this
.
currentMoney
+=
parseFloat
(
x
.
OriginalMoney
);
Money
=
parseFloat
(
x
.
Money
)
*
100
benMoney
+=
Money
this
.
benMoney
=
benMoney
/
100
;
})
// 有收款账户需对比总金额
if
(
this
.
GetDetail
.
CashierDetail
&&
this
.
GetDetail
.
CashierDetail
.
length
>
0
){
...
...
@@ -195,8 +197,9 @@ export default {
this
.
GetDetail
.
CashierDetail
.
forEach
(
x
=>
{
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
// x.Money = Math.round(x.Money)
x
.
Money
=
x
.
Money
.
toFixed
(
2
)
x
.
Money
=
this
.
RoundItUp
(
x
.
Money
)
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
Money1
=
parseFloat
(
x
.
Money
)
*
100
benMoney1
+=
Money1
...
...
@@ -326,6 +329,9 @@ export default {
let
userInfo
=
this
.
getLocalStorage
();
this
.
EmployeeId
=
userInfo
.
EmployeeId
;
this
.
Financial_post_GetDetail
(
this
.
ID
);
},
watch
:
{
// 监听参数变化
GetDetail
:
{
...
...
src/components/FinancialModule/components/ReceivablesModule.vue
View file @
3696c6f2
...
...
@@ -145,14 +145,14 @@ export default {
this
.
GetDetail
.
DetailList
.
forEach
(
x
=>
{
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
x
.
Money
=
x
.
Money
.
toFixed
(
2
)
// x.Money = Math.round(x.Money * 100) / 100
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
this
.
currentMoney
+=
parseFloat
(
x
.
OriginalMoney
);
Money
=
parseFloat
(
x
.
Money
)
*
100
benMoney
+=
Money
this
.
benMoney
=
benMoney
/
100
;
x
.
Money
=
this
.
RoundItUp
(
x
.
Money
)
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
this
.
currentMoney
+=
parseFloat
(
x
.
OriginalMoney
);
Money
=
parseFloat
(
x
.
Money
)
*
100
benMoney
+=
Money
this
.
benMoney
=
benMoney
/
100
;
})
// 有收款账户需对比总金额
if
(
this
.
GetDetail
.
CashierDetail
&&
this
.
GetDetail
.
CashierDetail
.
length
>
0
){
...
...
@@ -162,7 +162,9 @@ export default {
this
.
GetDetail
.
CashierDetail
.
forEach
(
x
=>
{
x
.
UnitPrice
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
x
.
UnitPrice
*
100
)
/
100
)
x
.
Money
=
x
.
Rate
*
x
.
OriginalMoney
x
.
Money
=
x
.
Money
.
toFixed
(
2
)
x
.
Money
=
this
.
RoundItUp
(
x
.
Money
)
x
.
OriginalMoney
=
Math
.
round
(
x
.
OriginalMoney
*
100
)
/
100
Money1
=
parseFloat
(
x
.
Money
)
*
100
benMoney1
+=
Money1
...
...
src/plug/index.js
View file @
3696c6f2
...
...
@@ -120,7 +120,7 @@ export default {
let
crmUrl
=
""
;
//crm API
let
locationName
=
window
.
location
.
hostname
;
domainUrl
=
"http://192.168.10.25:8083"
;
// 刘东电脑
domainUrl
=
"http://192.168.10.2
5:8083
"
;
domainUrl
=
"http://192.168.10.2
26:8015
"
;
// domainUrl = "http://reborn.oytour.com";
let
crmLocalFileStreamDownLoadUrl
=
""
;
...
...
@@ -130,7 +130,8 @@ export default {
//商城API
mallUrl
=
"http://192.168.20.13:8088"
;
lxymallUrl
=
"http://192.168.20.13:8088"
;
crmUrl
=
"http://192.168.10.36:8098"
// crmUrl = "http://192.168.10.36:8098"
crmUrl
=
"http://crm.oytour.com"
if
(
locationName
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
domainUrl
=
"http://testapi.oytour.com"
;
mallUrl
=
"https://mallapi.oytour.com"
;
...
...
@@ -276,12 +277,12 @@ export default {
this
.
$router
.
push
({
path
:
'/signature'
})
}
}
if
(
this
.
$route
.
path
.
toLowerCase
()
==
"/signname"
)
{
this
.
$router
.
push
({
path
:
'/signname'
})
}
}
else
if
(
this
.
$route
.
path
==
"/clientConfirm"
)
{
let
TCID
=
this
.
$route
.
query
.
TCID
;
let
orderID
=
this
.
$route
.
query
.
orderID
;
...
...
@@ -1713,5 +1714,14 @@ export default {
}
}
}
// 多位小数点四舍五入
Vue
.
prototype
.
RoundItUp
=
function
(
Money
)
{
let
FractionalPart
=
String
(
Money
).
split
(
'.'
)
if
(
FractionalPart
&&
FractionalPart
[
1
]
&&
FractionalPart
[
1
].
length
>
2
){
return
Money
=
(
parseFloat
(
Money
.
toFixed
(
3
))
+
0.001
).
toFixed
(
2
)
}
else
{
return
Money
=
Math
.
round
(
Money
*
100
)
/
100
}
}
}
}
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