spring
2025-09-29 3315f8bc2dd9b0f2aa40e6bea962344cc0b80bed
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>
@@ -67,7 +70,7 @@
  },
  {
    label: "盘长(m)",
    prop: "ontLength",
    prop: "oneLength",
  },
  {
    label: "理论重量(kg)",
@@ -100,11 +103,17 @@
  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 () => {
@@ -122,7 +131,7 @@
<style lang="scss" scoped>
.list {
  height: calc(100vh - 120px);
  height: calc(100vh - 80px);
  padding: 12px;
  background: #f3f9f8;