|
@@ -124,8 +124,16 @@
|
|
|
</van-cell-group>
|
|
</van-cell-group>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <h4 class="mb8 mt20">特殊要求和附件</h4>
|
|
|
|
|
|
|
+ <h4 class="mb8 mt20">特殊要求</h4>
|
|
|
<van-cell-group>
|
|
<van-cell-group>
|
|
|
|
|
+ <van-field label="是否分笼">
|
|
|
|
|
+ <template #input>
|
|
|
|
|
+ <van-radio-group v-model="state.form.animalPurpose" direction="horizontal">
|
|
|
|
|
+ <van-radio :name="AnimalPurpose.NEED_SPLIT_CAGE">有</van-radio>
|
|
|
|
|
+ <van-radio :name="AnimalPurpose.NO_NEED_SPLIT_CAGE">无</van-radio>
|
|
|
|
|
+ </van-radio-group>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </van-field>
|
|
|
<van-field label="是否有特殊饲养要求">
|
|
<van-field label="是否有特殊饲养要求">
|
|
|
<template #input>
|
|
<template #input>
|
|
|
<van-radio-group v-model="state.form.hasFeedingSpecial" direction="horizontal">
|
|
<van-radio-group v-model="state.form.hasFeedingSpecial" direction="horizontal">
|
|
@@ -138,6 +146,12 @@
|
|
|
v-model="state.form.feedingSpecialDesc" label="特殊饲养要求" placeholder="输入特殊饲养要求,如每天更换垫料等" required
|
|
v-model="state.form.feedingSpecialDesc" label="特殊饲养要求" placeholder="输入特殊饲养要求,如每天更换垫料等" required
|
|
|
:rules="rules.feedingSpecialDesc" />
|
|
:rules="rules.feedingSpecialDesc" />
|
|
|
</van-cell-group>
|
|
</van-cell-group>
|
|
|
|
|
+ <h4 class="mb8 mt20">备注</h4>
|
|
|
|
|
+ <van-cell-group>
|
|
|
|
|
+ <van-field
|
|
|
|
|
+ v-model="state.form.remark" label="备注" placeholder="输入备注"
|
|
|
|
|
+ />
|
|
|
|
|
+ </van-cell-group>
|
|
|
|
|
|
|
|
<h4 class="mb8 mt20">附件上传</h4>
|
|
<h4 class="mb8 mt20">附件上传</h4>
|
|
|
<van-cell-group>
|
|
<van-cell-group>
|
|
@@ -212,7 +226,7 @@ import type { FormInstance } from 'vant/es'
|
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
|
import { storeToRefs } from 'pinia'
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { usePlatAnimalCageApplicationApi } from '/@/api/platform/animal'
|
|
import { usePlatAnimalCageApplicationApi } from '/@/api/platform/animal'
|
|
|
-import { LeavelList, SUPPORT_FILE_UPLOAD_TYPE_MAX } from '/@/constants/pageConstants'
|
|
|
|
|
|
|
+import { LeavelList, SUPPORT_FILE_UPLOAD_TYPE_MAX ,AnimalPurpose} from '/@/constants/pageConstants'
|
|
|
import { deepClone } from '/@/utils/other'
|
|
import { deepClone } from '/@/utils/other'
|
|
|
import { useUserInfo } from '/@/stores/userInfo'
|
|
import { useUserInfo } from '/@/stores/userInfo'
|
|
|
import { ProcurementChannels, FeedingSpecial, UploadFileType } from '/@/constants/pageConstants'
|
|
import { ProcurementChannels, FeedingSpecial, UploadFileType } from '/@/constants/pageConstants'
|
|
@@ -378,6 +392,7 @@ const defaultFormData = {
|
|
|
licenseNumberFile: [],
|
|
licenseNumberFile: [],
|
|
|
animalTestDateFile: [],
|
|
animalTestDateFile: [],
|
|
|
geneIdentificationFile: [],
|
|
geneIdentificationFile: [],
|
|
|
|
|
+ animalPurpose: AnimalPurpose.NO_NEED_SPLIT_CAGE,
|
|
|
hasFeedingSpecial: FeedingSpecial.HAVE_FEEDING_SPECIAL,
|
|
hasFeedingSpecial: FeedingSpecial.HAVE_FEEDING_SPECIAL,
|
|
|
feedingSpecialDesc: '',
|
|
feedingSpecialDesc: '',
|
|
|
ethicsCheckFile: [],
|
|
ethicsCheckFile: [],
|
|
@@ -386,6 +401,8 @@ const defaultFormData = {
|
|
|
deptId: '',
|
|
deptId: '',
|
|
|
phone: '',
|
|
phone: '',
|
|
|
totalNumber: 0,
|
|
totalNumber: 0,
|
|
|
|
|
+ remark: '',
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const state = reactive({
|
|
const state = reactive({
|