<template>
|
<wd-form ref="form" :model="model" class="relative form_box">
|
<wd-cell-group :border="true">
|
<wd-input
|
v-model="model.selfInspectName"
|
label="自检名称"
|
label-width="100px"
|
prop="selfInspectName"
|
clearable
|
placeholder="请输入自检名称"
|
/>
|
<wd-input
|
v-model="model.unit"
|
label="单位"
|
label-width="100px"
|
prop="unit"
|
clearable
|
placeholder="请输入单位"
|
/>
|
<wd-input
|
v-model="model.standard"
|
label="标准值"
|
label-width="100px"
|
prop="standard"
|
clearable
|
placeholder="请输入标准值"
|
/>
|
<wd-input
|
v-model="model.selfInspectValue"
|
label="自检值"
|
label-width="100px"
|
prop="selfInspectValue"
|
clearable
|
placeholder="请输入自检值"
|
/>
|
<wd-input
|
v-model="model.selfInspectResult"
|
label="自检结果"
|
label-width="100px"
|
prop="selfInspectResult"
|
clearable
|
placeholder="请输入自检结果"
|
/>
|
</wd-cell-group>
|
</wd-form>
|
</template>
|
|
<script setup lang="ts">
|
import useFormData from "@/hooks/useFormData";
|
const { form: model } = useFormData({
|
selfInspectName: undefined, // 自检名称
|
unit: undefined, // 单位
|
standard: undefined, // 标准值
|
selfInspectValue: undefined, // 自检值
|
selfInspectResult: undefined, // 自检值
|
});
|
</script>
|
<style lang="scss" scoped>
|
.form_box {
|
}
|
.submit_btn {
|
position: absolute;
|
bottom: 0;
|
width: 100%;
|
}
|
</style>
|