spring
2025-11-19 c13c2bb15b501c74fe4270b0ae763e5c9422ee39
src/pages/production/detail/wireDetail.vue
@@ -1,12 +1,22 @@
<template>
  <view class="pt-2">
    <ProductCard :data="cardData" />
    <ProductCard
      :data="cardData"
      :map="{
        deviceModel: 'deviceModel',
        model: 'model',
        systemNo: 'systemNo',
        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 +28,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>
@@ -41,9 +51,11 @@
const cardData = reactive({
  deviceModel: undefined,
  model: undefined,
  systemNo: undefined,
  totalAmount: undefined,
  amount: undefined,
  unAmount: undefined,
  oneLength: undefined,
});
const getDetailData = async (id: string) => {
@@ -52,9 +64,11 @@
  });
  cardData.deviceModel = data.deviceModel;
  cardData.model = data.model;
  cardData.systemNo = data.systemNo;
  cardData.totalAmount = data.totalAmount;
  cardData.amount = data.amount;
  cardData.unAmount = data.unAmount;
  cardData.oneLength = data.oneLength;
};
onLoad((options: any) => {