buhuazhen
2025-09-23 99a3c5eff1f52bf07235e60c4a2a1922e45e3fcb
src/pages/production/wire/report/wire.vue
@@ -22,6 +22,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>
@@ -120,6 +123,16 @@
  dialog.visible = false;
};
const toAttachment = (item: any) => {
  uni.navigateTo({
    url: "/pages/production/wire/attachment/index",
    success: () => {
      // 页面跳转成功后发送事件传递数据
      uni.$emit("detailData", item);
    },
  });
};
const toCheck = (id: number) => {
  uni.navigateTo({
    url: `/pages/production/wire/selfInspect/index?id=${id}`,