调整维修单时间格式显示问题,以及空置房验房和审批权限控制问题

This commit is contained in:
905166056 2021-01-27 17:10:27 +08:00
parent f94e589fb8
commit 775c2e81ac
4 changed files with 5 additions and 5 deletions

View File

@ -111,8 +111,8 @@
</view>
</view>
<view class="cu-item">
<button class="btn-check" v-if="applyRoomInfo.state == 1" @click="switchShowModel()">验房</button>
<button class="btn-check" v-if="applyRoomInfo.state == 2" @click="switchShowModel()">审核</button>
<button class="btn-check" v-if="applyRoomInfo.state == 1 && this.java110Context.hasPrivilege('502021010723590006')" @click="switchShowModel()">验房</button>
<button class="btn-check" v-if="applyRoomInfo.state == 2 && this.java110Context.hasPrivilege('502021010761730007')" @click="switchShowModel()">审核</button>
</view>
</view>
<!-- 编辑模态框 -->

View File

@ -201,7 +201,7 @@
_that.repairDetailInfo = _data[0];
let dateStr = _that.repairDetailInfo.appointmentTime;
let _date = new Date(dateStr);
let _date = new Date(dateStr.replace(/-/g, "/"));
_that.repairDetailInfo.appointmentTime = (_date.getMonth() + 1) + '-' + _date.getDate();
},
fail: function(e) {

View File

@ -108,7 +108,7 @@
_that.myOrders.forEach(function(item) {
let dateStr = item.appointmentTime;
console.log(dateStr);
let _date = new Date(dateStr);
let _date = new Date(dateStr.replace(/-/g, "/"));
item.appointmentTime = (_date.getMonth() + 1) + '-' + _date.getDate();
});
// _that.orders = _data.ownerRepairs;

View File

@ -105,7 +105,7 @@
_that.repairOrders.forEach(function(item) {
let dateStr = item.appointmentTime;
console.log(dateStr);
let _date = new Date(dateStr);
let _date = new Date(dateStr.replace(/-/g, "/"));
item.appointmentTime = (_date.getMonth() + 1) + '-' + _date.getDate();
});
},