|
|
@@ -249,6 +249,25 @@
|
|
|
},
|
|
|
onShade(){
|
|
|
//判断 登记时1 退订2 已占用3
|
|
|
+ if(this.newData.deviceStatus == 1){
|
|
|
+ //维护
|
|
|
+ uni.showToast({
|
|
|
+ title: '设备维护中,如有疑问请联系管理员.',
|
|
|
+ icon:"none",
|
|
|
+ mask:true,
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }else if(this.newData.deviceStatus == 2){
|
|
|
+ //报废
|
|
|
+ uni.showToast({
|
|
|
+ title: '设备已报废,如有疑问请联系管理员.',
|
|
|
+ icon:"none",
|
|
|
+ mask:true,
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
if(this.newData.runStatus == 0){
|
|
|
//无人使用
|
|
|
const now = new Date();
|
|
|
@@ -264,7 +283,7 @@
|
|
|
data5:'0天0小时0分',
|
|
|
});
|
|
|
this.$set(this,'shadeType',1);
|
|
|
- }else if(this.newData.runStatus != 0 && this.newData.currentUserId != this.userId){
|
|
|
+ }else if(this.newData.runStatus == 1 && this.newData.currentUserId != this.userId){
|
|
|
//别人使用中
|
|
|
this.$set(this,'shadeDataC',{
|
|
|
data1:this.newData.currentUserName,
|
|
|
@@ -272,7 +291,7 @@
|
|
|
// data3:this.toTimestamp(this.newData.currentStartTime),
|
|
|
});
|
|
|
this.$set(this,'shadeType',3);
|
|
|
- }else if(this.newData.runStatus != 0 && this.newData.currentUserId == this.userId){
|
|
|
+ }else if(this.newData.runStatus == 1 && this.newData.currentUserId == this.userId){
|
|
|
//自己使用中
|
|
|
const now = new Date();
|
|
|
now.setSeconds(0, 0); // 将秒和毫秒都设为0
|