Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
a03ea557
Commit
a03ea557
authored
4 years ago
by
刘用法
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
材料也转换成数字
parent
fc7beaf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
material.vue
src/pages/order/material.vue
+3
-3
No files found.
src/pages/order/material.vue
View file @
a03ea557
...
...
@@ -35,7 +35,7 @@
<view
class=
"other-space"
>
<text
class=
"input-title"
>
金额:
</text>
<view
class=
"input-content"
>
<u-input
v-model=
"item.value"
:clearable=
"false"
placeholder-style=
"color:#999999;font-size:26rpx"
/>
<u-input
v-model=
"item.value"
type=
"number"
:clearable=
"false"
placeholder-style=
"color:#999999;font-size:26rpx"
/>
</view>
</view>
</view>
...
...
@@ -100,10 +100,10 @@
money
()
{
// 总额
var
amount
=
0
for
(
var
item
of
this
.
list
)
{
amount
+=
Math
.
max
(
item
.
consumption
-
item
.
freeAmount
,
0
)
*
item
.
price
amount
+=
Math
.
max
(
Number
(
item
.
consumption
)
-
Number
(
item
.
freeAmount
),
0
)
*
Number
(
item
.
price
)
}
for
(
var
item
of
this
.
other
)
{
if
(
item
.
value
)
{
if
(
item
.
value
&&
Number
(
item
.
value
)
)
{
amount
+=
Number
(
item
.
value
)
}
...
...
This diff is collapsed.
Click to expand it.
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