|
@@ -4,8 +4,10 @@
|
|
|
<ut-navbar title="种养殖任务详情" :fixed="false"></ut-navbar>
|
|
<ut-navbar title="种养殖任务详情" :fixed="false"></ut-navbar>
|
|
|
</template>
|
|
</template>
|
|
|
<template>
|
|
<template>
|
|
|
|
|
+ <!-- <up-alert :title="'备注' + form?.remark" type = "warning" ></up-alert> -->
|
|
|
<view class="startline-title pl-24 ml-24 mb-16">基地信息</view>
|
|
<view class="startline-title pl-24 ml-24 mb-16">基地信息</view>
|
|
|
- <view class="bg-#fff pd-24 mb-20 pt-0">
|
|
|
|
|
|
|
+ <view class="bg-#fff pd-24 mb-20">
|
|
|
|
|
+ <view v-if="form?.remark" class="pd4-16-20-16-20 bg-#EBF6EE c-primary f-s-30 f-w-5 b-radius mb-24">备注:{{ form?.remark }}</view>
|
|
|
<Baseinfo v-if="deawerData" :modeValue="deawerData" :baseType="form.taskType" :showClose="false" />
|
|
<Baseinfo v-if="deawerData" :modeValue="deawerData" :baseType="form.taskType" :showClose="false" />
|
|
|
</view>
|
|
</view>
|
|
|
<view class="startline-title pl-24 ml-24 mb-16">种养殖信息</view>
|
|
<view class="startline-title pl-24 ml-24 mb-16">种养殖信息</view>
|
|
@@ -76,7 +78,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="pt-16 pb-16 info-border-bottom">
|
|
<view class="pt-16 pb-16 info-border-bottom">
|
|
|
<view class="c-#666 f-s-30 mb-20">前茬植物:</view>
|
|
<view class="c-#666 f-s-30 mb-20">前茬植物:</view>
|
|
|
- <view class="pd-24 d-flex flex-cln bg-#FBFDFB border-#37A954 b-radius mb-20">
|
|
|
|
|
|
|
+ <view v-if="PreBiological" class="pd-24 d-flex flex-cln bg-#FBFDFB border-#37A954 b-radius mb-20">
|
|
|
<view class="mb-20">
|
|
<view class="mb-20">
|
|
|
<text class="c-#333 f-s-34 f-w-5 mr-5">{{ PreBiological?.varietyName }}</text>
|
|
<text class="c-#333 f-s-34 f-w-5 mr-5">{{ PreBiological?.varietyName }}</text>
|
|
|
<text class="c-#666 f-s-24">{{ PreBiological?.latinName }}</text>
|
|
<text class="c-#666 f-s-24">{{ PreBiological?.latinName }}</text>
|
|
@@ -90,6 +92,7 @@
|
|
|
<text class="c-#666 f-s-24">{{ PreBiological?.medicineName }}</text>
|
|
<text class="c-#666 f-s-24">{{ PreBiological?.medicineName }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view v-else class="">--</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="pt-16 pb-16 info-border-bottom">
|
|
<view class="pt-16 pb-16 info-border-bottom">
|
|
|
<text class="c-#666 f-s-30">备注:</text>
|
|
<text class="c-#666 f-s-30">备注:</text>
|
|
@@ -229,6 +232,138 @@
|
|
|
<text class="c-#333 f-s-30 f-w-5">{{ form.remark || '--' }}</text>
|
|
<text class="c-#333 f-s-30 f-w-5">{{ form.remark || '--' }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <!-- 种苗繁育字段显示(仅当 taskType == 11 时显示) -->
|
|
|
|
|
+ <template v-if="form.taskType == 11">
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">是否代繁育:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.delegateFlag ? selectDictLabel(yes_no, form.delegateFlag) : '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <view class="c-#666 f-s-30 mb-20">委托企业:</view>
|
|
|
|
|
+ <view class="pd-24 d-flex flex-cln bg-#FBFDFB border-#37A954 b-radius mb-20">
|
|
|
|
|
+ <view class="">
|
|
|
|
|
+ <text class="c-#333 f-s-34 f-w-5 mr-5">{{ form?.delegateInfo?.cusName }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="">
|
|
|
|
|
+ <text class="c-#666 f-s-24">{{ form?.delegateInfo?.crediteCode }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">溯源级别:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.mgMethod ? selectDictLabel(pt_mg_method, form.mgMethod) : '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <view class="c-#666 f-s-30 mb-20">植物名称:</view>
|
|
|
|
|
+ <view class="pd-24 d-flex flex-cln bg-#FBFDFB border-#37A954 b-radius mb-20">
|
|
|
|
|
+ <view class="mb-20">
|
|
|
|
|
+ <text class="c-#333 f-s-34 f-w-5 mr-5">{{ Biological?.varietyName }}</text>
|
|
|
|
|
+ <text class="c-#666 f-s-24">{{ Biological?.latinName }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mb-20">
|
|
|
|
|
+ <text class="c-#333 f-s-28 f-w-5 mr-5">{{ Biological?.genusName }}</text>
|
|
|
|
|
+ <text class="c-#666 f-s-24">{{ Biological?.genusLatinName }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="">
|
|
|
|
|
+ <text class="c-#666 f-s-24">产出:</text>
|
|
|
|
|
+ <text class="c-#666 f-s-24">{{ Biological?.medicineName }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">繁育批号:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.plantationCode || '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <view class="c-#666 f-s-30 mb-20">繁育技术规程:</view>
|
|
|
|
|
+ <ut-album v-if="form.technicalFile?.length > 0" :urls="form.technicalFile"></ut-album>
|
|
|
|
|
+ <text v-else class="c-#333 f-s-30 f-w-5">{{ '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">繁育方式:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.plantationMethod ? selectDictLabel(pt_feeding_method, form.plantationMethod) : '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">繁育日期:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ `${form.plannedStartDate} 至 ${form.plannedEndDate}` }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-if="+deawerData?.data[0]?.landType == 1" class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">种植面积:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.plantingAmount ? `${form.plantingAmount}${form.plantingUnit || ''}` : '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">接种数量:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.inoculationAmount ? `${form.inoculationAmount}${form?.inoculationUnit}` : '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">繁育量:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form?.plantingMgAmount ? `${form.plantingMgAmount}${form?.plantingMgUnit ? selectDictLabel(pt_inoculation_dosage_unit, form?.plantingMgUnit) : ''}` : '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">繁殖方式:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.reproductionType ? selectDictLabel(pt_reproduction_type, form.reproductionType) : '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">种植类型:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.plantationType ? selectDictLabel(pt_plantation_type, form.plantationType) : '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">播种方式:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.sowingMethod ? selectDictLabel(pt_sowing_method, form.sowingMethod) : '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">移栽方法:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.transplantMethod ? selectDictLabel(pt_transplant_method, form.transplantMethod) : '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <view class="c-#666 f-s-30 mb-20">前茬植物:</view>
|
|
|
|
|
+ <view v-if="PreBiological" class="pd-24 d-flex flex-cln bg-#FBFDFB border-#37A954 b-radius mb-20">
|
|
|
|
|
+ <view class="mb-20">
|
|
|
|
|
+ <text class="c-#333 f-s-34 f-w-5 mr-5">{{ PreBiological?.varietyName }}</text>
|
|
|
|
|
+ <text class="c-#666 f-s-24">{{ PreBiological?.latinName }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mb-20">
|
|
|
|
|
+ <text class="c-#333 f-s-28 f-w-5 mr-5">{{ PreBiological?.genusName }}</text>
|
|
|
|
|
+ <text class="c-#666 f-s-24">{{ PreBiological?.genusLatinName }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="">
|
|
|
|
|
+ <text class="c-#666 f-s-24">产出:</text>
|
|
|
|
|
+ <text class="c-#666 f-s-24">{{ PreBiological?.medicineName }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-else class="">--</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="pt-16 pb-16 info-border-bottom">
|
|
|
|
|
+ <text class="c-#666 f-s-30">备注:</text>
|
|
|
|
|
+ <text class="c-#333 f-s-30 f-w-5">{{ form.remark || '--' }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <template v-if="animalIds?.length > 0">
|
|
|
|
|
+ <view class="startline-title pl-24 ml-24 mb-16">个体标识信息</view>
|
|
|
|
|
+ <view class="bg-#fff pd-24 mb-20">
|
|
|
|
|
+ <template v-for="(item, index) in animalIds" :key="index">
|
|
|
|
|
+ <view class="pd-34 border-#37A954 mb-20 d-flex flex-cln b-radius">
|
|
|
|
|
+ <text>{{ +index + 1 }}</text>
|
|
|
|
|
+ <text>{{ item }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <view class="pd-24">
|
|
|
|
|
+ <view class="d-flex j-c pd-10">
|
|
|
|
|
+ <view class="mr-10 c-#ccc f-s-24">
|
|
|
|
|
+ <text>最新操作人:</text>
|
|
|
|
|
+ <text>{{ form?.updateByName || form?.createByName }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="c-#ccc f-s-24">
|
|
|
|
|
+ <text>最新操作时间:</text>
|
|
|
|
|
+ <text>{{ form?.updateTime || form?.createTime }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="">
|
|
|
|
|
+ <up-button type="primary" class="b-radius" @click="handlechoseConfirm">修改</up-button>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
</z-paging>
|
|
</z-paging>
|
|
@@ -240,7 +375,6 @@ const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
const { pt_feed_amount_unit, pt_planting_mg_unit, pt_inoculation_unit, pt_inoculation_dosage_unit, pt_transplant_method, pt_plantation_type, pt_sowing_method, pt_area_unit, pt_plantation_method, pt_reproduction_type, pt_scale_unit, pt_feeding_method, pt_mg_method, pt_task_gap_flag, pt_task_type, pt_org_type, yes_no } = toRefs<any>(
|
|
const { pt_feed_amount_unit, pt_planting_mg_unit, pt_inoculation_unit, pt_inoculation_dosage_unit, pt_transplant_method, pt_plantation_type, pt_sowing_method, pt_area_unit, pt_plantation_method, pt_reproduction_type, pt_scale_unit, pt_feeding_method, pt_mg_method, pt_task_gap_flag, pt_task_type, pt_org_type, yes_no } = toRefs<any>(
|
|
|
proxy?.useDict('pt_feed_amount_unit', 'pt_planting_mg_unit', 'pt_inoculation_unit', 'pt_inoculation_dosage_unit', 'pt_transplant_method', 'pt_plantation_type', 'pt_sowing_method', 'pt_area_unit', 'pt_plantation_method', 'pt_reproduction_type', 'pt_scale_unit', 'pt_feeding_method', 'pt_mg_method', 'pt_task_gap_flag', 'pt_task_type', 'pt_org_type', 'yes_no')
|
|
proxy?.useDict('pt_feed_amount_unit', 'pt_planting_mg_unit', 'pt_inoculation_unit', 'pt_inoculation_dosage_unit', 'pt_transplant_method', 'pt_plantation_type', 'pt_sowing_method', 'pt_area_unit', 'pt_plantation_method', 'pt_reproduction_type', 'pt_scale_unit', 'pt_feeding_method', 'pt_mg_method', 'pt_task_gap_flag', 'pt_task_type', 'pt_org_type', 'yes_no')
|
|
|
);
|
|
);
|
|
|
-const params = ref();
|
|
|
|
|
const paging = ref();
|
|
const paging = ref();
|
|
|
const list = ref();
|
|
const list = ref();
|
|
|
const form = ref<any>({
|
|
const form = ref<any>({
|
|
@@ -281,13 +415,14 @@ const form = ref<any>({
|
|
|
},
|
|
},
|
|
|
cultureMediumFormula: null,
|
|
cultureMediumFormula: null,
|
|
|
});
|
|
});
|
|
|
-const deawerData = ref(null);
|
|
|
|
|
|
|
+const deawerData = ref<any>(null);
|
|
|
const animalIds = ref();
|
|
const animalIds = ref();
|
|
|
// 所选动植物
|
|
// 所选动植物
|
|
|
const Biological = ref<any>(null);
|
|
const Biological = ref<any>(null);
|
|
|
const PreBiological = ref<any>(null);
|
|
const PreBiological = ref<any>(null);
|
|
|
-const getCache = async () => {
|
|
|
|
|
- const res = await useClientRequest.get<any>(`/plt-api/app/plantationTask/getInfo/${params.value}`);
|
|
|
|
|
|
|
+const taskId = ref();
|
|
|
|
|
+const getInfo = async () => {
|
|
|
|
|
+ const res = await useClientRequest.get<any>(`/plt-api/app/plantationTask/getInfo/${taskId.value}`);
|
|
|
if (!res.data) return;
|
|
if (!res.data) return;
|
|
|
form.value = res.data;
|
|
form.value = res.data;
|
|
|
if (res.data.animalIds) {
|
|
if (res.data.animalIds) {
|
|
@@ -308,6 +443,7 @@ const getCache = async () => {
|
|
|
deawerData.value = {};
|
|
deawerData.value = {};
|
|
|
deawerData.value.baseName = res.data.baseRef.baseName;
|
|
deawerData.value.baseName = res.data.baseRef.baseName;
|
|
|
deawerData.value.areaUnit = res.data.baseRef.baseInfo.areaUnit;
|
|
deawerData.value.areaUnit = res.data.baseRef.baseInfo.areaUnit;
|
|
|
|
|
+ deawerData.value.area = res.data.baseRef.baseInfo.area;
|
|
|
deawerData.value.address = res.data.baseRef.baseInfo.address;
|
|
deawerData.value.address = res.data.baseRef.baseInfo.address;
|
|
|
// adcodeName
|
|
// adcodeName
|
|
|
deawerData.value.adcodeName = res.data.baseRef.baseInfo.adcodeName;
|
|
deawerData.value.adcodeName = res.data.baseRef.baseInfo.adcodeName;
|
|
@@ -328,10 +464,13 @@ const getCache = async () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
+const handlechoseConfirm = () => {
|
|
|
|
|
+ uni.$u.route({ type: 'navigateTo', url: '/plant/port/port-create/index', params: { taskId: taskId.value } });
|
|
|
|
|
+};
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
- getCache();
|
|
|
|
|
|
|
+ getInfo();
|
|
|
});
|
|
});
|
|
|
onLoad((options: any) => {
|
|
onLoad((options: any) => {
|
|
|
- params.value = options?.id;
|
|
|
|
|
|
|
+ taskId.value = options?.id;
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|