liyong
2025-10-11 aa1faf474e67a40bed983abc0a6d1868bd38ce19
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 () => {