|
|
@@ -54,10 +54,10 @@
|
|
|
</up-form-item>
|
|
|
</ut-action-sheet>
|
|
|
<ut-action-sheet :tabs="pt_mother_father_flag" mode="custom" title="父母本情况"
|
|
|
- v-model="form.motherFatherFlag">
|
|
|
- <up-form-item borderBottom label="父母本情况" required prop="motherFatherFlag">
|
|
|
- <view v-if="form.motherFatherFlag" class="f-s-30 c-333 f-w-5 flex1">{{
|
|
|
- selectDictLabel(pt_mother_father_flag, form.motherFatherFlag) }}</view>
|
|
|
+ v-model="form.instoreBizInfo.motherFatherFlag">
|
|
|
+ <up-form-item borderBottom label="父母本情况" prop="motherFatherFlag">
|
|
|
+ <view v-if="form.instoreBizInfo.motherFatherFlag" class="f-s-30 c-333 f-w-5 flex1">{{
|
|
|
+ selectDictLabel(pt_mother_father_flag, form.instoreBizInfo.motherFatherFlag) }}</view>
|
|
|
<view v-else class="f-s-30 c-ccc f-w-4 flex1">请选择父母本情况</view>
|
|
|
<template #right>
|
|
|
<up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
|
|
|
@@ -66,60 +66,78 @@
|
|
|
</ut-action-sheet>
|
|
|
<template>
|
|
|
<!-- 父本品种 -->
|
|
|
- <up-form-item borderBottom label="父本品种" prop="fatherVarietyId">
|
|
|
+ <up-form-item v-if="form?.instoreBizInfo?.motherFatherFlag == '2'" borderBottom label="父本品种" prop="fatherVarietyId">
|
|
|
<view class="flex1">
|
|
|
- <up-button v-if="!form.fatherVarietyId" @click="selectFatherVarietyId" type="primary" plain>
|
|
|
+ <up-button v-if="!form.instoreBizInfo.fatherVarietyId" @click="selectFatherVarietyId"
|
|
|
+ type="primary" plain>
|
|
|
<image class="w-36 h-36 mr-10" src="@/static/images/common/select_push_icon.png"
|
|
|
mode="widthFix" />
|
|
|
<span>请选择父本品种</span>
|
|
|
</up-button>
|
|
|
<view v-else class="bg-#FBFDFB card-info-block pd-24 p-rtv">
|
|
|
<view class="mb-16">
|
|
|
- <span class="f-s-34 c-#333 f-w-5 mr-16">{{ form?.fatherVarietyInfo?.varietyName
|
|
|
+ <span class="f-s-34 c-#333 f-w-5 mr-16">{{
|
|
|
+ form?.instoreBizInfo?.fatherVarietyInfo?.varietyName }}</span>
|
|
|
+ <span class="f-s-24 c-#666">{{ form?.instoreBizInfo?.fatherVarietyInfo?.latinName
|
|
|
}}</span>
|
|
|
- <span class="f-s-24 c-#666">{{ form?.fatherVarietyInfo?.latinName }}</span>
|
|
|
</view>
|
|
|
<view class="mb-16">
|
|
|
- <span class="f-s-28 c-#333 f-w-5 mr-16">{{ form?.fatherVarietyInfo?.genusName
|
|
|
+ <span class="f-s-28 c-#333 f-w-5 mr-16">{{
|
|
|
+ form?.instoreBizInfo?.fatherVarietyInfo?.genusName
|
|
|
}}</span>
|
|
|
- <span class="f-s-24 c-#666">{{ form?.fatherVarietyInfo?.genusLatinName }}</span>
|
|
|
+ <span class="f-s-24 c-#666">{{
|
|
|
+ form?.instoreBizInfo?.fatherVarietyInfo?.genusLatinName }}</span>
|
|
|
</view>
|
|
|
- <view class="f-s-24 c-#666">产出:{{ form?.fatherVarietyInfo?.medicineName }}</view>
|
|
|
+ <view class="f-s-24 c-#666">产出:{{ form?.instoreBizInfo?.fatherVarietyInfo?.medicineName
|
|
|
+ }}</view>
|
|
|
<view class="close-icon pd-16"
|
|
|
- @click="form.fatherVarietyId = ''; form.fatherVarietyInfo = null;">
|
|
|
+ @click="form.instoreBizInfo.fatherVarietyId = ''; form.instoreBizInfo.fatherVarietyInfo = null;">
|
|
|
<up-icon color="#F81242" name="close" size="32rpx"></up-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</up-form-item>
|
|
|
<!-- 母本品种 -->
|
|
|
- <up-form-item borderBottom label="母本品种" prop="motherVarietyId">
|
|
|
+ <up-form-item borderBottom label="母本品种" prop="instoreBizInfo.motherVarietyId">
|
|
|
<view class="flex1">
|
|
|
- <up-button v-if="!form.motherVarietyId" @click="selectMotherVarietyId" type="primary" plain>
|
|
|
+ <up-button v-if="!form.instoreBizInfo.motherVarietyId" @click="selectMotherVarietyId"
|
|
|
+ type="primary" plain>
|
|
|
<image class="w-36 h-36 mr-10" src="@/static/images/common/select_push_icon.png"
|
|
|
mode="widthFix" />
|
|
|
<span>请选择母本品种</span>
|
|
|
</up-button>
|
|
|
<view v-else class="bg-#FBFDFB card-info-block pd-24 p-rtv mt-16">
|
|
|
<view class="mb-16">
|
|
|
- <span class="f-s-34 c-#333 f-w-5 mr-16">{{ form?.motherVarietyInfo?.varietyName
|
|
|
- }}</span>
|
|
|
- <span class="f-s-24 c-#666">{{ form?.motherVarietyInfo?.latinName }}</span>
|
|
|
+ <span class="f-s-34 c-#333 f-w-5 mr-16">{{
|
|
|
+ form?.instoreBizInfo?.motherVarietyInfo?.varietyName }}</span>
|
|
|
+ <span class="f-s-24 c-#666">{{ form?.instoreBizInfo?.motherVarietyInfo?.latinName }}</span>
|
|
|
</view>
|
|
|
<view class="mb-16">
|
|
|
- <span class="f-s-28 c-#333 f-w-5 mr-16">{{ form?.motherVarietyInfo?.genusName
|
|
|
- }}</span>
|
|
|
- <span class="f-s-24 c-#666">{{ form?.motherVarietyInfo?.genusLatinName }}</span>
|
|
|
+ <span class="f-s-28 c-#333 f-w-5 mr-16">{{ form?.instoreBizInfo?.motherVarietyInfo?.genusName }}</span>
|
|
|
+ <span class="f-s-24 c-#666">{{ form?.instoreBizInfo?.motherVarietyInfo?.genusLatinName }}</span>
|
|
|
</view>
|
|
|
- <view class="f-s-24 c-#666">产出:{{ form?.motherVarietyInfo?.medicineName }}</view>
|
|
|
- <view class="close-icon pd-16"
|
|
|
- @click="form.motherVarietyId = ''; form.motherVarietyInfo = null;">
|
|
|
+ <view class="f-s-24 c-#666">产出:{{ form?.instoreBizInfo?.motherVarietyInfo?.medicineName }}</view>
|
|
|
+ <view class="close-icon pd-16" @click="form.instoreBizInfo.motherVarietyId = ''; form.instoreBizInfo.motherVarietyInfo = null;">
|
|
|
<up-icon color="#F81242" name="close" size="32rpx"></up-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</up-form-item>
|
|
|
</template>
|
|
|
+ <up-form-item label="繁衍世代" prop="instoreBizInfo.genCount">
|
|
|
+ <up-input v-model="form.instoreBizInfo.genCount" placeholder="请输入繁衍世代" border="none" clearable />
|
|
|
+ <template #right>
|
|
|
+ <view @click.stop>
|
|
|
+ <ut-action-sheet v-model="form.unit" :tabs="pt_materail_unit" mode="custom" title="选择单位">
|
|
|
+ <!-- 可点击选择单位 -->
|
|
|
+ <view class="d-flex pd-10" style="">
|
|
|
+ <span>{{ form.unit || '代' }}</span>
|
|
|
+ <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
|
|
|
+ </view>
|
|
|
+ </ut-action-sheet>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </up-form-item>
|
|
|
<up-form-item borderBottom label="受托单位" prop="entrustId">
|
|
|
<up-input v-model="form.entrustId" placeholder="请输入受托单位" border="none" clearable></up-input>
|
|
|
</up-form-item>
|
|
|
@@ -130,7 +148,7 @@
|
|
|
<up-input v-model="form.capacity" placeholder="请输入入库量" border="none" clearable />
|
|
|
<template #right>
|
|
|
<view @click.stop>
|
|
|
- <ut-action-sheet v-model="form.unit" :tabs="pt_materail_unit" mode="custom" title="选择单位">
|
|
|
+ <ut-action-sheet v-model="form.unit" :tabs="pt_seed_unit" mode="custom" title="选择单位">
|
|
|
<!-- 可点击选择单位 -->
|
|
|
<view class="d-flex pd-10" style="">
|
|
|
<span>{{ form.unit || '株' }}</span>
|
|
|
@@ -164,10 +182,18 @@
|
|
|
</up-form-item>
|
|
|
|
|
|
<!-- 个体标识:此处仅占位,后续可改为多选列表 -->
|
|
|
- <up-form-item borderBottom label="是否有个体标识" prop="animalIds">
|
|
|
-
|
|
|
+ <up-form-item borderBottom label="是否有个体标识" prop="instoreBizInfo.idFlag" required>
|
|
|
+ <up-radio-group v-model="form.instoreBizInfo.idFlag">
|
|
|
+ <up-radio :customStyle="{ marginRight: '60rpx' }" v-for="(item, index) in yes_no" :key="index"
|
|
|
+ :label="item.label" :name="item.value"></up-radio>
|
|
|
+ </up-radio-group>
|
|
|
</up-form-item>
|
|
|
-
|
|
|
+ <!-- 个体标识:此处仅占位,后续可改为多选列表 -->
|
|
|
+ <template v-if="+form?.instoreBizInfo?.idFlag">
|
|
|
+ <up-form-item borderBottom label="个体标识号" prop="instoreBizInfo.animals" required>
|
|
|
+ <AnimalsInput v-model="form.instoreBizInfo.animals"></AnimalsInput>
|
|
|
+ </up-form-item>
|
|
|
+ </template>
|
|
|
<!-- 媒体与附件 -->
|
|
|
<up-form-item borderBottom label="种源图片" prop="imgs">
|
|
|
<ut-upload v-model="form.imgs" :max-count="9"></ut-upload>
|
|
|
@@ -219,18 +245,23 @@
|
|
|
<script setup lang="ts">
|
|
|
import { useClientRequest } from '@/utils/request';
|
|
|
import { seedInfoListType } from '../models/type';
|
|
|
+import AnimalsInput from '../models/animals-input.vue';
|
|
|
+
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
-const { pt_seed_type, pt_seed_source, pt_materail_unit, pt_mother_father_flag } = toRefs<any>(proxy?.useDict('pt_seed_type', 'pt_seed_source', 'pt_materail_unit', 'pt_mother_father_flag'));
|
|
|
+const { pt_seed_type, pt_seed_source, pt_materail_unit, pt_mother_father_flag, pt_seed_unit, pt_fungus_code_type, pt_breeding_materials, yes_no } = toRefs<any>(proxy?.useDict('pt_seed_type', 'pt_seed_source', 'pt_materail_unit', 'pt_mother_father_flag', 'pt_op_method', 'pt_seed_unit', 'pt_fungus_code_type', 'pt_breeding_materials', 'yes_no'));
|
|
|
const paging = ref<any>(null);
|
|
|
const upFormRef = ref<any>(null);
|
|
|
const form = ref<seedInfoListType>({
|
|
|
imgs: [],
|
|
|
- vedios: [],
|
|
|
spCert: [],
|
|
|
newSpCert: [],
|
|
|
importCert: [],
|
|
|
seedCheckCert: [],
|
|
|
unit: '株',
|
|
|
+ instoreBizInfo: {
|
|
|
+ motherFatherFlag: '',
|
|
|
+ idFlag: '1',
|
|
|
+ },
|
|
|
});
|
|
|
const rules = reactive({});
|
|
|
|
|
|
@@ -276,8 +307,8 @@ const selectVarietyId = () => {
|
|
|
};
|
|
|
const selectFatherVarietyId = () => {
|
|
|
uni.$once('updateBiologicalname', function (data) {
|
|
|
- form.value.fatherVarietyId = data.msg.id;
|
|
|
- form.value.fatherVarietyInfo = data.msg;
|
|
|
+ form.value.instoreBizInfo.fatherVarietyId = data.msg.id;
|
|
|
+ form.value.instoreBizInfo.fatherVarietyInfo = data.msg;
|
|
|
});
|
|
|
uni.$u.route({
|
|
|
type: 'navigateTo',
|
|
|
@@ -289,8 +320,8 @@ const selectFatherVarietyId = () => {
|
|
|
};
|
|
|
const selectMotherVarietyId = () => {
|
|
|
uni.$once('updateBiologicalname', function (data) {
|
|
|
- form.value.motherVarietyId = data.msg.id;
|
|
|
- form.value.motherVarietyInfo = data.msg;
|
|
|
+ form.value.instoreBizInfo.motherVarietyId = data.msg.id;
|
|
|
+ form.value.instoreBizInfo.motherVarietyInfo = data.msg;
|
|
|
});
|
|
|
uni.$u.route({
|
|
|
type: 'navigateTo',
|
|
|
@@ -303,7 +334,7 @@ const selectMotherVarietyId = () => {
|
|
|
const did = ref('');
|
|
|
onLoad((optins: any) => {
|
|
|
if (optins.id) {
|
|
|
- // 编辑加载详
|
|
|
+ // 编辑加载详情
|
|
|
did.value = optins.id;
|
|
|
} else {
|
|
|
}
|