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
52926555
Commit
52926555
authored
Jun 12, 2019
by
huangyuanyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f54d22a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
9 deletions
+28
-9
BasicDocuments.vue
src/components/FinancialModule/BasicDocuments.vue
+26
-9
FoodOrder.vue
src/components/Restaurant/FoodOrder.vue
+2
-0
No files found.
src/components/FinancialModule/BasicDocuments.vue
View file @
52926555
...
...
@@ -579,7 +579,7 @@
<!-- <th width="100px">账户余额</th> -->
<th>
金额
</th>
<th
width=
"70"
>
币种
</th>
<th
width=
"50px"
>
汇率
</th>
<th
width=
"
1
50px"
>
汇率
</th>
<!-- <th>手续费</th> -->
<th
width=
"100px"
>
总金额
</th>
<!-- <th>操作</th> -->
...
...
@@ -634,7 +634,7 @@
<td>
<el-input
v-model=
"i.Rate"
@
change=
"Calculation(1,index)"
@
blur=
"addList(2,index)"
type=
"number"
class=
" _border_b_1"
></el-input>
</td>
<td>
{{
Math
.
round
(
i
.
allMoney
*
100
)
/
100
}}
</td>
<td>
{{
(
Math
.
round
(
i
.
allMoney
*
100
)
)
/
100
}}
</td>
</tr>
</
template
>
<tr
@
keyup
.
enter=
"addList()"
v-if=
"choiceMsg.Status=='1'"
>
...
...
@@ -1309,10 +1309,15 @@ export default {
}
let
allMoney
=
0
this
.
payMsgList
.
forEach
(
x
=>
{
allMoney
+=
parseFloat
(
x
.
allMoney
)
;
x
.
allMoney
=
Math
.
round
(
x
.
allMoney
*
100
)
/
100
;
allMoney
+=
x
.
allMoney
;
// x.allMoney=(Math.round(x.allMoney * 100)
) / 100;
})
let
num
=
allMoney
.
toString
().
split
(
"."
)[
1
].
length
;
if
(
num
==
3
){
allMoney
=
`
${
allMoney
}
1`
;
}
this
.
allMoney
=
Math
.
round
(
allMoney
*
100
)
/
100
;
console
.
log
(
" this.allMoney"
,
this
.
allMoney
)
},
Financial_post_GetFinancLogList
(){
// 获取单据日志
if
(
this
.
checkboxShow
)
return
...
...
@@ -1508,9 +1513,13 @@ export default {
Rate
=
this
.
payMsgList
[
index
].
Rate
==
0
?
1
:
this
.
payMsgList
[
index
].
Rate
,
Money
=
this
.
payMsgList
[
index
].
OriginalMoney
;
Rate
=
Rate
*
100
;
this
.
payMsgList
[
index
].
allMoney
=
Math
.
round
(((
Money
*
Rate
)
+
fee
)
*
100
)
/
100
/
100
;
// console.log('this.payMsgList[index].allMoney', this.payMsgList[index].allMoney)
let
newmoney
=
Money
*
Rate
+
fee
;
let
num
=
newmoney
.
toString
().
split
(
"."
)[
1
].
length
;
if
(
num
==
1
){
newmoney
=
`
${
newmoney
}
1`
;
}
this
.
payMsgList
[
index
].
allMoney
=
Math
.
round
(
newmoney
*
100
)
/
100
/
100
;
}
else
{
this
.
payMsg
.
Fee
=
isNaN
(
parseFloat
(
this
.
payMsg
.
Fee
))?
0
:
parseFloat
(
this
.
payMsg
.
Fee
);
this
.
payMsg
.
Rate
=
isNaN
(
parseFloat
(
this
.
payMsg
.
Rate
))?
0
:
parseFloat
(
this
.
payMsg
.
Rate
);
...
...
@@ -1518,8 +1527,16 @@ export default {
let
fee
=
this
.
payMsg
.
Fee
,
Rate
=
this
.
payMsg
.
Rate
==
0
?
1
:
this
.
payMsg
.
Rate
,
Money
=
this
.
payMsg
.
OriginalMoney
;
Rate
=
Rate
*
100
;
this
.
payMsg
.
allMoney
=
Math
.
round
(((
Money
*
Rate
)
+
fee
)
*
100
)
/
100
/
100
;
Rate
=
Rate
*
100
;
let
newmoney
=
Money
*
Rate
+
fee
;
if
(
newmoney
.
toString
().
split
(
"."
)[
1
]){
let
num
=
newmoney
.
toString
().
split
(
"."
)[
1
].
length
;
if
(
num
==
1
){
newmoney
=
`
${
newmoney
}
1`
;
}
}
this
.
payMsg
.
allMoney
=
Math
.
round
(
newmoney
*
100
)
/
100
/
100
;
}
},
...
...
src/components/Restaurant/FoodOrder.vue
View file @
52926555
...
...
@@ -70,6 +70,7 @@
<th>
客户信息
</th>
<th>
客户数量
</th>
<th>
订单状态
</th>
<th>
创建日期
</th>
<th>
退款状态
</th>
</tr>
<tr>
...
...
@@ -101,6 +102,7 @@
<span
v-if=
"item.status==2"
>
取消
</span>
<span
v-if=
"item.status==3"
>
待付款
</span>
</td>
<td>
{{
item
.
createDate
}}
</td>
<td>
<p
v-if=
"item.RefundStatus!=1"
>
<span
v-if=
"item.RefundStatus==2"
>
退款中
</span>
...
...
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