Pārlūkot izejas kodu

feat:修改bug

wangsisi 20 stundas atpakaļ
vecāks
revīzija
1e9b517657

+ 5 - 0
src/api/modules/monitor.js

@@ -88,4 +88,9 @@ module.exports = {
         url: config.base_dev_url + "container_farm_work_scheme/enableScheme",
         type: "get",
     },
+    // 自动化完善农事处方中的药肥数据
+    completeMedicationData: {
+        url: config.base_dev_url + "container_farm_work_automation/completeMedicationData?schemeId={schemeId}&containerId={containerId}",
+        type: "post",
+    },
 };

+ 1 - 1
src/views/old_mini/home/components/AgriculturalDynamics.vue

@@ -50,7 +50,7 @@
             </template>
         </div>
     </div>
-    <offer-popup ref="offerPopupRef"></offer-popup>
+    <offer-popup ref="offerPopupRef" @uploadSuccess="getTaskList"></offer-popup>
 
     <!-- 确认执行时间 -->
     <calendar

+ 9 - 0
src/views/old_mini/monitor/subPages/plan.vue

@@ -509,6 +509,15 @@ const validatePesticideFertilizerQuotes = async () => {
 const handleSubmitPlan = async () => {
     // 调用验证方法,传入所有ids
     if (farmWorkIds.value.length > 0) {
+        // 自动化完善农事处方中的药肥数据   用于本地测试代码  不要删除
+        // const res = await VE_API.monitor.completeMedicationData({
+        //     schemeId: active.value,
+        //     containerId: specieValue.value,
+        // });
+        // if (res.code === 0) {
+        //     ElMessage.success("自动化完善成功");
+        //     await getFarmWorkPlanForPhenology()
+        // }
         const { allTrue } = await validatePesticideFertilizerQuotes();
         if (allTrue) {
             VE_API.monitor