Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
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
刘怀志
pet-business-web
Commits
933e5856
Commit
933e5856
authored
Sep 22, 2023
by
王飞龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
156990a5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
10 deletions
+20
-10
equipment-add.vue
...uipment-management/equipment-management/equipment-add.vue
+4
-4
equipment-detail.vue
...ment-management/equipment-management/equipment-detail.vue
+6
-6
use-details.vue
...views/equipment-management/use-management/use-details.vue
+10
-0
No files found.
src/views/equipment-management/equipment-management/equipment-add.vue
View file @
933e5856
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"7
"
>
<el-col
style=
"width: 33%
"
>
<el-form-item
label=
"单位时段服务数"
prop=
"useNum"
style=
"margin-left: 0.775rem"
>
<el-form-item
label=
"单位时段服务数"
prop=
"useNum"
style=
"margin-left: 0.775rem"
>
<el-input-number
<el-input-number
v-model
.
trim=
"form.useNum"
v-model
.
trim=
"form.useNum"
...
@@ -907,13 +907,13 @@ export default {
...
@@ -907,13 +907,13 @@ export default {
width
:
30%
;
width
:
30%
;
}
}
.inputNumber_Width
{
.inputNumber_Width
{
width
:
9
2
%
;
width
:
9
3
%
;
}
}
.inputNumber
{
.inputNumber
{
width
:
98%
;
width
:
98%
;
}
}
.text
{
.text
{
margin-left
:
10
px
;
margin-left
:
7
px
;
}
}
.remark_with
{
.remark_with
{
width
:
30%
;;
width
:
30%
;;
...
@@ -941,7 +941,7 @@ export default {
...
@@ -941,7 +941,7 @@ export default {
.sbuButton
{
.sbuButton
{
display
:
flex
;
display
:
flex
;
justify-content
:
left
;
justify-content
:
left
;
margin
:
30px
0
50px
8
rem
margin
:
30px
0
50px
7
.775
rem
}
}
</
style
>
</
style
>
...
...
src/views/equipment-management/equipment-management/equipment-detail.vue
View file @
933e5856
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"7
"
>
<el-col
style=
"width: 33%
"
>
<el-form-item
label=
"单位时段服务数"
style=
"margin-left: 0.775rem"
>
<el-form-item
label=
"单位时段服务数"
style=
"margin-left: 0.775rem"
>
<el-input-number
<el-input-number
v-model
.
trim=
"form.useNum"
v-model
.
trim=
"form.useNum"
...
@@ -447,7 +447,7 @@
...
@@ -447,7 +447,7 @@
/>
/>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
<
el
-
col
:
span
=
"7
"
>
<
el
-
col
style
=
"width: 33%
"
>
<
el
-
form
-
item
label
=
"单位时段服务数"
prop
=
"useNum"
style
=
"margin-left: 0.775rem"
>
<
el
-
form
-
item
label
=
"单位时段服务数"
prop
=
"useNum"
style
=
"margin-left: 0.775rem"
>
<
el
-
input
-
number
<
el
-
input
-
number
v
-
model
.
trim
=
"form.useNum"
v
-
model
.
trim
=
"form.useNum"
...
@@ -1333,13 +1333,13 @@ export default {
...
@@ -1333,13 +1333,13 @@ export default {
}
}
.
inputNumber_Width
{
.
inputNumber_Width
{
width
:
9
2
%
;
width
:
9
3
%
;
}
}
.
inputNumber
{
.
inputNumber
{
width
:
98
%
;
width
:
98
%
;
}
}
.
text
{
.
text
{
margin
-
left
:
10
px
;
margin
-
left
:
7
px
;
}
}
.
custom
-
form
-
item
{
.
custom
-
form
-
item
{
...
@@ -1375,13 +1375,13 @@ export default {
...
@@ -1375,13 +1375,13 @@ export default {
.
sbuButton
{
.
sbuButton
{
display
:
flex
;
display
:
flex
;
justify
-
content
:
left
;
justify
-
content
:
left
;
margin
:
30
px
0
50
px
8
rem
margin
:
30
px
0
50
px
7.775
rem
}
}
.
resButton
{
.
resButton
{
display
:
flex
;
display
:
flex
;
justify
-
content
:
left
;
justify
-
content
:
left
;
margin
:
30
px
0
50
px
1
8
px
;
margin
:
30
px
0
50
px
1
6
px
;
}
}
.
tableClass
{
.
tableClass
{
...
...
src/views/equipment-management/use-management/use-details.vue
View file @
933e5856
...
@@ -337,6 +337,7 @@
...
@@ -337,6 +337,7 @@
import
{
selectCheckItem
,
useManagementDetail
}
from
'@/api/business/use'
import
{
selectCheckItem
,
useManagementDetail
}
from
'@/api/business/use'
import
{
getInfo
}
from
'@/api/login'
import
{
getInfo
}
from
'@/api/login'
import
{
getAreTreeStructure
}
from
'@/api/business/device'
import
{
getAreTreeStructure
}
from
'@/api/business/device'
import
{
parseTime
}
from
'@/utils/ruoyi'
export
default
{
export
default
{
name
:
'UseDetails'
,
name
:
'UseDetails'
,
...
@@ -559,10 +560,19 @@ export default {
...
@@ -559,10 +560,19 @@ export default {
this
.
createTime
=
(
this
.
form
.
createTime
.
slice
(
0
,
this
.
form
.
createTime
.
length
-
8
)).
replace
(
/-/g
,
'/'
)
this
.
createTime
=
(
this
.
form
.
createTime
.
slice
(
0
,
this
.
form
.
createTime
.
length
-
8
)).
replace
(
/-/g
,
'/'
)
}
}
if
(
this
.
form
.
checkStartTime
!==
null
&&
this
.
form
.
checkStartTime
!==
''
)
{
if
(
this
.
form
.
checkStartTime
!==
null
&&
this
.
form
.
checkStartTime
!==
''
)
{
this
.
form
.
checkStartTime
=
parseTime
(
this
.
form
.
checkStartTime
)
this
.
form
.
reportTime
=
parseTime
(
this
.
form
.
reportTime
)
console
.
log
(
'进来了'
)
console
.
log
(
'this,form,reportYime'
,
this
.
form
.
reportTime
)
console
.
log
(
'this,form,checkStartTime'
,
this
.
form
.
checkStartTime
)
this
.
checkDate
=
(
this
.
form
.
reportTime
.
slice
(
0
,
this
.
form
.
checkStartTime
.
length
-
8
)).
replace
(
/-/g
,
'/'
)
this
.
checkDate
=
(
this
.
form
.
reportTime
.
slice
(
0
,
this
.
form
.
checkStartTime
.
length
-
8
)).
replace
(
/-/g
,
'/'
)
console
.
log
(
'使用日期'
,
this
.
checkDate
)
const
hour
=
this
.
form
.
reportTime
.
substring
(
this
.
form
.
checkStartTime
.
indexOf
(
' '
)
+
1
,
this
.
form
.
checkStartTime
.
indexOf
(
':'
))
const
hour
=
this
.
form
.
reportTime
.
substring
(
this
.
form
.
checkStartTime
.
indexOf
(
' '
)
+
1
,
this
.
form
.
checkStartTime
.
indexOf
(
':'
))
console
.
log
(
'小时hour'
,
hour
)
const
minute
=
this
.
form
.
reportTime
.
substring
(
this
.
form
.
checkStartTime
.
indexOf
(
':'
)
+
1
,
this
.
form
.
checkStartTime
.
lastIndexOf
(
':'
))
const
minute
=
this
.
form
.
reportTime
.
substring
(
this
.
form
.
checkStartTime
.
indexOf
(
':'
)
+
1
,
this
.
form
.
checkStartTime
.
lastIndexOf
(
':'
))
console
.
log
(
'分钟'
,
minute
)
this
.
checkTime
=
hour
+
':'
+
minute
this
.
checkTime
=
hour
+
':'
+
minute
console
.
log
(
'使用时间'
,
this
.
checkTime
)
}
}
const
payAmount
=
this
.
form
.
payAmount
.
toFixed
(
2
)
const
payAmount
=
this
.
form
.
payAmount
.
toFixed
(
2
)
this
.
form
.
payAmount
=
payAmount
.
toString
()
this
.
form
.
payAmount
=
payAmount
.
toString
()
...
...
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