|
@@ -455,10 +455,10 @@
|
|
|
</up-form-item>
|
|
</up-form-item>
|
|
|
<up-form-item :borderBottom="false" label="具体位置" prop="landLayers" id="landLayerspppp">
|
|
<up-form-item :borderBottom="false" label="具体位置" prop="landLayers" id="landLayerspppp">
|
|
|
<Go_button @click="openLaboratory" title="请选择具体位置" style="flex: 1" />
|
|
<Go_button @click="openLaboratory" title="请选择具体位置" style="flex: 1" />
|
|
|
- <view class="w-100%" v-for="(it, indexs) in form?.landLayers" :key="indexs">
|
|
|
|
|
- <view class="">{{ it?.layers }}</view>
|
|
|
|
|
- <view class="">{{ stringifyCheckedList(it?.checkedList, Number(it?.capacityAmount || 0)) }}</view>
|
|
|
|
|
- <view class="" @click="deleteLayer(indexs)">删除</view>
|
|
|
|
|
|
|
+ <view class="w-100% p-rtv" v-for="(it, indexs) in form?.landLayers" :key="indexs" style="border: 1px solid #afddbb">
|
|
|
|
|
+ <view class="c-#333 f-s-34 f-w-5">{{ it?.landName }}</view>
|
|
|
|
|
+ <view class="c-#666 f-s-24">{{ stringifyCheckedList(it?.checkedList, Number(it?.capacityAmount || 0)) }}</view>
|
|
|
|
|
+ <view class="c-#F81242 h-20 w-20" style="position: absolute; right: 4rpx; top: 4rpx" @click="deleteLayer(indexs)">x</view>
|
|
|
</view>
|
|
</view>
|
|
|
</up-form-item>
|
|
</up-form-item>
|
|
|
</view>
|
|
</view>
|
|
@@ -1005,7 +1005,7 @@ const validateBreedingTime = (rule: any, value: any, callback: any) => {
|
|
|
|
|
|
|
|
// 自定义校验函数:养殖量校验
|
|
// 自定义校验函数:养殖量校验
|
|
|
const validateBreedingAmount = (rule: any, value: any, callback: any) => {
|
|
const validateBreedingAmount = (rule: any, value: any, callback: any) => {
|
|
|
- if (+deawerData.value?.data[0]?.landType == 3) {
|
|
|
|
|
|
|
+ if (+deawerData.value?.data?.[0]?.landType == 3) {
|
|
|
callback();
|
|
callback();
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -1408,6 +1408,12 @@ function handleLaboratoryClose() {
|
|
|
}
|
|
}
|
|
|
// 处理实验室的打开
|
|
// 处理实验室的打开
|
|
|
function openLaboratory() {
|
|
function openLaboratory() {
|
|
|
|
|
+ uni.$once('cultivationLocationSelected', function (data) {
|
|
|
|
|
+ console.log(data);
|
|
|
|
|
+ if (data) {
|
|
|
|
|
+ form.value.landLayers = data;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: `/tools/select-cultivation-location/index`,
|
|
url: `/tools/select-cultivation-location/index`,
|
|
|
success: (res) => {
|
|
success: (res) => {
|