From a918d3676da9024c668c02e4a328d67285c7eac3 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 26 九月 2025 08:59:20 +0800
Subject: [PATCH] 领用单丝,字段回显实际生产长度和重量
---
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 62df4ae..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>
@@ -100,12 +103,18 @@
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 () => {
const { data } = await ManageApi.getReportList({
--
Gitblit v1.9.3