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/labelReportDetail.vue |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/subPackage/workbench/views/labelReportDetail.vue b/subPackage/workbench/views/labelReportDetail.vue
index b181f48..944b721 100644
--- a/subPackage/workbench/views/labelReportDetail.vue
+++ b/subPackage/workbench/views/labelReportDetail.vue
@@ -17,7 +17,8 @@
 		<view class="planegraph" v-if="goodsImageUrls.length">
 			<box-title title="物品照片" class="box-title"></box-title>
 			<view class="flex-wrap">
-				<view v-for="(i,k) in goodsImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,imageUrls)">
+				<view v-for="(i,k) in goodsImageUrls" :key="k" class="ml-20 mt-20"
+					@click="previewImg(i,goodsImageUrls)">
 					<u-image :src="i" width="80" height="80"></u-image>
 				</view>
 			</view>
@@ -49,7 +50,7 @@
 		<!-- <view class="bottom-btn" v-if="(roleType == 1 && status == 1) || (roleType == 2 && status == 2)">
 			<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 :defaultIndex="defaultIndex" :closeOnClickOverlay="true" @close="isPickerShow = false"
@@ -142,7 +143,8 @@
 
 			let roleName = uni.getStorageSync("activeRole").roleName
 			if (roleName == "居民") {
-				this.roleType = 2
+				this.roleType = 2;
+
 			} else {
 				this.roleType = 1
 			}
@@ -174,6 +176,13 @@
 				}).then(res => {
 					console.log(res);
 					let data = res.data;
+					if (this.roleType == 2) {
+						uni.setNavigationBarTitle({
+							title: `${data.labelName}详情`
+						})
+					}
+
+
 					this.id = data.id;
 					this.status = data.confirmFlag;
 					this.remark = data.confirmNotion;
@@ -236,12 +245,18 @@
 			reLoadPrePage() {
 				let pages = getCurrentPages();
 				let prePage = pages[pages.length - 2];
-				prePage.$vm.currentPage = 1,
-					prePage.$vm.list = [];
+				prePage.$vm.currentPage = 1;
+				prePage.$vm.list = [];
 				prePage.$vm.getList();
 				uni.navigateBack();
 			},
 
+			navToEdit() {
+				uni.navigateTo({
+					url: `/subPackage/label/form?id=${this.id}`
+				})
+			}
+
 		}
 	}
 </script>

--
Gitblit v1.9.3