Browse Source

type:refactor

commit:农事投入增加工时信息
master
孙家正 2 years ago
parent
commit
cdef522e0c
  1. 2
      pages/home/index.vue
  2. 5
      pages/massif/add_farming.vue

2
pages/home/index.vue

@ -432,7 +432,7 @@ import request,{host} from '@/common/request'
this.plantBase=[res.data]
this.$store.commit("setBaseId", {id:res.data[0].id,name:res.data[0].baseName})
}else{
uni.showToast({title:"请在管理端维护基地!",icon:"none",duration:3000})
uni.showToast({title:"请在管理端维护基地!",icon:"none",duration:5000})
}
}else{
uni.showModal({

5
pages/massif/add_farming.vue

@ -240,7 +240,7 @@ export default {
farmingTime:{label:"操作日期",styleType:"parallel",type:"calendar"},
userNum:{label:"人工投入(个)",type:"number"},
farmingPlanId:{label:"种植计划",type:"select",columns:[],value:[]},
workTime:{label:"工时",type:"number"},
workTime:{label:"工时(天)",type:"number"},
images:{label:"农事图片",type:"upImg",num:3},
farmingRemarks:{label:"备注",type:"textarea"},
@ -253,15 +253,16 @@ export default {
images:[],
farmingRemarks:"",
userNum:0,
workTime:0,
inputList:[],
farmPests:null,//
plotId:"",
plantBaseInfoId: this.$store.state.baseInfo.id,
},
rules:{
userNum:{required:true,type:'number',message:"人工投入必填!",trigger:'blur'},
farmingTime:{required:true,message:"操作日期必填!",trigger:'blur'},
workTime:{required:true,type:'number',message:"工时必填!",trigger:'blur'},
farmingPlanId:{required:true,message:"种植计划必选!",trigger:'blur'},
},
massif:{},

Loading…
Cancel
Save