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 | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/pages/production/twist/report/index.vue b/src/pages/production/twist/report/index.vue
index 62df4ae..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>
@@ -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}`,
--
Gitblit v1.9.3