YLouie
2025-10-21 61fc2ef49c5f369c2db6eb3aad5a98c0ebe3fcbc
src/pages/production/wire/report/wire.vue
@@ -22,7 +22,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>
@@ -123,9 +123,13 @@
  dialog.visible = false;
};
const toAttachment = (id: number) => {
const toAttachment = (item: any) => {
  uni.navigateTo({
    url: `/pages/production/wire/attachment/index?reportId=${id}`,
    url: "/pages/production/wire/attachment/index",
    success: () => {
      // 页面跳转成功后发送事件传递数据
      uni.$emit("detailData", item);
    },
  });
};