From 5dcaea101cf872bdd8e36e7f3cd11d43b16572a6 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Mon, 27 Feb 2023 16:45:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=86=9C=E4=BA=8B=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=86=9C=E4=BA=8B=E7=B1=BB=E5=9E=8B=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/massif/add_farming.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/massif/add_farming.vue b/pages/massif/add_farming.vue index a553901..059bc6e 100644 --- a/pages/massif/add_farming.vue +++ b/pages/massif/add_farming.vue @@ -198,7 +198,7 @@ - + 操作 病虫害记录 @@ -333,10 +333,10 @@ export default { uni.showToast({title:"农资类型必选!",icon:"none"}) return false //农事类型 为播种、施肥、用药 必选添加农资 - }else if(/^1$|^3$|^5$/.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"}) return false - }else if(/^3$|^5$/.test(this.formData.farmingType) && !this.formData.farmPests){ + }else if(/^用药$|^施肥$/.test(this.formData.farmingType) && !this.formData.farmPests){ uni.showToast({title:"请添加病虫害记录!",icon:"none"}) return false }