| | |
| | | import lineItem from '../components/lineItem.vue' |
| | | import { |
| | | getSchoolReportingDetail, |
| | | setShoolReporting |
| | | setSchoolReporting |
| | | } from '@/api/reporting/reporting' |
| | | import auditAction from '../components/actionBtn.vue' |
| | | export default { |
| | |
| | | }, |
| | | onLoad(option) { |
| | | this.taskId = option.id; |
| | | this.getDetailInfo(option.id); |
| | | let roleName = uni.getStorageSync("activeRole").roleName |
| | | if (roleName == "居民") { |
| | | this.roleType = 2 |
| | |
| | | this.roleType = 1 |
| | | } |
| | | }, |
| | | |
| | | onShow() { |
| | | this.getDetailInfo(); |
| | | }, |
| | | |
| | | |
| | | methods: { |
| | | |
| | |
| | | }, |
| | | |
| | | |
| | | getDetailInfo(id) { |
| | | getDetailInfo() { |
| | | getSchoolReportingDetail({ |
| | | taskId: id |
| | | taskId: this.taskId |
| | | }).then(res => { |
| | | console.log(res); |
| | | let data = res.data; |
| | |
| | | // status: this.selectStatus, |
| | | status: val.type, |
| | | // remark: this.remark |
| | | remark: val.remark |
| | | confirmNotion: val.remark |
| | | } |
| | | // if (this.selectStatus == 3 && !this.remark) { |
| | | // uni.showToast({ |
| | |
| | | }, |
| | | navToEdit() { |
| | | uni.navigateTo({ |
| | | url: `/subPackage/label/school?id=${this.id}` |
| | | url: `/subPackage/label/school?id=${this.taskId}` |
| | | }) |
| | | } |
| | | } |