Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-composition-api
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
vue-composition-api
Commits
9ab632f5
Commit
9ab632f5
authored
May 14, 2024
by
唐玉峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
08b1b57d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
+13
-12
src/components/medicalRecordHomepage/index2.vue
+0
-0
src/router/index.js
+5
-0
src/utils/decimal.js
+8
-12
src/views/seeSettlementList.vue
+0
-0
No files found.
src/components/medicalRecordHomepage/index2.vue
0 → 100644
View file @
9ab632f5
This diff is collapsed.
Click to expand it.
src/router/index.js
View file @
9ab632f5
...
@@ -54,6 +54,11 @@ const router = new Router({
...
@@ -54,6 +54,11 @@ const router = new Router({
name
:
"outpatientDetails"
,
name
:
"outpatientDetails"
,
component
:
(
resolve
)
=>
require
([
"@/views/outpatientDetails_pingguo.vue"
],
resolve
),
component
:
(
resolve
)
=>
require
([
"@/views/outpatientDetails_pingguo.vue"
],
resolve
),
},
},
{
path
:
"/seeSettlementList"
,
name
:
"seeSettlementList"
,
component
:
(
resolve
)
=>
require
([
"@/views/seeSettlementList.vue"
],
resolve
),
},
],
],
// mode: 'history' /*hash*/ /*不显示路由中的#*/
// mode: 'history' /*hash*/ /*不显示路由中的#*/
});
});
...
...
src/utils/decimal.js
View file @
9ab632f5
...
@@ -12,14 +12,14 @@ export function decimal(num) {
...
@@ -12,14 +12,14 @@ export function decimal(num) {
}
else
{
}
else
{
result
=
Math
.
round
(
num
*
100
)
/
100
;
result
=
Math
.
round
(
num
*
100
)
/
100
;
var
s_x
=
result
.
toString
();
var
s_x
=
result
.
toString
();
var
pos_decimal
=
s_x
.
indexOf
(
'.'
);
var
pos_decimal
=
s_x
.
indexOf
(
"."
);
if
(
pos_decimal
<
0
)
{
if
(
pos_decimal
<
0
)
{
//不是小数
//不是小数
pos_decimal
=
s_x
.
length
;
pos_decimal
=
s_x
.
length
;
s_x
+=
'.'
;
s_x
+=
"."
;
}
}
while
(
s_x
.
length
<=
pos_decimal
+
2
)
{
while
(
s_x
.
length
<=
pos_decimal
+
2
)
{
s_x
+=
'0'
;
s_x
+=
"0"
;
}
}
return
s_x
;
return
s_x
;
}
}
...
@@ -27,26 +27,24 @@ export function decimal(num) {
...
@@ -27,26 +27,24 @@ export function decimal(num) {
export
function
toPercent
(
point
)
{
export
function
toPercent
(
point
)
{
var
str
=
Number
(
point
*
100
).
toFixed
(
2
);
var
str
=
Number
(
point
*
100
).
toFixed
(
2
);
str
+=
'%'
;
str
+=
"%"
;
return
str
;
return
str
;
}
}
export
function
keepTwoDecimalFull
(
num
)
{
export
function
keepTwoDecimalFull
(
num
)
{
var
result
=
parseFloat
(
num
);
var
result
=
parseFloat
(
num
);
result
=
Math
.
round
(
num
*
100
)
/
100
;
result
=
Math
.
round
(
num
*
100
)
/
100
;
var
s_x
=
result
.
toString
();
var
s_x
=
result
.
toString
();
var
pos_decimal
=
s_x
.
indexOf
(
'.'
);
var
pos_decimal
=
s_x
.
indexOf
(
"."
);
if
(
pos_decimal
<
0
)
{
if
(
pos_decimal
<
0
)
{
pos_decimal
=
s_x
.
length
;
pos_decimal
=
s_x
.
length
;
s_x
+=
'.'
;
s_x
+=
"."
;
}
}
while
(
s_x
.
length
<=
pos_decimal
+
2
)
{
while
(
s_x
.
length
<=
pos_decimal
+
2
)
{
s_x
+=
'0'
;
s_x
+=
"0"
;
}
}
return
s_x
;
return
s_x
;
}
}
export
function
changeArr
(
export
function
changeArr
(
data
)
{
data
)
{
let
arr
=
data
.
map
((
o
)
=>
[
let
arr
=
data
.
map
((
o
)
=>
[
o
.
cmi
,
o
.
cmi
,
o
.
feeConsumeIndex
,
o
.
feeConsumeIndex
,
...
@@ -69,5 +67,3 @@ export function changeArr(
...
@@ -69,5 +67,3 @@ export function changeArr(
return
arr
;
return
arr
;
}
}
src/views/seeSettlementList.vue
0 → 100644
View file @
9ab632f5
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