diff --git a/pages/index/home.vue b/pages/index/home.vue index 0c773c7..5ba3553 100644 --- a/pages/index/home.vue +++ b/pages/index/home.vue @@ -50,8 +50,14 @@ 下次保养日期 {{ item.maintenanceDate }} - - {{ item.maintenanceProject }} + + {{ $utils.calculateDateDifference(item.maintenanceDate) + '天后维保' }} + + + 已超出维保时间 + + + 当天维修 @@ -194,6 +200,7 @@ export default { }, onLoad(){ this.getBannerList() + }, } diff --git a/subPages/home/RAArecord.vue b/subPages/home/RAArecord.vue index a4eafa7..1e31319 100644 --- a/subPages/home/RAArecord.vue +++ b/subPages/home/RAArecord.vue @@ -92,7 +92,7 @@ 上传图片 - + @@ -126,7 +126,7 @@ - + - + - + 费用名称 数量 @@ -221,7 +221,7 @@ - + @@ -242,12 +242,16 @@ {{ collapsedStates[index] ? '▼' : '▲' }} - + + + - + - + + + @@ -265,7 +269,8 @@ export default { activeFilter: 0, // 当前激活的筛选器 collapsedStates: [], // 控制每个记录项的展开/收起状态 afterUpdateDataFn(list) { - this.collapsedStates = new Array(list.length).fill(true) + // 改为新增加的数组部分 为true 原来的 状态保留 + this.collapsedStates.push(...new Array(8).fill(true)) }, filterOptions: [ { name: '时间' }, @@ -315,6 +320,7 @@ export default { this.mixinListApi = this.activeMainTab === 'repair' ? 'exhibit.queryRepairList' : 'exhibit.queryMaintenanceList' this.onFilterChange() this.initPage() + this.list = [] this.getList(true) // this.initCollapsedStates() }, diff --git a/subPages/home/maintainanceSubmit.vue b/subPages/home/maintainanceSubmit.vue index 8ea3670..d1bcca7 100644 --- a/subPages/home/maintainanceSubmit.vue +++ b/subPages/home/maintainanceSubmit.vue @@ -458,7 +458,9 @@ export default { remark: this.remark, showpieceId: this.showpieceId } - + if (formData.isExpend === '0'){ + delete formData.expenseList + } this.submiting = true try{ @@ -481,6 +483,8 @@ export default { }, onLoad(options) { this.showpieceId = options.id + + } } diff --git a/subPages/login/login.vue b/subPages/login/login.vue index 4577f7b..a9cba02 100644 --- a/subPages/login/login.vue +++ b/subPages/login/login.vue @@ -1,7 +1,7 @@