liyong
2025-04-25 14eef62db43d4d1b7a5bada04032faaecffecb9e
src/pages/production/twist/components/MonofilCard.vue
@@ -1,34 +1,18 @@
<template>
  <wd-card>
    <wd-form :model="model">
      <wd-cell-group :border="true">
        <wd-input
          v-model="model.no"
          label="单丝编号"
          label-width="100px"
          prop="no"
          clearable
          placeholder="请输入单丝编号"
        />
        <wd-input
          v-model="model.length"
          label="长度"
          label-width="100px"
          prop="length"
          clearable
          placeholder="请输入长度"
        />
      </wd-cell-group>
    </wd-form>
    <wd-cell-group :border="true">
      <wd-cell title="单丝编号" :value="data.monofilamentNumber" />
      <wd-cell title="长度" :value="data.amount" />
    </wd-cell-group>
  </wd-card>
</template>
<script setup lang="ts">
import useFormData from "@/hooks/useFormData";
const { form: model } = useFormData({
  no: undefined,
  length: undefined,
defineProps({
  data: {
    type: Object,
    default: () => {},
  },
});
</script>