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 |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/pages/production/twist/report/index.vue b/src/pages/production/twist/report/index.vue
index a0383eb..16b6567 100644
--- a/src/pages/production/twist/report/index.vue
+++ b/src/pages/production/twist/report/index.vue
@@ -4,7 +4,7 @@
       <template #top>
         <CardTitle title="鎶ュ伐淇℃伅" :hideAction="true" :full="false" @action="addReport" />
       </template>
-      <wd-card v-for="(item, index) in twistReportList" type="rectangle" custom-class="round">
+      <wd-card v-for="item in twistReportList" :key="item.id" type="rectangle" custom-class="round">
         <template #title>
           <view class="flex justify-between">
             <view>
@@ -17,6 +17,9 @@
         </template>
         <ProductionCard :data="cardAttr" :value="item" />
         <template #footer>
+          <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>
         </template>
       </wd-card>
@@ -67,7 +70,7 @@
   },
   {
     label: "鐩橀暱(m)",
-    prop: "ontLength",
+    prop: "oneLength",
   },
   {
     label: "鐞嗚閲嶉噺(kg)",
@@ -100,11 +103,17 @@
   dialog.visible = false;
 };
 
-const toCheck = (id: number) => {
+const toAttachment = (item: any) => {
   uni.navigateTo({
-    url: `/pages/production/twist/selfInspect/index?id=${id}`,
+    url: "/pages/production/twist/attachment/index",
+    success: () => {
+      // 椤甸潰璺宠浆鎴愬姛鍚庡彂閫佷簨浠朵紶閫掓暟鎹�
+      uni.$emit("detailData", item);
+    },
   });
 };
+
+
 
 // 鑾峰彇鎷変笣鎶ュ伐鍒楄〃
 const getTwistReportList = async () => {
@@ -122,7 +131,7 @@
 
 <style lang="scss" scoped>
 .list {
-  height: calc(100vh - 120px);
+  height: calc(100vh - 80px);
   padding: 12px;
   background: #f3f9f8;
 

--
Gitblit v1.9.3