From db8e416fec0ab844026eb7bc91d9f59a457f4e6e Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 16 Jan 2024 17:41:30 +0800
Subject: [PATCH] 标签事件审核调整,优化
---
subPackage/workbench/views/hotelReportDetail.vue | 41 ++++++++++++++++++++++++-----------------
1 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/subPackage/workbench/views/hotelReportDetail.vue b/subPackage/workbench/views/hotelReportDetail.vue
index aa02910..0ae43ee 100644
--- a/subPackage/workbench/views/hotelReportDetail.vue
+++ b/subPackage/workbench/views/hotelReportDetail.vue
@@ -66,7 +66,7 @@
<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"
@@ -91,11 +91,12 @@
},
data() {
return {
- basicData: [{
- label: '社区名称',
- name: "districtName",
- value: '未完善'
- },
+ basicData: [
+ // {
+ // label: '社区名称',
+ // name: "districtName",
+ // value: '未完善'
+ // },
{
label: '酒店名称',
name: 'hotelName',
@@ -208,13 +209,20 @@
},
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: {
@@ -270,18 +278,10 @@
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({
@@ -308,6 +308,13 @@
prePage.$vm.getList();
uni.navigateBack();
},
+
+ navToEdit() {
+ uni.navigateTo({
+ url: `/subPackage/label/hotel?id=${this.id}`
+ })
+ }
+
}
}
</script>
--
Gitblit v1.9.3