|
|
@@ -1,6 +1,5 @@
|
|
|
<template>
|
|
|
- <z-paging ref="paging" bgColor="#F7F7F7" safe-area-inset-bottom paging-class="paging-btm-shadow"
|
|
|
- scroll-with-animation>
|
|
|
+ <z-paging ref="paging" bgColor="#F7F7F7" safe-area-inset-bottom paging-class="paging-btm-shadow" scroll-with-animation>
|
|
|
<template #top>
|
|
|
<ut-navbar title="种源详情" :fixed="false" border></ut-navbar>
|
|
|
</template>
|
|
|
@@ -12,86 +11,17 @@
|
|
|
</view>
|
|
|
<view>
|
|
|
<up-button @click="navigateToInOutRecords" type="primary" :customStyle="formItemBtnStyle">
|
|
|
- <image class="w-30 h-30 mr-10"
|
|
|
- src="https://ta.zycpzs.cn/oss-file/smart-trace/szyy/images-plt/plant/storage/ckcrkjl_icon.png"
|
|
|
- mode="widthFix" />
|
|
|
+ <image class="w-30 h-30 mr-10" src="https://ta.zycpzs.cn/oss-file/smart-trace/szyy/images-plt/plant/storage/ckcrkjl_icon.png" mode="widthFix" />
|
|
|
<span>查看出入库记录</span>
|
|
|
</up-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="bg-#fff pd-24">
|
|
|
- <view class="d-flex j-sb a-c li-item-head mb-16">
|
|
|
- <view class="li-left-tag" :class="{ [`bg-instore-${form?.instoreType}`]: true }">{{ form?.seedLevel
|
|
|
- }}{{ selectDictLabel(pt_seed_instore_type, form?.instoreType) }}</view>
|
|
|
- <view class="f-s-22 c-#666">{{ form?.instoreBizInfo?.instoreDate }}</view>
|
|
|
- </view>
|
|
|
- <view class="mb-10">
|
|
|
- <span class="f-s-34 c-#333 f-w-500 mr-10">{{ form?.variety }}</span>
|
|
|
- <span class="f-s-24 c-#666">{{ selectDictLabel(pt_seed_type, form?.seedType) }}</span>
|
|
|
- </view>
|
|
|
- <template v-if="form?.instoreType == '2'">
|
|
|
- <view class="pd2-4-0 f-s-28">
|
|
|
- <span class="c-#666">入库批号:</span>
|
|
|
- <span class="c-#333 f-w-500">{{ form?.batchCode }}</span>
|
|
|
- </view>
|
|
|
- <!-- <view class="pd2-4-0 f-s-28">
|
|
|
- <span class="c-#666">溯源批号:</span>
|
|
|
- <span class="c-#333 f-w-500">暂无</span>
|
|
|
- </view> -->
|
|
|
- <view v-if="['A3', 'A4'].includes(form?.seedType)" class="pd2-4-0 f-s-28">
|
|
|
- <span class="c-#666">菌种/菌株编号:</span>
|
|
|
- <span class="c-#333 f-w-500">{{ selectDictLabel(pt_fungus_code_type, form?.fungusCodeType) }}/{{
|
|
|
- form?.fungusCode }}</span>
|
|
|
- </view>
|
|
|
- <view v-if="form?.supplierId" class="pd2-4-0 f-s-28">
|
|
|
- <span class="c-#666">供应商:</span>
|
|
|
- <span class="c-#333 f-w-500">{{ form?.supplierInfo?.cusName || '-' }}</span>
|
|
|
- </view>
|
|
|
- <view v-if="form?.warehouses?.length" class="pd2-4-0 f-s-28">
|
|
|
- <span class="c-#666">存放库房:</span>
|
|
|
- <span class="c-#333 f-w-500">{{ getStorageRoomNames(form?.warehouses) || '-' }}</span>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template v-if="form?.instoreType == '3'">
|
|
|
- <view class="pd2-4-0 f-s-28">
|
|
|
- <span class="c-#666">采收批号:</span>
|
|
|
- <span class="c-#333 f-w-500">{{ form?.harvestInfo?.harvestCode || '-' }}</span>
|
|
|
+ <view v-if="form" class="bg-#fff">
|
|
|
+ <SeedSourceCard :item="form" :dict="{ pt_seed_instore_type, pt_seed_type, pt_fungus_code_type }">
|
|
|
+ <view v-if="+form?.restAmount" class="pd3-20-40-0">
|
|
|
+ <up-button @click="navigateToInventoryLoss" type="warning" plain :customStyle="{ background: '#FFF9EF', borderColor: '#F9D9A3' }">库存有消耗?库存损耗登记{{ '>' }}</up-button>
|
|
|
</view>
|
|
|
- <view class="pd2-4-0 f-s-28">
|
|
|
- <span class="c-#666">采收基地:</span>
|
|
|
- <span class="c-#333 f-w-500">
|
|
|
- {{ form?.harvestInfo?.baseInfo?.baseName || '-' }}
|
|
|
- </span>
|
|
|
- </view>
|
|
|
- <view v-if="['A3', 'A4'].includes(form?.seedType)" class="pd2-4-0 f-s-28">
|
|
|
- <span class="c-#666">菌种/菌株编号:</span>
|
|
|
- <span class="c-#333 f-w-500">{{ selectDictLabel(pt_fungus_code_type, form?.fungusCodeType) }}/{{
|
|
|
- form?.fungusCode }}</span>
|
|
|
- </view>
|
|
|
- <view v-if="form?.warehouses?.length" class="pd2-4-0 f-s-28">
|
|
|
- <span class="c-#666">存放库房:</span>
|
|
|
- <span class="c-#333 f-w-500">{{ getStorageRoomNames(form?.warehouses) || '-' }}</span>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <view class="pd2-4-0 f-s-28">
|
|
|
- <span class="c-#666">入库量:</span>
|
|
|
- <span class="c-#333 f-w-500">{{ form?.capacity }}{{ form?.unit }}</span>
|
|
|
- </view>
|
|
|
- <view class="d-flex">
|
|
|
- <view v-if="form?.inputAmount" class="pd2-4-0 f-s-28 flex1">
|
|
|
- <span class="c-#666">出库量:</span>
|
|
|
- <span class="c-#333 f-w-500">{{ form?.inputAmount || '0' }}{{ form?.unit }}</span>
|
|
|
- </view>
|
|
|
- <view v-if="form?.restAmount" class="pd2-4-0 f-s-28 flex1">
|
|
|
- <span class="c-primary">剩余量:</span>
|
|
|
- <span class="c-primary f-w-500">{{ form?.restAmount || '0' }}{{ form?.unit }}</span>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view v-if="+form?.restAmount" class="pd3-20-40-0">
|
|
|
- <up-button @click="navigateToInventoryLoss" type="warning" plain
|
|
|
- :customStyle="{ background: '#FFF9EF', borderColor: '#F9D9A3' }">库存有消耗?库存损耗登记{{ '>'
|
|
|
- }}</up-button>
|
|
|
- </view>
|
|
|
+ </SeedSourceCard>
|
|
|
</view>
|
|
|
<template v-if="form?.instoreType == '3'">
|
|
|
<view class="pd-24">
|
|
|
@@ -100,8 +30,7 @@
|
|
|
<view class="bg-#fff pd-24" v-if="form?.harvestInfo">
|
|
|
<view class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<span class="c-#666">采收日期:</span>
|
|
|
- <span class="c-#333 f-w-600">{{ form?.harvestInfo?.harvestDate || '-' }}至{{
|
|
|
- form?.harvestInfo?.harvestDateEnd || '-' }}</span>
|
|
|
+ <span class="c-#333 f-w-600">{{ form?.harvestInfo?.harvestDate || '-' }}至{{ form?.harvestInfo?.harvestDateEnd || '-' }}</span>
|
|
|
</view>
|
|
|
<view class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<span class="c-#666">采收批号:</span>
|
|
|
@@ -150,25 +79,18 @@
|
|
|
</view>
|
|
|
<view class="f-s-30 pd2-16-0 info-border-bottom" v-if="form?.instoreBizInfo?.motherFatherFlag">
|
|
|
<span class="c-#666">父母本情况:</span>
|
|
|
- <span class="c-#333 f-w-600">{{ selectDictLabel(pt_mother_father_flag,
|
|
|
- form?.instoreBizInfo?.motherFatherFlag)
|
|
|
- || '-' }}</span>
|
|
|
+ <span class="c-#333 f-w-600">{{ selectDictLabel(pt_mother_father_flag, form?.instoreBizInfo?.motherFatherFlag) || '-' }}</span>
|
|
|
</view>
|
|
|
- <view v-if="form?.instoreBizInfo?.motherFatherFlag == '2' && form?.instoreBizInfo?.fatherVarietyInfo"
|
|
|
- class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
+ <view v-if="form?.instoreBizInfo?.motherFatherFlag == '2' && form?.instoreBizInfo?.fatherVarietyInfo" class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<view class="c-#666 mb-10">父本品种:</view>
|
|
|
<view class="bg-#FBFDFB card-info-block pd-24 p-rtv">
|
|
|
<view class="mb-10">
|
|
|
- <span class="f-s-34 c-#333 f-w-5 mr-16">{{
|
|
|
- form?.instoreBizInfo?.fatherVarietyInfo?.varietyName
|
|
|
- }}</span>
|
|
|
+ <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>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <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?.instoreBizInfo?.fatherVarietyInfo?.genusLatinName
|
|
|
- }}</span>
|
|
|
+ <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?.instoreBizInfo?.fatherVarietyInfo?.genusLatinName }}</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -176,16 +98,12 @@
|
|
|
<view class="c-#666 mb-10">母本品种:</view>
|
|
|
<view class="bg-#FBFDFB card-info-block pd-24 p-rtv">
|
|
|
<view class="mb-10">
|
|
|
- <span class="f-s-34 c-#333 f-w-5 mr-16">{{
|
|
|
- form?.instoreBizInfo?.motherVarietyInfo?.varietyName
|
|
|
- }}</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>
|
|
|
- <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>
|
|
|
+ <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>
|
|
|
</view>
|
|
|
@@ -194,8 +112,7 @@
|
|
|
<span class="c-#666">{{ genCountMap[form?.seedType as 'A3' | 'A4'] }}:</span>
|
|
|
<span class="c-#333 f-w-600">
|
|
|
{{ form?.instoreBizInfo?.genCount || '-' }}
|
|
|
- <text v-if="form?.instoreBizInfo?.genUnit">{{ selectDictLabel(pt_gen_unit,
|
|
|
- form?.instoreBizInfo?.genUnit) }}</text>
|
|
|
+ <text v-if="form?.instoreBizInfo?.genUnit">{{ selectDictLabel(pt_gen_unit, form?.instoreBizInfo?.genUnit) }}</text>
|
|
|
</span>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -204,8 +121,7 @@
|
|
|
<span class="c-#666">繁衍世代:</span>
|
|
|
<span class="c-#333 f-w-600">
|
|
|
{{ form?.instoreBizInfo?.genCount || '-' }}
|
|
|
- <text v-if="form?.instoreBizInfo?.genUnit">{{ selectDictLabel(pt_gen_unit,
|
|
|
- form?.instoreBizInfo?.genUnit) }}</text>
|
|
|
+ <text v-if="form?.instoreBizInfo?.genUnit">{{ selectDictLabel(pt_gen_unit, form?.instoreBizInfo?.genUnit) }}</text>
|
|
|
</span>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -237,16 +153,13 @@
|
|
|
</view>
|
|
|
<view v-if="['A4', 'A8'].includes(form?.seedType as string)" class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<span class="c-#666">{{ selectDictLabel(pt_seed_type, form?.seedType as string) }}编号:</span>
|
|
|
- <span class="c-#333 f-w-600">{{ selectDictLabel(pt_fungus_code_type, form?.fungusCodeType) }}/{{
|
|
|
- form?.fungusCode }}</span>
|
|
|
+ <span class="c-#333 f-w-600">{{ selectDictLabel(pt_fungus_code_type, form?.fungusCodeType) }}/{{ form?.fungusCode }}</span>
|
|
|
</view>
|
|
|
<view class="f-s-30 pd2-16-0 info-border-bottom" v-if="form?.instoreBizInfo?.idFlag">
|
|
|
<span class="c-#666">是否有个体标识:</span>
|
|
|
- <span class="c-#333 f-w-600">{{ selectDictLabel(yes_no, form?.instoreBizInfo?.idFlag) || '-'
|
|
|
- }}</span>
|
|
|
+ <span class="c-#333 f-w-600">{{ selectDictLabel(yes_no, form?.instoreBizInfo?.idFlag) || '-' }}</span>
|
|
|
</view>
|
|
|
- <view v-if="form?.instoreBizInfo?.animals && form?.instoreBizInfo?.animals.length"
|
|
|
- class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
+ <view v-if="form?.instoreBizInfo?.animals && form?.instoreBizInfo?.animals.length" class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<view class="c-#666 mb-10">个体标识号:</view>
|
|
|
<template v-for="(animal, index) in form?.instoreBizInfo?.animals" :key="index">
|
|
|
<view class="bg-#FBFDFB card-info-block pd-24 p-rtv mb-10 f-s-28 c-#333 f-w-500">
|
|
|
@@ -272,8 +185,7 @@
|
|
|
</view>
|
|
|
<view class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<span class="c-#666">繁殖材料:</span>
|
|
|
- <span class="c-#333 f-w-600">{{ form?.generationMaterial ? selectDictLabels(pt_breeding_materials,
|
|
|
- form?.generationMaterial, ',') : '-' }}</span>
|
|
|
+ <span class="c-#333 f-w-600">{{ form?.generationMaterial ? selectDictLabels(pt_breeding_materials, form?.generationMaterial, ',') : '-' }}</span>
|
|
|
</view>
|
|
|
<view class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<span class="c-#666">繁殖地点/采集地点:</span>
|
|
|
@@ -287,8 +199,7 @@
|
|
|
<span class="c-#666">种源检疫证号:</span>
|
|
|
<span class="c-#333 f-w-600">{{ form?.seedCheckSn || '-' }}</span>
|
|
|
</view>
|
|
|
- <view v-if="form?.seedCheckCert && form?.seedCheckCert.length"
|
|
|
- class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
+ <view v-if="form?.seedCheckCert && form?.seedCheckCert.length" class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<view class="c-#666 mb-10">种源检疫证书:</view>
|
|
|
<ut-album :urls="form?.seedCheckCert"></ut-album>
|
|
|
</view>
|
|
|
@@ -303,10 +214,9 @@
|
|
|
</view>
|
|
|
<view class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<span class="c-#666">入库类型:</span>
|
|
|
- <span class="c-#333 f-w-600">{{ selectDictLabel(pt_seed_instore_type, form?.instoreType) || '-'
|
|
|
- }}</span>
|
|
|
+ <span class="c-#333 f-w-600">{{ selectDictLabel(pt_seed_instore_type, form?.instoreType) || '-' }}</span>
|
|
|
</view>
|
|
|
- <template v-if="form.instoreType == '2'">
|
|
|
+ <template v-if="form?.instoreType == '2'">
|
|
|
<view class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<span class="c-#666">入库日期:</span>
|
|
|
<span class="c-#333 f-w-600">{{ form?.instoreBizInfo?.instoreDate || '-' }}</span>
|
|
|
@@ -334,13 +244,11 @@
|
|
|
</view>
|
|
|
<view class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<span class="c-#666">最后修改人:</span>
|
|
|
- <span class="c-#333 f-w-600">{{ form?.operatorName || form?.updateByName || form?.createByName ||
|
|
|
- '-' }}</span>
|
|
|
+ <span class="c-#333 f-w-600">{{ form?.operatorName || form?.updateByName || form?.createByName || '-' }}</span>
|
|
|
</view>
|
|
|
<view class="f-s-30 pd2-16-0 info-border-bottom">
|
|
|
<span class="c-#666">最后修改时间:</span>
|
|
|
- <span class="c-#333 f-w-600">{{ form?.operateTime || form?.updateTime || form?.createTime || '-'
|
|
|
- }}</span>
|
|
|
+ <span class="c-#333 f-w-600">{{ form?.operateTime || form?.updateTime || form?.createTime || '-' }}</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -356,12 +264,13 @@
|
|
|
import { formItemBtnStyle } from '@/assets/styles/uview-plus';
|
|
|
import { getStorageRoomNames } from '@/utils/common';
|
|
|
import { useClientRequest } from '@/utils/request';
|
|
|
-import { selectDictListClass } from '@/utils/ruoyi';
|
|
|
+
|
|
|
+import SeedSourceCard from '@/plant/models/warehouseCard/seed-source-card.vue';
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
|
|
const { pt_seed_instore_type, pt_seed_type, pt_seed_source, pt_mother_father_flag, pt_fungus_code_type, pt_breeding_materials, yes_no, pt_gen_unit } = toRefs<any>(proxy?.useDict('pt_seed_instore_type', 'pt_seed_type', 'pt_seed_source', 'pt_mother_father_flag', 'pt_fungus_code_type', 'pt_breeding_materials', 'yes_no', 'pt_gen_unit'));
|
|
|
const paging = ref<any>(null);
|
|
|
-const form = ref<any>({});
|
|
|
+const form = ref<any>(null);
|
|
|
const did = ref('');
|
|
|
|
|
|
// 繁衍世代显示文案
|