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/label/hotel.vue |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/subPackage/label/hotel.vue b/subPackage/label/hotel.vue
index 23b3d08..23afa18 100644
--- a/subPackage/label/hotel.vue
+++ b/subPackage/label/hotel.vue
@@ -4,13 +4,11 @@
 		<u-form labelPosition="left" :model="info" :rules="rules" ref="form" labelWidth="100"
 			:labelStyle="{fontSize:'28rpx'}">
 			<view class="content">
-				<u-form-item label="社区名称" prop="districtName" borderBottom>
+				<!-- <u-form-item label="社区名称" prop="districtName" borderBottom>
 					<view class="content-name f-28">
 						{{info.districtName}}
 					</view>
-					<!-- <u-input v-model="info.districtName" disabled disabledColor="#fff" border="none" placeholder="请输入"
-						placeholderClass="f-28 c-99" inputAlign="right"></u-input> -->
-				</u-form-item>
+				</u-form-item> -->
 				<u-form-item label="酒店名称" prop="hotelName" borderBottom required>
 					<u-input v-model="info.hotelName" border="none" placeholder="请输入" placeholderClass="f-28 c-99"
 						inputAlign="right"></u-input>
@@ -333,7 +331,8 @@
 					}
 				],
 				isEdit: false,
-				id: ""
+				id: "",
+				status: ""
 			}
 		},
 		onLoad(option) {
@@ -365,6 +364,7 @@
 				}).then(res => {
 					if (res.code == 200) {
 						let data = res.data;
+						this.status = data.confirmFlag;
 						for (let i in this.info) {
 							this.info[i] = data[i]
 						}
@@ -475,7 +475,6 @@
 				this.$refs.form.validate().then(valid => {
 					this.checkImages()
 					if (this.isEdit) {
-						this.info.id = this.id;
 						this.info.status = 1;
 						this.info.reportType = 2;
 						this.setHotelReportingRequest()
@@ -507,7 +506,11 @@
 						title: '保存成功'
 					})
 					setTimeout(() => {
-						this.reLoadPrePage()
+						if (this.status == 4) {
+							this.reLoadPrePage()
+						} else {
+							uni.navigateBack();
+						}
 					}, 300)
 				})
 			},

--
Gitblit v1.9.3