From ab27e3ac8c7e90fd267bd6c3f0c0e06f25469697 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 23 九月 2025 14:54:07 +0800
Subject: [PATCH] feat: 添加绞线/拉丝报工附件功能

---
 src/pages/production/twist/report/index.vue |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/pages/production/twist/report/index.vue b/src/pages/production/twist/report/index.vue
index a0383eb..fe8e34b 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.id)" 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,6 +103,12 @@
   dialog.visible = false;
 };
 
+const toAttachment = (id: number) => {
+  uni.navigateTo({
+    url: `/pages/production/twist/attachment/index?reportId=${id}`,
+  });
+};
+
 const toCheck = (id: number) => {
   uni.navigateTo({
     url: `/pages/production/twist/selfInspect/index?id=${id}`,
@@ -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