| | |
| | | }, |
| | | onLoad(option) { |
| | | this.taskId = option.id; |
| | | |
| | | let roleName = uni.getStorageSync("activeRole").roleName |
| | | if (roleName == "居民") { |
| | | this.roleType = 2; |
| | |
| | | }, |
| | | |
| | | onShow() { |
| | | this.getDetailInfo(this.taskId); |
| | | this.getDetailInfo(); |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | } |
| | | }, |
| | | |
| | | getDetailInfo(id) { |
| | | getDetailInfo() { |
| | | getHotelReportingDetail({ |
| | | taskId: id |
| | | taskId: this.taskId |
| | | }).then(res => { |
| | | console.log(res); |
| | | let data = res.data; |
| | | this.id = data.id; |
| | | this.basicData.forEach(item => { |
| | | item.value = data[item.name] |
| | | item.value = data[item.name] || "未完善" |
| | | }) |
| | | this.status = data.confirmFlag; |
| | | this.remark = data.confirmNotion; |
| | |
| | | id: this.id, |
| | | taskId: this.taskId, |
| | | status: val.type, |
| | | remark: val.remark |
| | | confirmNotion: val.remark |
| | | } |
| | | |
| | | setHotelReporting(data).then(res => { |
| | |
| | | |
| | | navToEdit() { |
| | | uni.navigateTo({ |
| | | url: `/subPackage/label/hotel?id=${this.id}` |
| | | url: `/subPackage/label/hotel?id=${this.taskId}` |
| | | }) |
| | | } |
| | | |