| | |
| | | <u-button type="primary" @click="submit">提交审核</u-button> |
| | | </view> --> |
| | | |
| | | |
| | | <footer-btn v-if="roleType == 2 && status == 3" text="重新编辑" @click="navToEdit"></footer-btn> |
| | | <audit-action @handle="submit" v-if="roleType == 1 && status == 1"></audit-action> |
| | | |
| | | <u-picker :closeOnClickOverlay="true" @close="isPickerShow = false" :show="isPickerShow" ref="uPicker" |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | basicData: [{ |
| | | label: '社区名称', |
| | | name: "districtName", |
| | | value: '未完善' |
| | | }, |
| | | basicData: [ |
| | | // { |
| | | // label: '社区名称', |
| | | // name: "districtName", |
| | | // value: '未完善' |
| | | // }, |
| | | { |
| | | label: '酒店名称', |
| | | name: 'hotelName', |
| | |
| | | }, |
| | | onLoad(option) { |
| | | this.taskId = option.id; |
| | | this.getDetailInfo(option.id); |
| | | |
| | | let roleName = uni.getStorageSync("activeRole").roleName |
| | | if (roleName == "居民") { |
| | | this.roleType = 2 |
| | | this.roleType = 2; |
| | | uni.setNavigationBarTitle({ |
| | | title: "详情" |
| | | }) |
| | | } else { |
| | | this.roleType = 1 |
| | | } |
| | | }, |
| | | |
| | | onShow() { |
| | | this.getDetailInfo(this.taskId); |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | let data = { |
| | | id: this.id, |
| | | taskId: this.taskId, |
| | | // status: this.selectStatus, |
| | | status: val.type, |
| | | // remark: this.remark |
| | | remark: val.remark |
| | | } |
| | | // if (this.selectStatus == 3 && !this.remark) { |
| | | // uni.showToast({ |
| | | // title: "请输入拒绝原因", |
| | | // icon: "none" |
| | | // }) |
| | | // return; |
| | | // } |
| | | |
| | | setHotelReporting(data).then(res => { |
| | | if (res.code !== 200) { |
| | | uni.showToast({ |
| | |
| | | prePage.$vm.getList(); |
| | | uni.navigateBack(); |
| | | }, |
| | | |
| | | navToEdit() { |
| | | uni.navigateTo({ |
| | | url: `/subPackage/label/hotel?id=${this.id}` |
| | | }) |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |