|
@@ -57,8 +57,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content-btn">
|
|
|
- <u-button v-if="isView" @click="isView = false" class="submitBtn" type="waring" shape="circle">修改</u-button>
|
|
|
- <u-button v-else @click="submit" :loading="loading" class="submitBtn" type="success" shape="circle">提交</u-button>
|
|
|
+ <u-button v-if="isView && nowDate == gatherTime" @click="isView = false" class="submitBtn" type="waring" shape="circle">修改</u-button>
|
|
|
+ <u-button v-if="!isView && nowDate != gatherTime" @click="submit" :loading="loading" class="submitBtn" type="success" shape="circle">提交</u-button>
|
|
|
</view>
|
|
|
<uni-popup ref="openModal" type="center">
|
|
|
<uni-popup-dialog content="确认提交吗?" @confirm="onOk" :title="title"></uni-popup-dialog>
|
|
@@ -89,7 +89,9 @@
|
|
|
remarks: '' // 备注
|
|
|
},
|
|
|
isView: false ,// 是否是查看详情
|
|
|
- itemId:''
|
|
|
+ itemId:'',
|
|
|
+ nowDate:'',
|
|
|
+ gatherTime:""
|
|
|
};
|
|
|
},
|
|
|
onLoad(option) {
|
|
@@ -105,6 +107,12 @@
|
|
|
this.form.remarks = ''
|
|
|
this.$refs.uForm.resetFields()
|
|
|
}
|
|
|
+ const date = new Date()
|
|
|
+ const year = date.getFullYear()
|
|
|
+ const month = date.getMonth()+1
|
|
|
+ const day = date.getDate()
|
|
|
+ this.nowDate=[year,month<10? '0'+month : month,day<10? '0'+day : day].join('-')
|
|
|
+ console.log(this.nowDate,'----------当前时间')
|
|
|
},
|
|
|
onUnload() {
|
|
|
},
|
|
@@ -135,6 +143,8 @@
|
|
|
this.form.remarks=res.data.remarks
|
|
|
this.photograph=res.data.imageUrlList || []
|
|
|
console.log(this.form,'this.form')
|
|
|
+ this.gatherTime=res.data.gatherTime.substring(0,10)
|
|
|
+ console.log(this.gatherTime,'--------------this.gatherTime')
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -353,7 +363,7 @@
|
|
|
}
|
|
|
}
|
|
|
.content-btn{
|
|
|
- background-color: #fff;
|
|
|
+ // background-color: #fff;
|
|
|
padding: 40rpx;
|
|
|
}
|
|
|
.submitBtn{
|