曹睿
2025-04-24 5519cbf2e00c7ba4c650a542d98da99978124a30
src/components/product_card/index.vue
@@ -2,9 +2,9 @@
  <wd-card class="card_bg">
    <template #title>
      <view class="flex justify-between w-full">
        <text class="font-medium text-[#252525]">设备编号: {{ data.deviceModel }}</text>
        <text class="font-medium text-[#252525]">设备编号: {{ data[map.deviceModel] }}</text>
        <wd-tag color="#0D867F" bg-color="#E7F4EC">
          <text class="text-xs">{{ data.model }}</text>
          <text class="text-xs">{{ data[map.model] }}</text>
        </wd-tag>
      </view>
    </template>
@@ -16,7 +16,7 @@
          </view>
          <text class="text-[#646874] mx-2">
            总需求数量:
            <text class="text-[#252525]">{{ data.totalAmount }}m</text>
            <text class="text-[#252525]">{{ data[map.totalAmount] }}m</text>
          </text>
        </view>
      </wd-col>
@@ -29,7 +29,7 @@
          </view>
          <text class="text-[#646874] mx-2">
            已生产数量:
            <text class="text-[#252525]">{{ data.amount }}m</text>
            <text class="text-[#252525]">{{ data[map.amount] }}m</text>
          </text>
        </view>
      </wd-col>
@@ -40,7 +40,7 @@
          </view>
          <text class="text-[#646874] mx-2">
            待排产数量:
            <text class="text-[#252525]">{{ data.unAmount }}m</text>
            <text class="text-[#252525]">{{ data[map.unAmount] }}m</text>
          </text>
        </view>
      </wd-col>
@@ -54,6 +54,10 @@
    type: Object,
    default: () => {},
  },
  map: {
    type: Object,
    default: () => {},
  },
});
</script>