瀏覽代碼

修改往来单位管理页面

huangxw 1 月之前
父節點
當前提交
d70b346f70

+ 4 - 0
src/assets/styles/public.scss

@@ -175,3 +175,7 @@ $colors: (
     box-shadow: 6rpx 0px 27rpx 0px rgba(#2a6d52, 0.3);
     background-color: #fff;
 }
+
+.base-shadow {
+    box-shadow: 3rpx 0px 6rpx 0px #C6D2CB;
+}

+ 75 - 10
src/components/ut-action-sheet/ut-action-sheet.vue

@@ -8,7 +8,7 @@
         <view @click="showModel = true" class="flex1">
             <slot></slot>
         </view>
-        <up-popup v-model:show="showModel" mode="center" round="30rpx" closeable @close="showModel = false">
+        <up-popup v-model:show="showModel" mode="center" round="30rpx" :safeAreaInsetBottom="false" closeable @close="showModel = false">
             <view class="w-700">
                 <view class="pd-24">
                     <view class="f-s-32 c-#333 f-w-500">{{ title }}</view>
@@ -27,6 +27,10 @@
                         </ut-row>
                     </view>
                 </scroll-view>
+                <view v-if="multiple" class="d-flex j-c pd-24">
+                    <up-button class="mr-20" @click="onCancel">取消</up-button>
+                    <up-button type="primary" @click="onConfirm">确定</up-button>
+                </view>
             </view>
         </up-popup>
     </template>
@@ -36,7 +40,8 @@ import { ref, watch, computed } from 'vue';
 
 const props = defineProps({
     modelValue: {
-        type: Array,
+        // 支持数组或字符串:多选时根据现有类型返回对应格式
+        type: [Array, String],
         default: () => [],
     },
 
@@ -64,16 +69,39 @@ const props = defineProps({
 });
 const options = computed(() => {
     return props.tabs.map((item: any) => {
+        // 如果 elTagClass正则表达式匹配的是数字,则作为span使用,否则默认10,如果是个对象字符,取span属性值
+        let span = 10;
+        //     Unexpected end of JSON input
+        // at JSON.parse (<anonymous>)
+        if (item.elTagClass) {
+            const num = Number(item.elTagClass);
+            if (!isNaN(num)) {
+                span = num;
+            } else {
+                try {
+                    const obj = JSON.parse(item.elTagClass);
+                    if (obj && obj.span) {
+                        span = obj.span;
+                    }
+                } catch (e) {
+                    // do nothing
+                }
+            }
+
+        }
         return {
             name: item.label,
             value: item.value,
-            span: item.elTagClass || 10,
+            span,
         };
     });
 });
 const showModel = ref(false);
 const emit = defineEmits(['close', 'confirm', 'open', 'update:show', 'update:modelValue', 'change']);
 const checkeds = ref<any>({});
+// 未选择之前的
+const initialCheckeds = ref<any>({});
+
 const close = () => {
     showModel.value = false;
     // 如果有初始值,恢复初始值
@@ -81,6 +109,12 @@ const close = () => {
     emit('update:show', false);
     emit('close');
 };
+
+// 获取当前已选中的值列表
+const getSelectedValues = () => {
+    return Object.keys(checkeds.value).filter((key) => checkeds.value[key]);
+};
+
 const clickCol = (item: any) => {
     // 判断是单选还是多选
     if (props.multiple) {
@@ -102,8 +136,28 @@ const clickCol = (item: any) => {
         close();
     }
 };
-// 未选择之前的
-const initialCheckeds = ref({});
+
+// 多选确认
+const onConfirm = () => {
+    const values = getSelectedValues();
+    let out: any;
+    if (Array.isArray(props.modelValue)) {
+        out = values;
+    } else {
+        // 字符串场景下,用逗号拼接
+        out = values.join(',');
+    }
+    emit('update:modelValue', out);
+    emit('change', out);
+    // 确认后更新初始选中值
+    initialCheckeds.value = { ...checkeds.value };
+    close();
+};
+
+// 多选取消
+const onCancel = () => {
+    close();
+};
 const selectChange = (item: any) => {
     const selectedValues = options.value[item.detail.value].value;
     emit('update:modelValue', selectedValues);
@@ -115,16 +169,27 @@ watch(
     (newVal: any) => {
         // 初始化已选择项
         let selected: any = {};
-        if (props.multiple && Array.isArray(newVal)) {
-            newVal.forEach((val: any) => {
-                selected[val] = true;
-            });
-        } else if (!props.multiple && newVal != null) {
+        if (props.multiple) {
+            if (Array.isArray(newVal)) {
+                newVal.forEach((val: any) => {
+                    selected[val] = true;
+                });
+            } else if (typeof newVal === 'string' && newVal) {
+                newVal
+                    .split(/[,,]/)
+                    .map((val: string) => val.trim())
+                    .filter((val: string) => !!val)
+                    .forEach((val: string) => {
+                        selected[val] = true;
+                    });
+            }
+        } else if (newVal != null) {
             selected = {
                 [newVal as string]: true,
             };
         }
         checkeds.value = selected;
+        initialCheckeds.value = { ...selected };
     },
     { immediate: true },
 );

+ 24 - 0
src/pages.json

@@ -221,6 +221,30 @@
                 }
             ]
         },
+        // 往来单位管理
+        {
+            "root": "plant/contact-unit",
+            "pages": [
+                {
+                    "path": "unit-list/index",
+                    "style": {
+                        "navigationBarTitleText": "往来单位管理"
+                    }
+                },
+                {
+                    "path": "unit-edit/index",
+                    "style": {
+                        "navigationBarTitleText": "新增往来单位信息"
+                    }
+                },
+                {
+                    "path": "unit-detail/index",
+                    "style": {
+                        "navigationBarTitleText": "往来单位详情"
+                    }
+                }
+            ]
+        },
         {
             "root": "tools",
             "pages": [

+ 1 - 1
src/pages/plant/more/index.vue

@@ -6,7 +6,7 @@
         <view class="base-content pd-20">
             <up-grid :border="false" :column="3" gap="10rpx">
                 <up-grid-item>
-                    <view class="pd2-10-0 d-flex flex-cln a-c j-c" @click="$u.route({ url: '/plant/storage/storage-room/list/index' })">
+                    <view class="pd2-10-0 d-flex flex-cln a-c j-c" @click="$u.route({ url: '/plant/contact-unit/unit-list/index' })">
                         <view class="w-109 h-109 bg-#fff radius-50% d-flex a-c j-c mb-10">
                             <image class="w-72 h-72" src="@/static/images/plant/storage/nav_kfgl_icon.png" mode="widthFix" />
                         </view>

+ 289 - 292
src/plant/base/base-detail/index.vue

@@ -1,329 +1,326 @@
 <template>
-    <view class="ksqulc">
-        <z-paging ref="paging" bgColor="#F7F7F7" safe-area-inset-bottom paging-class="paging-btm-shadow" refresher-only @onRefresh="onRefresh" scroll-with-animation>
-            <template #top>
-                <ut-navbar title="基地详情" :fixed="false" border></ut-navbar>
-                <view class="bg-fff mb-20">
-                    <view class="pd-5"></view>
-                    <ut-tabs v-model="activeTab" :tabs="tabs" mode="btw" @change="changeActiveTab"></ut-tabs>
+    <z-paging ref="paging" bgColor="#F7F7F7" safe-area-inset-bottom paging-class="paging-btm-shadow" refresher-only @onRefresh="onRefresh" scroll-with-animation>
+        <template #top>
+            <ut-navbar title="基地详情" :fixed="false" border></ut-navbar>
+            <view class="bg-fff mb-20">
+                <view class="pd-5"></view>
+                <ut-tabs v-model="activeTab" :tabs="tabs" mode="btw" @change="changeActiveTab"></ut-tabs>
+            </view>
+        </template>
+        <view class="p-rtv">
+            <!-- 基本信息 -->
+            <view ref="baseRef" class="pd-24" id="base12345">
+                <view class="startline-title">基本信息</view>
+            </view>
+            <view class="pd-24 bg-#fff mb-10">
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">基地类型:</span>
+                    <span class="c-#333">{{ selectDictLabel(pt_base_type, form?.baseInfo?.baseType) || '-' }}</span>
                 </view>
-            </template>
-            <view class="p-rtv">
-                <!-- 基本信息 -->
-                <view ref="baseRef" class="pd-24" id="base12345">
-                    <view class="startline-title">基本信息</view>
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">基地名称:</span>
+                    <span class="c-#333">{{ form?.baseInfo?.baseName || '-' }}</span>
                 </view>
-                <view class="pd-24 bg-#fff mb-10">
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">基地编号:</span>
+                    <span class="c-#333">{{ form?.baseInfo?.baseCode || '-' }}</span>
+                </view>
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">建设时间:</span>
+                    <span class="c-#333">{{ form?.baseInfo?.buildDate || '-' }}</span>
+                </view>
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">基地组织方式:</span>
+                    <span class="c-#333">{{ selectDictLabel(pt_org_type, form?.baseInfo?.orgType) || '-' }}</span>
+                </view>
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">基地负责人:</span>
+                    <span class="c-#333">{{ form?.baseInfo?.contactName || '-' }}</span>
+                </view>
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">联系电话:</span>
+                    <span class="c-#333">{{ form?.baseInfo?.contactTel || '-' }}</span>
+                </view>
+                <template v-if="['1', '2'].includes(form?.baseInfo?.baseType)">
                     <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">基地类型:</span>
-                        <span class="c-#333">{{ selectDictLabel(pt_base_type, form?.baseInfo?.baseType) || '-' }}</span>
+                        <span class="c-#666">是否为GAP基地:</span>
+                        <span class="c-#333">{{ selectDictLabel(yes_no, form?.baseInfo?.gapFlag) || '-' }}</span>
                     </view>
-                    <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">基地名称:</span>
-                        <span class="c-#333">{{ form?.baseInfo?.baseName || '-' }}</span>
+                    <view v-if="form?.baseInfo?.gapId" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">关联GAP信息:</view>
+                        <view class="bg-#FBFDFB pd-24 p-rtv flex1 radius-10 gap-info-card">
+                            <view class="f-s-32 f-w-500 c-#333">{{ form?.baseInfo?.gapInfo?.gapBaseName || '-' }}</view>
+                            <view class="f-s-24 c-#ccc mb-10">{{ form?.baseInfo?.gapInfo?.ratedDate }}获评</view>
+                            <view class="d-flex gap-10 flex-wrap">
+                                <view class="w-330 f-s-28">
+                                    <span class="c-#666">申报品种:</span>
+                                    <span class="c-#333 f-w-500">{{ form?.baseInfo?.gapInfo?.medicineName }}</span>
+                                </view>
+                                <view class="w-290 f-s-28">
+                                    <span class="c-#666">基地面积:</span>
+                                    <span class="c-#333 f-w-500">{{ form?.baseInfo?.gapInfo?.area }}{{ form?.baseInfo?.gapInfo?.areaUnit }}</span>
+                                </view>
+                                <view class="f-s-28">
+                                    <span class="c-#666">基地地址:</span>
+                                    <span class="c-#333 f-w-500">{{ form?.baseInfo?.gapInfo?.adcodeName }} {{ form?.baseInfo?.gapInfo?.address || '-' }}</span>
+                                </view>
+                            </view>
+                        </view>
                     </view>
-                    <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">基地编号:</span>
-                        <span class="c-#333">{{ form?.baseInfo?.baseCode || '-' }}</span>
+                </template>
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">基地所在地区:</span>
+                    <span class="c-#333">{{ form?.baseInfo?.gapInfo?.adcodeName || '-' }}</span>
+                </view>
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">详细地址:</span>
+                    <span class="c-#333">{{ form?.baseInfo?.gapInfo?.address || '-' }}</span>
+                </view>
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <view class="f-s-30 c-#666 mb-10">基地范围:</view>
+                    <view class="bg-#f7f7f7 d-flex ov-hd p-rtv">
+                        <image @click="previewImage([form?.baseInfo?.gapInfo?.basePic])" class="w-full" v-if="form?.baseInfo?.gapInfo?.basePic" preview :src="form?.baseInfo?.gapInfo?.basePic" mode="'widthFix'"></image>
+                        <view v-else class="w-full h-120 d-flex a-c j-c c-999">暂无基地范围</view>
                     </view>
-                    <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">建设时间:</span>
-                        <span class="c-#333">{{ form?.baseInfo?.buildDate || '-' }}</span>
+                </view>
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">基地面积:</span>
+                    <span class="c-#333">{{ form?.baseInfo?.gapInfo?.area || '-' }}{{ form?.baseInfo?.gapInfo?.areaUnit || mapUnitByBaseType[form?.baseInfo?.baseType || '1'] }}</span>
+                </view>
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">基地经纬度:</span>
+                    <span class="c-#333">E{{ form?.baseInfo?.gapInfo?.lng || '-' }}, N{{ form?.baseInfo?.gapInfo?.lat || '-' }}</span>
+                </view>
+            </view>
+            <view class="h-1" id="plot12345"></view>
+            <!-- 地块/圈舍/培养架信息 -->
+            <view ref="plotRef" class="pd-24">
+                <view class="startline-title" v-if="form?.baseInfo?.baseType == '1'">地块信息</view>
+                <view class="startline-title" v-else-if="form?.baseInfo?.baseType == '2'">圈舍信息</view>
+                <view class="startline-title" v-else-if="form?.baseInfo?.baseType == '3'">培养架信息</view>
+            </view>
+            <view class="pd-24 bg-#fff mb-10">
+                <template v-if="Array.isArray(form?.landInfoList) && form.landInfoList.length">
+                    <view v-for="(item, index) in form.landInfoList" :key="index" class="plot-item pd-24 mb-20">
+                        <view class="d-flex mb-16">
+                            <view class="f-s-32 f-w-5 c-#333 flex1 mr-10">{{ item?.landName || '-' }}</view>
+                            <view v-if="item?.contactName" class="f-s-24 c-#333">负责人:{{ item?.contactName }}</view>
+                        </view>
+                        <template v-if="form?.baseInfo?.baseType == '3'">
+                            <view class="d-flex flex-wrap gap-10">
+                                <view class="f-s-28 c-#666 w-310">
+                                    <span>层数:</span>
+                                    <span class="c-#333 f-w-5">{{ item?.layers || '-' }}</span>
+                                </view>
+                                <view class="f-s-28 c-#666 w-310">
+                                    <span>每层容量:</span>
+                                    <span class="c-#333 f-w-5">{{ item?.capacityAmount || '-' }}{{ item?.capacityUnit || '-' }}</span>
+                                </view>
+                                <view class="f-s-28 c-#666 w-310">
+                                    <span>总容量:</span>
+                                    <span class="c-#333 f-w-5">{{ (item?.capacityAmount || 0) * (item?.layers || 0) || '-' }}{{ item?.capacityUnit || '-' }}</span>
+                                </view>
+                                <view class="f-s-28 c-#666 w-310">
+                                    <span v-if="item?.lightType" class="mr-10">{{ selectDictLabel(pt_light_type, item?.lightType) }}</span>
+                                    <span v-if="item?.tempeStatus">{{ +item?.tempeStatus ? '有独立温控' : '无独立温控' }}</span>
+                                </view>
+                            </view>
+                        </template>
+                        <template v-else>
+                            <view class="f-s-28 c-#666">
+                                <span>面积:</span>
+                                <span class="c-#333 f-w-5">{{ item?.area || '-' }}{{ item?.areaUnit || '-' }}</span>
+                            </view>
+                        </template>
                     </view>
+                </template>
+                <view v-else class="c-999 f-s-28">暂无信息</view>
+            </view>
+            <!-- 选址依据及环境信息 -->
+            <view class="pd-24">
+                <view class="startline-title">选址依据及环境信息</view>
+            </view>
+            <view class="h-1" id="environment12345"></view>
+            <!-- 基地类型 1:种植基地 -->
+            <template v-if="form?.baseInfo?.baseType == '1'">
+                <view class="pd-24 bg-#fff mb-10">
+                    <view class="f-s-32 c-#333 f-w-600">选址依据</view>
                     <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">基地组织方式:</span>
-                        <span class="c-#333">{{ selectDictLabel(pt_org_type, form?.baseInfo?.orgType) || '-' }}</span>
+                        <span class="c-#666">是否道地产区:</span>
+                        <span class="c-#333">{{ selectDictLabel(yes_no, form?.environmentInfo?.daoStatus) || '-' }}</span>
                     </view>
-                    <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">基地负责人:</span>
-                        <span class="c-#333">{{ form?.baseInfo?.contactName || '-' }}</span>
+                    <view v-if="form?.environmentInfo?.adaptFile?.length" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">基地选址依据/标准:</view>
+                        <ut-album :urls="form?.environmentInfo?.adaptFile"></ut-album>
+                    </view>
+                    <view v-if="form?.environmentInfo?.accordFile?.length" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">适应性证明材料:</view>
+                        <ut-album :urls="form?.environmentInfo?.accordFile"></ut-album>
                     </view>
+                </view>
+                <view class="pd-24 bg-#fff mb-10">
+                    <view class="f-s-32 c-#333 f-w-600">环境信息</view>
                     <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">联系电话:</span>
-                        <span class="c-#333">{{ form?.baseInfo?.contactTel || '-' }}</span>
+                        <span class="c-#666">土壤类型:</span>
+                        <span class="c-#333">{{ selectDictLabel(pt_soil_type, form?.environmentInfo?.soilType) || '-' }}</span>
                     </view>
-                    <template v-if="['1', '2'].includes(form?.baseInfo?.baseType)">
-                        <view class="f-s-30 pd2-16-0 info-border-bottom">
-                            <span class="c-#666">是否为GAP基地:</span>
-                            <span class="c-#333">{{ selectDictLabel(yes_no, form?.baseInfo?.gapFlag) || '-' }}</span>
-                        </view>
-                        <view v-if="form?.baseInfo?.gapId" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">关联GAP信息:</view>
-                            <view class="bg-#FBFDFB pd-24 p-rtv flex1 radius-10 gap-info-card">
-                                <view class="f-s-32 f-w-500 c-#333">{{ form?.baseInfo?.gapInfo?.gapBaseName || '-' }}</view>
-                                <view class="f-s-24 c-#ccc mb-10">{{ form?.baseInfo?.gapInfo?.ratedDate }}获评</view>
-                                <view class="d-flex gap-10 flex-wrap">
-                                    <view class="w-330 f-s-28">
-                                        <span class="c-#666">申报品种:</span>
-                                        <span class="c-#333 f-w-500">{{ form?.baseInfo?.gapInfo?.medicineName }}</span>
-                                    </view>
-                                    <view class="w-290 f-s-28">
-                                        <span class="c-#666">基地面积:</span>
-                                        <span class="c-#333 f-w-500">{{ form?.baseInfo?.gapInfo?.area }}{{ form?.baseInfo?.gapInfo?.areaUnit }}</span>
-                                    </view>
-                                    <view class="f-s-28">
-                                        <span class="c-#666">基地地址:</span>
-                                        <span class="c-#333 f-w-500">{{ form?.baseInfo?.gapInfo?.adcodeName }} {{ form?.baseInfo?.gapInfo?.address || '-' }}</span>
-                                    </view>
-                                </view>
-                            </view>
-                        </view>
-                    </template>
                     <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">基地所在地区:</span>
-                        <span class="c-#333">{{ form?.baseInfo?.gapInfo?.adcodeName || '-' }}</span>
+                        <span class="c-#666">土壤质地:</span>
+                        <span class="c-#333">{{ selectDictLabel(pt_soil_texture, form?.environmentInfo?.soilTexture) || '-' }}</span>
                     </view>
                     <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">详细地址:</span>
-                        <span class="c-#333">{{ form?.baseInfo?.gapInfo?.address || '-' }}</span>
+                        <span class="c-#666">有机质含量:</span>
+                        <span class="c-#333">{{ form?.environmentInfo?.organic || '-' }}</span>
                     </view>
                     <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <view class="f-s-30 c-#666 mb-10">基地范围:</view>
-                        <view class="bg-#f7f7f7 d-flex ov-hd p-rtv">
-                            <image @click="previewImage([form?.baseInfo?.gapInfo?.basePic])" class="w-full" v-if="form?.baseInfo?.gapInfo?.basePic" preview :src="form?.baseInfo?.gapInfo?.basePic" mode="'widthFix'"></image>
-                            <view v-else class="w-full h-120 d-flex a-c j-c c-999">暂无基地范围</view>
-                        </view>
+                        <span class="c-#666">土壤PH值:</span>
+                        <span class="c-#333">{{ form?.environmentInfo?.soilPh || '-' }}</span>
                     </view>
                     <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">基地面积:</span>
-                        <span class="c-#333">{{ form?.baseInfo?.gapInfo?.area || '-' }}{{ form?.baseInfo?.gapInfo?.areaUnit || mapUnitByBaseType[form?.baseInfo?.baseType || '1'] }}</span>
+                        <span class="c-#666">水源类型:</span>
+                        <span class="c-#333">{{ selectDictLabel(pt_water_type, form?.environmentInfo?.waterType) || '-' }}</span>
                     </view>
                     <view class="f-s-30 pd2-16-0 info-border-bottom">
-                        <span class="c-#666">基地经纬度:</span>
-                        <span class="c-#333">E{{ form?.baseInfo?.gapInfo?.lng || '-' }}, N{{ form?.baseInfo?.gapInfo?.lat || '-' }}</span>
+                        <span class="c-#666">无霜期:</span><span class="c-#333">{{ form?.environmentInfo?.notFrost || '-' }}<text v-if="form?.environmentInfo?.notFrost">天</text></span>
+                    </view>
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">年降水量:</span><span class="c-#333">{{ form?.environmentInfo?.precipitation || '-' }}<text v-if="form?.environmentInfo?.precipitation">mm</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">年平均气温:</span><span class="c-#333">{{ form?.environmentInfo?.avgTem || '-' }}<text v-if="form?.environmentInfo?.avgTem">℃</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">年绝对最高气温:</span><span class="c-#333">{{ form?.environmentInfo?.maxTem || '-' }}<text v-if="form?.environmentInfo?.maxTem">℃</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">年绝对最低气温:</span><span class="c-#333">{{ form?.environmentInfo?.minTem || '-' }}<text v-if="form?.environmentInfo?.minTem">℃</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">年日照时数:</span><span class="c-#333">{{ form?.environmentInfo?.sunshineHours || '-' }}<text v-if="form?.environmentInfo?.sunshineHours">小时</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">海拔:</span><span class="c-#333">{{ form?.environmentInfo?.altitude || '-' }}<text v-if="form?.environmentInfo?.altitude">米</text></span></view
+                    >
+                    <view v-if="form?.environmentInfo?.report?.length" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">水、土壤、大气等环评报告:</view>
+                        <ut-album :urls="form?.environmentInfo?.report"></ut-album>
+                    </view>
+                    <view v-if="form?.environmentInfo?.basePic" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">基地图片:</view>
+                        <ut-album :urls="form?.environmentInfo?.basePic"></ut-album>
+                    </view>
+                    <view v-if="form?.environmentInfo?.baseVoice?.length" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">基地视频:</view>
+                        <ut-album :urls="form?.environmentInfo?.baseVoice"></ut-album>
                     </view>
                 </view>
-                <view class="h-1" id="plot12345"></view>
-                <!-- 地块/圈舍/培养架信息 -->
-                <view ref="plotRef" class="pd-24">
-                    <view class="startline-title" v-if="form?.baseInfo?.baseType == '1'">地块信息</view>
-                    <view class="startline-title" v-else-if="form?.baseInfo?.baseType == '2'">圈舍信息</view>
-                    <view class="startline-title" v-else-if="form?.baseInfo?.baseType == '3'">培养架信息</view>
-                </view>
+            </template>
+
+            <!-- 基地类型 2:养殖基地 -->
+            <template v-else-if="form?.baseInfo?.baseType == '2'">
                 <view class="pd-24 bg-#fff mb-10">
-                    <template v-if="Array.isArray(form?.landInfoList) && form.landInfoList.length">
-                        <view v-for="(item, index) in form.landInfoList" :key="index" class="plot-item pd-24 mb-20">
-                            <view class="d-flex mb-16">
-                                <view class="f-s-32 f-w-5 c-#333 flex1 mr-10">{{ item?.landName || '-' }}</view>
-                                <view v-if="item?.contactName" class="f-s-24 c-#333">负责人:{{ item?.contactName }}</view>
-                            </view>
-                            <template v-if="form?.baseInfo?.baseType == '3'">
-                                <view class="d-flex flex-wrap gap-10">
-                                    <view class="f-s-28 c-#666 w-310">
-                                        <span>层数:</span>
-                                        <span class="c-#333 f-w-5">{{ item?.layers || '-' }}</span>
-                                    </view>
-                                    <view class="f-s-28 c-#666 w-310">
-                                        <span>每层容量:</span>
-                                        <span class="c-#333 f-w-5">{{ item?.capacityAmount || '-' }}{{ item?.capacityUnit || '-' }}</span>
-                                    </view>
-                                    <view class="f-s-28 c-#666 w-310">
-                                        <span>总容量:</span>
-                                        <span class="c-#333 f-w-5">{{ (item?.capacityAmount || 0) * (item?.layers || 0) || '-' }}{{ item?.capacityUnit || '-' }}</span>
-                                    </view>
-                                    <view class="f-s-28 c-#666 w-310">
-                                        <span v-if="item?.lightType" class="mr-10">{{ selectDictLabel(pt_light_type, item?.lightType) }}</span>
-                                        <span v-if="item?.tempeStatus">{{ +item?.tempeStatus ? '有独立温控' : '无独立温控' }}</span>
-                                    </view>
-                                </view>
-                            </template>
-                            <template v-else>
-                                <view class="f-s-28 c-#666">
-                                    <span>面积:</span>
-                                    <span class="c-#333 f-w-5">{{ item?.area || '-' }}{{ item?.areaUnit || '-' }}</span>
-                                </view>
-                            </template>
-                        </view>
-                    </template>
-                    <view v-else class="c-999 f-s-28">暂无信息</view>
-                </view>
-                <!-- 选址依据及环境信息 -->
-                <view  class="pd-24">
-                    <view class="startline-title">选址依据及环境信息</view>
+                    <view class="f-s-32 c-#333 f-w-600">选址依据</view>
+                    <view class="f-s-30 pd2-16-0 info-border-bottom">
+                        <span class="c-#666">是否道地产区:</span>
+                        <span class="c-#333">{{ selectDictLabel(yes_no, form?.environmentInfo?.daoStatus) || '-' }}</span>
+                    </view>
+                    <view v-if="form?.environmentInfo?.adaptFile?.length" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">基地选址依据/标准:</view>
+                        <ut-album :urls="form?.environmentInfo?.adaptFile"></ut-album>
+                    </view>
+                    <view v-if="form?.environmentInfo?.accordFile?.length" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">适应性证明材料:</view>
+                        <ut-album :urls="form?.environmentInfo?.accordFile"></ut-album>
+                    </view>
                 </view>
-                <view class="h-1" id="environment12345"></view>
-                <!-- 基地类型 1:种植基地 -->
-                <template v-if="form?.baseInfo?.baseType == '1'">
-                    <view class="pd-24 bg-#fff mb-10">
-                        <view class="f-s-32 c-#333 f-w-600">选址依据</view>
-                        <view class="f-s-30 pd2-16-0 info-border-bottom">
-                            <span class="c-#666">是否道地产区:</span>
-                            <span class="c-#333">{{ selectDictLabel(yes_no, form?.environmentInfo?.daoStatus) || '-' }}</span>
-                        </view>
-                        <view v-if="form?.environmentInfo?.adaptFile?.length" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">基地选址依据/标准:</view>
-                            <ut-album :urls="form?.environmentInfo?.adaptFile"></ut-album>
-                        </view>
-                        <view v-if="form?.environmentInfo?.accordFile?.length" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">适应性证明材料:</view>
-                            <ut-album :urls="form?.environmentInfo?.accordFile"></ut-album>
-                        </view>
+                <view class="pd-24 bg-#fff mb-10">
+                    <view class="f-s-32 c-#333 f-w-600">环境信息</view>
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">水源类型:</span><span class="c-#333">{{ selectDictLabel(pt_water_type, form?.environmentInfo?.waterType) || '-' }}</span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">无霜期:</span><span class="c-#333">{{ form?.environmentInfo?.notFrost || '-' }}<text v-if="form?.environmentInfo?.notFrost">天</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">年降水量:</span><span class="c-#333">{{ form?.environmentInfo?.precipitation || '-' }}<text v-if="form?.environmentInfo?.precipitation">mm</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">年平均气温:</span><span class="c-#333">{{ form?.environmentInfo?.avgTem || '-' }}<text v-if="form?.environmentInfo?.avgTem">℃</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">年绝对最高气温:</span><span class="c-#333">{{ form?.environmentInfo?.maxTem || '-' }}<text v-if="form?.environmentInfo?.maxTem">℃</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">年绝对最低气温:</span><span class="c-#333">{{ form?.environmentInfo?.minTem || '-' }}<text v-if="form?.environmentInfo?.minTem">℃</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">年日照时数:</span><span class="c-#333">{{ form?.environmentInfo?.sunshineHours || '-' }}<text v-if="form?.environmentInfo?.sunshineHours">小时</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">海拔:</span><span class="c-#333">{{ form?.environmentInfo?.altitude || '-' }}<text v-if="form?.environmentInfo?.altitude">米</text></span></view
+                    >
+                    <view v-if="form?.environmentInfo?.report?.length" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">水、大气等环评报告:</view>
+                        <ut-album :urls="form?.environmentInfo?.report"></ut-album>
                     </view>
-                    <view class="pd-24 bg-#fff mb-10">
-                        <view class="f-s-32 c-#333 f-w-600">环境信息</view>
-                        <view class="f-s-30 pd2-16-0 info-border-bottom">
-                            <span class="c-#666">土壤类型:</span>
-                            <span class="c-#333">{{ selectDictLabel(pt_soil_type, form?.environmentInfo?.soilType) || '-' }}</span>
-                        </view>
-                        <view class="f-s-30 pd2-16-0 info-border-bottom">
-                            <span class="c-#666">土壤质地:</span>
-                            <span class="c-#333">{{ selectDictLabel(pt_soil_texture, form?.environmentInfo?.soilTexture) || '-' }}</span>
-                        </view>
-                        <view class="f-s-30 pd2-16-0 info-border-bottom">
-                            <span class="c-#666">有机质含量:</span>
-                            <span class="c-#333">{{ form?.environmentInfo?.organic || '-' }}</span>
-                        </view>
-                        <view class="f-s-30 pd2-16-0 info-border-bottom">
-                            <span class="c-#666">土壤PH值:</span>
-                            <span class="c-#333">{{ form?.environmentInfo?.soilPh || '-' }}</span>
-                        </view>
-                        <view class="f-s-30 pd2-16-0 info-border-bottom">
-                            <span class="c-#666">水源类型:</span>
-                            <span class="c-#333">{{ selectDictLabel(pt_water_type, form?.environmentInfo?.waterType) || '-' }}</span>
-                        </view>
-                        <view class="f-s-30 pd2-16-0 info-border-bottom">
-                            <span class="c-#666">无霜期:</span><span class="c-#333">{{ form?.environmentInfo?.notFrost || '-' }}<text v-if="form?.environmentInfo?.notFrost">天</text></span>
-                        </view>
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">年降水量:</span><span class="c-#333">{{ form?.environmentInfo?.precipitation || '-' }}<text v-if="form?.environmentInfo?.precipitation">mm</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">年平均气温:</span><span class="c-#333">{{ form?.environmentInfo?.avgTem || '-' }}<text v-if="form?.environmentInfo?.avgTem">℃</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">年绝对最高气温:</span><span class="c-#333">{{ form?.environmentInfo?.maxTem || '-' }}<text v-if="form?.environmentInfo?.maxTem">℃</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">年绝对最低气温:</span><span class="c-#333">{{ form?.environmentInfo?.minTem || '-' }}<text v-if="form?.environmentInfo?.minTem">℃</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">年日照时数:</span><span class="c-#333">{{ form?.environmentInfo?.sunshineHours || '-' }}<text v-if="form?.environmentInfo?.sunshineHours">小时</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">海拔:</span><span class="c-#333">{{ form?.environmentInfo?.altitude || '-' }}<text v-if="form?.environmentInfo?.altitude">米</text></span></view
-                        >
-                        <view v-if="form?.environmentInfo?.report?.length" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">水、土壤、大气等环评报告:</view>
-                            <ut-album :urls="form?.environmentInfo?.report"></ut-album>
-                        </view>
-                        <view v-if="form?.environmentInfo?.basePic" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">基地图片:</view>
-                            <ut-album :urls="form?.environmentInfo?.basePic"></ut-album>
-                        </view>
-                        <view v-if="form?.environmentInfo?.baseVoice?.length" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">基地视频:</view>
-                            <ut-album :urls="form?.environmentInfo?.baseVoice"></ut-album>
-                        </view>
+                    <view v-if="form?.environmentInfo?.basePic" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">基地图片:</view>
+                        <ut-album :urls="form?.environmentInfo?.basePic"></ut-album>
                     </view>
-                </template>
-
-                <!-- 基地类型 2:养殖基地 -->
-                <template v-else-if="form?.baseInfo?.baseType == '2'">
-                    <view class="pd-24 bg-#fff mb-10">
-                        <view class="f-s-32 c-#333 f-w-600">选址依据</view>
-                        <view class="f-s-30 pd2-16-0 info-border-bottom">
-                            <span class="c-#666">是否道地产区:</span>
-                            <span class="c-#333">{{ selectDictLabel(yes_no, form?.environmentInfo?.daoStatus) || '-' }}</span>
-                        </view>
-                        <view v-if="form?.environmentInfo?.adaptFile?.length" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">基地选址依据/标准:</view>
-                            <ut-album :urls="form?.environmentInfo?.adaptFile"></ut-album>
-                        </view>
-                        <view v-if="form?.environmentInfo?.accordFile?.length" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">适应性证明材料:</view>
-                            <ut-album :urls="form?.environmentInfo?.accordFile"></ut-album>
-                        </view>
+                    <view v-if="form?.environmentInfo?.baseVoice?.length" class="f-s-30 pd2-16-0 info-border-bottom">
+                        <view class="c-#666 mb-10">基地视频:</view>
+                        <ut-album :urls="form?.environmentInfo?.baseVoice"></ut-album>
                     </view>
-                    <view class="pd-24 bg-#fff mb-10">
-                        <view class="f-s-32 c-#333 f-w-600">环境信息</view>
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">水源类型:</span><span class="c-#333">{{ selectDictLabel(pt_water_type, form?.environmentInfo?.waterType) || '-' }}</span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">无霜期:</span><span class="c-#333">{{ form?.environmentInfo?.notFrost || '-' }}<text v-if="form?.environmentInfo?.notFrost">天</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">年降水量:</span><span class="c-#333">{{ form?.environmentInfo?.precipitation || '-' }}<text v-if="form?.environmentInfo?.precipitation">mm</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">年平均气温:</span><span class="c-#333">{{ form?.environmentInfo?.avgTem || '-' }}<text v-if="form?.environmentInfo?.avgTem">℃</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">年绝对最高气温:</span><span class="c-#333">{{ form?.environmentInfo?.maxTem || '-' }}<text v-if="form?.environmentInfo?.maxTem">℃</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">年绝对最低气温:</span><span class="c-#333">{{ form?.environmentInfo?.minTem || '-' }}<text v-if="form?.environmentInfo?.minTem">℃</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">年日照时数:</span><span class="c-#333">{{ form?.environmentInfo?.sunshineHours || '-' }}<text v-if="form?.environmentInfo?.sunshineHours">小时</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">海拔:</span><span class="c-#333">{{ form?.environmentInfo?.altitude || '-' }}<text v-if="form?.environmentInfo?.altitude">米</text></span></view
-                        >
-                        <view v-if="form?.environmentInfo?.report?.length" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">水、大气等环评报告:</view>
-                            <ut-album :urls="form?.environmentInfo?.report"></ut-album>
+                </view>
+            </template>
+            <!-- 基地类型 3:组培基地 -->
+            <template v-else-if="form?.baseInfo?.baseType == '3'">
+                <view class="pd-24 bg-#fff mb-10">
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">温度:</span><span class="c-#333">{{ form?.environmentInfo?.avgTem || '-' }}<text v-if="form?.environmentInfo?.avgTem">℃</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">湿度:</span><span class="c-#333">{{ form?.environmentInfo?.humidity || '-' }}<text v-if="form?.environmentInfo?.humidity">%</text></span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">洁净度:</span><span class="c-#333">{{ form?.environmentInfo?.clean || '-' }}</span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">光照:</span><span class="c-#333">{{ form?.environmentInfo?.light || '-' }}</span></view
+                    >
+                    <view class="f-s-30 pd2-16-0 info-border-bottom"
+                        ><span class="c-#666">光照周期:</span><span class="c-#333">{{ form?.environmentInfo?.lightCycle || '-' }}</span></view
+                    >
+                </view>
+            </template>
+        </view>
+        <template #bottom>
+            <view class="pd-20 d-flex">
+                <template v-if="!+form.baseInfo?.tempFlag">
+                    <up-button @click="$u.route({ type: 'navigateTo', url: '/plant/base/mark-swyq-base/index', params: { id: did } })" v-if="!form?.baseInfo?.swyqRes" class="mr-20" color="#18BECA">去标记为三无一全基地{{ '>' }}</up-button>
+                    <up-button @click="$u.route({ type: 'navigateTo', url: '/plant/base/mark-swyq-base-detail/index', params: { id: did } })" v-if="['2'].includes(form?.baseInfo?.swyqRes)" class="mr-20" color="#FC333F">
+                        <view>
+                            <view>标记为三无一全基地</view>
+                            <view>未通过{{ '>' }}</view>
                         </view>
-                        <view v-if="form?.environmentInfo?.basePic" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">基地图片:</view>
-                            <ut-album :urls="form?.environmentInfo?.basePic"></ut-album>
+                    </up-button>
+                    <up-button @click="$u.route({ type: 'navigateTo', url: '/plant/base/mark-swyq-base-detail/index', params: { id: did } })" v-if="['0'].includes(form?.baseInfo?.swyqRes)" class="mr-20" color="#F4A91A">
+                        <view>
+                            <view>标记为三无一全基地</view>
+                            <view>待审核{{ '>' }}</view>
                         </view>
-                        <view v-if="form?.environmentInfo?.baseVoice?.length" class="f-s-30 pd2-16-0 info-border-bottom">
-                            <view class="c-#666 mb-10">基地视频:</view>
-                            <ut-album :urls="form?.environmentInfo?.baseVoice"></ut-album>
+                    </up-button>
+                    <up-button @click="$u.route({ type: 'navigateTo', url: '/plant/base/mark-swyq-base-detail/index', params: { id: did } })" v-if="['1'].includes(form?.baseInfo?.swyqRes)" class="mr-20" color="#AECEBF">
+                        <view>
+                            <view>标记为三无一全基地</view>
+                            <view>已通过{{ '>' }}</view>
                         </view>
-                    </view>
-                </template>
-                <!-- 基地类型 3:组培基地 -->
-                <template v-else-if="form?.baseInfo?.baseType == '3'">
-                    <view class="pd-24 bg-#fff mb-10">
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">温度:</span><span class="c-#333">{{ form?.environmentInfo?.avgTem || '-' }}<text v-if="form?.environmentInfo?.avgTem">℃</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">湿度:</span><span class="c-#333">{{ form?.environmentInfo?.humidity || '-' }}<text v-if="form?.environmentInfo?.humidity">%</text></span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">洁净度:</span><span class="c-#333">{{ form?.environmentInfo?.clean || '-' }}</span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">光照:</span><span class="c-#333">{{ form?.environmentInfo?.light || '-' }}</span></view
-                        >
-                        <view class="f-s-30 pd2-16-0 info-border-bottom"
-                            ><span class="c-#666">光照周期:</span><span class="c-#333">{{ form?.environmentInfo?.lightCycle || '-' }}</span></view
-                        >
-                    </view>
+                    </up-button>
                 </template>
-           
+                <up-button @click="$u.route({ type: 'navigateTo', url: '/plant/base/base-edit/index', params: { id: did } })" type="primary">去修改</up-button>
             </view>
-            <template #bottom>
-                <view class="pd-20 d-flex">
-                    <template v-if="!+form.baseInfo?.tempFlag">
-                        <up-button @click="$u.route({ type: 'navigateTo', url: '/plant/base/mark-swyq-base/index', params: { id: did } })" v-if="!form?.baseInfo?.swyqRes" class="mr-20" color="#18BECA">去标记为三无一全基地{{ '>' }}</up-button>
-                        <up-button @click="$u.route({ type: 'navigateTo', url: '/plant/base/mark-swyq-base-detail/index', params: { id: did } })" v-if="['2'].includes(form?.baseInfo?.swyqRes)" class="mr-20" color="#FC333F">
-                            <view>
-                                <view>标记为三无一全基地</view>
-                                <view>未通过{{ '>' }}</view>
-                            </view>
-                        </up-button>
-                        <up-button @click="$u.route({ type: 'navigateTo', url: '/plant/base/mark-swyq-base-detail/index', params: { id: did } })" v-if="['0'].includes(form?.baseInfo?.swyqRes)" class="mr-20" color="#F4A91A">
-                            <view>
-                                <view>标记为三无一全基地</view>
-                                <view>待审核{{ '>' }}</view>
-                            </view>
-                        </up-button>
-                        <up-button @click="$u.route({ type: 'navigateTo', url: '/plant/base/mark-swyq-base-detail/index', params: { id: did } })" v-if="['1'].includes(form?.baseInfo?.swyqRes)" class="mr-20" color="#AECEBF">
-                            <view>
-                                <view>标记为三无一全基地</view>
-                                <view>已通过{{ '>' }}</view>
-                            </view>
-                        </up-button>
-                    </template>
-                    <up-button @click="$u.route({ type: 'navigateTo', url: '/plant/base/base-edit/index', params: { id: did } })" type="primary">去修改</up-button>
-                </view>
-            </template>
-        </z-paging>
-    </view>
+        </template>
+    </z-paging>
 </template>
 <script setup lang="ts">
 import { useClientRequest } from '@/utils/request';

+ 54 - 0
src/plant/contact-unit/models/type.ts

@@ -0,0 +1,54 @@
+/**
+ * CustomerAddDTO,往来单位添加对象 pt_customer
+ */
+export interface CustomerAddDTO {
+    /**
+     * 往来单位简称
+     */
+    abbravName?: string;
+    /**
+     * 行政区代码
+     */
+    adcdCode?: string;
+    /**
+     * 地址
+     */
+    address?: string;
+    /**
+     * 联系人
+     */
+    contact?: string;
+    /**
+     * 联系电话
+     */
+    contactTel?: string;
+    /**
+     * 往来单位类型
+     */
+    cpyType?: string[];
+    /**
+     * 往来单位编码-统一信用代码
+     */
+    cusCode?: string;
+    /**
+     * 往来单位名称
+     */
+    cusName?: string;
+    /**
+     * 客户类型
+     */
+    cusType: string;
+    /**
+     * 邮编
+     */
+    postcode?: string;
+    /**
+     * 备注
+     */
+    remark?: string;
+    /**
+     * 往来单位细分类型
+     */
+    subdivisionType?: string;
+    [property: string]: any;
+}

+ 165 - 0
src/plant/contact-unit/unit-detail/index.vue

@@ -0,0 +1,165 @@
+<template>
+    <z-paging ref="paging" bgColor="#fff" safe-area-inset-bottom paging-class="paging-btm-shadow" refresher-only @onRefresh="onRefresh" scroll-with-animation>
+        <template #top>
+            <ut-navbar title="往来单位详情" :fixed="false" border></ut-navbar>
+        </template>
+
+        <template>
+            <view class="pd-24 bg-#fff mb-10">
+                <!-- 往来单位类型 -->
+                <view class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">往来单位类型:</span>
+                    <span class="c-#333 f-w-600">
+                        {{ (form?.cpyType && form.cpyType.length) ? selectDictLabels(pt_cpy_type, form.cpyType, ',') : '-' }}
+                    </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">{{ selectDictLabel(pt_cus_type, form?.cusType) || '-' }}</span>
+                </view>
+
+                <!-- 个人 / 单位 信息 -->
+                <template v-if="form?.cusType == '1'">
+                    <view class="f-s-30 pd2-16-0 info-border-bottom">
+                        <span class="c-#666">姓名:</span>
+                        <span class="c-#333 f-w-600">{{ form?.cusName || '-' }}</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?.cusCode || '-' }}</span>
+                    </view>
+                </template>
+                <template v-else>
+                    <view class="f-s-30 pd2-16-0 info-border-bottom">
+                        <span class="c-#666">往来单位名称:</span>
+                        <span class="c-#333 f-w-600">{{ form?.cusName || '-' }}</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?.cusCode || '-' }}</span>
+                    </view>
+                </template>
+
+                <!-- 细分类型 -->
+                <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_subdivision_type, form?.subdivisionType) || '-' }}</span>
+                </view>
+
+                <!-- 联系人 -->
+                <view v-if="form?.contact" class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">联系人:</span>
+                    <span class="c-#333 f-w-600">{{ form?.contact }}</span>
+                </view>
+
+                <!-- 联系电话 -->
+                <view v-if="form?.contactTel" class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">联系电话:</span>
+                    <span class="c-#333 f-w-600">{{ form?.contactTel }}</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?.adcdCodeName || '-' }}</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?.address || '-' }}</span>
+                </view>
+
+                <!-- 邮编,仅在特定往来单位类型下展示 -->
+                <view v-if="form?.cpyType && form.cpyType.includes('3') && form.postcode" class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">邮编:</span>
+                    <span class="c-#333 f-w-600">{{ form?.postcode }}</span>
+                </view>
+
+                <!-- 备注 -->
+                <view v-if="form?.remark" class="f-s-30 pd2-16-0 info-border-bottom">
+                    <span class="c-#666">备注:</span>
+                    <span class="c-#333 f-w-600">{{ form?.remark }}</span>
+                </view>
+            </view>
+        </template>
+
+        <template #empty>
+            <ut-empty class="mg-at" size="28rpx" color="#999" padding="10rpx">暂无往来单位详情</ut-empty>
+        </template>
+        <template #bottom>
+            <view class="pd-24 d-flex a-c">
+                <up-button type="primary" @click="clickEdit">修改</up-button>
+            </view>
+        </template>
+    </z-paging>
+</template>
+
+<script setup lang="ts">
+import { useClientRequest } from '@/utils/request';
+
+const { proxy } = getCurrentInstance() as ComponentInternalInstance;
+const { pt_cus_type, pt_cpy_type, pt_subdivision_type } = toRefs<any>(
+    proxy?.useDict('pt_cus_type', 'pt_cpy_type', 'pt_subdivision_type')
+);
+
+const paging = ref<any>(null);
+const form = ref<any>({});
+const did = ref('');
+
+// 获取详情(往来单位信息)
+const getDetailById = async (id: string) => {
+    if (!id) return;
+    const res = await useClientRequest.get(`/plt-api/app/customer/getInfo/${id}`);
+    if (res && res.code === 200) {
+        form.value = res.data || {};
+    }
+};
+
+const onRefresh = () => {
+    getDetailById(did.value);
+    paging.value?.complete();
+};
+
+const clickEdit = () => {
+    uni.$on('contact-unit-detail-refresh', () => {
+        getDetailById(did.value);
+        uni.$off('contact-unit-detail-refresh');
+    });
+    uni.$u.route({
+        type: 'navigateTo',
+        url: '/plant/contact-unit/unit-edit/index',
+        params: {
+            id: did.value,
+        },
+    });
+};
+
+// 页面入参解析并加载
+onLoad((options: any) => {
+    did.value = options?.id || '';
+    getDetailById(did.value);
+
+});
+onMounted(() => {
+    uni.$on('refreshContactUnitDetail', () => {
+        getDetailById(did.value);
+    });
+});
+</script>
+
+<style lang="scss" scoped>
+.z-paging-wrap {
+    position: absolute;
+    right: 0;
+    top: 0;
+    bottom: 0;
+    left: 0;
+}
+.startline-title {
+    font-size: 32rpx;
+    font-weight: 600;
+    color: #333;
+}
+</style>

+ 246 - 0
src/plant/contact-unit/unit-edit/index.vue

@@ -0,0 +1,246 @@
+<template>
+    <z-paging ref="paging" bgColor="#fff" safe-area-inset-bottom paging-class="paging-btm-shadow" scroll-with-animation>
+        <template #top>
+            <ut-navbar :title="did ? '编辑往来单位信息' : '新增往来单位信息'" :fixed="false" border></ut-navbar>
+        </template>
+        <up-form class="p-rtv" labelPosition="top" :model="form" :rules="rules" labelWidth="auto" ref="upFormRef">
+            <view class="pd-24 bg-#fff mb-10">
+                <!-- 往来单位类型(多个可用逗号分隔) -->
+                <view class="h-1" id="cpyTypepppp"></view>
+                <ut-action-sheet v-model="form.cpyType" :tabs="pt_cpy_type" mode="custom" title="选择往来单位类型" multiple>
+                    <up-form-item borderBottom label="往来单位类型" required prop="cpyType">
+                        <view v-if="form.cpyType?.length" class="f-s-30 c-333 f-w-5 flex1">{{ selectDictLabels(pt_cpy_type, form.cpyType, ',') }}</view>
+                        <view v-else class="f-s-30 c-ccc f-w-4 flex1">请选择往来单位类型</view>
+                        <template #right>
+                            <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
+                        </template>
+                    </up-form-item>
+                </ut-action-sheet>
+                <!-- 往来单位性质 -->
+                <view class="h-1" id="cusTypepppp"></view>
+                <ut-action-sheet v-model="form.cusType" :tabs="pt_cus_type" mode="custom" title="选择往来单位性质">
+                    <up-form-item borderBottom label="往来单位性质" required prop="cusType">
+                        <view v-if="form.cusType" class="f-s-30 c-333 f-w-5 flex1">{{ selectDictLabel(pt_cus_type, form.cusType) }}</view>
+                        <view v-else class="f-s-30 c-ccc f-w-4 flex1">请选择往来单位性质</view>
+                        <template #right>
+                            <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
+                        </template>
+                    </up-form-item>
+                </ut-action-sheet>
+                <!-- 往来单位名称 -->
+                <template v-if="form.cusType == '1'">
+                    <view class="h-1" id="cusNamepppp"></view>
+                    <up-form-item borderBottom label="姓名" required prop="cusName">
+                        <up-input v-model="form.cusName" placeholder="请输入姓名" border="none" clearable></up-input>
+                    </up-form-item>
+                    <!-- 统一社会信用代码 -->
+                    <view class="h-1" id="cusCodepppp"></view>
+                    <up-form-item borderBottom label="身份证号" prop="cusCode" required>
+                        <up-input v-model="form.cusCode" placeholder="请输入身份证号" maxlength="18" border="none" clearable></up-input>
+                    </up-form-item>
+                </template>
+                <!-- 往来单位名称 -->
+                <template v-else>
+                    <view class="h-1" id="cusNamepppp"></view>
+                    <up-form-item borderBottom label="往来单位名称" required prop="cusName">
+                        <up-input v-model="form.cusName" placeholder="请输入往来单位名称" border="none" clearable></up-input>
+                    </up-form-item>
+                    <!-- 统一社会信用代码 -->
+                    <view class="h-1" id="cusCodepppp"></view>
+                    <up-form-item borderBottom label="统一社会信用代码/组织机构代码" prop="cusCode" required>
+                        <up-input v-model="form.cusCode" placeholder="请输入统一社会信用代码/组织机构代码" maxlength="30" border="none" clearable></up-input>
+                    </up-form-item>
+                </template>
+
+                <ut-action-sheet v-model="form.subdivisionType" :tabs="pt_subdivision_type" mode="custom" title="选择细分类型">
+                    <up-form-item borderBottom label="细分类型" prop="subdivisionType">
+                        <view v-if="form.subdivisionType" class="f-s-30 c-333 f-w-5 flex1">{{ selectDictLabel(pt_subdivision_type, form.subdivisionType) }}</view>
+                        <view v-else class="f-s-30 c-ccc f-w-4 flex1">请选择细分类型</view>
+                        <template #right>
+                            <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
+                        </template>
+                    </up-form-item>
+                </ut-action-sheet>
+
+                <!-- 联系人 -->
+                <up-form-item borderBottom label="联系人" prop="contact">
+                    <up-input v-model="form.contact" placeholder="请输入联系人" border="none" clearable></up-input>
+                </up-form-item>
+
+                <!-- 联系电话 -->
+                <view class="h-1" id="contactTelpppp"></view>
+                <up-form-item borderBottom label="联系电话" prop="contactTel">
+                    <up-input v-model="form.contactTel" placeholder="请输入联系电话" border="none" clearable></up-input>
+                </up-form-item>
+                <!-- 所在地区 -->
+                <view class="h-1" id="adcdCodepppp"></view>
+                <up-form-item @click="showArea = true" borderBottom label="往来单位所在地区" required prop="adcdCode">
+                    <view v-if="form.adcdCode" class="f-s-30 c-333 f-w-5 flex1">{{ form.adcdCodeName }}</view>
+                    <view v-else class="f-s-30 c-ccc f-w-4 flex1">请选择往来单位所在地区</view>
+                    <template #right>
+                        <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
+                    </template>
+                </up-form-item>
+
+                <!-- 详细地址 -->
+                <up-form-item borderBottom label="往来单位具体地址" prop="address">
+                    <up-input v-model="form.address" placeholder="请输入往来单位具体地址" border="none" clearable></up-input>
+                </up-form-item>
+                <!-- 邮编 -->
+                <up-form-item v-if="form.cpyType?.includes('3')" borderBottom label="邮编" prop="postcode">
+                    <up-input v-model="form.postcode" placeholder="请输入邮编" border="none" clearable></up-input>
+                </up-form-item>
+                <!-- 备注 -->
+                <up-form-item label="备注" prop="remark">
+                    <up-textarea v-model="form.remark" placeholder="请输入备注" maxlength="300" autoHeight clearable></up-textarea>
+                </up-form-item>
+            </view>
+        </up-form>
+        <template #bottom>
+            <view class="pd-20">
+                <up-button type="primary" @click="submit">
+                    <text>{{ did ? '保存' : '提交' }}</text>
+                </up-button>
+            </view>
+        </template>
+    </z-paging>
+    <ut-picker-area v-model:show="showArea" v-model="form.adcdCode" @confirm="confirmArea"></ut-picker-area>
+</template>
+<script setup lang="ts">
+import type { CustomerAddDTO } from '../models/type';
+import { useClientRequest } from '@/utils/request';
+const { proxy } = getCurrentInstance() as ComponentInternalInstance;
+const { pt_cus_type, pt_cpy_type, pt_subdivision_type } = toRefs<any>(proxy?.useDict('pt_cus_type', 'pt_cpy_type', 'pt_subdivision_type'));
+const upFormRef = ref();
+const paging = ref();
+const did = ref<string>('');
+const showArea = ref(false);
+
+const form = ref<CustomerAddDTO & { adcdCodeName?: string }>({
+    cusType: '',
+    cusName: '',
+    abbravName: '',
+    adcdCode: '',
+    adcdCodeName: '',
+    address: '',
+    contact: '',
+    contactTel: '',
+    cpyType: [],
+    cusCode: '',
+    postcode: '',
+    remark: '',
+    subdivisionType: '',
+} as CustomerAddDTO & { adcdCodeName?: string });
+
+// 用于输入展示,提交时再转换为数组
+const cpyTypeText = ref('');
+
+const rules = reactive({
+    cpyType: [{ required: true, type: 'array', message: '请选择往来单位类型', trigger: 'blur' }],
+    cusType: [{ required: true, message: '请选择往来单位性质', trigger: 'blur' }],
+    // cusName: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
+    // cusCode: [{ required: true, message: '请输入身份证号', trigger: 'blur' }],
+    // 如果是选择个人是姓名和身份证号必填,否则单位名称和统一社会信用代码必填
+    cusName: [
+        {
+            asyncValidator: (rule: any, value: string, callback: (error?: Error) => void) => {
+                if (form.value.cusType == '1') {
+                    if (!value || !value.trim()) {
+                        return callback(new Error('请输入姓名'));
+                    }
+                } else {
+                    if (!value || !value.trim()) {
+                        return callback(new Error('请输入往来单位名称'));
+                    }
+                }
+                callback();
+            },
+        }
+    ],
+    cusCode: [
+        {
+            asyncValidator: (rule: any, value: string, callback: (error?: Error) => void) => {
+                if (form.value.cusType == '1') {
+                    if (!value || !value.trim()) {
+                        return callback(new Error('请输入身份证号'));
+                    }
+                } else {
+                    if (!value || !value.trim()) {
+                        return callback(new Error('请输入统一社会信用代码/组织机构代码'));
+                    }
+                }
+                callback();
+            },
+        }
+    ],
+    adcdCode: [{ required: true, message: '请选择往来单位所在地区', trigger: 'blur' }],
+    contactTel: [
+        {
+            pattern: /^(\+?\d{1,4}[-\s]?)?((\d{3,4}[-\s]?)?\d{7,8}|1[1-9]\d{9})$/,
+            message: '请输入正确的联系电话',
+            trigger: 'blur',
+        },
+    ],
+});
+
+const loadDetail = async (id: string) => {
+    if (!id) return;
+    const res = await useClientRequest.get(`/plt-api/app/customer/getInfo/${id}`);
+    if (res && res.code === 200) {
+        const data = res.data || {};
+        form.value = {
+            ...data,
+        } as CustomerAddDTO & { adcdCodeName?: string };
+    }
+};
+
+const submit = async () => {
+    try {
+        await upFormRef.value?.validate();
+    } catch (error: any) {
+        const firstErrorField = error && error[0].prop + 'pppp';
+        paging.value?.scrollIntoViewById(firstErrorField, 30, true);
+        return;
+    }
+
+    try {
+        await uni.showLoading({ title: did.value ? '保存中...' : '提交中...', mask: true });
+        const url = did.value ? '/plt-api/app/customer/edit' : '/plt-api/app/customer/add';
+        const payload: any = { ...(form.value as any) };
+        if (did.value) payload.id = did.value;
+        const res = await useClientRequest.post(url, payload);
+        uni.hideLoading();
+        if (res && res.code === 200) {
+            uni.showToast({ title: did.value ? '保存成功' : '新增成功', icon: 'success' });
+            uni.$emit('refreshContactUnitDetail');
+            uni.$emit('refreshContactUnitList');
+            setTimeout(() => uni.navigateBack(), 300);
+        }
+    } catch (e) {
+        uni.hideLoading();
+        console.error('保存往来单位失败:', e);
+    }
+};
+
+const confirmArea = (area: any) => {
+    form.value.adcdCodeName = area.fullName;
+};
+
+onLoad((options: any) => {
+    did.value = options?.id || '';
+    if (did.value) {
+        loadDetail(did.value);
+    }
+    paging.value?.complete();
+});
+</script>
+<style lang="scss" scoped>
+.startline-title {
+    font-size: 32rpx;
+    font-weight: 600;
+    color: #333;
+}
+.base-bottom-wrap {
+    background-color: #fff;
+}
+</style>

+ 148 - 0
src/plant/contact-unit/unit-list/index.vue

@@ -0,0 +1,148 @@
+<template>
+    <z-paging ref="paging" v-model="list" bgColor="#f7f7f7" @query="query" safe-area-inset-bottom>
+        <template #top>
+            <ut-navbar title="往来单位管理" :fixed="false" border :breadcrumb="false"></ut-navbar>
+            <view class="d-flex a-c pd-25">
+                <view class="min-w-220 flex1">
+                    <ut-action-sheet v-model="form.cusType" :tabs="pt_cus_type" mode="custom" @change="onRefresh" title="选择往来单位性质">
+                        <view class="d-flex search-select-item a-c">
+                            <view class="flex1 ov-hd f-s-28 c-333 text-center f-w-5 w-s-no">{{ selectDictLabel(pt_cus_type, form.cusType) || '全部' }}</view>
+                            <up-icon size="24rpx" color="#333" name="arrow-down-fill" class="mr-5"></up-icon>
+                        </view>
+                    </ut-action-sheet>
+                </view>
+                <view class="h-86 pl-20 w-100%">
+                    <ut-search ref="searchRef" v-model="form.keyword" @search="onRefresh" margin="0" :border="false" :placeholder="placeholder" bgColor="#fff" height="86rpx" borderRadius="10rpx"></ut-search>
+                </view>
+            </view>
+             <ut-tabs v-model="form.cpyType" :tabs="pt_cpy_type" @change="onRefresh"></ut-tabs>
+        </template>
+
+        <template>
+            <view class="pl-25 pr-25">
+                <up-swipe-action>
+                    <up-swipe-action-item v-for="item in list" :name="item?.id" :key="item?.id" :disabled="item?.storeCount" :options="optionsAction" @click="clickSwipe" class="mb-20 b-radius">
+                        <view @click.stop="clickItem(item)" class="b-radius bg-#fff pd-24 p-rtv base-shadow">
+                            <view class="d-flex j-sb a-c li-item-head mb-16">
+                                <view class="li-left-tag">{{ selectDictLabel(pt_cus_type, item?.cusType) }}</view>
+                                <view class="f-s-22 c-#666">{{ item?.updateTime || item?.createTime }}</view>
+                            </view>
+                            <view class="f-s-34 c-#333 f-w-500">{{ item?.cusName }}</view>
+                            <view class="f-s-24 c-#666">{{ item?.cusCode }}</view>
+                            <view class="pd-5"></view>
+                            <view class="f-s-28 pd2-5-0">
+                                <span class="c-#666">联系电话:</span>
+                                <span class="c-#333 f-w-600">{{ item?.contactTel }}</span>
+                            </view>
+
+                        </view>
+                    </up-swipe-action-item>
+                </up-swipe-action>
+            </view>
+        </template>
+        <!-- 空数据处理 -->
+
+        <template #empty>
+            <ut-empty class="mg-at" size="28rpx" color="#999" padding="10rpx"> 暂无往来单位信息,点击+号新增吧</ut-empty>
+        </template>
+    </z-paging>
+    <ut-suspension @click="$u.route({ url: '/plant/contact-unit/unit-edit/index' })">
+        <image src="@/static/images/common/btn_add_logo.png" mode="widthFix" class="w-120 h-120"></image>
+    </ut-suspension>
+</template>
+<script setup lang="ts">
+import { useClientRequest } from '@/utils/request';
+const { proxy } = getCurrentInstance() as ComponentInternalInstance;
+const { pt_cus_type, pt_cpy_type } = toRefs<any>(proxy?.useDict('pt_cus_type', 'pt_cpy_type'));
+const paging = ref();
+const list = ref<any[]>([]);
+const placeholder = ref('搜往来单位名称、代码');
+
+const form = ref({
+    keyword: '',
+    cusType: '',
+    cpyType: '',
+});
+
+const query = async (pageNum: number, pageSize: number) => {
+    const params = {
+        pageNum,
+        pageSize,
+        ...form.value,
+    };
+    const res = await useClientRequest.get<any>('/plt-api/app/customer/list', params);
+    if (!res || res.code !== 200) return;
+    const { rows } = res;
+    paging.value.complete(rows);
+};
+const onRefresh = () => {
+    paging.value.reload();
+};
+const optionsAction = reactive([
+    {
+        text: '删除',
+        style: {
+            backgroundColor: '#f56c6c',
+        },
+    },
+]);
+const clickSwipe = async (event: object) => {
+    const { name, index } = event as any;
+    if (index === 0) {
+        // 删除
+        const res = await uni.showModal({
+            title: '删除提示',
+            content: '删除后不可撤回,请谨慎操作!',
+            confirmColor: '#f56c6c',
+        });
+        console.log(res);
+        if (res.confirm) {
+            const delRes = await useClientRequest.get(`/plt-api/app/customer/remove/${name}`);
+            if (delRes && delRes.code === 200) {
+                uni.showToast({ title: '删除成功', icon: 'none' });
+                onRefresh();
+            }
+        }
+    }
+};
+const clickItem = (item: any) => {
+    uni.$u.route({
+        type: 'navigateTo',
+        url: '/plant/contact-unit/unit-detail/index',
+        params: {
+            id: item?.id,
+        },
+    });
+};
+
+onMounted(() => {
+    uni.$on('refreshContactUnitList', () => {
+        onRefresh();
+    });
+});
+</script>
+<style lang="scss" scoped>
+// @import '@/assets/styles/theme.scss';
+.search-select-item {
+    height: 86rpx;
+    background-color: #fff;
+    border-radius: 10rpx;
+    box-sizing: border-box;
+    padding-left: 16rpx;
+    padding-right: 16rpx;
+    padding-top: 14rpx;
+    padding-bottom: 14rpx;
+}
+.li-item-head {
+    margin-left: -24rpx;
+    margin-top: -24rpx;
+}
+.li-left-tag {
+    padding: 4rpx 12rpx;
+    background-color: #ebf6ee;
+    color: #37a954;
+    border-radius: 16rpx 0 16rpx 0;
+    font-size: 20rpx;
+    font-weight: 500;
+}
+</style>