2 Commit-ok 3e270f209d ... 54c10b5a55

Szerző SHA1 Üzenet Dátum
  lxf 54c10b5a55 Merge branch 'farmer' of http://www.sysuimars.cn:3000/feiniao/feiniao-farm-h5 into farmer 5 napja
  lxf 6b31760aac fix: 限制时间 5 napja

+ 8 - 3
src/views/old_mini/home/subPages/prescriptionPage.vue

@@ -202,6 +202,7 @@
                                 placeholder="选择时间"
                                 :disabled-date="disabledDate"
                                 :clearable="false"
+                                :editable="false"
                                 format="YYYY-MM-DD"
                                 value-format="YYYY-MM-DD"
                                 style="width: 100%"
@@ -593,6 +594,10 @@ async function submit() {
         
         if (res.code === 0) {
             showSuccessPopup.value = true;
+
+            // 设置选中当前新增的农场
+            localStorage.setItem("selectedFarmId", res.data.id);
+            localStorage.setItem("selectedFarmName", res.data.name);
             return true;
         } else {
             ElMessage.error(res.msg || '提交失败,请重试');
@@ -617,11 +622,11 @@ const disabledDate = (time) => {
     tomorrow.setDate(tomorrow.getDate() + 1);
     
     // 设置最小日期为 2025-01-01
-    const minDate = new Date(2025, 0, 1); // 月份从0开始,0表示1月
+    const minDate = new Date(2025, 10, 1); // 月份从0开始,0表示1月
     minDate.setHours(0, 0, 0, 0);
     
-    // 如果时间 < 2025-01-01 或 >= 明天的开始时间,则禁用
-    // 只能选择 2025-01-01 到今天的日期范围
+    // 如果时间 < 2025-10-01 或 >= 明天的开始时间,则禁用
+    // 只能选择 2025-10-01 到今天的日期范围
     return time.getTime() < minDate.getTime() || time.getTime() >= tomorrow.getTime();
 }
 const handlePage = async () => {

+ 1 - 1
src/views/old_mini/home/subPages/warningDetail.vue

@@ -49,7 +49,7 @@
                     <el-avatar :size="36" :src="warningDetail.expertAvatar" />
                     <div class="writer-info">
                         <span class="writer-name">{{ warningDetail.expertName }}</span>
-                        <div class="belong-enterprise">{{ warningDetail.belongEnterprise }}</div>
+                        <!-- <div class="belong-enterprise">{{ warningDetail.belongEnterprise }}</div> -->
                     </div>
                 </div>
                 {{ warningDetail.summary }}