lisy 4 dagar sedan
förälder
incheckning
6923d64d5d

+ 3 - 1
src/plant/port/port-create/index.vue

@@ -455,7 +455,7 @@
                         </up-form-item>
                         <up-form-item :borderBottom="false" label="具体位置" prop="landLayers" id="landLayerspppp">
                             <view class="d-flex flex-cln flex1">
-                                <view class="p-rtv pd-24 b-radius" v-for="(it, indexs) in form?.landLayers" :key="indexs" style="border: 1px solid #afddbb">
+                                <view class="p-rtv pd-24 b-radius mb-10" 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>
@@ -1417,6 +1417,8 @@ function openLaboratory() {
             form.value.landLayers = data;
         }
     });
+    console.log(form.value.baseId, 'form.value.baseId');
+
     uni.navigateTo({
         url: `/tools/select-cultivation-location/index`,
         success: (res) => {

+ 4 - 2
src/tools/select-cultivation-location/index.vue

@@ -261,8 +261,10 @@ onLoad(() => {
         const eventChannel = instanceproxy?.getOpenerEventChannel();
         eventChannel?.on('selectCultivationLocation', (data: any) => {
             if (data) {
-                const { list = [], baseId } = data;
-                form.value.baseId = baseId;
+                const { list = [], baseid } = data;
+                console.log(baseid, 'baseId');
+
+                form.value.baseId = baseid;
                 list.forEach((item: any) => {
                     checkeds.value[item.id] = {
                         id: item.id,