huangxw 2 тижнів тому
батько
коміт
5264076c66

+ 9 - 2
src/components/ut-navbar/ut-navbar.vue

@@ -2,8 +2,13 @@
     <up-navbar :fixed="fixed" :border="border">
         <template #left>
             <slot name="left">
-                <up-icon v-if="showBack" name="arrow-left" size="40rpx" color="#333" @click="handleBackClick"></up-icon>
-                <up-icon v-else name="home" size="40rpx" color="#333" @click="handleHomeClick"></up-icon>
+                <view class="d-flex a-c">
+                    <up-icon v-if="showBack" name="arrow-left" size="40rpx" color="#333" @click="handleBackClick"></up-icon>
+                    <up-icon v-else name="home" size="40rpx" color="#333" @click="handleHomeClick"></up-icon>
+                    <slot name="leftText">
+                        <text class="f-s-38 c-#333 f-w-500 ml-20">{{ leftText }}</text>
+                    </slot>
+                </view>
             </slot>
         </template>
         <template #center>
@@ -21,12 +26,14 @@ const props = withDefaults(
         border?: boolean;
         fixed?: boolean;
         homeUrl?: string;
+        leftText?: string;
     }>(),
     {
         title: '',
         border: true,
         fixed: true,
         homeUrl: '/pages/index/index',
+        leftText: '',
     }
 );
 

+ 7 - 0
src/pages.json

@@ -147,6 +147,13 @@
                     "style": {
                         "navigationBarTitleText": "选择种养殖品种"
                     }
+                },
+                // 选择GAP获评信息
+                {
+                    "path": "select-gap-info/index",
+                    "style": {
+                        "navigationBarTitleText": "选择GAP获评信息"
+                    }
                 }
             ]
         }

+ 150 - 65
src/plant/base/base-edit/index.vue

@@ -65,59 +65,88 @@
                 </up-form-item>
                 <!-- 是否Gap基地 -->
                 <view class="h-1" id="gapFlagpppp"></view>
-                <up-form-item borderBottom label="是否为Gap基地" required prop="baseInfo.gapFlag">
-                    <up-radio-group v-model="form.baseInfo.gapFlag">
-                        <up-radio :customStyle="{ marginRight: '60rpx' }" v-for="(item, index) in yes_no" :key="index" :label="item.label" :name="item.value"></up-radio>
-                    </up-radio-group>
-                </up-form-item>
-                <view class="h-1" id="adcodepppp"></view>
-                <up-form-item @click="showArea = true" borderBottom label="基地具体地址" required prop="baseInfo.gapInfo.adcode">
-                    <!-- <up-input v-model="form.address" placeholder="请选择基地所在省/市/县/镇(乡)" border="none" clearable></up-input> -->
-                    <view v-if="form?.baseInfo?.gapInfo?.adcode" class="f-s-30 c-333 f-w-5 flex1">{{ form?.baseInfo?.gapInfo?.adcodeName }} </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 v-if="['1', '2'].includes(form.baseInfo.baseType)">
+                    <up-form-item borderBottom label="是否为Gap基地" required prop="baseInfo.gapFlag">
+                        <up-radio-group v-model="form.baseInfo.gapFlag">
+                            <up-radio :customStyle="{ marginRight: '60rpx' }" v-for="(item, index) in yes_no" :key="index" :label="item.label" :name="item.value"></up-radio>
+                        </up-radio-group>
+                    </up-form-item>
+                    <!-- 关联的GAP获评信息 -->
+                    <template v-if="+form.baseInfo.gapFlag">
+                        <up-form-item borderBottom label="关联的GAP获评信息" prop="baseInfo.gapId">
+                            <up-button @click="selectGapInfo" type="primary" text="确定" plain>
+                                <up-icon class="mr-10" name="plus" color="#37A954"></up-icon>
+                                <span>请选择要关联的GAP基地获评信息</span>
+                            </up-button>
+                        </up-form-item>
+
                     </template>
-                </up-form-item>
-                <up-form-item borderBottom prop="baseInfo.gapInfo.address">
-                    <up-input v-model="form.baseInfo.gapInfo.address" placeholder="请填写村级以下的具体地址信息" border="none" clearable></up-input>
-                </up-form-item>
-                <up-form-item borderBottom prop="baseInfo.gapInfo.basePic" required>
-                    <view class="flex1 ov-hd">
-                        <view class="d-flex a-c mb-10" style="margin-bottom: 5px">
-                            <view class="f-s-30 c-#666">基地范围</view>
+                </template>
+                <template v-if="!+form.baseInfo.gapFlag && !form.baseInfo.gapId">
+                    <view class="h-1" id="adcodepppp"></view>
+                    <up-form-item @click="showArea = true" borderBottom label="基地具体地址" required prop="baseInfo.gapInfo.adcode">
+                        <!-- <up-input v-model="form.address" placeholder="请选择基地所在省/市/县/镇(乡)" border="none" clearable></up-input> -->
+                        <view v-if="form?.baseInfo?.gapInfo?.adcode" class="f-s-30 c-333 f-w-5 flex1">{{ form?.baseInfo?.gapInfo?.adcodeName }} </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 prop="baseInfo.gapInfo.address">
+                        <up-input v-model="form.baseInfo.gapInfo.address" placeholder="请填写村级以下的具体地址信息" border="none" clearable></up-input>
+                    </up-form-item>
+                    <up-form-item v-if="['1', '2'].includes(form.baseInfo.baseType)" borderBottom prop="baseInfo.gapInfo.basePic" required>
+                        <view class="flex1 ov-hd">
+                            <view class="d-flex a-c mb-10" style="margin-bottom: 5px">
+                                <view class="f-s-30 c-#666">基地范围</view>
+                            </view>
+                            <view class="bg-#ccc d-flex ov-hd p-rtv" @click="mapDrawArea">
+                                <image class="w-full h-380" v-if="form.baseInfo.gapInfo?.basePic" :src="form.baseInfo.gapInfo.basePic" mode="widthFix" />
+                                <image class="w-full h-380" v-else src="@/static/images/plant/base/select_base_gap.png" mode="widthFix" />
+                                <view v-if="!form.baseInfo.gapInfo?.basePic" class="btn-aree-center d-flex flex-cln a-c j-c">
+                                    <image class="w-52 h-52 mb-10" src="@/static/images/plant/base/draw_area_icon.png" mode="widthFix" />
+                                    <view class="c-primary f-s-28 f-w-400">点击绘制基地范围</view>
+                                </view>
+                            </view>
                         </view>
-                        <view class="bg-#ccc d-flex ov-hd p-rtv" @click="mapDrawArea">
-                            <image class="w-full h-380" v-if="form.baseInfo.gapInfo?.basePic" :src="form.baseInfo.gapInfo.basePic" mode="widthFix" />
-                            <image class="w-full h-380" v-else src="@/static/images/plant/base/select_base_gap.png" mode="widthFix" />
-                            <view v-if="!form.baseInfo.gapInfo?.basePic" class="btn-aree-center d-flex flex-cln a-c j-c">
-                                <image class="w-52 h-52 mb-10" src="@/static/images/plant/base/draw_area_icon.png" mode="widthFix" />
-                                <view class="c-primary f-s-28 f-w-400">点击绘制基地范围</view>
+                    </up-form-item>
+                    <up-form-item v-if="['3'].includes(form.baseInfo.baseType)" borderBottom>
+                        <view class="flex1 ov-hd">
+                            <view class="d-flex a-c mb-10" style="margin-bottom: 5px">
+                                <view class="f-s-30 c-#666">基地范围</view>
+                            </view>
+                            <view class="bg-#ccc d-flex ov-hd p-rtv" @click="mapDrawArea">
+                                <image class="w-full h-380" v-if="form.baseInfo.gapInfo?.basePic" :src="form.baseInfo.gapInfo.basePic" mode="widthFix" />
+                                <image class="w-full h-380" v-else src="@/static/images/plant/base/select_base_gap.png" mode="widthFix" />
+                                <view v-if="!form.baseInfo.gapInfo?.basePic" class="btn-aree-center d-flex flex-cln a-c j-c">
+                                    <image class="w-52 h-52 mb-10" src="@/static/images/plant/base/draw_area_icon.png" mode="widthFix" />
+                                    <view class="c-primary f-s-28 f-w-400">点击绘制基地范围</view>
+                                </view>
                             </view>
                         </view>
-                    </view>
-                </up-form-item>
-                <view class="h-1" id="areaPppp"></view>
-                <up-form-item required borderBottom label="基地面积" prop="baseInfo.gapInfo.area">
-                    <up-input v-model="form.baseInfo.gapInfo.area" placeholder="地块绘制后自动带出可修改" border="none" clearable></up-input>
-                    <template #right>
-                        <span>{{ form.baseInfo.gapInfo.areaUnit }}</span>
-                    </template>
-                </up-form-item>
-                <!-- 基地经纬度 -->
-                <view class="h-1" id="lngpppp"></view>
-                <view class="h-1" id="latpppp"></view>
-                <up-form-item required label="基地经纬度" class="form-item-wrap-column">
-                    <view class="d-flex" style="margin-top: -10px">
-                        <up-form-item prop="baseInfo.gapInfo.lng">
-                            <up-input v-model="form.baseInfo.gapInfo.lng" border="bottom" placeholder="70-150内的经度数值" clearable></up-input>
-                        </up-form-item>
-                        <view class="pd-5"></view>
-                        <up-form-item prop="baseInfo.gapInfo.lat">
-                            <up-input v-model="form.baseInfo.gapInfo.lat" placeholder="4-53内的纬度数值" border="bottom" clearable></up-input>
-                        </up-form-item>
-                    </view>
-                </up-form-item>
+                    </up-form-item>
+                    <view class="h-1" id="areaPppp"></view>
+                    <up-form-item required borderBottom label="基地面积" prop="baseInfo.gapInfo.area">
+                        <up-input v-model="form.baseInfo.gapInfo.area" placeholder="地块绘制后自动带出可修改" border="none" clearable></up-input>
+                        <template #right>
+                            <span>{{ form.baseInfo.gapInfo.areaUnit }}</span>
+                        </template>
+                    </up-form-item>
+                    <!-- 基地经纬度 -->
+                    <view class="h-1" id="lngpppp"></view>
+                    <view class="h-1" id="latpppp"></view>
+                    <up-form-item required label="基地经纬度" class="form-item-wrap-column">
+                        <view class="d-flex" style="margin-top: -10px">
+                            <up-form-item prop="baseInfo.gapInfo.lng">
+                                <up-input v-model="form.baseInfo.gapInfo.lng" border="bottom" placeholder="70-150内的经度数值" clearable></up-input>
+                            </up-form-item>
+                            <view class="pd-5"></view>
+                            <up-form-item prop="baseInfo.gapInfo.lat">
+                                <up-input v-model="form.baseInfo.gapInfo.lat" placeholder="4-53内的纬度数值" border="bottom" clearable></up-input>
+                            </up-form-item>
+                        </view>
+                    </up-form-item>
+                </template>
             </view>
             <!-- 地块/圈舍/组培架信息 -->
             <view ref="plotRef" class="h-1" id="plot12345"></view>
@@ -126,6 +155,22 @@
                     <view class="startline-title">地块信息</view>
                 </view>
                 <view class="pd-24 bg-#fff">
+                    <up-swipe-action>
+                        <template v-for="(item, index) in form.landInfoList" :key="index">
+                            <up-swipe-action-item class="mb-20" :options="options" @click="clickPlotSwipe($event, item, index, '编辑地块信息')">
+                                <view class="plot-item pd-24">
+                                    <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>
+                                    <view class="f-s-28 c-#666">
+                                        <span class="">面积:</span>
+                                        <span class="c-#333 f-w-5">{{ item?.area || '-' }}{{ item?.areaUnit || '-' }}</span>
+                                    </view>
+                                </view>
+                            </up-swipe-action-item>
+                        </template>
+                    </up-swipe-action>
                     <up-button @click="addPlot({ landType: form.baseInfo.baseType, areaUnit: form.baseInfo.gapInfo.areaUnit }, '添加地块')" type="primary" text="确定" plain>
                         <up-icon class="mr-10" name="plus" color="#37A954"></up-icon>
                         <span>添加地块信息</span>
@@ -142,12 +187,12 @@
                             <up-swipe-action-item class="mb-20" :options="options" @click="clickPlotSwipe($event, item, index, '编辑圈舍信息')">
                                 <view class="plot-item pd-24">
                                     <view class="d-flex mb-16">
-                                        <view class="f-s-30 f-w-5 c-#333 flex1 mr-10">{{ item?.landName || '-' }}</view>
+                                        <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>
                                     <view class="f-s-28 c-#666">
                                         <span class="">面积:</span>
-                                        <span class="c-#333">{{ item?.area || '-' }}{{ item?.areaUnit || '-' }}</span>
+                                        <span class="c-#333 f-w-5">{{ item?.area || '-' }}{{ item?.areaUnit || '-' }}</span>
                                     </view>
                                 </view>
                             </up-swipe-action-item>
@@ -165,6 +210,36 @@
                     <view class="startline-title">组培架信息</view>
                 </view>
                 <view class="pd-24 bg-#fff">
+                    <up-swipe-action>
+                        <template v-for="(item, index) in form.landInfoList" :key="index">
+                            <up-swipe-action-item class="mb-20" :options="options" @click="clickPlotSwipe($event, item, index, '编辑组培架信息')">
+                                <view class="plot-item pd-24">
+                                    <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>
+                                    <view class="d-flex flex-wrap gap-10">
+                                        <view class="f-s-28 c-#666 w-310">
+                                            <span class="">层数:</span>
+                                            <span class="c-#333 f-w-5">{{ item?.layers || '-' }}</span>
+                                        </view>
+                                        <view class="f-s-28 c-#666 w-310">
+                                            <span class="">每层容量:</span>
+                                            <span class="c-#333 f-w-5">{{ item?.capacityAmount || '-' }}{{ item?.capacityUnit || '-' }}</span>
+                                        </view>
+                                        <view class="f-s-28 c-#666 w-310">
+                                            <span class="">总容量:</span>
+                                            <span class="c-#333 f-w-5">{{ item?.capacityAmount * item?.layers || '-' }}{{ 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>
+                                </view>
+                            </up-swipe-action-item>
+                        </template>
+                    </up-swipe-action>
                     <up-button @click="addPlot({ landType: form.baseInfo.baseType, areaUnit: form.baseInfo.gapInfo.areaUnit, capacityUnit: '瓶' }, '添加组培架')" type="primary" text="确定" plain>
                         <up-icon class="mr-10" name="plus" color="#37A954"></up-icon>
                         <span>添加组培架信息</span>
@@ -377,26 +452,17 @@
                     <up-form-item label="湿度" prop="environmentInfo.avgTem" borderBottom>
                         <up-input v-model="form.environmentInfo.avgTem" placeholder="请输入湿度" border="none" clearable></up-input>
                         <template #right>
-                            <span></span>
+                            <span>%</span>
                         </template>
                     </up-form-item>
                     <up-form-item label="洁净度" prop="environmentInfo.avgTem" borderBottom>
                         <up-input v-model="form.environmentInfo.avgTem" placeholder="请输入洁净度" border="none" clearable></up-input>
-                        <template #right>
-                            <span>℃</span>
-                        </template>
                     </up-form-item>
                     <up-form-item label="光照" prop="environmentInfo.avgTem" borderBottom>
                         <up-input v-model="form.environmentInfo.avgTem" placeholder="请输入光照" border="none" clearable></up-input>
-                        <template #right>
-                            <span>℃</span>
-                        </template>
                     </up-form-item>
                     <up-form-item label="光照周期" prop="environmentInfo.avgTem" borderBottom>
                         <up-input v-model="form.environmentInfo.avgTem" placeholder="请输入光照周期" border="none" clearable></up-input>
-                        <template #right>
-                            <span>℃</span>
-                        </template>
                     </up-form-item>
                 </view>
             </template>
@@ -409,8 +475,8 @@
         </template>
     </z-paging>
     <ut-picker-area v-model:show="showArea" v-model="form.baseInfo.gapInfo.adcode" @confirm="confirmArea"></ut-picker-area>
-    <FormPlot v-if="showPlot" v-model:show="showPlot" v-model="rowForm" :title="plotTitle" :dict="{ pt_light_type, pt_capacity_unit }" @submit="submitFormPlotAdd"></FormPlot>
-    <FormPlot v-if="showPlotEdit" v-model:show="showPlotEdit" v-model="rowFormEdit" :title="plotTitle" :dict="{ pt_light_type, pt_capacity_unit }" @submit="submitFormPlotEdit"></FormPlot>
+    <FormPlot v-if="showPlot" v-model:show="showPlot" v-model="rowForm" :title="plotTitle" :dict="{ pt_light_type, pt_capacity_unit, yes_no }" @submit="submitFormPlotAdd"></FormPlot>
+    <FormPlot v-if="showPlotEdit" v-model:show="showPlotEdit" v-model="rowFormEdit" :title="plotTitle" :dict="{ pt_light_type, pt_capacity_unit, yes_no }" @submit="submitFormPlotEdit"></FormPlot>
 </template>
 <script setup lang="ts">
 import { useUserStore } from '@/store';
@@ -441,6 +507,12 @@ const form = ref<any>({
         baseType: '',
         baseName: '',
         baseCode: '',
+        gapFlag: '',
+        buildDate: '',
+        orgType: '',
+        contactId: '',
+        contactName: '',
+        gapId: '',
         gapInfo: {
             adcode: '',
             adcodeName: '',
@@ -625,6 +697,21 @@ const selectCpyMember = () => {
         url: '/tools/select-cpy-member/index',
     });
 };
+const selectGapInfo = () => {
+    uni.$on('selectGapInfo', (item: any) => {
+        console.log(item);
+        form.value.baseInfo.gapId = item.id;
+        form.value.baseInfo.gapBaseInfo = item;
+        uni.$off('selectGapInfo');
+    });
+    uni.$u.route({
+        type: 'navigateTo',
+        url: '/tools/select-gap-info/index',
+        params: {
+            baseType: form.value.baseInfo.baseType,
+        },
+    });
+}
 const confirmArea = (area: any) => {
     form.value.baseInfo.gapInfo.adcodeName = area.fullName;
 };
@@ -683,8 +770,6 @@ const mapUnitByBaseType: any = {
     '2': '平方米',
     '3': '平方米',
 };
-
-
 </script>
 <style lang="scss" scoped>
 .z-paging-wrap {

+ 19 - 5
src/plant/base/base-edit/models/form-plot.vue

@@ -22,7 +22,15 @@
                             <up-form-item label="每层容量" prop="capacityAmount" required borderBottom>
                                 <up-input v-model="form.capacityAmount" placeholder="请输入每层容量" border="none" clearable />
                                 <template #right>
-                                    <span>{{ form.capacityUnit || '瓶' }}</span>
+                                    <view @click.stop>
+                                        <ut-action-sheet v-model="form.capacityUnit" :tabs="pt_capacity_unit">
+                                            <!-- 可点击选择单位 -->
+                                            <view class="d-flex pd-10" style=""> 
+                                                <span>{{ form.capacityUnit || '瓶' }}</span>
+                                                <up-icon size="22rpx" color="#2A6D52" name="arrow-down-fill"></up-icon>
+                                            </view>
+                                        </ut-action-sheet>
+                                    </view>
                                 </template>
                             </up-form-item>
                             <!-- 光照类型 -->
@@ -31,6 +39,12 @@
                                     <up-radio :customStyle="{ marginRight: '60rpx' }" v-for="(item, index) in pt_light_type" :key="index" :label="item.label" :name="item.value"></up-radio>
                                 </up-radio-group>
                             </up-form-item>
+                            <!-- 是否有独立温控 -->
+                            <up-form-item label="是否有独立温控" prop="tempeStatus" borderBottom>
+                                <up-radio-group v-model="form.tempeStatus" direction="row">
+                                    <up-radio :customStyle="{ marginRight: '60rpx' }" v-for="(item, index) in yes_no" :key="index" :label="item.label" :name="item.value"></up-radio>
+                                </up-radio-group>
+                            </up-form-item>
                         </template>
                         <up-form-item @click="selectCpyMember" borderBottom label="负责人" prop="contact">
                             <view v-if="form.contact" class="f-s-30 c-333 f-w-5 flex1">{{ form.contactName }}</view>
@@ -82,7 +96,7 @@ const props = withDefaults(
         }),
     }
 );
-const { pt_base_type, pt_light_type } = toRefs(props.dict);
+const { pt_base_type, pt_light_type, yes_no, pt_capacity_unit } = toRefs(props.dict);
 const visable = ref(props.show);
 const emit = defineEmits<{
     'update:show': [value: boolean];
@@ -147,8 +161,8 @@ const onClose = () => {
 watch(
     () => props.show,
     (newVal) => {
-		console.log('sdadad');
-		
+        console.log('sdadad');
+
         visable.value = newVal;
     }
 );
@@ -156,7 +170,7 @@ const onConfirm = async () => {
     try {
         // uview-plus 的 up-form 暴露 validate 方法
         await formRef.value?.validate();
-		console.log('----');
+        console.log('----');
         emit('submit', form.value);
         emit('update:show', false);
     } catch (e) {

+ 2 - 2
src/plant/base/gap-base-info/index.vue

@@ -12,7 +12,7 @@
                     </ut-action-sheet>
                 </view>
                 <view class="h-86 pl-20 w-100%">
-                    <ut-search ref="searchRef" v-model="form.keywords" @search="onRefresh" margin="0" :border="false" :placeholder="placeholder" bgColor="#fff" height="86rpx" borderRadius="10rpx"></ut-search>
+                    <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>
         </template>
@@ -93,7 +93,7 @@ const isYunnanCompany = (): boolean => {
 };
 const address = computed(() => isYunnanCompany());
 const form = ref({
-    keywords: '',
+    keyword: '',
     type: '',
 });
 

+ 82 - 0
src/tools/select-gap-info/index.vue

@@ -0,0 +1,82 @@
+<template>
+    <z-paging ref="paging" safe-area-inset-bottom v-model="list" @query="query">
+        <template #top>
+            <ut-navbar leftText="请选择GAP基地获评信息" :fixed="false"></ut-navbar>
+            <view class="pd-20">
+                <ut-search margin="0" height="68rpx" fontSize="26rpx" placeholder="搜基地名称、品种、基地地址" :border="false" v-model="form.keyword" @search="onRefresh"></ut-search>
+            </view>
+        </template>
+        <view class="base-content pd-20">
+            <view :class="{ active: item.id === checkedId }" v-for="(item, index) in list" :key="item.id" @click="clickItem(item)" class="b-radius bg-#fff pd-20 p-rtv">
+                <view class="c-#333 f-s-34 f-w-5 pb-5">{{ item?.gapBaseName }}</view>
+                <view class="c-#999 f-s-24 pb-20">{{ item?.ratedDate }}获评</view>
+                <view class="d-flex pb-5">
+                    <view class="w-50%">
+                        <text class="c-#666 f-s-28">种养殖品种:</text>
+                        <text class="c-#333 f-s-28 f-w-5">{{ item?.medicineName || '-' }}</text>
+                    </view>
+                    <view class="w-50%">
+                        <text class="c-#666 f-s-28">基地面积:</text>
+                        <text class="c-#333 f-s-28 f-w-5">{{ item?.area }}{{ item?.areaUnit || '亩' }}</text>
+                    </view>
+                </view>
+                <view class="pb-20">
+                    <text class="c-#666 f-s-28">基地地址:</text>
+                    <text class="c-#333 f-s-28 f-w-5">{{ item?.address }}</text>
+                </view>
+                <view v-if="+item?.res == 2" class="pl-5 pr-5 pt-20 pb-20 border-top-#f7f7f7 c-#FC333F">
+                    <text class="f-s-28">审核不通过原因:</text>
+                    <text class="f-s-28">{{ item?.msg }}</text>
+                </view>
+                <image v-if="+item?.res == 2" class="w-145" src="/static/images/plant/resFailed.png" style="position: absolute; top: 0; right: 0" mode="widthFix" />
+                <image v-if="+item?.res == 0" class="w-100" src="/static/images/plant/resPendingReview.png" style="position: absolute; top: 0; right: 0" mode="widthFix" />
+                <image v-if="+item?.res == 1" class="w-90" src="/static/images/plant/resEffective.png" style="position: absolute; top: 0; right: 0" mode="widthFix" />
+            </view>
+        </view>
+    </z-paging>
+</template>
+<script setup lang="ts">
+import { useClientRequest } from '@/utils/request';
+const paging = ref<any>(null);
+const list = ref<any[]>([]);
+const form = ref({
+    keyword: '',
+    res: '1',
+    gapBaseType: ''
+});
+const query = async (pageNum: number, pageSize: number) => {
+    const res = await useClientRequest.get('/plt-api/app/gapCertificationInfo/pageList', {
+        ...form.value,
+        pageNum: pageNum,
+        pageSize: pageSize,
+    });
+    if (res.code == 200) {
+        paging.value.complete(res.rows || []);
+    }
+};
+const checkedId = ref(null);
+const clickItem = (item: any) => {
+    checkedId.value = item.id;
+    uni.$emit('selectGapInfo', item);
+    uni.navigateBack();
+};
+const onRefresh = () => {
+    try {
+        paging.value?.reload();
+    } catch (e) {
+        console.error('Error refreshing address list:', e);
+    }
+};
+onLoad((options: any) => {
+    form.value.res = options?.res || '1';
+    form.value.gapBaseType = options?.baseType || '';
+})
+</script>
+<style lang="scss" scoped>
+.select-item-card {
+    border-radius: 16rpx;
+    &.active {
+        border-color: #4456fb;
+    }
+}
+</style>

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
stats.html


Деякі файли не було показано, через те що забагато файлів було змінено