|
@@ -828,6 +828,7 @@ const form = ref<PlantationTaskForm>({
|
|
|
inoculationDosage: null,
|
|
inoculationDosage: null,
|
|
|
inoculationDosageUnit: null,
|
|
inoculationDosageUnit: null,
|
|
|
cultureMediumFormula: null,
|
|
cultureMediumFormula: null,
|
|
|
|
|
+ landFlag: null,
|
|
|
});
|
|
});
|
|
|
const changeStartTime = () => {
|
|
const changeStartTime = () => {
|
|
|
if (!form.value?.queryType6?.plannedEndDate) {
|
|
if (!form.value?.queryType6?.plannedEndDate) {
|
|
@@ -950,7 +951,6 @@ const validatePlantingAmount = (rule: any, value: any, callback: any) => {
|
|
|
};
|
|
};
|
|
|
// 判断是否要填接种数量
|
|
// 判断是否要填接种数量
|
|
|
const validateinoculation = (rule: any, value: any, callback: any) => {
|
|
const validateinoculation = (rule: any, value: any, callback: any) => {
|
|
|
- console.log(deawerData.value?.data[0]?.landType, 'deawerData.value?.data[0]?.landType');
|
|
|
|
|
if (+deawerData.value?.data[0]?.landType == 3) {
|
|
if (+deawerData.value?.data[0]?.landType == 3) {
|
|
|
console.log(form.value, 'form.value');
|
|
console.log(form.value, 'form.value');
|
|
|
|
|
|
|
@@ -1120,9 +1120,11 @@ function onDrawerConfirm(data: any) {
|
|
|
//确认养殖区域的个数
|
|
//确认养殖区域的个数
|
|
|
form.value.breedScale = data.data?.length;
|
|
form.value.breedScale = data.data?.length;
|
|
|
if (data?.aloneChecked) {
|
|
if (data?.aloneChecked) {
|
|
|
- form.value.landIds = [];
|
|
|
|
|
|
|
+ form.value.landFlag = 1;
|
|
|
|
|
+ form.value.landIds = data?.checkBox;
|
|
|
} else {
|
|
} else {
|
|
|
form.value.landIds = data?.checkBox;
|
|
form.value.landIds = data?.checkBox;
|
|
|
|
|
+ form.value.landFlag = 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 处理Baseinfo组件的关闭事件
|
|
// 处理Baseinfo组件的关闭事件
|
|
@@ -1394,7 +1396,7 @@ const getCache = async (taskType: TaskType | null) => {
|
|
|
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;
|
|
|
- if (res.data.landIds.length == 0) {
|
|
|
|
|
|
|
+ if (+res.data.landFlag) {
|
|
|
deawerData.value.aloneChecked = true;
|
|
deawerData.value.aloneChecked = true;
|
|
|
const landIds = await useClientRequest.get('/plt-api/app/baseLandInfo/pageList', { baseId: res.data.baseId });
|
|
const landIds = await useClientRequest.get('/plt-api/app/baseLandInfo/pageList', { baseId: res.data.baseId });
|
|
|
deawerData.value.data = landIds.rows;
|
|
deawerData.value.data = landIds.rows;
|
|
@@ -1446,7 +1448,7 @@ const getInfo = async (taskId: any) => {
|
|
|
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;
|
|
|
- if (res.data.landIds.length == 0) {
|
|
|
|
|
|
|
+ if (+res.data.landFlag) {
|
|
|
deawerData.value.aloneChecked = true;
|
|
deawerData.value.aloneChecked = true;
|
|
|
const landIds = await useClientRequest.get('/plt-api/app/baseLandInfo/pageList', { baseId: res.data.baseId });
|
|
const landIds = await useClientRequest.get('/plt-api/app/baseLandInfo/pageList', { baseId: res.data.baseId });
|
|
|
deawerData.value.data = landIds.rows;
|
|
deawerData.value.data = landIds.rows;
|