From 99a3c5eff1f52bf07235e60c4a2a1922e45e3fcb Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期二, 23 九月 2025 16:46:01 +0800
Subject: [PATCH] 附件上传
---
src/pages/production/twist/report/index.vue | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/pages/production/twist/report/index.vue b/src/pages/production/twist/report/index.vue
index fe8e34b..16b6567 100644
--- a/src/pages/production/twist/report/index.vue
+++ b/src/pages/production/twist/report/index.vue
@@ -17,7 +17,7 @@
</template>
<ProductionCard :data="cardAttr" :value="item" />
<template #footer>
- <wd-button size="small" plain @click="toAttachment(item.id)" style="margin-right: 10px">
+ <wd-button size="small" plain @click="toAttachment(item)" style="margin-right: 10px">
闄勪欢
</wd-button>
<wd-button size="small" plain @click="toCheck(item.id)">鑷</wd-button>
@@ -103,17 +103,17 @@
dialog.visible = false;
};
-const toAttachment = (id: number) => {
+const toAttachment = (item: any) => {
uni.navigateTo({
- url: `/pages/production/twist/attachment/index?reportId=${id}`,
+ url: "/pages/production/twist/attachment/index",
+ success: () => {
+ // 椤甸潰璺宠浆鎴愬姛鍚庡彂閫佷簨浠朵紶閫掓暟鎹�
+ uni.$emit("detailData", item);
+ },
});
};
-const toCheck = (id: number) => {
- uni.navigateTo({
- url: `/pages/production/twist/selfInspect/index?id=${id}`,
- });
-};
+
// 鑾峰彇鎷変笣鎶ュ伐鍒楄〃
const getTwistReportList = async () => {
--
Gitblit v1.9.3