Commit 933e5856 authored by 王飞龙's avatar 王飞龙

bug修改

parent 156990a5
...@@ -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: 92%; width: 93%;
} }
.inputNumber{ .inputNumber{
width: 98%; width: 98%;
} }
.text{ .text{
margin-left: 10px; margin-left: 7px;
} }
.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 8rem margin: 30px 0 50px 7.775rem
} }
</style> </style>
......
...@@ -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: 92%; width: 93%;
} }
.inputNumber{ .inputNumber{
width: 98%; width: 98%;
} }
.text { .text {
margin-left: 10px; margin-left: 7px;
} }
.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: 30px 0 50px 8rem margin: 30px 0 50px 7.775rem
} }
.resButton{ .resButton{
display: flex; display: flex;
justify-content: left; justify-content: left;
margin: 30px 0 50px 18px; margin: 30px 0 50px 16px;
} }
.tableClass{ .tableClass{
......
...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment