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

bug修改

parent 156990a5
......@@ -104,7 +104,7 @@
</el-form-item>
</el-col>
<el-col :span="7" >
<el-col style="width: 33%" >
<el-form-item label="单位时段服务数" prop="useNum" style="margin-left: 0.775rem" >
<el-input-number
v-model.trim="form.useNum"
......@@ -907,13 +907,13 @@ export default {
width: 30%;
}
.inputNumber_Width{
width: 92%;
width: 93%;
}
.inputNumber{
width: 98%;
}
.text{
margin-left: 10px;
margin-left: 7px;
}
.remark_with{
width: 30%;;
......@@ -941,7 +941,7 @@ export default {
.sbuButton{
display: flex;
justify-content: left;
margin: 30px 0 50px 8rem
margin: 30px 0 50px 7.775rem
}
</style>
......
......@@ -95,7 +95,7 @@
</el-form-item>
</el-col>
<el-col :span="7" >
<el-col style="width: 33%" >
<el-form-item label="单位时段服务数" style="margin-left: 0.775rem">
<el-input-number
v-model.trim="form.useNum"
......@@ -447,7 +447,7 @@
/>
</el-form-item>
</el-col>
<el-col :span="7" >
<el-col style="width: 33%" >
<el-form-item label="单位时段服务数" prop="useNum" style="margin-left: 0.775rem">
<el-input-number
v-model.trim="form.useNum"
......@@ -1333,13 +1333,13 @@ export default {
}
.inputNumber_Width {
width: 92%;
width: 93%;
}
.inputNumber{
width: 98%;
}
.text {
margin-left: 10px;
margin-left: 7px;
}
.custom-form-item {
......@@ -1375,13 +1375,13 @@ export default {
.sbuButton{
display: flex;
justify-content: left;
margin: 30px 0 50px 8rem
margin: 30px 0 50px 7.775rem
}
.resButton{
display: flex;
justify-content: left;
margin: 30px 0 50px 18px;
margin: 30px 0 50px 16px;
}
.tableClass{
......
......@@ -337,6 +337,7 @@
import { selectCheckItem, useManagementDetail } from '@/api/business/use'
import { getInfo } from '@/api/login'
import { getAreTreeStructure } from '@/api/business/device'
import { parseTime } from '@/utils/ruoyi'
export default {
name: 'UseDetails',
......@@ -559,10 +560,19 @@ export default {
this.createTime = (this.form.createTime.slice(0, this.form.createTime.length - 8)).replace(/-/g, '/')
}
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, '/')
console.log('使用日期', this.checkDate)
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(':'))
console.log('分钟', minute)
this.checkTime = hour + ':' + minute
console.log('使用时间', this.checkTime)
}
const payAmount = this.form.payAmount.toFixed(2)
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