曹睿
2025-06-03 665c18b68a5dedba63e00f89f763539967fb7f08
src/pages/production/detail/wireDetail.vue
@@ -1,12 +1,21 @@
<template>
  <view class="pt-2">
    <ProductCard :data="cardData" />
    <ProductCard
      :data="cardData"
      :map="{
        deviceModel: 'deviceModel',
        model: 'model',
        totalAmount: 'totalAmount',
        amount: 'amount',
        unAmount: 'unAmount',
      }"
    />
    <view class="mx-3">
      <wd-grid class="rounded-lg" clickable>
        <wd-grid-item
          icon="computer"
          link-type="navigateTo"
          :url="`/pages/production/wire/report/wire?id=${paramsId}`"
          :url="`/pages/production/wire/report/wire?id=${paramsId}&model=${cardData.model}&oneLength=${cardData.oneLength}`"
          text="报工"
        />
        <!-- <wd-grid-item
@@ -18,15 +27,15 @@
        <wd-grid-item
          icon="tips"
          link-type="navigateTo"
          url="/pages/production/wire/backman/index"
          :url="`/pages/production/wire/backman/index?id=${paramsId}`"
          text="杂工"
        />
        <wd-grid-item
        <!-- <wd-grid-item
          icon="wallet"
          link-type="navigateTo"
          url="/pages/production/wire/receive/index"
          text="材料领用"
        />
        /> -->
      </wd-grid>
    </view>
  </view>
@@ -44,6 +53,7 @@
  totalAmount: undefined,
  amount: undefined,
  unAmount: undefined,
  oneLength: undefined,
});
const getDetailData = async (id: string) => {
@@ -55,6 +65,7 @@
  cardData.totalAmount = data.totalAmount;
  cardData.amount = data.amount;
  cardData.unAmount = data.unAmount;
  cardData.oneLength = data.oneLength;
};
onLoad((options: any) => {