epans vor 1 Jahr
Ursprung
Commit
9971810648

+ 0 - 21
src/views/formulaPlan/FormulaTemplate.vue

@@ -118,7 +118,6 @@
 
          <el-row :gutter="20"  >
             <el-button type="primary"   @click="add_step">增加一个阶段</el-button>
-            <el-button type="primary"   @click="feed_proganmme">智能饲喂方案</el-button>
          </el-row>
 
 
@@ -451,14 +450,6 @@ export default {
       },
 
 
-      feedFormShow:false,
-      addFormStatusStep: '',
-      addFormTxtStep: {  edit: '修改',  create: '新增' },
-      addFormStep:{
-        name:'',id:'' , start_daily_age:undefined,end_daily_age:undefined,forage_id:undefined,forage_name:'',daily_feed_number:undefined,first_class_ratio:undefined,second_class_ratio:undefined,third_class_ratio:undefined,fourth_class_ratio:undefined,allow_class_error:undefined,feed_temp:undefined,feed_temp:undefined,allow_temp_error:undefined,
-      },
-
-
       class_num:4
 
     }
@@ -844,18 +835,6 @@ export default {
       })
     },
 
-
-    feed_proganmme() {
- 
-      this.addFormStep.id = this.tableListStep.length + 1
-
-      this.addFormShowStep = true
-      this.$nextTick(() => {
-        this.$refs['addFormRefStep'].clearValidate()
-      })
-
-    },
-
     //编辑
     edit_step(index, row) {
       this.stepIndex = index

+ 21 - 0
src/views/formulaPlan/FormulaTemplate1.vue → src/views/formulaPlan/FormulaTemplate3.vue

@@ -118,6 +118,7 @@
 
          <el-row :gutter="20"  >
             <el-button type="primary"   @click="add_step">增加一个阶段</el-button>
+            <el-button type="primary"   @click="feed_proganmme">智能饲喂方案</el-button>
          </el-row>
 
 
@@ -450,6 +451,14 @@ export default {
       },
 
 
+      feedFormShow:false,
+      addFormStatusStep: '',
+      addFormTxtStep: {  edit: '修改',  create: '新增' },
+      addFormStep:{
+        name:'',id:'' , start_daily_age:undefined,end_daily_age:undefined,forage_id:undefined,forage_name:'',daily_feed_number:undefined,first_class_ratio:undefined,second_class_ratio:undefined,third_class_ratio:undefined,fourth_class_ratio:undefined,allow_class_error:undefined,feed_temp:undefined,feed_temp:undefined,allow_temp_error:undefined,
+      },
+
+
       class_num:4
 
     }
@@ -835,6 +844,18 @@ export default {
       })
     },
 
+
+    feed_proganmme() {
+ 
+      this.addFormStep.id = this.tableListStep.length + 1
+
+      this.addFormShowStep = true
+      this.$nextTick(() => {
+        this.$refs['addFormRefStep'].clearValidate()
+      })
+
+    },
+
     //编辑
     edit_step(index, row) {
       this.stepIndex = index