|
@ -360,9 +360,9 @@ export default { |
|
|
}else if(/^施肥$|^用药$/.test(this.formData.farmingType) && this.formData.inputList.length<=0){ |
|
|
}else if(/^施肥$|^用药$/.test(this.formData.farmingType) && this.formData.inputList.length<=0){ |
|
|
uni.showToast({title:"请添加农资!",icon:"none"}) |
|
|
uni.showToast({title:"请添加农资!",icon:"none"}) |
|
|
return false |
|
|
return false |
|
|
}else if(/^用药$/.test(this.formData.farmingType) && !this.formData.farmPests){ |
|
|
// }else if(/^用药$/.test(this.formData.farmingType) && !this.formData.farmPests){ |
|
|
uni.showToast({title:"请添加病虫害记录!",icon:"none"}) |
|
|
// uni.showToast({title:"请添加病虫害记录!",icon:"none"}) |
|
|
return false |
|
|
// return false |
|
|
} |
|
|
} |
|
|
return true |
|
|
return true |
|
|
}, |
|
|
}, |
|
|