@ -295,7 +295,8 @@ export default {
if(!this.formData.farmingType){
uni.showToast({title:"农资类型必选!",icon:"none"})
return false
}else if(this.formData.inputList.length<=0){
//农事类型 为播种、施肥、用药 必选添加农资
}else if(/^1$|^3$|^5$/.test(this.formData.farmingType) && this.formData.inputList.length<=0){
uni.showToast({title:"请添加农资!",icon:"none"})
}